Deleted Added
full compact
configure (191771) configure (192350)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for file 5.00.
3# Generated by GNU Autoconf 2.61 for file 5.03.
4#
5# Report bugs to <christos@astron.com>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
161fi
162
163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584$*
585EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
4#
5# Report bugs to <christos@astron.com>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
161fi
162
163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584$*
585EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
599 echo_test_string="`eval $cmd`" &&
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 7<&0 </dev/null 6>&1
709
710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='file'
730PACKAGE_TARNAME='file'
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 7<&0 </dev/null 6>&1
709
710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='file'
730PACKAGE_TARNAME='file'
731PACKAGE_VERSION='5.00'
732PACKAGE_STRING='file 5.00'
731PACKAGE_VERSION='5.03'
732PACKAGE_STRING='file 5.03'
733PACKAGE_BUGREPORT='christos@astron.com'
734
735# Factoring default headers for most tests.
736ac_includes_default="\
737#include <stdio.h>
738#ifdef HAVE_SYS_TYPES_H
739# include <sys/types.h>
740#endif
741#ifdef HAVE_SYS_STAT_H
742# include <sys/stat.h>
743#endif
744#ifdef STDC_HEADERS
745# include <stdlib.h>
746# include <stddef.h>
747#else
748# ifdef HAVE_STDLIB_H
749# include <stdlib.h>
750# endif
751#endif
752#ifdef HAVE_STRING_H
753# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754# include <memory.h>
755# endif
756# include <string.h>
757#endif
758#ifdef HAVE_STRINGS_H
759# include <strings.h>
760#endif
761#ifdef HAVE_INTTYPES_H
762# include <inttypes.h>
763#endif
764#ifdef HAVE_STDINT_H
765# include <stdint.h>
766#endif
767#ifdef HAVE_UNISTD_H
768# include <unistd.h>
769#endif"
770
771ac_subst_vars='SHELL
772PATH_SEPARATOR
773PACKAGE_NAME
774PACKAGE_TARNAME
775PACKAGE_VERSION
776PACKAGE_STRING
777PACKAGE_BUGREPORT
778exec_prefix
779prefix
780program_transform_name
781bindir
782sbindir
783libexecdir
784datarootdir
785datadir
786sysconfdir
787sharedstatedir
788localstatedir
789includedir
790oldincludedir
791docdir
792infodir
793htmldir
794dvidir
795pdfdir
796psdir
797libdir
798localedir
799mandir
800DEFS
801ECHO_C
802ECHO_N
803ECHO_T
804LIBS
805build_alias
806host_alias
807target_alias
808INSTALL_PROGRAM
809INSTALL_SCRIPT
810INSTALL_DATA
811am__isrc
812CYGPATH_W
813PACKAGE
814VERSION
815ACLOCAL
816AUTOCONF
817AUTOMAKE
818AUTOHEADER
819MAKEINFO
820install_sh
821STRIP
822INSTALL_STRIP_PROGRAM
823mkdir_p
824AWK
825SET_MAKE
826am__leading_dot
827AMTAR
828am__tar
829am__untar
733PACKAGE_BUGREPORT='christos@astron.com'
734
735# Factoring default headers for most tests.
736ac_includes_default="\
737#include <stdio.h>
738#ifdef HAVE_SYS_TYPES_H
739# include <sys/types.h>
740#endif
741#ifdef HAVE_SYS_STAT_H
742# include <sys/stat.h>
743#endif
744#ifdef STDC_HEADERS
745# include <stdlib.h>
746# include <stddef.h>
747#else
748# ifdef HAVE_STDLIB_H
749# include <stdlib.h>
750# endif
751#endif
752#ifdef HAVE_STRING_H
753# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754# include <memory.h>
755# endif
756# include <string.h>
757#endif
758#ifdef HAVE_STRINGS_H
759# include <strings.h>
760#endif
761#ifdef HAVE_INTTYPES_H
762# include <inttypes.h>
763#endif
764#ifdef HAVE_STDINT_H
765# include <stdint.h>
766#endif
767#ifdef HAVE_UNISTD_H
768# include <unistd.h>
769#endif"
770
771ac_subst_vars='SHELL
772PATH_SEPARATOR
773PACKAGE_NAME
774PACKAGE_TARNAME
775PACKAGE_VERSION
776PACKAGE_STRING
777PACKAGE_BUGREPORT
778exec_prefix
779prefix
780program_transform_name
781bindir
782sbindir
783libexecdir
784datarootdir
785datadir
786sysconfdir
787sharedstatedir
788localstatedir
789includedir
790oldincludedir
791docdir
792infodir
793htmldir
794dvidir
795pdfdir
796psdir
797libdir
798localedir
799mandir
800DEFS
801ECHO_C
802ECHO_N
803ECHO_T
804LIBS
805build_alias
806host_alias
807target_alias
808INSTALL_PROGRAM
809INSTALL_SCRIPT
810INSTALL_DATA
811am__isrc
812CYGPATH_W
813PACKAGE
814VERSION
815ACLOCAL
816AUTOCONF
817AUTOMAKE
818AUTOHEADER
819MAKEINFO
820install_sh
821STRIP
822INSTALL_STRIP_PROGRAM
823mkdir_p
824AWK
825SET_MAKE
826am__leading_dot
827AMTAR
828am__tar
829am__untar
830pkgdatadir
830fsect
831FSECT5_TRUE
832FSECT5_FALSE
833WARNINGS
834CC
835CFLAGS
836LDFLAGS
837CPPFLAGS
838ac_ct_CC
839EXEEXT
840OBJEXT
841DEPDIR
842am__include
843am__quote
844AMDEP_TRUE
845AMDEP_FALSE
846AMDEPBACKSLASH
847CCDEPMODE
848am__fastdepCC_TRUE
849am__fastdepCC_FALSE
850LN_S
851build
852build_cpu
853build_vendor
854build_os
855host
856host_cpu
857host_vendor
858host_os
831fsect
832FSECT5_TRUE
833FSECT5_FALSE
834WARNINGS
835CC
836CFLAGS
837LDFLAGS
838CPPFLAGS
839ac_ct_CC
840EXEEXT
841OBJEXT
842DEPDIR
843am__include
844am__quote
845AMDEP_TRUE
846AMDEP_FALSE
847AMDEPBACKSLASH
848CCDEPMODE
849am__fastdepCC_TRUE
850am__fastdepCC_FALSE
851LN_S
852build
853build_cpu
854build_vendor
855build_os
856host
857host_cpu
858host_vendor
859host_os
860SED
859GREP
860EGREP
861ECHO
862AR
863RANLIB
861GREP
862EGREP
863ECHO
864AR
865RANLIB
866DSYMUTIL
867NMEDIT
864CPP
865CXX
866CXXFLAGS
867ac_ct_CXX
868CXXDEPMODE
869am__fastdepCXX_TRUE
870am__fastdepCXX_FALSE
871CXXCPP
872F77
873FFLAGS
874ac_ct_F77
875LIBTOOL
876LIBOBJS
877IS_CROSS_COMPILE_TRUE
878IS_CROSS_COMPILE_FALSE
879LTLIBOBJS'
880ac_subst_files=''
881 ac_precious_vars='build_alias
882host_alias
883target_alias
884CC
885CFLAGS
886LDFLAGS
887LIBS
888CPPFLAGS
889CPP
890CXX
891CXXFLAGS
892CCC
893CXXCPP
894F77
895FFLAGS'
896
897
898# Initialize some variables set by options.
899ac_init_help=
900ac_init_version=false
901# The variables have the same names as the options, with
902# dashes changed to underlines.
903cache_file=/dev/null
904exec_prefix=NONE
905no_create=
906no_recursion=
907prefix=NONE
908program_prefix=NONE
909program_suffix=NONE
910program_transform_name=s,x,x,
911silent=
912site=
913srcdir=
914verbose=
915x_includes=NONE
916x_libraries=NONE
917
918# Installation directory options.
919# These are left unexpanded so users can "make install exec_prefix=/foo"
920# and all the variables that are supposed to be based on exec_prefix
921# by default will actually change.
922# Use braces instead of parens because sh, perl, etc. also accept them.
923# (The list follows the same order as the GNU Coding Standards.)
924bindir='${exec_prefix}/bin'
925sbindir='${exec_prefix}/sbin'
926libexecdir='${exec_prefix}/libexec'
927datarootdir='${prefix}/share'
928datadir='${datarootdir}'
929sysconfdir='${prefix}/etc'
930sharedstatedir='${prefix}/com'
931localstatedir='${prefix}/var'
932includedir='${prefix}/include'
933oldincludedir='/usr/include'
934docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935infodir='${datarootdir}/info'
936htmldir='${docdir}'
937dvidir='${docdir}'
938pdfdir='${docdir}'
939psdir='${docdir}'
940libdir='${exec_prefix}/lib'
941localedir='${datarootdir}/locale'
942mandir='${datarootdir}/man'
943
944ac_prev=
945ac_dashdash=
946for ac_option
947do
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\$ac_option
951 ac_prev=
952 continue
953 fi
954
955 case $ac_option in
956 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 *) ac_optarg=yes ;;
958 esac
959
960 # Accept the important Cygnus configure options, so we can diagnose typos.
961
962 case $ac_dashdash$ac_option in
963 --)
964 ac_dashdash=yes ;;
965
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 ac_prev=bindir ;;
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969 bindir=$ac_optarg ;;
970
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
975
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
982
983 --config-cache | -C)
984 cache_file=config.cache ;;
985
986 -datadir | --datadir | --datadi | --datad)
987 ac_prev=datadir ;;
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
990
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
997
998 -disable-* | --disable-*)
999 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1002 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1005 eval enable_$ac_feature=no ;;
1006
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1011
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1016
1017 -enable-* | --enable-*)
1018 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024 eval enable_$ac_feature=\$ac_optarg ;;
1025
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1034
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1038
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1045
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1050
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1056
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1063
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1068
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1073
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1080
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1085
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1092
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1097
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1101
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1105
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1109
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1118
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1123
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1130
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1137
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1154
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1159
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1164
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1168
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1174
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1185
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1190
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1195
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1202
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1207
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1210
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1213
1214 -with-* | --with-*)
1215 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 { echo "$as_me: error: invalid package name: $ac_package" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1221 eval with_$ac_package=\$ac_optarg ;;
1222
1223 -without-* | --without-*)
1224 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 { echo "$as_me: error: invalid package name: $ac_package" >&2
1228 { (exit 1); exit 1; }; }
1229 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1230 eval with_$ac_package=no ;;
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1249
1250 -*) { echo "$as_me: error: unrecognized option: $ac_option
1251Try \`$0 --help' for more information." >&2
1252 { (exit 1); exit 1; }; }
1253 ;;
1254
1255 *=*)
1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260 { (exit 1); exit 1; }; }
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1263
1264 *)
1265 # FIXME: should be removed in autoconf 3.0.
1266 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270 ;;
1271
1272 esac
1273done
1274
1275if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 { echo "$as_me: error: missing argument to $ac_option" >&2
1278 { (exit 1); exit 1; }; }
1279fi
1280
1281# Be sure to have absolute directory names.
1282for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1286do
1287 eval ac_val=\$$ac_var
1288 case $ac_val in
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 esac
1292 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1293 { (exit 1); exit 1; }; }
1294done
1295
1296# There might be people who depend on the old broken behavior: `$host'
1297# used to hold the argument of --host etc.
1298# FIXME: To remove some day.
1299build=$build_alias
1300host=$host_alias
1301target=$target_alias
1302
1303# FIXME: To remove some day.
1304if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1308 If a cross compiler is detected then cross compile mode will be used." >&2
1309 elif test "x$build_alias" != "x$host_alias"; then
1310 cross_compiling=yes
1311 fi
1312fi
1313
1314ac_tool_prefix=
1315test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317test "$silent" = yes && exec 6>/dev/null
1318
1319
1320ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321ac_ls_di=`ls -di .` &&
1322ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 { echo "$as_me: error: Working directory cannot be determined" >&2
1324 { (exit 1); exit 1; }; }
1325test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 { echo "$as_me: error: pwd does not report name of working directory" >&2
1327 { (exit 1); exit 1; }; }
1328
1329
1330# Find the source files, if location was not specified.
1331if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$0" ||
1335$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$0" : 'X\(//\)[^/]' \| \
1337 X"$0" : 'X\(//\)$' \| \
1338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1339echo X"$0" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361else
1362 ac_srcdir_defaulted=no
1363fi
1364if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1367 { (exit 1); exit 1; }; }
1368fi
1369ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1372 { (exit 1); exit 1; }; }
1373 pwd)`
1374# When building in place, set srcdir=.
1375if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377fi
1378# Remove unnecessary trailing slashes from srcdir.
1379# Double slashes in file names in object file debugging info
1380# mess up M-x gdb in Emacs.
1381case $srcdir in
1382*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383esac
1384for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389done
1390
1391#
1392# Report the --help message.
1393#
1394if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
868CPP
869CXX
870CXXFLAGS
871ac_ct_CXX
872CXXDEPMODE
873am__fastdepCXX_TRUE
874am__fastdepCXX_FALSE
875CXXCPP
876F77
877FFLAGS
878ac_ct_F77
879LIBTOOL
880LIBOBJS
881IS_CROSS_COMPILE_TRUE
882IS_CROSS_COMPILE_FALSE
883LTLIBOBJS'
884ac_subst_files=''
885 ac_precious_vars='build_alias
886host_alias
887target_alias
888CC
889CFLAGS
890LDFLAGS
891LIBS
892CPPFLAGS
893CPP
894CXX
895CXXFLAGS
896CCC
897CXXCPP
898F77
899FFLAGS'
900
901
902# Initialize some variables set by options.
903ac_init_help=
904ac_init_version=false
905# The variables have the same names as the options, with
906# dashes changed to underlines.
907cache_file=/dev/null
908exec_prefix=NONE
909no_create=
910no_recursion=
911prefix=NONE
912program_prefix=NONE
913program_suffix=NONE
914program_transform_name=s,x,x,
915silent=
916site=
917srcdir=
918verbose=
919x_includes=NONE
920x_libraries=NONE
921
922# Installation directory options.
923# These are left unexpanded so users can "make install exec_prefix=/foo"
924# and all the variables that are supposed to be based on exec_prefix
925# by default will actually change.
926# Use braces instead of parens because sh, perl, etc. also accept them.
927# (The list follows the same order as the GNU Coding Standards.)
928bindir='${exec_prefix}/bin'
929sbindir='${exec_prefix}/sbin'
930libexecdir='${exec_prefix}/libexec'
931datarootdir='${prefix}/share'
932datadir='${datarootdir}'
933sysconfdir='${prefix}/etc'
934sharedstatedir='${prefix}/com'
935localstatedir='${prefix}/var'
936includedir='${prefix}/include'
937oldincludedir='/usr/include'
938docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939infodir='${datarootdir}/info'
940htmldir='${docdir}'
941dvidir='${docdir}'
942pdfdir='${docdir}'
943psdir='${docdir}'
944libdir='${exec_prefix}/lib'
945localedir='${datarootdir}/locale'
946mandir='${datarootdir}/man'
947
948ac_prev=
949ac_dashdash=
950for ac_option
951do
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
955 ac_prev=
956 continue
957 fi
958
959 case $ac_option in
960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *) ac_optarg=yes ;;
962 esac
963
964 # Accept the important Cygnus configure options, so we can diagnose typos.
965
966 case $ac_dashdash$ac_option in
967 --)
968 ac_dashdash=yes ;;
969
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
974
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
979
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
986
987 --config-cache | -C)
988 cache_file=config.cache ;;
989
990 -datadir | --datadir | --datadi | --datad)
991 ac_prev=datadir ;;
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
994
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1001
1002 -disable-* | --disable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009 eval enable_$ac_feature=no ;;
1010
1011 -docdir | --docdir | --docdi | --doc | --do)
1012 ac_prev=docdir ;;
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1015
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 ac_prev=dvidir ;;
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1020
1021 -enable-* | --enable-*)
1022 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028 eval enable_$ac_feature=\$ac_optarg ;;
1029
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1038
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1042
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1049
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1054
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1060
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1067
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1072
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1077
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1084
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1089
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1096
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1101
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1105
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1108 no_create=yes ;;
1109
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1113
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1122
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1127
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1134
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1141
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1158
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1163
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1168
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1172
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174 ac_prev=sbindir ;;
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176 | --sbi=* | --sb=*)
1177 sbindir=$ac_optarg ;;
1178
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1182 | --sha | --sh)
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187 | --sha=* | --sh=*)
1188 sharedstatedir=$ac_optarg ;;
1189
1190 -site | --site | --sit)
1191 ac_prev=site ;;
1192 -site=* | --site=* | --sit=*)
1193 site=$ac_optarg ;;
1194
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196 ac_prev=srcdir ;;
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1199
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1206
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1211
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 verbose=yes ;;
1214
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1217
1218 -with-* | --with-*)
1219 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 { echo "$as_me: error: invalid package name: $ac_package" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225 eval with_$ac_package=\$ac_optarg ;;
1226
1227 -without-* | --without-*)
1228 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=no ;;
1235
1236 --x)
1237 # Obsolete; use --with-x.
1238 with_x=yes ;;
1239
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1246
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1253
1254 -*) { echo "$as_me: error: unrecognized option: $ac_option
1255Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1257 ;;
1258
1259 *=*)
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1267
1268 *)
1269 # FIXME: should be removed in autoconf 3.0.
1270 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274 ;;
1275
1276 esac
1277done
1278
1279if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 { echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1283fi
1284
1285# Be sure to have absolute directory names.
1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1290do
1291 eval ac_val=\$$ac_var
1292 case $ac_val in
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 esac
1296 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297 { (exit 1); exit 1; }; }
1298done
1299
1300# There might be people who depend on the old broken behavior: `$host'
1301# used to hold the argument of --host etc.
1302# FIXME: To remove some day.
1303build=$build_alias
1304host=$host_alias
1305target=$target_alias
1306
1307# FIXME: To remove some day.
1308if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312 If a cross compiler is detected then cross compile mode will be used." >&2
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 { echo "$as_me: error: Working directory cannot be determined" >&2
1328 { (exit 1); exit 1; }; }
1329test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 { echo "$as_me: error: pwd does not report name of working directory" >&2
1331 { (exit 1); exit 1; }; }
1332
1333
1334# Find the source files, if location was not specified.
1335if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$0" ||
1339$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$0" : 'X\(//\)[^/]' \| \
1341 X"$0" : 'X\(//\)$' \| \
1342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1343echo X"$0" |
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)[^/].*/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)$/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\).*/{
1357 s//\1/
1358 q
1359 }
1360 s/.*/./; q'`
1361 srcdir=$ac_confdir
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 srcdir=..
1364 fi
1365else
1366 ac_srcdir_defaulted=no
1367fi
1368if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371 { (exit 1); exit 1; }; }
1372fi
1373ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374ac_abs_confdir=`(
1375 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376 { (exit 1); exit 1; }; }
1377 pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1398\`configure' configures file 5.00 to adapt to many kinds of systems.
1402\`configure' configures file 5.03 to adapt to many kinds of systems.
1399
1400Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405Defaults for the options are specified in brackets.
1406
1407Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424By default, \`make install' will install all the files in
1425\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427for instance \`--prefix=\$HOME'.
1428
1429For better control, use the options below.
1430
1431Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/file]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451_ACEOF
1452
1453 cat <<\_ACEOF
1454
1455Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459
1460System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463_ACEOF
1464fi
1465
1466if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421
1422Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/file]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1455_ACEOF
1456
1457 cat <<\_ACEOF
1458
1459Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463
1464System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467_ACEOF
1468fi
1469
1470if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1468 short | recursive ) echo "Configuration of file 5.00:";;
1472 short | recursive ) echo "Configuration of file 5.03:";;
1469 esac
1470 cat <<\_ACEOF
1471
1472Optional Features:
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --disable-elf disable builtin ELF support
1476 --disable-elf-core disable ELF core file support
1477 --enable-fsect-man5 enable file formats in man section 5
1478 --disable-dependency-tracking speeds up one-time build
1479 --enable-dependency-tracking do not reject slow dependency extractors
1480 --enable-shared[=PKGS] build shared libraries [default=yes]
1481 --enable-static[=PKGS] build static libraries [default=yes]
1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
1484 --disable-libtool-lock avoid locking (might break parallel builds)
1485 --disable-largefile omit support for large files
1486 --disable-warnings disable compiler warnings
1487
1488Optional Packages:
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-pic try to use only PIC/non-PIC objects [default=use
1493 both]
1494 --with-tags[=TAGS] include additional configurations [automatic]
1495
1496Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1504 CPP C preprocessor
1505 CXX C++ compiler command
1506 CXXFLAGS C++ compiler flags
1507 CXXCPP C++ preprocessor
1508 F77 Fortran 77 compiler command
1509 FFLAGS Fortran 77 compiler flags
1510
1511Use these variables to override the choices made by `configure' or to help
1512it to find libraries and programs with nonstandard names/locations.
1513
1514Report bugs to <christos@astron.com>.
1515_ACEOF
1516ac_status=$?
1517fi
1518
1519if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" || continue
1523 ac_builddir=.
1524
1525case "$ac_dir" in
1526.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527*)
1528 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 esac ;;
1535esac
1536ac_abs_top_builddir=$ac_pwd
1537ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538# for backward compatibility:
1539ac_top_builddir=$ac_top_build_prefix
1540
1541case $srcdir in
1542 .) # We are building in place.
1543 ac_srcdir=.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1550 *) # Relative name.
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554esac
1555ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1565 else
1566 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 fi || ac_status=$?
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1569 done
1570fi
1571
1572test -n "$ac_init_help" && exit $ac_status
1573if $ac_init_version; then
1574 cat <<\_ACEOF
1473 esac
1474 cat <<\_ACEOF
1475
1476Optional Features:
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --disable-elf disable builtin ELF support
1480 --disable-elf-core disable ELF core file support
1481 --enable-fsect-man5 enable file formats in man section 5
1482 --disable-dependency-tracking speeds up one-time build
1483 --enable-dependency-tracking do not reject slow dependency extractors
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-static[=PKGS] build static libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --disable-largefile omit support for large files
1490 --disable-warnings disable compiler warnings
1491
1492Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1496 --with-pic try to use only PIC/non-PIC objects [default=use
1497 both]
1498 --with-tags[=TAGS] include additional configurations [automatic]
1499
1500Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
1508 CPP C preprocessor
1509 CXX C++ compiler command
1510 CXXFLAGS C++ compiler flags
1511 CXXCPP C++ preprocessor
1512 F77 Fortran 77 compiler command
1513 FFLAGS Fortran 77 compiler flags
1514
1515Use these variables to override the choices made by `configure' or to help
1516it to find libraries and programs with nonstandard names/locations.
1517
1518Report bugs to <christos@astron.com>.
1519_ACEOF
1520ac_status=$?
1521fi
1522
1523if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" || continue
1527 ac_builddir=.
1528
1529case "$ac_dir" in
1530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531*)
1532 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539esac
1540ac_abs_top_builddir=$ac_pwd
1541ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542# for backward compatibility:
1543ac_top_builddir=$ac_top_build_prefix
1544
1545case $srcdir in
1546 .) # We are building in place.
1547 ac_srcdir=.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558esac
1559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure" --help=recursive
1569 else
1570 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
1573 done
1574fi
1575
1576test -n "$ac_init_help" && exit $ac_status
1577if $ac_init_version; then
1578 cat <<\_ACEOF
1575file configure 5.00
1579file configure 5.03
1576generated by GNU Autoconf 2.61
1577
1578Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15792002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1580This configure script is free software; the Free Software Foundation
1581gives unlimited permission to copy, distribute and modify it.
1582_ACEOF
1583 exit
1584fi
1585cat >config.log <<_ACEOF
1586This file contains any messages produced by compilers while
1587running configure, to aid debugging if configure makes a mistake.
1588
1580generated by GNU Autoconf 2.61
1581
1582Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15832002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1584This configure script is free software; the Free Software Foundation
1585gives unlimited permission to copy, distribute and modify it.
1586_ACEOF
1587 exit
1588fi
1589cat >config.log <<_ACEOF
1590This file contains any messages produced by compilers while
1591running configure, to aid debugging if configure makes a mistake.
1592
1589It was created by file $as_me 5.00, which was
1593It was created by file $as_me 5.03, which was
1590generated by GNU Autoconf 2.61. Invocation command line was
1591
1592 $ $0 $@
1593
1594_ACEOF
1595exec 5>>config.log
1596{
1597cat <<_ASUNAME
1598## --------- ##
1599## Platform. ##
1600## --------- ##
1601
1602hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1603uname -m = `(uname -m) 2>/dev/null || echo unknown`
1604uname -r = `(uname -r) 2>/dev/null || echo unknown`
1605uname -s = `(uname -s) 2>/dev/null || echo unknown`
1606uname -v = `(uname -v) 2>/dev/null || echo unknown`
1607
1608/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1609/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1610
1611/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1612/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1613/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1614/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1615/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1616/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1617/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1618
1619_ASUNAME
1620
1621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622for as_dir in $PATH
1623do
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 echo "PATH: $as_dir"
1627done
1628IFS=$as_save_IFS
1629
1630} >&5
1631
1632cat >&5 <<_ACEOF
1633
1634
1635## ----------- ##
1636## Core tests. ##
1637## ----------- ##
1638
1639_ACEOF
1640
1641
1642# Keep a trace of the command line.
1643# Strip out --no-create and --no-recursion so they do not pile up.
1644# Strip out --silent because we don't want to record it for future runs.
1645# Also quote any args containing shell meta-characters.
1646# Make two passes to allow for proper duplicate-argument suppression.
1647ac_configure_args=
1648ac_configure_args0=
1649ac_configure_args1=
1650ac_must_keep_next=false
1651for ac_pass in 1 2
1652do
1653 for ac_arg
1654 do
1655 case $ac_arg in
1656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658 | -silent | --silent | --silen | --sile | --sil)
1659 continue ;;
1660 *\'*)
1661 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1662 esac
1663 case $ac_pass in
1664 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1665 2)
1666 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1667 if test $ac_must_keep_next = true; then
1668 ac_must_keep_next=false # Got value, back to normal.
1669 else
1670 case $ac_arg in
1671 *=* | --config-cache | -C | -disable-* | --disable-* \
1672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1674 | -with-* | --with-* | -without-* | --without-* | --x)
1675 case "$ac_configure_args0 " in
1676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1677 esac
1678 ;;
1679 -* ) ac_must_keep_next=true ;;
1680 esac
1681 fi
1682 ac_configure_args="$ac_configure_args '$ac_arg'"
1683 ;;
1684 esac
1685 done
1686done
1687$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1688$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1689
1690# When interrupted or exit'd, cleanup temporary files, and complete
1691# config.log. We remove comments because anyway the quotes in there
1692# would cause problems or look ugly.
1693# WARNING: Use '\'' to represent an apostrophe within the trap.
1694# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1695trap 'exit_status=$?
1696 # Save into config.log some information that might help in debugging.
1697 {
1698 echo
1699
1700 cat <<\_ASBOX
1701## ---------------- ##
1702## Cache variables. ##
1703## ---------------- ##
1704_ASBOX
1705 echo
1706 # The following way of writing the cache mishandles newlines in values,
1707(
1708 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1709 eval ac_val=\$$ac_var
1710 case $ac_val in #(
1711 *${as_nl}*)
1712 case $ac_var in #(
1713 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1714echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1715 esac
1716 case $ac_var in #(
1717 _ | IFS | as_nl) ;; #(
1718 *) $as_unset $ac_var ;;
1719 esac ;;
1720 esac
1721 done
1722 (set) 2>&1 |
1723 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1724 *${as_nl}ac_space=\ *)
1725 sed -n \
1726 "s/'\''/'\''\\\\'\'''\''/g;
1727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1728 ;; #(
1729 *)
1730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1731 ;;
1732 esac |
1733 sort
1734)
1735 echo
1736
1737 cat <<\_ASBOX
1738## ----------------- ##
1739## Output variables. ##
1740## ----------------- ##
1741_ASBOX
1742 echo
1743 for ac_var in $ac_subst_vars
1744 do
1745 eval ac_val=\$$ac_var
1746 case $ac_val in
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 esac
1749 echo "$ac_var='\''$ac_val'\''"
1750 done | sort
1751 echo
1752
1753 if test -n "$ac_subst_files"; then
1754 cat <<\_ASBOX
1755## ------------------- ##
1756## File substitutions. ##
1757## ------------------- ##
1758_ASBOX
1759 echo
1760 for ac_var in $ac_subst_files
1761 do
1762 eval ac_val=\$$ac_var
1763 case $ac_val in
1764 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 esac
1766 echo "$ac_var='\''$ac_val'\''"
1767 done | sort
1768 echo
1769 fi
1770
1771 if test -s confdefs.h; then
1772 cat <<\_ASBOX
1773## ----------- ##
1774## confdefs.h. ##
1775## ----------- ##
1776_ASBOX
1777 echo
1778 cat confdefs.h
1779 echo
1780 fi
1781 test "$ac_signal" != 0 &&
1782 echo "$as_me: caught signal $ac_signal"
1783 echo "$as_me: exit $exit_status"
1784 } >&5
1785 rm -f core *.core core.conftest.* &&
1786 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1787 exit $exit_status
1788' 0
1789for ac_signal in 1 2 13 15; do
1790 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1791done
1792ac_signal=0
1793
1794# confdefs.h avoids OS command line length limits that DEFS can exceed.
1795rm -f -r conftest* confdefs.h
1796
1797# Predefined preprocessor variables.
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_NAME "$PACKAGE_NAME"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1806_ACEOF
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_VERSION "$PACKAGE_VERSION"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_STRING "$PACKAGE_STRING"
1816_ACEOF
1817
1818
1819cat >>confdefs.h <<_ACEOF
1820#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1821_ACEOF
1822
1823
1824# Let the site file select an alternate cache file if it wants to.
1825# Prefer explicitly selected file to automatically selected ones.
1826if test -n "$CONFIG_SITE"; then
1827 set x "$CONFIG_SITE"
1828elif test "x$prefix" != xNONE; then
1829 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1830else
1831 set x "$ac_default_prefix/share/config.site" \
1832 "$ac_default_prefix/etc/config.site"
1833fi
1834shift
1835for ac_site_file
1836do
1837 if test -r "$ac_site_file"; then
1838 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1839echo "$as_me: loading site script $ac_site_file" >&6;}
1840 sed 's/^/| /' "$ac_site_file" >&5
1841 . "$ac_site_file"
1842 fi
1843done
1844
1845if test -r "$cache_file"; then
1846 # Some versions of bash will fail to source /dev/null (special
1847 # files actually), so we avoid doing that.
1848 if test -f "$cache_file"; then
1849 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1850echo "$as_me: loading cache $cache_file" >&6;}
1851 case $cache_file in
1852 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1853 *) . "./$cache_file";;
1854 esac
1855 fi
1856else
1857 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1858echo "$as_me: creating cache $cache_file" >&6;}
1859 >$cache_file
1860fi
1861
1862# Check that the precious variables saved in the cache have kept the same
1863# value.
1864ac_cache_corrupted=false
1865for ac_var in $ac_precious_vars; do
1866 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1867 eval ac_new_set=\$ac_env_${ac_var}_set
1868 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1869 eval ac_new_val=\$ac_env_${ac_var}_value
1870 case $ac_old_set,$ac_new_set in
1871 set,)
1872 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1873echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1875 ,set)
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1877echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1879 ,);;
1880 *)
1881 if test "x$ac_old_val" != "x$ac_new_val"; then
1882 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1883echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1884 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1885echo "$as_me: former value: $ac_old_val" >&2;}
1886 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1887echo "$as_me: current value: $ac_new_val" >&2;}
1888 ac_cache_corrupted=:
1889 fi;;
1890 esac
1891 # Pass precious variables to config.status.
1892 if test "$ac_new_set" = set; then
1893 case $ac_new_val in
1894 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1895 *) ac_arg=$ac_var=$ac_new_val ;;
1896 esac
1897 case " $ac_configure_args " in
1898 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1899 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1900 esac
1901 fi
1902done
1903if $ac_cache_corrupted; then
1904 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1905echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1906 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1907echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1908 { (exit 1); exit 1; }; }
1909fi
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935ac_ext=c
1936ac_cpp='$CPP $CPPFLAGS'
1937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940
1941
1942am__api_version='1.10'
1943
1944ac_aux_dir=
1945for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1946 if test -f "$ac_dir/install-sh"; then
1947 ac_aux_dir=$ac_dir
1948 ac_install_sh="$ac_aux_dir/install-sh -c"
1949 break
1950 elif test -f "$ac_dir/install.sh"; then
1951 ac_aux_dir=$ac_dir
1952 ac_install_sh="$ac_aux_dir/install.sh -c"
1953 break
1954 elif test -f "$ac_dir/shtool"; then
1955 ac_aux_dir=$ac_dir
1956 ac_install_sh="$ac_aux_dir/shtool install -c"
1957 break
1958 fi
1959done
1960if test -z "$ac_aux_dir"; then
1961 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1962echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1963 { (exit 1); exit 1; }; }
1964fi
1965
1966# These three variables are undocumented and unsupported,
1967# and are intended to be withdrawn in a future Autoconf release.
1968# They can cause serious problems if a builder's source tree is in a directory
1969# whose full name contains unusual characters.
1970ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1971ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1972ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1973
1974
1975# Find a good install program. We prefer a C program (faster),
1976# so one script is as good as another. But avoid the broken or
1977# incompatible versions:
1978# SysV /etc/install, /usr/sbin/install
1979# SunOS /usr/etc/install
1980# IRIX /sbin/install
1981# AIX /bin/install
1982# AmigaOS /C/install, which installs bootblocks on floppy discs
1983# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1984# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1985# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1986# OS/2's system install, which has a completely different semantic
1987# ./install, which can be erroneously created by make from ./install.sh.
1988{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1989echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1990if test -z "$INSTALL"; then
1991if test "${ac_cv_path_install+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995for as_dir in $PATH
1996do
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 # Account for people who put trailing slashes in PATH elements.
2000case $as_dir/ in
2001 ./ | .// | /cC/* | \
2002 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2003 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2004 /usr/ucb/* ) ;;
2005 *)
2006 # OSF1 and SCO ODT 3.0 have their own names for install.
2007 # Don't use installbsd from OSF since it installs stuff as root
2008 # by default.
2009 for ac_prog in ginstall scoinst install; do
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2012 if test $ac_prog = install &&
2013 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2014 # AIX install. It has an incompatible calling convention.
2015 :
2016 elif test $ac_prog = install &&
2017 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2018 # program-specific install script used by HP pwplus--don't use.
2019 :
2020 else
2021 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2022 break 3
2023 fi
2024 fi
2025 done
2026 done
2027 ;;
2028esac
2029done
2030IFS=$as_save_IFS
2031
2032
2033fi
2034 if test "${ac_cv_path_install+set}" = set; then
2035 INSTALL=$ac_cv_path_install
2036 else
2037 # As a last resort, use the slow shell script. Don't cache a
2038 # value for INSTALL within a source directory, because that will
2039 # break other packages using the cache if that directory is
2040 # removed, or if the value is a relative name.
2041 INSTALL=$ac_install_sh
2042 fi
2043fi
2044{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2045echo "${ECHO_T}$INSTALL" >&6; }
2046
2047# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2048# It thinks the first close brace ends the variable substitution.
2049test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2050
2051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2052
2053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2054
2055{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2056echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2057# Just in case
2058sleep 1
2059echo timestamp > conftest.file
2060# Do `set' in a subshell so we don't clobber the current shell's
2061# arguments. Must try -L first in case configure is actually a
2062# symlink; some systems play weird games with the mod time of symlinks
2063# (eg FreeBSD returns the mod time of the symlink's containing
2064# directory).
2065if (
2066 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2067 if test "$*" = "X"; then
2068 # -L didn't work.
2069 set X `ls -t $srcdir/configure conftest.file`
2070 fi
2071 rm -f conftest.file
2072 if test "$*" != "X $srcdir/configure conftest.file" \
2073 && test "$*" != "X conftest.file $srcdir/configure"; then
2074
2075 # If neither matched, then we have a broken ls. This can happen
2076 # if, for instance, CONFIG_SHELL is bash and it inherits a
2077 # broken ls alias from the environment. This has actually
2078 # happened. Such a system could not be considered "sane".
2079 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2080alias in your environment" >&5
2081echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2082alias in your environment" >&2;}
2083 { (exit 1); exit 1; }; }
2084 fi
2085
2086 test "$2" = conftest.file
2087 )
2088then
2089 # Ok.
2090 :
2091else
2092 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2093Check your system clock" >&5
2094echo "$as_me: error: newly created file is older than distributed files!
2095Check your system clock" >&2;}
2096 { (exit 1); exit 1; }; }
2097fi
2098{ echo "$as_me:$LINENO: result: yes" >&5
2099echo "${ECHO_T}yes" >&6; }
2100test "$program_prefix" != NONE &&
2101 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2102# Use a double $ so make ignores it.
2103test "$program_suffix" != NONE &&
2104 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2105# Double any \ or $. echo might interpret backslashes.
2106# By default was `s,x,x', remove it if useless.
2107cat <<\_ACEOF >conftest.sed
2108s/[\\$]/&&/g;s/;s,x,x,$//
2109_ACEOF
2110program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2111rm -f conftest.sed
2112
2113# expand $ac_aux_dir to an absolute path
2114am_aux_dir=`cd $ac_aux_dir && pwd`
2115
2116test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2117# Use eval to expand $SHELL
2118if eval "$MISSING --run true"; then
2119 am_missing_run="$MISSING --run "
2120else
2121 am_missing_run=
2122 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2123echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2124fi
2125
2126{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2127echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2128if test -z "$MKDIR_P"; then
2129 if test "${ac_cv_path_mkdir+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2134do
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 for ac_prog in mkdir gmkdir; do
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2140 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2141 'mkdir (GNU coreutils) '* | \
2142 'mkdir (coreutils) '* | \
2143 'mkdir (fileutils) '4.1*)
2144 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2145 break 3;;
2146 esac
2147 done
2148 done
2149done
2150IFS=$as_save_IFS
2151
2152fi
2153
2154 if test "${ac_cv_path_mkdir+set}" = set; then
2155 MKDIR_P="$ac_cv_path_mkdir -p"
2156 else
2157 # As a last resort, use the slow shell script. Don't cache a
2158 # value for MKDIR_P within a source directory, because that will
2159 # break other packages using the cache if that directory is
2160 # removed, or if the value is a relative name.
2161 test -d ./--version && rmdir ./--version
2162 MKDIR_P="$ac_install_sh -d"
2163 fi
2164fi
2165{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2166echo "${ECHO_T}$MKDIR_P" >&6; }
2167
2168mkdir_p="$MKDIR_P"
2169case $mkdir_p in
2170 [\\/$]* | ?:[\\/]*) ;;
2171 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2172esac
2173
2174for ac_prog in gawk mawk nawk awk
2175do
2176 # Extract the first word of "$ac_prog", so it can be a program name with args.
2177set dummy $ac_prog; ac_word=$2
2178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2180if test "${ac_cv_prog_AWK+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
2183 if test -n "$AWK"; then
2184 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2185else
2186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187for as_dir in $PATH
2188do
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193 ac_cv_prog_AWK="$ac_prog"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 break 2
2196 fi
2197done
2198done
2199IFS=$as_save_IFS
2200
2201fi
2202fi
2203AWK=$ac_cv_prog_AWK
2204if test -n "$AWK"; then
2205 { echo "$as_me:$LINENO: result: $AWK" >&5
2206echo "${ECHO_T}$AWK" >&6; }
2207else
2208 { echo "$as_me:$LINENO: result: no" >&5
2209echo "${ECHO_T}no" >&6; }
2210fi
2211
2212
2213 test -n "$AWK" && break
2214done
2215
2216{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2217echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2218set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2219if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221else
2222 cat >conftest.make <<\_ACEOF
2223SHELL = /bin/sh
2224all:
2225 @echo '@@@%%%=$(MAKE)=@@@%%%'
2226_ACEOF
2227# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2228case `${MAKE-make} -f conftest.make 2>/dev/null` in
2229 *@@@%%%=?*=@@@%%%*)
2230 eval ac_cv_prog_make_${ac_make}_set=yes;;
2231 *)
2232 eval ac_cv_prog_make_${ac_make}_set=no;;
2233esac
2234rm -f conftest.make
2235fi
2236if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2237 { echo "$as_me:$LINENO: result: yes" >&5
2238echo "${ECHO_T}yes" >&6; }
2239 SET_MAKE=
2240else
2241 { echo "$as_me:$LINENO: result: no" >&5
2242echo "${ECHO_T}no" >&6; }
2243 SET_MAKE="MAKE=${MAKE-make}"
2244fi
2245
2246rm -rf .tst 2>/dev/null
2247mkdir .tst 2>/dev/null
2248if test -d .tst; then
2249 am__leading_dot=.
2250else
2251 am__leading_dot=_
2252fi
2253rmdir .tst 2>/dev/null
2254
2255if test "`cd $srcdir && pwd`" != "`pwd`"; then
2256 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2257 # is not polluted with repeated "-I."
2258 am__isrc=' -I$(srcdir)'
2259 # test to see if srcdir already configured
2260 if test -f $srcdir/config.status; then
2261 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2262echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2263 { (exit 1); exit 1; }; }
2264 fi
2265fi
2266
2267# test whether we have cygpath
2268if test -z "$CYGPATH_W"; then
2269 if (cygpath --version) >/dev/null 2>/dev/null; then
2270 CYGPATH_W='cygpath -w'
2271 else
2272 CYGPATH_W=echo
2273 fi
2274fi
2275
2276
2277# Define the identity of the package.
2278 PACKAGE='file'
1594generated by GNU Autoconf 2.61. Invocation command line was
1595
1596 $ $0 $@
1597
1598_ACEOF
1599exec 5>>config.log
1600{
1601cat <<_ASUNAME
1602## --------- ##
1603## Platform. ##
1604## --------- ##
1605
1606hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1607uname -m = `(uname -m) 2>/dev/null || echo unknown`
1608uname -r = `(uname -r) 2>/dev/null || echo unknown`
1609uname -s = `(uname -s) 2>/dev/null || echo unknown`
1610uname -v = `(uname -v) 2>/dev/null || echo unknown`
1611
1612/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1613/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1614
1615/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1616/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1617/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1618/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1619/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1620/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1621/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1622
1623_ASUNAME
1624
1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626for as_dir in $PATH
1627do
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 echo "PATH: $as_dir"
1631done
1632IFS=$as_save_IFS
1633
1634} >&5
1635
1636cat >&5 <<_ACEOF
1637
1638
1639## ----------- ##
1640## Core tests. ##
1641## ----------- ##
1642
1643_ACEOF
1644
1645
1646# Keep a trace of the command line.
1647# Strip out --no-create and --no-recursion so they do not pile up.
1648# Strip out --silent because we don't want to record it for future runs.
1649# Also quote any args containing shell meta-characters.
1650# Make two passes to allow for proper duplicate-argument suppression.
1651ac_configure_args=
1652ac_configure_args0=
1653ac_configure_args1=
1654ac_must_keep_next=false
1655for ac_pass in 1 2
1656do
1657 for ac_arg
1658 do
1659 case $ac_arg in
1660 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1662 | -silent | --silent | --silen | --sile | --sil)
1663 continue ;;
1664 *\'*)
1665 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1666 esac
1667 case $ac_pass in
1668 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1669 2)
1670 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1671 if test $ac_must_keep_next = true; then
1672 ac_must_keep_next=false # Got value, back to normal.
1673 else
1674 case $ac_arg in
1675 *=* | --config-cache | -C | -disable-* | --disable-* \
1676 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1677 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1678 | -with-* | --with-* | -without-* | --without-* | --x)
1679 case "$ac_configure_args0 " in
1680 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1681 esac
1682 ;;
1683 -* ) ac_must_keep_next=true ;;
1684 esac
1685 fi
1686 ac_configure_args="$ac_configure_args '$ac_arg'"
1687 ;;
1688 esac
1689 done
1690done
1691$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1692$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1693
1694# When interrupted or exit'd, cleanup temporary files, and complete
1695# config.log. We remove comments because anyway the quotes in there
1696# would cause problems or look ugly.
1697# WARNING: Use '\'' to represent an apostrophe within the trap.
1698# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1699trap 'exit_status=$?
1700 # Save into config.log some information that might help in debugging.
1701 {
1702 echo
1703
1704 cat <<\_ASBOX
1705## ---------------- ##
1706## Cache variables. ##
1707## ---------------- ##
1708_ASBOX
1709 echo
1710 # The following way of writing the cache mishandles newlines in values,
1711(
1712 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1713 eval ac_val=\$$ac_var
1714 case $ac_val in #(
1715 *${as_nl}*)
1716 case $ac_var in #(
1717 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1718echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1719 esac
1720 case $ac_var in #(
1721 _ | IFS | as_nl) ;; #(
1722 *) $as_unset $ac_var ;;
1723 esac ;;
1724 esac
1725 done
1726 (set) 2>&1 |
1727 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1728 *${as_nl}ac_space=\ *)
1729 sed -n \
1730 "s/'\''/'\''\\\\'\'''\''/g;
1731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1732 ;; #(
1733 *)
1734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1735 ;;
1736 esac |
1737 sort
1738)
1739 echo
1740
1741 cat <<\_ASBOX
1742## ----------------- ##
1743## Output variables. ##
1744## ----------------- ##
1745_ASBOX
1746 echo
1747 for ac_var in $ac_subst_vars
1748 do
1749 eval ac_val=\$$ac_var
1750 case $ac_val in
1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 esac
1753 echo "$ac_var='\''$ac_val'\''"
1754 done | sort
1755 echo
1756
1757 if test -n "$ac_subst_files"; then
1758 cat <<\_ASBOX
1759## ------------------- ##
1760## File substitutions. ##
1761## ------------------- ##
1762_ASBOX
1763 echo
1764 for ac_var in $ac_subst_files
1765 do
1766 eval ac_val=\$$ac_var
1767 case $ac_val in
1768 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 esac
1770 echo "$ac_var='\''$ac_val'\''"
1771 done | sort
1772 echo
1773 fi
1774
1775 if test -s confdefs.h; then
1776 cat <<\_ASBOX
1777## ----------- ##
1778## confdefs.h. ##
1779## ----------- ##
1780_ASBOX
1781 echo
1782 cat confdefs.h
1783 echo
1784 fi
1785 test "$ac_signal" != 0 &&
1786 echo "$as_me: caught signal $ac_signal"
1787 echo "$as_me: exit $exit_status"
1788 } >&5
1789 rm -f core *.core core.conftest.* &&
1790 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1791 exit $exit_status
1792' 0
1793for ac_signal in 1 2 13 15; do
1794 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795done
1796ac_signal=0
1797
1798# confdefs.h avoids OS command line length limits that DEFS can exceed.
1799rm -f -r conftest* confdefs.h
1800
1801# Predefined preprocessor variables.
1802
1803cat >>confdefs.h <<_ACEOF
1804#define PACKAGE_NAME "$PACKAGE_NAME"
1805_ACEOF
1806
1807
1808cat >>confdefs.h <<_ACEOF
1809#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810_ACEOF
1811
1812
1813cat >>confdefs.h <<_ACEOF
1814#define PACKAGE_VERSION "$PACKAGE_VERSION"
1815_ACEOF
1816
1817
1818cat >>confdefs.h <<_ACEOF
1819#define PACKAGE_STRING "$PACKAGE_STRING"
1820_ACEOF
1821
1822
1823cat >>confdefs.h <<_ACEOF
1824#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825_ACEOF
1826
1827
1828# Let the site file select an alternate cache file if it wants to.
1829# Prefer explicitly selected file to automatically selected ones.
1830if test -n "$CONFIG_SITE"; then
1831 set x "$CONFIG_SITE"
1832elif test "x$prefix" != xNONE; then
1833 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1834else
1835 set x "$ac_default_prefix/share/config.site" \
1836 "$ac_default_prefix/etc/config.site"
1837fi
1838shift
1839for ac_site_file
1840do
1841 if test -r "$ac_site_file"; then
1842 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1843echo "$as_me: loading site script $ac_site_file" >&6;}
1844 sed 's/^/| /' "$ac_site_file" >&5
1845 . "$ac_site_file"
1846 fi
1847done
1848
1849if test -r "$cache_file"; then
1850 # Some versions of bash will fail to source /dev/null (special
1851 # files actually), so we avoid doing that.
1852 if test -f "$cache_file"; then
1853 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1854echo "$as_me: loading cache $cache_file" >&6;}
1855 case $cache_file in
1856 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857 *) . "./$cache_file";;
1858 esac
1859 fi
1860else
1861 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1862echo "$as_me: creating cache $cache_file" >&6;}
1863 >$cache_file
1864fi
1865
1866# Check that the precious variables saved in the cache have kept the same
1867# value.
1868ac_cache_corrupted=false
1869for ac_var in $ac_precious_vars; do
1870 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871 eval ac_new_set=\$ac_env_${ac_var}_set
1872 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873 eval ac_new_val=\$ac_env_${ac_var}_value
1874 case $ac_old_set,$ac_new_set in
1875 set,)
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1877echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1879 ,set)
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1881echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1883 ,);;
1884 *)
1885 if test "x$ac_old_val" != "x$ac_new_val"; then
1886 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1887echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1888 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1889echo "$as_me: former value: $ac_old_val" >&2;}
1890 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1891echo "$as_me: current value: $ac_new_val" >&2;}
1892 ac_cache_corrupted=:
1893 fi;;
1894 esac
1895 # Pass precious variables to config.status.
1896 if test "$ac_new_set" = set; then
1897 case $ac_new_val in
1898 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1899 *) ac_arg=$ac_var=$ac_new_val ;;
1900 esac
1901 case " $ac_configure_args " in
1902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1903 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1904 esac
1905 fi
1906done
1907if $ac_cache_corrupted; then
1908 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1909echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1910 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1911echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1912 { (exit 1); exit 1; }; }
1913fi
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939ac_ext=c
1940ac_cpp='$CPP $CPPFLAGS'
1941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944
1945
1946am__api_version='1.10'
1947
1948ac_aux_dir=
1949for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1950 if test -f "$ac_dir/install-sh"; then
1951 ac_aux_dir=$ac_dir
1952 ac_install_sh="$ac_aux_dir/install-sh -c"
1953 break
1954 elif test -f "$ac_dir/install.sh"; then
1955 ac_aux_dir=$ac_dir
1956 ac_install_sh="$ac_aux_dir/install.sh -c"
1957 break
1958 elif test -f "$ac_dir/shtool"; then
1959 ac_aux_dir=$ac_dir
1960 ac_install_sh="$ac_aux_dir/shtool install -c"
1961 break
1962 fi
1963done
1964if test -z "$ac_aux_dir"; then
1965 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1966echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1967 { (exit 1); exit 1; }; }
1968fi
1969
1970# These three variables are undocumented and unsupported,
1971# and are intended to be withdrawn in a future Autoconf release.
1972# They can cause serious problems if a builder's source tree is in a directory
1973# whose full name contains unusual characters.
1974ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1975ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1976ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1977
1978
1979# Find a good install program. We prefer a C program (faster),
1980# so one script is as good as another. But avoid the broken or
1981# incompatible versions:
1982# SysV /etc/install, /usr/sbin/install
1983# SunOS /usr/etc/install
1984# IRIX /sbin/install
1985# AIX /bin/install
1986# AmigaOS /C/install, which installs bootblocks on floppy discs
1987# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1988# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1989# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1990# OS/2's system install, which has a completely different semantic
1991# ./install, which can be erroneously created by make from ./install.sh.
1992{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1993echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1994if test -z "$INSTALL"; then
1995if test "${ac_cv_path_install+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1997else
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999for as_dir in $PATH
2000do
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 # Account for people who put trailing slashes in PATH elements.
2004case $as_dir/ in
2005 ./ | .// | /cC/* | \
2006 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2007 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2008 /usr/ucb/* ) ;;
2009 *)
2010 # OSF1 and SCO ODT 3.0 have their own names for install.
2011 # Don't use installbsd from OSF since it installs stuff as root
2012 # by default.
2013 for ac_prog in ginstall scoinst install; do
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2016 if test $ac_prog = install &&
2017 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2018 # AIX install. It has an incompatible calling convention.
2019 :
2020 elif test $ac_prog = install &&
2021 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2022 # program-specific install script used by HP pwplus--don't use.
2023 :
2024 else
2025 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2026 break 3
2027 fi
2028 fi
2029 done
2030 done
2031 ;;
2032esac
2033done
2034IFS=$as_save_IFS
2035
2036
2037fi
2038 if test "${ac_cv_path_install+set}" = set; then
2039 INSTALL=$ac_cv_path_install
2040 else
2041 # As a last resort, use the slow shell script. Don't cache a
2042 # value for INSTALL within a source directory, because that will
2043 # break other packages using the cache if that directory is
2044 # removed, or if the value is a relative name.
2045 INSTALL=$ac_install_sh
2046 fi
2047fi
2048{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2049echo "${ECHO_T}$INSTALL" >&6; }
2050
2051# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2052# It thinks the first close brace ends the variable substitution.
2053test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2054
2055test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2056
2057test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2058
2059{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2060echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2061# Just in case
2062sleep 1
2063echo timestamp > conftest.file
2064# Do `set' in a subshell so we don't clobber the current shell's
2065# arguments. Must try -L first in case configure is actually a
2066# symlink; some systems play weird games with the mod time of symlinks
2067# (eg FreeBSD returns the mod time of the symlink's containing
2068# directory).
2069if (
2070 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2071 if test "$*" = "X"; then
2072 # -L didn't work.
2073 set X `ls -t $srcdir/configure conftest.file`
2074 fi
2075 rm -f conftest.file
2076 if test "$*" != "X $srcdir/configure conftest.file" \
2077 && test "$*" != "X conftest.file $srcdir/configure"; then
2078
2079 # If neither matched, then we have a broken ls. This can happen
2080 # if, for instance, CONFIG_SHELL is bash and it inherits a
2081 # broken ls alias from the environment. This has actually
2082 # happened. Such a system could not be considered "sane".
2083 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2084alias in your environment" >&5
2085echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2086alias in your environment" >&2;}
2087 { (exit 1); exit 1; }; }
2088 fi
2089
2090 test "$2" = conftest.file
2091 )
2092then
2093 # Ok.
2094 :
2095else
2096 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2097Check your system clock" >&5
2098echo "$as_me: error: newly created file is older than distributed files!
2099Check your system clock" >&2;}
2100 { (exit 1); exit 1; }; }
2101fi
2102{ echo "$as_me:$LINENO: result: yes" >&5
2103echo "${ECHO_T}yes" >&6; }
2104test "$program_prefix" != NONE &&
2105 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2106# Use a double $ so make ignores it.
2107test "$program_suffix" != NONE &&
2108 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2109# Double any \ or $. echo might interpret backslashes.
2110# By default was `s,x,x', remove it if useless.
2111cat <<\_ACEOF >conftest.sed
2112s/[\\$]/&&/g;s/;s,x,x,$//
2113_ACEOF
2114program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2115rm -f conftest.sed
2116
2117# expand $ac_aux_dir to an absolute path
2118am_aux_dir=`cd $ac_aux_dir && pwd`
2119
2120test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2121# Use eval to expand $SHELL
2122if eval "$MISSING --run true"; then
2123 am_missing_run="$MISSING --run "
2124else
2125 am_missing_run=
2126 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2127echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2128fi
2129
2130{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2131echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2132if test -z "$MKDIR_P"; then
2133 if test "${ac_cv_path_mkdir+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2138do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_prog in mkdir gmkdir; do
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2144 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2145 'mkdir (GNU coreutils) '* | \
2146 'mkdir (coreutils) '* | \
2147 'mkdir (fileutils) '4.1*)
2148 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2149 break 3;;
2150 esac
2151 done
2152 done
2153done
2154IFS=$as_save_IFS
2155
2156fi
2157
2158 if test "${ac_cv_path_mkdir+set}" = set; then
2159 MKDIR_P="$ac_cv_path_mkdir -p"
2160 else
2161 # As a last resort, use the slow shell script. Don't cache a
2162 # value for MKDIR_P within a source directory, because that will
2163 # break other packages using the cache if that directory is
2164 # removed, or if the value is a relative name.
2165 test -d ./--version && rmdir ./--version
2166 MKDIR_P="$ac_install_sh -d"
2167 fi
2168fi
2169{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2170echo "${ECHO_T}$MKDIR_P" >&6; }
2171
2172mkdir_p="$MKDIR_P"
2173case $mkdir_p in
2174 [\\/$]* | ?:[\\/]*) ;;
2175 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2176esac
2177
2178for ac_prog in gawk mawk nawk awk
2179do
2180 # Extract the first word of "$ac_prog", so it can be a program name with args.
2181set dummy $ac_prog; ac_word=$2
2182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184if test "${ac_cv_prog_AWK+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186else
2187 if test -n "$AWK"; then
2188 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2189else
2190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191for as_dir in $PATH
2192do
2193 IFS=$as_save_IFS
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197 ac_cv_prog_AWK="$ac_prog"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 break 2
2200 fi
2201done
2202done
2203IFS=$as_save_IFS
2204
2205fi
2206fi
2207AWK=$ac_cv_prog_AWK
2208if test -n "$AWK"; then
2209 { echo "$as_me:$LINENO: result: $AWK" >&5
2210echo "${ECHO_T}$AWK" >&6; }
2211else
2212 { echo "$as_me:$LINENO: result: no" >&5
2213echo "${ECHO_T}no" >&6; }
2214fi
2215
2216
2217 test -n "$AWK" && break
2218done
2219
2220{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2221echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2222set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2223if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225else
2226 cat >conftest.make <<\_ACEOF
2227SHELL = /bin/sh
2228all:
2229 @echo '@@@%%%=$(MAKE)=@@@%%%'
2230_ACEOF
2231# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2232case `${MAKE-make} -f conftest.make 2>/dev/null` in
2233 *@@@%%%=?*=@@@%%%*)
2234 eval ac_cv_prog_make_${ac_make}_set=yes;;
2235 *)
2236 eval ac_cv_prog_make_${ac_make}_set=no;;
2237esac
2238rm -f conftest.make
2239fi
2240if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2241 { echo "$as_me:$LINENO: result: yes" >&5
2242echo "${ECHO_T}yes" >&6; }
2243 SET_MAKE=
2244else
2245 { echo "$as_me:$LINENO: result: no" >&5
2246echo "${ECHO_T}no" >&6; }
2247 SET_MAKE="MAKE=${MAKE-make}"
2248fi
2249
2250rm -rf .tst 2>/dev/null
2251mkdir .tst 2>/dev/null
2252if test -d .tst; then
2253 am__leading_dot=.
2254else
2255 am__leading_dot=_
2256fi
2257rmdir .tst 2>/dev/null
2258
2259if test "`cd $srcdir && pwd`" != "`pwd`"; then
2260 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2261 # is not polluted with repeated "-I."
2262 am__isrc=' -I$(srcdir)'
2263 # test to see if srcdir already configured
2264 if test -f $srcdir/config.status; then
2265 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2266echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2267 { (exit 1); exit 1; }; }
2268 fi
2269fi
2270
2271# test whether we have cygpath
2272if test -z "$CYGPATH_W"; then
2273 if (cygpath --version) >/dev/null 2>/dev/null; then
2274 CYGPATH_W='cygpath -w'
2275 else
2276 CYGPATH_W=echo
2277 fi
2278fi
2279
2280
2281# Define the identity of the package.
2282 PACKAGE='file'
2279 VERSION='5.00'
2283 VERSION='5.03'
2280
2281
2282cat >>confdefs.h <<_ACEOF
2283#define PACKAGE "$PACKAGE"
2284_ACEOF
2285
2286
2287cat >>confdefs.h <<_ACEOF
2288#define VERSION "$VERSION"
2289_ACEOF
2290
2291# Some tools Automake needs.
2292
2293ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2294
2295
2296AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2297
2298
2299AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2300
2301
2302AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2303
2304
2305MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2306
2307install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2308
2309# Installed binaries are usually stripped using `strip' when the user
2310# run `make install-strip'. However `strip' might not be the right
2311# tool to use in cross-compilation environments, therefore Automake
2312# will honor the `STRIP' environment variable to overrule this program.
2313if test "$cross_compiling" != no; then
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2316set dummy ${ac_tool_prefix}strip; ac_word=$2
2317{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2319if test "${ac_cv_prog_STRIP+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321else
2322 if test -n "$STRIP"; then
2323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2324else
2325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH
2327do
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2335 fi
2336done
2337done
2338IFS=$as_save_IFS
2339
2340fi
2341fi
2342STRIP=$ac_cv_prog_STRIP
2343if test -n "$STRIP"; then
2344 { echo "$as_me:$LINENO: result: $STRIP" >&5
2345echo "${ECHO_T}$STRIP" >&6; }
2346else
2347 { echo "$as_me:$LINENO: result: no" >&5
2348echo "${ECHO_T}no" >&6; }
2349fi
2350
2351
2352fi
2353if test -z "$ac_cv_prog_STRIP"; then
2354 ac_ct_STRIP=$STRIP
2355 # Extract the first word of "strip", so it can be a program name with args.
2356set dummy strip; ac_word=$2
2357{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2359if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361else
2362 if test -n "$ac_ct_STRIP"; then
2363 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2364else
2365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366for as_dir in $PATH
2367do
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372 ac_cv_prog_ac_ct_STRIP="strip"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 break 2
2375 fi
2376done
2377done
2378IFS=$as_save_IFS
2379
2380fi
2381fi
2382ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2383if test -n "$ac_ct_STRIP"; then
2384 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2385echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2386else
2387 { echo "$as_me:$LINENO: result: no" >&5
2388echo "${ECHO_T}no" >&6; }
2389fi
2390
2391 if test "x$ac_ct_STRIP" = x; then
2392 STRIP=":"
2393 else
2394 case $cross_compiling:$ac_tool_warned in
2395yes:)
2396{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2397whose name does not start with the host triplet. If you think this
2398configuration is useful to you, please write to autoconf@gnu.org." >&5
2399echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2400whose name does not start with the host triplet. If you think this
2401configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2402ac_tool_warned=yes ;;
2403esac
2404 STRIP=$ac_ct_STRIP
2405 fi
2406else
2407 STRIP="$ac_cv_prog_STRIP"
2408fi
2409
2410fi
2411INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2412
2413# We need awk for the "check" target. The system "awk" is bad on
2414# some platforms.
2415# Always define AMTAR for backward compatibility.
2416
2417AMTAR=${AMTAR-"${am_missing_run}tar"}
2418
2419am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2420
2421
2422
2423
2424
2425ac_config_headers="$ac_config_headers config.h"
2426
2284
2285
2286cat >>confdefs.h <<_ACEOF
2287#define PACKAGE "$PACKAGE"
2288_ACEOF
2289
2290
2291cat >>confdefs.h <<_ACEOF
2292#define VERSION "$VERSION"
2293_ACEOF
2294
2295# Some tools Automake needs.
2296
2297ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2298
2299
2300AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2301
2302
2303AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2304
2305
2306AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2307
2308
2309MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2310
2311install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2312
2313# Installed binaries are usually stripped using `strip' when the user
2314# run `make install-strip'. However `strip' might not be the right
2315# tool to use in cross-compilation environments, therefore Automake
2316# will honor the `STRIP' environment variable to overrule this program.
2317if test "$cross_compiling" != no; then
2318 if test -n "$ac_tool_prefix"; then
2319 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2320set dummy ${ac_tool_prefix}strip; ac_word=$2
2321{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2323if test "${ac_cv_prog_STRIP+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325else
2326 if test -n "$STRIP"; then
2327 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2328else
2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330for as_dir in $PATH
2331do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2339 fi
2340done
2341done
2342IFS=$as_save_IFS
2343
2344fi
2345fi
2346STRIP=$ac_cv_prog_STRIP
2347if test -n "$STRIP"; then
2348 { echo "$as_me:$LINENO: result: $STRIP" >&5
2349echo "${ECHO_T}$STRIP" >&6; }
2350else
2351 { echo "$as_me:$LINENO: result: no" >&5
2352echo "${ECHO_T}no" >&6; }
2353fi
2354
2355
2356fi
2357if test -z "$ac_cv_prog_STRIP"; then
2358 ac_ct_STRIP=$STRIP
2359 # Extract the first word of "strip", so it can be a program name with args.
2360set dummy strip; ac_word=$2
2361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2363if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365else
2366 if test -n "$ac_ct_STRIP"; then
2367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2368else
2369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370for as_dir in $PATH
2371do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_ac_ct_STRIP="strip"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2379 fi
2380done
2381done
2382IFS=$as_save_IFS
2383
2384fi
2385fi
2386ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2387if test -n "$ac_ct_STRIP"; then
2388 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2389echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2390else
2391 { echo "$as_me:$LINENO: result: no" >&5
2392echo "${ECHO_T}no" >&6; }
2393fi
2394
2395 if test "x$ac_ct_STRIP" = x; then
2396 STRIP=":"
2397 else
2398 case $cross_compiling:$ac_tool_warned in
2399yes:)
2400{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2401whose name does not start with the host triplet. If you think this
2402configuration is useful to you, please write to autoconf@gnu.org." >&5
2403echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2404whose name does not start with the host triplet. If you think this
2405configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2406ac_tool_warned=yes ;;
2407esac
2408 STRIP=$ac_ct_STRIP
2409 fi
2410else
2411 STRIP="$ac_cv_prog_STRIP"
2412fi
2413
2414fi
2415INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2416
2417# We need awk for the "check" target. The system "awk" is bad on
2418# some platforms.
2419# Always define AMTAR for backward compatibility.
2420
2421AMTAR=${AMTAR-"${am_missing_run}tar"}
2422
2423am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2424
2425
2426
2427
2428
2429ac_config_headers="$ac_config_headers config.h"
2430
2431#AC_CONFIG_MACRO_DIR([m4])
2427
2428{ echo "$as_me:$LINENO: checking for builtin ELF support" >&5
2429echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6; }
2430# Check whether --enable-elf was given.
2431if test "${enable_elf+set}" = set; then
2432 enableval=$enable_elf; if test "${enableval}" = yes; then
2433 { echo "$as_me:$LINENO: result: yes" >&5
2434echo "${ECHO_T}yes" >&6; }
2435
2436cat >>confdefs.h <<\_ACEOF
2437#define BUILTIN_ELF 1
2438_ACEOF
2439
2440else
2441 { echo "$as_me:$LINENO: result: no" >&5
2442echo "${ECHO_T}no" >&6; }
2443fi
2444else
2445
2446 # enable by default
2447 { echo "$as_me:$LINENO: result: yes" >&5
2448echo "${ECHO_T}yes" >&6; }
2449
2450cat >>confdefs.h <<\_ACEOF
2451#define BUILTIN_ELF 1
2452_ACEOF
2453
2454
2455fi
2456
2457
2458{ echo "$as_me:$LINENO: checking for ELF core file support" >&5
2459echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6; }
2460# Check whether --enable-elf-core was given.
2461if test "${enable_elf_core+set}" = set; then
2462 enableval=$enable_elf_core; if test "${enableval}" = yes; then
2463 { echo "$as_me:$LINENO: result: yes" >&5
2464echo "${ECHO_T}yes" >&6; }
2465
2466cat >>confdefs.h <<\_ACEOF
2467#define ELFCORE 1
2468_ACEOF
2469
2470else
2471 { echo "$as_me:$LINENO: result: no" >&5
2472echo "${ECHO_T}no" >&6; }
2473fi
2474else
2475
2476 # enable by default
2477 { echo "$as_me:$LINENO: result: yes" >&5
2478echo "${ECHO_T}yes" >&6; }
2479
2480cat >>confdefs.h <<\_ACEOF
2481#define ELFCORE 1
2482_ACEOF
2483
2484
2485fi
2486
2487
2488{ echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
2489echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6; }
2490# Check whether --enable-fsect-man5 was given.
2491if test "${enable_fsect_man5+set}" = set; then
2492 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
2493 { echo "$as_me:$LINENO: result: yes" >&5
2494echo "${ECHO_T}yes" >&6; }
2495 fsect=5
2496else
2497 { echo "$as_me:$LINENO: result: no" >&5
2498echo "${ECHO_T}no" >&6; }
2499 fsect=4
2500fi
2501else
2502
2503 # disable by default
2504 { echo "$as_me:$LINENO: result: no" >&5
2505echo "${ECHO_T}no" >&6; }
2506 fsect=4
2507
2508fi
2509
2510
2432
2433{ echo "$as_me:$LINENO: checking for builtin ELF support" >&5
2434echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6; }
2435# Check whether --enable-elf was given.
2436if test "${enable_elf+set}" = set; then
2437 enableval=$enable_elf; if test "${enableval}" = yes; then
2438 { echo "$as_me:$LINENO: result: yes" >&5
2439echo "${ECHO_T}yes" >&6; }
2440
2441cat >>confdefs.h <<\_ACEOF
2442#define BUILTIN_ELF 1
2443_ACEOF
2444
2445else
2446 { echo "$as_me:$LINENO: result: no" >&5
2447echo "${ECHO_T}no" >&6; }
2448fi
2449else
2450
2451 # enable by default
2452 { echo "$as_me:$LINENO: result: yes" >&5
2453echo "${ECHO_T}yes" >&6; }
2454
2455cat >>confdefs.h <<\_ACEOF
2456#define BUILTIN_ELF 1
2457_ACEOF
2458
2459
2460fi
2461
2462
2463{ echo "$as_me:$LINENO: checking for ELF core file support" >&5
2464echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6; }
2465# Check whether --enable-elf-core was given.
2466if test "${enable_elf_core+set}" = set; then
2467 enableval=$enable_elf_core; if test "${enableval}" = yes; then
2468 { echo "$as_me:$LINENO: result: yes" >&5
2469echo "${ECHO_T}yes" >&6; }
2470
2471cat >>confdefs.h <<\_ACEOF
2472#define ELFCORE 1
2473_ACEOF
2474
2475else
2476 { echo "$as_me:$LINENO: result: no" >&5
2477echo "${ECHO_T}no" >&6; }
2478fi
2479else
2480
2481 # enable by default
2482 { echo "$as_me:$LINENO: result: yes" >&5
2483echo "${ECHO_T}yes" >&6; }
2484
2485cat >>confdefs.h <<\_ACEOF
2486#define ELFCORE 1
2487_ACEOF
2488
2489
2490fi
2491
2492
2493{ echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
2494echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6; }
2495# Check whether --enable-fsect-man5 was given.
2496if test "${enable_fsect_man5+set}" = set; then
2497 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
2498 { echo "$as_me:$LINENO: result: yes" >&5
2499echo "${ECHO_T}yes" >&6; }
2500 fsect=5
2501else
2502 { echo "$as_me:$LINENO: result: no" >&5
2503echo "${ECHO_T}no" >&6; }
2504 fsect=4
2505fi
2506else
2507
2508 # disable by default
2509 { echo "$as_me:$LINENO: result: no" >&5
2510echo "${ECHO_T}no" >&6; }
2511 fsect=4
2512
2513fi
2514
2515
2516pkgdatadir='$(datadir)/misc'
2511
2517
2518
2512 if test x$fsect = x5; then
2513 FSECT5_TRUE=
2514 FSECT5_FALSE='#'
2515else
2516 FSECT5_TRUE='#'
2517 FSECT5_FALSE=
2518fi
2519
2520
2521
2522
2523cat >>confdefs.h <<\_ACEOF
2524#define _GNU_SOURCE 1
2525_ACEOF
2526
2527
2528
2529ac_ext=c
2530ac_cpp='$CPP $CPPFLAGS'
2531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534if test -n "$ac_tool_prefix"; then
2535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2536set dummy ${ac_tool_prefix}gcc; ac_word=$2
2537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541else
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2544else
2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2555 fi
2556done
2557done
2558IFS=$as_save_IFS
2559
2560fi
2561fi
2562CC=$ac_cv_prog_CC
2563if test -n "$CC"; then
2564 { echo "$as_me:$LINENO: result: $CC" >&5
2565echo "${ECHO_T}$CC" >&6; }
2566else
2567 { echo "$as_me:$LINENO: result: no" >&5
2568echo "${ECHO_T}no" >&6; }
2569fi
2570
2571
2572fi
2573if test -z "$ac_cv_prog_CC"; then
2574 ac_ct_CC=$CC
2575 # Extract the first word of "gcc", so it can be a program name with args.
2576set dummy gcc; ac_word=$2
2577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2581else
2582 if test -n "$ac_ct_CC"; then
2583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2584else
2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592 ac_cv_prog_ac_ct_CC="gcc"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2595 fi
2596done
2597done
2598IFS=$as_save_IFS
2599
2600fi
2601fi
2602ac_ct_CC=$ac_cv_prog_ac_ct_CC
2603if test -n "$ac_ct_CC"; then
2604 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2605echo "${ECHO_T}$ac_ct_CC" >&6; }
2606else
2607 { echo "$as_me:$LINENO: result: no" >&5
2608echo "${ECHO_T}no" >&6; }
2609fi
2610
2611 if test "x$ac_ct_CC" = x; then
2612 CC=""
2613 else
2614 case $cross_compiling:$ac_tool_warned in
2615yes:)
2616{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2617whose name does not start with the host triplet. If you think this
2618configuration is useful to you, please write to autoconf@gnu.org." >&5
2619echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2620whose name does not start with the host triplet. If you think this
2621configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2622ac_tool_warned=yes ;;
2623esac
2624 CC=$ac_ct_CC
2625 fi
2626else
2627 CC="$ac_cv_prog_CC"
2628fi
2629
2630if test -z "$CC"; then
2631 if test -n "$ac_tool_prefix"; then
2632 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2633set dummy ${ac_tool_prefix}cc; ac_word=$2
2634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636if test "${ac_cv_prog_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_CC="${ac_tool_prefix}cc"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2652 fi
2653done
2654done
2655IFS=$as_save_IFS
2656
2657fi
2658fi
2659CC=$ac_cv_prog_CC
2660if test -n "$CC"; then
2661 { echo "$as_me:$LINENO: result: $CC" >&5
2662echo "${ECHO_T}$CC" >&6; }
2663else
2664 { echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6; }
2666fi
2667
2668
2669 fi
2670fi
2671if test -z "$CC"; then
2672 # Extract the first word of "cc", so it can be a program name with args.
2673set dummy cc; ac_word=$2
2674{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2676if test "${ac_cv_prog_CC+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2678else
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2681else
2682 ac_prog_rejected=no
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2691 ac_prog_rejected=yes
2692 continue
2693 fi
2694 ac_cv_prog_CC="cc"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698done
2699done
2700IFS=$as_save_IFS
2701
2702if test $ac_prog_rejected = yes; then
2703 # We found a bogon in the path, so make sure we never use it.
2704 set dummy $ac_cv_prog_CC
2705 shift
2706 if test $# != 0; then
2707 # We chose a different compiler from the bogus one.
2708 # However, it has the same basename, so the bogon will be chosen
2709 # first if we set CC to just the basename; use the full file name.
2710 shift
2711 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2712 fi
2713fi
2714fi
2715fi
2716CC=$ac_cv_prog_CC
2717if test -n "$CC"; then
2718 { echo "$as_me:$LINENO: result: $CC" >&5
2719echo "${ECHO_T}$CC" >&6; }
2720else
2721 { echo "$as_me:$LINENO: result: no" >&5
2722echo "${ECHO_T}no" >&6; }
2723fi
2724
2725
2726fi
2727if test -z "$CC"; then
2728 if test -n "$ac_tool_prefix"; then
2729 for ac_prog in cl.exe
2730 do
2731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2732set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2735if test "${ac_cv_prog_CC+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737else
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2740else
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752done
2753done
2754IFS=$as_save_IFS
2755
2756fi
2757fi
2758CC=$ac_cv_prog_CC
2759if test -n "$CC"; then
2760 { echo "$as_me:$LINENO: result: $CC" >&5
2761echo "${ECHO_T}$CC" >&6; }
2762else
2763 { echo "$as_me:$LINENO: result: no" >&5
2764echo "${ECHO_T}no" >&6; }
2765fi
2766
2767
2768 test -n "$CC" && break
2769 done
2770fi
2771if test -z "$CC"; then
2772 ac_ct_CC=$CC
2773 for ac_prog in cl.exe
2774do
2775 # Extract the first word of "$ac_prog", so it can be a program name with args.
2776set dummy $ac_prog; ac_word=$2
2777{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2779if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781else
2782 if test -n "$ac_ct_CC"; then
2783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2784else
2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_ac_ct_CC="$ac_prog"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796done
2797done
2798IFS=$as_save_IFS
2799
2800fi
2801fi
2802ac_ct_CC=$ac_cv_prog_ac_ct_CC
2803if test -n "$ac_ct_CC"; then
2804 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2805echo "${ECHO_T}$ac_ct_CC" >&6; }
2806else
2807 { echo "$as_me:$LINENO: result: no" >&5
2808echo "${ECHO_T}no" >&6; }
2809fi
2810
2811
2812 test -n "$ac_ct_CC" && break
2813done
2814
2815 if test "x$ac_ct_CC" = x; then
2816 CC=""
2817 else
2818 case $cross_compiling:$ac_tool_warned in
2819yes:)
2820{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2821whose name does not start with the host triplet. If you think this
2822configuration is useful to you, please write to autoconf@gnu.org." >&5
2823echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2824whose name does not start with the host triplet. If you think this
2825configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2826ac_tool_warned=yes ;;
2827esac
2828 CC=$ac_ct_CC
2829 fi
2830fi
2831
2832fi
2833
2834
2835test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2836See \`config.log' for more details." >&5
2837echo "$as_me: error: no acceptable C compiler found in \$PATH
2838See \`config.log' for more details." >&2;}
2839 { (exit 1); exit 1; }; }
2840
2841# Provide some information about the compiler.
2842echo "$as_me:$LINENO: checking for C compiler version" >&5
2843ac_compiler=`set X $ac_compile; echo $2`
2844{ (ac_try="$ac_compiler --version >&5"
2845case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848esac
2849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_compiler --version >&5") 2>&5
2851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }
2854{ (ac_try="$ac_compiler -v >&5"
2855case "(($ac_try" in
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2858esac
2859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2860 (eval "$ac_compiler -v >&5") 2>&5
2861 ac_status=$?
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }
2864{ (ac_try="$ac_compiler -V >&5"
2865case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868esac
2869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_compiler -V >&5") 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }
2874
2875cat >conftest.$ac_ext <<_ACEOF
2876/* confdefs.h. */
2877_ACEOF
2878cat confdefs.h >>conftest.$ac_ext
2879cat >>conftest.$ac_ext <<_ACEOF
2880/* end confdefs.h. */
2881
2882int
2883main ()
2884{
2885
2886 ;
2887 return 0;
2888}
2889_ACEOF
2890ac_clean_files_save=$ac_clean_files
2891ac_clean_files="$ac_clean_files a.out a.exe b.out"
2892# Try to create an executable without -o first, disregard a.out.
2893# It will help us diagnose broken compilers, and finding out an intuition
2894# of exeext.
2895{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2896echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2897ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2898#
2899# List of possible output files, starting from the most likely.
2900# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2901# only as a last resort. b.out is created by i960 compilers.
2902ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2903#
2904# The IRIX 6 linker writes into existing files which may not be
2905# executable, retaining their permissions. Remove them first so a
2906# subsequent execution test works.
2907ac_rmfiles=
2908for ac_file in $ac_files
2909do
2910 case $ac_file in
2911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2912 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2913 esac
2914done
2915rm -f $ac_rmfiles
2916
2917if { (ac_try="$ac_link_default"
2918case "(($ac_try" in
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2921esac
2922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_link_default") 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; then
2927 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2928# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2929# in a Makefile. We should not override ac_cv_exeext if it was cached,
2930# so that the user can short-circuit this test for compilers unknown to
2931# Autoconf.
2932for ac_file in $ac_files ''
2933do
2934 test -f "$ac_file" || continue
2935 case $ac_file in
2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2937 ;;
2938 [ab].out )
2939 # We found the default executable, but exeext='' is most
2940 # certainly right.
2941 break;;
2942 *.* )
2943 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2944 then :; else
2945 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2946 fi
2947 # We set ac_cv_exeext here because the later test for it is not
2948 # safe: cross compilers may not add the suffix if given an `-o'
2949 # argument, so we may need to know it at that point already.
2950 # Even if this section looks crufty: it has the advantage of
2951 # actually working.
2952 break;;
2953 * )
2954 break;;
2955 esac
2956done
2957test "$ac_cv_exeext" = no && ac_cv_exeext=
2958
2959else
2960 ac_file=''
2961fi
2962
2963{ echo "$as_me:$LINENO: result: $ac_file" >&5
2964echo "${ECHO_T}$ac_file" >&6; }
2965if test -z "$ac_file"; then
2966 echo "$as_me: failed program was:" >&5
2967sed 's/^/| /' conftest.$ac_ext >&5
2968
2969{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2970See \`config.log' for more details." >&5
2971echo "$as_me: error: C compiler cannot create executables
2972See \`config.log' for more details." >&2;}
2973 { (exit 77); exit 77; }; }
2974fi
2975
2976ac_exeext=$ac_cv_exeext
2977
2978# Check that the compiler produces executables we can run. If not, either
2979# the compiler is broken, or we cross compile.
2980{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2981echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2982# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2983# If not cross compiling, check that we can run a simple program.
2984if test "$cross_compiling" != yes; then
2985 if { ac_try='./$ac_file'
2986 { (case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989esac
2990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_try") 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
2995 cross_compiling=no
2996 else
2997 if test "$cross_compiling" = maybe; then
2998 cross_compiling=yes
2999 else
3000 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3001If you meant to cross compile, use \`--host'.
3002See \`config.log' for more details." >&5
3003echo "$as_me: error: cannot run C compiled programs.
3004If you meant to cross compile, use \`--host'.
3005See \`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }
3007 fi
3008 fi
3009fi
3010{ echo "$as_me:$LINENO: result: yes" >&5
3011echo "${ECHO_T}yes" >&6; }
3012
3013rm -f a.out a.exe conftest$ac_cv_exeext b.out
3014ac_clean_files=$ac_clean_files_save
3015# Check that the compiler produces executables we can run. If not, either
3016# the compiler is broken, or we cross compile.
3017{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3018echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3019{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3020echo "${ECHO_T}$cross_compiling" >&6; }
3021
3022{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3023echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3024if { (ac_try="$ac_link"
3025case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028esac
3029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_link") 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; then
3034 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3035# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3036# work properly (i.e., refer to `conftest.exe'), while it won't with
3037# `rm'.
3038for ac_file in conftest.exe conftest conftest.*; do
3039 test -f "$ac_file" || continue
3040 case $ac_file in
3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3042 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3043 break;;
3044 * ) break;;
3045 esac
3046done
3047else
3048 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3049See \`config.log' for more details." >&5
3050echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3051See \`config.log' for more details." >&2;}
3052 { (exit 1); exit 1; }; }
3053fi
3054
3055rm -f conftest$ac_cv_exeext
3056{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3057echo "${ECHO_T}$ac_cv_exeext" >&6; }
3058
3059rm -f conftest.$ac_ext
3060EXEEXT=$ac_cv_exeext
3061ac_exeext=$EXEEXT
3062{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3063echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3064if test "${ac_cv_objext+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066else
3067 cat >conftest.$ac_ext <<_ACEOF
3068/* confdefs.h. */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h. */
3073
3074int
3075main ()
3076{
3077
3078 ;
3079 return 0;
3080}
3081_ACEOF
3082rm -f conftest.o conftest.obj
3083if { (ac_try="$ac_compile"
3084case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087esac
3088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; then
3093 for ac_file in conftest.o conftest.obj conftest.*; do
3094 test -f "$ac_file" || continue;
3095 case $ac_file in
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3097 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3098 break;;
3099 esac
3100done
3101else
3102 echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3106See \`config.log' for more details." >&5
3107echo "$as_me: error: cannot compute suffix of object files: cannot compile
3108See \`config.log' for more details." >&2;}
3109 { (exit 1); exit 1; }; }
3110fi
3111
3112rm -f conftest.$ac_cv_objext conftest.$ac_ext
3113fi
3114{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3115echo "${ECHO_T}$ac_cv_objext" >&6; }
3116OBJEXT=$ac_cv_objext
3117ac_objext=$OBJEXT
3118{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3119echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3120if test "${ac_cv_c_compiler_gnu+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122else
3123 cat >conftest.$ac_ext <<_ACEOF
3124/* confdefs.h. */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h. */
3129
3130int
3131main ()
3132{
3133#ifndef __GNUC__
3134 choke me
3135#endif
3136
3137 ;
3138 return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext
3142if { (ac_try="$ac_compile"
3143case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } && {
3155 test -z "$ac_c_werror_flag" ||
3156 test ! -s conftest.err
3157 } && test -s conftest.$ac_objext; then
3158 ac_compiler_gnu=yes
3159else
3160 echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 ac_compiler_gnu=no
3164fi
3165
3166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167ac_cv_c_compiler_gnu=$ac_compiler_gnu
3168
3169fi
3170{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3171echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3172GCC=`test $ac_compiler_gnu = yes && echo yes`
3173ac_test_CFLAGS=${CFLAGS+set}
3174ac_save_CFLAGS=$CFLAGS
3175{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3176echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3177if test "${ac_cv_prog_cc_g+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3179else
3180 ac_save_c_werror_flag=$ac_c_werror_flag
3181 ac_c_werror_flag=yes
3182 ac_cv_prog_cc_g=no
3183 CFLAGS="-g"
3184 cat >conftest.$ac_ext <<_ACEOF
3185/* confdefs.h. */
3186_ACEOF
3187cat confdefs.h >>conftest.$ac_ext
3188cat >>conftest.$ac_ext <<_ACEOF
3189/* end confdefs.h. */
3190
3191int
3192main ()
3193{
3194
3195 ;
3196 return 0;
3197}
3198_ACEOF
3199rm -f conftest.$ac_objext
3200if { (ac_try="$ac_compile"
3201case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204esac
3205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3207 ac_status=$?
3208 grep -v '^ *+' conftest.er1 >conftest.err
3209 rm -f conftest.er1
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } && {
3213 test -z "$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3215 } && test -s conftest.$ac_objext; then
3216 ac_cv_prog_cc_g=yes
3217else
3218 echo "$as_me: failed program was:" >&5
3219sed 's/^/| /' conftest.$ac_ext >&5
3220
3221 CFLAGS=""
3222 cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
3228
3229int
3230main ()
3231{
3232
3233 ;
3234 return 0;
3235}
3236_ACEOF
3237rm -f conftest.$ac_objext
3238if { (ac_try="$ac_compile"
3239case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242esac
3243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_compile") 2>conftest.er1
3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } && {
3251 test -z "$ac_c_werror_flag" ||
3252 test ! -s conftest.err
3253 } && test -s conftest.$ac_objext; then
3254 :
3255else
3256 echo "$as_me: failed program was:" >&5
3257sed 's/^/| /' conftest.$ac_ext >&5
3258
3259 ac_c_werror_flag=$ac_save_c_werror_flag
3260 CFLAGS="-g"
3261 cat >conftest.$ac_ext <<_ACEOF
3262/* confdefs.h. */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h. */
3267
3268int
3269main ()
3270{
3271
3272 ;
3273 return 0;
3274}
3275_ACEOF
3276rm -f conftest.$ac_objext
3277if { (ac_try="$ac_compile"
3278case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281esac
3282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283 (eval "$ac_compile") 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } && {
3290 test -z "$ac_c_werror_flag" ||
3291 test ! -s conftest.err
3292 } && test -s conftest.$ac_objext; then
3293 ac_cv_prog_cc_g=yes
3294else
3295 echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298
3299fi
3300
3301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302fi
3303
3304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305fi
3306
3307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 ac_c_werror_flag=$ac_save_c_werror_flag
3309fi
3310{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3311echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3312if test "$ac_test_CFLAGS" = set; then
3313 CFLAGS=$ac_save_CFLAGS
3314elif test $ac_cv_prog_cc_g = yes; then
3315 if test "$GCC" = yes; then
3316 CFLAGS="-g -O2"
3317 else
3318 CFLAGS="-g"
3319 fi
3320else
3321 if test "$GCC" = yes; then
3322 CFLAGS="-O2"
3323 else
3324 CFLAGS=
3325 fi
3326fi
3327{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3328echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3329if test "${ac_cv_prog_cc_c89+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331else
3332 ac_cv_prog_cc_c89=no
3333ac_save_CC=$CC
3334cat >conftest.$ac_ext <<_ACEOF
3335/* confdefs.h. */
3336_ACEOF
3337cat confdefs.h >>conftest.$ac_ext
3338cat >>conftest.$ac_ext <<_ACEOF
3339/* end confdefs.h. */
3340#include <stdarg.h>
3341#include <stdio.h>
3342#include <sys/types.h>
3343#include <sys/stat.h>
3344/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3345struct buf { int x; };
3346FILE * (*rcsopen) (struct buf *, struct stat *, int);
3347static char *e (p, i)
3348 char **p;
3349 int i;
3350{
3351 return p[i];
3352}
3353static char *f (char * (*g) (char **, int), char **p, ...)
3354{
3355 char *s;
3356 va_list v;
3357 va_start (v,p);
3358 s = g (p, va_arg (v,int));
3359 va_end (v);
3360 return s;
3361}
3362
3363/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3364 function prototypes and stuff, but not '\xHH' hex character constants.
3365 These don't provoke an error unfortunately, instead are silently treated
3366 as 'x'. The following induces an error, until -std is added to get
3367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3368 array size at least. It's necessary to write '\x00'==0 to get something
3369 that's true only with -std. */
3370int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3371
3372/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3373 inside strings and character constants. */
3374#define FOO(x) 'x'
3375int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3376
3377int test (int i, double x);
3378struct s1 {int (*f) (int a);};
3379struct s2 {int (*f) (double a);};
3380int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3381int argc;
3382char **argv;
3383int
3384main ()
3385{
3386return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3387 ;
3388 return 0;
3389}
3390_ACEOF
3391for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3392 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3393do
3394 CC="$ac_save_CC $ac_arg"
3395 rm -f conftest.$ac_objext
3396if { (ac_try="$ac_compile"
3397case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400esac
3401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402 (eval "$ac_compile") 2>conftest.er1
3403 ac_status=$?
3404 grep -v '^ *+' conftest.er1 >conftest.err
3405 rm -f conftest.er1
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } && {
3409 test -z "$ac_c_werror_flag" ||
3410 test ! -s conftest.err
3411 } && test -s conftest.$ac_objext; then
3412 ac_cv_prog_cc_c89=$ac_arg
3413else
3414 echo "$as_me: failed program was:" >&5
3415sed 's/^/| /' conftest.$ac_ext >&5
3416
3417
3418fi
3419
3420rm -f core conftest.err conftest.$ac_objext
3421 test "x$ac_cv_prog_cc_c89" != "xno" && break
3422done
3423rm -f conftest.$ac_ext
3424CC=$ac_save_CC
3425
3426fi
3427# AC_CACHE_VAL
3428case "x$ac_cv_prog_cc_c89" in
3429 x)
3430 { echo "$as_me:$LINENO: result: none needed" >&5
3431echo "${ECHO_T}none needed" >&6; } ;;
3432 xno)
3433 { echo "$as_me:$LINENO: result: unsupported" >&5
3434echo "${ECHO_T}unsupported" >&6; } ;;
3435 *)
3436 CC="$CC $ac_cv_prog_cc_c89"
3437 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3438echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3439esac
3440
3441
3442ac_ext=c
3443ac_cpp='$CPP $CPPFLAGS'
3444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447DEPDIR="${am__leading_dot}deps"
3448
3449ac_config_commands="$ac_config_commands depfiles"
3450
3451
3452am_make=${MAKE-make}
3453cat > confinc << 'END'
3454am__doit:
3455 @echo done
3456.PHONY: am__doit
3457END
3458# If we don't find an include directive, just comment out the code.
3459{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3460echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3461am__include="#"
3462am__quote=
3463_am_result=none
3464# First try GNU make style include.
3465echo "include confinc" > confmf
3466# We grep out `Entering directory' and `Leaving directory'
3467# messages which can occur if `w' ends up in MAKEFLAGS.
3468# In particular we don't look at `^make:' because GNU make might
3469# be invoked under some other name (usually "gmake"), in which
3470# case it prints its new name instead of `make'.
3471if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3472 am__include=include
3473 am__quote=
3474 _am_result=GNU
3475fi
3476# Now try BSD make style include.
3477if test "$am__include" = "#"; then
3478 echo '.include "confinc"' > confmf
3479 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3480 am__include=.include
3481 am__quote="\""
3482 _am_result=BSD
3483 fi
3484fi
3485
3486
3487{ echo "$as_me:$LINENO: result: $_am_result" >&5
3488echo "${ECHO_T}$_am_result" >&6; }
3489rm -f confinc confmf
3490
3491# Check whether --enable-dependency-tracking was given.
3492if test "${enable_dependency_tracking+set}" = set; then
3493 enableval=$enable_dependency_tracking;
3494fi
3495
3496if test "x$enable_dependency_tracking" != xno; then
3497 am_depcomp="$ac_aux_dir/depcomp"
3498 AMDEPBACKSLASH='\'
3499fi
3500 if test "x$enable_dependency_tracking" != xno; then
3501 AMDEP_TRUE=
3502 AMDEP_FALSE='#'
3503else
3504 AMDEP_TRUE='#'
3505 AMDEP_FALSE=
3506fi
3507
3508
3509
3510depcc="$CC" am_compiler_list=
3511
3512{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3513echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3514if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516else
3517 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3518 # We make a subdir and do the tests there. Otherwise we can end up
3519 # making bogus files that we don't know about and never remove. For
3520 # instance it was reported that on HP-UX the gcc test will end up
3521 # making a dummy file named `D' -- because `-MD' means `put the output
3522 # in D'.
3523 mkdir conftest.dir
3524 # Copy depcomp to subdir because otherwise we won't find it if we're
3525 # using a relative directory.
3526 cp "$am_depcomp" conftest.dir
3527 cd conftest.dir
3528 # We will build objects and dependencies in a subdirectory because
3529 # it helps to detect inapplicable dependency modes. For instance
3530 # both Tru64's cc and ICC support -MD to output dependencies as a
3531 # side effect of compilation, but ICC will put the dependencies in
3532 # the current directory while Tru64 will put them in the object
3533 # directory.
3534 mkdir sub
3535
3536 am_cv_CC_dependencies_compiler_type=none
3537 if test "$am_compiler_list" = ""; then
3538 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3539 fi
3540 for depmode in $am_compiler_list; do
3541 # Setup a source with many dependencies, because some compilers
3542 # like to wrap large dependency lists on column 80 (with \), and
3543 # we should not choose a depcomp mode which is confused by this.
3544 #
3545 # We need to recreate these files for each test, as the compiler may
3546 # overwrite some of them when testing with obscure command lines.
3547 # This happens at least with the AIX C compiler.
3548 : > sub/conftest.c
3549 for i in 1 2 3 4 5 6; do
3550 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3551 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3552 # Solaris 8's {/usr,}/bin/sh.
3553 touch sub/conftst$i.h
3554 done
3555 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3556
3557 case $depmode in
3558 nosideeffect)
3559 # after this tag, mechanisms are not by side-effect, so they'll
3560 # only be used when explicitly requested
3561 if test "x$enable_dependency_tracking" = xyes; then
3562 continue
3563 else
3564 break
3565 fi
3566 ;;
3567 none) break ;;
3568 esac
3569 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3570 # mode. It turns out that the SunPro C++ compiler does not properly
3571 # handle `-M -o', and we need to detect this.
3572 if depmode=$depmode \
3573 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3574 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3575 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3576 >/dev/null 2>conftest.err &&
3577 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3578 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3579 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3580 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3581 # icc doesn't choke on unknown options, it will just issue warnings
3582 # or remarks (even with -Werror). So we grep stderr for any message
3583 # that says an option was ignored or not supported.
3584 # When given -MP, icc 7.0 and 7.1 complain thusly:
3585 # icc: Command line warning: ignoring option '-M'; no argument required
3586 # The diagnosis changed in icc 8.0:
3587 # icc: Command line remark: option '-MP' not supported
3588 if (grep 'ignoring option' conftest.err ||
3589 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3590 am_cv_CC_dependencies_compiler_type=$depmode
3591 break
3592 fi
3593 fi
3594 done
3595
3596 cd ..
3597 rm -rf conftest.dir
3598else
3599 am_cv_CC_dependencies_compiler_type=none
3600fi
3601
3602fi
3603{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3604echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3605CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3606
3607 if
3608 test "x$enable_dependency_tracking" != xno \
3609 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3610 am__fastdepCC_TRUE=
3611 am__fastdepCC_FALSE='#'
3612else
3613 am__fastdepCC_TRUE='#'
3614 am__fastdepCC_FALSE=
3615fi
3616
3617
3618if test "x$CC" != xcc; then
3619 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3620echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3621else
3622 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3623echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3624fi
3625set dummy $CC; ac_cc=`echo $2 |
3626 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3627if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630 cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h. */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h. */
3636
3637int
3638main ()
3639{
3640
3641 ;
3642 return 0;
3643}
3644_ACEOF
3645# Make sure it works both with $CC and with simple cc.
3646# We do the test twice because some compilers refuse to overwrite an
3647# existing .o file with -o, though they will create one.
3648ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3649rm -f conftest2.*
3650if { (case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653esac
3654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3655 (eval "$ac_try") 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662esac
3663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664 (eval "$ac_try") 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); };
3668then
3669 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3670 if test "x$CC" != xcc; then
3671 # Test first that cc exists at all.
3672 if { ac_try='cc -c conftest.$ac_ext >&5'
3673 { (case "(($ac_try" in
3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675 *) ac_try_echo=$ac_try;;
3676esac
3677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3678 (eval "$ac_try") 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3683 rm -f conftest2.*
3684 if { (case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3687esac
3688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_try") 2>&5
3690 ac_status=$?
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
3693 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696esac
3697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_try") 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); };
3702 then
3703 # cc works too.
3704 :
3705 else
3706 # cc exists but doesn't like -o.
3707 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3708 fi
3709 fi
3710 fi
3711else
3712 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3713fi
3714rm -f core conftest*
3715
3716fi
3717if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3718 { echo "$as_me:$LINENO: result: yes" >&5
3719echo "${ECHO_T}yes" >&6; }
3720else
3721 { echo "$as_me:$LINENO: result: no" >&5
3722echo "${ECHO_T}no" >&6; }
3723
3724cat >>confdefs.h <<\_ACEOF
3725#define NO_MINUS_C_MINUS_O 1
3726_ACEOF
3727
3728fi
3729
3730# FIXME: we rely on the cache variable name because
3731# there is no other way.
3732set dummy $CC
3733ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3734if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3735 # Losing compiler, so override with the script.
3736 # FIXME: It is wrong to rewrite CC.
3737 # But if we don't then we get into trouble of one sort or another.
3738 # A longer-term fix would be to have automake use am__CC in this case,
3739 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3740 CC="$am_aux_dir/compile $CC"
3741fi
3742
3743
3744# Find a good install program. We prefer a C program (faster),
3745# so one script is as good as another. But avoid the broken or
3746# incompatible versions:
3747# SysV /etc/install, /usr/sbin/install
3748# SunOS /usr/etc/install
3749# IRIX /sbin/install
3750# AIX /bin/install
3751# AmigaOS /C/install, which installs bootblocks on floppy discs
3752# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3753# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3754# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3755# OS/2's system install, which has a completely different semantic
3756# ./install, which can be erroneously created by make from ./install.sh.
3757{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3758echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3759if test -z "$INSTALL"; then
3760if test "${ac_cv_path_install+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764for as_dir in $PATH
3765do
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 # Account for people who put trailing slashes in PATH elements.
3769case $as_dir/ in
3770 ./ | .// | /cC/* | \
3771 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3772 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3773 /usr/ucb/* ) ;;
3774 *)
3775 # OSF1 and SCO ODT 3.0 have their own names for install.
3776 # Don't use installbsd from OSF since it installs stuff as root
3777 # by default.
3778 for ac_prog in ginstall scoinst install; do
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3781 if test $ac_prog = install &&
3782 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3783 # AIX install. It has an incompatible calling convention.
3784 :
3785 elif test $ac_prog = install &&
3786 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3787 # program-specific install script used by HP pwplus--don't use.
3788 :
3789 else
3790 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3791 break 3
3792 fi
3793 fi
3794 done
3795 done
3796 ;;
3797esac
3798done
3799IFS=$as_save_IFS
3800
3801
3802fi
3803 if test "${ac_cv_path_install+set}" = set; then
3804 INSTALL=$ac_cv_path_install
3805 else
3806 # As a last resort, use the slow shell script. Don't cache a
3807 # value for INSTALL within a source directory, because that will
3808 # break other packages using the cache if that directory is
3809 # removed, or if the value is a relative name.
3810 INSTALL=$ac_install_sh
3811 fi
3812fi
3813{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3814echo "${ECHO_T}$INSTALL" >&6; }
3815
3816# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3817# It thinks the first close brace ends the variable substitution.
3818test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3819
3820test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3821
3822test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3823
3824{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3825echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3826LN_S=$as_ln_s
3827if test "$LN_S" = "ln -s"; then
3828 { echo "$as_me:$LINENO: result: yes" >&5
3829echo "${ECHO_T}yes" >&6; }
3830else
3831 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3832echo "${ECHO_T}no, using $LN_S" >&6; }
3833fi
3834
3835# Check whether --enable-shared was given.
3836if test "${enable_shared+set}" = set; then
3837 enableval=$enable_shared; p=${PACKAGE-default}
3838 case $enableval in
3839 yes) enable_shared=yes ;;
3840 no) enable_shared=no ;;
3841 *)
3842 enable_shared=no
3843 # Look at the argument we got. We use all the common list separators.
3844 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3845 for pkg in $enableval; do
3846 IFS="$lt_save_ifs"
3847 if test "X$pkg" = "X$p"; then
3848 enable_shared=yes
3849 fi
3850 done
3851 IFS="$lt_save_ifs"
3852 ;;
3853 esac
3854else
3855 enable_shared=yes
3856fi
3857
3858
3859# Check whether --enable-static was given.
3860if test "${enable_static+set}" = set; then
3861 enableval=$enable_static; p=${PACKAGE-default}
3862 case $enableval in
3863 yes) enable_static=yes ;;
3864 no) enable_static=no ;;
3865 *)
3866 enable_static=no
3867 # Look at the argument we got. We use all the common list separators.
3868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3869 for pkg in $enableval; do
3870 IFS="$lt_save_ifs"
3871 if test "X$pkg" = "X$p"; then
3872 enable_static=yes
3873 fi
3874 done
3875 IFS="$lt_save_ifs"
3876 ;;
3877 esac
3878else
3879 enable_static=yes
3880fi
3881
3882
3883# Check whether --enable-fast-install was given.
3884if test "${enable_fast_install+set}" = set; then
3885 enableval=$enable_fast_install; p=${PACKAGE-default}
3886 case $enableval in
3887 yes) enable_fast_install=yes ;;
3888 no) enable_fast_install=no ;;
3889 *)
3890 enable_fast_install=no
3891 # Look at the argument we got. We use all the common list separators.
3892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3893 for pkg in $enableval; do
3894 IFS="$lt_save_ifs"
3895 if test "X$pkg" = "X$p"; then
3896 enable_fast_install=yes
3897 fi
3898 done
3899 IFS="$lt_save_ifs"
3900 ;;
3901 esac
3902else
3903 enable_fast_install=yes
3904fi
3905
3906
3907# Make sure we can run config.sub.
3908$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3909 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3910echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3911 { (exit 1); exit 1; }; }
3912
3913{ echo "$as_me:$LINENO: checking build system type" >&5
3914echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3915if test "${ac_cv_build+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917else
3918 ac_build_alias=$build_alias
3919test "x$ac_build_alias" = x &&
3920 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3921test "x$ac_build_alias" = x &&
3922 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3923echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3924 { (exit 1); exit 1; }; }
3925ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3926 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3927echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3928 { (exit 1); exit 1; }; }
3929
3930fi
3931{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3932echo "${ECHO_T}$ac_cv_build" >&6; }
3933case $ac_cv_build in
3934*-*-*) ;;
3935*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3936echo "$as_me: error: invalid value of canonical build" >&2;}
3937 { (exit 1); exit 1; }; };;
3938esac
3939build=$ac_cv_build
3940ac_save_IFS=$IFS; IFS='-'
3941set x $ac_cv_build
3942shift
3943build_cpu=$1
3944build_vendor=$2
3945shift; shift
3946# Remember, the first character of IFS is used to create $*,
3947# except with old shells:
3948build_os=$*
3949IFS=$ac_save_IFS
3950case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3951
3952
3953{ echo "$as_me:$LINENO: checking host system type" >&5
3954echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3955if test "${ac_cv_host+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957else
3958 if test "x$host_alias" = x; then
3959 ac_cv_host=$ac_cv_build
3960else
3961 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3962 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3963echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3964 { (exit 1); exit 1; }; }
3965fi
3966
3967fi
3968{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3969echo "${ECHO_T}$ac_cv_host" >&6; }
3970case $ac_cv_host in
3971*-*-*) ;;
3972*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3973echo "$as_me: error: invalid value of canonical host" >&2;}
3974 { (exit 1); exit 1; }; };;
3975esac
3976host=$ac_cv_host
3977ac_save_IFS=$IFS; IFS='-'
3978set x $ac_cv_host
3979shift
3980host_cpu=$1
3981host_vendor=$2
3982shift; shift
3983# Remember, the first character of IFS is used to create $*,
3984# except with old shells:
3985host_os=$*
3986IFS=$ac_save_IFS
3987case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3988
3989
3990{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3991echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3992if test "${lt_cv_path_SED+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994else
3995 # Loop through the user's path and test for sed and gsed.
3996# Then use that list of sed's as ones to test for truncation.
3997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH
3999do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for lt_ac_prog in sed gsed; do
4003 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if test x$fsect = x5; then
2520 FSECT5_TRUE=
2521 FSECT5_FALSE='#'
2522else
2523 FSECT5_TRUE='#'
2524 FSECT5_FALSE=
2525fi
2526
2527
2528
2529
2530cat >>confdefs.h <<\_ACEOF
2531#define _GNU_SOURCE 1
2532_ACEOF
2533
2534
2535
2536ac_ext=c
2537ac_cpp='$CPP $CPPFLAGS'
2538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541if test -n "$ac_tool_prefix"; then
2542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2543set dummy ${ac_tool_prefix}gcc; ac_word=$2
2544{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2546if test "${ac_cv_prog_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2551else
2552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2559 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2562 fi
2563done
2564done
2565IFS=$as_save_IFS
2566
2567fi
2568fi
2569CC=$ac_cv_prog_CC
2570if test -n "$CC"; then
2571 { echo "$as_me:$LINENO: result: $CC" >&5
2572echo "${ECHO_T}$CC" >&6; }
2573else
2574 { echo "$as_me:$LINENO: result: no" >&5
2575echo "${ECHO_T}no" >&6; }
2576fi
2577
2578
2579fi
2580if test -z "$ac_cv_prog_CC"; then
2581 ac_ct_CC=$CC
2582 # Extract the first word of "gcc", so it can be a program name with args.
2583set dummy gcc; ac_word=$2
2584{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588else
2589 if test -n "$ac_ct_CC"; then
2590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591else
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_ac_ct_CC="gcc"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2602 fi
2603done
2604done
2605IFS=$as_save_IFS
2606
2607fi
2608fi
2609ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610if test -n "$ac_ct_CC"; then
2611 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2612echo "${ECHO_T}$ac_ct_CC" >&6; }
2613else
2614 { echo "$as_me:$LINENO: result: no" >&5
2615echo "${ECHO_T}no" >&6; }
2616fi
2617
2618 if test "x$ac_ct_CC" = x; then
2619 CC=""
2620 else
2621 case $cross_compiling:$ac_tool_warned in
2622yes:)
2623{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2624whose name does not start with the host triplet. If you think this
2625configuration is useful to you, please write to autoconf@gnu.org." >&5
2626echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2627whose name does not start with the host triplet. If you think this
2628configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2629ac_tool_warned=yes ;;
2630esac
2631 CC=$ac_ct_CC
2632 fi
2633else
2634 CC="$ac_cv_prog_CC"
2635fi
2636
2637if test -z "$CC"; then
2638 if test -n "$ac_tool_prefix"; then
2639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2640set dummy ${ac_tool_prefix}cc; ac_word=$2
2641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643if test "${ac_cv_prog_CC+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC="$CC" # Let the user override the test.
2648else
2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_CC="${ac_tool_prefix}cc"
2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2659 fi
2660done
2661done
2662IFS=$as_save_IFS
2663
2664fi
2665fi
2666CC=$ac_cv_prog_CC
2667if test -n "$CC"; then
2668 { echo "$as_me:$LINENO: result: $CC" >&5
2669echo "${ECHO_T}$CC" >&6; }
2670else
2671 { echo "$as_me:$LINENO: result: no" >&5
2672echo "${ECHO_T}no" >&6; }
2673fi
2674
2675
2676 fi
2677fi
2678if test -z "$CC"; then
2679 # Extract the first word of "cc", so it can be a program name with args.
2680set dummy cc; ac_word=$2
2681{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683if test "${ac_cv_prog_CC+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686 if test -n "$CC"; then
2687 ac_cv_prog_CC="$CC" # Let the user override the test.
2688else
2689 ac_prog_rejected=no
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2698 ac_prog_rejected=yes
2699 continue
2700 fi
2701 ac_cv_prog_CC="cc"
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2704 fi
2705done
2706done
2707IFS=$as_save_IFS
2708
2709if test $ac_prog_rejected = yes; then
2710 # We found a bogon in the path, so make sure we never use it.
2711 set dummy $ac_cv_prog_CC
2712 shift
2713 if test $# != 0; then
2714 # We chose a different compiler from the bogus one.
2715 # However, it has the same basename, so the bogon will be chosen
2716 # first if we set CC to just the basename; use the full file name.
2717 shift
2718 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2719 fi
2720fi
2721fi
2722fi
2723CC=$ac_cv_prog_CC
2724if test -n "$CC"; then
2725 { echo "$as_me:$LINENO: result: $CC" >&5
2726echo "${ECHO_T}$CC" >&6; }
2727else
2728 { echo "$as_me:$LINENO: result: no" >&5
2729echo "${ECHO_T}no" >&6; }
2730fi
2731
2732
2733fi
2734if test -z "$CC"; then
2735 if test -n "$ac_tool_prefix"; then
2736 for ac_prog in cl.exe
2737 do
2738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2739set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2740{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2742if test "${ac_cv_prog_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744else
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747else
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759done
2760done
2761IFS=$as_save_IFS
2762
2763fi
2764fi
2765CC=$ac_cv_prog_CC
2766if test -n "$CC"; then
2767 { echo "$as_me:$LINENO: result: $CC" >&5
2768echo "${ECHO_T}$CC" >&6; }
2769else
2770 { echo "$as_me:$LINENO: result: no" >&5
2771echo "${ECHO_T}no" >&6; }
2772fi
2773
2774
2775 test -n "$CC" && break
2776 done
2777fi
2778if test -z "$CC"; then
2779 ac_ct_CC=$CC
2780 for ac_prog in cl.exe
2781do
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783set dummy $ac_prog; ac_word=$2
2784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2786if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2788else
2789 if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_ac_ct_CC="$ac_prog"
2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803done
2804done
2805IFS=$as_save_IFS
2806
2807fi
2808fi
2809ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810if test -n "$ac_ct_CC"; then
2811 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2812echo "${ECHO_T}$ac_ct_CC" >&6; }
2813else
2814 { echo "$as_me:$LINENO: result: no" >&5
2815echo "${ECHO_T}no" >&6; }
2816fi
2817
2818
2819 test -n "$ac_ct_CC" && break
2820done
2821
2822 if test "x$ac_ct_CC" = x; then
2823 CC=""
2824 else
2825 case $cross_compiling:$ac_tool_warned in
2826yes:)
2827{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2828whose name does not start with the host triplet. If you think this
2829configuration is useful to you, please write to autoconf@gnu.org." >&5
2830echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2831whose name does not start with the host triplet. If you think this
2832configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2833ac_tool_warned=yes ;;
2834esac
2835 CC=$ac_ct_CC
2836 fi
2837fi
2838
2839fi
2840
2841
2842test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2843See \`config.log' for more details." >&5
2844echo "$as_me: error: no acceptable C compiler found in \$PATH
2845See \`config.log' for more details." >&2;}
2846 { (exit 1); exit 1; }; }
2847
2848# Provide some information about the compiler.
2849echo "$as_me:$LINENO: checking for C compiler version" >&5
2850ac_compiler=`set X $ac_compile; echo $2`
2851{ (ac_try="$ac_compiler --version >&5"
2852case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855esac
2856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857 (eval "$ac_compiler --version >&5") 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }
2861{ (ac_try="$ac_compiler -v >&5"
2862case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865esac
2866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_compiler -v >&5") 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }
2871{ (ac_try="$ac_compiler -V >&5"
2872case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875esac
2876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_compiler -V >&5") 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }
2881
2882cat >conftest.$ac_ext <<_ACEOF
2883/* confdefs.h. */
2884_ACEOF
2885cat confdefs.h >>conftest.$ac_ext
2886cat >>conftest.$ac_ext <<_ACEOF
2887/* end confdefs.h. */
2888
2889int
2890main ()
2891{
2892
2893 ;
2894 return 0;
2895}
2896_ACEOF
2897ac_clean_files_save=$ac_clean_files
2898ac_clean_files="$ac_clean_files a.out a.exe b.out"
2899# Try to create an executable without -o first, disregard a.out.
2900# It will help us diagnose broken compilers, and finding out an intuition
2901# of exeext.
2902{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2903echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2904ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2905#
2906# List of possible output files, starting from the most likely.
2907# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2908# only as a last resort. b.out is created by i960 compilers.
2909ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2910#
2911# The IRIX 6 linker writes into existing files which may not be
2912# executable, retaining their permissions. Remove them first so a
2913# subsequent execution test works.
2914ac_rmfiles=
2915for ac_file in $ac_files
2916do
2917 case $ac_file in
2918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2919 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2920 esac
2921done
2922rm -f $ac_rmfiles
2923
2924if { (ac_try="$ac_link_default"
2925case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928esac
2929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_link_default") 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; then
2934 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2935# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2936# in a Makefile. We should not override ac_cv_exeext if it was cached,
2937# so that the user can short-circuit this test for compilers unknown to
2938# Autoconf.
2939for ac_file in $ac_files ''
2940do
2941 test -f "$ac_file" || continue
2942 case $ac_file in
2943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2944 ;;
2945 [ab].out )
2946 # We found the default executable, but exeext='' is most
2947 # certainly right.
2948 break;;
2949 *.* )
2950 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2951 then :; else
2952 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2953 fi
2954 # We set ac_cv_exeext here because the later test for it is not
2955 # safe: cross compilers may not add the suffix if given an `-o'
2956 # argument, so we may need to know it at that point already.
2957 # Even if this section looks crufty: it has the advantage of
2958 # actually working.
2959 break;;
2960 * )
2961 break;;
2962 esac
2963done
2964test "$ac_cv_exeext" = no && ac_cv_exeext=
2965
2966else
2967 ac_file=''
2968fi
2969
2970{ echo "$as_me:$LINENO: result: $ac_file" >&5
2971echo "${ECHO_T}$ac_file" >&6; }
2972if test -z "$ac_file"; then
2973 echo "$as_me: failed program was:" >&5
2974sed 's/^/| /' conftest.$ac_ext >&5
2975
2976{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2977See \`config.log' for more details." >&5
2978echo "$as_me: error: C compiler cannot create executables
2979See \`config.log' for more details." >&2;}
2980 { (exit 77); exit 77; }; }
2981fi
2982
2983ac_exeext=$ac_cv_exeext
2984
2985# Check that the compiler produces executables we can run. If not, either
2986# the compiler is broken, or we cross compile.
2987{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2988echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2989# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2990# If not cross compiling, check that we can run a simple program.
2991if test "$cross_compiling" != yes; then
2992 if { ac_try='./$ac_file'
2993 { (case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996esac
2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_try") 2>&5
2999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3002 cross_compiling=no
3003 else
3004 if test "$cross_compiling" = maybe; then
3005 cross_compiling=yes
3006 else
3007 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3008If you meant to cross compile, use \`--host'.
3009See \`config.log' for more details." >&5
3010echo "$as_me: error: cannot run C compiled programs.
3011If you meant to cross compile, use \`--host'.
3012See \`config.log' for more details." >&2;}
3013 { (exit 1); exit 1; }; }
3014 fi
3015 fi
3016fi
3017{ echo "$as_me:$LINENO: result: yes" >&5
3018echo "${ECHO_T}yes" >&6; }
3019
3020rm -f a.out a.exe conftest$ac_cv_exeext b.out
3021ac_clean_files=$ac_clean_files_save
3022# Check that the compiler produces executables we can run. If not, either
3023# the compiler is broken, or we cross compile.
3024{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3025echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3026{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3027echo "${ECHO_T}$cross_compiling" >&6; }
3028
3029{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3030echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3031if { (ac_try="$ac_link"
3032case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_link") 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; then
3041 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3042# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3043# work properly (i.e., refer to `conftest.exe'), while it won't with
3044# `rm'.
3045for ac_file in conftest.exe conftest conftest.*; do
3046 test -f "$ac_file" || continue
3047 case $ac_file in
3048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3049 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3050 break;;
3051 * ) break;;
3052 esac
3053done
3054else
3055 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3056See \`config.log' for more details." >&5
3057echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3058See \`config.log' for more details." >&2;}
3059 { (exit 1); exit 1; }; }
3060fi
3061
3062rm -f conftest$ac_cv_exeext
3063{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3064echo "${ECHO_T}$ac_cv_exeext" >&6; }
3065
3066rm -f conftest.$ac_ext
3067EXEEXT=$ac_cv_exeext
3068ac_exeext=$EXEEXT
3069{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3070echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3071if test "${ac_cv_objext+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073else
3074 cat >conftest.$ac_ext <<_ACEOF
3075/* confdefs.h. */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h. */
3080
3081int
3082main ()
3083{
3084
3085 ;
3086 return 0;
3087}
3088_ACEOF
3089rm -f conftest.o conftest.obj
3090if { (ac_try="$ac_compile"
3091case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_compile") 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; then
3100 for ac_file in conftest.o conftest.obj conftest.*; do
3101 test -f "$ac_file" || continue;
3102 case $ac_file in
3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3104 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3105 break;;
3106 esac
3107done
3108else
3109 echo "$as_me: failed program was:" >&5
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3113See \`config.log' for more details." >&5
3114echo "$as_me: error: cannot compute suffix of object files: cannot compile
3115See \`config.log' for more details." >&2;}
3116 { (exit 1); exit 1; }; }
3117fi
3118
3119rm -f conftest.$ac_cv_objext conftest.$ac_ext
3120fi
3121{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3122echo "${ECHO_T}$ac_cv_objext" >&6; }
3123OBJEXT=$ac_cv_objext
3124ac_objext=$OBJEXT
3125{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3126echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3127if test "${ac_cv_c_compiler_gnu+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129else
3130 cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h. */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h. */
3136
3137int
3138main ()
3139{
3140#ifndef __GNUC__
3141 choke me
3142#endif
3143
3144 ;
3145 return 0;
3146}
3147_ACEOF
3148rm -f conftest.$ac_objext
3149if { (ac_try="$ac_compile"
3150case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compile") 2>conftest.er1
3156 ac_status=$?
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } && {
3162 test -z "$ac_c_werror_flag" ||
3163 test ! -s conftest.err
3164 } && test -s conftest.$ac_objext; then
3165 ac_compiler_gnu=yes
3166else
3167 echo "$as_me: failed program was:" >&5
3168sed 's/^/| /' conftest.$ac_ext >&5
3169
3170 ac_compiler_gnu=no
3171fi
3172
3173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174ac_cv_c_compiler_gnu=$ac_compiler_gnu
3175
3176fi
3177{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3178echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3179GCC=`test $ac_compiler_gnu = yes && echo yes`
3180ac_test_CFLAGS=${CFLAGS+set}
3181ac_save_CFLAGS=$CFLAGS
3182{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3183echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3184if test "${ac_cv_prog_cc_g+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186else
3187 ac_save_c_werror_flag=$ac_c_werror_flag
3188 ac_c_werror_flag=yes
3189 ac_cv_prog_cc_g=no
3190 CFLAGS="-g"
3191 cat >conftest.$ac_ext <<_ACEOF
3192/* confdefs.h. */
3193_ACEOF
3194cat confdefs.h >>conftest.$ac_ext
3195cat >>conftest.$ac_ext <<_ACEOF
3196/* end confdefs.h. */
3197
3198int
3199main ()
3200{
3201
3202 ;
3203 return 0;
3204}
3205_ACEOF
3206rm -f conftest.$ac_objext
3207if { (ac_try="$ac_compile"
3208case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211esac
3212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_compile") 2>conftest.er1
3214 ac_status=$?
3215 grep -v '^ *+' conftest.er1 >conftest.err
3216 rm -f conftest.er1
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } && {
3220 test -z "$ac_c_werror_flag" ||
3221 test ! -s conftest.err
3222 } && test -s conftest.$ac_objext; then
3223 ac_cv_prog_cc_g=yes
3224else
3225 echo "$as_me: failed program was:" >&5
3226sed 's/^/| /' conftest.$ac_ext >&5
3227
3228 CFLAGS=""
3229 cat >conftest.$ac_ext <<_ACEOF
3230/* confdefs.h. */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h. */
3235
3236int
3237main ()
3238{
3239
3240 ;
3241 return 0;
3242}
3243_ACEOF
3244rm -f conftest.$ac_objext
3245if { (ac_try="$ac_compile"
3246case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249esac
3250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_compile") 2>conftest.er1
3252 ac_status=$?
3253 grep -v '^ *+' conftest.er1 >conftest.err
3254 rm -f conftest.er1
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } && {
3258 test -z "$ac_c_werror_flag" ||
3259 test ! -s conftest.err
3260 } && test -s conftest.$ac_objext; then
3261 :
3262else
3263 echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3267 CFLAGS="-g"
3268 cat >conftest.$ac_ext <<_ACEOF
3269/* confdefs.h. */
3270_ACEOF
3271cat confdefs.h >>conftest.$ac_ext
3272cat >>conftest.$ac_ext <<_ACEOF
3273/* end confdefs.h. */
3274
3275int
3276main ()
3277{
3278
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283rm -f conftest.$ac_objext
3284if { (ac_try="$ac_compile"
3285case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288esac
3289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } && {
3297 test -z "$ac_c_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
3300 ac_cv_prog_cc_g=yes
3301else
3302 echo "$as_me: failed program was:" >&5
3303sed 's/^/| /' conftest.$ac_ext >&5
3304
3305
3306fi
3307
3308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309fi
3310
3311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312fi
3313
3314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315 ac_c_werror_flag=$ac_save_c_werror_flag
3316fi
3317{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3318echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3319if test "$ac_test_CFLAGS" = set; then
3320 CFLAGS=$ac_save_CFLAGS
3321elif test $ac_cv_prog_cc_g = yes; then
3322 if test "$GCC" = yes; then
3323 CFLAGS="-g -O2"
3324 else
3325 CFLAGS="-g"
3326 fi
3327else
3328 if test "$GCC" = yes; then
3329 CFLAGS="-O2"
3330 else
3331 CFLAGS=
3332 fi
3333fi
3334{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3335echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3336if test "${ac_cv_prog_cc_c89+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338else
3339 ac_cv_prog_cc_c89=no
3340ac_save_CC=$CC
3341cat >conftest.$ac_ext <<_ACEOF
3342/* confdefs.h. */
3343_ACEOF
3344cat confdefs.h >>conftest.$ac_ext
3345cat >>conftest.$ac_ext <<_ACEOF
3346/* end confdefs.h. */
3347#include <stdarg.h>
3348#include <stdio.h>
3349#include <sys/types.h>
3350#include <sys/stat.h>
3351/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3352struct buf { int x; };
3353FILE * (*rcsopen) (struct buf *, struct stat *, int);
3354static char *e (p, i)
3355 char **p;
3356 int i;
3357{
3358 return p[i];
3359}
3360static char *f (char * (*g) (char **, int), char **p, ...)
3361{
3362 char *s;
3363 va_list v;
3364 va_start (v,p);
3365 s = g (p, va_arg (v,int));
3366 va_end (v);
3367 return s;
3368}
3369
3370/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3371 function prototypes and stuff, but not '\xHH' hex character constants.
3372 These don't provoke an error unfortunately, instead are silently treated
3373 as 'x'. The following induces an error, until -std is added to get
3374 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3375 array size at least. It's necessary to write '\x00'==0 to get something
3376 that's true only with -std. */
3377int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3378
3379/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3380 inside strings and character constants. */
3381#define FOO(x) 'x'
3382int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3383
3384int test (int i, double x);
3385struct s1 {int (*f) (int a);};
3386struct s2 {int (*f) (double a);};
3387int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3388int argc;
3389char **argv;
3390int
3391main ()
3392{
3393return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3394 ;
3395 return 0;
3396}
3397_ACEOF
3398for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3399 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3400do
3401 CC="$ac_save_CC $ac_arg"
3402 rm -f conftest.$ac_objext
3403if { (ac_try="$ac_compile"
3404case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407esac
3408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_compile") 2>conftest.er1
3410 ac_status=$?
3411 grep -v '^ *+' conftest.er1 >conftest.err
3412 rm -f conftest.er1
3413 cat conftest.err >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } && {
3416 test -z "$ac_c_werror_flag" ||
3417 test ! -s conftest.err
3418 } && test -s conftest.$ac_objext; then
3419 ac_cv_prog_cc_c89=$ac_arg
3420else
3421 echo "$as_me: failed program was:" >&5
3422sed 's/^/| /' conftest.$ac_ext >&5
3423
3424
3425fi
3426
3427rm -f core conftest.err conftest.$ac_objext
3428 test "x$ac_cv_prog_cc_c89" != "xno" && break
3429done
3430rm -f conftest.$ac_ext
3431CC=$ac_save_CC
3432
3433fi
3434# AC_CACHE_VAL
3435case "x$ac_cv_prog_cc_c89" in
3436 x)
3437 { echo "$as_me:$LINENO: result: none needed" >&5
3438echo "${ECHO_T}none needed" >&6; } ;;
3439 xno)
3440 { echo "$as_me:$LINENO: result: unsupported" >&5
3441echo "${ECHO_T}unsupported" >&6; } ;;
3442 *)
3443 CC="$CC $ac_cv_prog_cc_c89"
3444 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3445echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3446esac
3447
3448
3449ac_ext=c
3450ac_cpp='$CPP $CPPFLAGS'
3451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454DEPDIR="${am__leading_dot}deps"
3455
3456ac_config_commands="$ac_config_commands depfiles"
3457
3458
3459am_make=${MAKE-make}
3460cat > confinc << 'END'
3461am__doit:
3462 @echo done
3463.PHONY: am__doit
3464END
3465# If we don't find an include directive, just comment out the code.
3466{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3467echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3468am__include="#"
3469am__quote=
3470_am_result=none
3471# First try GNU make style include.
3472echo "include confinc" > confmf
3473# We grep out `Entering directory' and `Leaving directory'
3474# messages which can occur if `w' ends up in MAKEFLAGS.
3475# In particular we don't look at `^make:' because GNU make might
3476# be invoked under some other name (usually "gmake"), in which
3477# case it prints its new name instead of `make'.
3478if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3479 am__include=include
3480 am__quote=
3481 _am_result=GNU
3482fi
3483# Now try BSD make style include.
3484if test "$am__include" = "#"; then
3485 echo '.include "confinc"' > confmf
3486 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3487 am__include=.include
3488 am__quote="\""
3489 _am_result=BSD
3490 fi
3491fi
3492
3493
3494{ echo "$as_me:$LINENO: result: $_am_result" >&5
3495echo "${ECHO_T}$_am_result" >&6; }
3496rm -f confinc confmf
3497
3498# Check whether --enable-dependency-tracking was given.
3499if test "${enable_dependency_tracking+set}" = set; then
3500 enableval=$enable_dependency_tracking;
3501fi
3502
3503if test "x$enable_dependency_tracking" != xno; then
3504 am_depcomp="$ac_aux_dir/depcomp"
3505 AMDEPBACKSLASH='\'
3506fi
3507 if test "x$enable_dependency_tracking" != xno; then
3508 AMDEP_TRUE=
3509 AMDEP_FALSE='#'
3510else
3511 AMDEP_TRUE='#'
3512 AMDEP_FALSE=
3513fi
3514
3515
3516
3517depcc="$CC" am_compiler_list=
3518
3519{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3520echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3521if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3525 # We make a subdir and do the tests there. Otherwise we can end up
3526 # making bogus files that we don't know about and never remove. For
3527 # instance it was reported that on HP-UX the gcc test will end up
3528 # making a dummy file named `D' -- because `-MD' means `put the output
3529 # in D'.
3530 mkdir conftest.dir
3531 # Copy depcomp to subdir because otherwise we won't find it if we're
3532 # using a relative directory.
3533 cp "$am_depcomp" conftest.dir
3534 cd conftest.dir
3535 # We will build objects and dependencies in a subdirectory because
3536 # it helps to detect inapplicable dependency modes. For instance
3537 # both Tru64's cc and ICC support -MD to output dependencies as a
3538 # side effect of compilation, but ICC will put the dependencies in
3539 # the current directory while Tru64 will put them in the object
3540 # directory.
3541 mkdir sub
3542
3543 am_cv_CC_dependencies_compiler_type=none
3544 if test "$am_compiler_list" = ""; then
3545 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3546 fi
3547 for depmode in $am_compiler_list; do
3548 # Setup a source with many dependencies, because some compilers
3549 # like to wrap large dependency lists on column 80 (with \), and
3550 # we should not choose a depcomp mode which is confused by this.
3551 #
3552 # We need to recreate these files for each test, as the compiler may
3553 # overwrite some of them when testing with obscure command lines.
3554 # This happens at least with the AIX C compiler.
3555 : > sub/conftest.c
3556 for i in 1 2 3 4 5 6; do
3557 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3558 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3559 # Solaris 8's {/usr,}/bin/sh.
3560 touch sub/conftst$i.h
3561 done
3562 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3563
3564 case $depmode in
3565 nosideeffect)
3566 # after this tag, mechanisms are not by side-effect, so they'll
3567 # only be used when explicitly requested
3568 if test "x$enable_dependency_tracking" = xyes; then
3569 continue
3570 else
3571 break
3572 fi
3573 ;;
3574 none) break ;;
3575 esac
3576 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3577 # mode. It turns out that the SunPro C++ compiler does not properly
3578 # handle `-M -o', and we need to detect this.
3579 if depmode=$depmode \
3580 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3581 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3582 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3583 >/dev/null 2>conftest.err &&
3584 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3585 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3586 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3587 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3588 # icc doesn't choke on unknown options, it will just issue warnings
3589 # or remarks (even with -Werror). So we grep stderr for any message
3590 # that says an option was ignored or not supported.
3591 # When given -MP, icc 7.0 and 7.1 complain thusly:
3592 # icc: Command line warning: ignoring option '-M'; no argument required
3593 # The diagnosis changed in icc 8.0:
3594 # icc: Command line remark: option '-MP' not supported
3595 if (grep 'ignoring option' conftest.err ||
3596 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3597 am_cv_CC_dependencies_compiler_type=$depmode
3598 break
3599 fi
3600 fi
3601 done
3602
3603 cd ..
3604 rm -rf conftest.dir
3605else
3606 am_cv_CC_dependencies_compiler_type=none
3607fi
3608
3609fi
3610{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3611echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3612CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3613
3614 if
3615 test "x$enable_dependency_tracking" != xno \
3616 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3617 am__fastdepCC_TRUE=
3618 am__fastdepCC_FALSE='#'
3619else
3620 am__fastdepCC_TRUE='#'
3621 am__fastdepCC_FALSE=
3622fi
3623
3624
3625if test "x$CC" != xcc; then
3626 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3627echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3628else
3629 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3630echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3631fi
3632set dummy $CC; ac_cc=`echo $2 |
3633 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3634if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3636else
3637 cat >conftest.$ac_ext <<_ACEOF
3638/* confdefs.h. */
3639_ACEOF
3640cat confdefs.h >>conftest.$ac_ext
3641cat >>conftest.$ac_ext <<_ACEOF
3642/* end confdefs.h. */
3643
3644int
3645main ()
3646{
3647
3648 ;
3649 return 0;
3650}
3651_ACEOF
3652# Make sure it works both with $CC and with simple cc.
3653# We do the test twice because some compilers refuse to overwrite an
3654# existing .o file with -o, though they will create one.
3655ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3656rm -f conftest2.*
3657if { (case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660esac
3661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_try") 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669esac
3670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_try") 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); };
3675then
3676 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3677 if test "x$CC" != xcc; then
3678 # Test first that cc exists at all.
3679 if { ac_try='cc -c conftest.$ac_ext >&5'
3680 { (case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3683esac
3684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685 (eval "$ac_try") 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3690 rm -f conftest2.*
3691 if { (case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3694esac
3695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_try") 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } &&
3700 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703esac
3704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705 (eval "$ac_try") 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); };
3709 then
3710 # cc works too.
3711 :
3712 else
3713 # cc exists but doesn't like -o.
3714 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3715 fi
3716 fi
3717 fi
3718else
3719 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3720fi
3721rm -f core conftest*
3722
3723fi
3724if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3725 { echo "$as_me:$LINENO: result: yes" >&5
3726echo "${ECHO_T}yes" >&6; }
3727else
3728 { echo "$as_me:$LINENO: result: no" >&5
3729echo "${ECHO_T}no" >&6; }
3730
3731cat >>confdefs.h <<\_ACEOF
3732#define NO_MINUS_C_MINUS_O 1
3733_ACEOF
3734
3735fi
3736
3737# FIXME: we rely on the cache variable name because
3738# there is no other way.
3739set dummy $CC
3740ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3741if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3742 # Losing compiler, so override with the script.
3743 # FIXME: It is wrong to rewrite CC.
3744 # But if we don't then we get into trouble of one sort or another.
3745 # A longer-term fix would be to have automake use am__CC in this case,
3746 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3747 CC="$am_aux_dir/compile $CC"
3748fi
3749
3750
3751# Find a good install program. We prefer a C program (faster),
3752# so one script is as good as another. But avoid the broken or
3753# incompatible versions:
3754# SysV /etc/install, /usr/sbin/install
3755# SunOS /usr/etc/install
3756# IRIX /sbin/install
3757# AIX /bin/install
3758# AmigaOS /C/install, which installs bootblocks on floppy discs
3759# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3760# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3761# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3762# OS/2's system install, which has a completely different semantic
3763# ./install, which can be erroneously created by make from ./install.sh.
3764{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3765echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3766if test -z "$INSTALL"; then
3767if test "${ac_cv_path_install+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769else
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH
3772do
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 # Account for people who put trailing slashes in PATH elements.
3776case $as_dir/ in
3777 ./ | .// | /cC/* | \
3778 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3779 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3780 /usr/ucb/* ) ;;
3781 *)
3782 # OSF1 and SCO ODT 3.0 have their own names for install.
3783 # Don't use installbsd from OSF since it installs stuff as root
3784 # by default.
3785 for ac_prog in ginstall scoinst install; do
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3788 if test $ac_prog = install &&
3789 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3790 # AIX install. It has an incompatible calling convention.
3791 :
3792 elif test $ac_prog = install &&
3793 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3794 # program-specific install script used by HP pwplus--don't use.
3795 :
3796 else
3797 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3798 break 3
3799 fi
3800 fi
3801 done
3802 done
3803 ;;
3804esac
3805done
3806IFS=$as_save_IFS
3807
3808
3809fi
3810 if test "${ac_cv_path_install+set}" = set; then
3811 INSTALL=$ac_cv_path_install
3812 else
3813 # As a last resort, use the slow shell script. Don't cache a
3814 # value for INSTALL within a source directory, because that will
3815 # break other packages using the cache if that directory is
3816 # removed, or if the value is a relative name.
3817 INSTALL=$ac_install_sh
3818 fi
3819fi
3820{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3821echo "${ECHO_T}$INSTALL" >&6; }
3822
3823# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3824# It thinks the first close brace ends the variable substitution.
3825test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3826
3827test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3828
3829test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3830
3831{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3832echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3833LN_S=$as_ln_s
3834if test "$LN_S" = "ln -s"; then
3835 { echo "$as_me:$LINENO: result: yes" >&5
3836echo "${ECHO_T}yes" >&6; }
3837else
3838 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3839echo "${ECHO_T}no, using $LN_S" >&6; }
3840fi
3841
3842# Check whether --enable-shared was given.
3843if test "${enable_shared+set}" = set; then
3844 enableval=$enable_shared; p=${PACKAGE-default}
3845 case $enableval in
3846 yes) enable_shared=yes ;;
3847 no) enable_shared=no ;;
3848 *)
3849 enable_shared=no
3850 # Look at the argument we got. We use all the common list separators.
3851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3852 for pkg in $enableval; do
3853 IFS="$lt_save_ifs"
3854 if test "X$pkg" = "X$p"; then
3855 enable_shared=yes
3856 fi
3857 done
3858 IFS="$lt_save_ifs"
3859 ;;
3860 esac
3861else
3862 enable_shared=yes
3863fi
3864
3865
3866# Check whether --enable-static was given.
3867if test "${enable_static+set}" = set; then
3868 enableval=$enable_static; p=${PACKAGE-default}
3869 case $enableval in
3870 yes) enable_static=yes ;;
3871 no) enable_static=no ;;
3872 *)
3873 enable_static=no
3874 # Look at the argument we got. We use all the common list separators.
3875 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3876 for pkg in $enableval; do
3877 IFS="$lt_save_ifs"
3878 if test "X$pkg" = "X$p"; then
3879 enable_static=yes
3880 fi
3881 done
3882 IFS="$lt_save_ifs"
3883 ;;
3884 esac
3885else
3886 enable_static=yes
3887fi
3888
3889
3890# Check whether --enable-fast-install was given.
3891if test "${enable_fast_install+set}" = set; then
3892 enableval=$enable_fast_install; p=${PACKAGE-default}
3893 case $enableval in
3894 yes) enable_fast_install=yes ;;
3895 no) enable_fast_install=no ;;
3896 *)
3897 enable_fast_install=no
3898 # Look at the argument we got. We use all the common list separators.
3899 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3900 for pkg in $enableval; do
3901 IFS="$lt_save_ifs"
3902 if test "X$pkg" = "X$p"; then
3903 enable_fast_install=yes
3904 fi
3905 done
3906 IFS="$lt_save_ifs"
3907 ;;
3908 esac
3909else
3910 enable_fast_install=yes
3911fi
3912
3913
3914# Make sure we can run config.sub.
3915$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3916 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3917echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3918 { (exit 1); exit 1; }; }
3919
3920{ echo "$as_me:$LINENO: checking build system type" >&5
3921echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3922if test "${ac_cv_build+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924else
3925 ac_build_alias=$build_alias
3926test "x$ac_build_alias" = x &&
3927 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3928test "x$ac_build_alias" = x &&
3929 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3930echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3931 { (exit 1); exit 1; }; }
3932ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3933 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3934echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3935 { (exit 1); exit 1; }; }
3936
3937fi
3938{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3939echo "${ECHO_T}$ac_cv_build" >&6; }
3940case $ac_cv_build in
3941*-*-*) ;;
3942*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3943echo "$as_me: error: invalid value of canonical build" >&2;}
3944 { (exit 1); exit 1; }; };;
3945esac
3946build=$ac_cv_build
3947ac_save_IFS=$IFS; IFS='-'
3948set x $ac_cv_build
3949shift
3950build_cpu=$1
3951build_vendor=$2
3952shift; shift
3953# Remember, the first character of IFS is used to create $*,
3954# except with old shells:
3955build_os=$*
3956IFS=$ac_save_IFS
3957case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3958
3959
3960{ echo "$as_me:$LINENO: checking host system type" >&5
3961echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3962if test "${ac_cv_host+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964else
3965 if test "x$host_alias" = x; then
3966 ac_cv_host=$ac_cv_build
3967else
3968 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3969 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3970echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3971 { (exit 1); exit 1; }; }
3972fi
3973
3974fi
3975{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3976echo "${ECHO_T}$ac_cv_host" >&6; }
3977case $ac_cv_host in
3978*-*-*) ;;
3979*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3980echo "$as_me: error: invalid value of canonical host" >&2;}
3981 { (exit 1); exit 1; }; };;
3982esac
3983host=$ac_cv_host
3984ac_save_IFS=$IFS; IFS='-'
3985set x $ac_cv_host
3986shift
3987host_cpu=$1
3988host_vendor=$2
3989shift; shift
3990# Remember, the first character of IFS is used to create $*,
3991# except with old shells:
3992host_os=$*
3993IFS=$ac_save_IFS
3994case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3995
3996
3997{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3998echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3999if test "${lt_cv_path_SED+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002 # Loop through the user's path and test for sed and gsed.
4003# Then use that list of sed's as ones to test for truncation.
4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH
4006do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for lt_ac_prog in sed gsed; do
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4011 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4005 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4006 fi
4007 done
4008 done
4009done
4012 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4013 fi
4014 done
4015 done
4016done
4017IFS=$as_save_IFS
4010lt_ac_max=0
4011lt_ac_count=0
4012# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4013# along with /bin/sed that truncates output.
4014for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4015 test ! -f $lt_ac_sed && continue
4016 cat /dev/null > conftest.in
4017 lt_ac_count=0
4018 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4019 # Check for GNU sed and select it if it is found.
4020 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4021 lt_cv_path_SED=$lt_ac_sed
4022 break
4023 fi
4024 while true; do
4025 cat conftest.in conftest.in >conftest.tmp
4026 mv conftest.tmp conftest.in
4027 cp conftest.in conftest.nl
4028 echo >>conftest.nl
4029 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4030 cmp -s conftest.out conftest.nl || break
4031 # 10000 chars as input seems more than enough
4032 test $lt_ac_count -gt 10 && break
4033 lt_ac_count=`expr $lt_ac_count + 1`
4034 if test $lt_ac_count -gt $lt_ac_max; then
4035 lt_ac_max=$lt_ac_count
4036 lt_cv_path_SED=$lt_ac_sed
4037 fi
4038 done
4039done
4040
4041fi
4042
4043SED=$lt_cv_path_SED
4018lt_ac_max=0
4019lt_ac_count=0
4020# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4021# along with /bin/sed that truncates output.
4022for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4023 test ! -f $lt_ac_sed && continue
4024 cat /dev/null > conftest.in
4025 lt_ac_count=0
4026 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4027 # Check for GNU sed and select it if it is found.
4028 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4029 lt_cv_path_SED=$lt_ac_sed
4030 break
4031 fi
4032 while true; do
4033 cat conftest.in conftest.in >conftest.tmp
4034 mv conftest.tmp conftest.in
4035 cp conftest.in conftest.nl
4036 echo >>conftest.nl
4037 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4038 cmp -s conftest.out conftest.nl || break
4039 # 10000 chars as input seems more than enough
4040 test $lt_ac_count -gt 10 && break
4041 lt_ac_count=`expr $lt_ac_count + 1`
4042 if test $lt_ac_count -gt $lt_ac_max; then
4043 lt_ac_max=$lt_ac_count
4044 lt_cv_path_SED=$lt_ac_sed
4045 fi
4046 done
4047done
4048
4049fi
4050
4051SED=$lt_cv_path_SED
4052
4044{ echo "$as_me:$LINENO: result: $SED" >&5
4045echo "${ECHO_T}$SED" >&6; }
4046
4047{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4048echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4049if test "${ac_cv_path_GREP+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051else
4052 # Extract the first word of "grep ggrep" to use in msg output
4053if test -z "$GREP"; then
4054set dummy grep ggrep; ac_prog_name=$2
4055if test "${ac_cv_path_GREP+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057else
4058 ac_path_GREP_found=false
4059# Loop through the user's path and test for each of PROGNAME-LIST
4060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4062do
4063 IFS=$as_save_IFS
4064 test -z "$as_dir" && as_dir=.
4065 for ac_prog in grep ggrep; do
4066 for ac_exec_ext in '' $ac_executable_extensions; do
4067 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4068 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4069 # Check for GNU ac_path_GREP and select it if it is found.
4070 # Check for GNU $ac_path_GREP
4071case `"$ac_path_GREP" --version 2>&1` in
4072*GNU*)
4073 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4074*)
4075 ac_count=0
4076 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4077 while :
4078 do
4079 cat "conftest.in" "conftest.in" >"conftest.tmp"
4080 mv "conftest.tmp" "conftest.in"
4081 cp "conftest.in" "conftest.nl"
4082 echo 'GREP' >> "conftest.nl"
4083 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4085 ac_count=`expr $ac_count + 1`
4086 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4087 # Best one so far, save it but keep looking for a better one
4088 ac_cv_path_GREP="$ac_path_GREP"
4089 ac_path_GREP_max=$ac_count
4090 fi
4091 # 10*(2^10) chars as input seems more than enough
4092 test $ac_count -gt 10 && break
4093 done
4094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4095esac
4096
4097
4098 $ac_path_GREP_found && break 3
4099 done
4100done
4101
4102done
4103IFS=$as_save_IFS
4104
4105
4106fi
4107
4108GREP="$ac_cv_path_GREP"
4109if test -z "$GREP"; then
4110 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4111echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4112 { (exit 1); exit 1; }; }
4113fi
4114
4115else
4116 ac_cv_path_GREP=$GREP
4117fi
4118
4119
4120fi
4121{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4122echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4123 GREP="$ac_cv_path_GREP"
4124
4125
4126{ echo "$as_me:$LINENO: checking for egrep" >&5
4127echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4128if test "${ac_cv_path_EGREP+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4130else
4131 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4132 then ac_cv_path_EGREP="$GREP -E"
4133 else
4134 # Extract the first word of "egrep" to use in msg output
4135if test -z "$EGREP"; then
4136set dummy egrep; ac_prog_name=$2
4137if test "${ac_cv_path_EGREP+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139else
4140 ac_path_EGREP_found=false
4141# Loop through the user's path and test for each of PROGNAME-LIST
4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4144do
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
4147 for ac_prog in egrep; do
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4150 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4151 # Check for GNU ac_path_EGREP and select it if it is found.
4152 # Check for GNU $ac_path_EGREP
4153case `"$ac_path_EGREP" --version 2>&1` in
4154*GNU*)
4155 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4156*)
4157 ac_count=0
4158 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4159 while :
4160 do
4161 cat "conftest.in" "conftest.in" >"conftest.tmp"
4162 mv "conftest.tmp" "conftest.in"
4163 cp "conftest.in" "conftest.nl"
4164 echo 'EGREP' >> "conftest.nl"
4165 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4167 ac_count=`expr $ac_count + 1`
4168 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4169 # Best one so far, save it but keep looking for a better one
4170 ac_cv_path_EGREP="$ac_path_EGREP"
4171 ac_path_EGREP_max=$ac_count
4172 fi
4173 # 10*(2^10) chars as input seems more than enough
4174 test $ac_count -gt 10 && break
4175 done
4176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4177esac
4178
4179
4180 $ac_path_EGREP_found && break 3
4181 done
4182done
4183
4184done
4185IFS=$as_save_IFS
4186
4187
4188fi
4189
4190EGREP="$ac_cv_path_EGREP"
4191if test -z "$EGREP"; then
4192 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4193echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4194 { (exit 1); exit 1; }; }
4195fi
4196
4197else
4198 ac_cv_path_EGREP=$EGREP
4199fi
4200
4201
4202 fi
4203fi
4204{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4205echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4206 EGREP="$ac_cv_path_EGREP"
4207
4208
4209
4210# Check whether --with-gnu-ld was given.
4211if test "${with_gnu_ld+set}" = set; then
4212 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4213else
4214 with_gnu_ld=no
4215fi
4216
4217ac_prog=ld
4218if test "$GCC" = yes; then
4219 # Check if gcc -print-prog-name=ld gives a path.
4220 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4221echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4222 case $host in
4223 *-*-mingw*)
4224 # gcc leaves a trailing carriage return which upsets mingw
4225 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4226 *)
4227 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4228 esac
4229 case $ac_prog in
4230 # Accept absolute paths.
4231 [\\/]* | ?:[\\/]*)
4232 re_direlt='/[^/][^/]*/\.\./'
4233 # Canonicalize the pathname of ld
4234 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4235 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4236 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4237 done
4238 test -z "$LD" && LD="$ac_prog"
4239 ;;
4240 "")
4241 # If it fails, then pretend we aren't using GCC.
4242 ac_prog=ld
4243 ;;
4244 *)
4245 # If it is relative, then search for the first ld in PATH.
4246 with_gnu_ld=unknown
4247 ;;
4248 esac
4249elif test "$with_gnu_ld" = yes; then
4250 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4251echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4252else
4253 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4254echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4255fi
4256if test "${lt_cv_path_LD+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4258else
4259 if test -z "$LD"; then
4260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4261 for ac_dir in $PATH; do
4262 IFS="$lt_save_ifs"
4263 test -z "$ac_dir" && ac_dir=.
4264 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4265 lt_cv_path_LD="$ac_dir/$ac_prog"
4266 # Check to see if the program is GNU ld. I'd rather use --version,
4053{ echo "$as_me:$LINENO: result: $SED" >&5
4054echo "${ECHO_T}$SED" >&6; }
4055
4056{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4057echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4058if test "${ac_cv_path_GREP+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060else
4061 # Extract the first word of "grep ggrep" to use in msg output
4062if test -z "$GREP"; then
4063set dummy grep ggrep; ac_prog_name=$2
4064if test "${ac_cv_path_GREP+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066else
4067 ac_path_GREP_found=false
4068# Loop through the user's path and test for each of PROGNAME-LIST
4069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4071do
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_prog in grep ggrep; do
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4077 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4078 # Check for GNU ac_path_GREP and select it if it is found.
4079 # Check for GNU $ac_path_GREP
4080case `"$ac_path_GREP" --version 2>&1` in
4081*GNU*)
4082 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4083*)
4084 ac_count=0
4085 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4086 while :
4087 do
4088 cat "conftest.in" "conftest.in" >"conftest.tmp"
4089 mv "conftest.tmp" "conftest.in"
4090 cp "conftest.in" "conftest.nl"
4091 echo 'GREP' >> "conftest.nl"
4092 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4094 ac_count=`expr $ac_count + 1`
4095 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4096 # Best one so far, save it but keep looking for a better one
4097 ac_cv_path_GREP="$ac_path_GREP"
4098 ac_path_GREP_max=$ac_count
4099 fi
4100 # 10*(2^10) chars as input seems more than enough
4101 test $ac_count -gt 10 && break
4102 done
4103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4104esac
4105
4106
4107 $ac_path_GREP_found && break 3
4108 done
4109done
4110
4111done
4112IFS=$as_save_IFS
4113
4114
4115fi
4116
4117GREP="$ac_cv_path_GREP"
4118if test -z "$GREP"; then
4119 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4120echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4121 { (exit 1); exit 1; }; }
4122fi
4123
4124else
4125 ac_cv_path_GREP=$GREP
4126fi
4127
4128
4129fi
4130{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4131echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4132 GREP="$ac_cv_path_GREP"
4133
4134
4135{ echo "$as_me:$LINENO: checking for egrep" >&5
4136echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4137if test "${ac_cv_path_EGREP+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139else
4140 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4141 then ac_cv_path_EGREP="$GREP -E"
4142 else
4143 # Extract the first word of "egrep" to use in msg output
4144if test -z "$EGREP"; then
4145set dummy egrep; ac_prog_name=$2
4146if test "${ac_cv_path_EGREP+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149 ac_path_EGREP_found=false
4150# Loop through the user's path and test for each of PROGNAME-LIST
4151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4153do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_prog in egrep; do
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4159 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4160 # Check for GNU ac_path_EGREP and select it if it is found.
4161 # Check for GNU $ac_path_EGREP
4162case `"$ac_path_EGREP" --version 2>&1` in
4163*GNU*)
4164 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4165*)
4166 ac_count=0
4167 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4168 while :
4169 do
4170 cat "conftest.in" "conftest.in" >"conftest.tmp"
4171 mv "conftest.tmp" "conftest.in"
4172 cp "conftest.in" "conftest.nl"
4173 echo 'EGREP' >> "conftest.nl"
4174 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4176 ac_count=`expr $ac_count + 1`
4177 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4178 # Best one so far, save it but keep looking for a better one
4179 ac_cv_path_EGREP="$ac_path_EGREP"
4180 ac_path_EGREP_max=$ac_count
4181 fi
4182 # 10*(2^10) chars as input seems more than enough
4183 test $ac_count -gt 10 && break
4184 done
4185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4186esac
4187
4188
4189 $ac_path_EGREP_found && break 3
4190 done
4191done
4192
4193done
4194IFS=$as_save_IFS
4195
4196
4197fi
4198
4199EGREP="$ac_cv_path_EGREP"
4200if test -z "$EGREP"; then
4201 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4202echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4203 { (exit 1); exit 1; }; }
4204fi
4205
4206else
4207 ac_cv_path_EGREP=$EGREP
4208fi
4209
4210
4211 fi
4212fi
4213{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4214echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4215 EGREP="$ac_cv_path_EGREP"
4216
4217
4218
4219# Check whether --with-gnu-ld was given.
4220if test "${with_gnu_ld+set}" = set; then
4221 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4222else
4223 with_gnu_ld=no
4224fi
4225
4226ac_prog=ld
4227if test "$GCC" = yes; then
4228 # Check if gcc -print-prog-name=ld gives a path.
4229 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4230echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4231 case $host in
4232 *-*-mingw*)
4233 # gcc leaves a trailing carriage return which upsets mingw
4234 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4235 *)
4236 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4237 esac
4238 case $ac_prog in
4239 # Accept absolute paths.
4240 [\\/]* | ?:[\\/]*)
4241 re_direlt='/[^/][^/]*/\.\./'
4242 # Canonicalize the pathname of ld
4243 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4244 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4245 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4246 done
4247 test -z "$LD" && LD="$ac_prog"
4248 ;;
4249 "")
4250 # If it fails, then pretend we aren't using GCC.
4251 ac_prog=ld
4252 ;;
4253 *)
4254 # If it is relative, then search for the first ld in PATH.
4255 with_gnu_ld=unknown
4256 ;;
4257 esac
4258elif test "$with_gnu_ld" = yes; then
4259 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4260echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4261else
4262 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4263echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4264fi
4265if test "${lt_cv_path_LD+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267else
4268 if test -z "$LD"; then
4269 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4270 for ac_dir in $PATH; do
4271 IFS="$lt_save_ifs"
4272 test -z "$ac_dir" && ac_dir=.
4273 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4274 lt_cv_path_LD="$ac_dir/$ac_prog"
4275 # Check to see if the program is GNU ld. I'd rather use --version,
4267 # but apparently some GNU ld's only accept -v.
4276 # but apparently some variants of GNU ld only accept -v.
4268 # Break only if it was the GNU/non-GNU ld that we prefer.
4269 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4270 *GNU* | *'with BFD'*)
4271 test "$with_gnu_ld" != no && break
4272 ;;
4273 *)
4274 test "$with_gnu_ld" != yes && break
4275 ;;
4276 esac
4277 fi
4278 done
4279 IFS="$lt_save_ifs"
4280else
4281 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4282fi
4283fi
4284
4285LD="$lt_cv_path_LD"
4286if test -n "$LD"; then
4287 { echo "$as_me:$LINENO: result: $LD" >&5
4288echo "${ECHO_T}$LD" >&6; }
4289else
4290 { echo "$as_me:$LINENO: result: no" >&5
4291echo "${ECHO_T}no" >&6; }
4292fi
4293test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4294echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4295 { (exit 1); exit 1; }; }
4296{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4297echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4298if test "${lt_cv_prog_gnu_ld+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300else
4277 # Break only if it was the GNU/non-GNU ld that we prefer.
4278 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4279 *GNU* | *'with BFD'*)
4280 test "$with_gnu_ld" != no && break
4281 ;;
4282 *)
4283 test "$with_gnu_ld" != yes && break
4284 ;;
4285 esac
4286 fi
4287 done
4288 IFS="$lt_save_ifs"
4289else
4290 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4291fi
4292fi
4293
4294LD="$lt_cv_path_LD"
4295if test -n "$LD"; then
4296 { echo "$as_me:$LINENO: result: $LD" >&5
4297echo "${ECHO_T}$LD" >&6; }
4298else
4299 { echo "$as_me:$LINENO: result: no" >&5
4300echo "${ECHO_T}no" >&6; }
4301fi
4302test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4303echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4304 { (exit 1); exit 1; }; }
4305{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4306echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4307if test "${lt_cv_prog_gnu_ld+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309else
4301 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4310 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4302case `$LD -v 2>&1 </dev/null` in
4303*GNU* | *'with BFD'*)
4304 lt_cv_prog_gnu_ld=yes
4305 ;;
4306*)
4307 lt_cv_prog_gnu_ld=no
4308 ;;
4309esac
4310fi
4311{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4312echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4313with_gnu_ld=$lt_cv_prog_gnu_ld
4314
4315
4316{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4317echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4318if test "${lt_cv_ld_reload_flag+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320else
4321 lt_cv_ld_reload_flag='-r'
4322fi
4323{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4324echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4325reload_flag=$lt_cv_ld_reload_flag
4326case $reload_flag in
4327"" | " "*) ;;
4328*) reload_flag=" $reload_flag" ;;
4329esac
4330reload_cmds='$LD$reload_flag -o $output$reload_objs'
4331case $host_os in
4332 darwin*)
4333 if test "$GCC" = yes; then
4311case `$LD -v 2>&1 </dev/null` in
4312*GNU* | *'with BFD'*)
4313 lt_cv_prog_gnu_ld=yes
4314 ;;
4315*)
4316 lt_cv_prog_gnu_ld=no
4317 ;;
4318esac
4319fi
4320{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4321echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4322with_gnu_ld=$lt_cv_prog_gnu_ld
4323
4324
4325{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4326echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4327if test "${lt_cv_ld_reload_flag+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4329else
4330 lt_cv_ld_reload_flag='-r'
4331fi
4332{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4333echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4334reload_flag=$lt_cv_ld_reload_flag
4335case $reload_flag in
4336"" | " "*) ;;
4337*) reload_flag=" $reload_flag" ;;
4338esac
4339reload_cmds='$LD$reload_flag -o $output$reload_objs'
4340case $host_os in
4341 darwin*)
4342 if test "$GCC" = yes; then
4334 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4343 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4335 else
4336 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4337 fi
4338 ;;
4339esac
4340
4341{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4342echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4343if test "${lt_cv_path_NM+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4345else
4346 if test -n "$NM"; then
4347 # Let the user override the test.
4348 lt_cv_path_NM="$NM"
4349else
4344 else
4345 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4346 fi
4347 ;;
4348esac
4349
4350{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4351echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4352if test "${lt_cv_path_NM+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354else
4355 if test -n "$NM"; then
4356 # Let the user override the test.
4357 lt_cv_path_NM="$NM"
4358else
4350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4351 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4352 IFS="$lt_save_ifs"
4353 test -z "$ac_dir" && ac_dir=.
4354 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4355 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4356 # Check to see if the nm accepts a BSD-compat flag.
4357 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4358 # nm: unknown option "B" ignored
4359 # Tru64's nm complains that /dev/null is an invalid object file
4360 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4361 */dev/null* | *'Invalid file or object type'*)
4362 lt_cv_path_NM="$tmp_nm -B"
4363 break
4364 ;;
4365 *)
4366 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4367 */dev/null*)
4368 lt_cv_path_NM="$tmp_nm -p"
4359 lt_nm_to_check="${ac_tool_prefix}nm"
4360 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4361 lt_nm_to_check="$lt_nm_to_check nm"
4362 fi
4363 for lt_tmp_nm in $lt_nm_to_check; do
4364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4365 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4366 IFS="$lt_save_ifs"
4367 test -z "$ac_dir" && ac_dir=.
4368 tmp_nm="$ac_dir/$lt_tmp_nm"
4369 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4370 # Check to see if the nm accepts a BSD-compat flag.
4371 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4372 # nm: unknown option "B" ignored
4373 # Tru64's nm complains that /dev/null is an invalid object file
4374 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4375 */dev/null* | *'Invalid file or object type'*)
4376 lt_cv_path_NM="$tmp_nm -B"
4369 break
4370 ;;
4371 *)
4377 break
4378 ;;
4379 *)
4372 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4373 continue # so that we can try to find one that supports BSD flags
4380 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4381 */dev/null*)
4382 lt_cv_path_NM="$tmp_nm -p"
4383 break
4384 ;;
4385 *)
4386 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4387 continue # so that we can try to find one that supports BSD flags
4388 ;;
4389 esac
4374 ;;
4375 esac
4390 ;;
4391 esac
4376 esac
4377 fi
4392 fi
4393 done
4394 IFS="$lt_save_ifs"
4378 done
4395 done
4379 IFS="$lt_save_ifs"
4380 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4381fi
4382fi
4383{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4384echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4385NM="$lt_cv_path_NM"
4386
4396 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4397fi
4398fi
4399{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4400echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4401NM="$lt_cv_path_NM"
4402
4387{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4388echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4403{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4404echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4389if test "${lt_cv_deplibs_check_method+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391else
4392 lt_cv_file_magic_cmd='$MAGIC_CMD'
4393lt_cv_file_magic_test_file=
4394lt_cv_deplibs_check_method='unknown'
4395# Need to set the preceding variable on all platforms that support
4396# interlibrary dependencies.
4397# 'none' -- dependencies not supported.
4398# `unknown' -- same as none, but documents that we really don't know.
4399# 'pass_all' -- all dependencies passed with no checks.
4400# 'test_compile' -- check by making test program.
4401# 'file_magic [[regex]]' -- check by looking for files in library path
4402# which responds to the $file_magic_cmd with a given extended regex.
4403# If you have `file' or equivalent on your system and you're not sure
4404# whether `pass_all' will *always* work, you probably want this one.
4405
4406case $host_os in
4405if test "${lt_cv_deplibs_check_method+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408 lt_cv_file_magic_cmd='$MAGIC_CMD'
4409lt_cv_file_magic_test_file=
4410lt_cv_deplibs_check_method='unknown'
4411# Need to set the preceding variable on all platforms that support
4412# interlibrary dependencies.
4413# 'none' -- dependencies not supported.
4414# `unknown' -- same as none, but documents that we really don't know.
4415# 'pass_all' -- all dependencies passed with no checks.
4416# 'test_compile' -- check by making test program.
4417# 'file_magic [[regex]]' -- check by looking for files in library path
4418# which responds to the $file_magic_cmd with a given extended regex.
4419# If you have `file' or equivalent on your system and you're not sure
4420# whether `pass_all' will *always* work, you probably want this one.
4421
4422case $host_os in
4407aix4* | aix5*)
4423aix[4-9]*)
4408 lt_cv_deplibs_check_method=pass_all
4409 ;;
4410
4411beos*)
4412 lt_cv_deplibs_check_method=pass_all
4413 ;;
4414
4415bsdi[45]*)
4416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4417 lt_cv_file_magic_cmd='/usr/bin/file -L'
4418 lt_cv_file_magic_test_file=/shlib/libc.so
4419 ;;
4420
4421cygwin*)
4422 # func_win32_libid is a shell function defined in ltmain.sh
4423 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4424 lt_cv_file_magic_cmd='func_win32_libid'
4425 ;;
4426
4427mingw* | pw32*)
4428 # Base MSYS/MinGW do not provide the 'file' command needed by
4424 lt_cv_deplibs_check_method=pass_all
4425 ;;
4426
4427beos*)
4428 lt_cv_deplibs_check_method=pass_all
4429 ;;
4430
4431bsdi[45]*)
4432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4433 lt_cv_file_magic_cmd='/usr/bin/file -L'
4434 lt_cv_file_magic_test_file=/shlib/libc.so
4435 ;;
4436
4437cygwin*)
4438 # func_win32_libid is a shell function defined in ltmain.sh
4439 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4440 lt_cv_file_magic_cmd='func_win32_libid'
4441 ;;
4442
4443mingw* | pw32*)
4444 # Base MSYS/MinGW do not provide the 'file' command needed by
4429 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4430 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4431 lt_cv_file_magic_cmd='$OBJDUMP -f'
4445 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4446 # unless we find 'file', for example because we are cross-compiling.
4447 if ( file / ) >/dev/null 2>&1; then
4448 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4449 lt_cv_file_magic_cmd='func_win32_libid'
4450 else
4451 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4452 lt_cv_file_magic_cmd='$OBJDUMP -f'
4453 fi
4432 ;;
4433
4434darwin* | rhapsody*)
4435 lt_cv_deplibs_check_method=pass_all
4436 ;;
4437
4454 ;;
4455
4456darwin* | rhapsody*)
4457 lt_cv_deplibs_check_method=pass_all
4458 ;;
4459
4438freebsd* | kfreebsd*-gnu | dragonfly*)
4460freebsd* | dragonfly*)
4439 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4440 case $host_cpu in
4441 i*86 )
4442 # Not sure whether the presence of OpenBSD here was a mistake.
4443 # Let's accept both of them until this is cleared up.
4444 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4445 lt_cv_file_magic_cmd=/usr/bin/file
4446 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4447 ;;
4448 esac
4449 else
4450 lt_cv_deplibs_check_method=pass_all
4451 fi
4452 ;;
4453
4454gnu*)
4455 lt_cv_deplibs_check_method=pass_all
4456 ;;
4457
4458hpux10.20* | hpux11*)
4459 lt_cv_file_magic_cmd=/usr/bin/file
4461 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4462 case $host_cpu in
4463 i*86 )
4464 # Not sure whether the presence of OpenBSD here was a mistake.
4465 # Let's accept both of them until this is cleared up.
4466 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4467 lt_cv_file_magic_cmd=/usr/bin/file
4468 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4469 ;;
4470 esac
4471 else
4472 lt_cv_deplibs_check_method=pass_all
4473 fi
4474 ;;
4475
4476gnu*)
4477 lt_cv_deplibs_check_method=pass_all
4478 ;;
4479
4480hpux10.20* | hpux11*)
4481 lt_cv_file_magic_cmd=/usr/bin/file
4460 case "$host_cpu" in
4482 case $host_cpu in
4461 ia64*)
4462 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4463 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4464 ;;
4465 hppa*64*)
4466 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4467 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4468 ;;
4469 *)
4470 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4471 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4472 ;;
4473 esac
4474 ;;
4475
4483 ia64*)
4484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4485 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4486 ;;
4487 hppa*64*)
4488 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4489 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4490 ;;
4491 *)
4492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4493 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4494 ;;
4495 esac
4496 ;;
4497
4498interix[3-9]*)
4499 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4501 ;;
4502
4476irix5* | irix6* | nonstopux*)
4477 case $LD in
4478 *-32|*"-32 ") libmagic=32-bit;;
4479 *-n32|*"-n32 ") libmagic=N32;;
4480 *-64|*"-64 ") libmagic=64-bit;;
4481 *) libmagic=never-match;;
4482 esac
4483 lt_cv_deplibs_check_method=pass_all
4484 ;;
4485
4486# This must be Linux ELF.
4503irix5* | irix6* | nonstopux*)
4504 case $LD in
4505 *-32|*"-32 ") libmagic=32-bit;;
4506 *-n32|*"-n32 ") libmagic=N32;;
4507 *-64|*"-64 ") libmagic=64-bit;;
4508 *) libmagic=never-match;;
4509 esac
4510 lt_cv_deplibs_check_method=pass_all
4511 ;;
4512
4513# This must be Linux ELF.
4487linux*)
4514linux* | k*bsd*-gnu)
4488 lt_cv_deplibs_check_method=pass_all
4489 ;;
4490
4491netbsd*)
4492 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4494 else
4495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4496 fi
4497 ;;
4498
4499newos6*)
4500 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4501 lt_cv_file_magic_cmd=/usr/bin/file
4502 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4503 ;;
4504
4505nto-qnx*)
4506 lt_cv_deplibs_check_method=unknown
4507 ;;
4508
4509openbsd*)
4510 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4511 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4512 else
4513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4514 fi
4515 ;;
4516
4517osf3* | osf4* | osf5*)
4518 lt_cv_deplibs_check_method=pass_all
4519 ;;
4520
4515 lt_cv_deplibs_check_method=pass_all
4516 ;;
4517
4518netbsd*)
4519 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4521 else
4522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4523 fi
4524 ;;
4525
4526newos6*)
4527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4528 lt_cv_file_magic_cmd=/usr/bin/file
4529 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4530 ;;
4531
4532nto-qnx*)
4533 lt_cv_deplibs_check_method=unknown
4534 ;;
4535
4536openbsd*)
4537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4539 else
4540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4541 fi
4542 ;;
4543
4544osf3* | osf4* | osf5*)
4545 lt_cv_deplibs_check_method=pass_all
4546 ;;
4547
4521sco3.2v5*)
4548rdos*)
4522 lt_cv_deplibs_check_method=pass_all
4523 ;;
4524
4525solaris*)
4526 lt_cv_deplibs_check_method=pass_all
4527 ;;
4528
4549 lt_cv_deplibs_check_method=pass_all
4550 ;;
4551
4552solaris*)
4553 lt_cv_deplibs_check_method=pass_all
4554 ;;
4555
4529sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4556sysv4 | sysv4.3*)
4530 case $host_vendor in
4531 motorola)
4532 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]'
4533 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4534 ;;
4535 ncr)
4536 lt_cv_deplibs_check_method=pass_all
4537 ;;
4538 sequent)
4539 lt_cv_file_magic_cmd='/bin/file'
4540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4541 ;;
4542 sni)
4543 lt_cv_file_magic_cmd='/bin/file'
4544 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4545 lt_cv_file_magic_test_file=/lib/libc.so
4546 ;;
4547 siemens)
4548 lt_cv_deplibs_check_method=pass_all
4549 ;;
4557 case $host_vendor in
4558 motorola)
4559 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]'
4560 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4561 ;;
4562 ncr)
4563 lt_cv_deplibs_check_method=pass_all
4564 ;;
4565 sequent)
4566 lt_cv_file_magic_cmd='/bin/file'
4567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4568 ;;
4569 sni)
4570 lt_cv_file_magic_cmd='/bin/file'
4571 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4572 lt_cv_file_magic_test_file=/lib/libc.so
4573 ;;
4574 siemens)
4575 lt_cv_deplibs_check_method=pass_all
4576 ;;
4577 pc)
4578 lt_cv_deplibs_check_method=pass_all
4579 ;;
4550 esac
4551 ;;
4552
4580 esac
4581 ;;
4582
4553sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4583sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4554 lt_cv_deplibs_check_method=pass_all
4555 ;;
4556esac
4557
4558fi
4559{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4560echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4561file_magic_cmd=$lt_cv_file_magic_cmd
4562deplibs_check_method=$lt_cv_deplibs_check_method
4563test -z "$deplibs_check_method" && deplibs_check_method=unknown
4564
4565
4566
4567
4568# If no C compiler was specified, use CC.
4569LTCC=${LTCC-"$CC"}
4570
4584 lt_cv_deplibs_check_method=pass_all
4585 ;;
4586esac
4587
4588fi
4589{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4590echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4591file_magic_cmd=$lt_cv_file_magic_cmd
4592deplibs_check_method=$lt_cv_deplibs_check_method
4593test -z "$deplibs_check_method" && deplibs_check_method=unknown
4594
4595
4596
4597
4598# If no C compiler was specified, use CC.
4599LTCC=${LTCC-"$CC"}
4600
4601# If no C compiler flags were specified, use CFLAGS.
4602LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4603
4571# Allow CC to be a program name with arguments.
4572compiler=$CC
4573
4574
4575# Check whether --enable-libtool-lock was given.
4576if test "${enable_libtool_lock+set}" = set; then
4577 enableval=$enable_libtool_lock;
4578fi
4579
4580test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4581
4582# Some flags need to be propagated to the compiler or linker for good
4583# libtool support.
4584case $host in
4585ia64-*-hpux*)
4586 # Find out which ABI we are using.
4587 echo 'int i;' > conftest.$ac_ext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589 (eval $ac_compile) 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; then
4593 case `/usr/bin/file conftest.$ac_objext` in
4594 *ELF-32*)
4595 HPUX_IA64_MODE="32"
4596 ;;
4597 *ELF-64*)
4598 HPUX_IA64_MODE="64"
4599 ;;
4600 esac
4601 fi
4602 rm -rf conftest*
4603 ;;
4604*-*-irix6*)
4605 # Find out which ABI we are using.
4604# Allow CC to be a program name with arguments.
4605compiler=$CC
4606
4607
4608# Check whether --enable-libtool-lock was given.
4609if test "${enable_libtool_lock+set}" = set; then
4610 enableval=$enable_libtool_lock;
4611fi
4612
4613test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4614
4615# Some flags need to be propagated to the compiler or linker for good
4616# libtool support.
4617case $host in
4618ia64-*-hpux*)
4619 # Find out which ABI we are using.
4620 echo 'int i;' > conftest.$ac_ext
4621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4622 (eval $ac_compile) 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; then
4626 case `/usr/bin/file conftest.$ac_objext` in
4627 *ELF-32*)
4628 HPUX_IA64_MODE="32"
4629 ;;
4630 *ELF-64*)
4631 HPUX_IA64_MODE="64"
4632 ;;
4633 esac
4634 fi
4635 rm -rf conftest*
4636 ;;
4637*-*-irix6*)
4638 # Find out which ABI we are using.
4606 echo '#line 4606 "configure"' > conftest.$ac_ext
4639 echo '#line 4639 "configure"' > conftest.$ac_ext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608 (eval $ac_compile) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; then
4612 if test "$lt_cv_prog_gnu_ld" = yes; then
4613 case `/usr/bin/file conftest.$ac_objext` in
4614 *32-bit*)
4615 LD="${LD-ld} -melf32bsmip"
4616 ;;
4617 *N32*)
4618 LD="${LD-ld} -melf32bmipn32"
4619 ;;
4620 *64-bit*)
4621 LD="${LD-ld} -melf64bmip"
4622 ;;
4623 esac
4624 else
4625 case `/usr/bin/file conftest.$ac_objext` in
4626 *32-bit*)
4627 LD="${LD-ld} -32"
4628 ;;
4629 *N32*)
4630 LD="${LD-ld} -n32"
4631 ;;
4632 *64-bit*)
4633 LD="${LD-ld} -64"
4634 ;;
4635 esac
4636 fi
4637 fi
4638 rm -rf conftest*
4639 ;;
4640
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641 (eval $ac_compile) 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; then
4645 if test "$lt_cv_prog_gnu_ld" = yes; then
4646 case `/usr/bin/file conftest.$ac_objext` in
4647 *32-bit*)
4648 LD="${LD-ld} -melf32bsmip"
4649 ;;
4650 *N32*)
4651 LD="${LD-ld} -melf32bmipn32"
4652 ;;
4653 *64-bit*)
4654 LD="${LD-ld} -melf64bmip"
4655 ;;
4656 esac
4657 else
4658 case `/usr/bin/file conftest.$ac_objext` in
4659 *32-bit*)
4660 LD="${LD-ld} -32"
4661 ;;
4662 *N32*)
4663 LD="${LD-ld} -n32"
4664 ;;
4665 *64-bit*)
4666 LD="${LD-ld} -64"
4667 ;;
4668 esac
4669 fi
4670 fi
4671 rm -rf conftest*
4672 ;;
4673
4641x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4674x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4675s390*-*linux*|sparc*-*linux*)
4642 # Find out which ABI we are using.
4643 echo 'int i;' > conftest.$ac_ext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4645 (eval $ac_compile) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; then
4676 # Find out which ABI we are using.
4677 echo 'int i;' > conftest.$ac_ext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; then
4649 case "`/usr/bin/file conftest.o`" in
4683 case `/usr/bin/file conftest.o` in
4650 *32-bit*)
4651 case $host in
4684 *32-bit*)
4685 case $host in
4686 x86_64-*kfreebsd*-gnu)
4687 LD="${LD-ld} -m elf_i386_fbsd"
4688 ;;
4652 x86_64-*linux*)
4653 LD="${LD-ld} -m elf_i386"
4654 ;;
4655 ppc64-*linux*|powerpc64-*linux*)
4656 LD="${LD-ld} -m elf32ppclinux"
4657 ;;
4658 s390x-*linux*)
4659 LD="${LD-ld} -m elf_s390"
4660 ;;
4661 sparc64-*linux*)
4662 LD="${LD-ld} -m elf32_sparc"
4663 ;;
4664 esac
4665 ;;
4666 *64-bit*)
4667 case $host in
4689 x86_64-*linux*)
4690 LD="${LD-ld} -m elf_i386"
4691 ;;
4692 ppc64-*linux*|powerpc64-*linux*)
4693 LD="${LD-ld} -m elf32ppclinux"
4694 ;;
4695 s390x-*linux*)
4696 LD="${LD-ld} -m elf_s390"
4697 ;;
4698 sparc64-*linux*)
4699 LD="${LD-ld} -m elf32_sparc"
4700 ;;
4701 esac
4702 ;;
4703 *64-bit*)
4704 case $host in
4705 x86_64-*kfreebsd*-gnu)
4706 LD="${LD-ld} -m elf_x86_64_fbsd"
4707 ;;
4668 x86_64-*linux*)
4669 LD="${LD-ld} -m elf_x86_64"
4670 ;;
4671 ppc*-*linux*|powerpc*-*linux*)
4672 LD="${LD-ld} -m elf64ppc"
4673 ;;
4674 s390*-*linux*)
4675 LD="${LD-ld} -m elf64_s390"
4676 ;;
4677 sparc*-*linux*)
4678 LD="${LD-ld} -m elf64_sparc"
4679 ;;
4680 esac
4681 ;;
4682 esac
4683 fi
4684 rm -rf conftest*
4685 ;;
4686
4687*-*-sco3.2v5*)
4688 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4689 SAVE_CFLAGS="$CFLAGS"
4690 CFLAGS="$CFLAGS -belf"
4691 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4692echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4693if test "${lt_cv_cc_needs_belf+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695else
4696 ac_ext=c
4697ac_cpp='$CPP $CPPFLAGS'
4698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700ac_compiler_gnu=$ac_cv_c_compiler_gnu
4701
4702 cat >conftest.$ac_ext <<_ACEOF
4703/* confdefs.h. */
4704_ACEOF
4705cat confdefs.h >>conftest.$ac_ext
4706cat >>conftest.$ac_ext <<_ACEOF
4707/* end confdefs.h. */
4708
4709int
4710main ()
4711{
4712
4713 ;
4714 return 0;
4715}
4716_ACEOF
4717rm -f conftest.$ac_objext conftest$ac_exeext
4718if { (ac_try="$ac_link"
4719case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722esac
4723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_link") 2>conftest.er1
4725 ac_status=$?
4726 grep -v '^ *+' conftest.er1 >conftest.err
4727 rm -f conftest.er1
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } && {
4731 test -z "$ac_c_werror_flag" ||
4732 test ! -s conftest.err
4733 } && test -s conftest$ac_exeext &&
4734 $as_test_x conftest$ac_exeext; then
4735 lt_cv_cc_needs_belf=yes
4736else
4737 echo "$as_me: failed program was:" >&5
4738sed 's/^/| /' conftest.$ac_ext >&5
4739
4740 lt_cv_cc_needs_belf=no
4741fi
4742
4743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4744 conftest$ac_exeext conftest.$ac_ext
4745 ac_ext=c
4746ac_cpp='$CPP $CPPFLAGS'
4747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4749ac_compiler_gnu=$ac_cv_c_compiler_gnu
4750
4751fi
4752{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4753echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4754 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4755 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4756 CFLAGS="$SAVE_CFLAGS"
4757 fi
4758 ;;
4708 x86_64-*linux*)
4709 LD="${LD-ld} -m elf_x86_64"
4710 ;;
4711 ppc*-*linux*|powerpc*-*linux*)
4712 LD="${LD-ld} -m elf64ppc"
4713 ;;
4714 s390*-*linux*)
4715 LD="${LD-ld} -m elf64_s390"
4716 ;;
4717 sparc*-*linux*)
4718 LD="${LD-ld} -m elf64_sparc"
4719 ;;
4720 esac
4721 ;;
4722 esac
4723 fi
4724 rm -rf conftest*
4725 ;;
4726
4727*-*-sco3.2v5*)
4728 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4729 SAVE_CFLAGS="$CFLAGS"
4730 CFLAGS="$CFLAGS -belf"
4731 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4732echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4733if test "${lt_cv_cc_needs_belf+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735else
4736 ac_ext=c
4737ac_cpp='$CPP $CPPFLAGS'
4738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4740ac_compiler_gnu=$ac_cv_c_compiler_gnu
4741
4742 cat >conftest.$ac_ext <<_ACEOF
4743/* confdefs.h. */
4744_ACEOF
4745cat confdefs.h >>conftest.$ac_ext
4746cat >>conftest.$ac_ext <<_ACEOF
4747/* end confdefs.h. */
4748
4749int
4750main ()
4751{
4752
4753 ;
4754 return 0;
4755}
4756_ACEOF
4757rm -f conftest.$ac_objext conftest$ac_exeext
4758if { (ac_try="$ac_link"
4759case "(($ac_try" in
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4762esac
4763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764 (eval "$ac_link") 2>conftest.er1
4765 ac_status=$?
4766 grep -v '^ *+' conftest.er1 >conftest.err
4767 rm -f conftest.er1
4768 cat conftest.err >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } && {
4771 test -z "$ac_c_werror_flag" ||
4772 test ! -s conftest.err
4773 } && test -s conftest$ac_exeext &&
4774 $as_test_x conftest$ac_exeext; then
4775 lt_cv_cc_needs_belf=yes
4776else
4777 echo "$as_me: failed program was:" >&5
4778sed 's/^/| /' conftest.$ac_ext >&5
4779
4780 lt_cv_cc_needs_belf=no
4781fi
4782
4783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4784 conftest$ac_exeext conftest.$ac_ext
4785 ac_ext=c
4786ac_cpp='$CPP $CPPFLAGS'
4787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790
4791fi
4792{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4793echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4794 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4795 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4796 CFLAGS="$SAVE_CFLAGS"
4797 fi
4798 ;;
4799sparc*-*solaris*)
4800 # Find out which ABI we are using.
4801 echo 'int i;' > conftest.$ac_ext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4803 (eval $ac_compile) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; then
4807 case `/usr/bin/file conftest.o` in
4808 *64-bit*)
4809 case $lt_cv_prog_gnu_ld in
4810 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4811 *)
4812 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4813 LD="${LD-ld} -64"
4814 fi
4815 ;;
4816 esac
4817 ;;
4818 esac
4819 fi
4820 rm -rf conftest*
4821 ;;
4759
4822
4823
4760esac
4761
4762need_locks="$enable_libtool_lock"
4763
4764
4765ac_ext=c
4766ac_cpp='$CPP $CPPFLAGS'
4767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769ac_compiler_gnu=$ac_cv_c_compiler_gnu
4770{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4771echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4772# On Suns, sometimes $CPP names a directory.
4773if test -n "$CPP" && test -d "$CPP"; then
4774 CPP=
4775fi
4776if test -z "$CPP"; then
4777 if test "${ac_cv_prog_CPP+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779else
4780 # Double quotes because CPP needs to be expanded
4781 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4782 do
4783 ac_preproc_ok=false
4784for ac_c_preproc_warn_flag in '' yes
4785do
4786 # Use a header file that comes with gcc, so configuring glibc
4787 # with a fresh cross-compiler works.
4788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4789 # <limits.h> exists even on freestanding compilers.
4790 # On the NeXT, cc -E runs the code through the compiler's parser,
4791 # not just through cpp. "Syntax error" is here to catch this case.
4792 cat >conftest.$ac_ext <<_ACEOF
4793/* confdefs.h. */
4794_ACEOF
4795cat confdefs.h >>conftest.$ac_ext
4796cat >>conftest.$ac_ext <<_ACEOF
4797/* end confdefs.h. */
4798#ifdef __STDC__
4799# include <limits.h>
4800#else
4801# include <assert.h>
4802#endif
4803 Syntax error
4804_ACEOF
4805if { (ac_try="$ac_cpp conftest.$ac_ext"
4806case "(($ac_try" in
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4809esac
4810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } >/dev/null && {
4818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4819 test ! -s conftest.err
4820 }; then
4821 :
4822else
4823 echo "$as_me: failed program was:" >&5
4824sed 's/^/| /' conftest.$ac_ext >&5
4825
4826 # Broken: fails on valid input.
4827continue
4828fi
4829
4830rm -f conftest.err conftest.$ac_ext
4831
4832 # OK, works on sane cases. Now check whether nonexistent headers
4833 # can be detected and how.
4834 cat >conftest.$ac_ext <<_ACEOF
4835/* confdefs.h. */
4836_ACEOF
4837cat confdefs.h >>conftest.$ac_ext
4838cat >>conftest.$ac_ext <<_ACEOF
4839/* end confdefs.h. */
4840#include <ac_nonexistent.h>
4841_ACEOF
4842if { (ac_try="$ac_cpp conftest.$ac_ext"
4843case "(($ac_try" in
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4846esac
4847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4849 ac_status=$?
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } >/dev/null && {
4855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4857 }; then
4858 # Broken: success on invalid input.
4859continue
4860else
4861 echo "$as_me: failed program was:" >&5
4862sed 's/^/| /' conftest.$ac_ext >&5
4863
4864 # Passes both tests.
4865ac_preproc_ok=:
4866break
4867fi
4868
4869rm -f conftest.err conftest.$ac_ext
4870
4871done
4872# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4873rm -f conftest.err conftest.$ac_ext
4874if $ac_preproc_ok; then
4875 break
4876fi
4877
4878 done
4879 ac_cv_prog_CPP=$CPP
4880
4881fi
4882 CPP=$ac_cv_prog_CPP
4883else
4884 ac_cv_prog_CPP=$CPP
4885fi
4886{ echo "$as_me:$LINENO: result: $CPP" >&5
4887echo "${ECHO_T}$CPP" >&6; }
4888ac_preproc_ok=false
4889for ac_c_preproc_warn_flag in '' yes
4890do
4891 # Use a header file that comes with gcc, so configuring glibc
4892 # with a fresh cross-compiler works.
4893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4894 # <limits.h> exists even on freestanding compilers.
4895 # On the NeXT, cc -E runs the code through the compiler's parser,
4896 # not just through cpp. "Syntax error" is here to catch this case.
4897 cat >conftest.$ac_ext <<_ACEOF
4898/* confdefs.h. */
4899_ACEOF
4900cat confdefs.h >>conftest.$ac_ext
4901cat >>conftest.$ac_ext <<_ACEOF
4902/* end confdefs.h. */
4903#ifdef __STDC__
4904# include <limits.h>
4905#else
4906# include <assert.h>
4907#endif
4908 Syntax error
4909_ACEOF
4910if { (ac_try="$ac_cpp conftest.$ac_ext"
4911case "(($ac_try" in
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4914esac
4915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4917 ac_status=$?
4918 grep -v '^ *+' conftest.er1 >conftest.err
4919 rm -f conftest.er1
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } >/dev/null && {
4923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4924 test ! -s conftest.err
4925 }; then
4926 :
4927else
4928 echo "$as_me: failed program was:" >&5
4929sed 's/^/| /' conftest.$ac_ext >&5
4930
4931 # Broken: fails on valid input.
4932continue
4933fi
4934
4935rm -f conftest.err conftest.$ac_ext
4936
4937 # OK, works on sane cases. Now check whether nonexistent headers
4938 # can be detected and how.
4939 cat >conftest.$ac_ext <<_ACEOF
4940/* confdefs.h. */
4941_ACEOF
4942cat confdefs.h >>conftest.$ac_ext
4943cat >>conftest.$ac_ext <<_ACEOF
4944/* end confdefs.h. */
4945#include <ac_nonexistent.h>
4946_ACEOF
4947if { (ac_try="$ac_cpp conftest.$ac_ext"
4948case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951esac
4952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } >/dev/null && {
4960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4961 test ! -s conftest.err
4962 }; then
4963 # Broken: success on invalid input.
4964continue
4965else
4966 echo "$as_me: failed program was:" >&5
4967sed 's/^/| /' conftest.$ac_ext >&5
4968
4969 # Passes both tests.
4970ac_preproc_ok=:
4971break
4972fi
4973
4974rm -f conftest.err conftest.$ac_ext
4975
4976done
4977# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4978rm -f conftest.err conftest.$ac_ext
4979if $ac_preproc_ok; then
4980 :
4981else
4982 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4983See \`config.log' for more details." >&5
4984echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4985See \`config.log' for more details." >&2;}
4986 { (exit 1); exit 1; }; }
4987fi
4988
4989ac_ext=c
4990ac_cpp='$CPP $CPPFLAGS'
4991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993ac_compiler_gnu=$ac_cv_c_compiler_gnu
4994
4995
4996{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4997echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4998if test "${ac_cv_header_stdc+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000else
5001 cat >conftest.$ac_ext <<_ACEOF
5002/* confdefs.h. */
5003_ACEOF
5004cat confdefs.h >>conftest.$ac_ext
5005cat >>conftest.$ac_ext <<_ACEOF
5006/* end confdefs.h. */
5007#include <stdlib.h>
5008#include <stdarg.h>
5009#include <string.h>
5010#include <float.h>
5011
5012int
5013main ()
5014{
5015
5016 ;
5017 return 0;
5018}
5019_ACEOF
5020rm -f conftest.$ac_objext
5021if { (ac_try="$ac_compile"
5022case "(($ac_try" in
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5025esac
5026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5027 (eval "$ac_compile") 2>conftest.er1
5028 ac_status=$?
5029 grep -v '^ *+' conftest.er1 >conftest.err
5030 rm -f conftest.er1
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } && {
5034 test -z "$ac_c_werror_flag" ||
5035 test ! -s conftest.err
5036 } && test -s conftest.$ac_objext; then
5037 ac_cv_header_stdc=yes
5038else
5039 echo "$as_me: failed program was:" >&5
5040sed 's/^/| /' conftest.$ac_ext >&5
5041
5042 ac_cv_header_stdc=no
5043fi
5044
5045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046
5047if test $ac_cv_header_stdc = yes; then
5048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5049 cat >conftest.$ac_ext <<_ACEOF
5050/* confdefs.h. */
5051_ACEOF
5052cat confdefs.h >>conftest.$ac_ext
5053cat >>conftest.$ac_ext <<_ACEOF
5054/* end confdefs.h. */
5055#include <string.h>
5056
5057_ACEOF
5058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5059 $EGREP "memchr" >/dev/null 2>&1; then
5060 :
5061else
5062 ac_cv_header_stdc=no
5063fi
5064rm -f conftest*
5065
5066fi
5067
5068if test $ac_cv_header_stdc = yes; then
5069 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5070 cat >conftest.$ac_ext <<_ACEOF
5071/* confdefs.h. */
5072_ACEOF
5073cat confdefs.h >>conftest.$ac_ext
5074cat >>conftest.$ac_ext <<_ACEOF
5075/* end confdefs.h. */
5076#include <stdlib.h>
5077
5078_ACEOF
5079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5080 $EGREP "free" >/dev/null 2>&1; then
5081 :
5082else
5083 ac_cv_header_stdc=no
5084fi
5085rm -f conftest*
5086
5087fi
5088
5089if test $ac_cv_header_stdc = yes; then
5090 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5091 if test "$cross_compiling" = yes; then
5092 :
5093else
5094 cat >conftest.$ac_ext <<_ACEOF
5095/* confdefs.h. */
5096_ACEOF
5097cat confdefs.h >>conftest.$ac_ext
5098cat >>conftest.$ac_ext <<_ACEOF
5099/* end confdefs.h. */
5100#include <ctype.h>
5101#include <stdlib.h>
5102#if ((' ' & 0x0FF) == 0x020)
5103# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5104# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5105#else
5106# define ISLOWER(c) \
5107 (('a' <= (c) && (c) <= 'i') \
5108 || ('j' <= (c) && (c) <= 'r') \
5109 || ('s' <= (c) && (c) <= 'z'))
5110# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5111#endif
5112
5113#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5114int
5115main ()
5116{
5117 int i;
5118 for (i = 0; i < 256; i++)
5119 if (XOR (islower (i), ISLOWER (i))
5120 || toupper (i) != TOUPPER (i))
5121 return 2;
5122 return 0;
5123}
5124_ACEOF
5125rm -f conftest$ac_exeext
5126if { (ac_try="$ac_link"
5127case "(($ac_try" in
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5130esac
5131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5132 (eval "$ac_link") 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5136 { (case "(($ac_try" in
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5139esac
5140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141 (eval "$ac_try") 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5145 :
5146else
5147 echo "$as_me: program exited with status $ac_status" >&5
5148echo "$as_me: failed program was:" >&5
5149sed 's/^/| /' conftest.$ac_ext >&5
5150
5151( exit $ac_status )
5152ac_cv_header_stdc=no
5153fi
5154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5155fi
5156
5157
5158fi
5159fi
5160{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5161echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5162if test $ac_cv_header_stdc = yes; then
5163
5164cat >>confdefs.h <<\_ACEOF
5165#define STDC_HEADERS 1
5166_ACEOF
5167
5168fi
5169
5170# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5181 inttypes.h stdint.h unistd.h
5182do
5183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5184{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189 cat >conftest.$ac_ext <<_ACEOF
5190/* confdefs.h. */
5191_ACEOF
5192cat confdefs.h >>conftest.$ac_ext
5193cat >>conftest.$ac_ext <<_ACEOF
5194/* end confdefs.h. */
5195$ac_includes_default
5196
5197#include <$ac_header>
5198_ACEOF
5199rm -f conftest.$ac_objext
5200if { (ac_try="$ac_compile"
5201case "(($ac_try" in
5202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203 *) ac_try_echo=$ac_try;;
5204esac
5205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206 (eval "$ac_compile") 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } && {
5213 test -z "$ac_c_werror_flag" ||
5214 test ! -s conftest.err
5215 } && test -s conftest.$ac_objext; then
5216 eval "$as_ac_Header=yes"
5217else
5218 echo "$as_me: failed program was:" >&5
5219sed 's/^/| /' conftest.$ac_ext >&5
5220
5221 eval "$as_ac_Header=no"
5222fi
5223
5224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225fi
5226ac_res=`eval echo '${'$as_ac_Header'}'`
5227 { echo "$as_me:$LINENO: result: $ac_res" >&5
5228echo "${ECHO_T}$ac_res" >&6; }
5229if test `eval echo '${'$as_ac_Header'}'` = yes; then
5230 cat >>confdefs.h <<_ACEOF
5231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5232_ACEOF
5233
5234fi
5235
5236done
5237
5238
5239
5240for ac_header in dlfcn.h
5241do
5242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248fi
5249ac_res=`eval echo '${'$as_ac_Header'}'`
5250 { echo "$as_me:$LINENO: result: $ac_res" >&5
5251echo "${ECHO_T}$ac_res" >&6; }
5252else
5253 # Is the header compilable?
5254{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5255echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5256cat >conftest.$ac_ext <<_ACEOF
5257/* confdefs.h. */
5258_ACEOF
5259cat confdefs.h >>conftest.$ac_ext
5260cat >>conftest.$ac_ext <<_ACEOF
5261/* end confdefs.h. */
5262$ac_includes_default
5263#include <$ac_header>
5264_ACEOF
5265rm -f conftest.$ac_objext
5266if { (ac_try="$ac_compile"
5267case "(($ac_try" in
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5270esac
5271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272 (eval "$ac_compile") 2>conftest.er1
5273 ac_status=$?
5274 grep -v '^ *+' conftest.er1 >conftest.err
5275 rm -f conftest.er1
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } && {
5279 test -z "$ac_c_werror_flag" ||
5280 test ! -s conftest.err
5281 } && test -s conftest.$ac_objext; then
5282 ac_header_compiler=yes
5283else
5284 echo "$as_me: failed program was:" >&5
5285sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 ac_header_compiler=no
5288fi
5289
5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5292echo "${ECHO_T}$ac_header_compiler" >&6; }
5293
5294# Is the header present?
5295{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5296echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5297cat >conftest.$ac_ext <<_ACEOF
5298/* confdefs.h. */
5299_ACEOF
5300cat confdefs.h >>conftest.$ac_ext
5301cat >>conftest.$ac_ext <<_ACEOF
5302/* end confdefs.h. */
5303#include <$ac_header>
5304_ACEOF
5305if { (ac_try="$ac_cpp conftest.$ac_ext"
5306case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309esac
5310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5312 ac_status=$?
5313 grep -v '^ *+' conftest.er1 >conftest.err
5314 rm -f conftest.er1
5315 cat conftest.err >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } >/dev/null && {
5318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5319 test ! -s conftest.err
5320 }; then
5321 ac_header_preproc=yes
5322else
5323 echo "$as_me: failed program was:" >&5
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 ac_header_preproc=no
5327fi
5328
5329rm -f conftest.err conftest.$ac_ext
5330{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5331echo "${ECHO_T}$ac_header_preproc" >&6; }
5332
5333# So? What about this header?
5334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5335 yes:no: )
5336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5339echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5340 ac_header_preproc=yes
5341 ;;
5342 no:yes:* )
5343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5346echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5348echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5350echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5354echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5355 ( cat <<\_ASBOX
5356## ---------------------------------- ##
5357## Report this to christos@astron.com ##
5358## ---------------------------------- ##
5359_ASBOX
5360 ) | sed "s/^/$as_me: WARNING: /" >&2
5361 ;;
5362esac
5363{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5367else
5368 eval "$as_ac_Header=\$ac_header_preproc"
5369fi
5370ac_res=`eval echo '${'$as_ac_Header'}'`
5371 { echo "$as_me:$LINENO: result: $ac_res" >&5
5372echo "${ECHO_T}$ac_res" >&6; }
5373
5374fi
5375if test `eval echo '${'$as_ac_Header'}'` = yes; then
5376 cat >>confdefs.h <<_ACEOF
5377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5378_ACEOF
5379
5380fi
5381
5382done
5383
5384ac_ext=cpp
5385ac_cpp='$CXXCPP $CPPFLAGS'
5386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5389if test -z "$CXX"; then
5390 if test -n "$CCC"; then
5391 CXX=$CCC
5392 else
5393 if test -n "$ac_tool_prefix"; then
5394 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5395 do
5396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5397set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5400if test "${ac_cv_prog_CXX+set}" = set; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5402else
5403 if test -n "$CXX"; then
5404 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5405else
5406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5413 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 break 2
5416 fi
5417done
5418done
5419IFS=$as_save_IFS
5420
5421fi
5422fi
5423CXX=$ac_cv_prog_CXX
5424if test -n "$CXX"; then
5425 { echo "$as_me:$LINENO: result: $CXX" >&5
5426echo "${ECHO_T}$CXX" >&6; }
5427else
5428 { echo "$as_me:$LINENO: result: no" >&5
5429echo "${ECHO_T}no" >&6; }
5430fi
5431
5432
5433 test -n "$CXX" && break
5434 done
5435fi
5436if test -z "$CXX"; then
5437 ac_ct_CXX=$CXX
5438 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5439do
5440 # Extract the first word of "$ac_prog", so it can be a program name with args.
5441set dummy $ac_prog; ac_word=$2
5442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5444if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
5447 if test -n "$ac_ct_CXX"; then
5448 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5449else
5450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451for as_dir in $PATH
5452do
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457 ac_cv_prog_ac_ct_CXX="$ac_prog"
5458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5460 fi
5461done
5462done
5463IFS=$as_save_IFS
5464
5465fi
5466fi
5467ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5468if test -n "$ac_ct_CXX"; then
5469 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5470echo "${ECHO_T}$ac_ct_CXX" >&6; }
5471else
5472 { echo "$as_me:$LINENO: result: no" >&5
5473echo "${ECHO_T}no" >&6; }
5474fi
5475
5476
5477 test -n "$ac_ct_CXX" && break
5478done
5479
5480 if test "x$ac_ct_CXX" = x; then
5481 CXX="g++"
5482 else
5483 case $cross_compiling:$ac_tool_warned in
5484yes:)
5485{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5486whose name does not start with the host triplet. If you think this
5487configuration is useful to you, please write to autoconf@gnu.org." >&5
5488echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5489whose name does not start with the host triplet. If you think this
5490configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5491ac_tool_warned=yes ;;
5492esac
5493 CXX=$ac_ct_CXX
5494 fi
5495fi
5496
5497 fi
5498fi
5499# Provide some information about the compiler.
5500echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5501ac_compiler=`set X $ac_compile; echo $2`
5502{ (ac_try="$ac_compiler --version >&5"
5503case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506esac
5507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_compiler --version >&5") 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }
5512{ (ac_try="$ac_compiler -v >&5"
5513case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516esac
5517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compiler -v >&5") 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }
5522{ (ac_try="$ac_compiler -V >&5"
5523case "(($ac_try" in
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5526esac
5527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_compiler -V >&5") 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }
5532
5533{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5534echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5535if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537else
5538 cat >conftest.$ac_ext <<_ACEOF
5539/* confdefs.h. */
5540_ACEOF
5541cat confdefs.h >>conftest.$ac_ext
5542cat >>conftest.$ac_ext <<_ACEOF
5543/* end confdefs.h. */
5544
5545int
5546main ()
5547{
5548#ifndef __GNUC__
5549 choke me
5550#endif
5551
5552 ;
5553 return 0;
5554}
5555_ACEOF
5556rm -f conftest.$ac_objext
5557if { (ac_try="$ac_compile"
5558case "(($ac_try" in
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5561esac
5562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_compile") 2>conftest.er1
5564 ac_status=$?
5565 grep -v '^ *+' conftest.er1 >conftest.err
5566 rm -f conftest.er1
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && {
5570 test -z "$ac_cxx_werror_flag" ||
5571 test ! -s conftest.err
5572 } && test -s conftest.$ac_objext; then
5573 ac_compiler_gnu=yes
5574else
5575 echo "$as_me: failed program was:" >&5
5576sed 's/^/| /' conftest.$ac_ext >&5
5577
5578 ac_compiler_gnu=no
5579fi
5580
5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5583
5584fi
5585{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5586echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5587GXX=`test $ac_compiler_gnu = yes && echo yes`
5588ac_test_CXXFLAGS=${CXXFLAGS+set}
5589ac_save_CXXFLAGS=$CXXFLAGS
5590{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5591echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5592if test "${ac_cv_prog_cxx_g+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594else
5595 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5596 ac_cxx_werror_flag=yes
5597 ac_cv_prog_cxx_g=no
5598 CXXFLAGS="-g"
5599 cat >conftest.$ac_ext <<_ACEOF
5600/* confdefs.h. */
5601_ACEOF
5602cat confdefs.h >>conftest.$ac_ext
5603cat >>conftest.$ac_ext <<_ACEOF
5604/* end confdefs.h. */
5605
5606int
5607main ()
5608{
5609
5610 ;
5611 return 0;
5612}
5613_ACEOF
5614rm -f conftest.$ac_objext
5615if { (ac_try="$ac_compile"
5616case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619esac
5620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_cxx_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
5631 ac_cv_prog_cxx_g=yes
5632else
5633 echo "$as_me: failed program was:" >&5
5634sed 's/^/| /' conftest.$ac_ext >&5
5635
5636 CXXFLAGS=""
5637 cat >conftest.$ac_ext <<_ACEOF
5638/* confdefs.h. */
5639_ACEOF
5640cat confdefs.h >>conftest.$ac_ext
5641cat >>conftest.$ac_ext <<_ACEOF
5642/* end confdefs.h. */
5643
5644int
5645main ()
5646{
5647
5648 ;
5649 return 0;
5650}
5651_ACEOF
5652rm -f conftest.$ac_objext
5653if { (ac_try="$ac_compile"
5654case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5657esac
5658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_compile") 2>conftest.er1
5660 ac_status=$?
5661 grep -v '^ *+' conftest.er1 >conftest.err
5662 rm -f conftest.er1
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } && {
5666 test -z "$ac_cxx_werror_flag" ||
5667 test ! -s conftest.err
5668 } && test -s conftest.$ac_objext; then
5669 :
5670else
5671 echo "$as_me: failed program was:" >&5
5672sed 's/^/| /' conftest.$ac_ext >&5
5673
5674 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5675 CXXFLAGS="-g"
5676 cat >conftest.$ac_ext <<_ACEOF
5677/* confdefs.h. */
5678_ACEOF
5679cat confdefs.h >>conftest.$ac_ext
5680cat >>conftest.$ac_ext <<_ACEOF
5681/* end confdefs.h. */
5682
5683int
5684main ()
5685{
5686
5687 ;
5688 return 0;
5689}
5690_ACEOF
5691rm -f conftest.$ac_objext
5692if { (ac_try="$ac_compile"
5693case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696esac
5697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_compile") 2>conftest.er1
5699 ac_status=$?
5700 grep -v '^ *+' conftest.er1 >conftest.err
5701 rm -f conftest.er1
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } && {
5705 test -z "$ac_cxx_werror_flag" ||
5706 test ! -s conftest.err
5707 } && test -s conftest.$ac_objext; then
5708 ac_cv_prog_cxx_g=yes
5709else
5710 echo "$as_me: failed program was:" >&5
5711sed 's/^/| /' conftest.$ac_ext >&5
5712
5713
5714fi
5715
5716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717fi
5718
5719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720fi
5721
5722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5724fi
5725{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5726echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5727if test "$ac_test_CXXFLAGS" = set; then
5728 CXXFLAGS=$ac_save_CXXFLAGS
5729elif test $ac_cv_prog_cxx_g = yes; then
5730 if test "$GXX" = yes; then
5731 CXXFLAGS="-g -O2"
5732 else
5733 CXXFLAGS="-g"
5734 fi
5735else
5736 if test "$GXX" = yes; then
5737 CXXFLAGS="-O2"
5738 else
5739 CXXFLAGS=
5740 fi
5741fi
5742ac_ext=cpp
5743ac_cpp='$CXXCPP $CPPFLAGS'
5744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5747
5748depcc="$CXX" am_compiler_list=
5749
5750{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5751echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5752if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754else
5755 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5756 # We make a subdir and do the tests there. Otherwise we can end up
5757 # making bogus files that we don't know about and never remove. For
5758 # instance it was reported that on HP-UX the gcc test will end up
5759 # making a dummy file named `D' -- because `-MD' means `put the output
5760 # in D'.
5761 mkdir conftest.dir
5762 # Copy depcomp to subdir because otherwise we won't find it if we're
5763 # using a relative directory.
5764 cp "$am_depcomp" conftest.dir
5765 cd conftest.dir
5766 # We will build objects and dependencies in a subdirectory because
5767 # it helps to detect inapplicable dependency modes. For instance
5768 # both Tru64's cc and ICC support -MD to output dependencies as a
5769 # side effect of compilation, but ICC will put the dependencies in
5770 # the current directory while Tru64 will put them in the object
5771 # directory.
5772 mkdir sub
5773
5774 am_cv_CXX_dependencies_compiler_type=none
5775 if test "$am_compiler_list" = ""; then
5776 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5777 fi
5778 for depmode in $am_compiler_list; do
5779 # Setup a source with many dependencies, because some compilers
5780 # like to wrap large dependency lists on column 80 (with \), and
5781 # we should not choose a depcomp mode which is confused by this.
5782 #
5783 # We need to recreate these files for each test, as the compiler may
5784 # overwrite some of them when testing with obscure command lines.
5785 # This happens at least with the AIX C compiler.
5786 : > sub/conftest.c
5787 for i in 1 2 3 4 5 6; do
5788 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5789 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5790 # Solaris 8's {/usr,}/bin/sh.
5791 touch sub/conftst$i.h
5792 done
5793 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5794
5795 case $depmode in
5796 nosideeffect)
5797 # after this tag, mechanisms are not by side-effect, so they'll
5798 # only be used when explicitly requested
5799 if test "x$enable_dependency_tracking" = xyes; then
5800 continue
5801 else
5802 break
5803 fi
5804 ;;
5805 none) break ;;
5806 esac
5807 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5808 # mode. It turns out that the SunPro C++ compiler does not properly
5809 # handle `-M -o', and we need to detect this.
5810 if depmode=$depmode \
5811 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5812 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5813 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5814 >/dev/null 2>conftest.err &&
5815 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5816 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5817 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5818 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5819 # icc doesn't choke on unknown options, it will just issue warnings
5820 # or remarks (even with -Werror). So we grep stderr for any message
5821 # that says an option was ignored or not supported.
5822 # When given -MP, icc 7.0 and 7.1 complain thusly:
5823 # icc: Command line warning: ignoring option '-M'; no argument required
5824 # The diagnosis changed in icc 8.0:
5825 # icc: Command line remark: option '-MP' not supported
5826 if (grep 'ignoring option' conftest.err ||
5827 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5828 am_cv_CXX_dependencies_compiler_type=$depmode
5829 break
5830 fi
5831 fi
5832 done
5833
5834 cd ..
5835 rm -rf conftest.dir
5836else
5837 am_cv_CXX_dependencies_compiler_type=none
5838fi
5839
5840fi
5841{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5842echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5843CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5844
5845 if
5846 test "x$enable_dependency_tracking" != xno \
5847 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5848 am__fastdepCXX_TRUE=
5849 am__fastdepCXX_FALSE='#'
5850else
5851 am__fastdepCXX_TRUE='#'
5852 am__fastdepCXX_FALSE=
5853fi
5854
5855
5856
5857
5858if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5859 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5860 (test "X$CXX" != "Xg++"))) ; then
5861 ac_ext=cpp
5862ac_cpp='$CXXCPP $CPPFLAGS'
5863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5866{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5867echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5868if test -z "$CXXCPP"; then
5869 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5871else
5872 # Double quotes because CXXCPP needs to be expanded
5873 for CXXCPP in "$CXX -E" "/lib/cpp"
5874 do
5875 ac_preproc_ok=false
5876for ac_cxx_preproc_warn_flag in '' yes
5877do
5878 # Use a header file that comes with gcc, so configuring glibc
5879 # with a fresh cross-compiler works.
5880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5881 # <limits.h> exists even on freestanding compilers.
5882 # On the NeXT, cc -E runs the code through the compiler's parser,
5883 # not just through cpp. "Syntax error" is here to catch this case.
5884 cat >conftest.$ac_ext <<_ACEOF
5885/* confdefs.h. */
5886_ACEOF
5887cat confdefs.h >>conftest.$ac_ext
5888cat >>conftest.$ac_ext <<_ACEOF
5889/* end confdefs.h. */
5890#ifdef __STDC__
5891# include <limits.h>
5892#else
5893# include <assert.h>
5894#endif
5895 Syntax error
5896_ACEOF
5897if { (ac_try="$ac_cpp conftest.$ac_ext"
5898case "(($ac_try" in
5899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900 *) ac_try_echo=$ac_try;;
5901esac
5902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5904 ac_status=$?
5905 grep -v '^ *+' conftest.er1 >conftest.err
5906 rm -f conftest.er1
5907 cat conftest.err >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } >/dev/null && {
5910 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5911 test ! -s conftest.err
5912 }; then
5913 :
5914else
5915 echo "$as_me: failed program was:" >&5
5916sed 's/^/| /' conftest.$ac_ext >&5
5917
5918 # Broken: fails on valid input.
5919continue
5920fi
5921
5922rm -f conftest.err conftest.$ac_ext
5923
5924 # OK, works on sane cases. Now check whether nonexistent headers
5925 # can be detected and how.
5926 cat >conftest.$ac_ext <<_ACEOF
5927/* confdefs.h. */
5928_ACEOF
5929cat confdefs.h >>conftest.$ac_ext
5930cat >>conftest.$ac_ext <<_ACEOF
5931/* end confdefs.h. */
5932#include <ac_nonexistent.h>
5933_ACEOF
5934if { (ac_try="$ac_cpp conftest.$ac_ext"
5935case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938esac
5939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } >/dev/null && {
5947 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5948 test ! -s conftest.err
5949 }; then
5950 # Broken: success on invalid input.
5951continue
5952else
5953 echo "$as_me: failed program was:" >&5
5954sed 's/^/| /' conftest.$ac_ext >&5
5955
5956 # Passes both tests.
5957ac_preproc_ok=:
5958break
5959fi
5960
5961rm -f conftest.err conftest.$ac_ext
5962
5963done
5964# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5965rm -f conftest.err conftest.$ac_ext
5966if $ac_preproc_ok; then
5967 break
5968fi
5969
5970 done
5971 ac_cv_prog_CXXCPP=$CXXCPP
5972
5973fi
5974 CXXCPP=$ac_cv_prog_CXXCPP
5975else
5976 ac_cv_prog_CXXCPP=$CXXCPP
5977fi
5978{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5979echo "${ECHO_T}$CXXCPP" >&6; }
5980ac_preproc_ok=false
5981for ac_cxx_preproc_warn_flag in '' yes
5982do
5983 # Use a header file that comes with gcc, so configuring glibc
5984 # with a fresh cross-compiler works.
5985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5986 # <limits.h> exists even on freestanding compilers.
5987 # On the NeXT, cc -E runs the code through the compiler's parser,
5988 # not just through cpp. "Syntax error" is here to catch this case.
5989 cat >conftest.$ac_ext <<_ACEOF
5990/* confdefs.h. */
5991_ACEOF
5992cat confdefs.h >>conftest.$ac_ext
5993cat >>conftest.$ac_ext <<_ACEOF
5994/* end confdefs.h. */
5995#ifdef __STDC__
5996# include <limits.h>
5997#else
5998# include <assert.h>
5999#endif
6000 Syntax error
6001_ACEOF
6002if { (ac_try="$ac_cpp conftest.$ac_ext"
6003case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } >/dev/null && {
6015 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6016 test ! -s conftest.err
6017 }; then
6018 :
6019else
6020 echo "$as_me: failed program was:" >&5
6021sed 's/^/| /' conftest.$ac_ext >&5
6022
6023 # Broken: fails on valid input.
6024continue
6025fi
6026
6027rm -f conftest.err conftest.$ac_ext
6028
6029 # OK, works on sane cases. Now check whether nonexistent headers
6030 # can be detected and how.
6031 cat >conftest.$ac_ext <<_ACEOF
6032/* confdefs.h. */
6033_ACEOF
6034cat confdefs.h >>conftest.$ac_ext
6035cat >>conftest.$ac_ext <<_ACEOF
6036/* end confdefs.h. */
6037#include <ac_nonexistent.h>
6038_ACEOF
6039if { (ac_try="$ac_cpp conftest.$ac_ext"
6040case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043esac
6044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } >/dev/null && {
6052 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6053 test ! -s conftest.err
6054 }; then
6055 # Broken: success on invalid input.
6056continue
6057else
6058 echo "$as_me: failed program was:" >&5
6059sed 's/^/| /' conftest.$ac_ext >&5
6060
6061 # Passes both tests.
6062ac_preproc_ok=:
6063break
6064fi
6065
6066rm -f conftest.err conftest.$ac_ext
6067
6068done
6069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6070rm -f conftest.err conftest.$ac_ext
6071if $ac_preproc_ok; then
6072 :
6073else
6074 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6075See \`config.log' for more details." >&5
6076echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6077See \`config.log' for more details." >&2;}
6078 { (exit 1); exit 1; }; }
6079fi
6080
6081ac_ext=cpp
6082ac_cpp='$CXXCPP $CPPFLAGS'
6083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6086
6087fi
6088
6089
6090ac_ext=f
6091ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6092ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6093ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6094if test -n "$ac_tool_prefix"; then
6095 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6096 do
6097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6098set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6101if test "${ac_cv_prog_F77+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103else
6104 if test -n "$F77"; then
6105 ac_cv_prog_F77="$F77" # Let the user override the test.
6106else
6107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108for as_dir in $PATH
6109do
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 break 2
6117 fi
6118done
6119done
6120IFS=$as_save_IFS
6121
6122fi
6123fi
6124F77=$ac_cv_prog_F77
6125if test -n "$F77"; then
6126 { echo "$as_me:$LINENO: result: $F77" >&5
6127echo "${ECHO_T}$F77" >&6; }
6128else
6129 { echo "$as_me:$LINENO: result: no" >&5
6130echo "${ECHO_T}no" >&6; }
6131fi
6132
6133
6134 test -n "$F77" && break
6135 done
6136fi
6137if test -z "$F77"; then
6138 ac_ct_F77=$F77
6139 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6140do
6141 # Extract the first word of "$ac_prog", so it can be a program name with args.
6142set dummy $ac_prog; ac_word=$2
6143{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6145if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147else
6148 if test -n "$ac_ct_F77"; then
6149 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6150else
6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152for as_dir in $PATH
6153do
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_ac_ct_F77="$ac_prog"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6161 fi
6162done
6163done
6164IFS=$as_save_IFS
6165
6166fi
6167fi
6168ac_ct_F77=$ac_cv_prog_ac_ct_F77
6169if test -n "$ac_ct_F77"; then
6170 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6171echo "${ECHO_T}$ac_ct_F77" >&6; }
6172else
6173 { echo "$as_me:$LINENO: result: no" >&5
6174echo "${ECHO_T}no" >&6; }
6175fi
6176
6177
6178 test -n "$ac_ct_F77" && break
6179done
6180
6181 if test "x$ac_ct_F77" = x; then
6182 F77=""
6183 else
6184 case $cross_compiling:$ac_tool_warned in
6185yes:)
6186{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6187whose name does not start with the host triplet. If you think this
6188configuration is useful to you, please write to autoconf@gnu.org." >&5
6189echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6190whose name does not start with the host triplet. If you think this
6191configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6192ac_tool_warned=yes ;;
6193esac
6194 F77=$ac_ct_F77
6195 fi
6196fi
6197
6198
6199# Provide some information about the compiler.
6200echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6201ac_compiler=`set X $ac_compile; echo $2`
6202{ (ac_try="$ac_compiler --version >&5"
6203case "(($ac_try" in
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6206esac
6207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_compiler --version >&5") 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }
6212{ (ac_try="$ac_compiler -v >&5"
6213case "(($ac_try" in
6214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215 *) ac_try_echo=$ac_try;;
6216esac
6217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6218 (eval "$ac_compiler -v >&5") 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }
6222{ (ac_try="$ac_compiler -V >&5"
6223case "(($ac_try" in
6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225 *) ac_try_echo=$ac_try;;
6226esac
6227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228 (eval "$ac_compiler -V >&5") 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }
6232rm -f a.out
6233
6234# If we don't use `.F' as extension, the preprocessor is not run on the
6235# input file. (Note that this only needs to work for GNU compilers.)
6236ac_save_ext=$ac_ext
6237ac_ext=F
6238{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6239echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6240if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6242else
6243 cat >conftest.$ac_ext <<_ACEOF
6244 program main
6245#ifndef __GNUC__
6246 choke me
6247#endif
6248
6249 end
6250_ACEOF
6251rm -f conftest.$ac_objext
6252if { (ac_try="$ac_compile"
6253case "(($ac_try" in
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6256esac
6257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258 (eval "$ac_compile") 2>conftest.er1
6259 ac_status=$?
6260 grep -v '^ *+' conftest.er1 >conftest.err
6261 rm -f conftest.er1
6262 cat conftest.err >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } && {
6265 test -z "$ac_f77_werror_flag" ||
6266 test ! -s conftest.err
6267 } && test -s conftest.$ac_objext; then
6268 ac_compiler_gnu=yes
6269else
6270 echo "$as_me: failed program was:" >&5
6271sed 's/^/| /' conftest.$ac_ext >&5
6272
6273 ac_compiler_gnu=no
6274fi
6275
6276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6278
6279fi
6280{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6281echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6282ac_ext=$ac_save_ext
6283ac_test_FFLAGS=${FFLAGS+set}
6284ac_save_FFLAGS=$FFLAGS
6285FFLAGS=
6286{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6287echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6288if test "${ac_cv_prog_f77_g+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6290else
6291 FFLAGS=-g
6292cat >conftest.$ac_ext <<_ACEOF
6293 program main
6294
6295 end
6296_ACEOF
6297rm -f conftest.$ac_objext
6298if { (ac_try="$ac_compile"
6299case "(($ac_try" in
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6302esac
6303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_compile") 2>conftest.er1
6305 ac_status=$?
6306 grep -v '^ *+' conftest.er1 >conftest.err
6307 rm -f conftest.er1
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } && {
6311 test -z "$ac_f77_werror_flag" ||
6312 test ! -s conftest.err
6313 } && test -s conftest.$ac_objext; then
6314 ac_cv_prog_f77_g=yes
6315else
6316 echo "$as_me: failed program was:" >&5
6317sed 's/^/| /' conftest.$ac_ext >&5
6318
6319 ac_cv_prog_f77_g=no
6320fi
6321
6322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323
6324fi
6325{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6326echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6327if test "$ac_test_FFLAGS" = set; then
6328 FFLAGS=$ac_save_FFLAGS
6329elif test $ac_cv_prog_f77_g = yes; then
6330 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6331 FFLAGS="-g -O2"
6332 else
6333 FFLAGS="-g"
6334 fi
6335else
6336 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6337 FFLAGS="-O2"
6338 else
6339 FFLAGS=
6340 fi
6341fi
6342
6343G77=`test $ac_compiler_gnu = yes && echo yes`
6344ac_ext=c
6345ac_cpp='$CPP $CPPFLAGS'
6346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6348ac_compiler_gnu=$ac_cv_c_compiler_gnu
6349
6350
6351
6352# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4824esac
4825
4826need_locks="$enable_libtool_lock"
4827
4828
4829ac_ext=c
4830ac_cpp='$CPP $CPPFLAGS'
4831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833ac_compiler_gnu=$ac_cv_c_compiler_gnu
4834{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4835echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4836# On Suns, sometimes $CPP names a directory.
4837if test -n "$CPP" && test -d "$CPP"; then
4838 CPP=
4839fi
4840if test -z "$CPP"; then
4841 if test "${ac_cv_prog_CPP+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4843else
4844 # Double quotes because CPP needs to be expanded
4845 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4846 do
4847 ac_preproc_ok=false
4848for ac_c_preproc_warn_flag in '' yes
4849do
4850 # Use a header file that comes with gcc, so configuring glibc
4851 # with a fresh cross-compiler works.
4852 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4853 # <limits.h> exists even on freestanding compilers.
4854 # On the NeXT, cc -E runs the code through the compiler's parser,
4855 # not just through cpp. "Syntax error" is here to catch this case.
4856 cat >conftest.$ac_ext <<_ACEOF
4857/* confdefs.h. */
4858_ACEOF
4859cat confdefs.h >>conftest.$ac_ext
4860cat >>conftest.$ac_ext <<_ACEOF
4861/* end confdefs.h. */
4862#ifdef __STDC__
4863# include <limits.h>
4864#else
4865# include <assert.h>
4866#endif
4867 Syntax error
4868_ACEOF
4869if { (ac_try="$ac_cpp conftest.$ac_ext"
4870case "(($ac_try" in
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4873esac
4874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4876 ac_status=$?
4877 grep -v '^ *+' conftest.er1 >conftest.err
4878 rm -f conftest.er1
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } >/dev/null && {
4882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4883 test ! -s conftest.err
4884 }; then
4885 :
4886else
4887 echo "$as_me: failed program was:" >&5
4888sed 's/^/| /' conftest.$ac_ext >&5
4889
4890 # Broken: fails on valid input.
4891continue
4892fi
4893
4894rm -f conftest.err conftest.$ac_ext
4895
4896 # OK, works on sane cases. Now check whether nonexistent headers
4897 # can be detected and how.
4898 cat >conftest.$ac_ext <<_ACEOF
4899/* confdefs.h. */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h. */
4904#include <ac_nonexistent.h>
4905_ACEOF
4906if { (ac_try="$ac_cpp conftest.$ac_ext"
4907case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910esac
4911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } >/dev/null && {
4919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4920 test ! -s conftest.err
4921 }; then
4922 # Broken: success on invalid input.
4923continue
4924else
4925 echo "$as_me: failed program was:" >&5
4926sed 's/^/| /' conftest.$ac_ext >&5
4927
4928 # Passes both tests.
4929ac_preproc_ok=:
4930break
4931fi
4932
4933rm -f conftest.err conftest.$ac_ext
4934
4935done
4936# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4937rm -f conftest.err conftest.$ac_ext
4938if $ac_preproc_ok; then
4939 break
4940fi
4941
4942 done
4943 ac_cv_prog_CPP=$CPP
4944
4945fi
4946 CPP=$ac_cv_prog_CPP
4947else
4948 ac_cv_prog_CPP=$CPP
4949fi
4950{ echo "$as_me:$LINENO: result: $CPP" >&5
4951echo "${ECHO_T}$CPP" >&6; }
4952ac_preproc_ok=false
4953for ac_c_preproc_warn_flag in '' yes
4954do
4955 # Use a header file that comes with gcc, so configuring glibc
4956 # with a fresh cross-compiler works.
4957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4958 # <limits.h> exists even on freestanding compilers.
4959 # On the NeXT, cc -E runs the code through the compiler's parser,
4960 # not just through cpp. "Syntax error" is here to catch this case.
4961 cat >conftest.$ac_ext <<_ACEOF
4962/* confdefs.h. */
4963_ACEOF
4964cat confdefs.h >>conftest.$ac_ext
4965cat >>conftest.$ac_ext <<_ACEOF
4966/* end confdefs.h. */
4967#ifdef __STDC__
4968# include <limits.h>
4969#else
4970# include <assert.h>
4971#endif
4972 Syntax error
4973_ACEOF
4974if { (ac_try="$ac_cpp conftest.$ac_ext"
4975case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978esac
4979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4981 ac_status=$?
4982 grep -v '^ *+' conftest.er1 >conftest.err
4983 rm -f conftest.er1
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } >/dev/null && {
4987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4988 test ! -s conftest.err
4989 }; then
4990 :
4991else
4992 echo "$as_me: failed program was:" >&5
4993sed 's/^/| /' conftest.$ac_ext >&5
4994
4995 # Broken: fails on valid input.
4996continue
4997fi
4998
4999rm -f conftest.err conftest.$ac_ext
5000
5001 # OK, works on sane cases. Now check whether nonexistent headers
5002 # can be detected and how.
5003 cat >conftest.$ac_ext <<_ACEOF
5004/* confdefs.h. */
5005_ACEOF
5006cat confdefs.h >>conftest.$ac_ext
5007cat >>conftest.$ac_ext <<_ACEOF
5008/* end confdefs.h. */
5009#include <ac_nonexistent.h>
5010_ACEOF
5011if { (ac_try="$ac_cpp conftest.$ac_ext"
5012case "(($ac_try" in
5013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5015esac
5016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5018 ac_status=$?
5019 grep -v '^ *+' conftest.er1 >conftest.err
5020 rm -f conftest.er1
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } >/dev/null && {
5024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5025 test ! -s conftest.err
5026 }; then
5027 # Broken: success on invalid input.
5028continue
5029else
5030 echo "$as_me: failed program was:" >&5
5031sed 's/^/| /' conftest.$ac_ext >&5
5032
5033 # Passes both tests.
5034ac_preproc_ok=:
5035break
5036fi
5037
5038rm -f conftest.err conftest.$ac_ext
5039
5040done
5041# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5042rm -f conftest.err conftest.$ac_ext
5043if $ac_preproc_ok; then
5044 :
5045else
5046 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5047See \`config.log' for more details." >&5
5048echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5049See \`config.log' for more details." >&2;}
5050 { (exit 1); exit 1; }; }
5051fi
5052
5053ac_ext=c
5054ac_cpp='$CPP $CPPFLAGS'
5055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5057ac_compiler_gnu=$ac_cv_c_compiler_gnu
5058
5059
5060{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5061echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5062if test "${ac_cv_header_stdc+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064else
5065 cat >conftest.$ac_ext <<_ACEOF
5066/* confdefs.h. */
5067_ACEOF
5068cat confdefs.h >>conftest.$ac_ext
5069cat >>conftest.$ac_ext <<_ACEOF
5070/* end confdefs.h. */
5071#include <stdlib.h>
5072#include <stdarg.h>
5073#include <string.h>
5074#include <float.h>
5075
5076int
5077main ()
5078{
5079
5080 ;
5081 return 0;
5082}
5083_ACEOF
5084rm -f conftest.$ac_objext
5085if { (ac_try="$ac_compile"
5086case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089esac
5090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 (eval "$ac_compile") 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && {
5098 test -z "$ac_c_werror_flag" ||
5099 test ! -s conftest.err
5100 } && test -s conftest.$ac_objext; then
5101 ac_cv_header_stdc=yes
5102else
5103 echo "$as_me: failed program was:" >&5
5104sed 's/^/| /' conftest.$ac_ext >&5
5105
5106 ac_cv_header_stdc=no
5107fi
5108
5109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110
5111if test $ac_cv_header_stdc = yes; then
5112 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5113 cat >conftest.$ac_ext <<_ACEOF
5114/* confdefs.h. */
5115_ACEOF
5116cat confdefs.h >>conftest.$ac_ext
5117cat >>conftest.$ac_ext <<_ACEOF
5118/* end confdefs.h. */
5119#include <string.h>
5120
5121_ACEOF
5122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5123 $EGREP "memchr" >/dev/null 2>&1; then
5124 :
5125else
5126 ac_cv_header_stdc=no
5127fi
5128rm -f conftest*
5129
5130fi
5131
5132if test $ac_cv_header_stdc = yes; then
5133 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5134 cat >conftest.$ac_ext <<_ACEOF
5135/* confdefs.h. */
5136_ACEOF
5137cat confdefs.h >>conftest.$ac_ext
5138cat >>conftest.$ac_ext <<_ACEOF
5139/* end confdefs.h. */
5140#include <stdlib.h>
5141
5142_ACEOF
5143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144 $EGREP "free" >/dev/null 2>&1; then
5145 :
5146else
5147 ac_cv_header_stdc=no
5148fi
5149rm -f conftest*
5150
5151fi
5152
5153if test $ac_cv_header_stdc = yes; then
5154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5155 if test "$cross_compiling" = yes; then
5156 :
5157else
5158 cat >conftest.$ac_ext <<_ACEOF
5159/* confdefs.h. */
5160_ACEOF
5161cat confdefs.h >>conftest.$ac_ext
5162cat >>conftest.$ac_ext <<_ACEOF
5163/* end confdefs.h. */
5164#include <ctype.h>
5165#include <stdlib.h>
5166#if ((' ' & 0x0FF) == 0x020)
5167# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5168# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5169#else
5170# define ISLOWER(c) \
5171 (('a' <= (c) && (c) <= 'i') \
5172 || ('j' <= (c) && (c) <= 'r') \
5173 || ('s' <= (c) && (c) <= 'z'))
5174# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5175#endif
5176
5177#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5178int
5179main ()
5180{
5181 int i;
5182 for (i = 0; i < 256; i++)
5183 if (XOR (islower (i), ISLOWER (i))
5184 || toupper (i) != TOUPPER (i))
5185 return 2;
5186 return 0;
5187}
5188_ACEOF
5189rm -f conftest$ac_exeext
5190if { (ac_try="$ac_link"
5191case "(($ac_try" in
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5194esac
5195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_link") 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5200 { (case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203esac
5204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205 (eval "$ac_try") 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5209 :
5210else
5211 echo "$as_me: program exited with status $ac_status" >&5
5212echo "$as_me: failed program was:" >&5
5213sed 's/^/| /' conftest.$ac_ext >&5
5214
5215( exit $ac_status )
5216ac_cv_header_stdc=no
5217fi
5218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5219fi
5220
5221
5222fi
5223fi
5224{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5225echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5226if test $ac_cv_header_stdc = yes; then
5227
5228cat >>confdefs.h <<\_ACEOF
5229#define STDC_HEADERS 1
5230_ACEOF
5231
5232fi
5233
5234# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5245 inttypes.h stdint.h unistd.h
5246do
5247as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5248{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252else
5253 cat >conftest.$ac_ext <<_ACEOF
5254/* confdefs.h. */
5255_ACEOF
5256cat confdefs.h >>conftest.$ac_ext
5257cat >>conftest.$ac_ext <<_ACEOF
5258/* end confdefs.h. */
5259$ac_includes_default
5260
5261#include <$ac_header>
5262_ACEOF
5263rm -f conftest.$ac_objext
5264if { (ac_try="$ac_compile"
5265case "(($ac_try" in
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5268esac
5269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_compile") 2>conftest.er1
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } && {
5277 test -z "$ac_c_werror_flag" ||
5278 test ! -s conftest.err
5279 } && test -s conftest.$ac_objext; then
5280 eval "$as_ac_Header=yes"
5281else
5282 echo "$as_me: failed program was:" >&5
5283sed 's/^/| /' conftest.$ac_ext >&5
5284
5285 eval "$as_ac_Header=no"
5286fi
5287
5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289fi
5290ac_res=`eval echo '${'$as_ac_Header'}'`
5291 { echo "$as_me:$LINENO: result: $ac_res" >&5
5292echo "${ECHO_T}$ac_res" >&6; }
5293if test `eval echo '${'$as_ac_Header'}'` = yes; then
5294 cat >>confdefs.h <<_ACEOF
5295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5296_ACEOF
5297
5298fi
5299
5300done
5301
5302
5303
5304for ac_header in dlfcn.h
5305do
5306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312fi
5313ac_res=`eval echo '${'$as_ac_Header'}'`
5314 { echo "$as_me:$LINENO: result: $ac_res" >&5
5315echo "${ECHO_T}$ac_res" >&6; }
5316else
5317 # Is the header compilable?
5318{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5320cat >conftest.$ac_ext <<_ACEOF
5321/* confdefs.h. */
5322_ACEOF
5323cat confdefs.h >>conftest.$ac_ext
5324cat >>conftest.$ac_ext <<_ACEOF
5325/* end confdefs.h. */
5326$ac_includes_default
5327#include <$ac_header>
5328_ACEOF
5329rm -f conftest.$ac_objext
5330if { (ac_try="$ac_compile"
5331case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334esac
5335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compile") 2>conftest.er1
5337 ac_status=$?
5338 grep -v '^ *+' conftest.er1 >conftest.err
5339 rm -f conftest.er1
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && {
5343 test -z "$ac_c_werror_flag" ||
5344 test ! -s conftest.err
5345 } && test -s conftest.$ac_objext; then
5346 ac_header_compiler=yes
5347else
5348 echo "$as_me: failed program was:" >&5
5349sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 ac_header_compiler=no
5352fi
5353
5354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5356echo "${ECHO_T}$ac_header_compiler" >&6; }
5357
5358# Is the header present?
5359{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5360echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5361cat >conftest.$ac_ext <<_ACEOF
5362/* confdefs.h. */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h. */
5367#include <$ac_header>
5368_ACEOF
5369if { (ac_try="$ac_cpp conftest.$ac_ext"
5370case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373esac
5374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5376 ac_status=$?
5377 grep -v '^ *+' conftest.er1 >conftest.err
5378 rm -f conftest.er1
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } >/dev/null && {
5382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5383 test ! -s conftest.err
5384 }; then
5385 ac_header_preproc=yes
5386else
5387 echo "$as_me: failed program was:" >&5
5388sed 's/^/| /' conftest.$ac_ext >&5
5389
5390 ac_header_preproc=no
5391fi
5392
5393rm -f conftest.err conftest.$ac_ext
5394{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395echo "${ECHO_T}$ac_header_preproc" >&6; }
5396
5397# So? What about this header?
5398case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5399 yes:no: )
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5401echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5403echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5404 ac_header_preproc=yes
5405 ;;
5406 no:yes:* )
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5408echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5410echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5412echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5414echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5416echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5418echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5419 ( cat <<\_ASBOX
5420## ---------------------------------- ##
5421## Report this to christos@astron.com ##
5422## ---------------------------------- ##
5423_ASBOX
5424 ) | sed "s/^/$as_me: WARNING: /" >&2
5425 ;;
5426esac
5427{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432 eval "$as_ac_Header=\$ac_header_preproc"
5433fi
5434ac_res=`eval echo '${'$as_ac_Header'}'`
5435 { echo "$as_me:$LINENO: result: $ac_res" >&5
5436echo "${ECHO_T}$ac_res" >&6; }
5437
5438fi
5439if test `eval echo '${'$as_ac_Header'}'` = yes; then
5440 cat >>confdefs.h <<_ACEOF
5441#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5442_ACEOF
5443
5444fi
5445
5446done
5447
5448ac_ext=cpp
5449ac_cpp='$CXXCPP $CPPFLAGS'
5450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5453if test -z "$CXX"; then
5454 if test -n "$CCC"; then
5455 CXX=$CCC
5456 else
5457 if test -n "$ac_tool_prefix"; then
5458 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5459 do
5460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5461set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5464if test "${ac_cv_prog_CXX+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466else
5467 if test -n "$CXX"; then
5468 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481done
5482done
5483IFS=$as_save_IFS
5484
5485fi
5486fi
5487CXX=$ac_cv_prog_CXX
5488if test -n "$CXX"; then
5489 { echo "$as_me:$LINENO: result: $CXX" >&5
5490echo "${ECHO_T}$CXX" >&6; }
5491else
5492 { echo "$as_me:$LINENO: result: no" >&5
5493echo "${ECHO_T}no" >&6; }
5494fi
5495
5496
5497 test -n "$CXX" && break
5498 done
5499fi
5500if test -z "$CXX"; then
5501 ac_ct_CXX=$CXX
5502 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5503do
5504 # Extract the first word of "$ac_prog", so it can be a program name with args.
5505set dummy $ac_prog; ac_word=$2
5506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5508if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510else
5511 if test -n "$ac_ct_CXX"; then
5512 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5513else
5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515for as_dir in $PATH
5516do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521 ac_cv_prog_ac_ct_CXX="$ac_prog"
5522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5524 fi
5525done
5526done
5527IFS=$as_save_IFS
5528
5529fi
5530fi
5531ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5532if test -n "$ac_ct_CXX"; then
5533 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5534echo "${ECHO_T}$ac_ct_CXX" >&6; }
5535else
5536 { echo "$as_me:$LINENO: result: no" >&5
5537echo "${ECHO_T}no" >&6; }
5538fi
5539
5540
5541 test -n "$ac_ct_CXX" && break
5542done
5543
5544 if test "x$ac_ct_CXX" = x; then
5545 CXX="g++"
5546 else
5547 case $cross_compiling:$ac_tool_warned in
5548yes:)
5549{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5550whose name does not start with the host triplet. If you think this
5551configuration is useful to you, please write to autoconf@gnu.org." >&5
5552echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5553whose name does not start with the host triplet. If you think this
5554configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5555ac_tool_warned=yes ;;
5556esac
5557 CXX=$ac_ct_CXX
5558 fi
5559fi
5560
5561 fi
5562fi
5563# Provide some information about the compiler.
5564echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5565ac_compiler=`set X $ac_compile; echo $2`
5566{ (ac_try="$ac_compiler --version >&5"
5567case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5570esac
5571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_compiler --version >&5") 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }
5576{ (ac_try="$ac_compiler -v >&5"
5577case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5580esac
5581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_compiler -v >&5") 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }
5586{ (ac_try="$ac_compiler -V >&5"
5587case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590esac
5591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_compiler -V >&5") 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }
5596
5597{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5598echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5599if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602 cat >conftest.$ac_ext <<_ACEOF
5603/* confdefs.h. */
5604_ACEOF
5605cat confdefs.h >>conftest.$ac_ext
5606cat >>conftest.$ac_ext <<_ACEOF
5607/* end confdefs.h. */
5608
5609int
5610main ()
5611{
5612#ifndef __GNUC__
5613 choke me
5614#endif
5615
5616 ;
5617 return 0;
5618}
5619_ACEOF
5620rm -f conftest.$ac_objext
5621if { (ac_try="$ac_compile"
5622case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625esac
5626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_compile") 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && {
5634 test -z "$ac_cxx_werror_flag" ||
5635 test ! -s conftest.err
5636 } && test -s conftest.$ac_objext; then
5637 ac_compiler_gnu=yes
5638else
5639 echo "$as_me: failed program was:" >&5
5640sed 's/^/| /' conftest.$ac_ext >&5
5641
5642 ac_compiler_gnu=no
5643fi
5644
5645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5646ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5647
5648fi
5649{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5650echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5651GXX=`test $ac_compiler_gnu = yes && echo yes`
5652ac_test_CXXFLAGS=${CXXFLAGS+set}
5653ac_save_CXXFLAGS=$CXXFLAGS
5654{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5655echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5656if test "${ac_cv_prog_cxx_g+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658else
5659 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5660 ac_cxx_werror_flag=yes
5661 ac_cv_prog_cxx_g=no
5662 CXXFLAGS="-g"
5663 cat >conftest.$ac_ext <<_ACEOF
5664/* confdefs.h. */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h. */
5669
5670int
5671main ()
5672{
5673
5674 ;
5675 return 0;
5676}
5677_ACEOF
5678rm -f conftest.$ac_objext
5679if { (ac_try="$ac_compile"
5680case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683esac
5684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compile") 2>conftest.er1
5686 ac_status=$?
5687 grep -v '^ *+' conftest.er1 >conftest.err
5688 rm -f conftest.er1
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } && {
5692 test -z "$ac_cxx_werror_flag" ||
5693 test ! -s conftest.err
5694 } && test -s conftest.$ac_objext; then
5695 ac_cv_prog_cxx_g=yes
5696else
5697 echo "$as_me: failed program was:" >&5
5698sed 's/^/| /' conftest.$ac_ext >&5
5699
5700 CXXFLAGS=""
5701 cat >conftest.$ac_ext <<_ACEOF
5702/* confdefs.h. */
5703_ACEOF
5704cat confdefs.h >>conftest.$ac_ext
5705cat >>conftest.$ac_ext <<_ACEOF
5706/* end confdefs.h. */
5707
5708int
5709main ()
5710{
5711
5712 ;
5713 return 0;
5714}
5715_ACEOF
5716rm -f conftest.$ac_objext
5717if { (ac_try="$ac_compile"
5718case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721esac
5722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723 (eval "$ac_compile") 2>conftest.er1
5724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && {
5730 test -z "$ac_cxx_werror_flag" ||
5731 test ! -s conftest.err
5732 } && test -s conftest.$ac_objext; then
5733 :
5734else
5735 echo "$as_me: failed program was:" >&5
5736sed 's/^/| /' conftest.$ac_ext >&5
5737
5738 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5739 CXXFLAGS="-g"
5740 cat >conftest.$ac_ext <<_ACEOF
5741/* confdefs.h. */
5742_ACEOF
5743cat confdefs.h >>conftest.$ac_ext
5744cat >>conftest.$ac_ext <<_ACEOF
5745/* end confdefs.h. */
5746
5747int
5748main ()
5749{
5750
5751 ;
5752 return 0;
5753}
5754_ACEOF
5755rm -f conftest.$ac_objext
5756if { (ac_try="$ac_compile"
5757case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760esac
5761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_compile") 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } && {
5769 test -z "$ac_cxx_werror_flag" ||
5770 test ! -s conftest.err
5771 } && test -s conftest.$ac_objext; then
5772 ac_cv_prog_cxx_g=yes
5773else
5774 echo "$as_me: failed program was:" >&5
5775sed 's/^/| /' conftest.$ac_ext >&5
5776
5777
5778fi
5779
5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781fi
5782
5783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784fi
5785
5786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5788fi
5789{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5790echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5791if test "$ac_test_CXXFLAGS" = set; then
5792 CXXFLAGS=$ac_save_CXXFLAGS
5793elif test $ac_cv_prog_cxx_g = yes; then
5794 if test "$GXX" = yes; then
5795 CXXFLAGS="-g -O2"
5796 else
5797 CXXFLAGS="-g"
5798 fi
5799else
5800 if test "$GXX" = yes; then
5801 CXXFLAGS="-O2"
5802 else
5803 CXXFLAGS=
5804 fi
5805fi
5806ac_ext=cpp
5807ac_cpp='$CXXCPP $CPPFLAGS'
5808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5811
5812depcc="$CXX" am_compiler_list=
5813
5814{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5815echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5816if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5818else
5819 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5820 # We make a subdir and do the tests there. Otherwise we can end up
5821 # making bogus files that we don't know about and never remove. For
5822 # instance it was reported that on HP-UX the gcc test will end up
5823 # making a dummy file named `D' -- because `-MD' means `put the output
5824 # in D'.
5825 mkdir conftest.dir
5826 # Copy depcomp to subdir because otherwise we won't find it if we're
5827 # using a relative directory.
5828 cp "$am_depcomp" conftest.dir
5829 cd conftest.dir
5830 # We will build objects and dependencies in a subdirectory because
5831 # it helps to detect inapplicable dependency modes. For instance
5832 # both Tru64's cc and ICC support -MD to output dependencies as a
5833 # side effect of compilation, but ICC will put the dependencies in
5834 # the current directory while Tru64 will put them in the object
5835 # directory.
5836 mkdir sub
5837
5838 am_cv_CXX_dependencies_compiler_type=none
5839 if test "$am_compiler_list" = ""; then
5840 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5841 fi
5842 for depmode in $am_compiler_list; do
5843 # Setup a source with many dependencies, because some compilers
5844 # like to wrap large dependency lists on column 80 (with \), and
5845 # we should not choose a depcomp mode which is confused by this.
5846 #
5847 # We need to recreate these files for each test, as the compiler may
5848 # overwrite some of them when testing with obscure command lines.
5849 # This happens at least with the AIX C compiler.
5850 : > sub/conftest.c
5851 for i in 1 2 3 4 5 6; do
5852 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5853 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5854 # Solaris 8's {/usr,}/bin/sh.
5855 touch sub/conftst$i.h
5856 done
5857 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5858
5859 case $depmode in
5860 nosideeffect)
5861 # after this tag, mechanisms are not by side-effect, so they'll
5862 # only be used when explicitly requested
5863 if test "x$enable_dependency_tracking" = xyes; then
5864 continue
5865 else
5866 break
5867 fi
5868 ;;
5869 none) break ;;
5870 esac
5871 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5872 # mode. It turns out that the SunPro C++ compiler does not properly
5873 # handle `-M -o', and we need to detect this.
5874 if depmode=$depmode \
5875 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5876 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5877 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5878 >/dev/null 2>conftest.err &&
5879 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5880 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5881 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5882 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5883 # icc doesn't choke on unknown options, it will just issue warnings
5884 # or remarks (even with -Werror). So we grep stderr for any message
5885 # that says an option was ignored or not supported.
5886 # When given -MP, icc 7.0 and 7.1 complain thusly:
5887 # icc: Command line warning: ignoring option '-M'; no argument required
5888 # The diagnosis changed in icc 8.0:
5889 # icc: Command line remark: option '-MP' not supported
5890 if (grep 'ignoring option' conftest.err ||
5891 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5892 am_cv_CXX_dependencies_compiler_type=$depmode
5893 break
5894 fi
5895 fi
5896 done
5897
5898 cd ..
5899 rm -rf conftest.dir
5900else
5901 am_cv_CXX_dependencies_compiler_type=none
5902fi
5903
5904fi
5905{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5906echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5907CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5908
5909 if
5910 test "x$enable_dependency_tracking" != xno \
5911 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5912 am__fastdepCXX_TRUE=
5913 am__fastdepCXX_FALSE='#'
5914else
5915 am__fastdepCXX_TRUE='#'
5916 am__fastdepCXX_FALSE=
5917fi
5918
5919
5920
5921
5922if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5923 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5924 (test "X$CXX" != "Xg++"))) ; then
5925 ac_ext=cpp
5926ac_cpp='$CXXCPP $CPPFLAGS'
5927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5930{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5931echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5932if test -z "$CXXCPP"; then
5933 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5935else
5936 # Double quotes because CXXCPP needs to be expanded
5937 for CXXCPP in "$CXX -E" "/lib/cpp"
5938 do
5939 ac_preproc_ok=false
5940for ac_cxx_preproc_warn_flag in '' yes
5941do
5942 # Use a header file that comes with gcc, so configuring glibc
5943 # with a fresh cross-compiler works.
5944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5945 # <limits.h> exists even on freestanding compilers.
5946 # On the NeXT, cc -E runs the code through the compiler's parser,
5947 # not just through cpp. "Syntax error" is here to catch this case.
5948 cat >conftest.$ac_ext <<_ACEOF
5949/* confdefs.h. */
5950_ACEOF
5951cat confdefs.h >>conftest.$ac_ext
5952cat >>conftest.$ac_ext <<_ACEOF
5953/* end confdefs.h. */
5954#ifdef __STDC__
5955# include <limits.h>
5956#else
5957# include <assert.h>
5958#endif
5959 Syntax error
5960_ACEOF
5961if { (ac_try="$ac_cpp conftest.$ac_ext"
5962case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965esac
5966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5968 ac_status=$?
5969 grep -v '^ *+' conftest.er1 >conftest.err
5970 rm -f conftest.er1
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } >/dev/null && {
5974 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5975 test ! -s conftest.err
5976 }; then
5977 :
5978else
5979 echo "$as_me: failed program was:" >&5
5980sed 's/^/| /' conftest.$ac_ext >&5
5981
5982 # Broken: fails on valid input.
5983continue
5984fi
5985
5986rm -f conftest.err conftest.$ac_ext
5987
5988 # OK, works on sane cases. Now check whether nonexistent headers
5989 # can be detected and how.
5990 cat >conftest.$ac_ext <<_ACEOF
5991/* confdefs.h. */
5992_ACEOF
5993cat confdefs.h >>conftest.$ac_ext
5994cat >>conftest.$ac_ext <<_ACEOF
5995/* end confdefs.h. */
5996#include <ac_nonexistent.h>
5997_ACEOF
5998if { (ac_try="$ac_cpp conftest.$ac_ext"
5999case "(($ac_try" in
6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001 *) ac_try_echo=$ac_try;;
6002esac
6003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6005 ac_status=$?
6006 grep -v '^ *+' conftest.er1 >conftest.err
6007 rm -f conftest.er1
6008 cat conftest.err >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } >/dev/null && {
6011 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6012 test ! -s conftest.err
6013 }; then
6014 # Broken: success on invalid input.
6015continue
6016else
6017 echo "$as_me: failed program was:" >&5
6018sed 's/^/| /' conftest.$ac_ext >&5
6019
6020 # Passes both tests.
6021ac_preproc_ok=:
6022break
6023fi
6024
6025rm -f conftest.err conftest.$ac_ext
6026
6027done
6028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6029rm -f conftest.err conftest.$ac_ext
6030if $ac_preproc_ok; then
6031 break
6032fi
6033
6034 done
6035 ac_cv_prog_CXXCPP=$CXXCPP
6036
6037fi
6038 CXXCPP=$ac_cv_prog_CXXCPP
6039else
6040 ac_cv_prog_CXXCPP=$CXXCPP
6041fi
6042{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6043echo "${ECHO_T}$CXXCPP" >&6; }
6044ac_preproc_ok=false
6045for ac_cxx_preproc_warn_flag in '' yes
6046do
6047 # Use a header file that comes with gcc, so configuring glibc
6048 # with a fresh cross-compiler works.
6049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6050 # <limits.h> exists even on freestanding compilers.
6051 # On the NeXT, cc -E runs the code through the compiler's parser,
6052 # not just through cpp. "Syntax error" is here to catch this case.
6053 cat >conftest.$ac_ext <<_ACEOF
6054/* confdefs.h. */
6055_ACEOF
6056cat confdefs.h >>conftest.$ac_ext
6057cat >>conftest.$ac_ext <<_ACEOF
6058/* end confdefs.h. */
6059#ifdef __STDC__
6060# include <limits.h>
6061#else
6062# include <assert.h>
6063#endif
6064 Syntax error
6065_ACEOF
6066if { (ac_try="$ac_cpp conftest.$ac_ext"
6067case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070esac
6071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6073 ac_status=$?
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } >/dev/null && {
6079 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6080 test ! -s conftest.err
6081 }; then
6082 :
6083else
6084 echo "$as_me: failed program was:" >&5
6085sed 's/^/| /' conftest.$ac_ext >&5
6086
6087 # Broken: fails on valid input.
6088continue
6089fi
6090
6091rm -f conftest.err conftest.$ac_ext
6092
6093 # OK, works on sane cases. Now check whether nonexistent headers
6094 # can be detected and how.
6095 cat >conftest.$ac_ext <<_ACEOF
6096/* confdefs.h. */
6097_ACEOF
6098cat confdefs.h >>conftest.$ac_ext
6099cat >>conftest.$ac_ext <<_ACEOF
6100/* end confdefs.h. */
6101#include <ac_nonexistent.h>
6102_ACEOF
6103if { (ac_try="$ac_cpp conftest.$ac_ext"
6104case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107esac
6108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6110 ac_status=$?
6111 grep -v '^ *+' conftest.er1 >conftest.err
6112 rm -f conftest.er1
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } >/dev/null && {
6116 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6117 test ! -s conftest.err
6118 }; then
6119 # Broken: success on invalid input.
6120continue
6121else
6122 echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
6125 # Passes both tests.
6126ac_preproc_ok=:
6127break
6128fi
6129
6130rm -f conftest.err conftest.$ac_ext
6131
6132done
6133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6134rm -f conftest.err conftest.$ac_ext
6135if $ac_preproc_ok; then
6136 :
6137else
6138 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6139See \`config.log' for more details." >&5
6140echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6141See \`config.log' for more details." >&2;}
6142 { (exit 1); exit 1; }; }
6143fi
6144
6145ac_ext=cpp
6146ac_cpp='$CXXCPP $CPPFLAGS'
6147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6150
6151fi
6152
6153
6154ac_ext=f
6155ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6156ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6157ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6158if test -n "$ac_tool_prefix"; then
6159 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6160 do
6161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6162set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6165if test "${ac_cv_prog_F77+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167else
6168 if test -n "$F77"; then
6169 ac_cv_prog_F77="$F77" # Let the user override the test.
6170else
6171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172for as_dir in $PATH
6173do
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6178 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 break 2
6181 fi
6182done
6183done
6184IFS=$as_save_IFS
6185
6186fi
6187fi
6188F77=$ac_cv_prog_F77
6189if test -n "$F77"; then
6190 { echo "$as_me:$LINENO: result: $F77" >&5
6191echo "${ECHO_T}$F77" >&6; }
6192else
6193 { echo "$as_me:$LINENO: result: no" >&5
6194echo "${ECHO_T}no" >&6; }
6195fi
6196
6197
6198 test -n "$F77" && break
6199 done
6200fi
6201if test -z "$F77"; then
6202 ac_ct_F77=$F77
6203 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6204do
6205 # Extract the first word of "$ac_prog", so it can be a program name with args.
6206set dummy $ac_prog; ac_word=$2
6207{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6209if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211else
6212 if test -n "$ac_ct_F77"; then
6213 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6214else
6215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216for as_dir in $PATH
6217do
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222 ac_cv_prog_ac_ct_F77="$ac_prog"
6223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 break 2
6225 fi
6226done
6227done
6228IFS=$as_save_IFS
6229
6230fi
6231fi
6232ac_ct_F77=$ac_cv_prog_ac_ct_F77
6233if test -n "$ac_ct_F77"; then
6234 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6235echo "${ECHO_T}$ac_ct_F77" >&6; }
6236else
6237 { echo "$as_me:$LINENO: result: no" >&5
6238echo "${ECHO_T}no" >&6; }
6239fi
6240
6241
6242 test -n "$ac_ct_F77" && break
6243done
6244
6245 if test "x$ac_ct_F77" = x; then
6246 F77=""
6247 else
6248 case $cross_compiling:$ac_tool_warned in
6249yes:)
6250{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6251whose name does not start with the host triplet. If you think this
6252configuration is useful to you, please write to autoconf@gnu.org." >&5
6253echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6254whose name does not start with the host triplet. If you think this
6255configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6256ac_tool_warned=yes ;;
6257esac
6258 F77=$ac_ct_F77
6259 fi
6260fi
6261
6262
6263# Provide some information about the compiler.
6264echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6265ac_compiler=`set X $ac_compile; echo $2`
6266{ (ac_try="$ac_compiler --version >&5"
6267case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270esac
6271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_compiler --version >&5") 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }
6276{ (ac_try="$ac_compiler -v >&5"
6277case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280esac
6281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_compiler -v >&5") 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }
6286{ (ac_try="$ac_compiler -V >&5"
6287case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290esac
6291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_compiler -V >&5") 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }
6296rm -f a.out
6297
6298# If we don't use `.F' as extension, the preprocessor is not run on the
6299# input file. (Note that this only needs to work for GNU compilers.)
6300ac_save_ext=$ac_ext
6301ac_ext=F
6302{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6303echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6304if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306else
6307 cat >conftest.$ac_ext <<_ACEOF
6308 program main
6309#ifndef __GNUC__
6310 choke me
6311#endif
6312
6313 end
6314_ACEOF
6315rm -f conftest.$ac_objext
6316if { (ac_try="$ac_compile"
6317case "(($ac_try" in
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6320esac
6321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322 (eval "$ac_compile") 2>conftest.er1
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } && {
6329 test -z "$ac_f77_werror_flag" ||
6330 test ! -s conftest.err
6331 } && test -s conftest.$ac_objext; then
6332 ac_compiler_gnu=yes
6333else
6334 echo "$as_me: failed program was:" >&5
6335sed 's/^/| /' conftest.$ac_ext >&5
6336
6337 ac_compiler_gnu=no
6338fi
6339
6340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6342
6343fi
6344{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6345echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6346ac_ext=$ac_save_ext
6347ac_test_FFLAGS=${FFLAGS+set}
6348ac_save_FFLAGS=$FFLAGS
6349FFLAGS=
6350{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6351echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6352if test "${ac_cv_prog_f77_g+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354else
6355 FFLAGS=-g
6356cat >conftest.$ac_ext <<_ACEOF
6357 program main
6358
6359 end
6360_ACEOF
6361rm -f conftest.$ac_objext
6362if { (ac_try="$ac_compile"
6363case "(($ac_try" in
6364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6365 *) ac_try_echo=$ac_try;;
6366esac
6367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6368 (eval "$ac_compile") 2>conftest.er1
6369 ac_status=$?
6370 grep -v '^ *+' conftest.er1 >conftest.err
6371 rm -f conftest.er1
6372 cat conftest.err >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } && {
6375 test -z "$ac_f77_werror_flag" ||
6376 test ! -s conftest.err
6377 } && test -s conftest.$ac_objext; then
6378 ac_cv_prog_f77_g=yes
6379else
6380 echo "$as_me: failed program was:" >&5
6381sed 's/^/| /' conftest.$ac_ext >&5
6382
6383 ac_cv_prog_f77_g=no
6384fi
6385
6386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387
6388fi
6389{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6390echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6391if test "$ac_test_FFLAGS" = set; then
6392 FFLAGS=$ac_save_FFLAGS
6393elif test $ac_cv_prog_f77_g = yes; then
6394 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6395 FFLAGS="-g -O2"
6396 else
6397 FFLAGS="-g"
6398 fi
6399else
6400 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6401 FFLAGS="-O2"
6402 else
6403 FFLAGS=
6404 fi
6405fi
6406
6407G77=`test $ac_compiler_gnu = yes && echo yes`
6408ac_ext=c
6409ac_cpp='$CPP $CPPFLAGS'
6410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6412ac_compiler_gnu=$ac_cv_c_compiler_gnu
6413
6414
6415
6416# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6353
6354# find the maximum length of command line arguments
6355{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6356echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6357if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359else
6360 i=0
6361 teststring="ABCD"
6362
6363 case $build_os in
6364 msdosdjgpp*)
6365 # On DJGPP, this test can blow up pretty badly due to problems in libc
6366 # (any single argument exceeding 2000 bytes causes a buffer overrun
6367 # during glob expansion). Even if it were fixed, the result of this
6368 # check would be larger than it should be.
6369 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6370 ;;
6371
6372 gnu*)
6373 # Under GNU Hurd, this test is not required because there is
6374 # no limit to the length of command line arguments.
6375 # Libtool will interpret -1 as no limit whatsoever
6376 lt_cv_sys_max_cmd_len=-1;
6377 ;;
6378
6379 cygwin* | mingw*)
6380 # On Win9x/ME, this test blows up -- it succeeds, but takes
6381 # about 5 minutes as the teststring grows exponentially.
6382 # Worse, since 9x/ME are not pre-emptively multitasking,
6383 # you end up with a "frozen" computer, even though with patience
6384 # the test eventually succeeds (with a max line length of 256k).
6385 # Instead, let's just punt: use the minimum linelength reported by
6386 # all of the supported platforms: 8192 (on NT/2K/XP).
6387 lt_cv_sys_max_cmd_len=8192;
6388 ;;
6389
6390 amigaos*)
6391 # On AmigaOS with pdksh, this test takes hours, literally.
6392 # So we just punt and use a minimum line length of 8192.
6393 lt_cv_sys_max_cmd_len=8192;
6394 ;;
6395
6396 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6397 # This has been around since 386BSD, at least. Likely further.
6398 if test -x /sbin/sysctl; then
6399 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6400 elif test -x /usr/sbin/sysctl; then
6401 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6402 else
6417# find the maximum length of command line arguments
6418{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6419echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6420if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422else
6423 i=0
6424 teststring="ABCD"
6425
6426 case $build_os in
6427 msdosdjgpp*)
6428 # On DJGPP, this test can blow up pretty badly due to problems in libc
6429 # (any single argument exceeding 2000 bytes causes a buffer overrun
6430 # during glob expansion). Even if it were fixed, the result of this
6431 # check would be larger than it should be.
6432 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6433 ;;
6434
6435 gnu*)
6436 # Under GNU Hurd, this test is not required because there is
6437 # no limit to the length of command line arguments.
6438 # Libtool will interpret -1 as no limit whatsoever
6439 lt_cv_sys_max_cmd_len=-1;
6440 ;;
6441
6442 cygwin* | mingw*)
6443 # On Win9x/ME, this test blows up -- it succeeds, but takes
6444 # about 5 minutes as the teststring grows exponentially.
6445 # Worse, since 9x/ME are not pre-emptively multitasking,
6446 # you end up with a "frozen" computer, even though with patience
6447 # the test eventually succeeds (with a max line length of 256k).
6448 # Instead, let's just punt: use the minimum linelength reported by
6449 # all of the supported platforms: 8192 (on NT/2K/XP).
6450 lt_cv_sys_max_cmd_len=8192;
6451 ;;
6452
6453 amigaos*)
6454 # On AmigaOS with pdksh, this test takes hours, literally.
6455 # So we just punt and use a minimum line length of 8192.
6456 lt_cv_sys_max_cmd_len=8192;
6457 ;;
6458
6459 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6460 # This has been around since 386BSD, at least. Likely further.
6461 if test -x /sbin/sysctl; then
6462 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6463 elif test -x /usr/sbin/sysctl; then
6464 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6465 else
6403 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6466 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6404 fi
6405 # And add a safety zone
6406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6407 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6408 ;;
6467 fi
6468 # And add a safety zone
6469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6471 ;;
6472
6473 interix*)
6474 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6475 lt_cv_sys_max_cmd_len=196608
6476 ;;
6477
6409 osf*)
6410 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6411 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6412 # nice to cause kernel panics so lets avoid the loop below.
6413 # First set a reasonable default.
6414 lt_cv_sys_max_cmd_len=16384
6415 #
6416 if test -x /sbin/sysconfig; then
6417 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6418 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6419 esac
6420 fi
6421 ;;
6478 osf*)
6479 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6480 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6481 # nice to cause kernel panics so lets avoid the loop below.
6482 # First set a reasonable default.
6483 lt_cv_sys_max_cmd_len=16384
6484 #
6485 if test -x /sbin/sysconfig; then
6486 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6487 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6488 esac
6489 fi
6490 ;;
6491 sco3.2v5*)
6492 lt_cv_sys_max_cmd_len=102400
6493 ;;
6494 sysv5* | sco5v6* | sysv4.2uw2*)
6495 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6496 if test -n "$kargmax"; then
6497 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6498 else
6499 lt_cv_sys_max_cmd_len=32768
6500 fi
6501 ;;
6422 *)
6502 *)
6423 # If test is not a shell built-in, we'll probably end up computing a
6424 # maximum length that is only half of the actual maximum length, but
6425 # we can't tell.
6426 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6427 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6503 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6504 if test -n "$lt_cv_sys_max_cmd_len"; then
6505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6507 else
6508 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6509 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6428 = "XX$teststring") >/dev/null 2>&1 &&
6510 = "XX$teststring") >/dev/null 2>&1 &&
6429 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6430 lt_cv_sys_max_cmd_len=$new_result &&
6431 test $i != 17 # 1/2 MB should be enough
6432 do
6433 i=`expr $i + 1`
6434 teststring=$teststring$teststring
6435 done
6436 teststring=
6437 # Add a significant safety factor because C++ compilers can tack on massive
6438 # amounts of additional arguments before passing them to the linker.
6439 # It appears as though 1/2 is a usable value.
6440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6511 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6512 lt_cv_sys_max_cmd_len=$new_result &&
6513 test $i != 17 # 1/2 MB should be enough
6514 do
6515 i=`expr $i + 1`
6516 teststring=$teststring$teststring
6517 done
6518 teststring=
6519 # Add a significant safety factor because C++ compilers can tack on massive
6520 # amounts of additional arguments before passing them to the linker.
6521 # It appears as though 1/2 is a usable value.
6522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6523 fi
6441 ;;
6442 esac
6443
6444fi
6445
6446if test -n $lt_cv_sys_max_cmd_len ; then
6447 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6448echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6449else
6450 { echo "$as_me:$LINENO: result: none" >&5
6451echo "${ECHO_T}none" >&6; }
6452fi
6453
6454
6455
6456
6524 ;;
6525 esac
6526
6527fi
6528
6529if test -n $lt_cv_sys_max_cmd_len ; then
6530 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6531echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6532else
6533 { echo "$as_me:$LINENO: result: none" >&5
6534echo "${ECHO_T}none" >&6; }
6535fi
6536
6537
6538
6539
6540
6457# Check for command to grab the raw symbol name followed by C symbol from nm.
6458{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6459echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6460if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463
6464# These are sane defaults that work on at least a few old systems.
6465# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6466
6467# Character class describing NM global symbol codes.
6468symcode='[BCDEGRST]'
6469
6470# Regexp to match symbols that can be accessed directly from C.
6471sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6472
6473# Transform an extracted symbol line into a proper C declaration
6474lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6475
6476# Transform an extracted symbol line into symbol name and symbol address
6477lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6478
6479# Define system-specific variables.
6480case $host_os in
6481aix*)
6482 symcode='[BCDT]'
6483 ;;
6484cygwin* | mingw* | pw32*)
6485 symcode='[ABCDGISTW]'
6486 ;;
6487hpux*) # Its linker distinguishes data from code symbols
6488 if test "$host_cpu" = ia64; then
6489 symcode='[ABCDEGRST]'
6490 fi
6491 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6492 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6493 ;;
6541# Check for command to grab the raw symbol name followed by C symbol from nm.
6542{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6543echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6544if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547
6548# These are sane defaults that work on at least a few old systems.
6549# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6550
6551# Character class describing NM global symbol codes.
6552symcode='[BCDEGRST]'
6553
6554# Regexp to match symbols that can be accessed directly from C.
6555sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6556
6557# Transform an extracted symbol line into a proper C declaration
6558lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6559
6560# Transform an extracted symbol line into symbol name and symbol address
6561lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6562
6563# Define system-specific variables.
6564case $host_os in
6565aix*)
6566 symcode='[BCDT]'
6567 ;;
6568cygwin* | mingw* | pw32*)
6569 symcode='[ABCDGISTW]'
6570 ;;
6571hpux*) # Its linker distinguishes data from code symbols
6572 if test "$host_cpu" = ia64; then
6573 symcode='[ABCDEGRST]'
6574 fi
6575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6576 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6577 ;;
6494linux*)
6578linux* | k*bsd*-gnu)
6495 if test "$host_cpu" = ia64; then
6496 symcode='[ABCDGIRSTW]'
6497 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6498 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6499 fi
6500 ;;
6501irix* | nonstopux*)
6502 symcode='[BCDEGRST]'
6503 ;;
6504osf*)
6505 symcode='[BCDEGQRST]'
6506 ;;
6579 if test "$host_cpu" = ia64; then
6580 symcode='[ABCDGIRSTW]'
6581 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6582 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6583 fi
6584 ;;
6585irix* | nonstopux*)
6586 symcode='[BCDEGRST]'
6587 ;;
6588osf*)
6589 symcode='[BCDEGQRST]'
6590 ;;
6507solaris* | sysv5*)
6591solaris*)
6508 symcode='[BDRT]'
6509 ;;
6592 symcode='[BDRT]'
6593 ;;
6594sco3.2v5*)
6595 symcode='[DT]'
6596 ;;
6597sysv4.2uw2*)
6598 symcode='[DT]'
6599 ;;
6600sysv5* | sco5v6* | unixware* | OpenUNIX*)
6601 symcode='[ABDT]'
6602 ;;
6510sysv4)
6511 symcode='[DFNSTU]'
6512 ;;
6513esac
6514
6515# Handle CRLF in mingw tool chain
6516opt_cr=
6517case $build_os in
6518mingw*)
6519 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6520 ;;
6521esac
6522
6523# If we're using GNU nm, then use its standard symbol codes.
6524case `$NM -V 2>&1` in
6525*GNU* | *'with BFD'*)
6526 symcode='[ABCDGIRSTW]' ;;
6527esac
6528
6529# Try without a prefix undercore, then with it.
6530for ac_symprfx in "" "_"; do
6531
6532 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6533 symxfrm="\\1 $ac_symprfx\\2 \\2"
6534
6535 # Write the raw and C identifiers.
6536 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6537
6538 # Check to see that the pipe works correctly.
6539 pipe_works=no
6540
6541 rm -f conftest*
6542 cat > conftest.$ac_ext <<EOF
6543#ifdef __cplusplus
6544extern "C" {
6545#endif
6546char nm_test_var;
6547void nm_test_func(){}
6548#ifdef __cplusplus
6549}
6550#endif
6551int main(){nm_test_var='a';nm_test_func();return(0);}
6552EOF
6553
6554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555 (eval $ac_compile) 2>&5
6556 ac_status=$?
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; then
6559 # Now try to grab the symbols.
6560 nlist=conftest.nm
6561 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6562 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && test -s "$nlist"; then
6566 # Try sorting and uniquifying the output.
6567 if sort "$nlist" | uniq > "$nlist"T; then
6568 mv -f "$nlist"T "$nlist"
6569 else
6570 rm -f "$nlist"T
6571 fi
6572
6573 # Make sure that we snagged all the symbols we need.
6574 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6575 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6576 cat <<EOF > conftest.$ac_ext
6577#ifdef __cplusplus
6578extern "C" {
6579#endif
6580
6581EOF
6582 # Now generate the symbol file.
6583 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6584
6585 cat <<EOF >> conftest.$ac_ext
6586#if defined (__STDC__) && __STDC__
6587# define lt_ptr_t void *
6588#else
6589# define lt_ptr_t char *
6590# define const
6591#endif
6592
6593/* The mapping between symbol names and symbols. */
6594const struct {
6595 const char *name;
6596 lt_ptr_t address;
6597}
6598lt_preloaded_symbols[] =
6599{
6600EOF
6601 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6602 cat <<\EOF >> conftest.$ac_ext
6603 {0, (lt_ptr_t) 0}
6604};
6605
6606#ifdef __cplusplus
6607}
6608#endif
6609EOF
6610 # Now try linking the two files.
6611 mv conftest.$ac_objext conftstm.$ac_objext
6612 lt_save_LIBS="$LIBS"
6613 lt_save_CFLAGS="$CFLAGS"
6614 LIBS="conftstm.$ac_objext"
6615 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6617 (eval $ac_link) 2>&5
6618 ac_status=$?
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6621 pipe_works=yes
6622 fi
6623 LIBS="$lt_save_LIBS"
6624 CFLAGS="$lt_save_CFLAGS"
6625 else
6626 echo "cannot find nm_test_func in $nlist" >&5
6627 fi
6628 else
6629 echo "cannot find nm_test_var in $nlist" >&5
6630 fi
6631 else
6632 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6633 fi
6634 else
6635 echo "$progname: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6637 fi
6603sysv4)
6604 symcode='[DFNSTU]'
6605 ;;
6606esac
6607
6608# Handle CRLF in mingw tool chain
6609opt_cr=
6610case $build_os in
6611mingw*)
6612 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6613 ;;
6614esac
6615
6616# If we're using GNU nm, then use its standard symbol codes.
6617case `$NM -V 2>&1` in
6618*GNU* | *'with BFD'*)
6619 symcode='[ABCDGIRSTW]' ;;
6620esac
6621
6622# Try without a prefix undercore, then with it.
6623for ac_symprfx in "" "_"; do
6624
6625 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6626 symxfrm="\\1 $ac_symprfx\\2 \\2"
6627
6628 # Write the raw and C identifiers.
6629 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6630
6631 # Check to see that the pipe works correctly.
6632 pipe_works=no
6633
6634 rm -f conftest*
6635 cat > conftest.$ac_ext <<EOF
6636#ifdef __cplusplus
6637extern "C" {
6638#endif
6639char nm_test_var;
6640void nm_test_func(){}
6641#ifdef __cplusplus
6642}
6643#endif
6644int main(){nm_test_var='a';nm_test_func();return(0);}
6645EOF
6646
6647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6648 (eval $ac_compile) 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; then
6652 # Now try to grab the symbols.
6653 nlist=conftest.nm
6654 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6655 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } && test -s "$nlist"; then
6659 # Try sorting and uniquifying the output.
6660 if sort "$nlist" | uniq > "$nlist"T; then
6661 mv -f "$nlist"T "$nlist"
6662 else
6663 rm -f "$nlist"T
6664 fi
6665
6666 # Make sure that we snagged all the symbols we need.
6667 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6668 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6669 cat <<EOF > conftest.$ac_ext
6670#ifdef __cplusplus
6671extern "C" {
6672#endif
6673
6674EOF
6675 # Now generate the symbol file.
6676 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6677
6678 cat <<EOF >> conftest.$ac_ext
6679#if defined (__STDC__) && __STDC__
6680# define lt_ptr_t void *
6681#else
6682# define lt_ptr_t char *
6683# define const
6684#endif
6685
6686/* The mapping between symbol names and symbols. */
6687const struct {
6688 const char *name;
6689 lt_ptr_t address;
6690}
6691lt_preloaded_symbols[] =
6692{
6693EOF
6694 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6695 cat <<\EOF >> conftest.$ac_ext
6696 {0, (lt_ptr_t) 0}
6697};
6698
6699#ifdef __cplusplus
6700}
6701#endif
6702EOF
6703 # Now try linking the two files.
6704 mv conftest.$ac_objext conftstm.$ac_objext
6705 lt_save_LIBS="$LIBS"
6706 lt_save_CFLAGS="$CFLAGS"
6707 LIBS="conftstm.$ac_objext"
6708 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6710 (eval $ac_link) 2>&5
6711 ac_status=$?
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6714 pipe_works=yes
6715 fi
6716 LIBS="$lt_save_LIBS"
6717 CFLAGS="$lt_save_CFLAGS"
6718 else
6719 echo "cannot find nm_test_func in $nlist" >&5
6720 fi
6721 else
6722 echo "cannot find nm_test_var in $nlist" >&5
6723 fi
6724 else
6725 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6726 fi
6727 else
6728 echo "$progname: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6730 fi
6638 rm -f conftest* conftst*
6731 rm -rf conftest* conftst*
6639
6640 # Do not use the global_symbol_pipe unless it works.
6641 if test "$pipe_works" = yes; then
6642 break
6643 else
6644 lt_cv_sys_global_symbol_pipe=
6645 fi
6646done
6647
6648fi
6649
6650if test -z "$lt_cv_sys_global_symbol_pipe"; then
6651 lt_cv_sys_global_symbol_to_cdecl=
6652fi
6653if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6654 { echo "$as_me:$LINENO: result: failed" >&5
6655echo "${ECHO_T}failed" >&6; }
6656else
6657 { echo "$as_me:$LINENO: result: ok" >&5
6658echo "${ECHO_T}ok" >&6; }
6659fi
6660
6661{ echo "$as_me:$LINENO: checking for objdir" >&5
6662echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6663if test "${lt_cv_objdir+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6665else
6666 rm -f .libs 2>/dev/null
6667mkdir .libs 2>/dev/null
6668if test -d .libs; then
6669 lt_cv_objdir=.libs
6670else
6671 # MS-DOS does not allow filenames that begin with a dot.
6672 lt_cv_objdir=_libs
6673fi
6674rmdir .libs 2>/dev/null
6675fi
6676{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6677echo "${ECHO_T}$lt_cv_objdir" >&6; }
6678objdir=$lt_cv_objdir
6679
6680
6681
6682
6683
6684case $host_os in
6685aix3*)
6686 # AIX sometimes has problems with the GCC collect2 program. For some
6687 # reason, if we set the COLLECT_NAMES environment variable, the problems
6688 # vanish in a puff of smoke.
6689 if test "X${COLLECT_NAMES+set}" != Xset; then
6690 COLLECT_NAMES=
6691 export COLLECT_NAMES
6692 fi
6693 ;;
6694esac
6695
6696# Sed substitution that helps us do robust quoting. It backslashifies
6697# metacharacters that are still active within double-quoted strings.
6698Xsed='sed -e 1s/^X//'
6699sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6700
6701# Same as above, but do not quote variable references.
6702double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6703
6704# Sed substitution to delay expansion of an escaped shell variable in a
6705# double_quote_subst'ed string.
6706delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6707
6708# Sed substitution to avoid accidental globbing in evaled expressions
6709no_glob_subst='s/\*/\\\*/g'
6710
6711# Constants:
6712rm="rm -f"
6713
6714# Global variables:
6715default_ofile=libtool
6716can_build_shared=yes
6717
6732
6733 # Do not use the global_symbol_pipe unless it works.
6734 if test "$pipe_works" = yes; then
6735 break
6736 else
6737 lt_cv_sys_global_symbol_pipe=
6738 fi
6739done
6740
6741fi
6742
6743if test -z "$lt_cv_sys_global_symbol_pipe"; then
6744 lt_cv_sys_global_symbol_to_cdecl=
6745fi
6746if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6747 { echo "$as_me:$LINENO: result: failed" >&5
6748echo "${ECHO_T}failed" >&6; }
6749else
6750 { echo "$as_me:$LINENO: result: ok" >&5
6751echo "${ECHO_T}ok" >&6; }
6752fi
6753
6754{ echo "$as_me:$LINENO: checking for objdir" >&5
6755echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6756if test "${lt_cv_objdir+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759 rm -f .libs 2>/dev/null
6760mkdir .libs 2>/dev/null
6761if test -d .libs; then
6762 lt_cv_objdir=.libs
6763else
6764 # MS-DOS does not allow filenames that begin with a dot.
6765 lt_cv_objdir=_libs
6766fi
6767rmdir .libs 2>/dev/null
6768fi
6769{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6770echo "${ECHO_T}$lt_cv_objdir" >&6; }
6771objdir=$lt_cv_objdir
6772
6773
6774
6775
6776
6777case $host_os in
6778aix3*)
6779 # AIX sometimes has problems with the GCC collect2 program. For some
6780 # reason, if we set the COLLECT_NAMES environment variable, the problems
6781 # vanish in a puff of smoke.
6782 if test "X${COLLECT_NAMES+set}" != Xset; then
6783 COLLECT_NAMES=
6784 export COLLECT_NAMES
6785 fi
6786 ;;
6787esac
6788
6789# Sed substitution that helps us do robust quoting. It backslashifies
6790# metacharacters that are still active within double-quoted strings.
6791Xsed='sed -e 1s/^X//'
6792sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6793
6794# Same as above, but do not quote variable references.
6795double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6796
6797# Sed substitution to delay expansion of an escaped shell variable in a
6798# double_quote_subst'ed string.
6799delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6800
6801# Sed substitution to avoid accidental globbing in evaled expressions
6802no_glob_subst='s/\*/\\\*/g'
6803
6804# Constants:
6805rm="rm -f"
6806
6807# Global variables:
6808default_ofile=libtool
6809can_build_shared=yes
6810
6718# All known linkers require a `.a' archive for static linking (except M$VC,
6811# All known linkers require a `.a' archive for static linking (except MSVC,
6719# which needs '.lib').
6720libext=a
6721ltmain="$ac_aux_dir/ltmain.sh"
6722ofile="$default_ofile"
6723with_gnu_ld="$lt_cv_prog_gnu_ld"
6724
6725if test -n "$ac_tool_prefix"; then
6726 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6727set dummy ${ac_tool_prefix}ar; ac_word=$2
6728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730if test "${ac_cv_prog_AR+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732else
6733 if test -n "$AR"; then
6734 ac_cv_prog_AR="$AR" # Let the user override the test.
6735else
6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_prog_AR="${ac_tool_prefix}ar"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747done
6748done
6749IFS=$as_save_IFS
6750
6751fi
6752fi
6753AR=$ac_cv_prog_AR
6754if test -n "$AR"; then
6755 { echo "$as_me:$LINENO: result: $AR" >&5
6756echo "${ECHO_T}$AR" >&6; }
6757else
6758 { echo "$as_me:$LINENO: result: no" >&5
6759echo "${ECHO_T}no" >&6; }
6760fi
6761
6762
6763fi
6764if test -z "$ac_cv_prog_AR"; then
6765 ac_ct_AR=$AR
6766 # Extract the first word of "ar", so it can be a program name with args.
6767set dummy ar; ac_word=$2
6768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6770if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772else
6773 if test -n "$ac_ct_AR"; then
6774 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6775else
6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_prog_ac_ct_AR="ar"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787done
6788done
6789IFS=$as_save_IFS
6790
6791fi
6792fi
6793ac_ct_AR=$ac_cv_prog_ac_ct_AR
6794if test -n "$ac_ct_AR"; then
6795 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6796echo "${ECHO_T}$ac_ct_AR" >&6; }
6797else
6798 { echo "$as_me:$LINENO: result: no" >&5
6799echo "${ECHO_T}no" >&6; }
6800fi
6801
6802 if test "x$ac_ct_AR" = x; then
6803 AR="false"
6804 else
6805 case $cross_compiling:$ac_tool_warned in
6806yes:)
6807{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6808whose name does not start with the host triplet. If you think this
6809configuration is useful to you, please write to autoconf@gnu.org." >&5
6810echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6811whose name does not start with the host triplet. If you think this
6812configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6813ac_tool_warned=yes ;;
6814esac
6815 AR=$ac_ct_AR
6816 fi
6817else
6818 AR="$ac_cv_prog_AR"
6819fi
6820
6821if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6823set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826if test "${ac_cv_prog_RANLIB+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828else
6829 if test -n "$RANLIB"; then
6830 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6831else
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843done
6844done
6845IFS=$as_save_IFS
6846
6847fi
6848fi
6849RANLIB=$ac_cv_prog_RANLIB
6850if test -n "$RANLIB"; then
6851 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6852echo "${ECHO_T}$RANLIB" >&6; }
6853else
6854 { echo "$as_me:$LINENO: result: no" >&5
6855echo "${ECHO_T}no" >&6; }
6856fi
6857
6858
6859fi
6860if test -z "$ac_cv_prog_RANLIB"; then
6861 ac_ct_RANLIB=$RANLIB
6862 # Extract the first word of "ranlib", so it can be a program name with args.
6863set dummy ranlib; ac_word=$2
6864{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6866if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868else
6869 if test -n "$ac_ct_RANLIB"; then
6870 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6871else
6872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_prog_ac_ct_RANLIB="ranlib"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883done
6884done
6885IFS=$as_save_IFS
6886
6887fi
6888fi
6889ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6890if test -n "$ac_ct_RANLIB"; then
6891 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6892echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6893else
6894 { echo "$as_me:$LINENO: result: no" >&5
6895echo "${ECHO_T}no" >&6; }
6896fi
6897
6898 if test "x$ac_ct_RANLIB" = x; then
6899 RANLIB=":"
6900 else
6901 case $cross_compiling:$ac_tool_warned in
6902yes:)
6903{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6904whose name does not start with the host triplet. If you think this
6905configuration is useful to you, please write to autoconf@gnu.org." >&5
6906echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6907whose name does not start with the host triplet. If you think this
6908configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6909ac_tool_warned=yes ;;
6910esac
6911 RANLIB=$ac_ct_RANLIB
6912 fi
6913else
6914 RANLIB="$ac_cv_prog_RANLIB"
6915fi
6916
6917if test -n "$ac_tool_prefix"; then
6918 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6919set dummy ${ac_tool_prefix}strip; ac_word=$2
6920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6922if test "${ac_cv_prog_STRIP+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6924else
6925 if test -n "$STRIP"; then
6926 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6927else
6928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929for as_dir in $PATH
6930do
6931 IFS=$as_save_IFS
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 break 2
6938 fi
6939done
6940done
6941IFS=$as_save_IFS
6942
6943fi
6944fi
6945STRIP=$ac_cv_prog_STRIP
6946if test -n "$STRIP"; then
6947 { echo "$as_me:$LINENO: result: $STRIP" >&5
6948echo "${ECHO_T}$STRIP" >&6; }
6949else
6950 { echo "$as_me:$LINENO: result: no" >&5
6951echo "${ECHO_T}no" >&6; }
6952fi
6953
6954
6955fi
6956if test -z "$ac_cv_prog_STRIP"; then
6957 ac_ct_STRIP=$STRIP
6958 # Extract the first word of "strip", so it can be a program name with args.
6959set dummy strip; ac_word=$2
6960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6964else
6965 if test -n "$ac_ct_STRIP"; then
6966 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6967else
6968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969for as_dir in $PATH
6970do
6971 IFS=$as_save_IFS
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975 ac_cv_prog_ac_ct_STRIP="strip"
6976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 break 2
6978 fi
6979done
6980done
6981IFS=$as_save_IFS
6982
6983fi
6984fi
6985ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6986if test -n "$ac_ct_STRIP"; then
6987 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6988echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6989else
6990 { echo "$as_me:$LINENO: result: no" >&5
6991echo "${ECHO_T}no" >&6; }
6992fi
6993
6994 if test "x$ac_ct_STRIP" = x; then
6995 STRIP=":"
6996 else
6997 case $cross_compiling:$ac_tool_warned in
6998yes:)
6999{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7000whose name does not start with the host triplet. If you think this
7001configuration is useful to you, please write to autoconf@gnu.org." >&5
7002echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7003whose name does not start with the host triplet. If you think this
7004configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7005ac_tool_warned=yes ;;
7006esac
7007 STRIP=$ac_ct_STRIP
7008 fi
7009else
7010 STRIP="$ac_cv_prog_STRIP"
7011fi
7012
7013
7014old_CC="$CC"
7015old_CFLAGS="$CFLAGS"
7016
7017# Set sane defaults for various variables
7018test -z "$AR" && AR=ar
7019test -z "$AR_FLAGS" && AR_FLAGS=cru
7020test -z "$AS" && AS=as
7021test -z "$CC" && CC=cc
7022test -z "$LTCC" && LTCC=$CC
6812# which needs '.lib').
6813libext=a
6814ltmain="$ac_aux_dir/ltmain.sh"
6815ofile="$default_ofile"
6816with_gnu_ld="$lt_cv_prog_gnu_ld"
6817
6818if test -n "$ac_tool_prefix"; then
6819 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6820set dummy ${ac_tool_prefix}ar; ac_word=$2
6821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823if test "${ac_cv_prog_AR+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825else
6826 if test -n "$AR"; then
6827 ac_cv_prog_AR="$AR" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_AR="${ac_tool_prefix}ar"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840done
6841done
6842IFS=$as_save_IFS
6843
6844fi
6845fi
6846AR=$ac_cv_prog_AR
6847if test -n "$AR"; then
6848 { echo "$as_me:$LINENO: result: $AR" >&5
6849echo "${ECHO_T}$AR" >&6; }
6850else
6851 { echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6; }
6853fi
6854
6855
6856fi
6857if test -z "$ac_cv_prog_AR"; then
6858 ac_ct_AR=$AR
6859 # Extract the first word of "ar", so it can be a program name with args.
6860set dummy ar; ac_word=$2
6861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865else
6866 if test -n "$ac_ct_AR"; then
6867 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6868else
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_ac_ct_AR="ar"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880done
6881done
6882IFS=$as_save_IFS
6883
6884fi
6885fi
6886ac_ct_AR=$ac_cv_prog_ac_ct_AR
6887if test -n "$ac_ct_AR"; then
6888 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6889echo "${ECHO_T}$ac_ct_AR" >&6; }
6890else
6891 { echo "$as_me:$LINENO: result: no" >&5
6892echo "${ECHO_T}no" >&6; }
6893fi
6894
6895 if test "x$ac_ct_AR" = x; then
6896 AR="false"
6897 else
6898 case $cross_compiling:$ac_tool_warned in
6899yes:)
6900{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6901whose name does not start with the host triplet. If you think this
6902configuration is useful to you, please write to autoconf@gnu.org." >&5
6903echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6904whose name does not start with the host triplet. If you think this
6905configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6906ac_tool_warned=yes ;;
6907esac
6908 AR=$ac_ct_AR
6909 fi
6910else
6911 AR="$ac_cv_prog_AR"
6912fi
6913
6914if test -n "$ac_tool_prefix"; then
6915 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6916set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6917{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6919if test "${ac_cv_prog_RANLIB+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6921else
6922 if test -n "$RANLIB"; then
6923 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6924else
6925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926for as_dir in $PATH
6927do
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6935 fi
6936done
6937done
6938IFS=$as_save_IFS
6939
6940fi
6941fi
6942RANLIB=$ac_cv_prog_RANLIB
6943if test -n "$RANLIB"; then
6944 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6945echo "${ECHO_T}$RANLIB" >&6; }
6946else
6947 { echo "$as_me:$LINENO: result: no" >&5
6948echo "${ECHO_T}no" >&6; }
6949fi
6950
6951
6952fi
6953if test -z "$ac_cv_prog_RANLIB"; then
6954 ac_ct_RANLIB=$RANLIB
6955 # Extract the first word of "ranlib", so it can be a program name with args.
6956set dummy ranlib; ac_word=$2
6957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6959if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961else
6962 if test -n "$ac_ct_RANLIB"; then
6963 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6964else
6965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966for as_dir in $PATH
6967do
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6972 ac_cv_prog_ac_ct_RANLIB="ranlib"
6973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6975 fi
6976done
6977done
6978IFS=$as_save_IFS
6979
6980fi
6981fi
6982ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6983if test -n "$ac_ct_RANLIB"; then
6984 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6985echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6986else
6987 { echo "$as_me:$LINENO: result: no" >&5
6988echo "${ECHO_T}no" >&6; }
6989fi
6990
6991 if test "x$ac_ct_RANLIB" = x; then
6992 RANLIB=":"
6993 else
6994 case $cross_compiling:$ac_tool_warned in
6995yes:)
6996{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6997whose name does not start with the host triplet. If you think this
6998configuration is useful to you, please write to autoconf@gnu.org." >&5
6999echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7000whose name does not start with the host triplet. If you think this
7001configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7002ac_tool_warned=yes ;;
7003esac
7004 RANLIB=$ac_ct_RANLIB
7005 fi
7006else
7007 RANLIB="$ac_cv_prog_RANLIB"
7008fi
7009
7010if test -n "$ac_tool_prefix"; then
7011 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7012set dummy ${ac_tool_prefix}strip; ac_word=$2
7013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015if test "${ac_cv_prog_STRIP+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017else
7018 if test -n "$STRIP"; then
7019 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7020else
7021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022for as_dir in $PATH
7023do
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7028 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 break 2
7031 fi
7032done
7033done
7034IFS=$as_save_IFS
7035
7036fi
7037fi
7038STRIP=$ac_cv_prog_STRIP
7039if test -n "$STRIP"; then
7040 { echo "$as_me:$LINENO: result: $STRIP" >&5
7041echo "${ECHO_T}$STRIP" >&6; }
7042else
7043 { echo "$as_me:$LINENO: result: no" >&5
7044echo "${ECHO_T}no" >&6; }
7045fi
7046
7047
7048fi
7049if test -z "$ac_cv_prog_STRIP"; then
7050 ac_ct_STRIP=$STRIP
7051 # Extract the first word of "strip", so it can be a program name with args.
7052set dummy strip; ac_word=$2
7053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7055if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7057else
7058 if test -n "$ac_ct_STRIP"; then
7059 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7060else
7061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062for as_dir in $PATH
7063do
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_prog_ac_ct_STRIP="strip"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7071 fi
7072done
7073done
7074IFS=$as_save_IFS
7075
7076fi
7077fi
7078ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7079if test -n "$ac_ct_STRIP"; then
7080 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7081echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7082else
7083 { echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6; }
7085fi
7086
7087 if test "x$ac_ct_STRIP" = x; then
7088 STRIP=":"
7089 else
7090 case $cross_compiling:$ac_tool_warned in
7091yes:)
7092{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7093whose name does not start with the host triplet. If you think this
7094configuration is useful to you, please write to autoconf@gnu.org." >&5
7095echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7096whose name does not start with the host triplet. If you think this
7097configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7098ac_tool_warned=yes ;;
7099esac
7100 STRIP=$ac_ct_STRIP
7101 fi
7102else
7103 STRIP="$ac_cv_prog_STRIP"
7104fi
7105
7106
7107old_CC="$CC"
7108old_CFLAGS="$CFLAGS"
7109
7110# Set sane defaults for various variables
7111test -z "$AR" && AR=ar
7112test -z "$AR_FLAGS" && AR_FLAGS=cru
7113test -z "$AS" && AS=as
7114test -z "$CC" && CC=cc
7115test -z "$LTCC" && LTCC=$CC
7116test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7023test -z "$DLLTOOL" && DLLTOOL=dlltool
7024test -z "$LD" && LD=ld
7025test -z "$LN_S" && LN_S="ln -s"
7026test -z "$MAGIC_CMD" && MAGIC_CMD=file
7027test -z "$NM" && NM=nm
7028test -z "$SED" && SED=sed
7029test -z "$OBJDUMP" && OBJDUMP=objdump
7030test -z "$RANLIB" && RANLIB=:
7031test -z "$STRIP" && STRIP=:
7032test -z "$ac_objext" && ac_objext=o
7033
7034# Determine commands to create old-style static archives.
7117test -z "$DLLTOOL" && DLLTOOL=dlltool
7118test -z "$LD" && LD=ld
7119test -z "$LN_S" && LN_S="ln -s"
7120test -z "$MAGIC_CMD" && MAGIC_CMD=file
7121test -z "$NM" && NM=nm
7122test -z "$SED" && SED=sed
7123test -z "$OBJDUMP" && OBJDUMP=objdump
7124test -z "$RANLIB" && RANLIB=:
7125test -z "$STRIP" && STRIP=:
7126test -z "$ac_objext" && ac_objext=o
7127
7128# Determine commands to create old-style static archives.
7035old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7129old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7036old_postinstall_cmds='chmod 644 $oldlib'
7037old_postuninstall_cmds=
7038
7039if test -n "$RANLIB"; then
7040 case $host_os in
7041 openbsd*)
7130old_postinstall_cmds='chmod 644 $oldlib'
7131old_postuninstall_cmds=
7132
7133if test -n "$RANLIB"; then
7134 case $host_os in
7135 openbsd*)
7042 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7136 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7043 ;;
7044 *)
7137 ;;
7138 *)
7045 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7139 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7046 ;;
7047 esac
7048 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7049fi
7050
7051for cc_temp in $compiler""; do
7052 case $cc_temp in
7053 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7054 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7055 \-*) ;;
7056 *) break;;
7057 esac
7058done
7059cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7060
7061
7062# Only perform the check for file, if the check method requires it
7063case $deplibs_check_method in
7064file_magic*)
7065 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7066 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7067echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7068if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070else
7071 case $MAGIC_CMD in
7072[\\/*] | ?:[\\/]*)
7073 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7074 ;;
7075*)
7076 lt_save_MAGIC_CMD="$MAGIC_CMD"
7077 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7078 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7079 for ac_dir in $ac_dummy; do
7080 IFS="$lt_save_ifs"
7081 test -z "$ac_dir" && ac_dir=.
7082 if test -f $ac_dir/${ac_tool_prefix}file; then
7083 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7084 if test -n "$file_magic_test_file"; then
7085 case $deplibs_check_method in
7086 "file_magic "*)
7140 ;;
7141 esac
7142 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7143fi
7144
7145for cc_temp in $compiler""; do
7146 case $cc_temp in
7147 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7148 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7149 \-*) ;;
7150 *) break;;
7151 esac
7152done
7153cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7154
7155
7156# Only perform the check for file, if the check method requires it
7157case $deplibs_check_method in
7158file_magic*)
7159 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7160 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7161echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7162if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164else
7165 case $MAGIC_CMD in
7166[\\/*] | ?:[\\/]*)
7167 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7168 ;;
7169*)
7170 lt_save_MAGIC_CMD="$MAGIC_CMD"
7171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7172 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7173 for ac_dir in $ac_dummy; do
7174 IFS="$lt_save_ifs"
7175 test -z "$ac_dir" && ac_dir=.
7176 if test -f $ac_dir/${ac_tool_prefix}file; then
7177 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7178 if test -n "$file_magic_test_file"; then
7179 case $deplibs_check_method in
7180 "file_magic "*)
7087 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7181 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7089 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7090 $EGREP "$file_magic_regex" > /dev/null; then
7091 :
7092 else
7093 cat <<EOF 1>&2
7094
7095*** Warning: the command libtool uses to detect shared libraries,
7096*** $file_magic_cmd, produces output that libtool cannot recognize.
7097*** The result is that libtool may fail to recognize shared libraries
7098*** as such. This will affect the creation of libtool libraries that
7099*** depend on shared libraries, but programs linked with such libtool
7100*** libraries will work regardless of this problem. Nevertheless, you
7101*** may want to report the problem to your system manager and/or to
7102*** bug-libtool@gnu.org
7103
7104EOF
7105 fi ;;
7106 esac
7107 fi
7108 break
7109 fi
7110 done
7111 IFS="$lt_save_ifs"
7112 MAGIC_CMD="$lt_save_MAGIC_CMD"
7113 ;;
7114esac
7115fi
7116
7117MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7118if test -n "$MAGIC_CMD"; then
7119 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7120echo "${ECHO_T}$MAGIC_CMD" >&6; }
7121else
7122 { echo "$as_me:$LINENO: result: no" >&5
7123echo "${ECHO_T}no" >&6; }
7124fi
7125
7126if test -z "$lt_cv_path_MAGIC_CMD"; then
7127 if test -n "$ac_tool_prefix"; then
7128 { echo "$as_me:$LINENO: checking for file" >&5
7129echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7130if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7132else
7133 case $MAGIC_CMD in
7134[\\/*] | ?:[\\/]*)
7135 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7136 ;;
7137*)
7138 lt_save_MAGIC_CMD="$MAGIC_CMD"
7139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7140 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7141 for ac_dir in $ac_dummy; do
7142 IFS="$lt_save_ifs"
7143 test -z "$ac_dir" && ac_dir=.
7144 if test -f $ac_dir/file; then
7145 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7146 if test -n "$file_magic_test_file"; then
7147 case $deplibs_check_method in
7148 "file_magic "*)
7182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7184 $EGREP "$file_magic_regex" > /dev/null; then
7185 :
7186 else
7187 cat <<EOF 1>&2
7188
7189*** Warning: the command libtool uses to detect shared libraries,
7190*** $file_magic_cmd, produces output that libtool cannot recognize.
7191*** The result is that libtool may fail to recognize shared libraries
7192*** as such. This will affect the creation of libtool libraries that
7193*** depend on shared libraries, but programs linked with such libtool
7194*** libraries will work regardless of this problem. Nevertheless, you
7195*** may want to report the problem to your system manager and/or to
7196*** bug-libtool@gnu.org
7197
7198EOF
7199 fi ;;
7200 esac
7201 fi
7202 break
7203 fi
7204 done
7205 IFS="$lt_save_ifs"
7206 MAGIC_CMD="$lt_save_MAGIC_CMD"
7207 ;;
7208esac
7209fi
7210
7211MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7212if test -n "$MAGIC_CMD"; then
7213 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7214echo "${ECHO_T}$MAGIC_CMD" >&6; }
7215else
7216 { echo "$as_me:$LINENO: result: no" >&5
7217echo "${ECHO_T}no" >&6; }
7218fi
7219
7220if test -z "$lt_cv_path_MAGIC_CMD"; then
7221 if test -n "$ac_tool_prefix"; then
7222 { echo "$as_me:$LINENO: checking for file" >&5
7223echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7224if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227 case $MAGIC_CMD in
7228[\\/*] | ?:[\\/]*)
7229 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7230 ;;
7231*)
7232 lt_save_MAGIC_CMD="$MAGIC_CMD"
7233 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7234 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7235 for ac_dir in $ac_dummy; do
7236 IFS="$lt_save_ifs"
7237 test -z "$ac_dir" && ac_dir=.
7238 if test -f $ac_dir/file; then
7239 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7240 if test -n "$file_magic_test_file"; then
7241 case $deplibs_check_method in
7242 "file_magic "*)
7149 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7243 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7151 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7152 $EGREP "$file_magic_regex" > /dev/null; then
7153 :
7154 else
7155 cat <<EOF 1>&2
7156
7157*** Warning: the command libtool uses to detect shared libraries,
7158*** $file_magic_cmd, produces output that libtool cannot recognize.
7159*** The result is that libtool may fail to recognize shared libraries
7160*** as such. This will affect the creation of libtool libraries that
7161*** depend on shared libraries, but programs linked with such libtool
7162*** libraries will work regardless of this problem. Nevertheless, you
7163*** may want to report the problem to your system manager and/or to
7164*** bug-libtool@gnu.org
7165
7166EOF
7167 fi ;;
7168 esac
7169 fi
7170 break
7171 fi
7172 done
7173 IFS="$lt_save_ifs"
7174 MAGIC_CMD="$lt_save_MAGIC_CMD"
7175 ;;
7176esac
7177fi
7178
7179MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7180if test -n "$MAGIC_CMD"; then
7181 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7182echo "${ECHO_T}$MAGIC_CMD" >&6; }
7183else
7184 { echo "$as_me:$LINENO: result: no" >&5
7185echo "${ECHO_T}no" >&6; }
7186fi
7187
7188 else
7189 MAGIC_CMD=:
7190 fi
7191fi
7192
7193 fi
7194 ;;
7195esac
7196
7244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7245 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7246 $EGREP "$file_magic_regex" > /dev/null; then
7247 :
7248 else
7249 cat <<EOF 1>&2
7250
7251*** Warning: the command libtool uses to detect shared libraries,
7252*** $file_magic_cmd, produces output that libtool cannot recognize.
7253*** The result is that libtool may fail to recognize shared libraries
7254*** as such. This will affect the creation of libtool libraries that
7255*** depend on shared libraries, but programs linked with such libtool
7256*** libraries will work regardless of this problem. Nevertheless, you
7257*** may want to report the problem to your system manager and/or to
7258*** bug-libtool@gnu.org
7259
7260EOF
7261 fi ;;
7262 esac
7263 fi
7264 break
7265 fi
7266 done
7267 IFS="$lt_save_ifs"
7268 MAGIC_CMD="$lt_save_MAGIC_CMD"
7269 ;;
7270esac
7271fi
7272
7273MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7274if test -n "$MAGIC_CMD"; then
7275 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7276echo "${ECHO_T}$MAGIC_CMD" >&6; }
7277else
7278 { echo "$as_me:$LINENO: result: no" >&5
7279echo "${ECHO_T}no" >&6; }
7280fi
7281
7282 else
7283 MAGIC_CMD=:
7284 fi
7285fi
7286
7287 fi
7288 ;;
7289esac
7290
7291
7292 case $host_os in
7293 rhapsody* | darwin*)
7294 if test -n "$ac_tool_prefix"; then
7295 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7296set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7297{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301else
7302 if test -n "$DSYMUTIL"; then
7303 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7304else
7305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306for as_dir in $PATH
7307do
7308 IFS=$as_save_IFS
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7312 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 break 2
7315 fi
7316done
7317done
7318IFS=$as_save_IFS
7319
7320fi
7321fi
7322DSYMUTIL=$ac_cv_prog_DSYMUTIL
7323if test -n "$DSYMUTIL"; then
7324 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7325echo "${ECHO_T}$DSYMUTIL" >&6; }
7326else
7327 { echo "$as_me:$LINENO: result: no" >&5
7328echo "${ECHO_T}no" >&6; }
7329fi
7330
7331
7332fi
7333if test -z "$ac_cv_prog_DSYMUTIL"; then
7334 ac_ct_DSYMUTIL=$DSYMUTIL
7335 # Extract the first word of "dsymutil", so it can be a program name with args.
7336set dummy dsymutil; ac_word=$2
7337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341else
7342 if test -n "$ac_ct_DSYMUTIL"; then
7343 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7344else
7345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346for as_dir in $PATH
7347do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7355 fi
7356done
7357done
7358IFS=$as_save_IFS
7359
7360fi
7361fi
7362ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7363if test -n "$ac_ct_DSYMUTIL"; then
7364 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7365echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7366else
7367 { echo "$as_me:$LINENO: result: no" >&5
7368echo "${ECHO_T}no" >&6; }
7369fi
7370
7371 if test "x$ac_ct_DSYMUTIL" = x; then
7372 DSYMUTIL=":"
7373 else
7374 case $cross_compiling:$ac_tool_warned in
7375yes:)
7376{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7377whose name does not start with the host triplet. If you think this
7378configuration is useful to you, please write to autoconf@gnu.org." >&5
7379echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7380whose name does not start with the host triplet. If you think this
7381configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7382ac_tool_warned=yes ;;
7383esac
7384 DSYMUTIL=$ac_ct_DSYMUTIL
7385 fi
7386else
7387 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7388fi
7389
7390 if test -n "$ac_tool_prefix"; then
7391 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7392set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395if test "${ac_cv_prog_NMEDIT+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7397else
7398 if test -n "$NMEDIT"; then
7399 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7400else
7401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7408 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7411 fi
7412done
7413done
7414IFS=$as_save_IFS
7415
7416fi
7417fi
7418NMEDIT=$ac_cv_prog_NMEDIT
7419if test -n "$NMEDIT"; then
7420 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7421echo "${ECHO_T}$NMEDIT" >&6; }
7422else
7423 { echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6; }
7425fi
7426
7427
7428fi
7429if test -z "$ac_cv_prog_NMEDIT"; then
7430 ac_ct_NMEDIT=$NMEDIT
7431 # Extract the first word of "nmedit", so it can be a program name with args.
7432set dummy nmedit; ac_word=$2
7433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437else
7438 if test -n "$ac_ct_NMEDIT"; then
7439 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7440else
7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7448 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7451 fi
7452done
7453done
7454IFS=$as_save_IFS
7455
7456fi
7457fi
7458ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7459if test -n "$ac_ct_NMEDIT"; then
7460 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7461echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7462else
7463 { echo "$as_me:$LINENO: result: no" >&5
7464echo "${ECHO_T}no" >&6; }
7465fi
7466
7467 if test "x$ac_ct_NMEDIT" = x; then
7468 NMEDIT=":"
7469 else
7470 case $cross_compiling:$ac_tool_warned in
7471yes:)
7472{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7473whose name does not start with the host triplet. If you think this
7474configuration is useful to you, please write to autoconf@gnu.org." >&5
7475echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7476whose name does not start with the host triplet. If you think this
7477configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7478ac_tool_warned=yes ;;
7479esac
7480 NMEDIT=$ac_ct_NMEDIT
7481 fi
7482else
7483 NMEDIT="$ac_cv_prog_NMEDIT"
7484fi
7485
7486
7487 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7488echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7489if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491else
7492 lt_cv_apple_cc_single_mod=no
7493 if test -z "${LT_MULTI_MODULE}"; then
7494 # By default we will add the -single_module flag. You can override
7495 # by either setting the environment variable LT_MULTI_MODULE
7496 # non-empty at configure time, or by adding -multi_module to the
7497 # link flags.
7498 echo "int foo(void){return 1;}" > conftest.c
7499 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7500 -dynamiclib ${wl}-single_module conftest.c
7501 if test -f libconftest.dylib; then
7502 lt_cv_apple_cc_single_mod=yes
7503 rm -rf libconftest.dylib*
7504 fi
7505 rm conftest.c
7506 fi
7507fi
7508{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7509echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7510 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7511echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7512if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514else
7515 lt_cv_ld_exported_symbols_list=no
7516 save_LDFLAGS=$LDFLAGS
7517 echo "_main" > conftest.sym
7518 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7519 cat >conftest.$ac_ext <<_ACEOF
7520/* confdefs.h. */
7521_ACEOF
7522cat confdefs.h >>conftest.$ac_ext
7523cat >>conftest.$ac_ext <<_ACEOF
7524/* end confdefs.h. */
7525
7526int
7527main ()
7528{
7529
7530 ;
7531 return 0;
7532}
7533_ACEOF
7534rm -f conftest.$ac_objext conftest$ac_exeext
7535if { (ac_try="$ac_link"
7536case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539esac
7540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_link") 2>conftest.er1
7542 ac_status=$?
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest$ac_exeext &&
7551 $as_test_x conftest$ac_exeext; then
7552 lt_cv_ld_exported_symbols_list=yes
7553else
7554 echo "$as_me: failed program was:" >&5
7555sed 's/^/| /' conftest.$ac_ext >&5
7556
7557 lt_cv_ld_exported_symbols_list=no
7558fi
7559
7560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7561 conftest$ac_exeext conftest.$ac_ext
7562 LDFLAGS="$save_LDFLAGS"
7563
7564fi
7565{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7566echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7567 case $host_os in
7568 rhapsody* | darwin1.[0123])
7569 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7570 darwin1.*)
7571 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7572 darwin*)
7573 # if running on 10.5 or later, the deployment target defaults
7574 # to the OS version, if on x86, and 10.4, the deployment
7575 # target defaults to 10.4. Don't you love it?
7576 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7577 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7578 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7579 10.[012]*)
7580 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7581 10.*)
7582 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7583 esac
7584 ;;
7585 esac
7586 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7587 _lt_dar_single_mod='$single_module'
7588 fi
7589 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7590 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7591 else
7592 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7593 fi
7594 if test "$DSYMUTIL" != ":"; then
7595 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7596 else
7597 _lt_dsymutil=
7598 fi
7599 ;;
7600 esac
7601
7602
7197enable_dlopen=no
7198enable_win32_dll=no
7199
7200# Check whether --enable-libtool-lock was given.
7201if test "${enable_libtool_lock+set}" = set; then
7202 enableval=$enable_libtool_lock;
7203fi
7204
7205test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7206
7207
7208# Check whether --with-pic was given.
7209if test "${with_pic+set}" = set; then
7210 withval=$with_pic; pic_mode="$withval"
7211else
7212 pic_mode=default
7213fi
7214
7215test -z "$pic_mode" && pic_mode=default
7216
7217# Use C for the default configuration in the libtool script
7218tagname=
7219lt_save_CC="$CC"
7220ac_ext=c
7221ac_cpp='$CPP $CPPFLAGS'
7222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7224ac_compiler_gnu=$ac_cv_c_compiler_gnu
7225
7226
7227# Source file extension for C test sources.
7228ac_ext=c
7229
7230# Object file extension for compiled C test sources.
7231objext=o
7232objext=$objext
7233
7234# Code to be used in simple compile tests
7603enable_dlopen=no
7604enable_win32_dll=no
7605
7606# Check whether --enable-libtool-lock was given.
7607if test "${enable_libtool_lock+set}" = set; then
7608 enableval=$enable_libtool_lock;
7609fi
7610
7611test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7612
7613
7614# Check whether --with-pic was given.
7615if test "${with_pic+set}" = set; then
7616 withval=$with_pic; pic_mode="$withval"
7617else
7618 pic_mode=default
7619fi
7620
7621test -z "$pic_mode" && pic_mode=default
7622
7623# Use C for the default configuration in the libtool script
7624tagname=
7625lt_save_CC="$CC"
7626ac_ext=c
7627ac_cpp='$CPP $CPPFLAGS'
7628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7630ac_compiler_gnu=$ac_cv_c_compiler_gnu
7631
7632
7633# Source file extension for C test sources.
7634ac_ext=c
7635
7636# Object file extension for compiled C test sources.
7637objext=o
7638objext=$objext
7639
7640# Code to be used in simple compile tests
7235lt_simple_compile_test_code="int some_variable = 0;\n"
7641lt_simple_compile_test_code="int some_variable = 0;"
7236
7237# Code to be used in simple link tests
7642
7643# Code to be used in simple link tests
7238lt_simple_link_test_code='int main(){return(0);}\n'
7644lt_simple_link_test_code='int main(){return(0);}'
7239
7240
7241# If no C compiler was specified, use CC.
7242LTCC=${LTCC-"$CC"}
7243
7645
7646
7647# If no C compiler was specified, use CC.
7648LTCC=${LTCC-"$CC"}
7649
7650# If no C compiler flags were specified, use CFLAGS.
7651LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7652
7244# Allow CC to be a program name with arguments.
7245compiler=$CC
7246
7247
7248# save warnings/boilerplate of simple test code
7249ac_outfile=conftest.$ac_objext
7653# Allow CC to be a program name with arguments.
7654compiler=$CC
7655
7656
7657# save warnings/boilerplate of simple test code
7658ac_outfile=conftest.$ac_objext
7250printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7251eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7659echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7660eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7252_lt_compiler_boilerplate=`cat conftest.err`
7253$rm conftest*
7254
7255ac_outfile=conftest.$ac_objext
7661_lt_compiler_boilerplate=`cat conftest.err`
7662$rm conftest*
7663
7664ac_outfile=conftest.$ac_objext
7256printf "$lt_simple_link_test_code" >conftest.$ac_ext
7257eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7665echo "$lt_simple_link_test_code" >conftest.$ac_ext
7666eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7258_lt_linker_boilerplate=`cat conftest.err`
7667_lt_linker_boilerplate=`cat conftest.err`
7259$rm conftest*
7668$rm -r conftest*
7260
7261
7669
7670
7262#
7263# Check for any special shared library compilation flags.
7264#
7265lt_prog_cc_shlib=
7266if test "$GCC" = no; then
7267 case $host_os in
7268 sco3.2v5*)
7269 lt_prog_cc_shlib='-belf'
7270 ;;
7271 esac
7272fi
7273if test -n "$lt_prog_cc_shlib"; then
7274 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7275echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7276 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7277 else
7278 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7279echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7280 lt_cv_prog_cc_can_build_shared=no
7281 fi
7282fi
7283
7671
7284
7285#
7286# Check to make sure the static flag actually works.
7287#
7288{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7289echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
7290if test "${lt_prog_compiler_static_works+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292else
7293 lt_prog_compiler_static_works=no
7294 save_LDFLAGS="$LDFLAGS"
7295 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7296 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7298 # The compiler can only warn and ignore the option if not recognized
7299 # So say no if there are warnings
7300 if test -s conftest.err; then
7301 # Append any errors to the config.log.
7302 cat conftest.err 1>&5
7303 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7304 $SED '/^$/d' conftest.err >conftest.er2
7305 if diff conftest.exp conftest.er2 >/dev/null; then
7306 lt_prog_compiler_static_works=yes
7307 fi
7308 else
7309 lt_prog_compiler_static_works=yes
7310 fi
7311 fi
7312 $rm conftest*
7313 LDFLAGS="$save_LDFLAGS"
7314
7315fi
7316{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7317echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7318
7319if test x"$lt_prog_compiler_static_works" = xyes; then
7320 :
7321else
7322 lt_prog_compiler_static=
7323fi
7324
7325
7326
7327
7328lt_prog_compiler_no_builtin_flag=
7329
7330if test "$GCC" = yes; then
7331 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7332
7333
7334{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7335echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7336if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7338else
7339 lt_cv_prog_compiler_rtti_exceptions=no
7340 ac_outfile=conftest.$ac_objext
7672lt_prog_compiler_no_builtin_flag=
7673
7674if test "$GCC" = yes; then
7675 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7676
7677
7678{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7679echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7680if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682else
7683 lt_cv_prog_compiler_rtti_exceptions=no
7684 ac_outfile=conftest.$ac_objext
7341 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7342 lt_compiler_flag="-fno-rtti -fno-exceptions"
7343 # Insert the option either (1) after the last *FLAGS variable, or
7344 # (2) before a word containing "conftest.", or (3) at the end.
7345 # Note that $ac_compile itself does not contain backslashes and begins
7346 # with a dollar sign (not a hyphen), so the echo should work correctly.
7347 # The option is referenced via a variable to avoid confusing sed.
7348 lt_compile=`echo "$ac_compile" | $SED \
7686 lt_compiler_flag="-fno-rtti -fno-exceptions"
7687 # Insert the option either (1) after the last *FLAGS variable, or
7688 # (2) before a word containing "conftest.", or (3) at the end.
7689 # Note that $ac_compile itself does not contain backslashes and begins
7690 # with a dollar sign (not a hyphen), so the echo should work correctly.
7691 # The option is referenced via a variable to avoid confusing sed.
7692 lt_compile=`echo "$ac_compile" | $SED \
7349 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7351 -e 's:$: $lt_compiler_flag:'`
7694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7695 -e 's:$: $lt_compiler_flag:'`
7352 (eval echo "\"\$as_me:7352: $lt_compile\"" >&5)
7696 (eval echo "\"\$as_me:7696: $lt_compile\"" >&5)
7353 (eval "$lt_compile" 2>conftest.err)
7354 ac_status=$?
7355 cat conftest.err >&5
7697 (eval "$lt_compile" 2>conftest.err)
7698 ac_status=$?
7699 cat conftest.err >&5
7356 echo "$as_me:7356: \$? = $ac_status" >&5
7700 echo "$as_me:7700: \$? = $ac_status" >&5
7357 if (exit $ac_status) && test -s "$ac_outfile"; then
7358 # The compiler can only warn and ignore the option if not recognized
7359 # So say no if there are warnings other than the usual output.
7701 if (exit $ac_status) && test -s "$ac_outfile"; then
7702 # The compiler can only warn and ignore the option if not recognized
7703 # So say no if there are warnings other than the usual output.
7360 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7361 $SED '/^$/d' conftest.err >conftest.er2
7362 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7704 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7363 lt_cv_prog_compiler_rtti_exceptions=yes
7364 fi
7365 fi
7366 $rm conftest*
7367
7368fi
7369{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7370echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7371
7372if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7373 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7374else
7375 :
7376fi
7377
7378fi
7379
7380lt_prog_compiler_wl=
7381lt_prog_compiler_pic=
7382lt_prog_compiler_static=
7383
7384{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7385echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7386
7387 if test "$GCC" = yes; then
7388 lt_prog_compiler_wl='-Wl,'
7389 lt_prog_compiler_static='-static'
7390
7391 case $host_os in
7392 aix*)
7393 # All AIX code is PIC.
7394 if test "$host_cpu" = ia64; then
7395 # AIX 5 now supports IA64 processor
7396 lt_prog_compiler_static='-Bstatic'
7397 fi
7398 ;;
7399
7400 amigaos*)
7401 # FIXME: we need at least 68020 code to build shared libraries, but
7402 # adding the `-m68020' flag to GCC prevents building anything better,
7403 # like `-m68040'.
7404 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7405 ;;
7406
7707 lt_cv_prog_compiler_rtti_exceptions=yes
7708 fi
7709 fi
7710 $rm conftest*
7711
7712fi
7713{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7714echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7715
7716if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7717 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7718else
7719 :
7720fi
7721
7722fi
7723
7724lt_prog_compiler_wl=
7725lt_prog_compiler_pic=
7726lt_prog_compiler_static=
7727
7728{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7729echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7730
7731 if test "$GCC" = yes; then
7732 lt_prog_compiler_wl='-Wl,'
7733 lt_prog_compiler_static='-static'
7734
7735 case $host_os in
7736 aix*)
7737 # All AIX code is PIC.
7738 if test "$host_cpu" = ia64; then
7739 # AIX 5 now supports IA64 processor
7740 lt_prog_compiler_static='-Bstatic'
7741 fi
7742 ;;
7743
7744 amigaos*)
7745 # FIXME: we need at least 68020 code to build shared libraries, but
7746 # adding the `-m68020' flag to GCC prevents building anything better,
7747 # like `-m68040'.
7748 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7749 ;;
7750
7407 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7751 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7408 # PIC is the default for these OSes.
7409 ;;
7410
7752 # PIC is the default for these OSes.
7753 ;;
7754
7411 mingw* | pw32* | os2*)
7755 mingw* | cygwin* | pw32* | os2*)
7412 # This hack is so that the source file can tell whether it is being
7413 # built for inclusion in a dll (and should export symbols for example).
7756 # This hack is so that the source file can tell whether it is being
7757 # built for inclusion in a dll (and should export symbols for example).
7758 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7759 # (--disable-auto-import) libraries
7414 lt_prog_compiler_pic='-DDLL_EXPORT'
7415 ;;
7416
7417 darwin* | rhapsody*)
7418 # PIC is the default on this platform
7419 # Common symbols not allowed in MH_DYLIB files
7420 lt_prog_compiler_pic='-fno-common'
7421 ;;
7422
7760 lt_prog_compiler_pic='-DDLL_EXPORT'
7761 ;;
7762
7763 darwin* | rhapsody*)
7764 # PIC is the default on this platform
7765 # Common symbols not allowed in MH_DYLIB files
7766 lt_prog_compiler_pic='-fno-common'
7767 ;;
7768
7769 interix[3-9]*)
7770 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7771 # Instead, we relocate shared libraries at runtime.
7772 ;;
7773
7423 msdosdjgpp*)
7424 # Just because we use GCC doesn't mean we suddenly get shared libraries
7425 # on systems that don't support them.
7426 lt_prog_compiler_can_build_shared=no
7427 enable_shared=no
7428 ;;
7429
7430 sysv4*MP*)
7431 if test -d /usr/nec; then
7432 lt_prog_compiler_pic=-Kconform_pic
7433 fi
7434 ;;
7435
7436 hpux*)
7437 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7438 # not for PA HP-UX.
7774 msdosdjgpp*)
7775 # Just because we use GCC doesn't mean we suddenly get shared libraries
7776 # on systems that don't support them.
7777 lt_prog_compiler_can_build_shared=no
7778 enable_shared=no
7779 ;;
7780
7781 sysv4*MP*)
7782 if test -d /usr/nec; then
7783 lt_prog_compiler_pic=-Kconform_pic
7784 fi
7785 ;;
7786
7787 hpux*)
7788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7789 # not for PA HP-UX.
7439 case "$host_cpu" in
7790 case $host_cpu in
7440 hppa*64*|ia64*)
7441 # +Z the default
7442 ;;
7443 *)
7444 lt_prog_compiler_pic='-fPIC'
7445 ;;
7446 esac
7447 ;;
7448
7449 *)
7450 lt_prog_compiler_pic='-fPIC'
7451 ;;
7452 esac
7453 else
7454 # PORTME Check for flag to pass linker flags through the system compiler.
7455 case $host_os in
7456 aix*)
7457 lt_prog_compiler_wl='-Wl,'
7458 if test "$host_cpu" = ia64; then
7459 # AIX 5 now supports IA64 processor
7460 lt_prog_compiler_static='-Bstatic'
7461 else
7462 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7463 fi
7464 ;;
7465 darwin*)
7466 # PIC is the default on this platform
7467 # Common symbols not allowed in MH_DYLIB files
7468 case $cc_basename in
7469 xlc*)
7470 lt_prog_compiler_pic='-qnocommon'
7471 lt_prog_compiler_wl='-Wl,'
7472 ;;
7473 esac
7474 ;;
7475
7791 hppa*64*|ia64*)
7792 # +Z the default
7793 ;;
7794 *)
7795 lt_prog_compiler_pic='-fPIC'
7796 ;;
7797 esac
7798 ;;
7799
7800 *)
7801 lt_prog_compiler_pic='-fPIC'
7802 ;;
7803 esac
7804 else
7805 # PORTME Check for flag to pass linker flags through the system compiler.
7806 case $host_os in
7807 aix*)
7808 lt_prog_compiler_wl='-Wl,'
7809 if test "$host_cpu" = ia64; then
7810 # AIX 5 now supports IA64 processor
7811 lt_prog_compiler_static='-Bstatic'
7812 else
7813 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7814 fi
7815 ;;
7816 darwin*)
7817 # PIC is the default on this platform
7818 # Common symbols not allowed in MH_DYLIB files
7819 case $cc_basename in
7820 xlc*)
7821 lt_prog_compiler_pic='-qnocommon'
7822 lt_prog_compiler_wl='-Wl,'
7823 ;;
7824 esac
7825 ;;
7826
7476 mingw* | pw32* | os2*)
7827 mingw* | cygwin* | pw32* | os2*)
7477 # This hack is so that the source file can tell whether it is being
7478 # built for inclusion in a dll (and should export symbols for example).
7479 lt_prog_compiler_pic='-DDLL_EXPORT'
7480 ;;
7481
7482 hpux9* | hpux10* | hpux11*)
7483 lt_prog_compiler_wl='-Wl,'
7484 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7485 # not for PA HP-UX.
7828 # This hack is so that the source file can tell whether it is being
7829 # built for inclusion in a dll (and should export symbols for example).
7830 lt_prog_compiler_pic='-DDLL_EXPORT'
7831 ;;
7832
7833 hpux9* | hpux10* | hpux11*)
7834 lt_prog_compiler_wl='-Wl,'
7835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7836 # not for PA HP-UX.
7486 case "$host_cpu" in
7837 case $host_cpu in
7487 hppa*64*|ia64*)
7488 # +Z the default
7489 ;;
7490 *)
7491 lt_prog_compiler_pic='+Z'
7492 ;;
7493 esac
7494 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7495 lt_prog_compiler_static='${wl}-a ${wl}archive'
7496 ;;
7497
7498 irix5* | irix6* | nonstopux*)
7499 lt_prog_compiler_wl='-Wl,'
7500 # PIC (with -KPIC) is the default.
7501 lt_prog_compiler_static='-non_shared'
7502 ;;
7503
7504 newsos6)
7505 lt_prog_compiler_pic='-KPIC'
7506 lt_prog_compiler_static='-Bstatic'
7507 ;;
7508
7838 hppa*64*|ia64*)
7839 # +Z the default
7840 ;;
7841 *)
7842 lt_prog_compiler_pic='+Z'
7843 ;;
7844 esac
7845 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7846 lt_prog_compiler_static='${wl}-a ${wl}archive'
7847 ;;
7848
7849 irix5* | irix6* | nonstopux*)
7850 lt_prog_compiler_wl='-Wl,'
7851 # PIC (with -KPIC) is the default.
7852 lt_prog_compiler_static='-non_shared'
7853 ;;
7854
7855 newsos6)
7856 lt_prog_compiler_pic='-KPIC'
7857 lt_prog_compiler_static='-Bstatic'
7858 ;;
7859
7509 linux*)
7860 linux* | k*bsd*-gnu)
7510 case $cc_basename in
7511 icc* | ecc*)
7512 lt_prog_compiler_wl='-Wl,'
7513 lt_prog_compiler_pic='-KPIC'
7514 lt_prog_compiler_static='-static'
7515 ;;
7861 case $cc_basename in
7862 icc* | ecc*)
7863 lt_prog_compiler_wl='-Wl,'
7864 lt_prog_compiler_pic='-KPIC'
7865 lt_prog_compiler_static='-static'
7866 ;;
7516 pgcc* | pgf77* | pgf90*)
7867 pgcc* | pgf77* | pgf90* | pgf95*)
7517 # Portland Group compilers (*not* the Pentium gcc compiler,
7518 # which looks to be a dead project)
7519 lt_prog_compiler_wl='-Wl,'
7520 lt_prog_compiler_pic='-fpic'
7868 # Portland Group compilers (*not* the Pentium gcc compiler,
7869 # which looks to be a dead project)
7870 lt_prog_compiler_wl='-Wl,'
7871 lt_prog_compiler_pic='-fpic'
7521 lt_prog_compiler_static='-static'
7872 lt_prog_compiler_static='-Bstatic'
7522 ;;
7523 ccc*)
7524 lt_prog_compiler_wl='-Wl,'
7525 # All Alpha code is PIC.
7526 lt_prog_compiler_static='-non_shared'
7527 ;;
7873 ;;
7874 ccc*)
7875 lt_prog_compiler_wl='-Wl,'
7876 # All Alpha code is PIC.
7877 lt_prog_compiler_static='-non_shared'
7878 ;;
7879 *)
7880 case `$CC -V 2>&1 | sed 5q` in
7881 *Sun\ C*)
7882 # Sun C 5.9
7883 lt_prog_compiler_pic='-KPIC'
7884 lt_prog_compiler_static='-Bstatic'
7885 lt_prog_compiler_wl='-Wl,'
7886 ;;
7887 *Sun\ F*)
7888 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7889 lt_prog_compiler_pic='-KPIC'
7890 lt_prog_compiler_static='-Bstatic'
7891 lt_prog_compiler_wl=''
7892 ;;
7893 esac
7894 ;;
7528 esac
7529 ;;
7530
7531 osf3* | osf4* | osf5*)
7532 lt_prog_compiler_wl='-Wl,'
7533 # All OSF/1 code is PIC.
7534 lt_prog_compiler_static='-non_shared'
7535 ;;
7536
7895 esac
7896 ;;
7897
7898 osf3* | osf4* | osf5*)
7899 lt_prog_compiler_wl='-Wl,'
7900 # All OSF/1 code is PIC.
7901 lt_prog_compiler_static='-non_shared'
7902 ;;
7903
7537 sco3.2v5*)
7538 lt_prog_compiler_pic='-Kpic'
7539 lt_prog_compiler_static='-dn'
7904 rdos*)
7905 lt_prog_compiler_static='-non_shared'
7540 ;;
7541
7542 solaris*)
7543 lt_prog_compiler_pic='-KPIC'
7544 lt_prog_compiler_static='-Bstatic'
7545 case $cc_basename in
7546 f77* | f90* | f95*)
7547 lt_prog_compiler_wl='-Qoption ld ';;
7548 *)
7549 lt_prog_compiler_wl='-Wl,';;
7550 esac
7551 ;;
7552
7553 sunos4*)
7554 lt_prog_compiler_wl='-Qoption ld '
7555 lt_prog_compiler_pic='-PIC'
7556 lt_prog_compiler_static='-Bstatic'
7557 ;;
7558
7906 ;;
7907
7908 solaris*)
7909 lt_prog_compiler_pic='-KPIC'
7910 lt_prog_compiler_static='-Bstatic'
7911 case $cc_basename in
7912 f77* | f90* | f95*)
7913 lt_prog_compiler_wl='-Qoption ld ';;
7914 *)
7915 lt_prog_compiler_wl='-Wl,';;
7916 esac
7917 ;;
7918
7919 sunos4*)
7920 lt_prog_compiler_wl='-Qoption ld '
7921 lt_prog_compiler_pic='-PIC'
7922 lt_prog_compiler_static='-Bstatic'
7923 ;;
7924
7559 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7925 sysv4 | sysv4.2uw2* | sysv4.3*)
7560 lt_prog_compiler_wl='-Wl,'
7561 lt_prog_compiler_pic='-KPIC'
7562 lt_prog_compiler_static='-Bstatic'
7563 ;;
7564
7565 sysv4*MP*)
7566 if test -d /usr/nec ;then
7567 lt_prog_compiler_pic='-Kconform_pic'
7568 lt_prog_compiler_static='-Bstatic'
7569 fi
7570 ;;
7571
7926 lt_prog_compiler_wl='-Wl,'
7927 lt_prog_compiler_pic='-KPIC'
7928 lt_prog_compiler_static='-Bstatic'
7929 ;;
7930
7931 sysv4*MP*)
7932 if test -d /usr/nec ;then
7933 lt_prog_compiler_pic='-Kconform_pic'
7934 lt_prog_compiler_static='-Bstatic'
7935 fi
7936 ;;
7937
7938 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7939 lt_prog_compiler_wl='-Wl,'
7940 lt_prog_compiler_pic='-KPIC'
7941 lt_prog_compiler_static='-Bstatic'
7942 ;;
7943
7572 unicos*)
7573 lt_prog_compiler_wl='-Wl,'
7574 lt_prog_compiler_can_build_shared=no
7575 ;;
7576
7577 uts4*)
7578 lt_prog_compiler_pic='-pic'
7579 lt_prog_compiler_static='-Bstatic'
7580 ;;
7581
7582 *)
7583 lt_prog_compiler_can_build_shared=no
7584 ;;
7585 esac
7586 fi
7587
7588{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7589echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7590
7591#
7592# Check to make sure the PIC flag actually works.
7593#
7594if test -n "$lt_prog_compiler_pic"; then
7595
7596{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7597echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7944 unicos*)
7945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_can_build_shared=no
7947 ;;
7948
7949 uts4*)
7950 lt_prog_compiler_pic='-pic'
7951 lt_prog_compiler_static='-Bstatic'
7952 ;;
7953
7954 *)
7955 lt_prog_compiler_can_build_shared=no
7956 ;;
7957 esac
7958 fi
7959
7960{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7961echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7962
7963#
7964# Check to make sure the PIC flag actually works.
7965#
7966if test -n "$lt_prog_compiler_pic"; then
7967
7968{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7969echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7598if test "${lt_prog_compiler_pic_works+set}" = set; then
7970if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7600else
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972else
7601 lt_prog_compiler_pic_works=no
7973 lt_cv_prog_compiler_pic_works=no
7602 ac_outfile=conftest.$ac_objext
7974 ac_outfile=conftest.$ac_objext
7603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7604 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7605 # Insert the option either (1) after the last *FLAGS variable, or
7606 # (2) before a word containing "conftest.", or (3) at the end.
7607 # Note that $ac_compile itself does not contain backslashes and begins
7608 # with a dollar sign (not a hyphen), so the echo should work correctly.
7609 # The option is referenced via a variable to avoid confusing sed.
7610 lt_compile=`echo "$ac_compile" | $SED \
7976 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7977 # Insert the option either (1) after the last *FLAGS variable, or
7978 # (2) before a word containing "conftest.", or (3) at the end.
7979 # Note that $ac_compile itself does not contain backslashes and begins
7980 # with a dollar sign (not a hyphen), so the echo should work correctly.
7981 # The option is referenced via a variable to avoid confusing sed.
7982 lt_compile=`echo "$ac_compile" | $SED \
7611 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7613 -e 's:$: $lt_compiler_flag:'`
7984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7985 -e 's:$: $lt_compiler_flag:'`
7614 (eval echo "\"\$as_me:7614: $lt_compile\"" >&5)
7986 (eval echo "\"\$as_me:7986: $lt_compile\"" >&5)
7615 (eval "$lt_compile" 2>conftest.err)
7616 ac_status=$?
7617 cat conftest.err >&5
7987 (eval "$lt_compile" 2>conftest.err)
7988 ac_status=$?
7989 cat conftest.err >&5
7618 echo "$as_me:7618: \$? = $ac_status" >&5
7990 echo "$as_me:7990: \$? = $ac_status" >&5
7619 if (exit $ac_status) && test -s "$ac_outfile"; then
7620 # The compiler can only warn and ignore the option if not recognized
7621 # So say no if there are warnings other than the usual output.
7991 if (exit $ac_status) && test -s "$ac_outfile"; then
7992 # The compiler can only warn and ignore the option if not recognized
7993 # So say no if there are warnings other than the usual output.
7622 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7623 $SED '/^$/d' conftest.err >conftest.er2
7624 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7625 lt_prog_compiler_pic_works=yes
7994 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7996 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7997 lt_cv_prog_compiler_pic_works=yes
7626 fi
7627 fi
7628 $rm conftest*
7629
7630fi
7998 fi
7999 fi
8000 $rm conftest*
8001
8002fi
7631{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7632echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8003{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8004echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7633
8005
7634if test x"$lt_prog_compiler_pic_works" = xyes; then
8006if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7635 case $lt_prog_compiler_pic in
7636 "" | " "*) ;;
7637 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7638 esac
7639else
7640 lt_prog_compiler_pic=
7641 lt_prog_compiler_can_build_shared=no
7642fi
7643
7644fi
8007 case $lt_prog_compiler_pic in
8008 "" | " "*) ;;
8009 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8010 esac
8011else
8012 lt_prog_compiler_pic=
8013 lt_prog_compiler_can_build_shared=no
8014fi
8015
8016fi
7645case "$host_os" in
8017case $host_os in
7646 # For platforms which do not support PIC, -DPIC is meaningless:
7647 *djgpp*)
7648 lt_prog_compiler_pic=
7649 ;;
7650 *)
7651 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7652 ;;
7653esac
7654
8018 # For platforms which do not support PIC, -DPIC is meaningless:
8019 *djgpp*)
8020 lt_prog_compiler_pic=
8021 ;;
8022 *)
8023 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8024 ;;
8025esac
8026
8027#
8028# Check to make sure the static flag actually works.
8029#
8030wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8031{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8032echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8033if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8035else
8036 lt_cv_prog_compiler_static_works=no
8037 save_LDFLAGS="$LDFLAGS"
8038 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8039 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8040 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8041 # The linker can only warn and ignore the option if not recognized
8042 # So say no if there are warnings
8043 if test -s conftest.err; then
8044 # Append any errors to the config.log.
8045 cat conftest.err 1>&5
8046 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8048 if diff conftest.exp conftest.er2 >/dev/null; then
8049 lt_cv_prog_compiler_static_works=yes
8050 fi
8051 else
8052 lt_cv_prog_compiler_static_works=yes
8053 fi
8054 fi
8055 $rm -r conftest*
8056 LDFLAGS="$save_LDFLAGS"
8057
8058fi
8059{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8060echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8061
8062if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8063 :
8064else
8065 lt_prog_compiler_static=
8066fi
8067
8068
7655{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7656echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7657if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659else
7660 lt_cv_prog_compiler_c_o=no
7661 $rm -r conftest 2>/dev/null
7662 mkdir conftest
7663 cd conftest
7664 mkdir out
8069{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8070echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8071if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073else
8074 lt_cv_prog_compiler_c_o=no
8075 $rm -r conftest 2>/dev/null
8076 mkdir conftest
8077 cd conftest
8078 mkdir out
7665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7666
7667 lt_compiler_flag="-o out/conftest2.$ac_objext"
7668 # Insert the option either (1) after the last *FLAGS variable, or
7669 # (2) before a word containing "conftest.", or (3) at the end.
7670 # Note that $ac_compile itself does not contain backslashes and begins
7671 # with a dollar sign (not a hyphen), so the echo should work correctly.
7672 lt_compile=`echo "$ac_compile" | $SED \
8080
8081 lt_compiler_flag="-o out/conftest2.$ac_objext"
8082 # Insert the option either (1) after the last *FLAGS variable, or
8083 # (2) before a word containing "conftest.", or (3) at the end.
8084 # Note that $ac_compile itself does not contain backslashes and begins
8085 # with a dollar sign (not a hyphen), so the echo should work correctly.
8086 lt_compile=`echo "$ac_compile" | $SED \
7673 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7675 -e 's:$: $lt_compiler_flag:'`
8088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8089 -e 's:$: $lt_compiler_flag:'`
7676 (eval echo "\"\$as_me:7676: $lt_compile\"" >&5)
8090 (eval echo "\"\$as_me:8090: $lt_compile\"" >&5)
7677 (eval "$lt_compile" 2>out/conftest.err)
7678 ac_status=$?
7679 cat out/conftest.err >&5
8091 (eval "$lt_compile" 2>out/conftest.err)
8092 ac_status=$?
8093 cat out/conftest.err >&5
7680 echo "$as_me:7680: \$? = $ac_status" >&5
8094 echo "$as_me:8094: \$? = $ac_status" >&5
7681 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7682 then
7683 # The compiler can only warn and ignore the option if not recognized
7684 # So say no if there are warnings
8095 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8096 then
8097 # The compiler can only warn and ignore the option if not recognized
8098 # So say no if there are warnings
7685 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7686 $SED '/^$/d' out/conftest.err >out/conftest.er2
7687 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8099 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7688 lt_cv_prog_compiler_c_o=yes
7689 fi
7690 fi
8102 lt_cv_prog_compiler_c_o=yes
8103 fi
8104 fi
7691 chmod u+w .
8105 chmod u+w . 2>&5
7692 $rm conftest*
7693 # SGI C++ compiler will create directory out/ii_files/ for
7694 # template instantiation
7695 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7696 $rm out/* && rmdir out
7697 cd ..
7698 rmdir conftest
7699 $rm conftest*
7700
7701fi
7702{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7703echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7704
7705
7706hard_links="nottested"
7707if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7708 # do not overwrite the value of need_locks provided by the user
7709 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7710echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7711 hard_links=yes
7712 $rm conftest*
7713 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7714 touch conftest.a
7715 ln conftest.a conftest.b 2>&5 || hard_links=no
7716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7717 { echo "$as_me:$LINENO: result: $hard_links" >&5
7718echo "${ECHO_T}$hard_links" >&6; }
7719 if test "$hard_links" = no; then
7720 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7721echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7722 need_locks=warn
7723 fi
7724else
7725 need_locks=no
7726fi
7727
7728{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7729echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7730
7731 runpath_var=
7732 allow_undefined_flag=
7733 enable_shared_with_static_runtimes=no
7734 archive_cmds=
7735 archive_expsym_cmds=
7736 old_archive_From_new_cmds=
7737 old_archive_from_expsyms_cmds=
7738 export_dynamic_flag_spec=
7739 whole_archive_flag_spec=
7740 thread_safe_flag_spec=
7741 hardcode_libdir_flag_spec=
7742 hardcode_libdir_flag_spec_ld=
7743 hardcode_libdir_separator=
7744 hardcode_direct=no
7745 hardcode_minus_L=no
7746 hardcode_shlibpath_var=unsupported
7747 link_all_deplibs=unknown
7748 hardcode_automatic=no
7749 module_cmds=
7750 module_expsym_cmds=
7751 always_export_symbols=no
7752 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7753 # include_expsyms should be a list of space-separated symbols to be *always*
7754 # included in the symbol list
7755 include_expsyms=
7756 # exclude_expsyms can be an extended regexp of symbols to exclude
7757 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7758 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7759 # as well as any symbol that contains `d'.
8106 $rm conftest*
8107 # SGI C++ compiler will create directory out/ii_files/ for
8108 # template instantiation
8109 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8110 $rm out/* && rmdir out
8111 cd ..
8112 rmdir conftest
8113 $rm conftest*
8114
8115fi
8116{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8117echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8118
8119
8120hard_links="nottested"
8121if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8122 # do not overwrite the value of need_locks provided by the user
8123 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8124echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8125 hard_links=yes
8126 $rm conftest*
8127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8128 touch conftest.a
8129 ln conftest.a conftest.b 2>&5 || hard_links=no
8130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8131 { echo "$as_me:$LINENO: result: $hard_links" >&5
8132echo "${ECHO_T}$hard_links" >&6; }
8133 if test "$hard_links" = no; then
8134 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8135echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8136 need_locks=warn
8137 fi
8138else
8139 need_locks=no
8140fi
8141
8142{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8143echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8144
8145 runpath_var=
8146 allow_undefined_flag=
8147 enable_shared_with_static_runtimes=no
8148 archive_cmds=
8149 archive_expsym_cmds=
8150 old_archive_From_new_cmds=
8151 old_archive_from_expsyms_cmds=
8152 export_dynamic_flag_spec=
8153 whole_archive_flag_spec=
8154 thread_safe_flag_spec=
8155 hardcode_libdir_flag_spec=
8156 hardcode_libdir_flag_spec_ld=
8157 hardcode_libdir_separator=
8158 hardcode_direct=no
8159 hardcode_minus_L=no
8160 hardcode_shlibpath_var=unsupported
8161 link_all_deplibs=unknown
8162 hardcode_automatic=no
8163 module_cmds=
8164 module_expsym_cmds=
8165 always_export_symbols=no
8166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8167 # include_expsyms should be a list of space-separated symbols to be *always*
8168 # included in the symbol list
8169 include_expsyms=
8170 # exclude_expsyms can be an extended regexp of symbols to exclude
8171 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8172 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8173 # as well as any symbol that contains `d'.
7760 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8174 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7761 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7762 # platforms (ab)use it in PIC code, but their linkers get confused if
7763 # the symbol is explicitly referenced. Since portable code cannot
7764 # rely on this symbol name, it's probably fine to never include it in
7765 # preloaded symbol tables.
8175 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8176 # platforms (ab)use it in PIC code, but their linkers get confused if
8177 # the symbol is explicitly referenced. Since portable code cannot
8178 # rely on this symbol name, it's probably fine to never include it in
8179 # preloaded symbol tables.
8180 # Exclude shared library initialization/finalization symbols.
7766 extract_expsyms_cmds=
7767 # Just being paranoid about ensuring that cc_basename is set.
7768 for cc_temp in $compiler""; do
7769 case $cc_temp in
7770 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7771 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7772 \-*) ;;
7773 *) break;;
7774 esac
7775done
7776cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7777
7778 case $host_os in
7779 cygwin* | mingw* | pw32*)
7780 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7781 # When not using gcc, we currently assume that we are using
7782 # Microsoft Visual C++.
7783 if test "$GCC" != yes; then
7784 with_gnu_ld=no
7785 fi
7786 ;;
8181 extract_expsyms_cmds=
8182 # Just being paranoid about ensuring that cc_basename is set.
8183 for cc_temp in $compiler""; do
8184 case $cc_temp in
8185 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8186 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8187 \-*) ;;
8188 *) break;;
8189 esac
8190done
8191cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8192
8193 case $host_os in
8194 cygwin* | mingw* | pw32*)
8195 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8196 # When not using gcc, we currently assume that we are using
8197 # Microsoft Visual C++.
8198 if test "$GCC" != yes; then
8199 with_gnu_ld=no
8200 fi
8201 ;;
8202 interix*)
8203 # we just hope/assume this is gcc and not c89 (= MSVC++)
8204 with_gnu_ld=yes
8205 ;;
7787 openbsd*)
7788 with_gnu_ld=no
7789 ;;
7790 esac
7791
7792 ld_shlibs=yes
7793 if test "$with_gnu_ld" = yes; then
7794 # If archive_cmds runs LD, not CC, wlarc should be empty
7795 wlarc='${wl}'
7796
7797 # Set some defaults for GNU ld with shared library support. These
7798 # are reset later if shared libraries are not supported. Putting them
7799 # here allows them to be overridden if necessary.
7800 runpath_var=LD_RUN_PATH
7801 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7802 export_dynamic_flag_spec='${wl}--export-dynamic'
7803 # ancient GNU ld didn't support --whole-archive et. al.
7804 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7805 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7806 else
7807 whole_archive_flag_spec=
7808 fi
7809 supports_anon_versioning=no
7810 case `$LD -v 2>/dev/null` in
7811 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7812 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7813 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7814 *\ 2.11.*) ;; # other 2.11 versions
7815 *) supports_anon_versioning=yes ;;
7816 esac
7817
7818 # See if GNU ld supports shared libraries.
7819 case $host_os in
8206 openbsd*)
8207 with_gnu_ld=no
8208 ;;
8209 esac
8210
8211 ld_shlibs=yes
8212 if test "$with_gnu_ld" = yes; then
8213 # If archive_cmds runs LD, not CC, wlarc should be empty
8214 wlarc='${wl}'
8215
8216 # Set some defaults for GNU ld with shared library support. These
8217 # are reset later if shared libraries are not supported. Putting them
8218 # here allows them to be overridden if necessary.
8219 runpath_var=LD_RUN_PATH
8220 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8221 export_dynamic_flag_spec='${wl}--export-dynamic'
8222 # ancient GNU ld didn't support --whole-archive et. al.
8223 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8224 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8225 else
8226 whole_archive_flag_spec=
8227 fi
8228 supports_anon_versioning=no
8229 case `$LD -v 2>/dev/null` in
8230 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8231 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8232 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8233 *\ 2.11.*) ;; # other 2.11 versions
8234 *) supports_anon_versioning=yes ;;
8235 esac
8236
8237 # See if GNU ld supports shared libraries.
8238 case $host_os in
7820 aix3* | aix4* | aix5*)
8239 aix[3-9]*)
7821 # On AIX/PPC, the GNU linker is very broken
7822 if test "$host_cpu" != ia64; then
7823 ld_shlibs=no
7824 cat <<EOF 1>&2
7825
7826*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7827*** to be unable to reliably create shared libraries on AIX.
7828*** Therefore, libtool is disabling shared libraries support. If you
7829*** really care for shared libraries, you may want to modify your PATH
7830*** so that a non-GNU linker is found, and then restart.
7831
7832EOF
7833 fi
7834 ;;
7835
7836 amigaos*)
7837 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)'
7838 hardcode_libdir_flag_spec='-L$libdir'
7839 hardcode_minus_L=yes
7840
7841 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7842 # that the semantics of dynamic libraries on AmigaOS, at least up
7843 # to version 4, is to share data among multiple programs linked
7844 # with the same dynamic library. Since this doesn't match the
7845 # behavior of shared libraries on other platforms, we can't use
7846 # them.
7847 ld_shlibs=no
7848 ;;
7849
7850 beos*)
7851 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7852 allow_undefined_flag=unsupported
7853 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7854 # support --undefined. This deserves some investigation. FIXME
7855 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7856 else
7857 ld_shlibs=no
7858 fi
7859 ;;
7860
7861 cygwin* | mingw* | pw32*)
7862 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7863 # as there is no search path for DLLs.
7864 hardcode_libdir_flag_spec='-L$libdir'
7865 allow_undefined_flag=unsupported
7866 always_export_symbols=no
7867 enable_shared_with_static_runtimes=yes
8240 # On AIX/PPC, the GNU linker is very broken
8241 if test "$host_cpu" != ia64; then
8242 ld_shlibs=no
8243 cat <<EOF 1>&2
8244
8245*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8246*** to be unable to reliably create shared libraries on AIX.
8247*** Therefore, libtool is disabling shared libraries support. If you
8248*** really care for shared libraries, you may want to modify your PATH
8249*** so that a non-GNU linker is found, and then restart.
8250
8251EOF
8252 fi
8253 ;;
8254
8255 amigaos*)
8256 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)'
8257 hardcode_libdir_flag_spec='-L$libdir'
8258 hardcode_minus_L=yes
8259
8260 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8261 # that the semantics of dynamic libraries on AmigaOS, at least up
8262 # to version 4, is to share data among multiple programs linked
8263 # with the same dynamic library. Since this doesn't match the
8264 # behavior of shared libraries on other platforms, we can't use
8265 # them.
8266 ld_shlibs=no
8267 ;;
8268
8269 beos*)
8270 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8271 allow_undefined_flag=unsupported
8272 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8273 # support --undefined. This deserves some investigation. FIXME
8274 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275 else
8276 ld_shlibs=no
8277 fi
8278 ;;
8279
8280 cygwin* | mingw* | pw32*)
8281 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8282 # as there is no search path for DLLs.
8283 hardcode_libdir_flag_spec='-L$libdir'
8284 allow_undefined_flag=unsupported
8285 always_export_symbols=no
8286 enable_shared_with_static_runtimes=yes
7868 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8287 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7869
7870 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8288
8289 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7872 # If the export-symbols file already is a .def file (1st line
7873 # is EXPORTS), use it as is; otherwise, prepend...
7874 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7875 cp $export_symbols $output_objdir/$soname.def;
7876 else
7877 echo EXPORTS > $output_objdir/$soname.def;
7878 cat $export_symbols >> $output_objdir/$soname.def;
7879 fi~
8291 # If the export-symbols file already is a .def file (1st line
8292 # is EXPORTS), use it as is; otherwise, prepend...
8293 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8294 cp $export_symbols $output_objdir/$soname.def;
8295 else
8296 echo EXPORTS > $output_objdir/$soname.def;
8297 cat $export_symbols >> $output_objdir/$soname.def;
8298 fi~
7880 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8299 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7881 else
7882 ld_shlibs=no
7883 fi
7884 ;;
7885
8300 else
8301 ld_shlibs=no
8302 fi
8303 ;;
8304
7886 linux*)
8305 interix[3-9]*)
8306 hardcode_direct=no
8307 hardcode_shlibpath_var=no
8308 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8309 export_dynamic_flag_spec='${wl}-E'
8310 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8311 # Instead, shared libraries are loaded at an image base (0x10000000 by
8312 # default) and relocated if they conflict, which is a slow very memory
8313 # consuming and fragmenting process. To avoid this, we pick a random,
8314 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8315 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8316 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8317 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'
8318 ;;
8319
8320 gnu* | linux* | k*bsd*-gnu)
7887 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7888 tmp_addflag=
7889 case $cc_basename,$host_cpu in
7890 pgcc*) # Portland Group C compiler
8321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8322 tmp_addflag=
8323 case $cc_basename,$host_cpu in
8324 pgcc*) # Portland Group C compiler
7891 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8325 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7892 tmp_addflag=' $pic_flag'
7893 ;;
8326 tmp_addflag=' $pic_flag'
8327 ;;
7894 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
7895 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8328 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8329 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7896 tmp_addflag=' $pic_flag -Mnomain' ;;
7897 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7898 tmp_addflag=' -i_dynamic' ;;
7899 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7900 tmp_addflag=' -i_dynamic -nofor_main' ;;
7901 ifc* | ifort*) # Intel Fortran compiler
7902 tmp_addflag=' -nofor_main' ;;
7903 esac
8330 tmp_addflag=' $pic_flag -Mnomain' ;;
8331 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8332 tmp_addflag=' -i_dynamic' ;;
8333 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8334 tmp_addflag=' -i_dynamic -nofor_main' ;;
8335 ifc* | ifort*) # Intel Fortran compiler
8336 tmp_addflag=' -nofor_main' ;;
8337 esac
7904 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8338 case `$CC -V 2>&1 | sed 5q` in
8339 *Sun\ C*) # Sun C 5.9
8340 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8341 tmp_sharedflag='-G' ;;
8342 *Sun\ F*) # Sun Fortran 8.3
8343 tmp_sharedflag='-G' ;;
8344 *)
8345 tmp_sharedflag='-shared' ;;
8346 esac
8347 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7905
7906 if test $supports_anon_versioning = yes; then
7907 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7908 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7909 $echo "local: *; };" >> $output_objdir/$libname.ver~
8348
8349 if test $supports_anon_versioning = yes; then
8350 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8351 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8352 $echo "local: *; };" >> $output_objdir/$libname.ver~
7910 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8353 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7911 fi
7912 else
7913 ld_shlibs=no
7914 fi
7915 ;;
7916
7917 netbsd*)
7918 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7919 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7920 wlarc=
7921 else
7922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7923 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7924 fi
7925 ;;
7926
8354 fi
8355 else
8356 ld_shlibs=no
8357 fi
8358 ;;
8359
8360 netbsd*)
8361 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8362 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8363 wlarc=
8364 else
8365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8366 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8367 fi
8368 ;;
8369
7927 solaris* | sysv5*)
8370 solaris*)
7928 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7929 ld_shlibs=no
7930 cat <<EOF 1>&2
7931
7932*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7933*** create shared libraries on Solaris systems. Therefore, libtool
7934*** is disabling shared libraries support. We urge you to upgrade GNU
7935*** binutils to release 2.9.1 or newer. Another option is to modify
7936*** your PATH or compiler configuration so that the native linker is
7937*** used, and then restart.
7938
7939EOF
7940 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7942 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7943 else
7944 ld_shlibs=no
7945 fi
7946 ;;
7947
8371 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8372 ld_shlibs=no
8373 cat <<EOF 1>&2
8374
8375*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8376*** create shared libraries on Solaris systems. Therefore, libtool
8377*** is disabling shared libraries support. We urge you to upgrade GNU
8378*** binutils to release 2.9.1 or newer. Another option is to modify
8379*** your PATH or compiler configuration so that the native linker is
8380*** used, and then restart.
8381
8382EOF
8383 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8385 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8386 else
8387 ld_shlibs=no
8388 fi
8389 ;;
8390
8391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8392 case `$LD -v 2>&1` in
8393 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8394 ld_shlibs=no
8395 cat <<_LT_EOF 1>&2
8396
8397*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8398*** reliably create shared libraries on SCO systems. Therefore, libtool
8399*** is disabling shared libraries support. We urge you to upgrade GNU
8400*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8401*** your PATH or compiler configuration so that the native linker is
8402*** used, and then restart.
8403
8404_LT_EOF
8405 ;;
8406 *)
8407 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8408 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8411 else
8412 ld_shlibs=no
8413 fi
8414 ;;
8415 esac
8416 ;;
8417
7948 sunos4*)
7949 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7950 wlarc=
7951 hardcode_direct=yes
7952 hardcode_shlibpath_var=no
7953 ;;
7954
7955 *)
7956 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7959 else
7960 ld_shlibs=no
7961 fi
7962 ;;
7963 esac
7964
7965 if test "$ld_shlibs" = no; then
7966 runpath_var=
7967 hardcode_libdir_flag_spec=
7968 export_dynamic_flag_spec=
7969 whole_archive_flag_spec=
7970 fi
7971 else
7972 # PORTME fill in a description of your system's linker (not GNU ld)
7973 case $host_os in
7974 aix3*)
7975 allow_undefined_flag=unsupported
7976 always_export_symbols=yes
7977 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'
7978 # Note: this linker hardcodes the directories in LIBPATH if there
7979 # are no directories specified by -L.
7980 hardcode_minus_L=yes
8418 sunos4*)
8419 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8420 wlarc=
8421 hardcode_direct=yes
8422 hardcode_shlibpath_var=no
8423 ;;
8424
8425 *)
8426 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8429 else
8430 ld_shlibs=no
8431 fi
8432 ;;
8433 esac
8434
8435 if test "$ld_shlibs" = no; then
8436 runpath_var=
8437 hardcode_libdir_flag_spec=
8438 export_dynamic_flag_spec=
8439 whole_archive_flag_spec=
8440 fi
8441 else
8442 # PORTME fill in a description of your system's linker (not GNU ld)
8443 case $host_os in
8444 aix3*)
8445 allow_undefined_flag=unsupported
8446 always_export_symbols=yes
8447 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'
8448 # Note: this linker hardcodes the directories in LIBPATH if there
8449 # are no directories specified by -L.
8450 hardcode_minus_L=yes
7981 if test "$GCC" = yes && test -z "$link_static_flag"; then
8451 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7982 # Neither direct hardcoding nor static linking is supported with a
7983 # broken collect2.
7984 hardcode_direct=unsupported
7985 fi
7986 ;;
7987
8452 # Neither direct hardcoding nor static linking is supported with a
8453 # broken collect2.
8454 hardcode_direct=unsupported
8455 fi
8456 ;;
8457
7988 aix4* | aix5*)
8458 aix[4-9]*)
7989 if test "$host_cpu" = ia64; then
7990 # On IA64, the linker does run time linking by default, so we don't
7991 # have to do anything special.
7992 aix_use_runtimelinking=no
7993 exp_sym_flag='-Bexport'
7994 no_entry_flag=""
7995 else
7996 # If we're using GNU nm, then we don't want the "-C" option.
7997 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7998 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7999 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8000 else
8001 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'
8002 fi
8003 aix_use_runtimelinking=no
8004
8005 # Test if we are trying to use run time linking or normal
8006 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8007 # need to do runtime linking.
8459 if test "$host_cpu" = ia64; then
8460 # On IA64, the linker does run time linking by default, so we don't
8461 # have to do anything special.
8462 aix_use_runtimelinking=no
8463 exp_sym_flag='-Bexport'
8464 no_entry_flag=""
8465 else
8466 # If we're using GNU nm, then we don't want the "-C" option.
8467 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8468 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8469 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8470 else
8471 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'
8472 fi
8473 aix_use_runtimelinking=no
8474
8475 # Test if we are trying to use run time linking or normal
8476 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8477 # need to do runtime linking.
8008 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8478 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8009 for ld_flag in $LDFLAGS; do
8010 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8011 aix_use_runtimelinking=yes
8012 break
8013 fi
8014 done
8479 for ld_flag in $LDFLAGS; do
8480 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8481 aix_use_runtimelinking=yes
8482 break
8483 fi
8484 done
8485 ;;
8015 esac
8016
8017 exp_sym_flag='-bexport'
8018 no_entry_flag='-bnoentry'
8019 fi
8020
8021 # When large executables or shared objects are built, AIX ld can
8022 # have problems creating the table of contents. If linking a library
8023 # or program results in "error TOC overflow" add -mminimal-toc to
8024 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8025 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8026
8027 archive_cmds=''
8028 hardcode_direct=yes
8029 hardcode_libdir_separator=':'
8030 link_all_deplibs=yes
8031
8032 if test "$GCC" = yes; then
8033 case $host_os in aix4.[012]|aix4.[012].*)
8034 # We only want to do this on AIX 4.2 and lower, the check
8035 # below for broken collect2 doesn't work under 4.3+
8036 collect2name=`${CC} -print-prog-name=collect2`
8037 if test -f "$collect2name" && \
8038 strings "$collect2name" | grep resolve_lib_name >/dev/null
8039 then
8040 # We have reworked collect2
8486 esac
8487
8488 exp_sym_flag='-bexport'
8489 no_entry_flag='-bnoentry'
8490 fi
8491
8492 # When large executables or shared objects are built, AIX ld can
8493 # have problems creating the table of contents. If linking a library
8494 # or program results in "error TOC overflow" add -mminimal-toc to
8495 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8496 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8497
8498 archive_cmds=''
8499 hardcode_direct=yes
8500 hardcode_libdir_separator=':'
8501 link_all_deplibs=yes
8502
8503 if test "$GCC" = yes; then
8504 case $host_os in aix4.[012]|aix4.[012].*)
8505 # We only want to do this on AIX 4.2 and lower, the check
8506 # below for broken collect2 doesn't work under 4.3+
8507 collect2name=`${CC} -print-prog-name=collect2`
8508 if test -f "$collect2name" && \
8509 strings "$collect2name" | grep resolve_lib_name >/dev/null
8510 then
8511 # We have reworked collect2
8041 hardcode_direct=yes
8512 :
8042 else
8043 # We have old collect2
8044 hardcode_direct=unsupported
8045 # It fails to find uninstalled libraries when the uninstalled
8046 # path is not listed in the libpath. Setting hardcode_minus_L
8047 # to unsupported forces relinking
8048 hardcode_minus_L=yes
8049 hardcode_libdir_flag_spec='-L$libdir'
8050 hardcode_libdir_separator=
8051 fi
8513 else
8514 # We have old collect2
8515 hardcode_direct=unsupported
8516 # It fails to find uninstalled libraries when the uninstalled
8517 # path is not listed in the libpath. Setting hardcode_minus_L
8518 # to unsupported forces relinking
8519 hardcode_minus_L=yes
8520 hardcode_libdir_flag_spec='-L$libdir'
8521 hardcode_libdir_separator=
8522 fi
8523 ;;
8052 esac
8053 shared_flag='-shared'
8054 if test "$aix_use_runtimelinking" = yes; then
8055 shared_flag="$shared_flag "'${wl}-G'
8056 fi
8057 else
8058 # not using gcc
8059 if test "$host_cpu" = ia64; then
8060 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8061 # chokes on -Wl,-G. The following line is correct:
8062 shared_flag='-G'
8063 else
8524 esac
8525 shared_flag='-shared'
8526 if test "$aix_use_runtimelinking" = yes; then
8527 shared_flag="$shared_flag "'${wl}-G'
8528 fi
8529 else
8530 # not using gcc
8531 if test "$host_cpu" = ia64; then
8532 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8533 # chokes on -Wl,-G. The following line is correct:
8534 shared_flag='-G'
8535 else
8064 if test "$aix_use_runtimelinking" = yes; then
8536 if test "$aix_use_runtimelinking" = yes; then
8065 shared_flag='${wl}-G'
8066 else
8067 shared_flag='${wl}-bM:SRE'
8537 shared_flag='${wl}-G'
8538 else
8539 shared_flag='${wl}-bM:SRE'
8068 fi
8540 fi
8069 fi
8070 fi
8071
8072 # It seems that -bexpall does not export symbols beginning with
8073 # underscore (_), so it is better to generate a list of symbols to export.
8074 always_export_symbols=yes
8075 if test "$aix_use_runtimelinking" = yes; then
8076 # Warning - without using the other runtime loading flags (-brtl),
8077 # -berok will link without error, but may produce a broken library.
8078 allow_undefined_flag='-berok'
8079 # Determine the default libpath from the value encoded in an empty executable.
8080 cat >conftest.$ac_ext <<_ACEOF
8081/* confdefs.h. */
8082_ACEOF
8083cat confdefs.h >>conftest.$ac_ext
8084cat >>conftest.$ac_ext <<_ACEOF
8085/* end confdefs.h. */
8086
8087int
8088main ()
8089{
8090
8091 ;
8092 return 0;
8093}
8094_ACEOF
8095rm -f conftest.$ac_objext conftest$ac_exeext
8096if { (ac_try="$ac_link"
8097case "(($ac_try" in
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8100esac
8101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102 (eval "$ac_link") 2>conftest.er1
8103 ac_status=$?
8104 grep -v '^ *+' conftest.er1 >conftest.err
8105 rm -f conftest.er1
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } && {
8109 test -z "$ac_c_werror_flag" ||
8110 test ! -s conftest.err
8111 } && test -s conftest$ac_exeext &&
8112 $as_test_x conftest$ac_exeext; then
8113
8541 fi
8542 fi
8543
8544 # It seems that -bexpall does not export symbols beginning with
8545 # underscore (_), so it is better to generate a list of symbols to export.
8546 always_export_symbols=yes
8547 if test "$aix_use_runtimelinking" = yes; then
8548 # Warning - without using the other runtime loading flags (-brtl),
8549 # -berok will link without error, but may produce a broken library.
8550 allow_undefined_flag='-berok'
8551 # Determine the default libpath from the value encoded in an empty executable.
8552 cat >conftest.$ac_ext <<_ACEOF
8553/* confdefs.h. */
8554_ACEOF
8555cat confdefs.h >>conftest.$ac_ext
8556cat >>conftest.$ac_ext <<_ACEOF
8557/* end confdefs.h. */
8558
8559int
8560main ()
8561{
8562
8563 ;
8564 return 0;
8565}
8566_ACEOF
8567rm -f conftest.$ac_objext conftest$ac_exeext
8568if { (ac_try="$ac_link"
8569case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572esac
8573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_link") 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } && {
8581 test -z "$ac_c_werror_flag" ||
8582 test ! -s conftest.err
8583 } && test -s conftest$ac_exeext &&
8584 $as_test_x conftest$ac_exeext; then
8585
8114aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8115}'`
8586lt_aix_libpath_sed='
8587 /Import File Strings/,/^$/ {
8588 /^0/ {
8589 s/^0 *\(.*\)$/\1/
8590 p
8591 }
8592 }'
8593aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8116# Check for a 64-bit object if we didn't find anything.
8594# Check for a 64-bit object if we didn't find anything.
8117if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8118}'`; fi
8595if test -z "$aix_libpath"; then
8596 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8597fi
8119else
8120 echo "$as_me: failed program was:" >&5
8121sed 's/^/| /' conftest.$ac_ext >&5
8122
8123
8124fi
8125
8126rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8127 conftest$ac_exeext conftest.$ac_ext
8128if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8129
8130 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8598else
8599 echo "$as_me: failed program was:" >&5
8600sed 's/^/| /' conftest.$ac_ext >&5
8601
8602
8603fi
8604
8605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8606 conftest$ac_exeext conftest.$ac_ext
8607if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8608
8609 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8131 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8610 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8132 else
8133 if test "$host_cpu" = ia64; then
8134 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8135 allow_undefined_flag="-z nodefs"
8611 else
8612 if test "$host_cpu" = ia64; then
8613 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8614 allow_undefined_flag="-z nodefs"
8136 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8615 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"
8137 else
8138 # Determine the default libpath from the value encoded in an empty executable.
8139 cat >conftest.$ac_ext <<_ACEOF
8140/* confdefs.h. */
8141_ACEOF
8142cat confdefs.h >>conftest.$ac_ext
8143cat >>conftest.$ac_ext <<_ACEOF
8144/* end confdefs.h. */
8145
8146int
8147main ()
8148{
8149
8150 ;
8151 return 0;
8152}
8153_ACEOF
8154rm -f conftest.$ac_objext conftest$ac_exeext
8155if { (ac_try="$ac_link"
8156case "(($ac_try" in
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8159esac
8160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161 (eval "$ac_link") 2>conftest.er1
8162 ac_status=$?
8163 grep -v '^ *+' conftest.er1 >conftest.err
8164 rm -f conftest.er1
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } && {
8168 test -z "$ac_c_werror_flag" ||
8169 test ! -s conftest.err
8170 } && test -s conftest$ac_exeext &&
8171 $as_test_x conftest$ac_exeext; then
8172
8616 else
8617 # Determine the default libpath from the value encoded in an empty executable.
8618 cat >conftest.$ac_ext <<_ACEOF
8619/* confdefs.h. */
8620_ACEOF
8621cat confdefs.h >>conftest.$ac_ext
8622cat >>conftest.$ac_ext <<_ACEOF
8623/* end confdefs.h. */
8624
8625int
8626main ()
8627{
8628
8629 ;
8630 return 0;
8631}
8632_ACEOF
8633rm -f conftest.$ac_objext conftest$ac_exeext
8634if { (ac_try="$ac_link"
8635case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8638esac
8639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_link") 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } && {
8647 test -z "$ac_c_werror_flag" ||
8648 test ! -s conftest.err
8649 } && test -s conftest$ac_exeext &&
8650 $as_test_x conftest$ac_exeext; then
8651
8173aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8174}'`
8652lt_aix_libpath_sed='
8653 /Import File Strings/,/^$/ {
8654 /^0/ {
8655 s/^0 *\(.*\)$/\1/
8656 p
8657 }
8658 }'
8659aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8175# Check for a 64-bit object if we didn't find anything.
8660# Check for a 64-bit object if we didn't find anything.
8176if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8177}'`; fi
8661if test -z "$aix_libpath"; then
8662 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8663fi
8178else
8179 echo "$as_me: failed program was:" >&5
8180sed 's/^/| /' conftest.$ac_ext >&5
8181
8182
8183fi
8184
8185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8186 conftest$ac_exeext conftest.$ac_ext
8187if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8188
8189 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8190 # Warning - without using the other run time loading flags,
8191 # -berok will link without error, but may produce a broken library.
8192 no_undefined_flag=' ${wl}-bernotok'
8193 allow_undefined_flag=' ${wl}-berok'
8664else
8665 echo "$as_me: failed program was:" >&5
8666sed 's/^/| /' conftest.$ac_ext >&5
8667
8668
8669fi
8670
8671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8672 conftest$ac_exeext conftest.$ac_ext
8673if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8674
8675 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8676 # Warning - without using the other run time loading flags,
8677 # -berok will link without error, but may produce a broken library.
8678 no_undefined_flag=' ${wl}-bernotok'
8679 allow_undefined_flag=' ${wl}-berok'
8194 # -bexpall does not export symbols beginning with underscore (_)
8195 always_export_symbols=yes
8196 # Exported symbols can be pulled into shared objects from archives
8680 # Exported symbols can be pulled into shared objects from archives
8197 whole_archive_flag_spec=' '
8681 whole_archive_flag_spec='$convenience'
8198 archive_cmds_need_lc=yes
8682 archive_cmds_need_lc=yes
8199 # This is similar to how AIX traditionally builds it's shared libraries.
8200 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8683 # This is similar to how AIX traditionally builds its shared libraries.
8684 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'
8201 fi
8202 fi
8203 ;;
8204
8205 amigaos*)
8206 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)'
8207 hardcode_libdir_flag_spec='-L$libdir'
8208 hardcode_minus_L=yes
8209 # see comment about different semantics on the GNU ld section
8210 ld_shlibs=no
8211 ;;
8212
8213 bsdi[45]*)
8214 export_dynamic_flag_spec=-rdynamic
8215 ;;
8216
8217 cygwin* | mingw* | pw32*)
8218 # When not using gcc, we currently assume that we are using
8219 # Microsoft Visual C++.
8220 # hardcode_libdir_flag_spec is actually meaningless, as there is
8221 # no search path for DLLs.
8222 hardcode_libdir_flag_spec=' '
8223 allow_undefined_flag=unsupported
8224 # Tell ltmain to make .lib files, not .a files.
8225 libext=lib
8226 # Tell ltmain to make .dll files, not .so files.
8227 shrext_cmds=".dll"
8228 # FIXME: Setting linknames here is a bad hack.
8229 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8230 # The linker will automatically build a .lib file if we build a DLL.
8231 old_archive_From_new_cmds='true'
8232 # FIXME: Should let the user specify the lib program.
8685 fi
8686 fi
8687 ;;
8688
8689 amigaos*)
8690 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)'
8691 hardcode_libdir_flag_spec='-L$libdir'
8692 hardcode_minus_L=yes
8693 # see comment about different semantics on the GNU ld section
8694 ld_shlibs=no
8695 ;;
8696
8697 bsdi[45]*)
8698 export_dynamic_flag_spec=-rdynamic
8699 ;;
8700
8701 cygwin* | mingw* | pw32*)
8702 # When not using gcc, we currently assume that we are using
8703 # Microsoft Visual C++.
8704 # hardcode_libdir_flag_spec is actually meaningless, as there is
8705 # no search path for DLLs.
8706 hardcode_libdir_flag_spec=' '
8707 allow_undefined_flag=unsupported
8708 # Tell ltmain to make .lib files, not .a files.
8709 libext=lib
8710 # Tell ltmain to make .dll files, not .so files.
8711 shrext_cmds=".dll"
8712 # FIXME: Setting linknames here is a bad hack.
8713 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8714 # The linker will automatically build a .lib file if we build a DLL.
8715 old_archive_From_new_cmds='true'
8716 # FIXME: Should let the user specify the lib program.
8233 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8717 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8234 fix_srcfile_path='`cygpath -w "$srcfile"`'
8235 enable_shared_with_static_runtimes=yes
8236 ;;
8237
8238 darwin* | rhapsody*)
8718 fix_srcfile_path='`cygpath -w "$srcfile"`'
8719 enable_shared_with_static_runtimes=yes
8720 ;;
8721
8722 darwin* | rhapsody*)
8239 case "$host_os" in
8723 case $host_os in
8240 rhapsody* | darwin1.[012])
8241 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8242 ;;
8243 *) # Darwin 1.3 on
8244 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8245 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8246 else
8247 case ${MACOSX_DEPLOYMENT_TARGET} in
8248 10.[012])
8249 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8250 ;;
8251 10.*)
8252 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8253 ;;
8254 esac
8255 fi
8256 ;;
8257 esac
8258 archive_cmds_need_lc=no
8259 hardcode_direct=no
8260 hardcode_automatic=yes
8261 hardcode_shlibpath_var=unsupported
8262 whole_archive_flag_spec=''
8263 link_all_deplibs=yes
8264 if test "$GCC" = yes ; then
8265 output_verbose_link_cmd='echo'
8724 rhapsody* | darwin1.[012])
8725 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8726 ;;
8727 *) # Darwin 1.3 on
8728 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8729 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8730 else
8731 case ${MACOSX_DEPLOYMENT_TARGET} in
8732 10.[012])
8733 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8734 ;;
8735 10.*)
8736 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8737 ;;
8738 esac
8739 fi
8740 ;;
8741 esac
8742 archive_cmds_need_lc=no
8743 hardcode_direct=no
8744 hardcode_automatic=yes
8745 hardcode_shlibpath_var=unsupported
8746 whole_archive_flag_spec=''
8747 link_all_deplibs=yes
8748 if test "$GCC" = yes ; then
8749 output_verbose_link_cmd='echo'
8266 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8267 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8268 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8269 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8270 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8750 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8751 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8752 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}"
8753 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}"
8271 else
8272 case $cc_basename in
8273 xlc*)
8274 output_verbose_link_cmd='echo'
8754 else
8755 case $cc_basename in
8756 xlc*)
8757 output_verbose_link_cmd='echo'
8275 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8758 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8276 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8759 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8277 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8278 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8760 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8761 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8279 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8280 ;;
8281 *)
8282 ld_shlibs=no
8283 ;;
8284 esac
8285 fi
8286 ;;
8287
8288 dgux*)
8289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8290 hardcode_libdir_flag_spec='-L$libdir'
8291 hardcode_shlibpath_var=no
8292 ;;
8293
8294 freebsd1*)
8295 ld_shlibs=no
8296 ;;
8297
8298 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8299 # support. Future versions do this automatically, but an explicit c++rt0.o
8300 # does not break anything, and helps significantly (at the cost of a little
8301 # extra space).
8302 freebsd2.2*)
8303 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8304 hardcode_libdir_flag_spec='-R$libdir'
8305 hardcode_direct=yes
8306 hardcode_shlibpath_var=no
8307 ;;
8308
8309 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8310 freebsd2*)
8311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8312 hardcode_direct=yes
8313 hardcode_minus_L=yes
8314 hardcode_shlibpath_var=no
8315 ;;
8316
8317 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8762 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8763 ;;
8764 *)
8765 ld_shlibs=no
8766 ;;
8767 esac
8768 fi
8769 ;;
8770
8771 dgux*)
8772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8773 hardcode_libdir_flag_spec='-L$libdir'
8774 hardcode_shlibpath_var=no
8775 ;;
8776
8777 freebsd1*)
8778 ld_shlibs=no
8779 ;;
8780
8781 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8782 # support. Future versions do this automatically, but an explicit c++rt0.o
8783 # does not break anything, and helps significantly (at the cost of a little
8784 # extra space).
8785 freebsd2.2*)
8786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8787 hardcode_libdir_flag_spec='-R$libdir'
8788 hardcode_direct=yes
8789 hardcode_shlibpath_var=no
8790 ;;
8791
8792 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8793 freebsd2*)
8794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8795 hardcode_direct=yes
8796 hardcode_minus_L=yes
8797 hardcode_shlibpath_var=no
8798 ;;
8799
8800 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8318 freebsd* | kfreebsd*-gnu | dragonfly*)
8801 freebsd* | dragonfly*)
8319 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8320 hardcode_libdir_flag_spec='-R$libdir'
8321 hardcode_direct=yes
8322 hardcode_shlibpath_var=no
8323 ;;
8324
8325 hpux9*)
8326 if test "$GCC" = yes; then
8327 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8328 else
8329 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'
8330 fi
8331 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8332 hardcode_libdir_separator=:
8333 hardcode_direct=yes
8334
8335 # hardcode_minus_L: Not really in the search PATH,
8336 # but as the default location of the library.
8337 hardcode_minus_L=yes
8338 export_dynamic_flag_spec='${wl}-E'
8339 ;;
8340
8802 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8803 hardcode_libdir_flag_spec='-R$libdir'
8804 hardcode_direct=yes
8805 hardcode_shlibpath_var=no
8806 ;;
8807
8808 hpux9*)
8809 if test "$GCC" = yes; then
8810 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8811 else
8812 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'
8813 fi
8814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8815 hardcode_libdir_separator=:
8816 hardcode_direct=yes
8817
8818 # hardcode_minus_L: Not really in the search PATH,
8819 # but as the default location of the library.
8820 hardcode_minus_L=yes
8821 export_dynamic_flag_spec='${wl}-E'
8822 ;;
8823
8341 hpux10* | hpux11*)
8824 hpux10*)
8342 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8825 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8343 case "$host_cpu" in
8344 hppa*64*|ia64*)
8826 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8827 else
8828 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8829 fi
8830 if test "$with_gnu_ld" = no; then
8831 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8832 hardcode_libdir_separator=:
8833
8834 hardcode_direct=yes
8835 export_dynamic_flag_spec='${wl}-E'
8836
8837 # hardcode_minus_L: Not really in the search PATH,
8838 # but as the default location of the library.
8839 hardcode_minus_L=yes
8840 fi
8841 ;;
8842
8843 hpux11*)
8844 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8845 case $host_cpu in
8846 hppa*64*)
8345 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8346 ;;
8847 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8848 ;;
8849 ia64*)
8850 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8851 ;;
8347 *)
8348 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8349 ;;
8350 esac
8351 else
8852 *)
8853 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8854 ;;
8855 esac
8856 else
8352 case "$host_cpu" in
8353 hppa*64*|ia64*)
8354 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8857 case $host_cpu in
8858 hppa*64*)
8859 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8355 ;;
8860 ;;
8861 ia64*)
8862 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8863 ;;
8356 *)
8864 *)
8357 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8865 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8358 ;;
8359 esac
8360 fi
8361 if test "$with_gnu_ld" = no; then
8866 ;;
8867 esac
8868 fi
8869 if test "$with_gnu_ld" = no; then
8362 case "$host_cpu" in
8363 hppa*64*)
8364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8870 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8871 hardcode_libdir_separator=:
8872
8873 case $host_cpu in
8874 hppa*64*|ia64*)
8365 hardcode_libdir_flag_spec_ld='+b $libdir'
8875 hardcode_libdir_flag_spec_ld='+b $libdir'
8366 hardcode_libdir_separator=:
8367 hardcode_direct=no
8368 hardcode_shlibpath_var=no
8369 ;;
8876 hardcode_direct=no
8877 hardcode_shlibpath_var=no
8878 ;;
8370 ia64*)
8371 hardcode_libdir_flag_spec='-L$libdir'
8372 hardcode_direct=no
8373 hardcode_shlibpath_var=no
8374
8375 # hardcode_minus_L: Not really in the search PATH,
8376 # but as the default location of the library.
8377 hardcode_minus_L=yes
8378 ;;
8379 *)
8879 *)
8380 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8381 hardcode_libdir_separator=:
8382 hardcode_direct=yes
8383 export_dynamic_flag_spec='${wl}-E'
8384
8385 # hardcode_minus_L: Not really in the search PATH,
8386 # but as the default location of the library.
8387 hardcode_minus_L=yes
8388 ;;
8389 esac
8390 fi
8391 ;;
8392
8393 irix5* | irix6* | nonstopux*)
8394 if test "$GCC" = yes; then
8395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8396 else
8397 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8398 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8399 fi
8400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8401 hardcode_libdir_separator=:
8402 link_all_deplibs=yes
8403 ;;
8404
8405 netbsd*)
8406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8408 else
8409 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8410 fi
8411 hardcode_libdir_flag_spec='-R$libdir'
8412 hardcode_direct=yes
8413 hardcode_shlibpath_var=no
8414 ;;
8415
8416 newsos6)
8417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8418 hardcode_direct=yes
8419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8420 hardcode_libdir_separator=:
8421 hardcode_shlibpath_var=no
8422 ;;
8423
8424 openbsd*)
8880 hardcode_direct=yes
8881 export_dynamic_flag_spec='${wl}-E'
8882
8883 # hardcode_minus_L: Not really in the search PATH,
8884 # but as the default location of the library.
8885 hardcode_minus_L=yes
8886 ;;
8887 esac
8888 fi
8889 ;;
8890
8891 irix5* | irix6* | nonstopux*)
8892 if test "$GCC" = yes; then
8893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8894 else
8895 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8896 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8897 fi
8898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8899 hardcode_libdir_separator=:
8900 link_all_deplibs=yes
8901 ;;
8902
8903 netbsd*)
8904 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8905 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8906 else
8907 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8908 fi
8909 hardcode_libdir_flag_spec='-R$libdir'
8910 hardcode_direct=yes
8911 hardcode_shlibpath_var=no
8912 ;;
8913
8914 newsos6)
8915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8916 hardcode_direct=yes
8917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8918 hardcode_libdir_separator=:
8919 hardcode_shlibpath_var=no
8920 ;;
8921
8922 openbsd*)
8425 hardcode_direct=yes
8426 hardcode_shlibpath_var=no
8427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8428 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8429 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8430 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8431 export_dynamic_flag_spec='${wl}-E'
8923 if test -f /usr/libexec/ld.so; then
8924 hardcode_direct=yes
8925 hardcode_shlibpath_var=no
8926 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8928 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8929 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8930 export_dynamic_flag_spec='${wl}-E'
8931 else
8932 case $host_os in
8933 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8934 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8935 hardcode_libdir_flag_spec='-R$libdir'
8936 ;;
8937 *)
8938 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8939 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8940 ;;
8941 esac
8942 fi
8432 else
8943 else
8433 case $host_os in
8434 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8436 hardcode_libdir_flag_spec='-R$libdir'
8437 ;;
8438 *)
8439 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8440 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8441 ;;
8442 esac
8944 ld_shlibs=no
8443 fi
8444 ;;
8445
8446 os2*)
8447 hardcode_libdir_flag_spec='-L$libdir'
8448 hardcode_minus_L=yes
8449 allow_undefined_flag=unsupported
8450 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'
8451 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8452 ;;
8453
8454 osf3*)
8455 if test "$GCC" = yes; then
8456 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8457 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8458 else
8459 allow_undefined_flag=' -expect_unresolved \*'
8460 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8461 fi
8462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8463 hardcode_libdir_separator=:
8464 ;;
8465
8466 osf4* | osf5*) # as osf3* with the addition of -msym flag
8467 if test "$GCC" = yes; then
8468 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8469 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8471 else
8472 allow_undefined_flag=' -expect_unresolved \*'
8473 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8474 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8475 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8476
8477 # Both c and cxx compiler support -rpath directly
8478 hardcode_libdir_flag_spec='-rpath $libdir'
8479 fi
8480 hardcode_libdir_separator=:
8481 ;;
8482
8945 fi
8946 ;;
8947
8948 os2*)
8949 hardcode_libdir_flag_spec='-L$libdir'
8950 hardcode_minus_L=yes
8951 allow_undefined_flag=unsupported
8952 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'
8953 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8954 ;;
8955
8956 osf3*)
8957 if test "$GCC" = yes; then
8958 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8959 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8960 else
8961 allow_undefined_flag=' -expect_unresolved \*'
8962 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8963 fi
8964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8965 hardcode_libdir_separator=:
8966 ;;
8967
8968 osf4* | osf5*) # as osf3* with the addition of -msym flag
8969 if test "$GCC" = yes; then
8970 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8971 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8973 else
8974 allow_undefined_flag=' -expect_unresolved \*'
8975 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8976 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8977 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8978
8979 # Both c and cxx compiler support -rpath directly
8980 hardcode_libdir_flag_spec='-rpath $libdir'
8981 fi
8982 hardcode_libdir_separator=:
8983 ;;
8984
8483 sco3.2v5*)
8484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8485 hardcode_shlibpath_var=no
8486 export_dynamic_flag_spec='${wl}-Bexport'
8487 runpath_var=LD_RUN_PATH
8488 hardcode_runpath_var=yes
8489 ;;
8490
8491 solaris*)
8492 no_undefined_flag=' -z text'
8493 if test "$GCC" = yes; then
8494 wlarc='${wl}'
8495 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8496 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8497 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8498 else
8499 wlarc=''
8500 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8501 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8502 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8503 fi
8504 hardcode_libdir_flag_spec='-R$libdir'
8505 hardcode_shlibpath_var=no
8506 case $host_os in
8507 solaris2.[0-5] | solaris2.[0-5].*) ;;
8508 *)
8985 solaris*)
8986 no_undefined_flag=' -z text'
8987 if test "$GCC" = yes; then
8988 wlarc='${wl}'
8989 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8990 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8991 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8992 else
8993 wlarc=''
8994 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8995 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8996 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8997 fi
8998 hardcode_libdir_flag_spec='-R$libdir'
8999 hardcode_shlibpath_var=no
9000 case $host_os in
9001 solaris2.[0-5] | solaris2.[0-5].*) ;;
9002 *)
8509 # The compiler driver will combine linker options so we
8510 # cannot just pass the convience library names through
8511 # without $wl, iff we do not link with $LD.
8512 # Luckily, gcc supports the same syntax we need for Sun Studio.
9003 # The compiler driver will combine and reorder linker options,
9004 # but understands `-z linker_flag'. GCC discards it without `$wl',
9005 # but is careful enough not to reorder.
8513 # Supported since Solaris 2.6 (maybe 2.5.1?)
9006 # Supported since Solaris 2.6 (maybe 2.5.1?)
8514 case $wlarc in
8515 '')
8516 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8517 *)
8518 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8519 esac ;;
9007 if test "$GCC" = yes; then
9008 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9009 else
9010 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9011 fi
9012 ;;
8520 esac
8521 link_all_deplibs=yes
8522 ;;
8523
8524 sunos4*)
8525 if test "x$host_vendor" = xsequent; then
8526 # Use $CC to link under sequent, because it throws in some extra .o
8527 # files that make .init and .fini sections work.
8528 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8529 else
8530 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8531 fi
8532 hardcode_libdir_flag_spec='-L$libdir'
8533 hardcode_direct=yes
8534 hardcode_minus_L=yes
8535 hardcode_shlibpath_var=no
8536 ;;
8537
8538 sysv4)
8539 case $host_vendor in
8540 sni)
8541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8542 hardcode_direct=yes # is this really true???
8543 ;;
8544 siemens)
8545 ## LD is ld it makes a PLAMLIB
8546 ## CC just makes a GrossModule.
8547 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8548 reload_cmds='$CC -r -o $output$reload_objs'
8549 hardcode_direct=no
8550 ;;
8551 motorola)
8552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8553 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8554 ;;
8555 esac
8556 runpath_var='LD_RUN_PATH'
8557 hardcode_shlibpath_var=no
8558 ;;
8559
8560 sysv4.3*)
8561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8562 hardcode_shlibpath_var=no
8563 export_dynamic_flag_spec='-Bexport'
8564 ;;
8565
8566 sysv4*MP*)
8567 if test -d /usr/nec; then
8568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8569 hardcode_shlibpath_var=no
8570 runpath_var=LD_RUN_PATH
8571 hardcode_runpath_var=yes
8572 ld_shlibs=yes
8573 fi
8574 ;;
8575
9013 esac
9014 link_all_deplibs=yes
9015 ;;
9016
9017 sunos4*)
9018 if test "x$host_vendor" = xsequent; then
9019 # Use $CC to link under sequent, because it throws in some extra .o
9020 # files that make .init and .fini sections work.
9021 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9022 else
9023 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9024 fi
9025 hardcode_libdir_flag_spec='-L$libdir'
9026 hardcode_direct=yes
9027 hardcode_minus_L=yes
9028 hardcode_shlibpath_var=no
9029 ;;
9030
9031 sysv4)
9032 case $host_vendor in
9033 sni)
9034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9035 hardcode_direct=yes # is this really true???
9036 ;;
9037 siemens)
9038 ## LD is ld it makes a PLAMLIB
9039 ## CC just makes a GrossModule.
9040 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9041 reload_cmds='$CC -r -o $output$reload_objs'
9042 hardcode_direct=no
9043 ;;
9044 motorola)
9045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9046 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9047 ;;
9048 esac
9049 runpath_var='LD_RUN_PATH'
9050 hardcode_shlibpath_var=no
9051 ;;
9052
9053 sysv4.3*)
9054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9055 hardcode_shlibpath_var=no
9056 export_dynamic_flag_spec='-Bexport'
9057 ;;
9058
9059 sysv4*MP*)
9060 if test -d /usr/nec; then
9061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9062 hardcode_shlibpath_var=no
9063 runpath_var=LD_RUN_PATH
9064 hardcode_runpath_var=yes
9065 ld_shlibs=yes
9066 fi
9067 ;;
9068
8576 sysv4.2uw2*)
8577 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8578 hardcode_direct=yes
8579 hardcode_minus_L=no
9069 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9070 no_undefined_flag='${wl}-z,text'
9071 archive_cmds_need_lc=no
8580 hardcode_shlibpath_var=no
9072 hardcode_shlibpath_var=no
8581 hardcode_runpath_var=yes
8582 runpath_var=LD_RUN_PATH
8583 ;;
9073 runpath_var='LD_RUN_PATH'
8584
9074
8585 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8586 no_undefined_flag='${wl}-z ${wl}text'
8587 if test "$GCC" = yes; then
9075 if test "$GCC" = yes; then
8588 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9076 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9077 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8589 else
9078 else
8590 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9079 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9080 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8591 fi
9081 fi
8592 runpath_var='LD_RUN_PATH'
8593 hardcode_shlibpath_var=no
8594 ;;
8595
9082 ;;
9083
8596 sysv5*)
8597 no_undefined_flag=' -z text'
8598 # $CC -shared without GNU ld will not create a library from C++
8599 # object files and a static libstdc++, better avoid it by now
8600 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8601 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8602 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8603 hardcode_libdir_flag_spec=
9084 sysv5* | sco3.2v5* | sco5v6*)
9085 # Note: We can NOT use -z defs as we might desire, because we do not
9086 # link with -lc, and that would cause any symbols used from libc to
9087 # always be unresolved, which means just about no library would
9088 # ever link correctly. If we're not using GNU ld we use -z text
9089 # though, which does catch some bad symbols but isn't as heavy-handed
9090 # as -z defs.
9091 no_undefined_flag='${wl}-z,text'
9092 allow_undefined_flag='${wl}-z,nodefs'
9093 archive_cmds_need_lc=no
8604 hardcode_shlibpath_var=no
9094 hardcode_shlibpath_var=no
9095 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9096 hardcode_libdir_separator=':'
9097 link_all_deplibs=yes
9098 export_dynamic_flag_spec='${wl}-Bexport'
8605 runpath_var='LD_RUN_PATH'
9099 runpath_var='LD_RUN_PATH'
9100
9101 if test "$GCC" = yes; then
9102 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9103 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9104 else
9105 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9106 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9107 fi
8606 ;;
8607
8608 uts4*)
8609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8610 hardcode_libdir_flag_spec='-L$libdir'
8611 hardcode_shlibpath_var=no
8612 ;;
8613
8614 *)
8615 ld_shlibs=no
8616 ;;
8617 esac
8618 fi
8619
8620{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8621echo "${ECHO_T}$ld_shlibs" >&6; }
8622test "$ld_shlibs" = no && can_build_shared=no
8623
9108 ;;
9109
9110 uts4*)
9111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9112 hardcode_libdir_flag_spec='-L$libdir'
9113 hardcode_shlibpath_var=no
9114 ;;
9115
9116 *)
9117 ld_shlibs=no
9118 ;;
9119 esac
9120 fi
9121
9122{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9123echo "${ECHO_T}$ld_shlibs" >&6; }
9124test "$ld_shlibs" = no && can_build_shared=no
9125
8624variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8625if test "$GCC" = yes; then
8626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8627fi
8628
8629#
8630# Do we need to explicitly link libc?
8631#
8632case "x$archive_cmds_need_lc" in
8633x|xyes)
8634 # Assume -lc should be added
8635 archive_cmds_need_lc=yes
8636
8637 if test "$enable_shared" = yes && test "$GCC" = yes; then
8638 case $archive_cmds in
8639 *'~'*)
8640 # FIXME: we may have to deal with multi-command sequences.
8641 ;;
8642 '$CC '*)
8643 # Test whether the compiler implicitly links with -lc since on some
8644 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8645 # to ld, don't add -lc before -lgcc.
8646 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8647echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8648 $rm conftest*
9126#
9127# Do we need to explicitly link libc?
9128#
9129case "x$archive_cmds_need_lc" in
9130x|xyes)
9131 # Assume -lc should be added
9132 archive_cmds_need_lc=yes
9133
9134 if test "$enable_shared" = yes && test "$GCC" = yes; then
9135 case $archive_cmds in
9136 *'~'*)
9137 # FIXME: we may have to deal with multi-command sequences.
9138 ;;
9139 '$CC '*)
9140 # Test whether the compiler implicitly links with -lc since on some
9141 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9142 # to ld, don't add -lc before -lgcc.
9143 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9144echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9145 $rm conftest*
8649 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8650
8651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8652 (eval $ac_compile) 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } 2>conftest.err; then
8656 soname=conftest
8657 lib=conftest
8658 libobjs=conftest.$ac_objext
8659 deplibs=
8660 wl=$lt_prog_compiler_wl
9147
9148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9149 (eval $ac_compile) 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } 2>conftest.err; then
9153 soname=conftest
9154 lib=conftest
9155 libobjs=conftest.$ac_objext
9156 deplibs=
9157 wl=$lt_prog_compiler_wl
9158 pic_flag=$lt_prog_compiler_pic
8661 compiler_flags=-v
8662 linker_flags=-v
8663 verstring=
8664 output_objdir=.
8665 libname=conftest
8666 lt_save_allow_undefined_flag=$allow_undefined_flag
8667 allow_undefined_flag=
8668 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8669 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8670 ac_status=$?
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); }
8673 then
8674 archive_cmds_need_lc=no
8675 else
8676 archive_cmds_need_lc=yes
8677 fi
8678 allow_undefined_flag=$lt_save_allow_undefined_flag
8679 else
8680 cat conftest.err 1>&5
8681 fi
8682 $rm conftest*
8683 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8684echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8685 ;;
8686 esac
8687 fi
8688 ;;
8689esac
8690
8691{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8692echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8693library_names_spec=
8694libname_spec='lib$name'
8695soname_spec=
8696shrext_cmds=".so"
8697postinstall_cmds=
8698postuninstall_cmds=
8699finish_cmds=
8700finish_eval=
8701shlibpath_var=
8702shlibpath_overrides_runpath=unknown
8703version_type=none
8704dynamic_linker="$host_os ld.so"
8705sys_lib_dlsearch_path_spec="/lib /usr/lib"
9159 compiler_flags=-v
9160 linker_flags=-v
9161 verstring=
9162 output_objdir=.
9163 libname=conftest
9164 lt_save_allow_undefined_flag=$allow_undefined_flag
9165 allow_undefined_flag=
9166 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9167 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }
9171 then
9172 archive_cmds_need_lc=no
9173 else
9174 archive_cmds_need_lc=yes
9175 fi
9176 allow_undefined_flag=$lt_save_allow_undefined_flag
9177 else
9178 cat conftest.err 1>&5
9179 fi
9180 $rm conftest*
9181 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9182echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9183 ;;
9184 esac
9185 fi
9186 ;;
9187esac
9188
9189{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9190echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9191library_names_spec=
9192libname_spec='lib$name'
9193soname_spec=
9194shrext_cmds=".so"
9195postinstall_cmds=
9196postuninstall_cmds=
9197finish_cmds=
9198finish_eval=
9199shlibpath_var=
9200shlibpath_overrides_runpath=unknown
9201version_type=none
9202dynamic_linker="$host_os ld.so"
9203sys_lib_dlsearch_path_spec="/lib /usr/lib"
9204
8706if test "$GCC" = yes; then
9205if test "$GCC" = yes; then
8707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8708 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9206 case $host_os in
9207 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9208 *) lt_awk_arg="/^libraries:/" ;;
9209 esac
9210 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9211 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8709 # if the path contains ";" then we assume it to be the separator
8710 # otherwise default to the standard path separator (i.e. ":") - it is
8711 # assumed that no part of a normal pathname contains ";" but that should
8712 # okay in the real world where ";" in dirpaths is itself problematic.
9212 # if the path contains ";" then we assume it to be the separator
9213 # otherwise default to the standard path separator (i.e. ":") - it is
9214 # assumed that no part of a normal pathname contains ";" but that should
9215 # okay in the real world where ";" in dirpaths is itself problematic.
8713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9216 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8714 else
9217 else
8715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9218 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8716 fi
9219 fi
9220 # Ok, now we have the path, separated by spaces, we can step through it
9221 # and add multilib dir if necessary.
9222 lt_tmp_lt_search_path_spec=
9223 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9224 for lt_sys_path in $lt_search_path_spec; do
9225 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9226 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9227 else
9228 test -d "$lt_sys_path" && \
9229 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9230 fi
9231 done
9232 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9233BEGIN {RS=" "; FS="/|\n";} {
9234 lt_foo="";
9235 lt_count=0;
9236 for (lt_i = NF; lt_i > 0; lt_i--) {
9237 if ($lt_i != "" && $lt_i != ".") {
9238 if ($lt_i == "..") {
9239 lt_count++;
9240 } else {
9241 if (lt_count == 0) {
9242 lt_foo="/" $lt_i lt_foo;
9243 } else {
9244 lt_count--;
9245 }
9246 }
9247 }
9248 }
9249 if (lt_foo != "") { lt_freq[lt_foo]++; }
9250 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9251}'`
9252 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8717else
8718 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8719fi
8720need_lib_prefix=unknown
8721hardcode_into_libs=no
8722
8723# when you set need_version to no, make sure it does not cause -set_version
8724# flags to be left without arguments
8725need_version=unknown
8726
8727case $host_os in
8728aix3*)
8729 version_type=linux
8730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8731 shlibpath_var=LIBPATH
8732
8733 # AIX 3 has no versioning support, so we append a major version to the name.
8734 soname_spec='${libname}${release}${shared_ext}$major'
8735 ;;
8736
9253else
9254 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9255fi
9256need_lib_prefix=unknown
9257hardcode_into_libs=no
9258
9259# when you set need_version to no, make sure it does not cause -set_version
9260# flags to be left without arguments
9261need_version=unknown
9262
9263case $host_os in
9264aix3*)
9265 version_type=linux
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9267 shlibpath_var=LIBPATH
9268
9269 # AIX 3 has no versioning support, so we append a major version to the name.
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 ;;
9272
8737aix4* | aix5*)
9273aix[4-9]*)
8738 version_type=linux
8739 need_lib_prefix=no
8740 need_version=no
8741 hardcode_into_libs=yes
8742 if test "$host_cpu" = ia64; then
8743 # AIX 5 supports IA64
8744 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8745 shlibpath_var=LD_LIBRARY_PATH
8746 else
8747 # With GCC up to 2.95.x, collect2 would create an import file
8748 # for dependence libraries. The import file would start with
8749 # the line `#! .'. This would cause the generated library to
8750 # depend on `.', always an invalid library. This was fixed in
8751 # development snapshots of GCC prior to 3.0.
8752 case $host_os in
8753 aix4 | aix4.[01] | aix4.[01].*)
8754 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8755 echo ' yes '
8756 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8757 :
8758 else
8759 can_build_shared=no
8760 fi
8761 ;;
8762 esac
8763 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8764 # soname into executable. Probably we can add versioning support to
8765 # collect2, so additional links can be useful in future.
8766 if test "$aix_use_runtimelinking" = yes; then
8767 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8768 # instead of lib<name>.a to let people know that these are not
8769 # typical AIX shared libraries.
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8771 else
8772 # We preserve .a as extension for shared libraries through AIX4.2
8773 # and later when we are not doing run time linking.
8774 library_names_spec='${libname}${release}.a $libname.a'
8775 soname_spec='${libname}${release}${shared_ext}$major'
8776 fi
8777 shlibpath_var=LIBPATH
8778 fi
8779 ;;
8780
8781amigaos*)
8782 library_names_spec='$libname.ixlibrary $libname.a'
8783 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8784 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
8785 ;;
8786
8787beos*)
8788 library_names_spec='${libname}${shared_ext}'
8789 dynamic_linker="$host_os ld.so"
8790 shlibpath_var=LIBRARY_PATH
8791 ;;
8792
8793bsdi[45]*)
8794 version_type=linux
8795 need_version=no
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8797 soname_spec='${libname}${release}${shared_ext}$major'
8798 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8799 shlibpath_var=LD_LIBRARY_PATH
8800 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8801 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8802 # the default ld.so.conf also contains /usr/contrib/lib and
8803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8804 # libtool to hard-code these into programs
8805 ;;
8806
8807cygwin* | mingw* | pw32*)
8808 version_type=windows
8809 shrext_cmds=".dll"
8810 need_version=no
8811 need_lib_prefix=no
8812
8813 case $GCC,$host_os in
8814 yes,cygwin* | yes,mingw* | yes,pw32*)
8815 library_names_spec='$libname.dll.a'
8816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8817 postinstall_cmds='base_file=`basename \${file}`~
8818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8819 dldir=$destdir/`dirname \$dlpath`~
8820 test -d \$dldir || mkdir -p \$dldir~
9274 version_type=linux
9275 need_lib_prefix=no
9276 need_version=no
9277 hardcode_into_libs=yes
9278 if test "$host_cpu" = ia64; then
9279 # AIX 5 supports IA64
9280 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 else
9283 # With GCC up to 2.95.x, collect2 would create an import file
9284 # for dependence libraries. The import file would start with
9285 # the line `#! .'. This would cause the generated library to
9286 # depend on `.', always an invalid library. This was fixed in
9287 # development snapshots of GCC prior to 3.0.
9288 case $host_os in
9289 aix4 | aix4.[01] | aix4.[01].*)
9290 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9291 echo ' yes '
9292 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9293 :
9294 else
9295 can_build_shared=no
9296 fi
9297 ;;
9298 esac
9299 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9300 # soname into executable. Probably we can add versioning support to
9301 # collect2, so additional links can be useful in future.
9302 if test "$aix_use_runtimelinking" = yes; then
9303 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9304 # instead of lib<name>.a to let people know that these are not
9305 # typical AIX shared libraries.
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307 else
9308 # We preserve .a as extension for shared libraries through AIX4.2
9309 # and later when we are not doing run time linking.
9310 library_names_spec='${libname}${release}.a $libname.a'
9311 soname_spec='${libname}${release}${shared_ext}$major'
9312 fi
9313 shlibpath_var=LIBPATH
9314 fi
9315 ;;
9316
9317amigaos*)
9318 library_names_spec='$libname.ixlibrary $libname.a'
9319 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9320 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
9321 ;;
9322
9323beos*)
9324 library_names_spec='${libname}${shared_ext}'
9325 dynamic_linker="$host_os ld.so"
9326 shlibpath_var=LIBRARY_PATH
9327 ;;
9328
9329bsdi[45]*)
9330 version_type=linux
9331 need_version=no
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9333 soname_spec='${libname}${release}${shared_ext}$major'
9334 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9335 shlibpath_var=LD_LIBRARY_PATH
9336 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9337 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9338 # the default ld.so.conf also contains /usr/contrib/lib and
9339 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9340 # libtool to hard-code these into programs
9341 ;;
9342
9343cygwin* | mingw* | pw32*)
9344 version_type=windows
9345 shrext_cmds=".dll"
9346 need_version=no
9347 need_lib_prefix=no
9348
9349 case $GCC,$host_os in
9350 yes,cygwin* | yes,mingw* | yes,pw32*)
9351 library_names_spec='$libname.dll.a'
9352 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9353 postinstall_cmds='base_file=`basename \${file}`~
9354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9355 dldir=$destdir/`dirname \$dlpath`~
9356 test -d \$dldir || mkdir -p \$dldir~
8821 $install_prog $dir/$dlname \$dldir/$dlname'
9357 $install_prog $dir/$dlname \$dldir/$dlname~
9358 chmod a+x \$dldir/$dlname'
8822 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8823 dlpath=$dir/\$dldll~
8824 $rm \$dlpath'
8825 shlibpath_overrides_runpath=yes
8826
8827 case $host_os in
8828 cygwin*)
8829 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8830 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8831 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8832 ;;
8833 mingw*)
8834 # MinGW DLLs use traditional 'lib' prefix
8835 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8836 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8837 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8838 # It is most probably a Windows format PATH printed by
8839 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8840 # path with ; separators, and with drive letters. We can handle the
8841 # drive letters (cygwin fileutils understands them), so leave them,
8842 # especially as we might pass files found there to a mingw objdump,
8843 # which wouldn't understand a cygwinified path. Ahh.
8844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8845 else
8846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8847 fi
8848 ;;
8849 pw32*)
8850 # pw32 DLLs use 'pw' prefix rather than 'lib'
8851 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8852 ;;
8853 esac
8854 ;;
8855
8856 *)
8857 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8858 ;;
8859 esac
8860 dynamic_linker='Win32 ld.exe'
8861 # FIXME: first we should search . and the directory the executable is in
8862 shlibpath_var=PATH
8863 ;;
8864
8865darwin* | rhapsody*)
8866 dynamic_linker="$host_os dyld"
8867 version_type=darwin
8868 need_lib_prefix=no
8869 need_version=no
8870 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8871 soname_spec='${libname}${release}${major}$shared_ext'
8872 shlibpath_overrides_runpath=yes
8873 shlibpath_var=DYLD_LIBRARY_PATH
9359 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9360 dlpath=$dir/\$dldll~
9361 $rm \$dlpath'
9362 shlibpath_overrides_runpath=yes
9363
9364 case $host_os in
9365 cygwin*)
9366 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9367 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9368 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9369 ;;
9370 mingw*)
9371 # MinGW DLLs use traditional 'lib' prefix
9372 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9373 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9374 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9375 # It is most probably a Windows format PATH printed by
9376 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9377 # path with ; separators, and with drive letters. We can handle the
9378 # drive letters (cygwin fileutils understands them), so leave them,
9379 # especially as we might pass files found there to a mingw objdump,
9380 # which wouldn't understand a cygwinified path. Ahh.
9381 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9382 else
9383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9384 fi
9385 ;;
9386 pw32*)
9387 # pw32 DLLs use 'pw' prefix rather than 'lib'
9388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9389 ;;
9390 esac
9391 ;;
9392
9393 *)
9394 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9395 ;;
9396 esac
9397 dynamic_linker='Win32 ld.exe'
9398 # FIXME: first we should search . and the directory the executable is in
9399 shlibpath_var=PATH
9400 ;;
9401
9402darwin* | rhapsody*)
9403 dynamic_linker="$host_os dyld"
9404 version_type=darwin
9405 need_lib_prefix=no
9406 need_version=no
9407 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9408 soname_spec='${libname}${release}${major}$shared_ext'
9409 shlibpath_overrides_runpath=yes
9410 shlibpath_var=DYLD_LIBRARY_PATH
8874 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8875 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8876 if test "$GCC" = yes; then
8877 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8878 else
8879 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8880 fi
9411 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9412
9413 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8881 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8882 ;;
8883
8884dgux*)
8885 version_type=linux
8886 need_lib_prefix=no
8887 need_version=no
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8889 soname_spec='${libname}${release}${shared_ext}$major'
8890 shlibpath_var=LD_LIBRARY_PATH
8891 ;;
8892
8893freebsd1*)
8894 dynamic_linker=no
8895 ;;
8896
9414 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9415 ;;
9416
9417dgux*)
9418 version_type=linux
9419 need_lib_prefix=no
9420 need_version=no
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9422 soname_spec='${libname}${release}${shared_ext}$major'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 ;;
9425
9426freebsd1*)
9427 dynamic_linker=no
9428 ;;
9429
8897kfreebsd*-gnu)
8898 version_type=linux
8899 need_lib_prefix=no
8900 need_version=no
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8902 soname_spec='${libname}${release}${shared_ext}$major'
8903 shlibpath_var=LD_LIBRARY_PATH
8904 shlibpath_overrides_runpath=no
8905 hardcode_into_libs=yes
8906 dynamic_linker='GNU ld.so'
8907 ;;
8908
8909freebsd* | dragonfly*)
8910 # DragonFly does not have aout. When/if they implement a new
8911 # versioning mechanism, adjust this.
9430freebsd* | dragonfly*)
9431 # DragonFly does not have aout. When/if they implement a new
9432 # versioning mechanism, adjust this.
8912 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9433 if test -x /usr/bin/objformat; then
9434 objformat=`/usr/bin/objformat`
9435 else
9436 case $host_os in
9437 freebsd[123]*) objformat=aout ;;
9438 *) objformat=elf ;;
9439 esac
9440 fi
8913 version_type=freebsd-$objformat
8914 case $version_type in
8915 freebsd-elf*)
8916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8917 need_version=no
8918 need_lib_prefix=no
8919 ;;
8920 freebsd-*)
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8922 need_version=yes
8923 ;;
8924 esac
8925 shlibpath_var=LD_LIBRARY_PATH
8926 case $host_os in
8927 freebsd2*)
8928 shlibpath_overrides_runpath=yes
8929 ;;
8930 freebsd3.[01]* | freebsdelf3.[01]*)
8931 shlibpath_overrides_runpath=yes
8932 hardcode_into_libs=yes
8933 ;;
9441 version_type=freebsd-$objformat
9442 case $version_type in
9443 freebsd-elf*)
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9445 need_version=no
9446 need_lib_prefix=no
9447 ;;
9448 freebsd-*)
9449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9450 need_version=yes
9451 ;;
9452 esac
9453 shlibpath_var=LD_LIBRARY_PATH
9454 case $host_os in
9455 freebsd2*)
9456 shlibpath_overrides_runpath=yes
9457 ;;
9458 freebsd3.[01]* | freebsdelf3.[01]*)
9459 shlibpath_overrides_runpath=yes
9460 hardcode_into_libs=yes
9461 ;;
8934 *) # from 3.2 on
9462 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9463 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8935 shlibpath_overrides_runpath=no
8936 hardcode_into_libs=yes
8937 ;;
9464 shlibpath_overrides_runpath=no
9465 hardcode_into_libs=yes
9466 ;;
9467 *) # from 4.6 on, and DragonFly
9468 shlibpath_overrides_runpath=yes
9469 hardcode_into_libs=yes
9470 ;;
8938 esac
8939 ;;
8940
8941gnu*)
8942 version_type=linux
8943 need_lib_prefix=no
8944 need_version=no
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 hardcode_into_libs=yes
8949 ;;
8950
8951hpux9* | hpux10* | hpux11*)
8952 # Give a soname corresponding to the major version so that dld.sl refuses to
8953 # link against other versions.
8954 version_type=sunos
8955 need_lib_prefix=no
8956 need_version=no
9471 esac
9472 ;;
9473
9474gnu*)
9475 version_type=linux
9476 need_lib_prefix=no
9477 need_version=no
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9479 soname_spec='${libname}${release}${shared_ext}$major'
9480 shlibpath_var=LD_LIBRARY_PATH
9481 hardcode_into_libs=yes
9482 ;;
9483
9484hpux9* | hpux10* | hpux11*)
9485 # Give a soname corresponding to the major version so that dld.sl refuses to
9486 # link against other versions.
9487 version_type=sunos
9488 need_lib_prefix=no
9489 need_version=no
8957 case "$host_cpu" in
9490 case $host_cpu in
8958 ia64*)
8959 shrext_cmds='.so'
8960 hardcode_into_libs=yes
8961 dynamic_linker="$host_os dld.so"
8962 shlibpath_var=LD_LIBRARY_PATH
8963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8965 soname_spec='${libname}${release}${shared_ext}$major'
8966 if test "X$HPUX_IA64_MODE" = X32; then
8967 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8968 else
8969 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8970 fi
8971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8972 ;;
8973 hppa*64*)
8974 shrext_cmds='.sl'
8975 hardcode_into_libs=yes
8976 dynamic_linker="$host_os dld.sl"
8977 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8983 ;;
8984 *)
8985 shrext_cmds='.sl'
8986 dynamic_linker="$host_os dld.sl"
8987 shlibpath_var=SHLIB_PATH
8988 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 ;;
8992 esac
8993 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8994 postinstall_cmds='chmod 555 $lib'
8995 ;;
8996
9491 ia64*)
9492 shrext_cmds='.so'
9493 hardcode_into_libs=yes
9494 dynamic_linker="$host_os dld.so"
9495 shlibpath_var=LD_LIBRARY_PATH
9496 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498 soname_spec='${libname}${release}${shared_ext}$major'
9499 if test "X$HPUX_IA64_MODE" = X32; then
9500 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9501 else
9502 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9503 fi
9504 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9505 ;;
9506 hppa*64*)
9507 shrext_cmds='.sl'
9508 hardcode_into_libs=yes
9509 dynamic_linker="$host_os dld.sl"
9510 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513 soname_spec='${libname}${release}${shared_ext}$major'
9514 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9516 ;;
9517 *)
9518 shrext_cmds='.sl'
9519 dynamic_linker="$host_os dld.sl"
9520 shlibpath_var=SHLIB_PATH
9521 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 ;;
9525 esac
9526 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9527 postinstall_cmds='chmod 555 $lib'
9528 ;;
9529
9530interix[3-9]*)
9531 version_type=linux
9532 need_lib_prefix=no
9533 need_version=no
9534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9537 shlibpath_var=LD_LIBRARY_PATH
9538 shlibpath_overrides_runpath=no
9539 hardcode_into_libs=yes
9540 ;;
9541
8997irix5* | irix6* | nonstopux*)
8998 case $host_os in
8999 nonstopux*) version_type=nonstopux ;;
9000 *)
9001 if test "$lt_cv_prog_gnu_ld" = yes; then
9002 version_type=linux
9003 else
9004 version_type=irix
9005 fi ;;
9006 esac
9007 need_lib_prefix=no
9008 need_version=no
9009 soname_spec='${libname}${release}${shared_ext}$major'
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9011 case $host_os in
9012 irix5* | nonstopux*)
9013 libsuff= shlibsuff=
9014 ;;
9015 *)
9016 case $LD in # libtool.m4 will add one of these switches to LD
9017 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9018 libsuff= shlibsuff= libmagic=32-bit;;
9019 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9020 libsuff=32 shlibsuff=N32 libmagic=N32;;
9021 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9022 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9023 *) libsuff= shlibsuff= libmagic=never-match;;
9024 esac
9025 ;;
9026 esac
9027 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9028 shlibpath_overrides_runpath=no
9029 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9030 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9031 hardcode_into_libs=yes
9032 ;;
9033
9034# No shared lib support for Linux oldld, aout, or coff.
9035linux*oldld* | linux*aout* | linux*coff*)
9036 dynamic_linker=no
9037 ;;
9038
9039# This must be Linux ELF.
9542irix5* | irix6* | nonstopux*)
9543 case $host_os in
9544 nonstopux*) version_type=nonstopux ;;
9545 *)
9546 if test "$lt_cv_prog_gnu_ld" = yes; then
9547 version_type=linux
9548 else
9549 version_type=irix
9550 fi ;;
9551 esac
9552 need_lib_prefix=no
9553 need_version=no
9554 soname_spec='${libname}${release}${shared_ext}$major'
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9556 case $host_os in
9557 irix5* | nonstopux*)
9558 libsuff= shlibsuff=
9559 ;;
9560 *)
9561 case $LD in # libtool.m4 will add one of these switches to LD
9562 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9563 libsuff= shlibsuff= libmagic=32-bit;;
9564 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9565 libsuff=32 shlibsuff=N32 libmagic=N32;;
9566 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9567 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9568 *) libsuff= shlibsuff= libmagic=never-match;;
9569 esac
9570 ;;
9571 esac
9572 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9573 shlibpath_overrides_runpath=no
9574 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9575 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9576 hardcode_into_libs=yes
9577 ;;
9578
9579# No shared lib support for Linux oldld, aout, or coff.
9580linux*oldld* | linux*aout* | linux*coff*)
9581 dynamic_linker=no
9582 ;;
9583
9584# This must be Linux ELF.
9040linux*)
9585linux* | k*bsd*-gnu)
9041 version_type=linux
9042 need_lib_prefix=no
9043 need_version=no
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 soname_spec='${libname}${release}${shared_ext}$major'
9046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=no
9049 # This implies no fast_install, which is unacceptable.
9050 # Some rework will be needed to allow for fast_install
9051 # before this can be enabled.
9052 hardcode_into_libs=yes
9053
9054 # Append ld.so.conf contents to the search path
9055 if test -f /etc/ld.so.conf; then
9586 version_type=linux
9587 need_lib_prefix=no
9588 need_version=no
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590 soname_spec='${libname}${release}${shared_ext}$major'
9591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9592 shlibpath_var=LD_LIBRARY_PATH
9593 shlibpath_overrides_runpath=no
9594 # This implies no fast_install, which is unacceptable.
9595 # Some rework will be needed to allow for fast_install
9596 # before this can be enabled.
9597 hardcode_into_libs=yes
9598
9599 # Append ld.so.conf contents to the search path
9600 if test -f /etc/ld.so.conf; then
9056 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9601 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;/^$/d' | tr '\n' ' '`
9057 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9058 fi
9059
9060 # We used to test for /lib/ld.so.1 and disable shared libraries on
9061 # powerpc, because MkLinux only supported shared libraries with the
9062 # GNU dynamic linker. Since this was broken with cross compilers,
9063 # most powerpc-linux boxes support dynamic linking these days and
9064 # people can always --disable-shared, the test was removed, and we
9065 # assume the GNU/Linux dynamic linker is in use.
9066 dynamic_linker='GNU/Linux ld.so'
9067 ;;
9068
9602 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9603 fi
9604
9605 # We used to test for /lib/ld.so.1 and disable shared libraries on
9606 # powerpc, because MkLinux only supported shared libraries with the
9607 # GNU dynamic linker. Since this was broken with cross compilers,
9608 # most powerpc-linux boxes support dynamic linking these days and
9609 # people can always --disable-shared, the test was removed, and we
9610 # assume the GNU/Linux dynamic linker is in use.
9611 dynamic_linker='GNU/Linux ld.so'
9612 ;;
9613
9069knetbsd*-gnu)
9070 version_type=linux
9071 need_lib_prefix=no
9072 need_version=no
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 shlibpath_overrides_runpath=no
9077 hardcode_into_libs=yes
9078 dynamic_linker='GNU ld.so'
9079 ;;
9080
9081netbsd*)
9082 version_type=sunos
9083 need_lib_prefix=no
9084 need_version=no
9085 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9088 dynamic_linker='NetBSD (a.out) ld.so'
9089 else
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 dynamic_linker='NetBSD ld.elf_so'
9093 fi
9094 shlibpath_var=LD_LIBRARY_PATH
9095 shlibpath_overrides_runpath=yes
9096 hardcode_into_libs=yes
9097 ;;
9098
9099newsos6)
9100 version_type=linux
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 shlibpath_var=LD_LIBRARY_PATH
9103 shlibpath_overrides_runpath=yes
9104 ;;
9105
9106nto-qnx*)
9107 version_type=linux
9108 need_lib_prefix=no
9109 need_version=no
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 shlibpath_overrides_runpath=yes
9114 ;;
9115
9116openbsd*)
9117 version_type=sunos
9614netbsd*)
9615 version_type=sunos
9616 need_lib_prefix=no
9617 need_version=no
9618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9621 dynamic_linker='NetBSD (a.out) ld.so'
9622 else
9623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9624 soname_spec='${libname}${release}${shared_ext}$major'
9625 dynamic_linker='NetBSD ld.elf_so'
9626 fi
9627 shlibpath_var=LD_LIBRARY_PATH
9628 shlibpath_overrides_runpath=yes
9629 hardcode_into_libs=yes
9630 ;;
9631
9632newsos6)
9633 version_type=linux
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9635 shlibpath_var=LD_LIBRARY_PATH
9636 shlibpath_overrides_runpath=yes
9637 ;;
9638
9639nto-qnx*)
9640 version_type=linux
9641 need_lib_prefix=no
9642 need_version=no
9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9644 soname_spec='${libname}${release}${shared_ext}$major'
9645 shlibpath_var=LD_LIBRARY_PATH
9646 shlibpath_overrides_runpath=yes
9647 ;;
9648
9649openbsd*)
9650 version_type=sunos
9651 sys_lib_dlsearch_path_spec="/usr/lib"
9118 need_lib_prefix=no
9119 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9120 case $host_os in
9121 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9122 *) need_version=no ;;
9123 esac
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9128 case $host_os in
9129 openbsd2.[89] | openbsd2.[89].*)
9130 shlibpath_overrides_runpath=no
9131 ;;
9132 *)
9133 shlibpath_overrides_runpath=yes
9134 ;;
9135 esac
9136 else
9137 shlibpath_overrides_runpath=yes
9138 fi
9139 ;;
9140
9141os2*)
9142 libname_spec='$name'
9143 shrext_cmds=".dll"
9144 need_lib_prefix=no
9145 library_names_spec='$libname${shared_ext} $libname.a'
9146 dynamic_linker='OS/2 ld.exe'
9147 shlibpath_var=LIBPATH
9148 ;;
9149
9150osf3* | osf4* | osf5*)
9151 version_type=osf
9152 need_lib_prefix=no
9153 need_version=no
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9158 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9159 ;;
9160
9652 need_lib_prefix=no
9653 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9654 case $host_os in
9655 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9656 *) need_version=no ;;
9657 esac
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9662 case $host_os in
9663 openbsd2.[89] | openbsd2.[89].*)
9664 shlibpath_overrides_runpath=no
9665 ;;
9666 *)
9667 shlibpath_overrides_runpath=yes
9668 ;;
9669 esac
9670 else
9671 shlibpath_overrides_runpath=yes
9672 fi
9673 ;;
9674
9675os2*)
9676 libname_spec='$name'
9677 shrext_cmds=".dll"
9678 need_lib_prefix=no
9679 library_names_spec='$libname${shared_ext} $libname.a'
9680 dynamic_linker='OS/2 ld.exe'
9681 shlibpath_var=LIBPATH
9682 ;;
9683
9684osf3* | osf4* | osf5*)
9685 version_type=osf
9686 need_lib_prefix=no
9687 need_version=no
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9692 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9693 ;;
9694
9161sco3.2v5*)
9162 version_type=osf
9163 soname_spec='${libname}${release}${shared_ext}$major'
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165 shlibpath_var=LD_LIBRARY_PATH
9695rdos*)
9696 dynamic_linker=no
9166 ;;
9167
9168solaris*)
9169 version_type=linux
9170 need_lib_prefix=no
9171 need_version=no
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 shlibpath_var=LD_LIBRARY_PATH
9175 shlibpath_overrides_runpath=yes
9176 hardcode_into_libs=yes
9177 # ldd complains unless libraries are executable
9178 postinstall_cmds='chmod +x $lib'
9179 ;;
9180
9181sunos4*)
9182 version_type=sunos
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9184 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 shlibpath_overrides_runpath=yes
9187 if test "$with_gnu_ld" = yes; then
9188 need_lib_prefix=no
9189 fi
9190 need_version=yes
9191 ;;
9192
9697 ;;
9698
9699solaris*)
9700 version_type=linux
9701 need_lib_prefix=no
9702 need_version=no
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704 soname_spec='${libname}${release}${shared_ext}$major'
9705 shlibpath_var=LD_LIBRARY_PATH
9706 shlibpath_overrides_runpath=yes
9707 hardcode_into_libs=yes
9708 # ldd complains unless libraries are executable
9709 postinstall_cmds='chmod +x $lib'
9710 ;;
9711
9712sunos4*)
9713 version_type=sunos
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9715 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9716 shlibpath_var=LD_LIBRARY_PATH
9717 shlibpath_overrides_runpath=yes
9718 if test "$with_gnu_ld" = yes; then
9719 need_lib_prefix=no
9720 fi
9721 need_version=yes
9722 ;;
9723
9193sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9724sysv4 | sysv4.3*)
9194 version_type=linux
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 case $host_vendor in
9199 sni)
9200 shlibpath_overrides_runpath=no
9201 need_lib_prefix=no
9202 export_dynamic_flag_spec='${wl}-Blargedynsym'
9203 runpath_var=LD_RUN_PATH
9204 ;;
9205 siemens)
9206 need_lib_prefix=no
9207 ;;
9208 motorola)
9209 need_lib_prefix=no
9210 need_version=no
9211 shlibpath_overrides_runpath=no
9212 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9213 ;;
9214 esac
9215 ;;
9216
9217sysv4*MP*)
9218 if test -d /usr/nec ;then
9219 version_type=linux
9220 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9221 soname_spec='$libname${shared_ext}.$major'
9222 shlibpath_var=LD_LIBRARY_PATH
9223 fi
9224 ;;
9225
9725 version_type=linux
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727 soname_spec='${libname}${release}${shared_ext}$major'
9728 shlibpath_var=LD_LIBRARY_PATH
9729 case $host_vendor in
9730 sni)
9731 shlibpath_overrides_runpath=no
9732 need_lib_prefix=no
9733 export_dynamic_flag_spec='${wl}-Blargedynsym'
9734 runpath_var=LD_RUN_PATH
9735 ;;
9736 siemens)
9737 need_lib_prefix=no
9738 ;;
9739 motorola)
9740 need_lib_prefix=no
9741 need_version=no
9742 shlibpath_overrides_runpath=no
9743 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9744 ;;
9745 esac
9746 ;;
9747
9748sysv4*MP*)
9749 if test -d /usr/nec ;then
9750 version_type=linux
9751 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9752 soname_spec='$libname${shared_ext}.$major'
9753 shlibpath_var=LD_LIBRARY_PATH
9754 fi
9755 ;;
9756
9757sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9758 version_type=freebsd-elf
9759 need_lib_prefix=no
9760 need_version=no
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 shlibpath_var=LD_LIBRARY_PATH
9764 hardcode_into_libs=yes
9765 if test "$with_gnu_ld" = yes; then
9766 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9767 shlibpath_overrides_runpath=no
9768 else
9769 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9770 shlibpath_overrides_runpath=yes
9771 case $host_os in
9772 sco3.2v5*)
9773 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9774 ;;
9775 esac
9776 fi
9777 sys_lib_dlsearch_path_spec='/usr/lib'
9778 ;;
9779
9226uts4*)
9227 version_type=linux
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 ;;
9232
9233*)
9234 dynamic_linker=no
9235 ;;
9236esac
9237{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9238echo "${ECHO_T}$dynamic_linker" >&6; }
9239test "$dynamic_linker" = no && can_build_shared=no
9240
9780uts4*)
9781 version_type=linux
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783 soname_spec='${libname}${release}${shared_ext}$major'
9784 shlibpath_var=LD_LIBRARY_PATH
9785 ;;
9786
9787*)
9788 dynamic_linker=no
9789 ;;
9790esac
9791{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9792echo "${ECHO_T}$dynamic_linker" >&6; }
9793test "$dynamic_linker" = no && can_build_shared=no
9794
9795if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797else
9798 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9799fi
9800
9801sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9802if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9804else
9805 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9806fi
9807
9808sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9809
9810variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9811if test "$GCC" = yes; then
9812 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9813fi
9814
9241{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9242echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9243hardcode_action=
9244if test -n "$hardcode_libdir_flag_spec" || \
9245 test -n "$runpath_var" || \
9246 test "X$hardcode_automatic" = "Xyes" ; then
9247
9248 # We can hardcode non-existant directories.
9249 if test "$hardcode_direct" != no &&
9250 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9251 # have to relink, otherwise we might link with an installed library
9252 # when we should be linking with a yet-to-be-installed one
9253 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9254 test "$hardcode_minus_L" != no; then
9255 # Linking always hardcodes the temporary library directory.
9256 hardcode_action=relink
9257 else
9258 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9259 hardcode_action=immediate
9260 fi
9261else
9262 # We cannot hardcode anything, or else we can only hardcode existing
9263 # directories.
9264 hardcode_action=unsupported
9265fi
9266{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9267echo "${ECHO_T}$hardcode_action" >&6; }
9268
9269if test "$hardcode_action" = relink; then
9270 # Fast installation is not supported
9271 enable_fast_install=no
9272elif test "$shlibpath_overrides_runpath" = yes ||
9273 test "$enable_shared" = no; then
9274 # Fast installation is not necessary
9275 enable_fast_install=needless
9276fi
9277
9278striplib=
9279old_striplib=
9280{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9281echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9282if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9283 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9284 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9285 { echo "$as_me:$LINENO: result: yes" >&5
9286echo "${ECHO_T}yes" >&6; }
9287else
9288# FIXME - insert some real tests, host_os isn't really good enough
9289 case $host_os in
9290 darwin*)
9291 if test -n "$STRIP" ; then
9292 striplib="$STRIP -x"
9815{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9816echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9817hardcode_action=
9818if test -n "$hardcode_libdir_flag_spec" || \
9819 test -n "$runpath_var" || \
9820 test "X$hardcode_automatic" = "Xyes" ; then
9821
9822 # We can hardcode non-existant directories.
9823 if test "$hardcode_direct" != no &&
9824 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9825 # have to relink, otherwise we might link with an installed library
9826 # when we should be linking with a yet-to-be-installed one
9827 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9828 test "$hardcode_minus_L" != no; then
9829 # Linking always hardcodes the temporary library directory.
9830 hardcode_action=relink
9831 else
9832 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9833 hardcode_action=immediate
9834 fi
9835else
9836 # We cannot hardcode anything, or else we can only hardcode existing
9837 # directories.
9838 hardcode_action=unsupported
9839fi
9840{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9841echo "${ECHO_T}$hardcode_action" >&6; }
9842
9843if test "$hardcode_action" = relink; then
9844 # Fast installation is not supported
9845 enable_fast_install=no
9846elif test "$shlibpath_overrides_runpath" = yes ||
9847 test "$enable_shared" = no; then
9848 # Fast installation is not necessary
9849 enable_fast_install=needless
9850fi
9851
9852striplib=
9853old_striplib=
9854{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9855echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9856if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9857 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9858 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9859 { echo "$as_me:$LINENO: result: yes" >&5
9860echo "${ECHO_T}yes" >&6; }
9861else
9862# FIXME - insert some real tests, host_os isn't really good enough
9863 case $host_os in
9864 darwin*)
9865 if test -n "$STRIP" ; then
9866 striplib="$STRIP -x"
9867 old_striplib="$STRIP -S"
9293 { echo "$as_me:$LINENO: result: yes" >&5
9294echo "${ECHO_T}yes" >&6; }
9295 else
9296 { echo "$as_me:$LINENO: result: no" >&5
9297echo "${ECHO_T}no" >&6; }
9298fi
9299 ;;
9300 *)
9301 { echo "$as_me:$LINENO: result: no" >&5
9302echo "${ECHO_T}no" >&6; }
9303 ;;
9304 esac
9305fi
9306
9307if test "x$enable_dlopen" != xyes; then
9308 enable_dlopen=unknown
9309 enable_dlopen_self=unknown
9310 enable_dlopen_self_static=unknown
9311else
9312 lt_cv_dlopen=no
9313 lt_cv_dlopen_libs=
9314
9315 case $host_os in
9316 beos*)
9317 lt_cv_dlopen="load_add_on"
9318 lt_cv_dlopen_libs=
9319 lt_cv_dlopen_self=yes
9320 ;;
9321
9322 mingw* | pw32*)
9323 lt_cv_dlopen="LoadLibrary"
9324 lt_cv_dlopen_libs=
9325 ;;
9326
9327 cygwin*)
9328 lt_cv_dlopen="dlopen"
9329 lt_cv_dlopen_libs=
9330 ;;
9331
9332 darwin*)
9333 # if libdl is installed we need to link against it
9334 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9335echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9336if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9338else
9339 ac_check_lib_save_LIBS=$LIBS
9340LIBS="-ldl $LIBS"
9341cat >conftest.$ac_ext <<_ACEOF
9342/* confdefs.h. */
9343_ACEOF
9344cat confdefs.h >>conftest.$ac_ext
9345cat >>conftest.$ac_ext <<_ACEOF
9346/* end confdefs.h. */
9347
9348/* Override any GCC internal prototype to avoid an error.
9349 Use char because int might match the return type of a GCC
9350 builtin and then its argument prototype would still apply. */
9351#ifdef __cplusplus
9352extern "C"
9353#endif
9354char dlopen ();
9355int
9356main ()
9357{
9358return dlopen ();
9359 ;
9360 return 0;
9361}
9362_ACEOF
9363rm -f conftest.$ac_objext conftest$ac_exeext
9364if { (ac_try="$ac_link"
9365case "(($ac_try" in
9366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367 *) ac_try_echo=$ac_try;;
9368esac
9369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370 (eval "$ac_link") 2>conftest.er1
9371 ac_status=$?
9372 grep -v '^ *+' conftest.er1 >conftest.err
9373 rm -f conftest.er1
9374 cat conftest.err >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } && {
9377 test -z "$ac_c_werror_flag" ||
9378 test ! -s conftest.err
9379 } && test -s conftest$ac_exeext &&
9380 $as_test_x conftest$ac_exeext; then
9381 ac_cv_lib_dl_dlopen=yes
9382else
9383 echo "$as_me: failed program was:" >&5
9384sed 's/^/| /' conftest.$ac_ext >&5
9385
9386 ac_cv_lib_dl_dlopen=no
9387fi
9388
9389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9390 conftest$ac_exeext conftest.$ac_ext
9391LIBS=$ac_check_lib_save_LIBS
9392fi
9393{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9394echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9395if test $ac_cv_lib_dl_dlopen = yes; then
9396 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9397else
9398
9399 lt_cv_dlopen="dyld"
9400 lt_cv_dlopen_libs=
9401 lt_cv_dlopen_self=yes
9402
9403fi
9404
9405 ;;
9406
9407 *)
9408 { echo "$as_me:$LINENO: checking for shl_load" >&5
9409echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9410if test "${ac_cv_func_shl_load+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412else
9413 cat >conftest.$ac_ext <<_ACEOF
9414/* confdefs.h. */
9415_ACEOF
9416cat confdefs.h >>conftest.$ac_ext
9417cat >>conftest.$ac_ext <<_ACEOF
9418/* end confdefs.h. */
9419/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9421#define shl_load innocuous_shl_load
9422
9423/* System header to define __stub macros and hopefully few prototypes,
9424 which can conflict with char shl_load (); below.
9425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9426 <limits.h> exists even on freestanding compilers. */
9427
9428#ifdef __STDC__
9429# include <limits.h>
9430#else
9431# include <assert.h>
9432#endif
9433
9434#undef shl_load
9435
9436/* Override any GCC internal prototype to avoid an error.
9437 Use char because int might match the return type of a GCC
9438 builtin and then its argument prototype would still apply. */
9439#ifdef __cplusplus
9440extern "C"
9441#endif
9442char shl_load ();
9443/* The GNU C library defines this for functions which it implements
9444 to always fail with ENOSYS. Some functions are actually named
9445 something starting with __ and the normal name is an alias. */
9446#if defined __stub_shl_load || defined __stub___shl_load
9447choke me
9448#endif
9449
9450int
9451main ()
9452{
9453return shl_load ();
9454 ;
9455 return 0;
9456}
9457_ACEOF
9458rm -f conftest.$ac_objext conftest$ac_exeext
9459if { (ac_try="$ac_link"
9460case "(($ac_try" in
9461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462 *) ac_try_echo=$ac_try;;
9463esac
9464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465 (eval "$ac_link") 2>conftest.er1
9466 ac_status=$?
9467 grep -v '^ *+' conftest.er1 >conftest.err
9468 rm -f conftest.er1
9469 cat conftest.err >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); } && {
9472 test -z "$ac_c_werror_flag" ||
9473 test ! -s conftest.err
9474 } && test -s conftest$ac_exeext &&
9475 $as_test_x conftest$ac_exeext; then
9476 ac_cv_func_shl_load=yes
9477else
9478 echo "$as_me: failed program was:" >&5
9479sed 's/^/| /' conftest.$ac_ext >&5
9480
9481 ac_cv_func_shl_load=no
9482fi
9483
9484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9485 conftest$ac_exeext conftest.$ac_ext
9486fi
9487{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9488echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9489if test $ac_cv_func_shl_load = yes; then
9490 lt_cv_dlopen="shl_load"
9491else
9492 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9493echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9494if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496else
9497 ac_check_lib_save_LIBS=$LIBS
9498LIBS="-ldld $LIBS"
9499cat >conftest.$ac_ext <<_ACEOF
9500/* confdefs.h. */
9501_ACEOF
9502cat confdefs.h >>conftest.$ac_ext
9503cat >>conftest.$ac_ext <<_ACEOF
9504/* end confdefs.h. */
9505
9506/* Override any GCC internal prototype to avoid an error.
9507 Use char because int might match the return type of a GCC
9508 builtin and then its argument prototype would still apply. */
9509#ifdef __cplusplus
9510extern "C"
9511#endif
9512char shl_load ();
9513int
9514main ()
9515{
9516return shl_load ();
9517 ;
9518 return 0;
9519}
9520_ACEOF
9521rm -f conftest.$ac_objext conftest$ac_exeext
9522if { (ac_try="$ac_link"
9523case "(($ac_try" in
9524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9525 *) ac_try_echo=$ac_try;;
9526esac
9527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528 (eval "$ac_link") 2>conftest.er1
9529 ac_status=$?
9530 grep -v '^ *+' conftest.er1 >conftest.err
9531 rm -f conftest.er1
9532 cat conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } && {
9535 test -z "$ac_c_werror_flag" ||
9536 test ! -s conftest.err
9537 } && test -s conftest$ac_exeext &&
9538 $as_test_x conftest$ac_exeext; then
9539 ac_cv_lib_dld_shl_load=yes
9540else
9541 echo "$as_me: failed program was:" >&5
9542sed 's/^/| /' conftest.$ac_ext >&5
9543
9544 ac_cv_lib_dld_shl_load=no
9545fi
9546
9547rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9548 conftest$ac_exeext conftest.$ac_ext
9549LIBS=$ac_check_lib_save_LIBS
9550fi
9551{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9552echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9553if test $ac_cv_lib_dld_shl_load = yes; then
9868 { echo "$as_me:$LINENO: result: yes" >&5
9869echo "${ECHO_T}yes" >&6; }
9870 else
9871 { echo "$as_me:$LINENO: result: no" >&5
9872echo "${ECHO_T}no" >&6; }
9873fi
9874 ;;
9875 *)
9876 { echo "$as_me:$LINENO: result: no" >&5
9877echo "${ECHO_T}no" >&6; }
9878 ;;
9879 esac
9880fi
9881
9882if test "x$enable_dlopen" != xyes; then
9883 enable_dlopen=unknown
9884 enable_dlopen_self=unknown
9885 enable_dlopen_self_static=unknown
9886else
9887 lt_cv_dlopen=no
9888 lt_cv_dlopen_libs=
9889
9890 case $host_os in
9891 beos*)
9892 lt_cv_dlopen="load_add_on"
9893 lt_cv_dlopen_libs=
9894 lt_cv_dlopen_self=yes
9895 ;;
9896
9897 mingw* | pw32*)
9898 lt_cv_dlopen="LoadLibrary"
9899 lt_cv_dlopen_libs=
9900 ;;
9901
9902 cygwin*)
9903 lt_cv_dlopen="dlopen"
9904 lt_cv_dlopen_libs=
9905 ;;
9906
9907 darwin*)
9908 # if libdl is installed we need to link against it
9909 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9910echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9911if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913else
9914 ac_check_lib_save_LIBS=$LIBS
9915LIBS="-ldl $LIBS"
9916cat >conftest.$ac_ext <<_ACEOF
9917/* confdefs.h. */
9918_ACEOF
9919cat confdefs.h >>conftest.$ac_ext
9920cat >>conftest.$ac_ext <<_ACEOF
9921/* end confdefs.h. */
9922
9923/* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9926#ifdef __cplusplus
9927extern "C"
9928#endif
9929char dlopen ();
9930int
9931main ()
9932{
9933return dlopen ();
9934 ;
9935 return 0;
9936}
9937_ACEOF
9938rm -f conftest.$ac_objext conftest$ac_exeext
9939if { (ac_try="$ac_link"
9940case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9943esac
9944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_link") 2>conftest.er1
9946 ac_status=$?
9947 grep -v '^ *+' conftest.er1 >conftest.err
9948 rm -f conftest.er1
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && {
9952 test -z "$ac_c_werror_flag" ||
9953 test ! -s conftest.err
9954 } && test -s conftest$ac_exeext &&
9955 $as_test_x conftest$ac_exeext; then
9956 ac_cv_lib_dl_dlopen=yes
9957else
9958 echo "$as_me: failed program was:" >&5
9959sed 's/^/| /' conftest.$ac_ext >&5
9960
9961 ac_cv_lib_dl_dlopen=no
9962fi
9963
9964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9965 conftest$ac_exeext conftest.$ac_ext
9966LIBS=$ac_check_lib_save_LIBS
9967fi
9968{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9969echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9970if test $ac_cv_lib_dl_dlopen = yes; then
9971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9972else
9973
9974 lt_cv_dlopen="dyld"
9975 lt_cv_dlopen_libs=
9976 lt_cv_dlopen_self=yes
9977
9978fi
9979
9980 ;;
9981
9982 *)
9983 { echo "$as_me:$LINENO: checking for shl_load" >&5
9984echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9985if test "${ac_cv_func_shl_load+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987else
9988 cat >conftest.$ac_ext <<_ACEOF
9989/* confdefs.h. */
9990_ACEOF
9991cat confdefs.h >>conftest.$ac_ext
9992cat >>conftest.$ac_ext <<_ACEOF
9993/* end confdefs.h. */
9994/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9996#define shl_load innocuous_shl_load
9997
9998/* System header to define __stub macros and hopefully few prototypes,
9999 which can conflict with char shl_load (); below.
10000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10001 <limits.h> exists even on freestanding compilers. */
10002
10003#ifdef __STDC__
10004# include <limits.h>
10005#else
10006# include <assert.h>
10007#endif
10008
10009#undef shl_load
10010
10011/* Override any GCC internal prototype to avoid an error.
10012 Use char because int might match the return type of a GCC
10013 builtin and then its argument prototype would still apply. */
10014#ifdef __cplusplus
10015extern "C"
10016#endif
10017char shl_load ();
10018/* The GNU C library defines this for functions which it implements
10019 to always fail with ENOSYS. Some functions are actually named
10020 something starting with __ and the normal name is an alias. */
10021#if defined __stub_shl_load || defined __stub___shl_load
10022choke me
10023#endif
10024
10025int
10026main ()
10027{
10028return shl_load ();
10029 ;
10030 return 0;
10031}
10032_ACEOF
10033rm -f conftest.$ac_objext conftest$ac_exeext
10034if { (ac_try="$ac_link"
10035case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10038esac
10039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_link") 2>conftest.er1
10041 ac_status=$?
10042 grep -v '^ *+' conftest.er1 >conftest.err
10043 rm -f conftest.er1
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } && {
10047 test -z "$ac_c_werror_flag" ||
10048 test ! -s conftest.err
10049 } && test -s conftest$ac_exeext &&
10050 $as_test_x conftest$ac_exeext; then
10051 ac_cv_func_shl_load=yes
10052else
10053 echo "$as_me: failed program was:" >&5
10054sed 's/^/| /' conftest.$ac_ext >&5
10055
10056 ac_cv_func_shl_load=no
10057fi
10058
10059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10060 conftest$ac_exeext conftest.$ac_ext
10061fi
10062{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10063echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10064if test $ac_cv_func_shl_load = yes; then
10065 lt_cv_dlopen="shl_load"
10066else
10067 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10068echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10069if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071else
10072 ac_check_lib_save_LIBS=$LIBS
10073LIBS="-ldld $LIBS"
10074cat >conftest.$ac_ext <<_ACEOF
10075/* confdefs.h. */
10076_ACEOF
10077cat confdefs.h >>conftest.$ac_ext
10078cat >>conftest.$ac_ext <<_ACEOF
10079/* end confdefs.h. */
10080
10081/* Override any GCC internal prototype to avoid an error.
10082 Use char because int might match the return type of a GCC
10083 builtin and then its argument prototype would still apply. */
10084#ifdef __cplusplus
10085extern "C"
10086#endif
10087char shl_load ();
10088int
10089main ()
10090{
10091return shl_load ();
10092 ;
10093 return 0;
10094}
10095_ACEOF
10096rm -f conftest.$ac_objext conftest$ac_exeext
10097if { (ac_try="$ac_link"
10098case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10101esac
10102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_link") 2>conftest.er1
10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest$ac_exeext &&
10113 $as_test_x conftest$ac_exeext; then
10114 ac_cv_lib_dld_shl_load=yes
10115else
10116 echo "$as_me: failed program was:" >&5
10117sed 's/^/| /' conftest.$ac_ext >&5
10118
10119 ac_cv_lib_dld_shl_load=no
10120fi
10121
10122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10123 conftest$ac_exeext conftest.$ac_ext
10124LIBS=$ac_check_lib_save_LIBS
10125fi
10126{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10127echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10128if test $ac_cv_lib_dld_shl_load = yes; then
9554 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10129 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9555else
9556 { echo "$as_me:$LINENO: checking for dlopen" >&5
9557echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9558if test "${ac_cv_func_dlopen+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9560else
9561 cat >conftest.$ac_ext <<_ACEOF
9562/* confdefs.h. */
9563_ACEOF
9564cat confdefs.h >>conftest.$ac_ext
9565cat >>conftest.$ac_ext <<_ACEOF
9566/* end confdefs.h. */
9567/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9569#define dlopen innocuous_dlopen
9570
9571/* System header to define __stub macros and hopefully few prototypes,
9572 which can conflict with char dlopen (); below.
9573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9574 <limits.h> exists even on freestanding compilers. */
9575
9576#ifdef __STDC__
9577# include <limits.h>
9578#else
9579# include <assert.h>
9580#endif
9581
9582#undef dlopen
9583
9584/* Override any GCC internal prototype to avoid an error.
9585 Use char because int might match the return type of a GCC
9586 builtin and then its argument prototype would still apply. */
9587#ifdef __cplusplus
9588extern "C"
9589#endif
9590char dlopen ();
9591/* The GNU C library defines this for functions which it implements
9592 to always fail with ENOSYS. Some functions are actually named
9593 something starting with __ and the normal name is an alias. */
9594#if defined __stub_dlopen || defined __stub___dlopen
9595choke me
9596#endif
9597
9598int
9599main ()
9600{
9601return dlopen ();
9602 ;
9603 return 0;
9604}
9605_ACEOF
9606rm -f conftest.$ac_objext conftest$ac_exeext
9607if { (ac_try="$ac_link"
9608case "(($ac_try" in
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9611esac
9612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_link") 2>conftest.er1
9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } && {
9620 test -z "$ac_c_werror_flag" ||
9621 test ! -s conftest.err
9622 } && test -s conftest$ac_exeext &&
9623 $as_test_x conftest$ac_exeext; then
9624 ac_cv_func_dlopen=yes
9625else
9626 echo "$as_me: failed program was:" >&5
9627sed 's/^/| /' conftest.$ac_ext >&5
9628
9629 ac_cv_func_dlopen=no
9630fi
9631
9632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9633 conftest$ac_exeext conftest.$ac_ext
9634fi
9635{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9636echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9637if test $ac_cv_func_dlopen = yes; then
9638 lt_cv_dlopen="dlopen"
9639else
9640 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9641echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9642if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644else
9645 ac_check_lib_save_LIBS=$LIBS
9646LIBS="-ldl $LIBS"
9647cat >conftest.$ac_ext <<_ACEOF
9648/* confdefs.h. */
9649_ACEOF
9650cat confdefs.h >>conftest.$ac_ext
9651cat >>conftest.$ac_ext <<_ACEOF
9652/* end confdefs.h. */
9653
9654/* Override any GCC internal prototype to avoid an error.
9655 Use char because int might match the return type of a GCC
9656 builtin and then its argument prototype would still apply. */
9657#ifdef __cplusplus
9658extern "C"
9659#endif
9660char dlopen ();
9661int
9662main ()
9663{
9664return dlopen ();
9665 ;
9666 return 0;
9667}
9668_ACEOF
9669rm -f conftest.$ac_objext conftest$ac_exeext
9670if { (ac_try="$ac_link"
9671case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9674esac
9675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_link") 2>conftest.er1
9677 ac_status=$?
9678 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && {
9683 test -z "$ac_c_werror_flag" ||
9684 test ! -s conftest.err
9685 } && test -s conftest$ac_exeext &&
9686 $as_test_x conftest$ac_exeext; then
9687 ac_cv_lib_dl_dlopen=yes
9688else
9689 echo "$as_me: failed program was:" >&5
9690sed 's/^/| /' conftest.$ac_ext >&5
9691
9692 ac_cv_lib_dl_dlopen=no
9693fi
9694
9695rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9696 conftest$ac_exeext conftest.$ac_ext
9697LIBS=$ac_check_lib_save_LIBS
9698fi
9699{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9700echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9701if test $ac_cv_lib_dl_dlopen = yes; then
9702 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9703else
9704 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9705echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9706if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9708else
9709 ac_check_lib_save_LIBS=$LIBS
9710LIBS="-lsvld $LIBS"
9711cat >conftest.$ac_ext <<_ACEOF
9712/* confdefs.h. */
9713_ACEOF
9714cat confdefs.h >>conftest.$ac_ext
9715cat >>conftest.$ac_ext <<_ACEOF
9716/* end confdefs.h. */
9717
9718/* Override any GCC internal prototype to avoid an error.
9719 Use char because int might match the return type of a GCC
9720 builtin and then its argument prototype would still apply. */
9721#ifdef __cplusplus
9722extern "C"
9723#endif
9724char dlopen ();
9725int
9726main ()
9727{
9728return dlopen ();
9729 ;
9730 return 0;
9731}
9732_ACEOF
9733rm -f conftest.$ac_objext conftest$ac_exeext
9734if { (ac_try="$ac_link"
9735case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738esac
9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_link") 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && {
9747 test -z "$ac_c_werror_flag" ||
9748 test ! -s conftest.err
9749 } && test -s conftest$ac_exeext &&
9750 $as_test_x conftest$ac_exeext; then
9751 ac_cv_lib_svld_dlopen=yes
9752else
9753 echo "$as_me: failed program was:" >&5
9754sed 's/^/| /' conftest.$ac_ext >&5
9755
9756 ac_cv_lib_svld_dlopen=no
9757fi
9758
9759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9760 conftest$ac_exeext conftest.$ac_ext
9761LIBS=$ac_check_lib_save_LIBS
9762fi
9763{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9764echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9765if test $ac_cv_lib_svld_dlopen = yes; then
9766 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9767else
9768 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9769echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9770if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
9773 ac_check_lib_save_LIBS=$LIBS
9774LIBS="-ldld $LIBS"
9775cat >conftest.$ac_ext <<_ACEOF
9776/* confdefs.h. */
9777_ACEOF
9778cat confdefs.h >>conftest.$ac_ext
9779cat >>conftest.$ac_ext <<_ACEOF
9780/* end confdefs.h. */
9781
9782/* Override any GCC internal prototype to avoid an error.
9783 Use char because int might match the return type of a GCC
9784 builtin and then its argument prototype would still apply. */
9785#ifdef __cplusplus
9786extern "C"
9787#endif
9788char dld_link ();
9789int
9790main ()
9791{
9792return dld_link ();
9793 ;
9794 return 0;
9795}
9796_ACEOF
9797rm -f conftest.$ac_objext conftest$ac_exeext
9798if { (ac_try="$ac_link"
9799case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9802esac
9803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_link") 2>conftest.er1
9805 ac_status=$?
9806 grep -v '^ *+' conftest.er1 >conftest.err
9807 rm -f conftest.er1
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } && {
9811 test -z "$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 } && test -s conftest$ac_exeext &&
9814 $as_test_x conftest$ac_exeext; then
9815 ac_cv_lib_dld_dld_link=yes
9816else
9817 echo "$as_me: failed program was:" >&5
9818sed 's/^/| /' conftest.$ac_ext >&5
9819
9820 ac_cv_lib_dld_dld_link=no
9821fi
9822
9823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9824 conftest$ac_exeext conftest.$ac_ext
9825LIBS=$ac_check_lib_save_LIBS
9826fi
9827{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9828echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9829if test $ac_cv_lib_dld_dld_link = yes; then
10130else
10131 { echo "$as_me:$LINENO: checking for dlopen" >&5
10132echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10133if test "${ac_cv_func_dlopen+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135else
10136 cat >conftest.$ac_ext <<_ACEOF
10137/* confdefs.h. */
10138_ACEOF
10139cat confdefs.h >>conftest.$ac_ext
10140cat >>conftest.$ac_ext <<_ACEOF
10141/* end confdefs.h. */
10142/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10144#define dlopen innocuous_dlopen
10145
10146/* System header to define __stub macros and hopefully few prototypes,
10147 which can conflict with char dlopen (); below.
10148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10149 <limits.h> exists even on freestanding compilers. */
10150
10151#ifdef __STDC__
10152# include <limits.h>
10153#else
10154# include <assert.h>
10155#endif
10156
10157#undef dlopen
10158
10159/* Override any GCC internal prototype to avoid an error.
10160 Use char because int might match the return type of a GCC
10161 builtin and then its argument prototype would still apply. */
10162#ifdef __cplusplus
10163extern "C"
10164#endif
10165char dlopen ();
10166/* The GNU C library defines this for functions which it implements
10167 to always fail with ENOSYS. Some functions are actually named
10168 something starting with __ and the normal name is an alias. */
10169#if defined __stub_dlopen || defined __stub___dlopen
10170choke me
10171#endif
10172
10173int
10174main ()
10175{
10176return dlopen ();
10177 ;
10178 return 0;
10179}
10180_ACEOF
10181rm -f conftest.$ac_objext conftest$ac_exeext
10182if { (ac_try="$ac_link"
10183case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10186esac
10187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_link") 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } && {
10195 test -z "$ac_c_werror_flag" ||
10196 test ! -s conftest.err
10197 } && test -s conftest$ac_exeext &&
10198 $as_test_x conftest$ac_exeext; then
10199 ac_cv_func_dlopen=yes
10200else
10201 echo "$as_me: failed program was:" >&5
10202sed 's/^/| /' conftest.$ac_ext >&5
10203
10204 ac_cv_func_dlopen=no
10205fi
10206
10207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10208 conftest$ac_exeext conftest.$ac_ext
10209fi
10210{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10211echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10212if test $ac_cv_func_dlopen = yes; then
10213 lt_cv_dlopen="dlopen"
10214else
10215 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10216echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10217if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10219else
10220 ac_check_lib_save_LIBS=$LIBS
10221LIBS="-ldl $LIBS"
10222cat >conftest.$ac_ext <<_ACEOF
10223/* confdefs.h. */
10224_ACEOF
10225cat confdefs.h >>conftest.$ac_ext
10226cat >>conftest.$ac_ext <<_ACEOF
10227/* end confdefs.h. */
10228
10229/* Override any GCC internal prototype to avoid an error.
10230 Use char because int might match the return type of a GCC
10231 builtin and then its argument prototype would still apply. */
10232#ifdef __cplusplus
10233extern "C"
10234#endif
10235char dlopen ();
10236int
10237main ()
10238{
10239return dlopen ();
10240 ;
10241 return 0;
10242}
10243_ACEOF
10244rm -f conftest.$ac_objext conftest$ac_exeext
10245if { (ac_try="$ac_link"
10246case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10249esac
10250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_link") 2>conftest.er1
10252 ac_status=$?
10253 grep -v '^ *+' conftest.er1 >conftest.err
10254 rm -f conftest.er1
10255 cat conftest.err >&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } && {
10258 test -z "$ac_c_werror_flag" ||
10259 test ! -s conftest.err
10260 } && test -s conftest$ac_exeext &&
10261 $as_test_x conftest$ac_exeext; then
10262 ac_cv_lib_dl_dlopen=yes
10263else
10264 echo "$as_me: failed program was:" >&5
10265sed 's/^/| /' conftest.$ac_ext >&5
10266
10267 ac_cv_lib_dl_dlopen=no
10268fi
10269
10270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10271 conftest$ac_exeext conftest.$ac_ext
10272LIBS=$ac_check_lib_save_LIBS
10273fi
10274{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10275echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10276if test $ac_cv_lib_dl_dlopen = yes; then
10277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10278else
10279 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10280echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10281if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10283else
10284 ac_check_lib_save_LIBS=$LIBS
10285LIBS="-lsvld $LIBS"
10286cat >conftest.$ac_ext <<_ACEOF
10287/* confdefs.h. */
10288_ACEOF
10289cat confdefs.h >>conftest.$ac_ext
10290cat >>conftest.$ac_ext <<_ACEOF
10291/* end confdefs.h. */
10292
10293/* Override any GCC internal prototype to avoid an error.
10294 Use char because int might match the return type of a GCC
10295 builtin and then its argument prototype would still apply. */
10296#ifdef __cplusplus
10297extern "C"
10298#endif
10299char dlopen ();
10300int
10301main ()
10302{
10303return dlopen ();
10304 ;
10305 return 0;
10306}
10307_ACEOF
10308rm -f conftest.$ac_objext conftest$ac_exeext
10309if { (ac_try="$ac_link"
10310case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10313esac
10314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_link") 2>conftest.er1
10316 ac_status=$?
10317 grep -v '^ *+' conftest.er1 >conftest.err
10318 rm -f conftest.er1
10319 cat conftest.err >&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } && {
10322 test -z "$ac_c_werror_flag" ||
10323 test ! -s conftest.err
10324 } && test -s conftest$ac_exeext &&
10325 $as_test_x conftest$ac_exeext; then
10326 ac_cv_lib_svld_dlopen=yes
10327else
10328 echo "$as_me: failed program was:" >&5
10329sed 's/^/| /' conftest.$ac_ext >&5
10330
10331 ac_cv_lib_svld_dlopen=no
10332fi
10333
10334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10335 conftest$ac_exeext conftest.$ac_ext
10336LIBS=$ac_check_lib_save_LIBS
10337fi
10338{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10339echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10340if test $ac_cv_lib_svld_dlopen = yes; then
10341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10342else
10343 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10344echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10345if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10347else
10348 ac_check_lib_save_LIBS=$LIBS
10349LIBS="-ldld $LIBS"
10350cat >conftest.$ac_ext <<_ACEOF
10351/* confdefs.h. */
10352_ACEOF
10353cat confdefs.h >>conftest.$ac_ext
10354cat >>conftest.$ac_ext <<_ACEOF
10355/* end confdefs.h. */
10356
10357/* Override any GCC internal prototype to avoid an error.
10358 Use char because int might match the return type of a GCC
10359 builtin and then its argument prototype would still apply. */
10360#ifdef __cplusplus
10361extern "C"
10362#endif
10363char dld_link ();
10364int
10365main ()
10366{
10367return dld_link ();
10368 ;
10369 return 0;
10370}
10371_ACEOF
10372rm -f conftest.$ac_objext conftest$ac_exeext
10373if { (ac_try="$ac_link"
10374case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10377esac
10378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_link") 2>conftest.er1
10380 ac_status=$?
10381 grep -v '^ *+' conftest.er1 >conftest.err
10382 rm -f conftest.er1
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } && {
10386 test -z "$ac_c_werror_flag" ||
10387 test ! -s conftest.err
10388 } && test -s conftest$ac_exeext &&
10389 $as_test_x conftest$ac_exeext; then
10390 ac_cv_lib_dld_dld_link=yes
10391else
10392 echo "$as_me: failed program was:" >&5
10393sed 's/^/| /' conftest.$ac_ext >&5
10394
10395 ac_cv_lib_dld_dld_link=no
10396fi
10397
10398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10399 conftest$ac_exeext conftest.$ac_ext
10400LIBS=$ac_check_lib_save_LIBS
10401fi
10402{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10403echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10404if test $ac_cv_lib_dld_dld_link = yes; then
9830 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10405 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9831fi
9832
9833
9834fi
9835
9836
9837fi
9838
9839
9840fi
9841
9842
9843fi
9844
9845
9846fi
9847
9848 ;;
9849 esac
9850
9851 if test "x$lt_cv_dlopen" != xno; then
9852 enable_dlopen=yes
9853 else
9854 enable_dlopen=no
9855 fi
9856
9857 case $lt_cv_dlopen in
9858 dlopen)
9859 save_CPPFLAGS="$CPPFLAGS"
9860 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9861
9862 save_LDFLAGS="$LDFLAGS"
10406fi
10407
10408
10409fi
10410
10411
10412fi
10413
10414
10415fi
10416
10417
10418fi
10419
10420
10421fi
10422
10423 ;;
10424 esac
10425
10426 if test "x$lt_cv_dlopen" != xno; then
10427 enable_dlopen=yes
10428 else
10429 enable_dlopen=no
10430 fi
10431
10432 case $lt_cv_dlopen in
10433 dlopen)
10434 save_CPPFLAGS="$CPPFLAGS"
10435 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10436
10437 save_LDFLAGS="$LDFLAGS"
9863 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10438 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9864
9865 save_LIBS="$LIBS"
9866 LIBS="$lt_cv_dlopen_libs $LIBS"
9867
9868 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9869echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9870if test "${lt_cv_dlopen_self+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9872else
9873 if test "$cross_compiling" = yes; then :
9874 lt_cv_dlopen_self=cross
9875else
9876 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9877 lt_status=$lt_dlunknown
9878 cat > conftest.$ac_ext <<EOF
10439
10440 save_LIBS="$LIBS"
10441 LIBS="$lt_cv_dlopen_libs $LIBS"
10442
10443 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10444echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10445if test "${lt_cv_dlopen_self+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447else
10448 if test "$cross_compiling" = yes; then :
10449 lt_cv_dlopen_self=cross
10450else
10451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10452 lt_status=$lt_dlunknown
10453 cat > conftest.$ac_ext <<EOF
9879#line 9879 "configure"
10454#line 10454 "configure"
9880#include "confdefs.h"
9881
9882#if HAVE_DLFCN_H
9883#include <dlfcn.h>
9884#endif
9885
9886#include <stdio.h>
9887
9888#ifdef RTLD_GLOBAL
9889# define LT_DLGLOBAL RTLD_GLOBAL
9890#else
9891# ifdef DL_GLOBAL
9892# define LT_DLGLOBAL DL_GLOBAL
9893# else
9894# define LT_DLGLOBAL 0
9895# endif
9896#endif
9897
9898/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9899 find out it does not work in some platform. */
9900#ifndef LT_DLLAZY_OR_NOW
9901# ifdef RTLD_LAZY
9902# define LT_DLLAZY_OR_NOW RTLD_LAZY
9903# else
9904# ifdef DL_LAZY
9905# define LT_DLLAZY_OR_NOW DL_LAZY
9906# else
9907# ifdef RTLD_NOW
9908# define LT_DLLAZY_OR_NOW RTLD_NOW
9909# else
9910# ifdef DL_NOW
9911# define LT_DLLAZY_OR_NOW DL_NOW
9912# else
9913# define LT_DLLAZY_OR_NOW 0
9914# endif
9915# endif
9916# endif
9917# endif
9918#endif
9919
9920#ifdef __cplusplus
9921extern "C" void exit (int);
9922#endif
9923
9924void fnord() { int i=42;}
9925int main ()
9926{
9927 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9928 int status = $lt_dlunknown;
9929
9930 if (self)
9931 {
9932 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9933 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9934 /* dlclose (self); */
9935 }
10455#include "confdefs.h"
10456
10457#if HAVE_DLFCN_H
10458#include <dlfcn.h>
10459#endif
10460
10461#include <stdio.h>
10462
10463#ifdef RTLD_GLOBAL
10464# define LT_DLGLOBAL RTLD_GLOBAL
10465#else
10466# ifdef DL_GLOBAL
10467# define LT_DLGLOBAL DL_GLOBAL
10468# else
10469# define LT_DLGLOBAL 0
10470# endif
10471#endif
10472
10473/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10474 find out it does not work in some platform. */
10475#ifndef LT_DLLAZY_OR_NOW
10476# ifdef RTLD_LAZY
10477# define LT_DLLAZY_OR_NOW RTLD_LAZY
10478# else
10479# ifdef DL_LAZY
10480# define LT_DLLAZY_OR_NOW DL_LAZY
10481# else
10482# ifdef RTLD_NOW
10483# define LT_DLLAZY_OR_NOW RTLD_NOW
10484# else
10485# ifdef DL_NOW
10486# define LT_DLLAZY_OR_NOW DL_NOW
10487# else
10488# define LT_DLLAZY_OR_NOW 0
10489# endif
10490# endif
10491# endif
10492# endif
10493#endif
10494
10495#ifdef __cplusplus
10496extern "C" void exit (int);
10497#endif
10498
10499void fnord() { int i=42;}
10500int main ()
10501{
10502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10503 int status = $lt_dlunknown;
10504
10505 if (self)
10506 {
10507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10508 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10509 /* dlclose (self); */
10510 }
10511 else
10512 puts (dlerror ());
9936
9937 exit (status);
9938}
9939EOF
9940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9941 (eval $ac_link) 2>&5
9942 ac_status=$?
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10513
10514 exit (status);
10515}
10516EOF
10517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518 (eval $ac_link) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9945 (./conftest; exit; ) 2>/dev/null
10522 (./conftest; exit; ) >&5 2>/dev/null
9946 lt_status=$?
9947 case x$lt_status in
9948 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9949 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10523 lt_status=$?
10524 case x$lt_status in
10525 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10526 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9950 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10527 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9951 esac
9952 else :
9953 # compilation failed
9954 lt_cv_dlopen_self=no
9955 fi
9956fi
9957rm -fr conftest*
9958
9959
9960fi
9961{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9962echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9963
9964 if test "x$lt_cv_dlopen_self" = xyes; then
10528 esac
10529 else :
10530 # compilation failed
10531 lt_cv_dlopen_self=no
10532 fi
10533fi
10534rm -fr conftest*
10535
10536
10537fi
10538{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10539echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10540
10541 if test "x$lt_cv_dlopen_self" = xyes; then
9965 LDFLAGS="$LDFLAGS $link_static_flag"
10542 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9966 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9967echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9968if test "${lt_cv_dlopen_self_static+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9970else
9971 if test "$cross_compiling" = yes; then :
9972 lt_cv_dlopen_self_static=cross
9973else
9974 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9975 lt_status=$lt_dlunknown
9976 cat > conftest.$ac_ext <<EOF
10543 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10544echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10545if test "${lt_cv_dlopen_self_static+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547else
10548 if test "$cross_compiling" = yes; then :
10549 lt_cv_dlopen_self_static=cross
10550else
10551 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10552 lt_status=$lt_dlunknown
10553 cat > conftest.$ac_ext <<EOF
9977#line 9977 "configure"
10554#line 10554 "configure"
9978#include "confdefs.h"
9979
9980#if HAVE_DLFCN_H
9981#include <dlfcn.h>
9982#endif
9983
9984#include <stdio.h>
9985
9986#ifdef RTLD_GLOBAL
9987# define LT_DLGLOBAL RTLD_GLOBAL
9988#else
9989# ifdef DL_GLOBAL
9990# define LT_DLGLOBAL DL_GLOBAL
9991# else
9992# define LT_DLGLOBAL 0
9993# endif
9994#endif
9995
9996/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9997 find out it does not work in some platform. */
9998#ifndef LT_DLLAZY_OR_NOW
9999# ifdef RTLD_LAZY
10000# define LT_DLLAZY_OR_NOW RTLD_LAZY
10001# else
10002# ifdef DL_LAZY
10003# define LT_DLLAZY_OR_NOW DL_LAZY
10004# else
10005# ifdef RTLD_NOW
10006# define LT_DLLAZY_OR_NOW RTLD_NOW
10007# else
10008# ifdef DL_NOW
10009# define LT_DLLAZY_OR_NOW DL_NOW
10010# else
10011# define LT_DLLAZY_OR_NOW 0
10012# endif
10013# endif
10014# endif
10015# endif
10016#endif
10017
10018#ifdef __cplusplus
10019extern "C" void exit (int);
10020#endif
10021
10022void fnord() { int i=42;}
10023int main ()
10024{
10025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10026 int status = $lt_dlunknown;
10027
10028 if (self)
10029 {
10030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10031 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10032 /* dlclose (self); */
10033 }
10555#include "confdefs.h"
10556
10557#if HAVE_DLFCN_H
10558#include <dlfcn.h>
10559#endif
10560
10561#include <stdio.h>
10562
10563#ifdef RTLD_GLOBAL
10564# define LT_DLGLOBAL RTLD_GLOBAL
10565#else
10566# ifdef DL_GLOBAL
10567# define LT_DLGLOBAL DL_GLOBAL
10568# else
10569# define LT_DLGLOBAL 0
10570# endif
10571#endif
10572
10573/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10574 find out it does not work in some platform. */
10575#ifndef LT_DLLAZY_OR_NOW
10576# ifdef RTLD_LAZY
10577# define LT_DLLAZY_OR_NOW RTLD_LAZY
10578# else
10579# ifdef DL_LAZY
10580# define LT_DLLAZY_OR_NOW DL_LAZY
10581# else
10582# ifdef RTLD_NOW
10583# define LT_DLLAZY_OR_NOW RTLD_NOW
10584# else
10585# ifdef DL_NOW
10586# define LT_DLLAZY_OR_NOW DL_NOW
10587# else
10588# define LT_DLLAZY_OR_NOW 0
10589# endif
10590# endif
10591# endif
10592# endif
10593#endif
10594
10595#ifdef __cplusplus
10596extern "C" void exit (int);
10597#endif
10598
10599void fnord() { int i=42;}
10600int main ()
10601{
10602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10603 int status = $lt_dlunknown;
10604
10605 if (self)
10606 {
10607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10608 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10609 /* dlclose (self); */
10610 }
10611 else
10612 puts (dlerror ());
10034
10035 exit (status);
10036}
10037EOF
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039 (eval $ac_link) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10613
10614 exit (status);
10615}
10616EOF
10617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10618 (eval $ac_link) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10043 (./conftest; exit; ) 2>/dev/null
10622 (./conftest; exit; ) >&5 2>/dev/null
10044 lt_status=$?
10045 case x$lt_status in
10046 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10047 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10623 lt_status=$?
10624 case x$lt_status in
10625 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10626 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10048 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10627 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10049 esac
10050 else :
10051 # compilation failed
10052 lt_cv_dlopen_self_static=no
10053 fi
10054fi
10055rm -fr conftest*
10056
10057
10058fi
10059{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10060echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10061 fi
10062
10063 CPPFLAGS="$save_CPPFLAGS"
10064 LDFLAGS="$save_LDFLAGS"
10065 LIBS="$save_LIBS"
10066 ;;
10067 esac
10068
10069 case $lt_cv_dlopen_self in
10070 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10071 *) enable_dlopen_self=unknown ;;
10072 esac
10073
10074 case $lt_cv_dlopen_self_static in
10075 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10076 *) enable_dlopen_self_static=unknown ;;
10077 esac
10078fi
10079
10080
10628 esac
10629 else :
10630 # compilation failed
10631 lt_cv_dlopen_self_static=no
10632 fi
10633fi
10634rm -fr conftest*
10635
10636
10637fi
10638{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10639echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10640 fi
10641
10642 CPPFLAGS="$save_CPPFLAGS"
10643 LDFLAGS="$save_LDFLAGS"
10644 LIBS="$save_LIBS"
10645 ;;
10646 esac
10647
10648 case $lt_cv_dlopen_self in
10649 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10650 *) enable_dlopen_self=unknown ;;
10651 esac
10652
10653 case $lt_cv_dlopen_self_static in
10654 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10655 *) enable_dlopen_self_static=unknown ;;
10656 esac
10657fi
10658
10659
10081# Report which librarie types wil actually be built
10660# Report which library types will actually be built
10082{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10083echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10084{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10085echo "${ECHO_T}$can_build_shared" >&6; }
10086
10087{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10088echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10089test "$can_build_shared" = "no" && enable_shared=no
10090
10091# On AIX, shared libraries and static libraries use the same namespace, and
10092# are all built from PIC.
10661{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10662echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10663{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10664echo "${ECHO_T}$can_build_shared" >&6; }
10665
10666{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10667echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10668test "$can_build_shared" = "no" && enable_shared=no
10669
10670# On AIX, shared libraries and static libraries use the same namespace, and
10671# are all built from PIC.
10093case "$host_os" in
10672case $host_os in
10094aix3*)
10095 test "$enable_shared" = yes && enable_static=no
10096 if test -n "$RANLIB"; then
10097 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10098 postinstall_cmds='$RANLIB $lib'
10099 fi
10100 ;;
10101
10673aix3*)
10674 test "$enable_shared" = yes && enable_static=no
10675 if test -n "$RANLIB"; then
10676 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10677 postinstall_cmds='$RANLIB $lib'
10678 fi
10679 ;;
10680
10102aix4* | aix5*)
10681aix[4-9]*)
10103 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10104 test "$enable_shared" = yes && enable_static=no
10105 fi
10106 ;;
10107esac
10108{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10109echo "${ECHO_T}$enable_shared" >&6; }
10110
10111{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10112echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10113# Make sure either enable_shared or enable_static is yes.
10114test "$enable_shared" = yes || enable_static=yes
10115{ echo "$as_me:$LINENO: result: $enable_static" >&5
10116echo "${ECHO_T}$enable_static" >&6; }
10117
10118# The else clause should only fire when bootstrapping the
10119# libtool distribution, otherwise you forgot to ship ltmain.sh
10120# with your package, and you will get complaints that there are
10121# no rules to generate ltmain.sh.
10122if test -f "$ltmain"; then
10123 # See if we are running on zsh, and set the options which allow our commands through
10124 # without removal of \ escapes.
10125 if test -n "${ZSH_VERSION+set}" ; then
10126 setopt NO_GLOB_SUBST
10127 fi
10128 # Now quote all the things that may contain metacharacters while being
10129 # careful not to overquote the AC_SUBSTed values. We take copies of the
10130 # variables and quote the copies for generation of the libtool script.
10682 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10683 test "$enable_shared" = yes && enable_static=no
10684 fi
10685 ;;
10686esac
10687{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10688echo "${ECHO_T}$enable_shared" >&6; }
10689
10690{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10691echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10692# Make sure either enable_shared or enable_static is yes.
10693test "$enable_shared" = yes || enable_static=yes
10694{ echo "$as_me:$LINENO: result: $enable_static" >&5
10695echo "${ECHO_T}$enable_static" >&6; }
10696
10697# The else clause should only fire when bootstrapping the
10698# libtool distribution, otherwise you forgot to ship ltmain.sh
10699# with your package, and you will get complaints that there are
10700# no rules to generate ltmain.sh.
10701if test -f "$ltmain"; then
10702 # See if we are running on zsh, and set the options which allow our commands through
10703 # without removal of \ escapes.
10704 if test -n "${ZSH_VERSION+set}" ; then
10705 setopt NO_GLOB_SUBST
10706 fi
10707 # Now quote all the things that may contain metacharacters while being
10708 # careful not to overquote the AC_SUBSTed values. We take copies of the
10709 # variables and quote the copies for generation of the libtool script.
10131 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10710 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10132 SED SHELL STRIP \
10133 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10134 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10135 deplibs_check_method reload_flag reload_cmds need_locks \
10136 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10137 lt_cv_sys_global_symbol_to_c_name_address \
10138 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10139 old_postinstall_cmds old_postuninstall_cmds \
10140 compiler \
10141 CC \
10142 LD \
10143 lt_prog_compiler_wl \
10144 lt_prog_compiler_pic \
10145 lt_prog_compiler_static \
10146 lt_prog_compiler_no_builtin_flag \
10147 export_dynamic_flag_spec \
10148 thread_safe_flag_spec \
10149 whole_archive_flag_spec \
10150 enable_shared_with_static_runtimes \
10151 old_archive_cmds \
10152 old_archive_from_new_cmds \
10153 predep_objects \
10154 postdep_objects \
10155 predeps \
10156 postdeps \
10157 compiler_lib_search_path \
10711 SED SHELL STRIP \
10712 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10713 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10714 deplibs_check_method reload_flag reload_cmds need_locks \
10715 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10716 lt_cv_sys_global_symbol_to_c_name_address \
10717 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10718 old_postinstall_cmds old_postuninstall_cmds \
10719 compiler \
10720 CC \
10721 LD \
10722 lt_prog_compiler_wl \
10723 lt_prog_compiler_pic \
10724 lt_prog_compiler_static \
10725 lt_prog_compiler_no_builtin_flag \
10726 export_dynamic_flag_spec \
10727 thread_safe_flag_spec \
10728 whole_archive_flag_spec \
10729 enable_shared_with_static_runtimes \
10730 old_archive_cmds \
10731 old_archive_from_new_cmds \
10732 predep_objects \
10733 postdep_objects \
10734 predeps \
10735 postdeps \
10736 compiler_lib_search_path \
10737 compiler_lib_search_dirs \
10158 archive_cmds \
10159 archive_expsym_cmds \
10160 postinstall_cmds \
10161 postuninstall_cmds \
10162 old_archive_from_expsyms_cmds \
10163 allow_undefined_flag \
10164 no_undefined_flag \
10165 export_symbols_cmds \
10166 hardcode_libdir_flag_spec \
10167 hardcode_libdir_flag_spec_ld \
10168 hardcode_libdir_separator \
10169 hardcode_automatic \
10170 module_cmds \
10171 module_expsym_cmds \
10172 lt_cv_prog_compiler_c_o \
10738 archive_cmds \
10739 archive_expsym_cmds \
10740 postinstall_cmds \
10741 postuninstall_cmds \
10742 old_archive_from_expsyms_cmds \
10743 allow_undefined_flag \
10744 no_undefined_flag \
10745 export_symbols_cmds \
10746 hardcode_libdir_flag_spec \
10747 hardcode_libdir_flag_spec_ld \
10748 hardcode_libdir_separator \
10749 hardcode_automatic \
10750 module_cmds \
10751 module_expsym_cmds \
10752 lt_cv_prog_compiler_c_o \
10753 fix_srcfile_path \
10173 exclude_expsyms \
10174 include_expsyms; do
10175
10176 case $var in
10177 old_archive_cmds | \
10178 old_archive_from_new_cmds | \
10179 archive_cmds | \
10180 archive_expsym_cmds | \
10181 module_cmds | \
10182 module_expsym_cmds | \
10183 old_archive_from_expsyms_cmds | \
10184 export_symbols_cmds | \
10185 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10186 postinstall_cmds | postuninstall_cmds | \
10187 old_postinstall_cmds | old_postuninstall_cmds | \
10188 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10189 # Double-quote double-evaled strings.
10190 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10191 ;;
10192 *)
10193 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10194 ;;
10195 esac
10196 done
10197
10198 case $lt_echo in
10199 *'\$0 --fallback-echo"')
10200 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10201 ;;
10202 esac
10203
10204cfgfile="${ofile}T"
10205 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10206 $rm -f "$cfgfile"
10207 { echo "$as_me:$LINENO: creating $ofile" >&5
10208echo "$as_me: creating $ofile" >&6;}
10209
10210 cat <<__EOF__ >> "$cfgfile"
10211#! $SHELL
10212
10213# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10214# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10215# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10216#
10754 exclude_expsyms \
10755 include_expsyms; do
10756
10757 case $var in
10758 old_archive_cmds | \
10759 old_archive_from_new_cmds | \
10760 archive_cmds | \
10761 archive_expsym_cmds | \
10762 module_cmds | \
10763 module_expsym_cmds | \
10764 old_archive_from_expsyms_cmds | \
10765 export_symbols_cmds | \
10766 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10767 postinstall_cmds | postuninstall_cmds | \
10768 old_postinstall_cmds | old_postuninstall_cmds | \
10769 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10770 # Double-quote double-evaled strings.
10771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10772 ;;
10773 *)
10774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10775 ;;
10776 esac
10777 done
10778
10779 case $lt_echo in
10780 *'\$0 --fallback-echo"')
10781 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10782 ;;
10783 esac
10784
10785cfgfile="${ofile}T"
10786 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10787 $rm -f "$cfgfile"
10788 { echo "$as_me:$LINENO: creating $ofile" >&5
10789echo "$as_me: creating $ofile" >&6;}
10790
10791 cat <<__EOF__ >> "$cfgfile"
10792#! $SHELL
10793
10794# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10795# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10796# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10797#
10217# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10798# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10218# Free Software Foundation, Inc.
10219#
10220# This file is part of GNU Libtool:
10221# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10222#
10223# This program is free software; you can redistribute it and/or modify
10224# it under the terms of the GNU General Public License as published by
10225# the Free Software Foundation; either version 2 of the License, or
10226# (at your option) any later version.
10227#
10228# This program is distributed in the hope that it will be useful, but
10229# WITHOUT ANY WARRANTY; without even the implied warranty of
10230# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10231# General Public License for more details.
10232#
10233# You should have received a copy of the GNU General Public License
10234# along with this program; if not, write to the Free Software
10235# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10236#
10237# As a special exception to the GNU General Public License, if you
10238# distribute this file as part of a program that contains a
10239# configuration script generated by Autoconf, you may include it under
10240# the same distribution terms that you use for the rest of that program.
10241
10242# A sed program that does not truncate output.
10243SED=$lt_SED
10244
10245# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10246Xsed="$SED -e 1s/^X//"
10247
10248# The HP-UX ksh and POSIX shell print the target directory to stdout
10249# if CDPATH is set.
10250(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10251
10252# The names of the tagged configurations supported by this script.
10253available_tags=
10254
10255# ### BEGIN LIBTOOL CONFIG
10256
10257# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10258
10259# Shell to use when invoking shell scripts.
10260SHELL=$lt_SHELL
10261
10262# Whether or not to build shared libraries.
10263build_libtool_libs=$enable_shared
10264
10265# Whether or not to build static libraries.
10266build_old_libs=$enable_static
10267
10268# Whether or not to add -lc for building shared libraries.
10269build_libtool_need_lc=$archive_cmds_need_lc
10270
10271# Whether or not to disallow shared libs when runtime libs are static
10272allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10273
10274# Whether or not to optimize for fast installation.
10275fast_install=$enable_fast_install
10276
10277# The host system.
10278host_alias=$host_alias
10279host=$host
10280host_os=$host_os
10281
10282# The build system.
10283build_alias=$build_alias
10284build=$build
10285build_os=$build_os
10286
10287# An echo program that does not interpret backslashes.
10288echo=$lt_echo
10289
10290# The archiver.
10291AR=$lt_AR
10292AR_FLAGS=$lt_AR_FLAGS
10293
10294# A C compiler.
10295LTCC=$lt_LTCC
10296
10799# Free Software Foundation, Inc.
10800#
10801# This file is part of GNU Libtool:
10802# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10803#
10804# This program is free software; you can redistribute it and/or modify
10805# it under the terms of the GNU General Public License as published by
10806# the Free Software Foundation; either version 2 of the License, or
10807# (at your option) any later version.
10808#
10809# This program is distributed in the hope that it will be useful, but
10810# WITHOUT ANY WARRANTY; without even the implied warranty of
10811# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10812# General Public License for more details.
10813#
10814# You should have received a copy of the GNU General Public License
10815# along with this program; if not, write to the Free Software
10816# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10817#
10818# As a special exception to the GNU General Public License, if you
10819# distribute this file as part of a program that contains a
10820# configuration script generated by Autoconf, you may include it under
10821# the same distribution terms that you use for the rest of that program.
10822
10823# A sed program that does not truncate output.
10824SED=$lt_SED
10825
10826# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10827Xsed="$SED -e 1s/^X//"
10828
10829# The HP-UX ksh and POSIX shell print the target directory to stdout
10830# if CDPATH is set.
10831(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10832
10833# The names of the tagged configurations supported by this script.
10834available_tags=
10835
10836# ### BEGIN LIBTOOL CONFIG
10837
10838# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10839
10840# Shell to use when invoking shell scripts.
10841SHELL=$lt_SHELL
10842
10843# Whether or not to build shared libraries.
10844build_libtool_libs=$enable_shared
10845
10846# Whether or not to build static libraries.
10847build_old_libs=$enable_static
10848
10849# Whether or not to add -lc for building shared libraries.
10850build_libtool_need_lc=$archive_cmds_need_lc
10851
10852# Whether or not to disallow shared libs when runtime libs are static
10853allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10854
10855# Whether or not to optimize for fast installation.
10856fast_install=$enable_fast_install
10857
10858# The host system.
10859host_alias=$host_alias
10860host=$host
10861host_os=$host_os
10862
10863# The build system.
10864build_alias=$build_alias
10865build=$build
10866build_os=$build_os
10867
10868# An echo program that does not interpret backslashes.
10869echo=$lt_echo
10870
10871# The archiver.
10872AR=$lt_AR
10873AR_FLAGS=$lt_AR_FLAGS
10874
10875# A C compiler.
10876LTCC=$lt_LTCC
10877
10878# LTCC compiler flags.
10879LTCFLAGS=$lt_LTCFLAGS
10880
10297# A language-specific compiler.
10298CC=$lt_compiler
10299
10300# Is the compiler the GNU C compiler?
10301with_gcc=$GCC
10302
10303# An ERE matcher.
10304EGREP=$lt_EGREP
10305
10306# The linker used to build libraries.
10307LD=$lt_LD
10308
10309# Whether we need hard or soft links.
10310LN_S=$lt_LN_S
10311
10312# A BSD-compatible nm program.
10313NM=$lt_NM
10314
10315# A symbol stripping program
10316STRIP=$lt_STRIP
10317
10318# Used to examine libraries when file_magic_cmd begins "file"
10319MAGIC_CMD=$MAGIC_CMD
10320
10321# Used on cygwin: DLL creation program.
10322DLLTOOL="$DLLTOOL"
10323
10324# Used on cygwin: object dumper.
10325OBJDUMP="$OBJDUMP"
10326
10327# Used on cygwin: assembler.
10328AS="$AS"
10329
10330# The name of the directory that contains temporary libtool files.
10331objdir=$objdir
10332
10333# How to create reloadable object files.
10334reload_flag=$lt_reload_flag
10335reload_cmds=$lt_reload_cmds
10336
10337# How to pass a linker flag through the compiler.
10338wl=$lt_lt_prog_compiler_wl
10339
10340# Object file suffix (normally "o").
10341objext="$ac_objext"
10342
10343# Old archive suffix (normally "a").
10344libext="$libext"
10345
10346# Shared library suffix (normally ".so").
10347shrext_cmds='$shrext_cmds'
10348
10349# Executable file suffix (normally "").
10350exeext="$exeext"
10351
10352# Additional compiler flags for building library objects.
10353pic_flag=$lt_lt_prog_compiler_pic
10354pic_mode=$pic_mode
10355
10356# What is the maximum length of a command?
10357max_cmd_len=$lt_cv_sys_max_cmd_len
10358
10359# Does compiler simultaneously support -c and -o options?
10360compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10361
10362# Must we lock files when doing compilation?
10363need_locks=$lt_need_locks
10364
10365# Do we need the lib prefix for modules?
10366need_lib_prefix=$need_lib_prefix
10367
10368# Do we need a version for libraries?
10369need_version=$need_version
10370
10371# Whether dlopen is supported.
10372dlopen_support=$enable_dlopen
10373
10374# Whether dlopen of programs is supported.
10375dlopen_self=$enable_dlopen_self
10376
10377# Whether dlopen of statically linked programs is supported.
10378dlopen_self_static=$enable_dlopen_self_static
10379
10380# Compiler flag to prevent dynamic linking.
10381link_static_flag=$lt_lt_prog_compiler_static
10382
10383# Compiler flag to turn off builtin functions.
10384no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10385
10386# Compiler flag to allow reflexive dlopens.
10387export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10388
10389# Compiler flag to generate shared objects directly from archives.
10390whole_archive_flag_spec=$lt_whole_archive_flag_spec
10391
10392# Compiler flag to generate thread-safe objects.
10393thread_safe_flag_spec=$lt_thread_safe_flag_spec
10394
10395# Library versioning type.
10396version_type=$version_type
10397
10398# Format of library name prefix.
10399libname_spec=$lt_libname_spec
10400
10401# List of archive names. First name is the real one, the rest are links.
10402# The last name is the one that the linker finds with -lNAME.
10403library_names_spec=$lt_library_names_spec
10404
10405# The coded name of the library, if different from the real name.
10406soname_spec=$lt_soname_spec
10407
10408# Commands used to build and install an old-style archive.
10409RANLIB=$lt_RANLIB
10410old_archive_cmds=$lt_old_archive_cmds
10411old_postinstall_cmds=$lt_old_postinstall_cmds
10412old_postuninstall_cmds=$lt_old_postuninstall_cmds
10413
10414# Create an old-style archive from a shared archive.
10415old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10416
10417# Create a temporary old-style archive to link instead of a shared archive.
10418old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10419
10420# Commands used to build and install a shared archive.
10421archive_cmds=$lt_archive_cmds
10422archive_expsym_cmds=$lt_archive_expsym_cmds
10423postinstall_cmds=$lt_postinstall_cmds
10424postuninstall_cmds=$lt_postuninstall_cmds
10425
10426# Commands used to build a loadable module (assumed same as above if empty)
10427module_cmds=$lt_module_cmds
10428module_expsym_cmds=$lt_module_expsym_cmds
10429
10430# Commands to strip libraries.
10431old_striplib=$lt_old_striplib
10432striplib=$lt_striplib
10433
10434# Dependencies to place before the objects being linked to create a
10435# shared library.
10436predep_objects=$lt_predep_objects
10437
10438# Dependencies to place after the objects being linked to create a
10439# shared library.
10440postdep_objects=$lt_postdep_objects
10441
10442# Dependencies to place before the objects being linked to create a
10443# shared library.
10444predeps=$lt_predeps
10445
10446# Dependencies to place after the objects being linked to create a
10447# shared library.
10448postdeps=$lt_postdeps
10449
10881# A language-specific compiler.
10882CC=$lt_compiler
10883
10884# Is the compiler the GNU C compiler?
10885with_gcc=$GCC
10886
10887# An ERE matcher.
10888EGREP=$lt_EGREP
10889
10890# The linker used to build libraries.
10891LD=$lt_LD
10892
10893# Whether we need hard or soft links.
10894LN_S=$lt_LN_S
10895
10896# A BSD-compatible nm program.
10897NM=$lt_NM
10898
10899# A symbol stripping program
10900STRIP=$lt_STRIP
10901
10902# Used to examine libraries when file_magic_cmd begins "file"
10903MAGIC_CMD=$MAGIC_CMD
10904
10905# Used on cygwin: DLL creation program.
10906DLLTOOL="$DLLTOOL"
10907
10908# Used on cygwin: object dumper.
10909OBJDUMP="$OBJDUMP"
10910
10911# Used on cygwin: assembler.
10912AS="$AS"
10913
10914# The name of the directory that contains temporary libtool files.
10915objdir=$objdir
10916
10917# How to create reloadable object files.
10918reload_flag=$lt_reload_flag
10919reload_cmds=$lt_reload_cmds
10920
10921# How to pass a linker flag through the compiler.
10922wl=$lt_lt_prog_compiler_wl
10923
10924# Object file suffix (normally "o").
10925objext="$ac_objext"
10926
10927# Old archive suffix (normally "a").
10928libext="$libext"
10929
10930# Shared library suffix (normally ".so").
10931shrext_cmds='$shrext_cmds'
10932
10933# Executable file suffix (normally "").
10934exeext="$exeext"
10935
10936# Additional compiler flags for building library objects.
10937pic_flag=$lt_lt_prog_compiler_pic
10938pic_mode=$pic_mode
10939
10940# What is the maximum length of a command?
10941max_cmd_len=$lt_cv_sys_max_cmd_len
10942
10943# Does compiler simultaneously support -c and -o options?
10944compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10945
10946# Must we lock files when doing compilation?
10947need_locks=$lt_need_locks
10948
10949# Do we need the lib prefix for modules?
10950need_lib_prefix=$need_lib_prefix
10951
10952# Do we need a version for libraries?
10953need_version=$need_version
10954
10955# Whether dlopen is supported.
10956dlopen_support=$enable_dlopen
10957
10958# Whether dlopen of programs is supported.
10959dlopen_self=$enable_dlopen_self
10960
10961# Whether dlopen of statically linked programs is supported.
10962dlopen_self_static=$enable_dlopen_self_static
10963
10964# Compiler flag to prevent dynamic linking.
10965link_static_flag=$lt_lt_prog_compiler_static
10966
10967# Compiler flag to turn off builtin functions.
10968no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10969
10970# Compiler flag to allow reflexive dlopens.
10971export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10972
10973# Compiler flag to generate shared objects directly from archives.
10974whole_archive_flag_spec=$lt_whole_archive_flag_spec
10975
10976# Compiler flag to generate thread-safe objects.
10977thread_safe_flag_spec=$lt_thread_safe_flag_spec
10978
10979# Library versioning type.
10980version_type=$version_type
10981
10982# Format of library name prefix.
10983libname_spec=$lt_libname_spec
10984
10985# List of archive names. First name is the real one, the rest are links.
10986# The last name is the one that the linker finds with -lNAME.
10987library_names_spec=$lt_library_names_spec
10988
10989# The coded name of the library, if different from the real name.
10990soname_spec=$lt_soname_spec
10991
10992# Commands used to build and install an old-style archive.
10993RANLIB=$lt_RANLIB
10994old_archive_cmds=$lt_old_archive_cmds
10995old_postinstall_cmds=$lt_old_postinstall_cmds
10996old_postuninstall_cmds=$lt_old_postuninstall_cmds
10997
10998# Create an old-style archive from a shared archive.
10999old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11000
11001# Create a temporary old-style archive to link instead of a shared archive.
11002old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11003
11004# Commands used to build and install a shared archive.
11005archive_cmds=$lt_archive_cmds
11006archive_expsym_cmds=$lt_archive_expsym_cmds
11007postinstall_cmds=$lt_postinstall_cmds
11008postuninstall_cmds=$lt_postuninstall_cmds
11009
11010# Commands used to build a loadable module (assumed same as above if empty)
11011module_cmds=$lt_module_cmds
11012module_expsym_cmds=$lt_module_expsym_cmds
11013
11014# Commands to strip libraries.
11015old_striplib=$lt_old_striplib
11016striplib=$lt_striplib
11017
11018# Dependencies to place before the objects being linked to create a
11019# shared library.
11020predep_objects=$lt_predep_objects
11021
11022# Dependencies to place after the objects being linked to create a
11023# shared library.
11024postdep_objects=$lt_postdep_objects
11025
11026# Dependencies to place before the objects being linked to create a
11027# shared library.
11028predeps=$lt_predeps
11029
11030# Dependencies to place after the objects being linked to create a
11031# shared library.
11032postdeps=$lt_postdeps
11033
11034# The directories searched by this compiler when creating a shared
11035# library
11036compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11037
10450# The library search path used internally by the compiler when linking
10451# a shared library.
10452compiler_lib_search_path=$lt_compiler_lib_search_path
10453
10454# Method to check whether dependent libraries are shared objects.
10455deplibs_check_method=$lt_deplibs_check_method
10456
10457# Command to use when deplibs_check_method == file_magic.
10458file_magic_cmd=$lt_file_magic_cmd
10459
10460# Flag that allows shared libraries with undefined symbols to be built.
10461allow_undefined_flag=$lt_allow_undefined_flag
10462
10463# Flag that forces no undefined symbols.
10464no_undefined_flag=$lt_no_undefined_flag
10465
10466# Commands used to finish a libtool library installation in a directory.
10467finish_cmds=$lt_finish_cmds
10468
10469# Same as above, but a single script fragment to be evaled but not shown.
10470finish_eval=$lt_finish_eval
10471
10472# Take the output of nm and produce a listing of raw symbols and C names.
10473global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10474
10475# Transform the output of nm in a proper C declaration
10476global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10477
10478# Transform the output of nm in a C name address pair
10479global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10480
10481# This is the shared library runtime path variable.
10482runpath_var=$runpath_var
10483
10484# This is the shared library path variable.
10485shlibpath_var=$shlibpath_var
10486
10487# Is shlibpath searched before the hard-coded library search path?
10488shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10489
10490# How to hardcode a shared library path into an executable.
10491hardcode_action=$hardcode_action
10492
10493# Whether we should hardcode library paths into libraries.
10494hardcode_into_libs=$hardcode_into_libs
10495
10496# Flag to hardcode \$libdir into a binary during linking.
10497# This must work even if \$libdir does not exist.
10498hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10499
10500# If ld is used when linking, flag to hardcode \$libdir into
10501# a binary during linking. This must work even if \$libdir does
10502# not exist.
10503hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10504
10505# Whether we need a single -rpath flag with a separated argument.
10506hardcode_libdir_separator=$lt_hardcode_libdir_separator
10507
10508# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10509# resulting binary.
10510hardcode_direct=$hardcode_direct
10511
10512# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10513# resulting binary.
10514hardcode_minus_L=$hardcode_minus_L
10515
10516# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10517# the resulting binary.
10518hardcode_shlibpath_var=$hardcode_shlibpath_var
10519
10520# Set to yes if building a shared library automatically hardcodes DIR into the library
10521# and all subsequent libraries and executables linked against it.
10522hardcode_automatic=$hardcode_automatic
10523
10524# Variables whose values should be saved in libtool wrapper scripts and
10525# restored at relink time.
10526variables_saved_for_relink="$variables_saved_for_relink"
10527
10528# Whether libtool must link a program against all its dependency libraries.
10529link_all_deplibs=$link_all_deplibs
10530
10531# Compile-time system search path for libraries
10532sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10533
10534# Run-time system search path for libraries
10535sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10536
10537# Fix the shell variable \$srcfile for the compiler.
11038# The library search path used internally by the compiler when linking
11039# a shared library.
11040compiler_lib_search_path=$lt_compiler_lib_search_path
11041
11042# Method to check whether dependent libraries are shared objects.
11043deplibs_check_method=$lt_deplibs_check_method
11044
11045# Command to use when deplibs_check_method == file_magic.
11046file_magic_cmd=$lt_file_magic_cmd
11047
11048# Flag that allows shared libraries with undefined symbols to be built.
11049allow_undefined_flag=$lt_allow_undefined_flag
11050
11051# Flag that forces no undefined symbols.
11052no_undefined_flag=$lt_no_undefined_flag
11053
11054# Commands used to finish a libtool library installation in a directory.
11055finish_cmds=$lt_finish_cmds
11056
11057# Same as above, but a single script fragment to be evaled but not shown.
11058finish_eval=$lt_finish_eval
11059
11060# Take the output of nm and produce a listing of raw symbols and C names.
11061global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11062
11063# Transform the output of nm in a proper C declaration
11064global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11065
11066# Transform the output of nm in a C name address pair
11067global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11068
11069# This is the shared library runtime path variable.
11070runpath_var=$runpath_var
11071
11072# This is the shared library path variable.
11073shlibpath_var=$shlibpath_var
11074
11075# Is shlibpath searched before the hard-coded library search path?
11076shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11077
11078# How to hardcode a shared library path into an executable.
11079hardcode_action=$hardcode_action
11080
11081# Whether we should hardcode library paths into libraries.
11082hardcode_into_libs=$hardcode_into_libs
11083
11084# Flag to hardcode \$libdir into a binary during linking.
11085# This must work even if \$libdir does not exist.
11086hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11087
11088# If ld is used when linking, flag to hardcode \$libdir into
11089# a binary during linking. This must work even if \$libdir does
11090# not exist.
11091hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11092
11093# Whether we need a single -rpath flag with a separated argument.
11094hardcode_libdir_separator=$lt_hardcode_libdir_separator
11095
11096# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11097# resulting binary.
11098hardcode_direct=$hardcode_direct
11099
11100# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11101# resulting binary.
11102hardcode_minus_L=$hardcode_minus_L
11103
11104# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11105# the resulting binary.
11106hardcode_shlibpath_var=$hardcode_shlibpath_var
11107
11108# Set to yes if building a shared library automatically hardcodes DIR into the library
11109# and all subsequent libraries and executables linked against it.
11110hardcode_automatic=$hardcode_automatic
11111
11112# Variables whose values should be saved in libtool wrapper scripts and
11113# restored at relink time.
11114variables_saved_for_relink="$variables_saved_for_relink"
11115
11116# Whether libtool must link a program against all its dependency libraries.
11117link_all_deplibs=$link_all_deplibs
11118
11119# Compile-time system search path for libraries
11120sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11121
11122# Run-time system search path for libraries
11123sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11124
11125# Fix the shell variable \$srcfile for the compiler.
10538fix_srcfile_path="$fix_srcfile_path"
11126fix_srcfile_path=$lt_fix_srcfile_path
10539
10540# Set to yes if exported symbols are required.
10541always_export_symbols=$always_export_symbols
10542
10543# The commands to list exported symbols.
10544export_symbols_cmds=$lt_export_symbols_cmds
10545
10546# The commands to extract the exported symbol list from a shared archive.
10547extract_expsyms_cmds=$lt_extract_expsyms_cmds
10548
10549# Symbols that should not be listed in the preloaded symbols.
10550exclude_expsyms=$lt_exclude_expsyms
10551
10552# Symbols that must always be exported.
10553include_expsyms=$lt_include_expsyms
10554
10555# ### END LIBTOOL CONFIG
10556
10557__EOF__
10558
10559
10560 case $host_os in
10561 aix3*)
10562 cat <<\EOF >> "$cfgfile"
10563
10564# AIX sometimes has problems with the GCC collect2 program. For some
10565# reason, if we set the COLLECT_NAMES environment variable, the problems
10566# vanish in a puff of smoke.
10567if test "X${COLLECT_NAMES+set}" != Xset; then
10568 COLLECT_NAMES=
10569 export COLLECT_NAMES
10570fi
10571EOF
10572 ;;
10573 esac
10574
10575 # We use sed instead of cat because bash on DJGPP gets confused if
10576 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10577 # text mode, it properly converts lines to CR/LF. This bash problem
10578 # is reportedly fixed, but why not run on old versions too?
10579 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10580
10581 mv -f "$cfgfile" "$ofile" || \
10582 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10583 chmod +x "$ofile"
10584
10585else
10586 # If there is no Makefile yet, we rely on a make rule to execute
10587 # `config.status --recheck' to rerun these tests and create the
10588 # libtool script then.
10589 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10590 if test -f "$ltmain_in"; then
10591 test -f Makefile && make "$ltmain"
10592 fi
10593fi
10594
10595
10596ac_ext=c
10597ac_cpp='$CPP $CPPFLAGS'
10598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10600ac_compiler_gnu=$ac_cv_c_compiler_gnu
10601
10602CC="$lt_save_CC"
10603
10604
10605# Check whether --with-tags was given.
10606if test "${with_tags+set}" = set; then
10607 withval=$with_tags; tagnames="$withval"
10608fi
10609
10610
10611if test -f "$ltmain" && test -n "$tagnames"; then
10612 if test ! -f "${ofile}"; then
10613 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10614echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10615 fi
10616
10617 if test -z "$LTCC"; then
10618 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10619 if test -z "$LTCC"; then
10620 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10621echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10622 else
10623 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10624echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10625 fi
10626 fi
11127
11128# Set to yes if exported symbols are required.
11129always_export_symbols=$always_export_symbols
11130
11131# The commands to list exported symbols.
11132export_symbols_cmds=$lt_export_symbols_cmds
11133
11134# The commands to extract the exported symbol list from a shared archive.
11135extract_expsyms_cmds=$lt_extract_expsyms_cmds
11136
11137# Symbols that should not be listed in the preloaded symbols.
11138exclude_expsyms=$lt_exclude_expsyms
11139
11140# Symbols that must always be exported.
11141include_expsyms=$lt_include_expsyms
11142
11143# ### END LIBTOOL CONFIG
11144
11145__EOF__
11146
11147
11148 case $host_os in
11149 aix3*)
11150 cat <<\EOF >> "$cfgfile"
11151
11152# AIX sometimes has problems with the GCC collect2 program. For some
11153# reason, if we set the COLLECT_NAMES environment variable, the problems
11154# vanish in a puff of smoke.
11155if test "X${COLLECT_NAMES+set}" != Xset; then
11156 COLLECT_NAMES=
11157 export COLLECT_NAMES
11158fi
11159EOF
11160 ;;
11161 esac
11162
11163 # We use sed instead of cat because bash on DJGPP gets confused if
11164 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11165 # text mode, it properly converts lines to CR/LF. This bash problem
11166 # is reportedly fixed, but why not run on old versions too?
11167 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11168
11169 mv -f "$cfgfile" "$ofile" || \
11170 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11171 chmod +x "$ofile"
11172
11173else
11174 # If there is no Makefile yet, we rely on a make rule to execute
11175 # `config.status --recheck' to rerun these tests and create the
11176 # libtool script then.
11177 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11178 if test -f "$ltmain_in"; then
11179 test -f Makefile && make "$ltmain"
11180 fi
11181fi
11182
11183
11184ac_ext=c
11185ac_cpp='$CPP $CPPFLAGS'
11186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11188ac_compiler_gnu=$ac_cv_c_compiler_gnu
11189
11190CC="$lt_save_CC"
11191
11192
11193# Check whether --with-tags was given.
11194if test "${with_tags+set}" = set; then
11195 withval=$with_tags; tagnames="$withval"
11196fi
11197
11198
11199if test -f "$ltmain" && test -n "$tagnames"; then
11200 if test ! -f "${ofile}"; then
11201 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11202echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11203 fi
11204
11205 if test -z "$LTCC"; then
11206 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11207 if test -z "$LTCC"; then
11208 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11209echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11210 else
11211 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11212echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11213 fi
11214 fi
11215 if test -z "$LTCFLAGS"; then
11216 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11217 fi
10627
10628 # Extract list of available tagged configurations in $ofile.
10629 # Note that this assumes the entire list is on one line.
10630 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10631
10632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10633 for tagname in $tagnames; do
10634 IFS="$lt_save_ifs"
10635 # Check whether tagname contains only valid characters
10636 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10637 "") ;;
10638 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10639echo "$as_me: error: invalid tag name: $tagname" >&2;}
10640 { (exit 1); exit 1; }; }
10641 ;;
10642 esac
10643
10644 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10645 then
10646 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10647echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10648 { (exit 1); exit 1; }; }
10649 fi
10650
10651 # Update the list of available tags.
10652 if test -n "$tagname"; then
10653 echo appending configuration tag \"$tagname\" to $ofile
10654
10655 case $tagname in
10656 CXX)
10657 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10658 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10659 (test "X$CXX" != "Xg++"))) ; then
10660 ac_ext=cpp
10661ac_cpp='$CXXCPP $CPPFLAGS'
10662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10665
10666
10667
10668
10669archive_cmds_need_lc_CXX=no
10670allow_undefined_flag_CXX=
10671always_export_symbols_CXX=no
10672archive_expsym_cmds_CXX=
10673export_dynamic_flag_spec_CXX=
10674hardcode_direct_CXX=no
10675hardcode_libdir_flag_spec_CXX=
10676hardcode_libdir_flag_spec_ld_CXX=
10677hardcode_libdir_separator_CXX=
10678hardcode_minus_L_CXX=no
11218
11219 # Extract list of available tagged configurations in $ofile.
11220 # Note that this assumes the entire list is on one line.
11221 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11222
11223 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11224 for tagname in $tagnames; do
11225 IFS="$lt_save_ifs"
11226 # Check whether tagname contains only valid characters
11227 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11228 "") ;;
11229 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11230echo "$as_me: error: invalid tag name: $tagname" >&2;}
11231 { (exit 1); exit 1; }; }
11232 ;;
11233 esac
11234
11235 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11236 then
11237 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11238echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11239 { (exit 1); exit 1; }; }
11240 fi
11241
11242 # Update the list of available tags.
11243 if test -n "$tagname"; then
11244 echo appending configuration tag \"$tagname\" to $ofile
11245
11246 case $tagname in
11247 CXX)
11248 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11249 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11250 (test "X$CXX" != "Xg++"))) ; then
11251 ac_ext=cpp
11252ac_cpp='$CXXCPP $CPPFLAGS'
11253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11256
11257
11258
11259
11260archive_cmds_need_lc_CXX=no
11261allow_undefined_flag_CXX=
11262always_export_symbols_CXX=no
11263archive_expsym_cmds_CXX=
11264export_dynamic_flag_spec_CXX=
11265hardcode_direct_CXX=no
11266hardcode_libdir_flag_spec_CXX=
11267hardcode_libdir_flag_spec_ld_CXX=
11268hardcode_libdir_separator_CXX=
11269hardcode_minus_L_CXX=no
11270hardcode_shlibpath_var_CXX=unsupported
10679hardcode_automatic_CXX=no
10680module_cmds_CXX=
10681module_expsym_cmds_CXX=
10682link_all_deplibs_CXX=unknown
10683old_archive_cmds_CXX=$old_archive_cmds
10684no_undefined_flag_CXX=
10685whole_archive_flag_spec_CXX=
10686enable_shared_with_static_runtimes_CXX=no
10687
10688# Dependencies to place before and after the object being linked:
10689predep_objects_CXX=
10690postdep_objects_CXX=
10691predeps_CXX=
10692postdeps_CXX=
10693compiler_lib_search_path_CXX=
11271hardcode_automatic_CXX=no
11272module_cmds_CXX=
11273module_expsym_cmds_CXX=
11274link_all_deplibs_CXX=unknown
11275old_archive_cmds_CXX=$old_archive_cmds
11276no_undefined_flag_CXX=
11277whole_archive_flag_spec_CXX=
11278enable_shared_with_static_runtimes_CXX=no
11279
11280# Dependencies to place before and after the object being linked:
11281predep_objects_CXX=
11282postdep_objects_CXX=
11283predeps_CXX=
11284postdeps_CXX=
11285compiler_lib_search_path_CXX=
11286compiler_lib_search_dirs_CXX=
10694
10695# Source file extension for C++ test sources.
11287
11288# Source file extension for C++ test sources.
10696ac_ext=cc
11289ac_ext=cpp
10697
10698# Object file extension for compiled C++ test sources.
10699objext=o
10700objext_CXX=$objext
10701
10702# Code to be used in simple compile tests
11290
11291# Object file extension for compiled C++ test sources.
11292objext=o
11293objext_CXX=$objext
11294
11295# Code to be used in simple compile tests
10703lt_simple_compile_test_code="int some_variable = 0;\n"
11296lt_simple_compile_test_code="int some_variable = 0;"
10704
10705# Code to be used in simple link tests
11297
11298# Code to be used in simple link tests
10706lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11299lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10707
10708# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10709
10710# If no C compiler was specified, use CC.
10711LTCC=${LTCC-"$CC"}
10712
11300
11301# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11302
11303# If no C compiler was specified, use CC.
11304LTCC=${LTCC-"$CC"}
11305
11306# If no C compiler flags were specified, use CFLAGS.
11307LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11308
10713# Allow CC to be a program name with arguments.
10714compiler=$CC
10715
10716
10717# save warnings/boilerplate of simple test code
10718ac_outfile=conftest.$ac_objext
11309# Allow CC to be a program name with arguments.
11310compiler=$CC
11311
11312
11313# save warnings/boilerplate of simple test code
11314ac_outfile=conftest.$ac_objext
10719printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10720eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11315echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11316eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10721_lt_compiler_boilerplate=`cat conftest.err`
10722$rm conftest*
10723
10724ac_outfile=conftest.$ac_objext
11317_lt_compiler_boilerplate=`cat conftest.err`
11318$rm conftest*
11319
11320ac_outfile=conftest.$ac_objext
10725printf "$lt_simple_link_test_code" >conftest.$ac_ext
10726eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11321echo "$lt_simple_link_test_code" >conftest.$ac_ext
11322eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10727_lt_linker_boilerplate=`cat conftest.err`
11323_lt_linker_boilerplate=`cat conftest.err`
10728$rm conftest*
11324$rm -r conftest*
10729
10730
10731# Allow CC to be a program name with arguments.
10732lt_save_CC=$CC
10733lt_save_LD=$LD
10734lt_save_GCC=$GCC
10735GCC=$GXX
10736lt_save_with_gnu_ld=$with_gnu_ld
10737lt_save_path_LD=$lt_cv_path_LD
10738if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10739 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10740else
11325
11326
11327# Allow CC to be a program name with arguments.
11328lt_save_CC=$CC
11329lt_save_LD=$LD
11330lt_save_GCC=$GCC
11331GCC=$GXX
11332lt_save_with_gnu_ld=$with_gnu_ld
11333lt_save_path_LD=$lt_cv_path_LD
11334if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11335 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11336else
10741 unset lt_cv_prog_gnu_ld
11337 $as_unset lt_cv_prog_gnu_ld
10742fi
10743if test -n "${lt_cv_path_LDCXX+set}"; then
10744 lt_cv_path_LD=$lt_cv_path_LDCXX
10745else
11338fi
11339if test -n "${lt_cv_path_LDCXX+set}"; then
11340 lt_cv_path_LD=$lt_cv_path_LDCXX
11341else
10746 unset lt_cv_path_LD
11342 $as_unset lt_cv_path_LD
10747fi
10748test -z "${LDCXX+set}" || LD=$LDCXX
10749CC=${CXX-"c++"}
10750compiler=$CC
10751compiler_CXX=$CC
10752for cc_temp in $compiler""; do
10753 case $cc_temp in
10754 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10755 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10756 \-*) ;;
10757 *) break;;
10758 esac
10759done
10760cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10761
10762
10763# We don't want -fno-exception wen compiling C++ code, so set the
10764# no_builtin_flag separately
10765if test "$GXX" = yes; then
10766 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10767else
10768 lt_prog_compiler_no_builtin_flag_CXX=
10769fi
10770
10771if test "$GXX" = yes; then
10772 # Set up default GNU C++ configuration
10773
10774
10775# Check whether --with-gnu-ld was given.
10776if test "${with_gnu_ld+set}" = set; then
10777 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10778else
10779 with_gnu_ld=no
10780fi
10781
10782ac_prog=ld
10783if test "$GCC" = yes; then
10784 # Check if gcc -print-prog-name=ld gives a path.
10785 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10786echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10787 case $host in
10788 *-*-mingw*)
10789 # gcc leaves a trailing carriage return which upsets mingw
10790 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10791 *)
10792 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10793 esac
10794 case $ac_prog in
10795 # Accept absolute paths.
10796 [\\/]* | ?:[\\/]*)
10797 re_direlt='/[^/][^/]*/\.\./'
10798 # Canonicalize the pathname of ld
10799 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10800 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10801 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10802 done
10803 test -z "$LD" && LD="$ac_prog"
10804 ;;
10805 "")
10806 # If it fails, then pretend we aren't using GCC.
10807 ac_prog=ld
10808 ;;
10809 *)
10810 # If it is relative, then search for the first ld in PATH.
10811 with_gnu_ld=unknown
10812 ;;
10813 esac
10814elif test "$with_gnu_ld" = yes; then
10815 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10816echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10817else
10818 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10819echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10820fi
10821if test "${lt_cv_path_LD+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10823else
10824 if test -z "$LD"; then
10825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10826 for ac_dir in $PATH; do
10827 IFS="$lt_save_ifs"
10828 test -z "$ac_dir" && ac_dir=.
10829 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10830 lt_cv_path_LD="$ac_dir/$ac_prog"
10831 # Check to see if the program is GNU ld. I'd rather use --version,
11343fi
11344test -z "${LDCXX+set}" || LD=$LDCXX
11345CC=${CXX-"c++"}
11346compiler=$CC
11347compiler_CXX=$CC
11348for cc_temp in $compiler""; do
11349 case $cc_temp in
11350 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11351 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11352 \-*) ;;
11353 *) break;;
11354 esac
11355done
11356cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11357
11358
11359# We don't want -fno-exception wen compiling C++ code, so set the
11360# no_builtin_flag separately
11361if test "$GXX" = yes; then
11362 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11363else
11364 lt_prog_compiler_no_builtin_flag_CXX=
11365fi
11366
11367if test "$GXX" = yes; then
11368 # Set up default GNU C++ configuration
11369
11370
11371# Check whether --with-gnu-ld was given.
11372if test "${with_gnu_ld+set}" = set; then
11373 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11374else
11375 with_gnu_ld=no
11376fi
11377
11378ac_prog=ld
11379if test "$GCC" = yes; then
11380 # Check if gcc -print-prog-name=ld gives a path.
11381 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11382echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11383 case $host in
11384 *-*-mingw*)
11385 # gcc leaves a trailing carriage return which upsets mingw
11386 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11387 *)
11388 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11389 esac
11390 case $ac_prog in
11391 # Accept absolute paths.
11392 [\\/]* | ?:[\\/]*)
11393 re_direlt='/[^/][^/]*/\.\./'
11394 # Canonicalize the pathname of ld
11395 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11396 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11397 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11398 done
11399 test -z "$LD" && LD="$ac_prog"
11400 ;;
11401 "")
11402 # If it fails, then pretend we aren't using GCC.
11403 ac_prog=ld
11404 ;;
11405 *)
11406 # If it is relative, then search for the first ld in PATH.
11407 with_gnu_ld=unknown
11408 ;;
11409 esac
11410elif test "$with_gnu_ld" = yes; then
11411 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11412echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11413else
11414 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11415echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11416fi
11417if test "${lt_cv_path_LD+set}" = set; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11419else
11420 if test -z "$LD"; then
11421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11422 for ac_dir in $PATH; do
11423 IFS="$lt_save_ifs"
11424 test -z "$ac_dir" && ac_dir=.
11425 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11426 lt_cv_path_LD="$ac_dir/$ac_prog"
11427 # Check to see if the program is GNU ld. I'd rather use --version,
10832 # but apparently some GNU ld's only accept -v.
11428 # but apparently some variants of GNU ld only accept -v.
10833 # Break only if it was the GNU/non-GNU ld that we prefer.
10834 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10835 *GNU* | *'with BFD'*)
10836 test "$with_gnu_ld" != no && break
10837 ;;
10838 *)
10839 test "$with_gnu_ld" != yes && break
10840 ;;
10841 esac
10842 fi
10843 done
10844 IFS="$lt_save_ifs"
10845else
10846 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10847fi
10848fi
10849
10850LD="$lt_cv_path_LD"
10851if test -n "$LD"; then
10852 { echo "$as_me:$LINENO: result: $LD" >&5
10853echo "${ECHO_T}$LD" >&6; }
10854else
10855 { echo "$as_me:$LINENO: result: no" >&5
10856echo "${ECHO_T}no" >&6; }
10857fi
10858test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10859echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10860 { (exit 1); exit 1; }; }
10861{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10862echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10863if test "${lt_cv_prog_gnu_ld+set}" = set; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10865else
11429 # Break only if it was the GNU/non-GNU ld that we prefer.
11430 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11431 *GNU* | *'with BFD'*)
11432 test "$with_gnu_ld" != no && break
11433 ;;
11434 *)
11435 test "$with_gnu_ld" != yes && break
11436 ;;
11437 esac
11438 fi
11439 done
11440 IFS="$lt_save_ifs"
11441else
11442 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11443fi
11444fi
11445
11446LD="$lt_cv_path_LD"
11447if test -n "$LD"; then
11448 { echo "$as_me:$LINENO: result: $LD" >&5
11449echo "${ECHO_T}$LD" >&6; }
11450else
11451 { echo "$as_me:$LINENO: result: no" >&5
11452echo "${ECHO_T}no" >&6; }
11453fi
11454test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11455echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11456 { (exit 1); exit 1; }; }
11457{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11458echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11459if test "${lt_cv_prog_gnu_ld+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461else
10866 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11462 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10867case `$LD -v 2>&1 </dev/null` in
10868*GNU* | *'with BFD'*)
10869 lt_cv_prog_gnu_ld=yes
10870 ;;
10871*)
10872 lt_cv_prog_gnu_ld=no
10873 ;;
10874esac
10875fi
10876{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10877echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10878with_gnu_ld=$lt_cv_prog_gnu_ld
10879
10880
10881
10882 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10883 # archiving commands below assume that GNU ld is being used.
10884 if test "$with_gnu_ld" = yes; then
10885 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10886 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10887
10888 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10889 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10890
10891 # If archive_cmds runs LD, not CC, wlarc should be empty
10892 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10893 # investigate it a little bit more. (MM)
10894 wlarc='${wl}'
10895
10896 # ancient GNU ld didn't support --whole-archive et. al.
10897 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10898 grep 'no-whole-archive' > /dev/null; then
10899 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10900 else
10901 whole_archive_flag_spec_CXX=
10902 fi
10903 else
10904 with_gnu_ld=no
10905 wlarc=
10906
10907 # A generic and very simple default shared library creation
10908 # command for GNU C++ for the case where it uses the native
10909 # linker, instead of GNU ld. If possible, this setting should
10910 # overridden to take advantage of the native linker features on
10911 # the platform it is being used on.
10912 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10913 fi
10914
10915 # Commands to make compiler produce verbose output that lists
10916 # what "hidden" libraries, object files and flags are used when
10917 # linking a shared library.
10918 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10919
10920else
10921 GXX=no
10922 with_gnu_ld=no
10923 wlarc=
10924fi
10925
10926# PORTME: fill in a description of your system's C++ link characteristics
10927{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10928echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10929ld_shlibs_CXX=yes
10930case $host_os in
10931 aix3*)
10932 # FIXME: insert proper C++ library support
10933 ld_shlibs_CXX=no
10934 ;;
11463case `$LD -v 2>&1 </dev/null` in
11464*GNU* | *'with BFD'*)
11465 lt_cv_prog_gnu_ld=yes
11466 ;;
11467*)
11468 lt_cv_prog_gnu_ld=no
11469 ;;
11470esac
11471fi
11472{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11473echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11474with_gnu_ld=$lt_cv_prog_gnu_ld
11475
11476
11477
11478 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11479 # archiving commands below assume that GNU ld is being used.
11480 if test "$with_gnu_ld" = yes; then
11481 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11482 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11483
11484 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11485 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11486
11487 # If archive_cmds runs LD, not CC, wlarc should be empty
11488 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11489 # investigate it a little bit more. (MM)
11490 wlarc='${wl}'
11491
11492 # ancient GNU ld didn't support --whole-archive et. al.
11493 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11494 grep 'no-whole-archive' > /dev/null; then
11495 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11496 else
11497 whole_archive_flag_spec_CXX=
11498 fi
11499 else
11500 with_gnu_ld=no
11501 wlarc=
11502
11503 # A generic and very simple default shared library creation
11504 # command for GNU C++ for the case where it uses the native
11505 # linker, instead of GNU ld. If possible, this setting should
11506 # overridden to take advantage of the native linker features on
11507 # the platform it is being used on.
11508 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11509 fi
11510
11511 # Commands to make compiler produce verbose output that lists
11512 # what "hidden" libraries, object files and flags are used when
11513 # linking a shared library.
11514 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11515
11516else
11517 GXX=no
11518 with_gnu_ld=no
11519 wlarc=
11520fi
11521
11522# PORTME: fill in a description of your system's C++ link characteristics
11523{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11524echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11525ld_shlibs_CXX=yes
11526case $host_os in
11527 aix3*)
11528 # FIXME: insert proper C++ library support
11529 ld_shlibs_CXX=no
11530 ;;
10935 aix4* | aix5*)
11531 aix[4-9]*)
10936 if test "$host_cpu" = ia64; then
10937 # On IA64, the linker does run time linking by default, so we don't
10938 # have to do anything special.
10939 aix_use_runtimelinking=no
10940 exp_sym_flag='-Bexport'
10941 no_entry_flag=""
10942 else
10943 aix_use_runtimelinking=no
10944
10945 # Test if we are trying to use run time linking or normal
10946 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10947 # need to do runtime linking.
11532 if test "$host_cpu" = ia64; then
11533 # On IA64, the linker does run time linking by default, so we don't
11534 # have to do anything special.
11535 aix_use_runtimelinking=no
11536 exp_sym_flag='-Bexport'
11537 no_entry_flag=""
11538 else
11539 aix_use_runtimelinking=no
11540
11541 # Test if we are trying to use run time linking or normal
11542 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11543 # need to do runtime linking.
10948 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11544 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10949 for ld_flag in $LDFLAGS; do
10950 case $ld_flag in
10951 *-brtl*)
10952 aix_use_runtimelinking=yes
10953 break
10954 ;;
10955 esac
10956 done
11545 for ld_flag in $LDFLAGS; do
11546 case $ld_flag in
11547 *-brtl*)
11548 aix_use_runtimelinking=yes
11549 break
11550 ;;
11551 esac
11552 done
11553 ;;
10957 esac
10958
10959 exp_sym_flag='-bexport'
10960 no_entry_flag='-bnoentry'
10961 fi
10962
10963 # When large executables or shared objects are built, AIX ld can
10964 # have problems creating the table of contents. If linking a library
10965 # or program results in "error TOC overflow" add -mminimal-toc to
10966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10968
10969 archive_cmds_CXX=''
10970 hardcode_direct_CXX=yes
10971 hardcode_libdir_separator_CXX=':'
10972 link_all_deplibs_CXX=yes
10973
10974 if test "$GXX" = yes; then
10975 case $host_os in aix4.[012]|aix4.[012].*)
10976 # We only want to do this on AIX 4.2 and lower, the check
10977 # below for broken collect2 doesn't work under 4.3+
10978 collect2name=`${CC} -print-prog-name=collect2`
10979 if test -f "$collect2name" && \
10980 strings "$collect2name" | grep resolve_lib_name >/dev/null
10981 then
10982 # We have reworked collect2
11554 esac
11555
11556 exp_sym_flag='-bexport'
11557 no_entry_flag='-bnoentry'
11558 fi
11559
11560 # When large executables or shared objects are built, AIX ld can
11561 # have problems creating the table of contents. If linking a library
11562 # or program results in "error TOC overflow" add -mminimal-toc to
11563 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11564 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11565
11566 archive_cmds_CXX=''
11567 hardcode_direct_CXX=yes
11568 hardcode_libdir_separator_CXX=':'
11569 link_all_deplibs_CXX=yes
11570
11571 if test "$GXX" = yes; then
11572 case $host_os in aix4.[012]|aix4.[012].*)
11573 # We only want to do this on AIX 4.2 and lower, the check
11574 # below for broken collect2 doesn't work under 4.3+
11575 collect2name=`${CC} -print-prog-name=collect2`
11576 if test -f "$collect2name" && \
11577 strings "$collect2name" | grep resolve_lib_name >/dev/null
11578 then
11579 # We have reworked collect2
10983 hardcode_direct_CXX=yes
11580 :
10984 else
10985 # We have old collect2
10986 hardcode_direct_CXX=unsupported
10987 # It fails to find uninstalled libraries when the uninstalled
10988 # path is not listed in the libpath. Setting hardcode_minus_L
10989 # to unsupported forces relinking
10990 hardcode_minus_L_CXX=yes
10991 hardcode_libdir_flag_spec_CXX='-L$libdir'
10992 hardcode_libdir_separator_CXX=
10993 fi
11581 else
11582 # We have old collect2
11583 hardcode_direct_CXX=unsupported
11584 # It fails to find uninstalled libraries when the uninstalled
11585 # path is not listed in the libpath. Setting hardcode_minus_L
11586 # to unsupported forces relinking
11587 hardcode_minus_L_CXX=yes
11588 hardcode_libdir_flag_spec_CXX='-L$libdir'
11589 hardcode_libdir_separator_CXX=
11590 fi
11591 ;;
10994 esac
10995 shared_flag='-shared'
10996 if test "$aix_use_runtimelinking" = yes; then
10997 shared_flag="$shared_flag "'${wl}-G'
10998 fi
10999 else
11000 # not using gcc
11001 if test "$host_cpu" = ia64; then
11002 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11003 # chokes on -Wl,-G. The following line is correct:
11004 shared_flag='-G'
11005 else
11006 if test "$aix_use_runtimelinking" = yes; then
11007 shared_flag='${wl}-G'
11008 else
11009 shared_flag='${wl}-bM:SRE'
11010 fi
11011 fi
11012 fi
11013
11014 # It seems that -bexpall does not export symbols beginning with
11015 # underscore (_), so it is better to generate a list of symbols to export.
11016 always_export_symbols_CXX=yes
11017 if test "$aix_use_runtimelinking" = yes; then
11018 # Warning - without using the other runtime loading flags (-brtl),
11019 # -berok will link without error, but may produce a broken library.
11020 allow_undefined_flag_CXX='-berok'
11021 # Determine the default libpath from the value encoded in an empty executable.
11022 cat >conftest.$ac_ext <<_ACEOF
11023/* confdefs.h. */
11024_ACEOF
11025cat confdefs.h >>conftest.$ac_ext
11026cat >>conftest.$ac_ext <<_ACEOF
11027/* end confdefs.h. */
11028
11029int
11030main ()
11031{
11032
11033 ;
11034 return 0;
11035}
11036_ACEOF
11037rm -f conftest.$ac_objext conftest$ac_exeext
11038if { (ac_try="$ac_link"
11039case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042esac
11043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_link") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_cxx_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest$ac_exeext &&
11054 $as_test_x conftest$ac_exeext; then
11055
11592 esac
11593 shared_flag='-shared'
11594 if test "$aix_use_runtimelinking" = yes; then
11595 shared_flag="$shared_flag "'${wl}-G'
11596 fi
11597 else
11598 # not using gcc
11599 if test "$host_cpu" = ia64; then
11600 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11601 # chokes on -Wl,-G. The following line is correct:
11602 shared_flag='-G'
11603 else
11604 if test "$aix_use_runtimelinking" = yes; then
11605 shared_flag='${wl}-G'
11606 else
11607 shared_flag='${wl}-bM:SRE'
11608 fi
11609 fi
11610 fi
11611
11612 # It seems that -bexpall does not export symbols beginning with
11613 # underscore (_), so it is better to generate a list of symbols to export.
11614 always_export_symbols_CXX=yes
11615 if test "$aix_use_runtimelinking" = yes; then
11616 # Warning - without using the other runtime loading flags (-brtl),
11617 # -berok will link without error, but may produce a broken library.
11618 allow_undefined_flag_CXX='-berok'
11619 # Determine the default libpath from the value encoded in an empty executable.
11620 cat >conftest.$ac_ext <<_ACEOF
11621/* confdefs.h. */
11622_ACEOF
11623cat confdefs.h >>conftest.$ac_ext
11624cat >>conftest.$ac_ext <<_ACEOF
11625/* end confdefs.h. */
11626
11627int
11628main ()
11629{
11630
11631 ;
11632 return 0;
11633}
11634_ACEOF
11635rm -f conftest.$ac_objext conftest$ac_exeext
11636if { (ac_try="$ac_link"
11637case "(($ac_try" in
11638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11639 *) ac_try_echo=$ac_try;;
11640esac
11641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11642 (eval "$ac_link") 2>conftest.er1
11643 ac_status=$?
11644 grep -v '^ *+' conftest.er1 >conftest.err
11645 rm -f conftest.er1
11646 cat conftest.err >&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } && {
11649 test -z "$ac_cxx_werror_flag" ||
11650 test ! -s conftest.err
11651 } && test -s conftest$ac_exeext &&
11652 $as_test_x conftest$ac_exeext; then
11653
11056aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11057}'`
11654lt_aix_libpath_sed='
11655 /Import File Strings/,/^$/ {
11656 /^0/ {
11657 s/^0 *\(.*\)$/\1/
11658 p
11659 }
11660 }'
11661aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11058# Check for a 64-bit object if we didn't find anything.
11662# Check for a 64-bit object if we didn't find anything.
11059if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11060}'`; fi
11663if test -z "$aix_libpath"; then
11664 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11665fi
11061else
11062 echo "$as_me: failed program was:" >&5
11063sed 's/^/| /' conftest.$ac_ext >&5
11064
11065
11066fi
11067
11068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11069 conftest$ac_exeext conftest.$ac_ext
11070if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11071
11072 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11073
11666else
11667 echo "$as_me: failed program was:" >&5
11668sed 's/^/| /' conftest.$ac_ext >&5
11669
11670
11671fi
11672
11673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11674 conftest$ac_exeext conftest.$ac_ext
11675if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11676
11677 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11678
11074 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11679 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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11075 else
11076 if test "$host_cpu" = ia64; then
11077 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11078 allow_undefined_flag_CXX="-z nodefs"
11680 else
11681 if test "$host_cpu" = ia64; then
11682 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11683 allow_undefined_flag_CXX="-z nodefs"
11079 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11684 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"
11080 else
11081 # Determine the default libpath from the value encoded in an empty executable.
11082 cat >conftest.$ac_ext <<_ACEOF
11083/* confdefs.h. */
11084_ACEOF
11085cat confdefs.h >>conftest.$ac_ext
11086cat >>conftest.$ac_ext <<_ACEOF
11087/* end confdefs.h. */
11088
11089int
11090main ()
11091{
11092
11093 ;
11094 return 0;
11095}
11096_ACEOF
11097rm -f conftest.$ac_objext conftest$ac_exeext
11098if { (ac_try="$ac_link"
11099case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11102esac
11103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 (eval "$ac_link") 2>conftest.er1
11105 ac_status=$?
11106 grep -v '^ *+' conftest.er1 >conftest.err
11107 rm -f conftest.er1
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } && {
11111 test -z "$ac_cxx_werror_flag" ||
11112 test ! -s conftest.err
11113 } && test -s conftest$ac_exeext &&
11114 $as_test_x conftest$ac_exeext; then
11115
11685 else
11686 # Determine the default libpath from the value encoded in an empty executable.
11687 cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h. */
11689_ACEOF
11690cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */
11693
11694int
11695main ()
11696{
11697
11698 ;
11699 return 0;
11700}
11701_ACEOF
11702rm -f conftest.$ac_objext conftest$ac_exeext
11703if { (ac_try="$ac_link"
11704case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11707esac
11708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_link") 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_cxx_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest$ac_exeext &&
11719 $as_test_x conftest$ac_exeext; then
11720
11116aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11117}'`
11721lt_aix_libpath_sed='
11722 /Import File Strings/,/^$/ {
11723 /^0/ {
11724 s/^0 *\(.*\)$/\1/
11725 p
11726 }
11727 }'
11728aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11118# Check for a 64-bit object if we didn't find anything.
11729# Check for a 64-bit object if we didn't find anything.
11119if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11120}'`; fi
11730if test -z "$aix_libpath"; then
11731 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11732fi
11121else
11122 echo "$as_me: failed program was:" >&5
11123sed 's/^/| /' conftest.$ac_ext >&5
11124
11125
11126fi
11127
11128rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11129 conftest$ac_exeext conftest.$ac_ext
11130if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11131
11132 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11133 # Warning - without using the other run time loading flags,
11134 # -berok will link without error, but may produce a broken library.
11135 no_undefined_flag_CXX=' ${wl}-bernotok'
11136 allow_undefined_flag_CXX=' ${wl}-berok'
11733else
11734 echo "$as_me: failed program was:" >&5
11735sed 's/^/| /' conftest.$ac_ext >&5
11736
11737
11738fi
11739
11740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11741 conftest$ac_exeext conftest.$ac_ext
11742if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11743
11744 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11745 # Warning - without using the other run time loading flags,
11746 # -berok will link without error, but may produce a broken library.
11747 no_undefined_flag_CXX=' ${wl}-bernotok'
11748 allow_undefined_flag_CXX=' ${wl}-berok'
11137 # -bexpall does not export symbols beginning with underscore (_)
11138 always_export_symbols_CXX=yes
11139 # Exported symbols can be pulled into shared objects from archives
11749 # Exported symbols can be pulled into shared objects from archives
11140 whole_archive_flag_spec_CXX=' '
11750 whole_archive_flag_spec_CXX='$convenience'
11141 archive_cmds_need_lc_CXX=yes
11751 archive_cmds_need_lc_CXX=yes
11142 # This is similar to how AIX traditionally builds it's shared libraries.
11143 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11752 # This is similar to how AIX traditionally builds its shared libraries.
11753 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'
11144 fi
11145 fi
11146 ;;
11754 fi
11755 fi
11756 ;;
11757
11758 beos*)
11759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11760 allow_undefined_flag_CXX=unsupported
11761 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11762 # support --undefined. This deserves some investigation. FIXME
11763 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11764 else
11765 ld_shlibs_CXX=no
11766 fi
11767 ;;
11768
11147 chorus*)
11148 case $cc_basename in
11149 *)
11150 # FIXME: insert proper C++ library support
11151 ld_shlibs_CXX=no
11152 ;;
11153 esac
11154 ;;
11155
11769 chorus*)
11770 case $cc_basename in
11771 *)
11772 # FIXME: insert proper C++ library support
11773 ld_shlibs_CXX=no
11774 ;;
11775 esac
11776 ;;
11777
11156
11157 cygwin* | mingw* | pw32*)
11158 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11159 # as there is no search path for DLLs.
11160 hardcode_libdir_flag_spec_CXX='-L$libdir'
11161 allow_undefined_flag_CXX=unsupported
11162 always_export_symbols_CXX=no
11163 enable_shared_with_static_runtimes_CXX=yes
11164
11165 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11778 cygwin* | mingw* | pw32*)
11779 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11780 # as there is no search path for DLLs.
11781 hardcode_libdir_flag_spec_CXX='-L$libdir'
11782 allow_undefined_flag_CXX=unsupported
11783 always_export_symbols_CXX=no
11784 enable_shared_with_static_runtimes_CXX=yes
11785
11786 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11166 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11787 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'
11167 # If the export-symbols file already is a .def file (1st line
11168 # is EXPORTS), use it as is; otherwise, prepend...
11169 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11170 cp $export_symbols $output_objdir/$soname.def;
11171 else
11172 echo EXPORTS > $output_objdir/$soname.def;
11173 cat $export_symbols >> $output_objdir/$soname.def;
11174 fi~
11788 # If the export-symbols file already is a .def file (1st line
11789 # is EXPORTS), use it as is; otherwise, prepend...
11790 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11791 cp $export_symbols $output_objdir/$soname.def;
11792 else
11793 echo EXPORTS > $output_objdir/$soname.def;
11794 cat $export_symbols >> $output_objdir/$soname.def;
11795 fi~
11175 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11796 $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'
11176 else
11177 ld_shlibs_CXX=no
11178 fi
11179 ;;
11180 darwin* | rhapsody*)
11797 else
11798 ld_shlibs_CXX=no
11799 fi
11800 ;;
11801 darwin* | rhapsody*)
11181 case "$host_os" in
11182 rhapsody* | darwin1.[012])
11183 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11184 ;;
11185 *) # Darwin 1.3 on
11186 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11187 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11188 else
11189 case ${MACOSX_DEPLOYMENT_TARGET} in
11190 10.[012])
11191 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11192 ;;
11193 10.*)
11194 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11195 ;;
11196 esac
11197 fi
11198 ;;
11199 esac
11200 archive_cmds_need_lc_CXX=no
11201 hardcode_direct_CXX=no
11202 hardcode_automatic_CXX=yes
11203 hardcode_shlibpath_var_CXX=unsupported
11204 whole_archive_flag_spec_CXX=''
11205 link_all_deplibs_CXX=yes
11802 archive_cmds_need_lc_CXX=no
11803 hardcode_direct_CXX=no
11804 hardcode_automatic_CXX=yes
11805 hardcode_shlibpath_var_CXX=unsupported
11806 whole_archive_flag_spec_CXX=''
11807 link_all_deplibs_CXX=yes
11206
11207 if test "$GXX" = yes ; then
11208 lt_int_apple_cc_single_mod=no
11808 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11809 if test "$GXX" = yes ; then
11209 output_verbose_link_cmd='echo'
11810 output_verbose_link_cmd='echo'
11210 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11211 lt_int_apple_cc_single_mod=yes
11811 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}"
11812 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11813 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}"
11814 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}"
11815 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11816 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}"
11817 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}"
11212 fi
11818 fi
11213 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11214 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11215 else
11819 else
11216 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'
11217 fi
11218 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11219 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11220 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11221 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11222 else
11223 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11224 fi
11225 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11226 else
11227 case $cc_basename in
11228 xlc*)
11229 output_verbose_link_cmd='echo'
11820 case $cc_basename in
11821 xlc*)
11822 output_verbose_link_cmd='echo'
11230 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11823 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11231 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11824 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11232 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11233 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11825 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11826 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11234 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11235 ;;
11236 *)
11237 ld_shlibs_CXX=no
11238 ;;
11239 esac
11240 fi
11241 ;;
11242
11243 dgux*)
11244 case $cc_basename in
11245 ec++*)
11246 # FIXME: insert proper C++ library support
11247 ld_shlibs_CXX=no
11248 ;;
11249 ghcx*)
11250 # Green Hills C++ Compiler
11251 # FIXME: insert proper C++ library support
11252 ld_shlibs_CXX=no
11253 ;;
11254 *)
11255 # FIXME: insert proper C++ library support
11256 ld_shlibs_CXX=no
11257 ;;
11258 esac
11259 ;;
11260 freebsd[12]*)
11261 # C++ shared libraries reported to be fairly broken before switch to ELF
11262 ld_shlibs_CXX=no
11263 ;;
11264 freebsd-elf*)
11265 archive_cmds_need_lc_CXX=no
11266 ;;
11827 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11828 ;;
11829 *)
11830 ld_shlibs_CXX=no
11831 ;;
11832 esac
11833 fi
11834 ;;
11835
11836 dgux*)
11837 case $cc_basename in
11838 ec++*)
11839 # FIXME: insert proper C++ library support
11840 ld_shlibs_CXX=no
11841 ;;
11842 ghcx*)
11843 # Green Hills C++ Compiler
11844 # FIXME: insert proper C++ library support
11845 ld_shlibs_CXX=no
11846 ;;
11847 *)
11848 # FIXME: insert proper C++ library support
11849 ld_shlibs_CXX=no
11850 ;;
11851 esac
11852 ;;
11853 freebsd[12]*)
11854 # C++ shared libraries reported to be fairly broken before switch to ELF
11855 ld_shlibs_CXX=no
11856 ;;
11857 freebsd-elf*)
11858 archive_cmds_need_lc_CXX=no
11859 ;;
11267 freebsd* | kfreebsd*-gnu | dragonfly*)
11860 freebsd* | dragonfly*)
11268 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11269 # conventions
11270 ld_shlibs_CXX=yes
11271 ;;
11272 gnu*)
11273 ;;
11274 hpux9*)
11275 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11276 hardcode_libdir_separator_CXX=:
11277 export_dynamic_flag_spec_CXX='${wl}-E'
11278 hardcode_direct_CXX=yes
11279 hardcode_minus_L_CXX=yes # Not in the search PATH,
11280 # but as the default
11281 # location of the library.
11282
11283 case $cc_basename in
11284 CC*)
11285 # FIXME: insert proper C++ library support
11286 ld_shlibs_CXX=no
11287 ;;
11288 aCC*)
11289 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'
11290 # Commands to make compiler produce verbose output that lists
11291 # what "hidden" libraries, object files and flags are used when
11292 # linking a shared library.
11293 #
11294 # There doesn't appear to be a way to prevent this compiler from
11295 # explicitly linking system object files so we need to strip them
11296 # from the output so that they don't get included in the library
11297 # dependencies.
11298 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; echo $list'
11299 ;;
11300 *)
11301 if test "$GXX" = yes; then
11302 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
11303 else
11304 # FIXME: insert proper C++ library support
11305 ld_shlibs_CXX=no
11306 fi
11307 ;;
11308 esac
11309 ;;
11310 hpux10*|hpux11*)
11311 if test $with_gnu_ld = no; then
11861 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11862 # conventions
11863 ld_shlibs_CXX=yes
11864 ;;
11865 gnu*)
11866 ;;
11867 hpux9*)
11868 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11869 hardcode_libdir_separator_CXX=:
11870 export_dynamic_flag_spec_CXX='${wl}-E'
11871 hardcode_direct_CXX=yes
11872 hardcode_minus_L_CXX=yes # Not in the search PATH,
11873 # but as the default
11874 # location of the library.
11875
11876 case $cc_basename in
11877 CC*)
11878 # FIXME: insert proper C++ library support
11879 ld_shlibs_CXX=no
11880 ;;
11881 aCC*)
11882 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'
11883 # Commands to make compiler produce verbose output that lists
11884 # what "hidden" libraries, object files and flags are used when
11885 # linking a shared library.
11886 #
11887 # There doesn't appear to be a way to prevent this compiler from
11888 # explicitly linking system object files so we need to strip them
11889 # from the output so that they don't get included in the library
11890 # dependencies.
11891 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; echo $list'
11892 ;;
11893 *)
11894 if test "$GXX" = yes; then
11895 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
11896 else
11897 # FIXME: insert proper C++ library support
11898 ld_shlibs_CXX=no
11899 fi
11900 ;;
11901 esac
11902 ;;
11903 hpux10*|hpux11*)
11904 if test $with_gnu_ld = no; then
11312 case "$host_cpu" in
11313 hppa*64*)
11314 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11315 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11316 hardcode_libdir_separator_CXX=:
11317 ;;
11318 ia64*)
11319 hardcode_libdir_flag_spec_CXX='-L$libdir'
11320 ;;
11905 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11906 hardcode_libdir_separator_CXX=:
11907
11908 case $host_cpu in
11909 hppa*64*|ia64*) ;;
11321 *)
11910 *)
11322 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11323 hardcode_libdir_separator_CXX=:
11324 export_dynamic_flag_spec_CXX='${wl}-E'
11325 ;;
11326 esac
11327 fi
11911 export_dynamic_flag_spec_CXX='${wl}-E'
11912 ;;
11913 esac
11914 fi
11328 case "$host_cpu" in
11329 hppa*64*)
11915 case $host_cpu in
11916 hppa*64*|ia64*)
11330 hardcode_direct_CXX=no
11331 hardcode_shlibpath_var_CXX=no
11332 ;;
11917 hardcode_direct_CXX=no
11918 hardcode_shlibpath_var_CXX=no
11919 ;;
11333 ia64*)
11334 hardcode_direct_CXX=no
11335 hardcode_shlibpath_var_CXX=no
11336 hardcode_minus_L_CXX=yes # Not in the search PATH,
11337 # but as the default
11338 # location of the library.
11339 ;;
11340 *)
11341 hardcode_direct_CXX=yes
11342 hardcode_minus_L_CXX=yes # Not in the search PATH,
11343 # but as the default
11344 # location of the library.
11345 ;;
11346 esac
11347
11348 case $cc_basename in
11349 CC*)
11350 # FIXME: insert proper C++ library support
11351 ld_shlibs_CXX=no
11352 ;;
11353 aCC*)
11920 *)
11921 hardcode_direct_CXX=yes
11922 hardcode_minus_L_CXX=yes # Not in the search PATH,
11923 # but as the default
11924 # location of the library.
11925 ;;
11926 esac
11927
11928 case $cc_basename in
11929 CC*)
11930 # FIXME: insert proper C++ library support
11931 ld_shlibs_CXX=no
11932 ;;
11933 aCC*)
11354 case "$host_cpu" in
11355 hppa*64*|ia64*)
11356 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11934 case $host_cpu in
11935 hppa*64*)
11936 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11357 ;;
11937 ;;
11938 ia64*)
11939 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11940 ;;
11358 *)
11359 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11360 ;;
11361 esac
11362 # Commands to make compiler produce verbose output that lists
11363 # what "hidden" libraries, object files and flags are used when
11364 # linking a shared library.
11365 #
11366 # There doesn't appear to be a way to prevent this compiler from
11367 # explicitly linking system object files so we need to strip them
11368 # from the output so that they don't get included in the library
11369 # dependencies.
11370 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; echo $list'
11371 ;;
11372 *)
11373 if test "$GXX" = yes; then
11374 if test $with_gnu_ld = no; then
11941 *)
11942 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11943 ;;
11944 esac
11945 # Commands to make compiler produce verbose output that lists
11946 # what "hidden" libraries, object files and flags are used when
11947 # linking a shared library.
11948 #
11949 # There doesn't appear to be a way to prevent this compiler from
11950 # explicitly linking system object files so we need to strip them
11951 # from the output so that they don't get included in the library
11952 # dependencies.
11953 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; echo $list'
11954 ;;
11955 *)
11956 if test "$GXX" = yes; then
11957 if test $with_gnu_ld = no; then
11375 case "$host_cpu" in
11376 ia64*|hppa*64*)
11377 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11958 case $host_cpu in
11959 hppa*64*)
11960 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11378 ;;
11961 ;;
11962 ia64*)
11963 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11964 ;;
11379 *)
11380 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11381 ;;
11382 esac
11383 fi
11384 else
11385 # FIXME: insert proper C++ library support
11386 ld_shlibs_CXX=no
11387 fi
11388 ;;
11389 esac
11390 ;;
11965 *)
11966 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11967 ;;
11968 esac
11969 fi
11970 else
11971 # FIXME: insert proper C++ library support
11972 ld_shlibs_CXX=no
11973 fi
11974 ;;
11975 esac
11976 ;;
11977 interix[3-9]*)
11978 hardcode_direct_CXX=no
11979 hardcode_shlibpath_var_CXX=no
11980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11981 export_dynamic_flag_spec_CXX='${wl}-E'
11982 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11983 # Instead, shared libraries are loaded at an image base (0x10000000 by
11984 # default) and relocated if they conflict, which is a slow very memory
11985 # consuming and fragmenting process. To avoid this, we pick a random,
11986 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11987 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11988 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'
11989 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'
11990 ;;
11391 irix5* | irix6*)
11392 case $cc_basename in
11393 CC*)
11394 # SGI C++
11395 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11396
11397 # Archives containing C++ object files must be created using
11398 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11399 # necessary to make sure instantiated templates are included
11400 # in the archive.
11401 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11402 ;;
11403 *)
11404 if test "$GXX" = yes; then
11405 if test "$with_gnu_ld" = no; then
11406 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11407 else
11408 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11409 fi
11410 fi
11411 link_all_deplibs_CXX=yes
11412 ;;
11413 esac
11414 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11415 hardcode_libdir_separator_CXX=:
11416 ;;
11991 irix5* | irix6*)
11992 case $cc_basename in
11993 CC*)
11994 # SGI C++
11995 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11996
11997 # Archives containing C++ object files must be created using
11998 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11999 # necessary to make sure instantiated templates are included
12000 # in the archive.
12001 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12002 ;;
12003 *)
12004 if test "$GXX" = yes; then
12005 if test "$with_gnu_ld" = no; then
12006 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12007 else
12008 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12009 fi
12010 fi
12011 link_all_deplibs_CXX=yes
12012 ;;
12013 esac
12014 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12015 hardcode_libdir_separator_CXX=:
12016 ;;
11417 linux*)
12017 linux* | k*bsd*-gnu)
11418 case $cc_basename in
11419 KCC*)
11420 # Kuck and Associates, Inc. (KAI) C++ Compiler
11421
11422 # KCC will only create a shared library if the output file
11423 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11424 # to its proper name (with version) after linking.
11425 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'
11426 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'
11427 # Commands to make compiler produce verbose output that lists
11428 # what "hidden" libraries, object files and flags are used when
11429 # linking a shared library.
11430 #
11431 # There doesn't appear to be a way to prevent this compiler from
11432 # explicitly linking system object files so we need to strip them
11433 # from the output so that they don't get included in the library
11434 # dependencies.
11435 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; echo $list'
11436
11437 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11438 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11439
11440 # Archives containing C++ object files must be created using
11441 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11442 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11443 ;;
11444 icpc*)
11445 # Intel C++
11446 with_gnu_ld=yes
11447 # version 8.0 and above of icpc choke on multiply defined symbols
11448 # if we add $predep_objects and $postdep_objects, however 7.1 and
11449 # earlier do not add the objects themselves.
11450 case `$CC -V 2>&1` in
11451 *"Version 7."*)
11452 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11453 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'
11454 ;;
11455 *) # Version 8.0 or newer
11456 tmp_idyn=
11457 case $host_cpu in
11458 ia64*) tmp_idyn=' -i_dynamic';;
11459 esac
11460 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11461 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'
11462 ;;
11463 esac
11464 archive_cmds_need_lc_CXX=no
11465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11466 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11467 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11468 ;;
12018 case $cc_basename in
12019 KCC*)
12020 # Kuck and Associates, Inc. (KAI) C++ Compiler
12021
12022 # KCC will only create a shared library if the output file
12023 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12024 # to its proper name (with version) after linking.
12025 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'
12026 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'
12027 # Commands to make compiler produce verbose output that lists
12028 # what "hidden" libraries, object files and flags are used when
12029 # linking a shared library.
12030 #
12031 # There doesn't appear to be a way to prevent this compiler from
12032 # explicitly linking system object files so we need to strip them
12033 # from the output so that they don't get included in the library
12034 # dependencies.
12035 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; echo $list'
12036
12037 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12038 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12039
12040 # Archives containing C++ object files must be created using
12041 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12042 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12043 ;;
12044 icpc*)
12045 # Intel C++
12046 with_gnu_ld=yes
12047 # version 8.0 and above of icpc choke on multiply defined symbols
12048 # if we add $predep_objects and $postdep_objects, however 7.1 and
12049 # earlier do not add the objects themselves.
12050 case `$CC -V 2>&1` in
12051 *"Version 7."*)
12052 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12053 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'
12054 ;;
12055 *) # Version 8.0 or newer
12056 tmp_idyn=
12057 case $host_cpu in
12058 ia64*) tmp_idyn=' -i_dynamic';;
12059 esac
12060 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12061 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'
12062 ;;
12063 esac
12064 archive_cmds_need_lc_CXX=no
12065 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12066 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12067 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12068 ;;
11469 pgCC*)
12069 pgCC* | pgcpp*)
11470 # Portland Group C++ compiler
11471 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11472 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'
11473
11474 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11475 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12070 # Portland Group C++ compiler
12071 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12072 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'
12073
12074 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12075 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11476 whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12076 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11477 ;;
11478 cxx*)
11479 # Compaq C++
11480 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11481 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'
11482
11483 runpath_var=LD_RUN_PATH
11484 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11485 hardcode_libdir_separator_CXX=:
11486
11487 # Commands to make compiler produce verbose output that lists
11488 # what "hidden" libraries, object files and flags are used when
11489 # linking a shared library.
11490 #
11491 # There doesn't appear to be a way to prevent this compiler from
11492 # explicitly linking system object files so we need to strip them
11493 # from the output so that they don't get included in the library
11494 # dependencies.
11495 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
11496 ;;
12077 ;;
12078 cxx*)
12079 # Compaq C++
12080 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12081 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'
12082
12083 runpath_var=LD_RUN_PATH
12084 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12085 hardcode_libdir_separator_CXX=:
12086
12087 # Commands to make compiler produce verbose output that lists
12088 # what "hidden" libraries, object files and flags are used when
12089 # linking a shared library.
12090 #
12091 # There doesn't appear to be a way to prevent this compiler from
12092 # explicitly linking system object files so we need to strip them
12093 # from the output so that they don't get included in the library
12094 # dependencies.
12095 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
12096 ;;
12097 *)
12098 case `$CC -V 2>&1 | sed 5q` in
12099 *Sun\ C*)
12100 # Sun C++ 5.9
12101 no_undefined_flag_CXX=' -zdefs'
12102 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12103 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'
12104 hardcode_libdir_flag_spec_CXX='-R$libdir'
12105 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12106
12107 # Not sure whether something based on
12108 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12109 # would be better.
12110 output_verbose_link_cmd='echo'
12111
12112 # Archives containing C++ object files must be created using
12113 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12114 # necessary to make sure instantiated templates are included
12115 # in the archive.
12116 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12117 ;;
12118 esac
12119 ;;
11497 esac
11498 ;;
11499 lynxos*)
11500 # FIXME: insert proper C++ library support
11501 ld_shlibs_CXX=no
11502 ;;
11503 m88k*)
11504 # FIXME: insert proper C++ library support
11505 ld_shlibs_CXX=no
11506 ;;
11507 mvs*)
11508 case $cc_basename in
11509 cxx*)
11510 # FIXME: insert proper C++ library support
11511 ld_shlibs_CXX=no
11512 ;;
11513 *)
11514 # FIXME: insert proper C++ library support
11515 ld_shlibs_CXX=no
11516 ;;
11517 esac
11518 ;;
11519 netbsd*)
11520 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11521 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11522 wlarc=
11523 hardcode_libdir_flag_spec_CXX='-R$libdir'
11524 hardcode_direct_CXX=yes
11525 hardcode_shlibpath_var_CXX=no
11526 fi
11527 # Workaround some broken pre-1.5 toolchains
11528 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11529 ;;
11530 openbsd2*)
11531 # C++ shared libraries are fairly broken
11532 ld_shlibs_CXX=no
11533 ;;
11534 openbsd*)
12120 esac
12121 ;;
12122 lynxos*)
12123 # FIXME: insert proper C++ library support
12124 ld_shlibs_CXX=no
12125 ;;
12126 m88k*)
12127 # FIXME: insert proper C++ library support
12128 ld_shlibs_CXX=no
12129 ;;
12130 mvs*)
12131 case $cc_basename in
12132 cxx*)
12133 # FIXME: insert proper C++ library support
12134 ld_shlibs_CXX=no
12135 ;;
12136 *)
12137 # FIXME: insert proper C++ library support
12138 ld_shlibs_CXX=no
12139 ;;
12140 esac
12141 ;;
12142 netbsd*)
12143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12144 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12145 wlarc=
12146 hardcode_libdir_flag_spec_CXX='-R$libdir'
12147 hardcode_direct_CXX=yes
12148 hardcode_shlibpath_var_CXX=no
12149 fi
12150 # Workaround some broken pre-1.5 toolchains
12151 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12152 ;;
12153 openbsd2*)
12154 # C++ shared libraries are fairly broken
12155 ld_shlibs_CXX=no
12156 ;;
12157 openbsd*)
11535 hardcode_direct_CXX=yes
11536 hardcode_shlibpath_var_CXX=no
11537 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11538 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11539 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11540 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11541 export_dynamic_flag_spec_CXX='${wl}-E'
11542 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12158 if test -f /usr/libexec/ld.so; then
12159 hardcode_direct_CXX=yes
12160 hardcode_shlibpath_var_CXX=no
12161 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12162 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12164 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12165 export_dynamic_flag_spec_CXX='${wl}-E'
12166 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12167 fi
12168 output_verbose_link_cmd='echo'
12169 else
12170 ld_shlibs_CXX=no
11543 fi
12171 fi
11544 output_verbose_link_cmd='echo'
11545 ;;
11546 osf3*)
11547 case $cc_basename in
11548 KCC*)
11549 # Kuck and Associates, Inc. (KAI) C++ Compiler
11550
11551 # KCC will only create a shared library if the output file
11552 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11553 # to its proper name (with version) after linking.
11554 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'
11555
11556 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11557 hardcode_libdir_separator_CXX=:
11558
11559 # Archives containing C++ object files must be created using
11560 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11561 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11562
11563 ;;
11564 RCC*)
11565 # Rational C++ 2.4.1
11566 # FIXME: insert proper C++ library support
11567 ld_shlibs_CXX=no
11568 ;;
11569 cxx*)
11570 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11571 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11572
11573 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11574 hardcode_libdir_separator_CXX=:
11575
11576 # Commands to make compiler produce verbose output that lists
11577 # what "hidden" libraries, object files and flags are used when
11578 # linking a shared library.
11579 #
11580 # There doesn't appear to be a way to prevent this compiler from
11581 # explicitly linking system object files so we need to strip them
11582 # from the output so that they don't get included in the library
11583 # dependencies.
11584 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11585 ;;
11586 *)
11587 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11588 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11589 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11590
11591 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11592 hardcode_libdir_separator_CXX=:
11593
11594 # Commands to make compiler produce verbose output that lists
11595 # what "hidden" libraries, object files and flags are used when
11596 # linking a shared library.
11597 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11598
11599 else
11600 # FIXME: insert proper C++ library support
11601 ld_shlibs_CXX=no
11602 fi
11603 ;;
11604 esac
11605 ;;
11606 osf4* | osf5*)
11607 case $cc_basename in
11608 KCC*)
11609 # Kuck and Associates, Inc. (KAI) C++ Compiler
11610
11611 # KCC will only create a shared library if the output file
11612 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11613 # to its proper name (with version) after linking.
11614 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'
11615
11616 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11617 hardcode_libdir_separator_CXX=:
11618
11619 # Archives containing C++ object files must be created using
11620 # the KAI C++ compiler.
11621 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11622 ;;
11623 RCC*)
11624 # Rational C++ 2.4.1
11625 # FIXME: insert proper C++ library support
11626 ld_shlibs_CXX=no
11627 ;;
11628 cxx*)
11629 allow_undefined_flag_CXX=' -expect_unresolved \*'
11630 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11631 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11632 echo "-hidden">> $lib.exp~
11633 $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~
11634 $rm $lib.exp'
11635
11636 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11637 hardcode_libdir_separator_CXX=:
11638
11639 # Commands to make compiler produce verbose output that lists
11640 # what "hidden" libraries, object files and flags are used when
11641 # linking a shared library.
11642 #
11643 # There doesn't appear to be a way to prevent this compiler from
11644 # explicitly linking system object files so we need to strip them
11645 # from the output so that they don't get included in the library
11646 # dependencies.
11647 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11648 ;;
11649 *)
11650 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11651 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11652 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11653
11654 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11655 hardcode_libdir_separator_CXX=:
11656
11657 # Commands to make compiler produce verbose output that lists
11658 # what "hidden" libraries, object files and flags are used when
11659 # linking a shared library.
11660 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11661
11662 else
11663 # FIXME: insert proper C++ library support
11664 ld_shlibs_CXX=no
11665 fi
11666 ;;
11667 esac
11668 ;;
11669 psos*)
11670 # FIXME: insert proper C++ library support
11671 ld_shlibs_CXX=no
11672 ;;
12172 ;;
12173 osf3*)
12174 case $cc_basename in
12175 KCC*)
12176 # Kuck and Associates, Inc. (KAI) C++ Compiler
12177
12178 # KCC will only create a shared library if the output file
12179 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12180 # to its proper name (with version) after linking.
12181 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'
12182
12183 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12184 hardcode_libdir_separator_CXX=:
12185
12186 # Archives containing C++ object files must be created using
12187 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12188 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12189
12190 ;;
12191 RCC*)
12192 # Rational C++ 2.4.1
12193 # FIXME: insert proper C++ library support
12194 ld_shlibs_CXX=no
12195 ;;
12196 cxx*)
12197 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12198 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12199
12200 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12201 hardcode_libdir_separator_CXX=:
12202
12203 # Commands to make compiler produce verbose output that lists
12204 # what "hidden" libraries, object files and flags are used when
12205 # linking a shared library.
12206 #
12207 # There doesn't appear to be a way to prevent this compiler from
12208 # explicitly linking system object files so we need to strip them
12209 # from the output so that they don't get included in the library
12210 # dependencies.
12211 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
12212 ;;
12213 *)
12214 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12215 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12216 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12217
12218 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12219 hardcode_libdir_separator_CXX=:
12220
12221 # Commands to make compiler produce verbose output that lists
12222 # what "hidden" libraries, object files and flags are used when
12223 # linking a shared library.
12224 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12225
12226 else
12227 # FIXME: insert proper C++ library support
12228 ld_shlibs_CXX=no
12229 fi
12230 ;;
12231 esac
12232 ;;
12233 osf4* | osf5*)
12234 case $cc_basename in
12235 KCC*)
12236 # Kuck and Associates, Inc. (KAI) C++ Compiler
12237
12238 # KCC will only create a shared library if the output file
12239 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12240 # to its proper name (with version) after linking.
12241 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'
12242
12243 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12244 hardcode_libdir_separator_CXX=:
12245
12246 # Archives containing C++ object files must be created using
12247 # the KAI C++ compiler.
12248 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12249 ;;
12250 RCC*)
12251 # Rational C++ 2.4.1
12252 # FIXME: insert proper C++ library support
12253 ld_shlibs_CXX=no
12254 ;;
12255 cxx*)
12256 allow_undefined_flag_CXX=' -expect_unresolved \*'
12257 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12258 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12259 echo "-hidden">> $lib.exp~
12260 $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~
12261 $rm $lib.exp'
12262
12263 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12264 hardcode_libdir_separator_CXX=:
12265
12266 # Commands to make compiler produce verbose output that lists
12267 # what "hidden" libraries, object files and flags are used when
12268 # linking a shared library.
12269 #
12270 # There doesn't appear to be a way to prevent this compiler from
12271 # explicitly linking system object files so we need to strip them
12272 # from the output so that they don't get included in the library
12273 # dependencies.
12274 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
12275 ;;
12276 *)
12277 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12278 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12279 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12280
12281 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12282 hardcode_libdir_separator_CXX=:
12283
12284 # Commands to make compiler produce verbose output that lists
12285 # what "hidden" libraries, object files and flags are used when
12286 # linking a shared library.
12287 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12288
12289 else
12290 # FIXME: insert proper C++ library support
12291 ld_shlibs_CXX=no
12292 fi
12293 ;;
12294 esac
12295 ;;
12296 psos*)
12297 # FIXME: insert proper C++ library support
12298 ld_shlibs_CXX=no
12299 ;;
11673 sco*)
11674 archive_cmds_need_lc_CXX=no
11675 case $cc_basename in
11676 CC*)
11677 # FIXME: insert proper C++ library support
11678 ld_shlibs_CXX=no
11679 ;;
11680 *)
11681 # FIXME: insert proper C++ library support
11682 ld_shlibs_CXX=no
11683 ;;
11684 esac
11685 ;;
11686 sunos4*)
11687 case $cc_basename in
11688 CC*)
11689 # Sun C++ 4.x
11690 # FIXME: insert proper C++ library support
11691 ld_shlibs_CXX=no
11692 ;;
11693 lcc*)
11694 # Lucid
11695 # FIXME: insert proper C++ library support
11696 ld_shlibs_CXX=no
11697 ;;
11698 *)
11699 # FIXME: insert proper C++ library support
11700 ld_shlibs_CXX=no
11701 ;;
11702 esac
11703 ;;
11704 solaris*)
11705 case $cc_basename in
11706 CC*)
11707 # Sun C++ 4.2, 5.x and Centerline C++
12300 sunos4*)
12301 case $cc_basename in
12302 CC*)
12303 # Sun C++ 4.x
12304 # FIXME: insert proper C++ library support
12305 ld_shlibs_CXX=no
12306 ;;
12307 lcc*)
12308 # Lucid
12309 # FIXME: insert proper C++ library support
12310 ld_shlibs_CXX=no
12311 ;;
12312 *)
12313 # FIXME: insert proper C++ library support
12314 ld_shlibs_CXX=no
12315 ;;
12316 esac
12317 ;;
12318 solaris*)
12319 case $cc_basename in
12320 CC*)
12321 # Sun C++ 4.2, 5.x and Centerline C++
12322 archive_cmds_need_lc_CXX=yes
11708 no_undefined_flag_CXX=' -zdefs'
12323 no_undefined_flag_CXX=' -zdefs'
11709 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12324 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11710 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12325 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11711 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12326 $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'
11712
11713 hardcode_libdir_flag_spec_CXX='-R$libdir'
11714 hardcode_shlibpath_var_CXX=no
11715 case $host_os in
11716 solaris2.[0-5] | solaris2.[0-5].*) ;;
11717 *)
12327
12328 hardcode_libdir_flag_spec_CXX='-R$libdir'
12329 hardcode_shlibpath_var_CXX=no
12330 case $host_os in
12331 solaris2.[0-5] | solaris2.[0-5].*) ;;
12332 *)
11718 # The C++ compiler is used as linker so we must use $wl
11719 # flag to pass the commands to the underlying system
11720 # linker. We must also pass each convience library through
11721 # to the system linker between allextract/defaultextract.
11722 # The C++ compiler will combine linker options so we
11723 # cannot just pass the convience library names through
11724 # without $wl.
12333 # The compiler driver will combine and reorder linker options,
12334 # but understands `-z linker_flag'.
11725 # Supported since Solaris 2.6 (maybe 2.5.1?)
12335 # Supported since Solaris 2.6 (maybe 2.5.1?)
11726 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12336 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11727 ;;
11728 esac
11729 link_all_deplibs_CXX=yes
11730
12337 ;;
12338 esac
12339 link_all_deplibs_CXX=yes
12340
11731 # Commands to make compiler produce verbose output that lists
11732 # what "hidden" libraries, object files and flags are used when
11733 # linking a shared library.
11734 #
11735 # There doesn't appear to be a way to prevent this compiler from
11736 # explicitly linking system object files so we need to strip them
11737 # from the output so that they don't get included in the library
11738 # dependencies.
11739 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12341 output_verbose_link_cmd='echo'
11740
11741 # Archives containing C++ object files must be created using
11742 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11743 # necessary to make sure instantiated templates are included
11744 # in the archive.
11745 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11746 ;;
11747 gcx*)
11748 # Green Hills C++ Compiler
11749 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11750
11751 # The C++ compiler must be used to create the archive.
11752 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11753 ;;
11754 *)
11755 # GNU C++ compiler with Solaris linker
11756 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11757 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11758 if $CC --version | grep -v '^2\.7' > /dev/null; then
11759 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11760 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11761 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11762
11763 # Commands to make compiler produce verbose output that lists
11764 # what "hidden" libraries, object files and flags are used when
11765 # linking a shared library.
11766 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11767 else
11768 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11769 # platform.
11770 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11771 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11772 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11773
11774 # Commands to make compiler produce verbose output that lists
11775 # what "hidden" libraries, object files and flags are used when
11776 # linking a shared library.
11777 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11778 fi
11779
11780 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12342
12343 # Archives containing C++ object files must be created using
12344 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12345 # necessary to make sure instantiated templates are included
12346 # in the archive.
12347 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12348 ;;
12349 gcx*)
12350 # Green Hills C++ Compiler
12351 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12352
12353 # The C++ compiler must be used to create the archive.
12354 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12355 ;;
12356 *)
12357 # GNU C++ compiler with Solaris linker
12358 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12359 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12360 if $CC --version | grep -v '^2\.7' > /dev/null; then
12361 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12362 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12363 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12364
12365 # Commands to make compiler produce verbose output that lists
12366 # what "hidden" libraries, object files and flags are used when
12367 # linking a shared library.
12368 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12369 else
12370 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12371 # platform.
12372 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12373 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12374 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12375
12376 # Commands to make compiler produce verbose output that lists
12377 # what "hidden" libraries, object files and flags are used when
12378 # linking a shared library.
12379 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12380 fi
12381
12382 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12383 case $host_os in
12384 solaris2.[0-5] | solaris2.[0-5].*) ;;
12385 *)
12386 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12387 ;;
12388 esac
11781 fi
11782 ;;
11783 esac
11784 ;;
12389 fi
12390 ;;
12391 esac
12392 ;;
11785 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12393 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12394 no_undefined_flag_CXX='${wl}-z,text'
11786 archive_cmds_need_lc_CXX=no
12395 archive_cmds_need_lc_CXX=no
12396 hardcode_shlibpath_var_CXX=no
12397 runpath_var='LD_RUN_PATH'
12398
12399 case $cc_basename in
12400 CC*)
12401 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12402 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12403 ;;
12404 *)
12405 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12406 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12407 ;;
12408 esac
11787 ;;
12409 ;;
12410 sysv5* | sco3.2v5* | sco5v6*)
12411 # Note: We can NOT use -z defs as we might desire, because we do not
12412 # link with -lc, and that would cause any symbols used from libc to
12413 # always be unresolved, which means just about no library would
12414 # ever link correctly. If we're not using GNU ld we use -z text
12415 # though, which does catch some bad symbols but isn't as heavy-handed
12416 # as -z defs.
12417 # For security reasons, it is highly recommended that you always
12418 # use absolute paths for naming shared libraries, and exclude the
12419 # DT_RUNPATH tag from executables and libraries. But doing so
12420 # requires that you compile everything twice, which is a pain.
12421 # So that behaviour is only enabled if SCOABSPATH is set to a
12422 # non-empty value in the environment. Most likely only useful for
12423 # creating official distributions of packages.
12424 # This is a hack until libtool officially supports absolute path
12425 # names for shared libraries.
12426 no_undefined_flag_CXX='${wl}-z,text'
12427 allow_undefined_flag_CXX='${wl}-z,nodefs'
12428 archive_cmds_need_lc_CXX=no
12429 hardcode_shlibpath_var_CXX=no
12430 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12431 hardcode_libdir_separator_CXX=':'
12432 link_all_deplibs_CXX=yes
12433 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12434 runpath_var='LD_RUN_PATH'
12435
12436 case $cc_basename in
12437 CC*)
12438 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12439 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12440 ;;
12441 *)
12442 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12443 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12444 ;;
12445 esac
12446 ;;
11788 tandem*)
11789 case $cc_basename in
11790 NCC*)
11791 # NonStop-UX NCC 3.20
11792 # FIXME: insert proper C++ library support
11793 ld_shlibs_CXX=no
11794 ;;
11795 *)
11796 # FIXME: insert proper C++ library support
11797 ld_shlibs_CXX=no
11798 ;;
11799 esac
11800 ;;
11801 vxworks*)
11802 # FIXME: insert proper C++ library support
11803 ld_shlibs_CXX=no
11804 ;;
11805 *)
11806 # FIXME: insert proper C++ library support
11807 ld_shlibs_CXX=no
11808 ;;
11809esac
11810{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11811echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11812test "$ld_shlibs_CXX" = no && can_build_shared=no
11813
11814GCC_CXX="$GXX"
11815LD_CXX="$LD"
11816
12447 tandem*)
12448 case $cc_basename in
12449 NCC*)
12450 # NonStop-UX NCC 3.20
12451 # FIXME: insert proper C++ library support
12452 ld_shlibs_CXX=no
12453 ;;
12454 *)
12455 # FIXME: insert proper C++ library support
12456 ld_shlibs_CXX=no
12457 ;;
12458 esac
12459 ;;
12460 vxworks*)
12461 # FIXME: insert proper C++ library support
12462 ld_shlibs_CXX=no
12463 ;;
12464 *)
12465 # FIXME: insert proper C++ library support
12466 ld_shlibs_CXX=no
12467 ;;
12468esac
12469{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12470echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12471test "$ld_shlibs_CXX" = no && can_build_shared=no
12472
12473GCC_CXX="$GXX"
12474LD_CXX="$LD"
12475
11817
11818cat > conftest.$ac_ext <<EOF
11819class Foo
11820{
11821public:
11822 Foo (void) { a = 0; }
11823private:
11824 int a;
11825};
11826EOF
11827
11828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829 (eval $ac_compile) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; then
11833 # Parse the compiler output and extract the necessary
11834 # objects, libraries and library flags.
11835
11836 # Sentinel used to keep track of whether or not we are before
11837 # the conftest object file.
11838 pre_test_object_deps_done=no
11839
11840 # The `*' in the case matches for architectures that use `case' in
11841 # $output_verbose_cmd can trigger glob expansion during the loop
11842 # eval without this substitution.
12476cat > conftest.$ac_ext <<EOF
12477class Foo
12478{
12479public:
12480 Foo (void) { a = 0; }
12481private:
12482 int a;
12483};
12484EOF
12485
12486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12487 (eval $ac_compile) 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; then
12491 # Parse the compiler output and extract the necessary
12492 # objects, libraries and library flags.
12493
12494 # Sentinel used to keep track of whether or not we are before
12495 # the conftest object file.
12496 pre_test_object_deps_done=no
12497
12498 # The `*' in the case matches for architectures that use `case' in
12499 # $output_verbose_cmd can trigger glob expansion during the loop
12500 # eval without this substitution.
11843 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12501 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11844
11845 for p in `eval $output_verbose_link_cmd`; do
11846 case $p in
11847
11848 -L* | -R* | -l*)
11849 # Some compilers place space between "-{L,R}" and the path.
11850 # Remove the space.
11851 if test $p = "-L" \
11852 || test $p = "-R"; then
11853 prev=$p
11854 continue
11855 else
11856 prev=
11857 fi
11858
11859 if test "$pre_test_object_deps_done" = no; then
11860 case $p in
11861 -L* | -R*)
11862 # Internal compiler library paths should come after those
11863 # provided the user. The postdeps already come after the
11864 # user supplied libs so there is no need to process them.
11865 if test -z "$compiler_lib_search_path_CXX"; then
11866 compiler_lib_search_path_CXX="${prev}${p}"
11867 else
11868 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11869 fi
11870 ;;
11871 # The "-l" case would never come before the object being
11872 # linked, so don't bother handling this case.
11873 esac
11874 else
11875 if test -z "$postdeps_CXX"; then
11876 postdeps_CXX="${prev}${p}"
11877 else
11878 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11879 fi
11880 fi
11881 ;;
11882
11883 *.$objext)
11884 # This assumes that the test object file only shows up
11885 # once in the compiler output.
11886 if test "$p" = "conftest.$objext"; then
11887 pre_test_object_deps_done=yes
11888 continue
11889 fi
11890
11891 if test "$pre_test_object_deps_done" = no; then
11892 if test -z "$predep_objects_CXX"; then
11893 predep_objects_CXX="$p"
11894 else
11895 predep_objects_CXX="$predep_objects_CXX $p"
11896 fi
11897 else
11898 if test -z "$postdep_objects_CXX"; then
11899 postdep_objects_CXX="$p"
11900 else
11901 postdep_objects_CXX="$postdep_objects_CXX $p"
11902 fi
11903 fi
11904 ;;
11905
11906 *) ;; # Ignore the rest.
11907
11908 esac
11909 done
11910
11911 # Clean up.
11912 rm -f a.out a.exe
11913else
11914 echo "libtool.m4: error: problem compiling CXX test program"
11915fi
11916
11917$rm -f confest.$objext
11918
12502
12503 for p in `eval $output_verbose_link_cmd`; do
12504 case $p in
12505
12506 -L* | -R* | -l*)
12507 # Some compilers place space between "-{L,R}" and the path.
12508 # Remove the space.
12509 if test $p = "-L" \
12510 || test $p = "-R"; then
12511 prev=$p
12512 continue
12513 else
12514 prev=
12515 fi
12516
12517 if test "$pre_test_object_deps_done" = no; then
12518 case $p in
12519 -L* | -R*)
12520 # Internal compiler library paths should come after those
12521 # provided the user. The postdeps already come after the
12522 # user supplied libs so there is no need to process them.
12523 if test -z "$compiler_lib_search_path_CXX"; then
12524 compiler_lib_search_path_CXX="${prev}${p}"
12525 else
12526 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12527 fi
12528 ;;
12529 # The "-l" case would never come before the object being
12530 # linked, so don't bother handling this case.
12531 esac
12532 else
12533 if test -z "$postdeps_CXX"; then
12534 postdeps_CXX="${prev}${p}"
12535 else
12536 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12537 fi
12538 fi
12539 ;;
12540
12541 *.$objext)
12542 # This assumes that the test object file only shows up
12543 # once in the compiler output.
12544 if test "$p" = "conftest.$objext"; then
12545 pre_test_object_deps_done=yes
12546 continue
12547 fi
12548
12549 if test "$pre_test_object_deps_done" = no; then
12550 if test -z "$predep_objects_CXX"; then
12551 predep_objects_CXX="$p"
12552 else
12553 predep_objects_CXX="$predep_objects_CXX $p"
12554 fi
12555 else
12556 if test -z "$postdep_objects_CXX"; then
12557 postdep_objects_CXX="$p"
12558 else
12559 postdep_objects_CXX="$postdep_objects_CXX $p"
12560 fi
12561 fi
12562 ;;
12563
12564 *) ;; # Ignore the rest.
12565
12566 esac
12567 done
12568
12569 # Clean up.
12570 rm -f a.out a.exe
12571else
12572 echo "libtool.m4: error: problem compiling CXX test program"
12573fi
12574
12575$rm -f confest.$objext
12576
12577compiler_lib_search_dirs_CXX=
12578if test -n "$compiler_lib_search_path_CXX"; then
12579 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12580fi
12581
12582# PORTME: override above test on systems where it is broken
12583case $host_os in
12584interix[3-9]*)
12585 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12586 # hack all around it, let's just trust "g++" to DTRT.
12587 predep_objects_CXX=
12588 postdep_objects_CXX=
12589 postdeps_CXX=
12590 ;;
12591
12592linux*)
12593 case `$CC -V 2>&1 | sed 5q` in
12594 *Sun\ C*)
12595 # Sun C++ 5.9
12596 #
12597 # The more standards-conforming stlport4 library is
12598 # incompatible with the Cstd library. Avoid specifying
12599 # it if it's in CXXFLAGS. Ignore libCrun as
12600 # -library=stlport4 depends on it.
12601 case " $CXX $CXXFLAGS " in
12602 *" -library=stlport4 "*)
12603 solaris_use_stlport4=yes
12604 ;;
12605 esac
12606 if test "$solaris_use_stlport4" != yes; then
12607 postdeps_CXX='-library=Cstd -library=Crun'
12608 fi
12609 ;;
12610 esac
12611 ;;
12612
12613solaris*)
12614 case $cc_basename in
12615 CC*)
12616 # The more standards-conforming stlport4 library is
12617 # incompatible with the Cstd library. Avoid specifying
12618 # it if it's in CXXFLAGS. Ignore libCrun as
12619 # -library=stlport4 depends on it.
12620 case " $CXX $CXXFLAGS " in
12621 *" -library=stlport4 "*)
12622 solaris_use_stlport4=yes
12623 ;;
12624 esac
12625
12626 # Adding this requires a known-good setup of shared libraries for
12627 # Sun compiler versions before 5.6, else PIC objects from an old
12628 # archive will be linked into the output, leading to subtle bugs.
12629 if test "$solaris_use_stlport4" != yes; then
12630 postdeps_CXX='-library=Cstd -library=Crun'
12631 fi
12632 ;;
12633 esac
12634 ;;
12635esac
12636
11919case " $postdeps_CXX " in
11920*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11921esac
11922
11923lt_prog_compiler_wl_CXX=
11924lt_prog_compiler_pic_CXX=
11925lt_prog_compiler_static_CXX=
11926
11927{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11928echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11929
11930 # C++ specific cases for pic, static, wl, etc.
11931 if test "$GXX" = yes; then
11932 lt_prog_compiler_wl_CXX='-Wl,'
11933 lt_prog_compiler_static_CXX='-static'
11934
11935 case $host_os in
11936 aix*)
11937 # All AIX code is PIC.
11938 if test "$host_cpu" = ia64; then
11939 # AIX 5 now supports IA64 processor
11940 lt_prog_compiler_static_CXX='-Bstatic'
11941 fi
11942 ;;
11943 amigaos*)
11944 # FIXME: we need at least 68020 code to build shared libraries, but
11945 # adding the `-m68020' flag to GCC prevents building anything better,
11946 # like `-m68040'.
11947 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11948 ;;
12637case " $postdeps_CXX " in
12638*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12639esac
12640
12641lt_prog_compiler_wl_CXX=
12642lt_prog_compiler_pic_CXX=
12643lt_prog_compiler_static_CXX=
12644
12645{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12646echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12647
12648 # C++ specific cases for pic, static, wl, etc.
12649 if test "$GXX" = yes; then
12650 lt_prog_compiler_wl_CXX='-Wl,'
12651 lt_prog_compiler_static_CXX='-static'
12652
12653 case $host_os in
12654 aix*)
12655 # All AIX code is PIC.
12656 if test "$host_cpu" = ia64; then
12657 # AIX 5 now supports IA64 processor
12658 lt_prog_compiler_static_CXX='-Bstatic'
12659 fi
12660 ;;
12661 amigaos*)
12662 # FIXME: we need at least 68020 code to build shared libraries, but
12663 # adding the `-m68020' flag to GCC prevents building anything better,
12664 # like `-m68040'.
12665 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12666 ;;
11949 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12667 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11950 # PIC is the default for these OSes.
11951 ;;
12668 # PIC is the default for these OSes.
12669 ;;
11952 mingw* | os2* | pw32*)
12670 mingw* | cygwin* | os2* | pw32*)
11953 # This hack is so that the source file can tell whether it is being
11954 # built for inclusion in a dll (and should export symbols for example).
12671 # This hack is so that the source file can tell whether it is being
12672 # built for inclusion in a dll (and should export symbols for example).
12673 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12674 # (--disable-auto-import) libraries
11955 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11956 ;;
11957 darwin* | rhapsody*)
11958 # PIC is the default on this platform
11959 # Common symbols not allowed in MH_DYLIB files
11960 lt_prog_compiler_pic_CXX='-fno-common'
11961 ;;
11962 *djgpp*)
11963 # DJGPP does not support shared libraries at all
11964 lt_prog_compiler_pic_CXX=
11965 ;;
12675 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12676 ;;
12677 darwin* | rhapsody*)
12678 # PIC is the default on this platform
12679 # Common symbols not allowed in MH_DYLIB files
12680 lt_prog_compiler_pic_CXX='-fno-common'
12681 ;;
12682 *djgpp*)
12683 # DJGPP does not support shared libraries at all
12684 lt_prog_compiler_pic_CXX=
12685 ;;
12686 interix[3-9]*)
12687 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12688 # Instead, we relocate shared libraries at runtime.
12689 ;;
11966 sysv4*MP*)
11967 if test -d /usr/nec; then
11968 lt_prog_compiler_pic_CXX=-Kconform_pic
11969 fi
11970 ;;
11971 hpux*)
11972 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11973 # not for PA HP-UX.
12690 sysv4*MP*)
12691 if test -d /usr/nec; then
12692 lt_prog_compiler_pic_CXX=-Kconform_pic
12693 fi
12694 ;;
12695 hpux*)
12696 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12697 # not for PA HP-UX.
11974 case "$host_cpu" in
12698 case $host_cpu in
11975 hppa*64*|ia64*)
11976 ;;
11977 *)
11978 lt_prog_compiler_pic_CXX='-fPIC'
11979 ;;
11980 esac
11981 ;;
11982 *)
11983 lt_prog_compiler_pic_CXX='-fPIC'
11984 ;;
11985 esac
11986 else
11987 case $host_os in
12699 hppa*64*|ia64*)
12700 ;;
12701 *)
12702 lt_prog_compiler_pic_CXX='-fPIC'
12703 ;;
12704 esac
12705 ;;
12706 *)
12707 lt_prog_compiler_pic_CXX='-fPIC'
12708 ;;
12709 esac
12710 else
12711 case $host_os in
11988 aix4* | aix5*)
12712 aix[4-9]*)
11989 # All AIX code is PIC.
11990 if test "$host_cpu" = ia64; then
11991 # AIX 5 now supports IA64 processor
11992 lt_prog_compiler_static_CXX='-Bstatic'
11993 else
11994 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11995 fi
11996 ;;
11997 chorus*)
11998 case $cc_basename in
11999 cxch68*)
12000 # Green Hills C++ Compiler
12001 # _LT_AC_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"
12002 ;;
12003 esac
12004 ;;
12005 darwin*)
12006 # PIC is the default on this platform
12007 # Common symbols not allowed in MH_DYLIB files
12008 case $cc_basename in
12009 xlc*)
12010 lt_prog_compiler_pic_CXX='-qnocommon'
12011 lt_prog_compiler_wl_CXX='-Wl,'
12012 ;;
12013 esac
12014 ;;
12015 dgux*)
12016 case $cc_basename in
12017 ec++*)
12018 lt_prog_compiler_pic_CXX='-KPIC'
12019 ;;
12020 ghcx*)
12021 # Green Hills C++ Compiler
12022 lt_prog_compiler_pic_CXX='-pic'
12023 ;;
12024 *)
12025 ;;
12026 esac
12027 ;;
12713 # All AIX code is PIC.
12714 if test "$host_cpu" = ia64; then
12715 # AIX 5 now supports IA64 processor
12716 lt_prog_compiler_static_CXX='-Bstatic'
12717 else
12718 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12719 fi
12720 ;;
12721 chorus*)
12722 case $cc_basename in
12723 cxch68*)
12724 # Green Hills C++ Compiler
12725 # _LT_AC_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"
12726 ;;
12727 esac
12728 ;;
12729 darwin*)
12730 # PIC is the default on this platform
12731 # Common symbols not allowed in MH_DYLIB files
12732 case $cc_basename in
12733 xlc*)
12734 lt_prog_compiler_pic_CXX='-qnocommon'
12735 lt_prog_compiler_wl_CXX='-Wl,'
12736 ;;
12737 esac
12738 ;;
12739 dgux*)
12740 case $cc_basename in
12741 ec++*)
12742 lt_prog_compiler_pic_CXX='-KPIC'
12743 ;;
12744 ghcx*)
12745 # Green Hills C++ Compiler
12746 lt_prog_compiler_pic_CXX='-pic'
12747 ;;
12748 *)
12749 ;;
12750 esac
12751 ;;
12028 freebsd* | kfreebsd*-gnu | dragonfly*)
12752 freebsd* | dragonfly*)
12029 # FreeBSD uses GNU C++
12030 ;;
12031 hpux9* | hpux10* | hpux11*)
12032 case $cc_basename in
12033 CC*)
12034 lt_prog_compiler_wl_CXX='-Wl,'
12753 # FreeBSD uses GNU C++
12754 ;;
12755 hpux9* | hpux10* | hpux11*)
12756 case $cc_basename in
12757 CC*)
12758 lt_prog_compiler_wl_CXX='-Wl,'
12035 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12759 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12036 if test "$host_cpu" != ia64; then
12037 lt_prog_compiler_pic_CXX='+Z'
12038 fi
12039 ;;
12040 aCC*)
12041 lt_prog_compiler_wl_CXX='-Wl,'
12760 if test "$host_cpu" != ia64; then
12761 lt_prog_compiler_pic_CXX='+Z'
12762 fi
12763 ;;
12764 aCC*)
12765 lt_prog_compiler_wl_CXX='-Wl,'
12042 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12043 case "$host_cpu" in
12766 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12767 case $host_cpu in
12044 hppa*64*|ia64*)
12045 # +Z the default
12046 ;;
12047 *)
12048 lt_prog_compiler_pic_CXX='+Z'
12049 ;;
12050 esac
12051 ;;
12052 *)
12053 ;;
12054 esac
12055 ;;
12768 hppa*64*|ia64*)
12769 # +Z the default
12770 ;;
12771 *)
12772 lt_prog_compiler_pic_CXX='+Z'
12773 ;;
12774 esac
12775 ;;
12776 *)
12777 ;;
12778 esac
12779 ;;
12780 interix*)
12781 # This is c89, which is MS Visual C++ (no shared libs)
12782 # Anyone wants to do a port?
12783 ;;
12056 irix5* | irix6* | nonstopux*)
12057 case $cc_basename in
12058 CC*)
12059 lt_prog_compiler_wl_CXX='-Wl,'
12060 lt_prog_compiler_static_CXX='-non_shared'
12061 # CC pic flag -KPIC is the default.
12062 ;;
12063 *)
12064 ;;
12065 esac
12066 ;;
12784 irix5* | irix6* | nonstopux*)
12785 case $cc_basename in
12786 CC*)
12787 lt_prog_compiler_wl_CXX='-Wl,'
12788 lt_prog_compiler_static_CXX='-non_shared'
12789 # CC pic flag -KPIC is the default.
12790 ;;
12791 *)
12792 ;;
12793 esac
12794 ;;
12067 linux*)
12795 linux* | k*bsd*-gnu)
12068 case $cc_basename in
12069 KCC*)
12070 # KAI C++ Compiler
12071 lt_prog_compiler_wl_CXX='--backend -Wl,'
12072 lt_prog_compiler_pic_CXX='-fPIC'
12073 ;;
12074 icpc* | ecpc*)
12075 # Intel C++
12076 lt_prog_compiler_wl_CXX='-Wl,'
12077 lt_prog_compiler_pic_CXX='-KPIC'
12078 lt_prog_compiler_static_CXX='-static'
12079 ;;
12796 case $cc_basename in
12797 KCC*)
12798 # KAI C++ Compiler
12799 lt_prog_compiler_wl_CXX='--backend -Wl,'
12800 lt_prog_compiler_pic_CXX='-fPIC'
12801 ;;
12802 icpc* | ecpc*)
12803 # Intel C++
12804 lt_prog_compiler_wl_CXX='-Wl,'
12805 lt_prog_compiler_pic_CXX='-KPIC'
12806 lt_prog_compiler_static_CXX='-static'
12807 ;;
12080 pgCC*)
12808 pgCC* | pgcpp*)
12081 # Portland Group C++ compiler.
12082 lt_prog_compiler_wl_CXX='-Wl,'
12083 lt_prog_compiler_pic_CXX='-fpic'
12809 # Portland Group C++ compiler.
12810 lt_prog_compiler_wl_CXX='-Wl,'
12811 lt_prog_compiler_pic_CXX='-fpic'
12084 lt_prog_compiler_static_CXX='-static'
12812 lt_prog_compiler_static_CXX='-Bstatic'
12085 ;;
12086 cxx*)
12087 # Compaq C++
12088 # Make sure the PIC flag is empty. It appears that all Alpha
12089 # Linux and Compaq Tru64 Unix objects are PIC.
12090 lt_prog_compiler_pic_CXX=
12091 lt_prog_compiler_static_CXX='-non_shared'
12092 ;;
12093 *)
12813 ;;
12814 cxx*)
12815 # Compaq C++
12816 # Make sure the PIC flag is empty. It appears that all Alpha
12817 # Linux and Compaq Tru64 Unix objects are PIC.
12818 lt_prog_compiler_pic_CXX=
12819 lt_prog_compiler_static_CXX='-non_shared'
12820 ;;
12821 *)
12822 case `$CC -V 2>&1 | sed 5q` in
12823 *Sun\ C*)
12824 # Sun C++ 5.9
12825 lt_prog_compiler_pic_CXX='-KPIC'
12826 lt_prog_compiler_static_CXX='-Bstatic'
12827 lt_prog_compiler_wl_CXX='-Qoption ld '
12828 ;;
12829 esac
12094 ;;
12095 esac
12096 ;;
12097 lynxos*)
12098 ;;
12099 m88k*)
12100 ;;
12101 mvs*)
12102 case $cc_basename in
12103 cxx*)
12104 lt_prog_compiler_pic_CXX='-W c,exportall'
12105 ;;
12106 *)
12107 ;;
12108 esac
12109 ;;
12110 netbsd*)
12111 ;;
12112 osf3* | osf4* | osf5*)
12113 case $cc_basename in
12114 KCC*)
12115 lt_prog_compiler_wl_CXX='--backend -Wl,'
12116 ;;
12117 RCC*)
12118 # Rational C++ 2.4.1
12119 lt_prog_compiler_pic_CXX='-pic'
12120 ;;
12121 cxx*)
12122 # Digital/Compaq C++
12123 lt_prog_compiler_wl_CXX='-Wl,'
12124 # Make sure the PIC flag is empty. It appears that all Alpha
12125 # Linux and Compaq Tru64 Unix objects are PIC.
12126 lt_prog_compiler_pic_CXX=
12127 lt_prog_compiler_static_CXX='-non_shared'
12128 ;;
12129 *)
12130 ;;
12131 esac
12132 ;;
12133 psos*)
12134 ;;
12830 ;;
12831 esac
12832 ;;
12833 lynxos*)
12834 ;;
12835 m88k*)
12836 ;;
12837 mvs*)
12838 case $cc_basename in
12839 cxx*)
12840 lt_prog_compiler_pic_CXX='-W c,exportall'
12841 ;;
12842 *)
12843 ;;
12844 esac
12845 ;;
12846 netbsd*)
12847 ;;
12848 osf3* | osf4* | osf5*)
12849 case $cc_basename in
12850 KCC*)
12851 lt_prog_compiler_wl_CXX='--backend -Wl,'
12852 ;;
12853 RCC*)
12854 # Rational C++ 2.4.1
12855 lt_prog_compiler_pic_CXX='-pic'
12856 ;;
12857 cxx*)
12858 # Digital/Compaq C++
12859 lt_prog_compiler_wl_CXX='-Wl,'
12860 # Make sure the PIC flag is empty. It appears that all Alpha
12861 # Linux and Compaq Tru64 Unix objects are PIC.
12862 lt_prog_compiler_pic_CXX=
12863 lt_prog_compiler_static_CXX='-non_shared'
12864 ;;
12865 *)
12866 ;;
12867 esac
12868 ;;
12869 psos*)
12870 ;;
12135 sco*)
12136 case $cc_basename in
12137 CC*)
12138 lt_prog_compiler_pic_CXX='-fPIC'
12139 ;;
12140 *)
12141 ;;
12142 esac
12143 ;;
12144 solaris*)
12145 case $cc_basename in
12146 CC*)
12147 # Sun C++ 4.2, 5.x and Centerline C++
12148 lt_prog_compiler_pic_CXX='-KPIC'
12149 lt_prog_compiler_static_CXX='-Bstatic'
12150 lt_prog_compiler_wl_CXX='-Qoption ld '
12151 ;;
12152 gcx*)
12153 # Green Hills C++ Compiler
12154 lt_prog_compiler_pic_CXX='-PIC'
12155 ;;
12156 *)
12157 ;;
12158 esac
12159 ;;
12160 sunos4*)
12161 case $cc_basename in
12162 CC*)
12163 # Sun C++ 4.x
12164 lt_prog_compiler_pic_CXX='-pic'
12165 lt_prog_compiler_static_CXX='-Bstatic'
12166 ;;
12167 lcc*)
12168 # Lucid
12169 lt_prog_compiler_pic_CXX='-pic'
12170 ;;
12171 *)
12172 ;;
12173 esac
12174 ;;
12175 tandem*)
12176 case $cc_basename in
12177 NCC*)
12178 # NonStop-UX NCC 3.20
12179 lt_prog_compiler_pic_CXX='-KPIC'
12180 ;;
12181 *)
12182 ;;
12183 esac
12184 ;;
12871 solaris*)
12872 case $cc_basename in
12873 CC*)
12874 # Sun C++ 4.2, 5.x and Centerline C++
12875 lt_prog_compiler_pic_CXX='-KPIC'
12876 lt_prog_compiler_static_CXX='-Bstatic'
12877 lt_prog_compiler_wl_CXX='-Qoption ld '
12878 ;;
12879 gcx*)
12880 # Green Hills C++ Compiler
12881 lt_prog_compiler_pic_CXX='-PIC'
12882 ;;
12883 *)
12884 ;;
12885 esac
12886 ;;
12887 sunos4*)
12888 case $cc_basename in
12889 CC*)
12890 # Sun C++ 4.x
12891 lt_prog_compiler_pic_CXX='-pic'
12892 lt_prog_compiler_static_CXX='-Bstatic'
12893 ;;
12894 lcc*)
12895 # Lucid
12896 lt_prog_compiler_pic_CXX='-pic'
12897 ;;
12898 *)
12899 ;;
12900 esac
12901 ;;
12902 tandem*)
12903 case $cc_basename in
12904 NCC*)
12905 # NonStop-UX NCC 3.20
12906 lt_prog_compiler_pic_CXX='-KPIC'
12907 ;;
12908 *)
12909 ;;
12910 esac
12911 ;;
12185 unixware*)
12912 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12913 case $cc_basename in
12914 CC*)
12915 lt_prog_compiler_wl_CXX='-Wl,'
12916 lt_prog_compiler_pic_CXX='-KPIC'
12917 lt_prog_compiler_static_CXX='-Bstatic'
12918 ;;
12919 esac
12186 ;;
12187 vxworks*)
12188 ;;
12189 *)
12190 lt_prog_compiler_can_build_shared_CXX=no
12191 ;;
12192 esac
12193 fi
12194
12195{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12196echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12197
12198#
12199# Check to make sure the PIC flag actually works.
12200#
12201if test -n "$lt_prog_compiler_pic_CXX"; then
12202
12203{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12204echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12920 ;;
12921 vxworks*)
12922 ;;
12923 *)
12924 lt_prog_compiler_can_build_shared_CXX=no
12925 ;;
12926 esac
12927 fi
12928
12929{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12930echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12931
12932#
12933# Check to make sure the PIC flag actually works.
12934#
12935if test -n "$lt_prog_compiler_pic_CXX"; then
12936
12937{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12938echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12205if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12939if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12207else
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941else
12208 lt_prog_compiler_pic_works_CXX=no
12942 lt_cv_prog_compiler_pic_works_CXX=no
12209 ac_outfile=conftest.$ac_objext
12943 ac_outfile=conftest.$ac_objext
12210 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12211 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12212 # Insert the option either (1) after the last *FLAGS variable, or
12213 # (2) before a word containing "conftest.", or (3) at the end.
12214 # Note that $ac_compile itself does not contain backslashes and begins
12215 # with a dollar sign (not a hyphen), so the echo should work correctly.
12216 # The option is referenced via a variable to avoid confusing sed.
12217 lt_compile=`echo "$ac_compile" | $SED \
12945 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12946 # Insert the option either (1) after the last *FLAGS variable, or
12947 # (2) before a word containing "conftest.", or (3) at the end.
12948 # Note that $ac_compile itself does not contain backslashes and begins
12949 # with a dollar sign (not a hyphen), so the echo should work correctly.
12950 # The option is referenced via a variable to avoid confusing sed.
12951 lt_compile=`echo "$ac_compile" | $SED \
12218 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12220 -e 's:$: $lt_compiler_flag:'`
12953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12954 -e 's:$: $lt_compiler_flag:'`
12221 (eval echo "\"\$as_me:12221: $lt_compile\"" >&5)
12955 (eval echo "\"\$as_me:12955: $lt_compile\"" >&5)
12222 (eval "$lt_compile" 2>conftest.err)
12223 ac_status=$?
12224 cat conftest.err >&5
12956 (eval "$lt_compile" 2>conftest.err)
12957 ac_status=$?
12958 cat conftest.err >&5
12225 echo "$as_me:12225: \$? = $ac_status" >&5
12959 echo "$as_me:12959: \$? = $ac_status" >&5
12226 if (exit $ac_status) && test -s "$ac_outfile"; then
12227 # The compiler can only warn and ignore the option if not recognized
12228 # So say no if there are warnings other than the usual output.
12960 if (exit $ac_status) && test -s "$ac_outfile"; then
12961 # The compiler can only warn and ignore the option if not recognized
12962 # So say no if there are warnings other than the usual output.
12229 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12230 $SED '/^$/d' conftest.err >conftest.er2
12231 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12232 lt_prog_compiler_pic_works_CXX=yes
12963 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12966 lt_cv_prog_compiler_pic_works_CXX=yes
12233 fi
12234 fi
12235 $rm conftest*
12236
12237fi
12967 fi
12968 fi
12969 $rm conftest*
12970
12971fi
12238{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12239echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12972{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12973echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12240
12974
12241if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12975if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12242 case $lt_prog_compiler_pic_CXX in
12243 "" | " "*) ;;
12244 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12245 esac
12246else
12247 lt_prog_compiler_pic_CXX=
12248 lt_prog_compiler_can_build_shared_CXX=no
12249fi
12250
12251fi
12976 case $lt_prog_compiler_pic_CXX in
12977 "" | " "*) ;;
12978 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12979 esac
12980else
12981 lt_prog_compiler_pic_CXX=
12982 lt_prog_compiler_can_build_shared_CXX=no
12983fi
12984
12985fi
12252case "$host_os" in
12986case $host_os in
12253 # For platforms which do not support PIC, -DPIC is meaningless:
12254 *djgpp*)
12255 lt_prog_compiler_pic_CXX=
12256 ;;
12257 *)
12258 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12259 ;;
12260esac
12261
12987 # For platforms which do not support PIC, -DPIC is meaningless:
12988 *djgpp*)
12989 lt_prog_compiler_pic_CXX=
12990 ;;
12991 *)
12992 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12993 ;;
12994esac
12995
12996#
12997# Check to make sure the static flag actually works.
12998#
12999wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13000{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13001echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13002if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13004else
13005 lt_cv_prog_compiler_static_works_CXX=no
13006 save_LDFLAGS="$LDFLAGS"
13007 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13008 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13009 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13010 # The linker can only warn and ignore the option if not recognized
13011 # So say no if there are warnings
13012 if test -s conftest.err; then
13013 # Append any errors to the config.log.
13014 cat conftest.err 1>&5
13015 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13017 if diff conftest.exp conftest.er2 >/dev/null; then
13018 lt_cv_prog_compiler_static_works_CXX=yes
13019 fi
13020 else
13021 lt_cv_prog_compiler_static_works_CXX=yes
13022 fi
13023 fi
13024 $rm -r conftest*
13025 LDFLAGS="$save_LDFLAGS"
13026
13027fi
13028{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13029echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13030
13031if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13032 :
13033else
13034 lt_prog_compiler_static_CXX=
13035fi
13036
13037
12262{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12263echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12264if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12266else
12267 lt_cv_prog_compiler_c_o_CXX=no
12268 $rm -r conftest 2>/dev/null
12269 mkdir conftest
12270 cd conftest
12271 mkdir out
13038{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13039echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13040if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13042else
13043 lt_cv_prog_compiler_c_o_CXX=no
13044 $rm -r conftest 2>/dev/null
13045 mkdir conftest
13046 cd conftest
13047 mkdir out
12272 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12273
12274 lt_compiler_flag="-o out/conftest2.$ac_objext"
12275 # Insert the option either (1) after the last *FLAGS variable, or
12276 # (2) before a word containing "conftest.", or (3) at the end.
12277 # Note that $ac_compile itself does not contain backslashes and begins
12278 # with a dollar sign (not a hyphen), so the echo should work correctly.
12279 lt_compile=`echo "$ac_compile" | $SED \
13049
13050 lt_compiler_flag="-o out/conftest2.$ac_objext"
13051 # Insert the option either (1) after the last *FLAGS variable, or
13052 # (2) before a word containing "conftest.", or (3) at the end.
13053 # Note that $ac_compile itself does not contain backslashes and begins
13054 # with a dollar sign (not a hyphen), so the echo should work correctly.
13055 lt_compile=`echo "$ac_compile" | $SED \
12280 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12282 -e 's:$: $lt_compiler_flag:'`
13057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13058 -e 's:$: $lt_compiler_flag:'`
12283 (eval echo "\"\$as_me:12283: $lt_compile\"" >&5)
13059 (eval echo "\"\$as_me:13059: $lt_compile\"" >&5)
12284 (eval "$lt_compile" 2>out/conftest.err)
12285 ac_status=$?
12286 cat out/conftest.err >&5
13060 (eval "$lt_compile" 2>out/conftest.err)
13061 ac_status=$?
13062 cat out/conftest.err >&5
12287 echo "$as_me:12287: \$? = $ac_status" >&5
13063 echo "$as_me:13063: \$? = $ac_status" >&5
12288 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12289 then
12290 # The compiler can only warn and ignore the option if not recognized
12291 # So say no if there are warnings
13064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13065 then
13066 # The compiler can only warn and ignore the option if not recognized
13067 # So say no if there are warnings
12292 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12293 $SED '/^$/d' out/conftest.err >out/conftest.er2
12294 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13068 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12295 lt_cv_prog_compiler_c_o_CXX=yes
12296 fi
12297 fi
13071 lt_cv_prog_compiler_c_o_CXX=yes
13072 fi
13073 fi
12298 chmod u+w .
13074 chmod u+w . 2>&5
12299 $rm conftest*
12300 # SGI C++ compiler will create directory out/ii_files/ for
12301 # template instantiation
12302 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12303 $rm out/* && rmdir out
12304 cd ..
12305 rmdir conftest
12306 $rm conftest*
12307
12308fi
12309{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12310echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12311
12312
12313hard_links="nottested"
12314if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12315 # do not overwrite the value of need_locks provided by the user
12316 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12317echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12318 hard_links=yes
12319 $rm conftest*
12320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12321 touch conftest.a
12322 ln conftest.a conftest.b 2>&5 || hard_links=no
12323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12324 { echo "$as_me:$LINENO: result: $hard_links" >&5
12325echo "${ECHO_T}$hard_links" >&6; }
12326 if test "$hard_links" = no; then
12327 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12328echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12329 need_locks=warn
12330 fi
12331else
12332 need_locks=no
12333fi
12334
12335{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12336echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12337
12338 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12339 case $host_os in
13075 $rm conftest*
13076 # SGI C++ compiler will create directory out/ii_files/ for
13077 # template instantiation
13078 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13079 $rm out/* && rmdir out
13080 cd ..
13081 rmdir conftest
13082 $rm conftest*
13083
13084fi
13085{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13086echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13087
13088
13089hard_links="nottested"
13090if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13091 # do not overwrite the value of need_locks provided by the user
13092 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13093echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13094 hard_links=yes
13095 $rm conftest*
13096 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13097 touch conftest.a
13098 ln conftest.a conftest.b 2>&5 || hard_links=no
13099 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13100 { echo "$as_me:$LINENO: result: $hard_links" >&5
13101echo "${ECHO_T}$hard_links" >&6; }
13102 if test "$hard_links" = no; then
13103 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13104echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13105 need_locks=warn
13106 fi
13107else
13108 need_locks=no
13109fi
13110
13111{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13112echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13113
13114 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13115 case $host_os in
12340 aix4* | aix5*)
13116 aix[4-9]*)
12341 # If we're using GNU nm, then we don't want the "-C" option.
12342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12343 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12344 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12345 else
12346 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'
12347 fi
12348 ;;
12349 pw32*)
12350 export_symbols_cmds_CXX="$ltdll_cmds"
12351 ;;
12352 cygwin* | mingw*)
13117 # If we're using GNU nm, then we don't want the "-C" option.
13118 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13119 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13120 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13121 else
13122 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'
13123 fi
13124 ;;
13125 pw32*)
13126 export_symbols_cmds_CXX="$ltdll_cmds"
13127 ;;
13128 cygwin* | mingw*)
12353 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13129 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12354 ;;
12355 *)
12356 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12357 ;;
12358 esac
13130 ;;
13131 *)
13132 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13133 ;;
13134 esac
13135 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12359
12360{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12361echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12362test "$ld_shlibs_CXX" = no && can_build_shared=no
12363
13136
13137{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13138echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13139test "$ld_shlibs_CXX" = no && can_build_shared=no
13140
12364variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12365if test "$GCC" = yes; then
12366 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12367fi
12368
12369#
12370# Do we need to explicitly link libc?
12371#
12372case "x$archive_cmds_need_lc_CXX" in
12373x|xyes)
12374 # Assume -lc should be added
12375 archive_cmds_need_lc_CXX=yes
12376
12377 if test "$enable_shared" = yes && test "$GCC" = yes; then
12378 case $archive_cmds_CXX in
12379 *'~'*)
12380 # FIXME: we may have to deal with multi-command sequences.
12381 ;;
12382 '$CC '*)
12383 # Test whether the compiler implicitly links with -lc since on some
12384 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12385 # to ld, don't add -lc before -lgcc.
12386 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12387echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12388 $rm conftest*
13141#
13142# Do we need to explicitly link libc?
13143#
13144case "x$archive_cmds_need_lc_CXX" in
13145x|xyes)
13146 # Assume -lc should be added
13147 archive_cmds_need_lc_CXX=yes
13148
13149 if test "$enable_shared" = yes && test "$GCC" = yes; then
13150 case $archive_cmds_CXX in
13151 *'~'*)
13152 # FIXME: we may have to deal with multi-command sequences.
13153 ;;
13154 '$CC '*)
13155 # Test whether the compiler implicitly links with -lc since on some
13156 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13157 # to ld, don't add -lc before -lgcc.
13158 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13159echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13160 $rm conftest*
12389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12390
12391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12392 (eval $ac_compile) 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); } 2>conftest.err; then
12396 soname=conftest
12397 lib=conftest
12398 libobjs=conftest.$ac_objext
12399 deplibs=
12400 wl=$lt_prog_compiler_wl_CXX
13162
13163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13164 (eval $ac_compile) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } 2>conftest.err; then
13168 soname=conftest
13169 lib=conftest
13170 libobjs=conftest.$ac_objext
13171 deplibs=
13172 wl=$lt_prog_compiler_wl_CXX
13173 pic_flag=$lt_prog_compiler_pic_CXX
12401 compiler_flags=-v
12402 linker_flags=-v
12403 verstring=
12404 output_objdir=.
12405 libname=conftest
12406 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12407 allow_undefined_flag_CXX=
12408 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12409 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }
12413 then
12414 archive_cmds_need_lc_CXX=no
12415 else
12416 archive_cmds_need_lc_CXX=yes
12417 fi
12418 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12419 else
12420 cat conftest.err 1>&5
12421 fi
12422 $rm conftest*
12423 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12424echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12425 ;;
12426 esac
12427 fi
12428 ;;
12429esac
12430
12431{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12432echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12433library_names_spec=
12434libname_spec='lib$name'
12435soname_spec=
12436shrext_cmds=".so"
12437postinstall_cmds=
12438postuninstall_cmds=
12439finish_cmds=
12440finish_eval=
12441shlibpath_var=
12442shlibpath_overrides_runpath=unknown
12443version_type=none
12444dynamic_linker="$host_os ld.so"
12445sys_lib_dlsearch_path_spec="/lib /usr/lib"
13174 compiler_flags=-v
13175 linker_flags=-v
13176 verstring=
13177 output_objdir=.
13178 libname=conftest
13179 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13180 allow_undefined_flag_CXX=
13181 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13182 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }
13186 then
13187 archive_cmds_need_lc_CXX=no
13188 else
13189 archive_cmds_need_lc_CXX=yes
13190 fi
13191 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13192 else
13193 cat conftest.err 1>&5
13194 fi
13195 $rm conftest*
13196 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13197echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13198 ;;
13199 esac
13200 fi
13201 ;;
13202esac
13203
13204{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13205echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13206library_names_spec=
13207libname_spec='lib$name'
13208soname_spec=
13209shrext_cmds=".so"
13210postinstall_cmds=
13211postuninstall_cmds=
13212finish_cmds=
13213finish_eval=
13214shlibpath_var=
13215shlibpath_overrides_runpath=unknown
13216version_type=none
13217dynamic_linker="$host_os ld.so"
13218sys_lib_dlsearch_path_spec="/lib /usr/lib"
12446if test "$GCC" = yes; then
12447 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12448 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12449 # if the path contains ";" then we assume it to be the separator
12450 # otherwise default to the standard path separator (i.e. ":") - it is
12451 # assumed that no part of a normal pathname contains ";" but that should
12452 # okay in the real world where ";" in dirpaths is itself problematic.
12453 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12454 else
12455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12456 fi
12457else
12458 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12459fi
13219
12460need_lib_prefix=unknown
12461hardcode_into_libs=no
12462
12463# when you set need_version to no, make sure it does not cause -set_version
12464# flags to be left without arguments
12465need_version=unknown
12466
12467case $host_os in
12468aix3*)
12469 version_type=linux
12470 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12471 shlibpath_var=LIBPATH
12472
12473 # AIX 3 has no versioning support, so we append a major version to the name.
12474 soname_spec='${libname}${release}${shared_ext}$major'
12475 ;;
12476
13220need_lib_prefix=unknown
13221hardcode_into_libs=no
13222
13223# when you set need_version to no, make sure it does not cause -set_version
13224# flags to be left without arguments
13225need_version=unknown
13226
13227case $host_os in
13228aix3*)
13229 version_type=linux
13230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13231 shlibpath_var=LIBPATH
13232
13233 # AIX 3 has no versioning support, so we append a major version to the name.
13234 soname_spec='${libname}${release}${shared_ext}$major'
13235 ;;
13236
12477aix4* | aix5*)
13237aix[4-9]*)
12478 version_type=linux
12479 need_lib_prefix=no
12480 need_version=no
12481 hardcode_into_libs=yes
12482 if test "$host_cpu" = ia64; then
12483 # AIX 5 supports IA64
12484 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12485 shlibpath_var=LD_LIBRARY_PATH
12486 else
12487 # With GCC up to 2.95.x, collect2 would create an import file
12488 # for dependence libraries. The import file would start with
12489 # the line `#! .'. This would cause the generated library to
12490 # depend on `.', always an invalid library. This was fixed in
12491 # development snapshots of GCC prior to 3.0.
12492 case $host_os in
12493 aix4 | aix4.[01] | aix4.[01].*)
12494 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12495 echo ' yes '
12496 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12497 :
12498 else
12499 can_build_shared=no
12500 fi
12501 ;;
12502 esac
12503 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12504 # soname into executable. Probably we can add versioning support to
12505 # collect2, so additional links can be useful in future.
12506 if test "$aix_use_runtimelinking" = yes; then
12507 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12508 # instead of lib<name>.a to let people know that these are not
12509 # typical AIX shared libraries.
12510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12511 else
12512 # We preserve .a as extension for shared libraries through AIX4.2
12513 # and later when we are not doing run time linking.
12514 library_names_spec='${libname}${release}.a $libname.a'
12515 soname_spec='${libname}${release}${shared_ext}$major'
12516 fi
12517 shlibpath_var=LIBPATH
12518 fi
12519 ;;
12520
12521amigaos*)
12522 library_names_spec='$libname.ixlibrary $libname.a'
12523 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12524 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
12525 ;;
12526
12527beos*)
12528 library_names_spec='${libname}${shared_ext}'
12529 dynamic_linker="$host_os ld.so"
12530 shlibpath_var=LIBRARY_PATH
12531 ;;
12532
12533bsdi[45]*)
12534 version_type=linux
12535 need_version=no
12536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12537 soname_spec='${libname}${release}${shared_ext}$major'
12538 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12539 shlibpath_var=LD_LIBRARY_PATH
12540 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12541 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12542 # the default ld.so.conf also contains /usr/contrib/lib and
12543 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12544 # libtool to hard-code these into programs
12545 ;;
12546
12547cygwin* | mingw* | pw32*)
12548 version_type=windows
12549 shrext_cmds=".dll"
12550 need_version=no
12551 need_lib_prefix=no
12552
12553 case $GCC,$host_os in
12554 yes,cygwin* | yes,mingw* | yes,pw32*)
12555 library_names_spec='$libname.dll.a'
12556 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12557 postinstall_cmds='base_file=`basename \${file}`~
12558 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12559 dldir=$destdir/`dirname \$dlpath`~
12560 test -d \$dldir || mkdir -p \$dldir~
13238 version_type=linux
13239 need_lib_prefix=no
13240 need_version=no
13241 hardcode_into_libs=yes
13242 if test "$host_cpu" = ia64; then
13243 # AIX 5 supports IA64
13244 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13245 shlibpath_var=LD_LIBRARY_PATH
13246 else
13247 # With GCC up to 2.95.x, collect2 would create an import file
13248 # for dependence libraries. The import file would start with
13249 # the line `#! .'. This would cause the generated library to
13250 # depend on `.', always an invalid library. This was fixed in
13251 # development snapshots of GCC prior to 3.0.
13252 case $host_os in
13253 aix4 | aix4.[01] | aix4.[01].*)
13254 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13255 echo ' yes '
13256 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13257 :
13258 else
13259 can_build_shared=no
13260 fi
13261 ;;
13262 esac
13263 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13264 # soname into executable. Probably we can add versioning support to
13265 # collect2, so additional links can be useful in future.
13266 if test "$aix_use_runtimelinking" = yes; then
13267 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13268 # instead of lib<name>.a to let people know that these are not
13269 # typical AIX shared libraries.
13270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13271 else
13272 # We preserve .a as extension for shared libraries through AIX4.2
13273 # and later when we are not doing run time linking.
13274 library_names_spec='${libname}${release}.a $libname.a'
13275 soname_spec='${libname}${release}${shared_ext}$major'
13276 fi
13277 shlibpath_var=LIBPATH
13278 fi
13279 ;;
13280
13281amigaos*)
13282 library_names_spec='$libname.ixlibrary $libname.a'
13283 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13284 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
13285 ;;
13286
13287beos*)
13288 library_names_spec='${libname}${shared_ext}'
13289 dynamic_linker="$host_os ld.so"
13290 shlibpath_var=LIBRARY_PATH
13291 ;;
13292
13293bsdi[45]*)
13294 version_type=linux
13295 need_version=no
13296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13297 soname_spec='${libname}${release}${shared_ext}$major'
13298 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13299 shlibpath_var=LD_LIBRARY_PATH
13300 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13301 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13302 # the default ld.so.conf also contains /usr/contrib/lib and
13303 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13304 # libtool to hard-code these into programs
13305 ;;
13306
13307cygwin* | mingw* | pw32*)
13308 version_type=windows
13309 shrext_cmds=".dll"
13310 need_version=no
13311 need_lib_prefix=no
13312
13313 case $GCC,$host_os in
13314 yes,cygwin* | yes,mingw* | yes,pw32*)
13315 library_names_spec='$libname.dll.a'
13316 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13317 postinstall_cmds='base_file=`basename \${file}`~
13318 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13319 dldir=$destdir/`dirname \$dlpath`~
13320 test -d \$dldir || mkdir -p \$dldir~
12561 $install_prog $dir/$dlname \$dldir/$dlname'
13321 $install_prog $dir/$dlname \$dldir/$dlname~
13322 chmod a+x \$dldir/$dlname'
12562 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12563 dlpath=$dir/\$dldll~
12564 $rm \$dlpath'
12565 shlibpath_overrides_runpath=yes
12566
12567 case $host_os in
12568 cygwin*)
12569 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12570 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12571 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12572 ;;
12573 mingw*)
12574 # MinGW DLLs use traditional 'lib' prefix
12575 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12576 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12577 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12578 # It is most probably a Windows format PATH printed by
12579 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12580 # path with ; separators, and with drive letters. We can handle the
12581 # drive letters (cygwin fileutils understands them), so leave them,
12582 # especially as we might pass files found there to a mingw objdump,
12583 # which wouldn't understand a cygwinified path. Ahh.
12584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12585 else
12586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12587 fi
12588 ;;
12589 pw32*)
12590 # pw32 DLLs use 'pw' prefix rather than 'lib'
12591 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12592 ;;
12593 esac
12594 ;;
12595
12596 *)
12597 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12598 ;;
12599 esac
12600 dynamic_linker='Win32 ld.exe'
12601 # FIXME: first we should search . and the directory the executable is in
12602 shlibpath_var=PATH
12603 ;;
12604
12605darwin* | rhapsody*)
12606 dynamic_linker="$host_os dyld"
12607 version_type=darwin
12608 need_lib_prefix=no
12609 need_version=no
12610 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12611 soname_spec='${libname}${release}${major}$shared_ext'
12612 shlibpath_overrides_runpath=yes
12613 shlibpath_var=DYLD_LIBRARY_PATH
13323 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13324 dlpath=$dir/\$dldll~
13325 $rm \$dlpath'
13326 shlibpath_overrides_runpath=yes
13327
13328 case $host_os in
13329 cygwin*)
13330 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13331 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13332 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13333 ;;
13334 mingw*)
13335 # MinGW DLLs use traditional 'lib' prefix
13336 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13337 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13338 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13339 # It is most probably a Windows format PATH printed by
13340 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13341 # path with ; separators, and with drive letters. We can handle the
13342 # drive letters (cygwin fileutils understands them), so leave them,
13343 # especially as we might pass files found there to a mingw objdump,
13344 # which wouldn't understand a cygwinified path. Ahh.
13345 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13346 else
13347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13348 fi
13349 ;;
13350 pw32*)
13351 # pw32 DLLs use 'pw' prefix rather than 'lib'
13352 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13353 ;;
13354 esac
13355 ;;
13356
13357 *)
13358 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13359 ;;
13360 esac
13361 dynamic_linker='Win32 ld.exe'
13362 # FIXME: first we should search . and the directory the executable is in
13363 shlibpath_var=PATH
13364 ;;
13365
13366darwin* | rhapsody*)
13367 dynamic_linker="$host_os dyld"
13368 version_type=darwin
13369 need_lib_prefix=no
13370 need_version=no
13371 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13372 soname_spec='${libname}${release}${major}$shared_ext'
13373 shlibpath_overrides_runpath=yes
13374 shlibpath_var=DYLD_LIBRARY_PATH
12614 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12615 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12616 if test "$GCC" = yes; then
12617 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12618 else
12619 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12620 fi
13375 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13376
12621 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12622 ;;
12623
12624dgux*)
12625 version_type=linux
12626 need_lib_prefix=no
12627 need_version=no
12628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12629 soname_spec='${libname}${release}${shared_ext}$major'
12630 shlibpath_var=LD_LIBRARY_PATH
12631 ;;
12632
12633freebsd1*)
12634 dynamic_linker=no
12635 ;;
12636
13377 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13378 ;;
13379
13380dgux*)
13381 version_type=linux
13382 need_lib_prefix=no
13383 need_version=no
13384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13385 soname_spec='${libname}${release}${shared_ext}$major'
13386 shlibpath_var=LD_LIBRARY_PATH
13387 ;;
13388
13389freebsd1*)
13390 dynamic_linker=no
13391 ;;
13392
12637kfreebsd*-gnu)
12638 version_type=linux
12639 need_lib_prefix=no
12640 need_version=no
12641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12642 soname_spec='${libname}${release}${shared_ext}$major'
12643 shlibpath_var=LD_LIBRARY_PATH
12644 shlibpath_overrides_runpath=no
12645 hardcode_into_libs=yes
12646 dynamic_linker='GNU ld.so'
12647 ;;
12648
12649freebsd* | dragonfly*)
12650 # DragonFly does not have aout. When/if they implement a new
12651 # versioning mechanism, adjust this.
13393freebsd* | dragonfly*)
13394 # DragonFly does not have aout. When/if they implement a new
13395 # versioning mechanism, adjust this.
12652 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13396 if test -x /usr/bin/objformat; then
13397 objformat=`/usr/bin/objformat`
13398 else
13399 case $host_os in
13400 freebsd[123]*) objformat=aout ;;
13401 *) objformat=elf ;;
13402 esac
13403 fi
12653 version_type=freebsd-$objformat
12654 case $version_type in
12655 freebsd-elf*)
12656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12657 need_version=no
12658 need_lib_prefix=no
12659 ;;
12660 freebsd-*)
12661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12662 need_version=yes
12663 ;;
12664 esac
12665 shlibpath_var=LD_LIBRARY_PATH
12666 case $host_os in
12667 freebsd2*)
12668 shlibpath_overrides_runpath=yes
12669 ;;
12670 freebsd3.[01]* | freebsdelf3.[01]*)
12671 shlibpath_overrides_runpath=yes
12672 hardcode_into_libs=yes
12673 ;;
13404 version_type=freebsd-$objformat
13405 case $version_type in
13406 freebsd-elf*)
13407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13408 need_version=no
13409 need_lib_prefix=no
13410 ;;
13411 freebsd-*)
13412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13413 need_version=yes
13414 ;;
13415 esac
13416 shlibpath_var=LD_LIBRARY_PATH
13417 case $host_os in
13418 freebsd2*)
13419 shlibpath_overrides_runpath=yes
13420 ;;
13421 freebsd3.[01]* | freebsdelf3.[01]*)
13422 shlibpath_overrides_runpath=yes
13423 hardcode_into_libs=yes
13424 ;;
12674 *) # from 3.2 on
13425 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13426 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12675 shlibpath_overrides_runpath=no
12676 hardcode_into_libs=yes
12677 ;;
13427 shlibpath_overrides_runpath=no
13428 hardcode_into_libs=yes
13429 ;;
13430 *) # from 4.6 on, and DragonFly
13431 shlibpath_overrides_runpath=yes
13432 hardcode_into_libs=yes
13433 ;;
12678 esac
12679 ;;
12680
12681gnu*)
12682 version_type=linux
12683 need_lib_prefix=no
12684 need_version=no
12685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12686 soname_spec='${libname}${release}${shared_ext}$major'
12687 shlibpath_var=LD_LIBRARY_PATH
12688 hardcode_into_libs=yes
12689 ;;
12690
12691hpux9* | hpux10* | hpux11*)
12692 # Give a soname corresponding to the major version so that dld.sl refuses to
12693 # link against other versions.
12694 version_type=sunos
12695 need_lib_prefix=no
12696 need_version=no
13434 esac
13435 ;;
13436
13437gnu*)
13438 version_type=linux
13439 need_lib_prefix=no
13440 need_version=no
13441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13442 soname_spec='${libname}${release}${shared_ext}$major'
13443 shlibpath_var=LD_LIBRARY_PATH
13444 hardcode_into_libs=yes
13445 ;;
13446
13447hpux9* | hpux10* | hpux11*)
13448 # Give a soname corresponding to the major version so that dld.sl refuses to
13449 # link against other versions.
13450 version_type=sunos
13451 need_lib_prefix=no
13452 need_version=no
12697 case "$host_cpu" in
13453 case $host_cpu in
12698 ia64*)
12699 shrext_cmds='.so'
12700 hardcode_into_libs=yes
12701 dynamic_linker="$host_os dld.so"
12702 shlibpath_var=LD_LIBRARY_PATH
12703 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12705 soname_spec='${libname}${release}${shared_ext}$major'
12706 if test "X$HPUX_IA64_MODE" = X32; then
12707 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12708 else
12709 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12710 fi
12711 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12712 ;;
12713 hppa*64*)
12714 shrext_cmds='.sl'
12715 hardcode_into_libs=yes
12716 dynamic_linker="$host_os dld.sl"
12717 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12720 soname_spec='${libname}${release}${shared_ext}$major'
12721 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12722 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12723 ;;
12724 *)
12725 shrext_cmds='.sl'
12726 dynamic_linker="$host_os dld.sl"
12727 shlibpath_var=SHLIB_PATH
12728 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12730 soname_spec='${libname}${release}${shared_ext}$major'
12731 ;;
12732 esac
12733 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12734 postinstall_cmds='chmod 555 $lib'
12735 ;;
12736
13454 ia64*)
13455 shrext_cmds='.so'
13456 hardcode_into_libs=yes
13457 dynamic_linker="$host_os dld.so"
13458 shlibpath_var=LD_LIBRARY_PATH
13459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13461 soname_spec='${libname}${release}${shared_ext}$major'
13462 if test "X$HPUX_IA64_MODE" = X32; then
13463 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13464 else
13465 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13466 fi
13467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13468 ;;
13469 hppa*64*)
13470 shrext_cmds='.sl'
13471 hardcode_into_libs=yes
13472 dynamic_linker="$host_os dld.sl"
13473 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13476 soname_spec='${libname}${release}${shared_ext}$major'
13477 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13479 ;;
13480 *)
13481 shrext_cmds='.sl'
13482 dynamic_linker="$host_os dld.sl"
13483 shlibpath_var=SHLIB_PATH
13484 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13486 soname_spec='${libname}${release}${shared_ext}$major'
13487 ;;
13488 esac
13489 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13490 postinstall_cmds='chmod 555 $lib'
13491 ;;
13492
13493interix[3-9]*)
13494 version_type=linux
13495 need_lib_prefix=no
13496 need_version=no
13497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13498 soname_spec='${libname}${release}${shared_ext}$major'
13499 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13500 shlibpath_var=LD_LIBRARY_PATH
13501 shlibpath_overrides_runpath=no
13502 hardcode_into_libs=yes
13503 ;;
13504
12737irix5* | irix6* | nonstopux*)
12738 case $host_os in
12739 nonstopux*) version_type=nonstopux ;;
12740 *)
12741 if test "$lt_cv_prog_gnu_ld" = yes; then
12742 version_type=linux
12743 else
12744 version_type=irix
12745 fi ;;
12746 esac
12747 need_lib_prefix=no
12748 need_version=no
12749 soname_spec='${libname}${release}${shared_ext}$major'
12750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12751 case $host_os in
12752 irix5* | nonstopux*)
12753 libsuff= shlibsuff=
12754 ;;
12755 *)
12756 case $LD in # libtool.m4 will add one of these switches to LD
12757 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12758 libsuff= shlibsuff= libmagic=32-bit;;
12759 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12760 libsuff=32 shlibsuff=N32 libmagic=N32;;
12761 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12762 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12763 *) libsuff= shlibsuff= libmagic=never-match;;
12764 esac
12765 ;;
12766 esac
12767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12768 shlibpath_overrides_runpath=no
12769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12771 hardcode_into_libs=yes
12772 ;;
12773
12774# No shared lib support for Linux oldld, aout, or coff.
12775linux*oldld* | linux*aout* | linux*coff*)
12776 dynamic_linker=no
12777 ;;
12778
12779# This must be Linux ELF.
13505irix5* | irix6* | nonstopux*)
13506 case $host_os in
13507 nonstopux*) version_type=nonstopux ;;
13508 *)
13509 if test "$lt_cv_prog_gnu_ld" = yes; then
13510 version_type=linux
13511 else
13512 version_type=irix
13513 fi ;;
13514 esac
13515 need_lib_prefix=no
13516 need_version=no
13517 soname_spec='${libname}${release}${shared_ext}$major'
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13519 case $host_os in
13520 irix5* | nonstopux*)
13521 libsuff= shlibsuff=
13522 ;;
13523 *)
13524 case $LD in # libtool.m4 will add one of these switches to LD
13525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13526 libsuff= shlibsuff= libmagic=32-bit;;
13527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13528 libsuff=32 shlibsuff=N32 libmagic=N32;;
13529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13530 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13531 *) libsuff= shlibsuff= libmagic=never-match;;
13532 esac
13533 ;;
13534 esac
13535 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13536 shlibpath_overrides_runpath=no
13537 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13538 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13539 hardcode_into_libs=yes
13540 ;;
13541
13542# No shared lib support for Linux oldld, aout, or coff.
13543linux*oldld* | linux*aout* | linux*coff*)
13544 dynamic_linker=no
13545 ;;
13546
13547# This must be Linux ELF.
12780linux*)
13548linux* | k*bsd*-gnu)
12781 version_type=linux
12782 need_lib_prefix=no
12783 need_version=no
12784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12785 soname_spec='${libname}${release}${shared_ext}$major'
12786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12787 shlibpath_var=LD_LIBRARY_PATH
12788 shlibpath_overrides_runpath=no
12789 # This implies no fast_install, which is unacceptable.
12790 # Some rework will be needed to allow for fast_install
12791 # before this can be enabled.
12792 hardcode_into_libs=yes
12793
12794 # Append ld.so.conf contents to the search path
12795 if test -f /etc/ld.so.conf; then
13549 version_type=linux
13550 need_lib_prefix=no
13551 need_version=no
13552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13553 soname_spec='${libname}${release}${shared_ext}$major'
13554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13555 shlibpath_var=LD_LIBRARY_PATH
13556 shlibpath_overrides_runpath=no
13557 # This implies no fast_install, which is unacceptable.
13558 # Some rework will be needed to allow for fast_install
13559 # before this can be enabled.
13560 hardcode_into_libs=yes
13561
13562 # Append ld.so.conf contents to the search path
13563 if test -f /etc/ld.so.conf; then
12796 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13564 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;/^$/d' | tr '\n' ' '`
12797 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12798 fi
12799
12800 # We used to test for /lib/ld.so.1 and disable shared libraries on
12801 # powerpc, because MkLinux only supported shared libraries with the
12802 # GNU dynamic linker. Since this was broken with cross compilers,
12803 # most powerpc-linux boxes support dynamic linking these days and
12804 # people can always --disable-shared, the test was removed, and we
12805 # assume the GNU/Linux dynamic linker is in use.
12806 dynamic_linker='GNU/Linux ld.so'
12807 ;;
12808
13565 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13566 fi
13567
13568 # We used to test for /lib/ld.so.1 and disable shared libraries on
13569 # powerpc, because MkLinux only supported shared libraries with the
13570 # GNU dynamic linker. Since this was broken with cross compilers,
13571 # most powerpc-linux boxes support dynamic linking these days and
13572 # people can always --disable-shared, the test was removed, and we
13573 # assume the GNU/Linux dynamic linker is in use.
13574 dynamic_linker='GNU/Linux ld.so'
13575 ;;
13576
12809knetbsd*-gnu)
12810 version_type=linux
12811 need_lib_prefix=no
12812 need_version=no
12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12814 soname_spec='${libname}${release}${shared_ext}$major'
12815 shlibpath_var=LD_LIBRARY_PATH
12816 shlibpath_overrides_runpath=no
12817 hardcode_into_libs=yes
12818 dynamic_linker='GNU ld.so'
12819 ;;
12820
12821netbsd*)
12822 version_type=sunos
12823 need_lib_prefix=no
12824 need_version=no
12825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12828 dynamic_linker='NetBSD (a.out) ld.so'
12829 else
12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12831 soname_spec='${libname}${release}${shared_ext}$major'
12832 dynamic_linker='NetBSD ld.elf_so'
12833 fi
12834 shlibpath_var=LD_LIBRARY_PATH
12835 shlibpath_overrides_runpath=yes
12836 hardcode_into_libs=yes
12837 ;;
12838
12839newsos6)
12840 version_type=linux
12841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12842 shlibpath_var=LD_LIBRARY_PATH
12843 shlibpath_overrides_runpath=yes
12844 ;;
12845
12846nto-qnx*)
12847 version_type=linux
12848 need_lib_prefix=no
12849 need_version=no
12850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12851 soname_spec='${libname}${release}${shared_ext}$major'
12852 shlibpath_var=LD_LIBRARY_PATH
12853 shlibpath_overrides_runpath=yes
12854 ;;
12855
12856openbsd*)
12857 version_type=sunos
13577netbsd*)
13578 version_type=sunos
13579 need_lib_prefix=no
13580 need_version=no
13581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13584 dynamic_linker='NetBSD (a.out) ld.so'
13585 else
13586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13587 soname_spec='${libname}${release}${shared_ext}$major'
13588 dynamic_linker='NetBSD ld.elf_so'
13589 fi
13590 shlibpath_var=LD_LIBRARY_PATH
13591 shlibpath_overrides_runpath=yes
13592 hardcode_into_libs=yes
13593 ;;
13594
13595newsos6)
13596 version_type=linux
13597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13598 shlibpath_var=LD_LIBRARY_PATH
13599 shlibpath_overrides_runpath=yes
13600 ;;
13601
13602nto-qnx*)
13603 version_type=linux
13604 need_lib_prefix=no
13605 need_version=no
13606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13607 soname_spec='${libname}${release}${shared_ext}$major'
13608 shlibpath_var=LD_LIBRARY_PATH
13609 shlibpath_overrides_runpath=yes
13610 ;;
13611
13612openbsd*)
13613 version_type=sunos
13614 sys_lib_dlsearch_path_spec="/usr/lib"
12858 need_lib_prefix=no
12859 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12860 case $host_os in
12861 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12862 *) need_version=no ;;
12863 esac
12864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12866 shlibpath_var=LD_LIBRARY_PATH
12867 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12868 case $host_os in
12869 openbsd2.[89] | openbsd2.[89].*)
12870 shlibpath_overrides_runpath=no
12871 ;;
12872 *)
12873 shlibpath_overrides_runpath=yes
12874 ;;
12875 esac
12876 else
12877 shlibpath_overrides_runpath=yes
12878 fi
12879 ;;
12880
12881os2*)
12882 libname_spec='$name'
12883 shrext_cmds=".dll"
12884 need_lib_prefix=no
12885 library_names_spec='$libname${shared_ext} $libname.a'
12886 dynamic_linker='OS/2 ld.exe'
12887 shlibpath_var=LIBPATH
12888 ;;
12889
12890osf3* | osf4* | osf5*)
12891 version_type=osf
12892 need_lib_prefix=no
12893 need_version=no
12894 soname_spec='${libname}${release}${shared_ext}$major'
12895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12896 shlibpath_var=LD_LIBRARY_PATH
12897 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12898 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12899 ;;
12900
13615 need_lib_prefix=no
13616 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13617 case $host_os in
13618 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13619 *) need_version=no ;;
13620 esac
13621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13623 shlibpath_var=LD_LIBRARY_PATH
13624 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13625 case $host_os in
13626 openbsd2.[89] | openbsd2.[89].*)
13627 shlibpath_overrides_runpath=no
13628 ;;
13629 *)
13630 shlibpath_overrides_runpath=yes
13631 ;;
13632 esac
13633 else
13634 shlibpath_overrides_runpath=yes
13635 fi
13636 ;;
13637
13638os2*)
13639 libname_spec='$name'
13640 shrext_cmds=".dll"
13641 need_lib_prefix=no
13642 library_names_spec='$libname${shared_ext} $libname.a'
13643 dynamic_linker='OS/2 ld.exe'
13644 shlibpath_var=LIBPATH
13645 ;;
13646
13647osf3* | osf4* | osf5*)
13648 version_type=osf
13649 need_lib_prefix=no
13650 need_version=no
13651 soname_spec='${libname}${release}${shared_ext}$major'
13652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13653 shlibpath_var=LD_LIBRARY_PATH
13654 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13655 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13656 ;;
13657
12901sco3.2v5*)
12902 version_type=osf
12903 soname_spec='${libname}${release}${shared_ext}$major'
12904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12905 shlibpath_var=LD_LIBRARY_PATH
13658rdos*)
13659 dynamic_linker=no
12906 ;;
12907
12908solaris*)
12909 version_type=linux
12910 need_lib_prefix=no
12911 need_version=no
12912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12913 soname_spec='${libname}${release}${shared_ext}$major'
12914 shlibpath_var=LD_LIBRARY_PATH
12915 shlibpath_overrides_runpath=yes
12916 hardcode_into_libs=yes
12917 # ldd complains unless libraries are executable
12918 postinstall_cmds='chmod +x $lib'
12919 ;;
12920
12921sunos4*)
12922 version_type=sunos
12923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12924 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12925 shlibpath_var=LD_LIBRARY_PATH
12926 shlibpath_overrides_runpath=yes
12927 if test "$with_gnu_ld" = yes; then
12928 need_lib_prefix=no
12929 fi
12930 need_version=yes
12931 ;;
12932
13660 ;;
13661
13662solaris*)
13663 version_type=linux
13664 need_lib_prefix=no
13665 need_version=no
13666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13667 soname_spec='${libname}${release}${shared_ext}$major'
13668 shlibpath_var=LD_LIBRARY_PATH
13669 shlibpath_overrides_runpath=yes
13670 hardcode_into_libs=yes
13671 # ldd complains unless libraries are executable
13672 postinstall_cmds='chmod +x $lib'
13673 ;;
13674
13675sunos4*)
13676 version_type=sunos
13677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13678 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13679 shlibpath_var=LD_LIBRARY_PATH
13680 shlibpath_overrides_runpath=yes
13681 if test "$with_gnu_ld" = yes; then
13682 need_lib_prefix=no
13683 fi
13684 need_version=yes
13685 ;;
13686
12933sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13687sysv4 | sysv4.3*)
12934 version_type=linux
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936 soname_spec='${libname}${release}${shared_ext}$major'
12937 shlibpath_var=LD_LIBRARY_PATH
12938 case $host_vendor in
12939 sni)
12940 shlibpath_overrides_runpath=no
12941 need_lib_prefix=no
12942 export_dynamic_flag_spec='${wl}-Blargedynsym'
12943 runpath_var=LD_RUN_PATH
12944 ;;
12945 siemens)
12946 need_lib_prefix=no
12947 ;;
12948 motorola)
12949 need_lib_prefix=no
12950 need_version=no
12951 shlibpath_overrides_runpath=no
12952 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12953 ;;
12954 esac
12955 ;;
12956
12957sysv4*MP*)
12958 if test -d /usr/nec ;then
12959 version_type=linux
12960 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12961 soname_spec='$libname${shared_ext}.$major'
12962 shlibpath_var=LD_LIBRARY_PATH
12963 fi
12964 ;;
12965
13688 version_type=linux
13689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13690 soname_spec='${libname}${release}${shared_ext}$major'
13691 shlibpath_var=LD_LIBRARY_PATH
13692 case $host_vendor in
13693 sni)
13694 shlibpath_overrides_runpath=no
13695 need_lib_prefix=no
13696 export_dynamic_flag_spec='${wl}-Blargedynsym'
13697 runpath_var=LD_RUN_PATH
13698 ;;
13699 siemens)
13700 need_lib_prefix=no
13701 ;;
13702 motorola)
13703 need_lib_prefix=no
13704 need_version=no
13705 shlibpath_overrides_runpath=no
13706 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13707 ;;
13708 esac
13709 ;;
13710
13711sysv4*MP*)
13712 if test -d /usr/nec ;then
13713 version_type=linux
13714 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13715 soname_spec='$libname${shared_ext}.$major'
13716 shlibpath_var=LD_LIBRARY_PATH
13717 fi
13718 ;;
13719
13720sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13721 version_type=freebsd-elf
13722 need_lib_prefix=no
13723 need_version=no
13724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13725 soname_spec='${libname}${release}${shared_ext}$major'
13726 shlibpath_var=LD_LIBRARY_PATH
13727 hardcode_into_libs=yes
13728 if test "$with_gnu_ld" = yes; then
13729 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13730 shlibpath_overrides_runpath=no
13731 else
13732 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13733 shlibpath_overrides_runpath=yes
13734 case $host_os in
13735 sco3.2v5*)
13736 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13737 ;;
13738 esac
13739 fi
13740 sys_lib_dlsearch_path_spec='/usr/lib'
13741 ;;
13742
12966uts4*)
12967 version_type=linux
12968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12969 soname_spec='${libname}${release}${shared_ext}$major'
12970 shlibpath_var=LD_LIBRARY_PATH
12971 ;;
12972
12973*)
12974 dynamic_linker=no
12975 ;;
12976esac
12977{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12978echo "${ECHO_T}$dynamic_linker" >&6; }
12979test "$dynamic_linker" = no && can_build_shared=no
12980
13743uts4*)
13744 version_type=linux
13745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13746 soname_spec='${libname}${release}${shared_ext}$major'
13747 shlibpath_var=LD_LIBRARY_PATH
13748 ;;
13749
13750*)
13751 dynamic_linker=no
13752 ;;
13753esac
13754{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13755echo "${ECHO_T}$dynamic_linker" >&6; }
13756test "$dynamic_linker" = no && can_build_shared=no
13757
13758if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13760else
13761 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13762fi
13763
13764sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13765if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13766 echo $ECHO_N "(cached) $ECHO_C" >&6
13767else
13768 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13769fi
13770
13771sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13772
13773variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13774if test "$GCC" = yes; then
13775 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13776fi
13777
12981{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12982echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12983hardcode_action_CXX=
12984if test -n "$hardcode_libdir_flag_spec_CXX" || \
12985 test -n "$runpath_var_CXX" || \
12986 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12987
12988 # We can hardcode non-existant directories.
12989 if test "$hardcode_direct_CXX" != no &&
12990 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12991 # have to relink, otherwise we might link with an installed library
12992 # when we should be linking with a yet-to-be-installed one
12993 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12994 test "$hardcode_minus_L_CXX" != no; then
12995 # Linking always hardcodes the temporary library directory.
12996 hardcode_action_CXX=relink
12997 else
12998 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12999 hardcode_action_CXX=immediate
13000 fi
13001else
13002 # We cannot hardcode anything, or else we can only hardcode existing
13003 # directories.
13004 hardcode_action_CXX=unsupported
13005fi
13006{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13007echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13008
13009if test "$hardcode_action_CXX" = relink; then
13010 # Fast installation is not supported
13011 enable_fast_install=no
13012elif test "$shlibpath_overrides_runpath" = yes ||
13013 test "$enable_shared" = no; then
13014 # Fast installation is not necessary
13015 enable_fast_install=needless
13016fi
13017
13778{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13779echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13780hardcode_action_CXX=
13781if test -n "$hardcode_libdir_flag_spec_CXX" || \
13782 test -n "$runpath_var_CXX" || \
13783 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13784
13785 # We can hardcode non-existant directories.
13786 if test "$hardcode_direct_CXX" != no &&
13787 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13788 # have to relink, otherwise we might link with an installed library
13789 # when we should be linking with a yet-to-be-installed one
13790 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13791 test "$hardcode_minus_L_CXX" != no; then
13792 # Linking always hardcodes the temporary library directory.
13793 hardcode_action_CXX=relink
13794 else
13795 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13796 hardcode_action_CXX=immediate
13797 fi
13798else
13799 # We cannot hardcode anything, or else we can only hardcode existing
13800 # directories.
13801 hardcode_action_CXX=unsupported
13802fi
13803{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13804echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13805
13806if test "$hardcode_action_CXX" = relink; then
13807 # Fast installation is not supported
13808 enable_fast_install=no
13809elif test "$shlibpath_overrides_runpath" = yes ||
13810 test "$enable_shared" = no; then
13811 # Fast installation is not necessary
13812 enable_fast_install=needless
13813fi
13814
13018striplib=
13019old_striplib=
13020{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13021echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
13022if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13023 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13024 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13025 { echo "$as_me:$LINENO: result: yes" >&5
13026echo "${ECHO_T}yes" >&6; }
13027else
13028# FIXME - insert some real tests, host_os isn't really good enough
13029 case $host_os in
13030 darwin*)
13031 if test -n "$STRIP" ; then
13032 striplib="$STRIP -x"
13033 { echo "$as_me:$LINENO: result: yes" >&5
13034echo "${ECHO_T}yes" >&6; }
13035 else
13036 { echo "$as_me:$LINENO: result: no" >&5
13037echo "${ECHO_T}no" >&6; }
13038fi
13039 ;;
13040 *)
13041 { echo "$as_me:$LINENO: result: no" >&5
13042echo "${ECHO_T}no" >&6; }
13043 ;;
13044 esac
13045fi
13046
13815
13047if test "x$enable_dlopen" != xyes; then
13048 enable_dlopen=unknown
13049 enable_dlopen_self=unknown
13050 enable_dlopen_self_static=unknown
13051else
13052 lt_cv_dlopen=no
13053 lt_cv_dlopen_libs=
13054
13055 case $host_os in
13056 beos*)
13057 lt_cv_dlopen="load_add_on"
13058 lt_cv_dlopen_libs=
13059 lt_cv_dlopen_self=yes
13060 ;;
13061
13062 mingw* | pw32*)
13063 lt_cv_dlopen="LoadLibrary"
13064 lt_cv_dlopen_libs=
13065 ;;
13066
13067 cygwin*)
13068 lt_cv_dlopen="dlopen"
13069 lt_cv_dlopen_libs=
13070 ;;
13071
13072 darwin*)
13073 # if libdl is installed we need to link against it
13074 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13075echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13076if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13078else
13079 ac_check_lib_save_LIBS=$LIBS
13080LIBS="-ldl $LIBS"
13081cat >conftest.$ac_ext <<_ACEOF
13082/* confdefs.h. */
13083_ACEOF
13084cat confdefs.h >>conftest.$ac_ext
13085cat >>conftest.$ac_ext <<_ACEOF
13086/* end confdefs.h. */
13087
13088/* Override any GCC internal prototype to avoid an error.
13089 Use char because int might match the return type of a GCC
13090 builtin and then its argument prototype would still apply. */
13091#ifdef __cplusplus
13092extern "C"
13093#endif
13094char dlopen ();
13095int
13096main ()
13097{
13098return dlopen ();
13099 ;
13100 return 0;
13101}
13102_ACEOF
13103rm -f conftest.$ac_objext conftest$ac_exeext
13104if { (ac_try="$ac_link"
13105case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13108esac
13109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110 (eval "$ac_link") 2>conftest.er1
13111 ac_status=$?
13112 grep -v '^ *+' conftest.er1 >conftest.err
13113 rm -f conftest.er1
13114 cat conftest.err >&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } && {
13117 test -z "$ac_cxx_werror_flag" ||
13118 test ! -s conftest.err
13119 } && test -s conftest$ac_exeext &&
13120 $as_test_x conftest$ac_exeext; then
13121 ac_cv_lib_dl_dlopen=yes
13122else
13123 echo "$as_me: failed program was:" >&5
13124sed 's/^/| /' conftest.$ac_ext >&5
13125
13126 ac_cv_lib_dl_dlopen=no
13127fi
13128
13129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13130 conftest$ac_exeext conftest.$ac_ext
13131LIBS=$ac_check_lib_save_LIBS
13132fi
13133{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13134echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13135if test $ac_cv_lib_dl_dlopen = yes; then
13136 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13137else
13138
13139 lt_cv_dlopen="dyld"
13140 lt_cv_dlopen_libs=
13141 lt_cv_dlopen_self=yes
13142
13143fi
13144
13145 ;;
13146
13147 *)
13148 { echo "$as_me:$LINENO: checking for shl_load" >&5
13149echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
13150if test "${ac_cv_func_shl_load+set}" = set; then
13151 echo $ECHO_N "(cached) $ECHO_C" >&6
13152else
13153 cat >conftest.$ac_ext <<_ACEOF
13154/* confdefs.h. */
13155_ACEOF
13156cat confdefs.h >>conftest.$ac_ext
13157cat >>conftest.$ac_ext <<_ACEOF
13158/* end confdefs.h. */
13159/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13161#define shl_load innocuous_shl_load
13162
13163/* System header to define __stub macros and hopefully few prototypes,
13164 which can conflict with char shl_load (); below.
13165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13166 <limits.h> exists even on freestanding compilers. */
13167
13168#ifdef __STDC__
13169# include <limits.h>
13170#else
13171# include <assert.h>
13172#endif
13173
13174#undef shl_load
13175
13176/* Override any GCC internal prototype to avoid an error.
13177 Use char because int might match the return type of a GCC
13178 builtin and then its argument prototype would still apply. */
13179#ifdef __cplusplus
13180extern "C"
13181#endif
13182char shl_load ();
13183/* The GNU C library defines this for functions which it implements
13184 to always fail with ENOSYS. Some functions are actually named
13185 something starting with __ and the normal name is an alias. */
13186#if defined __stub_shl_load || defined __stub___shl_load
13187choke me
13188#endif
13189
13190int
13191main ()
13192{
13193return shl_load ();
13194 ;
13195 return 0;
13196}
13197_ACEOF
13198rm -f conftest.$ac_objext conftest$ac_exeext
13199if { (ac_try="$ac_link"
13200case "(($ac_try" in
13201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13203esac
13204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_link") 2>conftest.er1
13206 ac_status=$?
13207 grep -v '^ *+' conftest.er1 >conftest.err
13208 rm -f conftest.er1
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } && {
13212 test -z "$ac_cxx_werror_flag" ||
13213 test ! -s conftest.err
13214 } && test -s conftest$ac_exeext &&
13215 $as_test_x conftest$ac_exeext; then
13216 ac_cv_func_shl_load=yes
13217else
13218 echo "$as_me: failed program was:" >&5
13219sed 's/^/| /' conftest.$ac_ext >&5
13220
13221 ac_cv_func_shl_load=no
13222fi
13223
13224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13225 conftest$ac_exeext conftest.$ac_ext
13226fi
13227{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13228echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13229if test $ac_cv_func_shl_load = yes; then
13230 lt_cv_dlopen="shl_load"
13231else
13232 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13233echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13234if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13236else
13237 ac_check_lib_save_LIBS=$LIBS
13238LIBS="-ldld $LIBS"
13239cat >conftest.$ac_ext <<_ACEOF
13240/* confdefs.h. */
13241_ACEOF
13242cat confdefs.h >>conftest.$ac_ext
13243cat >>conftest.$ac_ext <<_ACEOF
13244/* end confdefs.h. */
13245
13246/* Override any GCC internal prototype to avoid an error.
13247 Use char because int might match the return type of a GCC
13248 builtin and then its argument prototype would still apply. */
13249#ifdef __cplusplus
13250extern "C"
13251#endif
13252char shl_load ();
13253int
13254main ()
13255{
13256return shl_load ();
13257 ;
13258 return 0;
13259}
13260_ACEOF
13261rm -f conftest.$ac_objext conftest$ac_exeext
13262if { (ac_try="$ac_link"
13263case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13266esac
13267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_link") 2>conftest.er1
13269 ac_status=$?
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } && {
13275 test -z "$ac_cxx_werror_flag" ||
13276 test ! -s conftest.err
13277 } && test -s conftest$ac_exeext &&
13278 $as_test_x conftest$ac_exeext; then
13279 ac_cv_lib_dld_shl_load=yes
13280else
13281 echo "$as_me: failed program was:" >&5
13282sed 's/^/| /' conftest.$ac_ext >&5
13283
13284 ac_cv_lib_dld_shl_load=no
13285fi
13286
13287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13288 conftest$ac_exeext conftest.$ac_ext
13289LIBS=$ac_check_lib_save_LIBS
13290fi
13291{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13292echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13293if test $ac_cv_lib_dld_shl_load = yes; then
13294 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13295else
13296 { echo "$as_me:$LINENO: checking for dlopen" >&5
13297echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13298if test "${ac_cv_func_dlopen+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13300else
13301 cat >conftest.$ac_ext <<_ACEOF
13302/* confdefs.h. */
13303_ACEOF
13304cat confdefs.h >>conftest.$ac_ext
13305cat >>conftest.$ac_ext <<_ACEOF
13306/* end confdefs.h. */
13307/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13309#define dlopen innocuous_dlopen
13310
13311/* System header to define __stub macros and hopefully few prototypes,
13312 which can conflict with char dlopen (); below.
13313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13314 <limits.h> exists even on freestanding compilers. */
13315
13316#ifdef __STDC__
13317# include <limits.h>
13318#else
13319# include <assert.h>
13320#endif
13321
13322#undef dlopen
13323
13324/* Override any GCC internal prototype to avoid an error.
13325 Use char because int might match the return type of a GCC
13326 builtin and then its argument prototype would still apply. */
13327#ifdef __cplusplus
13328extern "C"
13329#endif
13330char dlopen ();
13331/* The GNU C library defines this for functions which it implements
13332 to always fail with ENOSYS. Some functions are actually named
13333 something starting with __ and the normal name is an alias. */
13334#if defined __stub_dlopen || defined __stub___dlopen
13335choke me
13336#endif
13337
13338int
13339main ()
13340{
13341return dlopen ();
13342 ;
13343 return 0;
13344}
13345_ACEOF
13346rm -f conftest.$ac_objext conftest$ac_exeext
13347if { (ac_try="$ac_link"
13348case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13351esac
13352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_link") 2>conftest.er1
13354 ac_status=$?
13355 grep -v '^ *+' conftest.er1 >conftest.err
13356 rm -f conftest.er1
13357 cat conftest.err >&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } && {
13360 test -z "$ac_cxx_werror_flag" ||
13361 test ! -s conftest.err
13362 } && test -s conftest$ac_exeext &&
13363 $as_test_x conftest$ac_exeext; then
13364 ac_cv_func_dlopen=yes
13365else
13366 echo "$as_me: failed program was:" >&5
13367sed 's/^/| /' conftest.$ac_ext >&5
13368
13369 ac_cv_func_dlopen=no
13370fi
13371
13372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13373 conftest$ac_exeext conftest.$ac_ext
13374fi
13375{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13376echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13377if test $ac_cv_func_dlopen = yes; then
13378 lt_cv_dlopen="dlopen"
13379else
13380 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13381echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13382if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13384else
13385 ac_check_lib_save_LIBS=$LIBS
13386LIBS="-ldl $LIBS"
13387cat >conftest.$ac_ext <<_ACEOF
13388/* confdefs.h. */
13389_ACEOF
13390cat confdefs.h >>conftest.$ac_ext
13391cat >>conftest.$ac_ext <<_ACEOF
13392/* end confdefs.h. */
13393
13394/* Override any GCC internal prototype to avoid an error.
13395 Use char because int might match the return type of a GCC
13396 builtin and then its argument prototype would still apply. */
13397#ifdef __cplusplus
13398extern "C"
13399#endif
13400char dlopen ();
13401int
13402main ()
13403{
13404return dlopen ();
13405 ;
13406 return 0;
13407}
13408_ACEOF
13409rm -f conftest.$ac_objext conftest$ac_exeext
13410if { (ac_try="$ac_link"
13411case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414esac
13415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_link") 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } && {
13423 test -z "$ac_cxx_werror_flag" ||
13424 test ! -s conftest.err
13425 } && test -s conftest$ac_exeext &&
13426 $as_test_x conftest$ac_exeext; then
13427 ac_cv_lib_dl_dlopen=yes
13428else
13429 echo "$as_me: failed program was:" >&5
13430sed 's/^/| /' conftest.$ac_ext >&5
13431
13432 ac_cv_lib_dl_dlopen=no
13433fi
13434
13435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13436 conftest$ac_exeext conftest.$ac_ext
13437LIBS=$ac_check_lib_save_LIBS
13438fi
13439{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13440echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13441if test $ac_cv_lib_dl_dlopen = yes; then
13442 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13443else
13444 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13445echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13446if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13447 echo $ECHO_N "(cached) $ECHO_C" >&6
13448else
13449 ac_check_lib_save_LIBS=$LIBS
13450LIBS="-lsvld $LIBS"
13451cat >conftest.$ac_ext <<_ACEOF
13452/* confdefs.h. */
13453_ACEOF
13454cat confdefs.h >>conftest.$ac_ext
13455cat >>conftest.$ac_ext <<_ACEOF
13456/* end confdefs.h. */
13457
13458/* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
13461#ifdef __cplusplus
13462extern "C"
13463#endif
13464char dlopen ();
13465int
13466main ()
13467{
13468return dlopen ();
13469 ;
13470 return 0;
13471}
13472_ACEOF
13473rm -f conftest.$ac_objext conftest$ac_exeext
13474if { (ac_try="$ac_link"
13475case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13478esac
13479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_link") 2>conftest.er1
13481 ac_status=$?
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -f conftest.er1
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } && {
13487 test -z "$ac_cxx_werror_flag" ||
13488 test ! -s conftest.err
13489 } && test -s conftest$ac_exeext &&
13490 $as_test_x conftest$ac_exeext; then
13491 ac_cv_lib_svld_dlopen=yes
13492else
13493 echo "$as_me: failed program was:" >&5
13494sed 's/^/| /' conftest.$ac_ext >&5
13495
13496 ac_cv_lib_svld_dlopen=no
13497fi
13498
13499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13500 conftest$ac_exeext conftest.$ac_ext
13501LIBS=$ac_check_lib_save_LIBS
13502fi
13503{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13504echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13505if test $ac_cv_lib_svld_dlopen = yes; then
13506 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13507else
13508 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13509echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13510if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13511 echo $ECHO_N "(cached) $ECHO_C" >&6
13512else
13513 ac_check_lib_save_LIBS=$LIBS
13514LIBS="-ldld $LIBS"
13515cat >conftest.$ac_ext <<_ACEOF
13516/* confdefs.h. */
13517_ACEOF
13518cat confdefs.h >>conftest.$ac_ext
13519cat >>conftest.$ac_ext <<_ACEOF
13520/* end confdefs.h. */
13521
13522/* Override any GCC internal prototype to avoid an error.
13523 Use char because int might match the return type of a GCC
13524 builtin and then its argument prototype would still apply. */
13525#ifdef __cplusplus
13526extern "C"
13527#endif
13528char dld_link ();
13529int
13530main ()
13531{
13532return dld_link ();
13533 ;
13534 return 0;
13535}
13536_ACEOF
13537rm -f conftest.$ac_objext conftest$ac_exeext
13538if { (ac_try="$ac_link"
13539case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13542esac
13543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_link") 2>conftest.er1
13545 ac_status=$?
13546 grep -v '^ *+' conftest.er1 >conftest.err
13547 rm -f conftest.er1
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } && {
13551 test -z "$ac_cxx_werror_flag" ||
13552 test ! -s conftest.err
13553 } && test -s conftest$ac_exeext &&
13554 $as_test_x conftest$ac_exeext; then
13555 ac_cv_lib_dld_dld_link=yes
13556else
13557 echo "$as_me: failed program was:" >&5
13558sed 's/^/| /' conftest.$ac_ext >&5
13559
13560 ac_cv_lib_dld_dld_link=no
13561fi
13562
13563rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13564 conftest$ac_exeext conftest.$ac_ext
13565LIBS=$ac_check_lib_save_LIBS
13566fi
13567{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13568echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13569if test $ac_cv_lib_dld_dld_link = yes; then
13570 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13571fi
13572
13573
13574fi
13575
13576
13577fi
13578
13579
13580fi
13581
13582
13583fi
13584
13585
13586fi
13587
13588 ;;
13589 esac
13590
13591 if test "x$lt_cv_dlopen" != xno; then
13592 enable_dlopen=yes
13593 else
13594 enable_dlopen=no
13595 fi
13596
13597 case $lt_cv_dlopen in
13598 dlopen)
13599 save_CPPFLAGS="$CPPFLAGS"
13600 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13601
13602 save_LDFLAGS="$LDFLAGS"
13603 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13604
13605 save_LIBS="$LIBS"
13606 LIBS="$lt_cv_dlopen_libs $LIBS"
13607
13608 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13609echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13610if test "${lt_cv_dlopen_self+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13612else
13613 if test "$cross_compiling" = yes; then :
13614 lt_cv_dlopen_self=cross
13615else
13616 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13617 lt_status=$lt_dlunknown
13618 cat > conftest.$ac_ext <<EOF
13619#line 13619 "configure"
13620#include "confdefs.h"
13621
13622#if HAVE_DLFCN_H
13623#include <dlfcn.h>
13624#endif
13625
13626#include <stdio.h>
13627
13628#ifdef RTLD_GLOBAL
13629# define LT_DLGLOBAL RTLD_GLOBAL
13630#else
13631# ifdef DL_GLOBAL
13632# define LT_DLGLOBAL DL_GLOBAL
13633# else
13634# define LT_DLGLOBAL 0
13635# endif
13636#endif
13637
13638/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13639 find out it does not work in some platform. */
13640#ifndef LT_DLLAZY_OR_NOW
13641# ifdef RTLD_LAZY
13642# define LT_DLLAZY_OR_NOW RTLD_LAZY
13643# else
13644# ifdef DL_LAZY
13645# define LT_DLLAZY_OR_NOW DL_LAZY
13646# else
13647# ifdef RTLD_NOW
13648# define LT_DLLAZY_OR_NOW RTLD_NOW
13649# else
13650# ifdef DL_NOW
13651# define LT_DLLAZY_OR_NOW DL_NOW
13652# else
13653# define LT_DLLAZY_OR_NOW 0
13654# endif
13655# endif
13656# endif
13657# endif
13658#endif
13659
13660#ifdef __cplusplus
13661extern "C" void exit (int);
13662#endif
13663
13664void fnord() { int i=42;}
13665int main ()
13666{
13667 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13668 int status = $lt_dlunknown;
13669
13670 if (self)
13671 {
13672 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13673 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13674 /* dlclose (self); */
13675 }
13676
13677 exit (status);
13678}
13679EOF
13680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13681 (eval $ac_link) 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13685 (./conftest; exit; ) 2>/dev/null
13686 lt_status=$?
13687 case x$lt_status in
13688 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13689 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13690 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13691 esac
13692 else :
13693 # compilation failed
13694 lt_cv_dlopen_self=no
13695 fi
13696fi
13697rm -fr conftest*
13698
13699
13700fi
13701{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13702echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13703
13704 if test "x$lt_cv_dlopen_self" = xyes; then
13705 LDFLAGS="$LDFLAGS $link_static_flag"
13706 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13707echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13708if test "${lt_cv_dlopen_self_static+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13710else
13711 if test "$cross_compiling" = yes; then :
13712 lt_cv_dlopen_self_static=cross
13713else
13714 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13715 lt_status=$lt_dlunknown
13716 cat > conftest.$ac_ext <<EOF
13717#line 13717 "configure"
13718#include "confdefs.h"
13719
13720#if HAVE_DLFCN_H
13721#include <dlfcn.h>
13722#endif
13723
13724#include <stdio.h>
13725
13726#ifdef RTLD_GLOBAL
13727# define LT_DLGLOBAL RTLD_GLOBAL
13728#else
13729# ifdef DL_GLOBAL
13730# define LT_DLGLOBAL DL_GLOBAL
13731# else
13732# define LT_DLGLOBAL 0
13733# endif
13734#endif
13735
13736/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13737 find out it does not work in some platform. */
13738#ifndef LT_DLLAZY_OR_NOW
13739# ifdef RTLD_LAZY
13740# define LT_DLLAZY_OR_NOW RTLD_LAZY
13741# else
13742# ifdef DL_LAZY
13743# define LT_DLLAZY_OR_NOW DL_LAZY
13744# else
13745# ifdef RTLD_NOW
13746# define LT_DLLAZY_OR_NOW RTLD_NOW
13747# else
13748# ifdef DL_NOW
13749# define LT_DLLAZY_OR_NOW DL_NOW
13750# else
13751# define LT_DLLAZY_OR_NOW 0
13752# endif
13753# endif
13754# endif
13755# endif
13756#endif
13757
13758#ifdef __cplusplus
13759extern "C" void exit (int);
13760#endif
13761
13762void fnord() { int i=42;}
13763int main ()
13764{
13765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13766 int status = $lt_dlunknown;
13767
13768 if (self)
13769 {
13770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13771 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13772 /* dlclose (self); */
13773 }
13774
13775 exit (status);
13776}
13777EOF
13778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13779 (eval $ac_link) 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13783 (./conftest; exit; ) 2>/dev/null
13784 lt_status=$?
13785 case x$lt_status in
13786 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13787 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13788 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13789 esac
13790 else :
13791 # compilation failed
13792 lt_cv_dlopen_self_static=no
13793 fi
13794fi
13795rm -fr conftest*
13796
13797
13798fi
13799{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13800echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13801 fi
13802
13803 CPPFLAGS="$save_CPPFLAGS"
13804 LDFLAGS="$save_LDFLAGS"
13805 LIBS="$save_LIBS"
13806 ;;
13807 esac
13808
13809 case $lt_cv_dlopen_self in
13810 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13811 *) enable_dlopen_self=unknown ;;
13812 esac
13813
13814 case $lt_cv_dlopen_self_static in
13815 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13816 *) enable_dlopen_self_static=unknown ;;
13817 esac
13818fi
13819
13820
13821# The else clause should only fire when bootstrapping the
13822# libtool distribution, otherwise you forgot to ship ltmain.sh
13823# with your package, and you will get complaints that there are
13824# no rules to generate ltmain.sh.
13825if test -f "$ltmain"; then
13826 # See if we are running on zsh, and set the options which allow our commands through
13827 # without removal of \ escapes.
13828 if test -n "${ZSH_VERSION+set}" ; then
13829 setopt NO_GLOB_SUBST
13830 fi
13831 # Now quote all the things that may contain metacharacters while being
13832 # careful not to overquote the AC_SUBSTed values. We take copies of the
13833 # variables and quote the copies for generation of the libtool script.
13816# The else clause should only fire when bootstrapping the
13817# libtool distribution, otherwise you forgot to ship ltmain.sh
13818# with your package, and you will get complaints that there are
13819# no rules to generate ltmain.sh.
13820if test -f "$ltmain"; then
13821 # See if we are running on zsh, and set the options which allow our commands through
13822 # without removal of \ escapes.
13823 if test -n "${ZSH_VERSION+set}" ; then
13824 setopt NO_GLOB_SUBST
13825 fi
13826 # Now quote all the things that may contain metacharacters while being
13827 # careful not to overquote the AC_SUBSTed values. We take copies of the
13828 # variables and quote the copies for generation of the libtool script.
13834 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13829 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13835 SED SHELL STRIP \
13836 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13837 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13838 deplibs_check_method reload_flag reload_cmds need_locks \
13839 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13840 lt_cv_sys_global_symbol_to_c_name_address \
13841 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13842 old_postinstall_cmds old_postuninstall_cmds \
13843 compiler_CXX \
13844 CC_CXX \
13845 LD_CXX \
13846 lt_prog_compiler_wl_CXX \
13847 lt_prog_compiler_pic_CXX \
13848 lt_prog_compiler_static_CXX \
13849 lt_prog_compiler_no_builtin_flag_CXX \
13850 export_dynamic_flag_spec_CXX \
13851 thread_safe_flag_spec_CXX \
13852 whole_archive_flag_spec_CXX \
13853 enable_shared_with_static_runtimes_CXX \
13854 old_archive_cmds_CXX \
13855 old_archive_from_new_cmds_CXX \
13856 predep_objects_CXX \
13857 postdep_objects_CXX \
13858 predeps_CXX \
13859 postdeps_CXX \
13860 compiler_lib_search_path_CXX \
13830 SED SHELL STRIP \
13831 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13832 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13833 deplibs_check_method reload_flag reload_cmds need_locks \
13834 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13835 lt_cv_sys_global_symbol_to_c_name_address \
13836 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13837 old_postinstall_cmds old_postuninstall_cmds \
13838 compiler_CXX \
13839 CC_CXX \
13840 LD_CXX \
13841 lt_prog_compiler_wl_CXX \
13842 lt_prog_compiler_pic_CXX \
13843 lt_prog_compiler_static_CXX \
13844 lt_prog_compiler_no_builtin_flag_CXX \
13845 export_dynamic_flag_spec_CXX \
13846 thread_safe_flag_spec_CXX \
13847 whole_archive_flag_spec_CXX \
13848 enable_shared_with_static_runtimes_CXX \
13849 old_archive_cmds_CXX \
13850 old_archive_from_new_cmds_CXX \
13851 predep_objects_CXX \
13852 postdep_objects_CXX \
13853 predeps_CXX \
13854 postdeps_CXX \
13855 compiler_lib_search_path_CXX \
13856 compiler_lib_search_dirs_CXX \
13861 archive_cmds_CXX \
13862 archive_expsym_cmds_CXX \
13863 postinstall_cmds_CXX \
13864 postuninstall_cmds_CXX \
13865 old_archive_from_expsyms_cmds_CXX \
13866 allow_undefined_flag_CXX \
13867 no_undefined_flag_CXX \
13868 export_symbols_cmds_CXX \
13869 hardcode_libdir_flag_spec_CXX \
13870 hardcode_libdir_flag_spec_ld_CXX \
13871 hardcode_libdir_separator_CXX \
13872 hardcode_automatic_CXX \
13873 module_cmds_CXX \
13874 module_expsym_cmds_CXX \
13875 lt_cv_prog_compiler_c_o_CXX \
13857 archive_cmds_CXX \
13858 archive_expsym_cmds_CXX \
13859 postinstall_cmds_CXX \
13860 postuninstall_cmds_CXX \
13861 old_archive_from_expsyms_cmds_CXX \
13862 allow_undefined_flag_CXX \
13863 no_undefined_flag_CXX \
13864 export_symbols_cmds_CXX \
13865 hardcode_libdir_flag_spec_CXX \
13866 hardcode_libdir_flag_spec_ld_CXX \
13867 hardcode_libdir_separator_CXX \
13868 hardcode_automatic_CXX \
13869 module_cmds_CXX \
13870 module_expsym_cmds_CXX \
13871 lt_cv_prog_compiler_c_o_CXX \
13872 fix_srcfile_path_CXX \
13876 exclude_expsyms_CXX \
13877 include_expsyms_CXX; do
13878
13879 case $var in
13880 old_archive_cmds_CXX | \
13881 old_archive_from_new_cmds_CXX | \
13882 archive_cmds_CXX | \
13883 archive_expsym_cmds_CXX | \
13884 module_cmds_CXX | \
13885 module_expsym_cmds_CXX | \
13886 old_archive_from_expsyms_cmds_CXX | \
13887 export_symbols_cmds_CXX | \
13888 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13889 postinstall_cmds | postuninstall_cmds | \
13890 old_postinstall_cmds | old_postuninstall_cmds | \
13891 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13892 # Double-quote double-evaled strings.
13893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13894 ;;
13895 *)
13896 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13897 ;;
13898 esac
13899 done
13900
13901 case $lt_echo in
13902 *'\$0 --fallback-echo"')
13903 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13904 ;;
13905 esac
13906
13907cfgfile="$ofile"
13908
13909 cat <<__EOF__ >> "$cfgfile"
13910# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13911
13912# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13913
13914# Shell to use when invoking shell scripts.
13915SHELL=$lt_SHELL
13916
13917# Whether or not to build shared libraries.
13918build_libtool_libs=$enable_shared
13919
13920# Whether or not to build static libraries.
13921build_old_libs=$enable_static
13922
13923# Whether or not to add -lc for building shared libraries.
13924build_libtool_need_lc=$archive_cmds_need_lc_CXX
13925
13926# Whether or not to disallow shared libs when runtime libs are static
13927allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13928
13929# Whether or not to optimize for fast installation.
13930fast_install=$enable_fast_install
13931
13932# The host system.
13933host_alias=$host_alias
13934host=$host
13935host_os=$host_os
13936
13937# The build system.
13938build_alias=$build_alias
13939build=$build
13940build_os=$build_os
13941
13942# An echo program that does not interpret backslashes.
13943echo=$lt_echo
13944
13945# The archiver.
13946AR=$lt_AR
13947AR_FLAGS=$lt_AR_FLAGS
13948
13949# A C compiler.
13950LTCC=$lt_LTCC
13951
13873 exclude_expsyms_CXX \
13874 include_expsyms_CXX; do
13875
13876 case $var in
13877 old_archive_cmds_CXX | \
13878 old_archive_from_new_cmds_CXX | \
13879 archive_cmds_CXX | \
13880 archive_expsym_cmds_CXX | \
13881 module_cmds_CXX | \
13882 module_expsym_cmds_CXX | \
13883 old_archive_from_expsyms_cmds_CXX | \
13884 export_symbols_cmds_CXX | \
13885 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13886 postinstall_cmds | postuninstall_cmds | \
13887 old_postinstall_cmds | old_postuninstall_cmds | \
13888 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13889 # Double-quote double-evaled strings.
13890 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13891 ;;
13892 *)
13893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13894 ;;
13895 esac
13896 done
13897
13898 case $lt_echo in
13899 *'\$0 --fallback-echo"')
13900 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13901 ;;
13902 esac
13903
13904cfgfile="$ofile"
13905
13906 cat <<__EOF__ >> "$cfgfile"
13907# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13908
13909# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13910
13911# Shell to use when invoking shell scripts.
13912SHELL=$lt_SHELL
13913
13914# Whether or not to build shared libraries.
13915build_libtool_libs=$enable_shared
13916
13917# Whether or not to build static libraries.
13918build_old_libs=$enable_static
13919
13920# Whether or not to add -lc for building shared libraries.
13921build_libtool_need_lc=$archive_cmds_need_lc_CXX
13922
13923# Whether or not to disallow shared libs when runtime libs are static
13924allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13925
13926# Whether or not to optimize for fast installation.
13927fast_install=$enable_fast_install
13928
13929# The host system.
13930host_alias=$host_alias
13931host=$host
13932host_os=$host_os
13933
13934# The build system.
13935build_alias=$build_alias
13936build=$build
13937build_os=$build_os
13938
13939# An echo program that does not interpret backslashes.
13940echo=$lt_echo
13941
13942# The archiver.
13943AR=$lt_AR
13944AR_FLAGS=$lt_AR_FLAGS
13945
13946# A C compiler.
13947LTCC=$lt_LTCC
13948
13949# LTCC compiler flags.
13950LTCFLAGS=$lt_LTCFLAGS
13951
13952# A language-specific compiler.
13953CC=$lt_compiler_CXX
13954
13955# Is the compiler the GNU C compiler?
13956with_gcc=$GCC_CXX
13957
13958# An ERE matcher.
13959EGREP=$lt_EGREP
13960
13961# The linker used to build libraries.
13962LD=$lt_LD_CXX
13963
13964# Whether we need hard or soft links.
13965LN_S=$lt_LN_S
13966
13967# A BSD-compatible nm program.
13968NM=$lt_NM
13969
13970# A symbol stripping program
13971STRIP=$lt_STRIP
13972
13973# Used to examine libraries when file_magic_cmd begins "file"
13974MAGIC_CMD=$MAGIC_CMD
13975
13976# Used on cygwin: DLL creation program.
13977DLLTOOL="$DLLTOOL"
13978
13979# Used on cygwin: object dumper.
13980OBJDUMP="$OBJDUMP"
13981
13982# Used on cygwin: assembler.
13983AS="$AS"
13984
13985# The name of the directory that contains temporary libtool files.
13986objdir=$objdir
13987
13988# How to create reloadable object files.
13989reload_flag=$lt_reload_flag
13990reload_cmds=$lt_reload_cmds
13991
13992# How to pass a linker flag through the compiler.
13993wl=$lt_lt_prog_compiler_wl_CXX
13994
13995# Object file suffix (normally "o").
13996objext="$ac_objext"
13997
13998# Old archive suffix (normally "a").
13999libext="$libext"
14000
14001# Shared library suffix (normally ".so").
14002shrext_cmds='$shrext_cmds'
14003
14004# Executable file suffix (normally "").
14005exeext="$exeext"
14006
14007# Additional compiler flags for building library objects.
14008pic_flag=$lt_lt_prog_compiler_pic_CXX
14009pic_mode=$pic_mode
14010
14011# What is the maximum length of a command?
14012max_cmd_len=$lt_cv_sys_max_cmd_len
14013
14014# Does compiler simultaneously support -c and -o options?
14015compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14016
14017# Must we lock files when doing compilation?
14018need_locks=$lt_need_locks
14019
14020# Do we need the lib prefix for modules?
14021need_lib_prefix=$need_lib_prefix
14022
14023# Do we need a version for libraries?
14024need_version=$need_version
14025
14026# Whether dlopen is supported.
14027dlopen_support=$enable_dlopen
14028
14029# Whether dlopen of programs is supported.
14030dlopen_self=$enable_dlopen_self
14031
14032# Whether dlopen of statically linked programs is supported.
14033dlopen_self_static=$enable_dlopen_self_static
14034
14035# Compiler flag to prevent dynamic linking.
14036link_static_flag=$lt_lt_prog_compiler_static_CXX
14037
14038# Compiler flag to turn off builtin functions.
14039no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14040
14041# Compiler flag to allow reflexive dlopens.
14042export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14043
14044# Compiler flag to generate shared objects directly from archives.
14045whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14046
14047# Compiler flag to generate thread-safe objects.
14048thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14049
14050# Library versioning type.
14051version_type=$version_type
14052
14053# Format of library name prefix.
14054libname_spec=$lt_libname_spec
14055
14056# List of archive names. First name is the real one, the rest are links.
14057# The last name is the one that the linker finds with -lNAME.
14058library_names_spec=$lt_library_names_spec
14059
14060# The coded name of the library, if different from the real name.
14061soname_spec=$lt_soname_spec
14062
14063# Commands used to build and install an old-style archive.
14064RANLIB=$lt_RANLIB
14065old_archive_cmds=$lt_old_archive_cmds_CXX
14066old_postinstall_cmds=$lt_old_postinstall_cmds
14067old_postuninstall_cmds=$lt_old_postuninstall_cmds
14068
14069# Create an old-style archive from a shared archive.
14070old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14071
14072# Create a temporary old-style archive to link instead of a shared archive.
14073old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14074
14075# Commands used to build and install a shared archive.
14076archive_cmds=$lt_archive_cmds_CXX
14077archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14078postinstall_cmds=$lt_postinstall_cmds
14079postuninstall_cmds=$lt_postuninstall_cmds
14080
14081# Commands used to build a loadable module (assumed same as above if empty)
14082module_cmds=$lt_module_cmds_CXX
14083module_expsym_cmds=$lt_module_expsym_cmds_CXX
14084
14085# Commands to strip libraries.
14086old_striplib=$lt_old_striplib
14087striplib=$lt_striplib
14088
14089# Dependencies to place before the objects being linked to create a
14090# shared library.
14091predep_objects=$lt_predep_objects_CXX
14092
14093# Dependencies to place after the objects being linked to create a
14094# shared library.
14095postdep_objects=$lt_postdep_objects_CXX
14096
14097# Dependencies to place before the objects being linked to create a
14098# shared library.
14099predeps=$lt_predeps_CXX
14100
14101# Dependencies to place after the objects being linked to create a
14102# shared library.
14103postdeps=$lt_postdeps_CXX
14104
13952# A language-specific compiler.
13953CC=$lt_compiler_CXX
13954
13955# Is the compiler the GNU C compiler?
13956with_gcc=$GCC_CXX
13957
13958# An ERE matcher.
13959EGREP=$lt_EGREP
13960
13961# The linker used to build libraries.
13962LD=$lt_LD_CXX
13963
13964# Whether we need hard or soft links.
13965LN_S=$lt_LN_S
13966
13967# A BSD-compatible nm program.
13968NM=$lt_NM
13969
13970# A symbol stripping program
13971STRIP=$lt_STRIP
13972
13973# Used to examine libraries when file_magic_cmd begins "file"
13974MAGIC_CMD=$MAGIC_CMD
13975
13976# Used on cygwin: DLL creation program.
13977DLLTOOL="$DLLTOOL"
13978
13979# Used on cygwin: object dumper.
13980OBJDUMP="$OBJDUMP"
13981
13982# Used on cygwin: assembler.
13983AS="$AS"
13984
13985# The name of the directory that contains temporary libtool files.
13986objdir=$objdir
13987
13988# How to create reloadable object files.
13989reload_flag=$lt_reload_flag
13990reload_cmds=$lt_reload_cmds
13991
13992# How to pass a linker flag through the compiler.
13993wl=$lt_lt_prog_compiler_wl_CXX
13994
13995# Object file suffix (normally "o").
13996objext="$ac_objext"
13997
13998# Old archive suffix (normally "a").
13999libext="$libext"
14000
14001# Shared library suffix (normally ".so").
14002shrext_cmds='$shrext_cmds'
14003
14004# Executable file suffix (normally "").
14005exeext="$exeext"
14006
14007# Additional compiler flags for building library objects.
14008pic_flag=$lt_lt_prog_compiler_pic_CXX
14009pic_mode=$pic_mode
14010
14011# What is the maximum length of a command?
14012max_cmd_len=$lt_cv_sys_max_cmd_len
14013
14014# Does compiler simultaneously support -c and -o options?
14015compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14016
14017# Must we lock files when doing compilation?
14018need_locks=$lt_need_locks
14019
14020# Do we need the lib prefix for modules?
14021need_lib_prefix=$need_lib_prefix
14022
14023# Do we need a version for libraries?
14024need_version=$need_version
14025
14026# Whether dlopen is supported.
14027dlopen_support=$enable_dlopen
14028
14029# Whether dlopen of programs is supported.
14030dlopen_self=$enable_dlopen_self
14031
14032# Whether dlopen of statically linked programs is supported.
14033dlopen_self_static=$enable_dlopen_self_static
14034
14035# Compiler flag to prevent dynamic linking.
14036link_static_flag=$lt_lt_prog_compiler_static_CXX
14037
14038# Compiler flag to turn off builtin functions.
14039no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14040
14041# Compiler flag to allow reflexive dlopens.
14042export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14043
14044# Compiler flag to generate shared objects directly from archives.
14045whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14046
14047# Compiler flag to generate thread-safe objects.
14048thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14049
14050# Library versioning type.
14051version_type=$version_type
14052
14053# Format of library name prefix.
14054libname_spec=$lt_libname_spec
14055
14056# List of archive names. First name is the real one, the rest are links.
14057# The last name is the one that the linker finds with -lNAME.
14058library_names_spec=$lt_library_names_spec
14059
14060# The coded name of the library, if different from the real name.
14061soname_spec=$lt_soname_spec
14062
14063# Commands used to build and install an old-style archive.
14064RANLIB=$lt_RANLIB
14065old_archive_cmds=$lt_old_archive_cmds_CXX
14066old_postinstall_cmds=$lt_old_postinstall_cmds
14067old_postuninstall_cmds=$lt_old_postuninstall_cmds
14068
14069# Create an old-style archive from a shared archive.
14070old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14071
14072# Create a temporary old-style archive to link instead of a shared archive.
14073old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14074
14075# Commands used to build and install a shared archive.
14076archive_cmds=$lt_archive_cmds_CXX
14077archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14078postinstall_cmds=$lt_postinstall_cmds
14079postuninstall_cmds=$lt_postuninstall_cmds
14080
14081# Commands used to build a loadable module (assumed same as above if empty)
14082module_cmds=$lt_module_cmds_CXX
14083module_expsym_cmds=$lt_module_expsym_cmds_CXX
14084
14085# Commands to strip libraries.
14086old_striplib=$lt_old_striplib
14087striplib=$lt_striplib
14088
14089# Dependencies to place before the objects being linked to create a
14090# shared library.
14091predep_objects=$lt_predep_objects_CXX
14092
14093# Dependencies to place after the objects being linked to create a
14094# shared library.
14095postdep_objects=$lt_postdep_objects_CXX
14096
14097# Dependencies to place before the objects being linked to create a
14098# shared library.
14099predeps=$lt_predeps_CXX
14100
14101# Dependencies to place after the objects being linked to create a
14102# shared library.
14103postdeps=$lt_postdeps_CXX
14104
14105# The directories searched by this compiler when creating a shared
14106# library
14107compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14108
14105# The library search path used internally by the compiler when linking
14106# a shared library.
14107compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14108
14109# Method to check whether dependent libraries are shared objects.
14110deplibs_check_method=$lt_deplibs_check_method
14111
14112# Command to use when deplibs_check_method == file_magic.
14113file_magic_cmd=$lt_file_magic_cmd
14114
14115# Flag that allows shared libraries with undefined symbols to be built.
14116allow_undefined_flag=$lt_allow_undefined_flag_CXX
14117
14118# Flag that forces no undefined symbols.
14119no_undefined_flag=$lt_no_undefined_flag_CXX
14120
14121# Commands used to finish a libtool library installation in a directory.
14122finish_cmds=$lt_finish_cmds
14123
14124# Same as above, but a single script fragment to be evaled but not shown.
14125finish_eval=$lt_finish_eval
14126
14127# Take the output of nm and produce a listing of raw symbols and C names.
14128global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14129
14130# Transform the output of nm in a proper C declaration
14131global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14132
14133# Transform the output of nm in a C name address pair
14134global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14135
14136# This is the shared library runtime path variable.
14137runpath_var=$runpath_var
14138
14139# This is the shared library path variable.
14140shlibpath_var=$shlibpath_var
14141
14142# Is shlibpath searched before the hard-coded library search path?
14143shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14144
14145# How to hardcode a shared library path into an executable.
14146hardcode_action=$hardcode_action_CXX
14147
14148# Whether we should hardcode library paths into libraries.
14149hardcode_into_libs=$hardcode_into_libs
14150
14151# Flag to hardcode \$libdir into a binary during linking.
14152# This must work even if \$libdir does not exist.
14153hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14154
14155# If ld is used when linking, flag to hardcode \$libdir into
14156# a binary during linking. This must work even if \$libdir does
14157# not exist.
14158hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14159
14160# Whether we need a single -rpath flag with a separated argument.
14161hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14162
14163# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14164# resulting binary.
14165hardcode_direct=$hardcode_direct_CXX
14166
14167# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14168# resulting binary.
14169hardcode_minus_L=$hardcode_minus_L_CXX
14170
14171# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14172# the resulting binary.
14173hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14174
14175# Set to yes if building a shared library automatically hardcodes DIR into the library
14176# and all subsequent libraries and executables linked against it.
14177hardcode_automatic=$hardcode_automatic_CXX
14178
14179# Variables whose values should be saved in libtool wrapper scripts and
14180# restored at relink time.
14181variables_saved_for_relink="$variables_saved_for_relink"
14182
14183# Whether libtool must link a program against all its dependency libraries.
14184link_all_deplibs=$link_all_deplibs_CXX
14185
14186# Compile-time system search path for libraries
14187sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14188
14189# Run-time system search path for libraries
14190sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14191
14192# Fix the shell variable \$srcfile for the compiler.
14109# The library search path used internally by the compiler when linking
14110# a shared library.
14111compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14112
14113# Method to check whether dependent libraries are shared objects.
14114deplibs_check_method=$lt_deplibs_check_method
14115
14116# Command to use when deplibs_check_method == file_magic.
14117file_magic_cmd=$lt_file_magic_cmd
14118
14119# Flag that allows shared libraries with undefined symbols to be built.
14120allow_undefined_flag=$lt_allow_undefined_flag_CXX
14121
14122# Flag that forces no undefined symbols.
14123no_undefined_flag=$lt_no_undefined_flag_CXX
14124
14125# Commands used to finish a libtool library installation in a directory.
14126finish_cmds=$lt_finish_cmds
14127
14128# Same as above, but a single script fragment to be evaled but not shown.
14129finish_eval=$lt_finish_eval
14130
14131# Take the output of nm and produce a listing of raw symbols and C names.
14132global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14133
14134# Transform the output of nm in a proper C declaration
14135global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14136
14137# Transform the output of nm in a C name address pair
14138global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14139
14140# This is the shared library runtime path variable.
14141runpath_var=$runpath_var
14142
14143# This is the shared library path variable.
14144shlibpath_var=$shlibpath_var
14145
14146# Is shlibpath searched before the hard-coded library search path?
14147shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14148
14149# How to hardcode a shared library path into an executable.
14150hardcode_action=$hardcode_action_CXX
14151
14152# Whether we should hardcode library paths into libraries.
14153hardcode_into_libs=$hardcode_into_libs
14154
14155# Flag to hardcode \$libdir into a binary during linking.
14156# This must work even if \$libdir does not exist.
14157hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14158
14159# If ld is used when linking, flag to hardcode \$libdir into
14160# a binary during linking. This must work even if \$libdir does
14161# not exist.
14162hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14163
14164# Whether we need a single -rpath flag with a separated argument.
14165hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14166
14167# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14168# resulting binary.
14169hardcode_direct=$hardcode_direct_CXX
14170
14171# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14172# resulting binary.
14173hardcode_minus_L=$hardcode_minus_L_CXX
14174
14175# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14176# the resulting binary.
14177hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14178
14179# Set to yes if building a shared library automatically hardcodes DIR into the library
14180# and all subsequent libraries and executables linked against it.
14181hardcode_automatic=$hardcode_automatic_CXX
14182
14183# Variables whose values should be saved in libtool wrapper scripts and
14184# restored at relink time.
14185variables_saved_for_relink="$variables_saved_for_relink"
14186
14187# Whether libtool must link a program against all its dependency libraries.
14188link_all_deplibs=$link_all_deplibs_CXX
14189
14190# Compile-time system search path for libraries
14191sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14192
14193# Run-time system search path for libraries
14194sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14195
14196# Fix the shell variable \$srcfile for the compiler.
14193fix_srcfile_path="$fix_srcfile_path_CXX"
14197fix_srcfile_path=$lt_fix_srcfile_path
14194
14195# Set to yes if exported symbols are required.
14196always_export_symbols=$always_export_symbols_CXX
14197
14198# The commands to list exported symbols.
14199export_symbols_cmds=$lt_export_symbols_cmds_CXX
14200
14201# The commands to extract the exported symbol list from a shared archive.
14202extract_expsyms_cmds=$lt_extract_expsyms_cmds
14203
14204# Symbols that should not be listed in the preloaded symbols.
14205exclude_expsyms=$lt_exclude_expsyms_CXX
14206
14207# Symbols that must always be exported.
14208include_expsyms=$lt_include_expsyms_CXX
14209
14210# ### END LIBTOOL TAG CONFIG: $tagname
14211
14212__EOF__
14213
14214
14215else
14216 # If there is no Makefile yet, we rely on a make rule to execute
14217 # `config.status --recheck' to rerun these tests and create the
14218 # libtool script then.
14219 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14220 if test -f "$ltmain_in"; then
14221 test -f Makefile && make "$ltmain"
14222 fi
14223fi
14224
14225
14226ac_ext=c
14227ac_cpp='$CPP $CPPFLAGS'
14228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14230ac_compiler_gnu=$ac_cv_c_compiler_gnu
14231
14232CC=$lt_save_CC
14233LDCXX=$LD
14234LD=$lt_save_LD
14235GCC=$lt_save_GCC
14236with_gnu_ldcxx=$with_gnu_ld
14237with_gnu_ld=$lt_save_with_gnu_ld
14238lt_cv_path_LDCXX=$lt_cv_path_LD
14239lt_cv_path_LD=$lt_save_path_LD
14240lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14241lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14242
14243 else
14244 tagname=""
14245 fi
14246 ;;
14247
14248 F77)
14249 if test -n "$F77" && test "X$F77" != "Xno"; then
14250
14251ac_ext=f
14252ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14253ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14254ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14255
14256
14257archive_cmds_need_lc_F77=no
14258allow_undefined_flag_F77=
14259always_export_symbols_F77=no
14260archive_expsym_cmds_F77=
14261export_dynamic_flag_spec_F77=
14262hardcode_direct_F77=no
14263hardcode_libdir_flag_spec_F77=
14264hardcode_libdir_flag_spec_ld_F77=
14265hardcode_libdir_separator_F77=
14266hardcode_minus_L_F77=no
14267hardcode_automatic_F77=no
14268module_cmds_F77=
14269module_expsym_cmds_F77=
14270link_all_deplibs_F77=unknown
14271old_archive_cmds_F77=$old_archive_cmds
14272no_undefined_flag_F77=
14273whole_archive_flag_spec_F77=
14274enable_shared_with_static_runtimes_F77=no
14275
14276# Source file extension for f77 test sources.
14277ac_ext=f
14278
14279# Object file extension for compiled f77 test sources.
14280objext=o
14281objext_F77=$objext
14282
14283# Code to be used in simple compile tests
14198
14199# Set to yes if exported symbols are required.
14200always_export_symbols=$always_export_symbols_CXX
14201
14202# The commands to list exported symbols.
14203export_symbols_cmds=$lt_export_symbols_cmds_CXX
14204
14205# The commands to extract the exported symbol list from a shared archive.
14206extract_expsyms_cmds=$lt_extract_expsyms_cmds
14207
14208# Symbols that should not be listed in the preloaded symbols.
14209exclude_expsyms=$lt_exclude_expsyms_CXX
14210
14211# Symbols that must always be exported.
14212include_expsyms=$lt_include_expsyms_CXX
14213
14214# ### END LIBTOOL TAG CONFIG: $tagname
14215
14216__EOF__
14217
14218
14219else
14220 # If there is no Makefile yet, we rely on a make rule to execute
14221 # `config.status --recheck' to rerun these tests and create the
14222 # libtool script then.
14223 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14224 if test -f "$ltmain_in"; then
14225 test -f Makefile && make "$ltmain"
14226 fi
14227fi
14228
14229
14230ac_ext=c
14231ac_cpp='$CPP $CPPFLAGS'
14232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14234ac_compiler_gnu=$ac_cv_c_compiler_gnu
14235
14236CC=$lt_save_CC
14237LDCXX=$LD
14238LD=$lt_save_LD
14239GCC=$lt_save_GCC
14240with_gnu_ldcxx=$with_gnu_ld
14241with_gnu_ld=$lt_save_with_gnu_ld
14242lt_cv_path_LDCXX=$lt_cv_path_LD
14243lt_cv_path_LD=$lt_save_path_LD
14244lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14245lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14246
14247 else
14248 tagname=""
14249 fi
14250 ;;
14251
14252 F77)
14253 if test -n "$F77" && test "X$F77" != "Xno"; then
14254
14255ac_ext=f
14256ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14257ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14258ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14259
14260
14261archive_cmds_need_lc_F77=no
14262allow_undefined_flag_F77=
14263always_export_symbols_F77=no
14264archive_expsym_cmds_F77=
14265export_dynamic_flag_spec_F77=
14266hardcode_direct_F77=no
14267hardcode_libdir_flag_spec_F77=
14268hardcode_libdir_flag_spec_ld_F77=
14269hardcode_libdir_separator_F77=
14270hardcode_minus_L_F77=no
14271hardcode_automatic_F77=no
14272module_cmds_F77=
14273module_expsym_cmds_F77=
14274link_all_deplibs_F77=unknown
14275old_archive_cmds_F77=$old_archive_cmds
14276no_undefined_flag_F77=
14277whole_archive_flag_spec_F77=
14278enable_shared_with_static_runtimes_F77=no
14279
14280# Source file extension for f77 test sources.
14281ac_ext=f
14282
14283# Object file extension for compiled f77 test sources.
14284objext=o
14285objext_F77=$objext
14286
14287# Code to be used in simple compile tests
14284lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14288lt_simple_compile_test_code="\
14289 subroutine t
14290 return
14291 end
14292"
14285
14286# Code to be used in simple link tests
14293
14294# Code to be used in simple link tests
14287lt_simple_link_test_code=" program t\n end\n"
14295lt_simple_link_test_code="\
14296 program t
14297 end
14298"
14288
14289# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14290
14291# If no C compiler was specified, use CC.
14292LTCC=${LTCC-"$CC"}
14293
14299
14300# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14301
14302# If no C compiler was specified, use CC.
14303LTCC=${LTCC-"$CC"}
14304
14305# If no C compiler flags were specified, use CFLAGS.
14306LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14307
14294# Allow CC to be a program name with arguments.
14295compiler=$CC
14296
14297
14298# save warnings/boilerplate of simple test code
14299ac_outfile=conftest.$ac_objext
14308# Allow CC to be a program name with arguments.
14309compiler=$CC
14310
14311
14312# save warnings/boilerplate of simple test code
14313ac_outfile=conftest.$ac_objext
14300printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14301eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14314echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14315eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14302_lt_compiler_boilerplate=`cat conftest.err`
14303$rm conftest*
14304
14305ac_outfile=conftest.$ac_objext
14316_lt_compiler_boilerplate=`cat conftest.err`
14317$rm conftest*
14318
14319ac_outfile=conftest.$ac_objext
14306printf "$lt_simple_link_test_code" >conftest.$ac_ext
14307eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14320echo "$lt_simple_link_test_code" >conftest.$ac_ext
14321eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14308_lt_linker_boilerplate=`cat conftest.err`
14322_lt_linker_boilerplate=`cat conftest.err`
14309$rm conftest*
14323$rm -r conftest*
14310
14311
14312# Allow CC to be a program name with arguments.
14313lt_save_CC="$CC"
14314CC=${F77-"f77"}
14315compiler=$CC
14316compiler_F77=$CC
14317for cc_temp in $compiler""; do
14318 case $cc_temp in
14319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14321 \-*) ;;
14322 *) break;;
14323 esac
14324done
14325cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14326
14327
14328{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14329echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14330{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14331echo "${ECHO_T}$can_build_shared" >&6; }
14332
14333{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14334echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14335test "$can_build_shared" = "no" && enable_shared=no
14336
14337# On AIX, shared libraries and static libraries use the same namespace, and
14338# are all built from PIC.
14324
14325
14326# Allow CC to be a program name with arguments.
14327lt_save_CC="$CC"
14328CC=${F77-"f77"}
14329compiler=$CC
14330compiler_F77=$CC
14331for cc_temp in $compiler""; do
14332 case $cc_temp in
14333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14335 \-*) ;;
14336 *) break;;
14337 esac
14338done
14339cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14340
14341
14342{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14343echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14344{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14345echo "${ECHO_T}$can_build_shared" >&6; }
14346
14347{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14348echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14349test "$can_build_shared" = "no" && enable_shared=no
14350
14351# On AIX, shared libraries and static libraries use the same namespace, and
14352# are all built from PIC.
14339case "$host_os" in
14353case $host_os in
14340aix3*)
14341 test "$enable_shared" = yes && enable_static=no
14342 if test -n "$RANLIB"; then
14343 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14344 postinstall_cmds='$RANLIB $lib'
14345 fi
14346 ;;
14354aix3*)
14355 test "$enable_shared" = yes && enable_static=no
14356 if test -n "$RANLIB"; then
14357 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14358 postinstall_cmds='$RANLIB $lib'
14359 fi
14360 ;;
14347aix4* | aix5*)
14361aix[4-9]*)
14348 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14349 test "$enable_shared" = yes && enable_static=no
14350 fi
14351 ;;
14352esac
14353{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14354echo "${ECHO_T}$enable_shared" >&6; }
14355
14356{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14357echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14358# Make sure either enable_shared or enable_static is yes.
14359test "$enable_shared" = yes || enable_static=yes
14360{ echo "$as_me:$LINENO: result: $enable_static" >&5
14361echo "${ECHO_T}$enable_static" >&6; }
14362
14362 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14363 test "$enable_shared" = yes && enable_static=no
14364 fi
14365 ;;
14366esac
14367{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14368echo "${ECHO_T}$enable_shared" >&6; }
14369
14370{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14371echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14372# Make sure either enable_shared or enable_static is yes.
14373test "$enable_shared" = yes || enable_static=yes
14374{ echo "$as_me:$LINENO: result: $enable_static" >&5
14375echo "${ECHO_T}$enable_static" >&6; }
14376
14363test "$ld_shlibs_F77" = no && can_build_shared=no
14364
14365GCC_F77="$G77"
14366LD_F77="$LD"
14367
14368lt_prog_compiler_wl_F77=
14369lt_prog_compiler_pic_F77=
14370lt_prog_compiler_static_F77=
14371
14372{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14373echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14374
14375 if test "$GCC" = yes; then
14376 lt_prog_compiler_wl_F77='-Wl,'
14377 lt_prog_compiler_static_F77='-static'
14378
14379 case $host_os in
14380 aix*)
14381 # All AIX code is PIC.
14382 if test "$host_cpu" = ia64; then
14383 # AIX 5 now supports IA64 processor
14384 lt_prog_compiler_static_F77='-Bstatic'
14385 fi
14386 ;;
14387
14388 amigaos*)
14389 # FIXME: we need at least 68020 code to build shared libraries, but
14390 # adding the `-m68020' flag to GCC prevents building anything better,
14391 # like `-m68040'.
14392 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14393 ;;
14394
14377GCC_F77="$G77"
14378LD_F77="$LD"
14379
14380lt_prog_compiler_wl_F77=
14381lt_prog_compiler_pic_F77=
14382lt_prog_compiler_static_F77=
14383
14384{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14385echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14386
14387 if test "$GCC" = yes; then
14388 lt_prog_compiler_wl_F77='-Wl,'
14389 lt_prog_compiler_static_F77='-static'
14390
14391 case $host_os in
14392 aix*)
14393 # All AIX code is PIC.
14394 if test "$host_cpu" = ia64; then
14395 # AIX 5 now supports IA64 processor
14396 lt_prog_compiler_static_F77='-Bstatic'
14397 fi
14398 ;;
14399
14400 amigaos*)
14401 # FIXME: we need at least 68020 code to build shared libraries, but
14402 # adding the `-m68020' flag to GCC prevents building anything better,
14403 # like `-m68040'.
14404 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14405 ;;
14406
14395 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14407 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14396 # PIC is the default for these OSes.
14397 ;;
14398
14408 # PIC is the default for these OSes.
14409 ;;
14410
14399 mingw* | pw32* | os2*)
14411 mingw* | cygwin* | pw32* | os2*)
14400 # This hack is so that the source file can tell whether it is being
14401 # built for inclusion in a dll (and should export symbols for example).
14412 # This hack is so that the source file can tell whether it is being
14413 # built for inclusion in a dll (and should export symbols for example).
14414 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14415 # (--disable-auto-import) libraries
14402 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14403 ;;
14404
14405 darwin* | rhapsody*)
14406 # PIC is the default on this platform
14407 # Common symbols not allowed in MH_DYLIB files
14408 lt_prog_compiler_pic_F77='-fno-common'
14409 ;;
14410
14416 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14417 ;;
14418
14419 darwin* | rhapsody*)
14420 # PIC is the default on this platform
14421 # Common symbols not allowed in MH_DYLIB files
14422 lt_prog_compiler_pic_F77='-fno-common'
14423 ;;
14424
14425 interix[3-9]*)
14426 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14427 # Instead, we relocate shared libraries at runtime.
14428 ;;
14429
14411 msdosdjgpp*)
14412 # Just because we use GCC doesn't mean we suddenly get shared libraries
14413 # on systems that don't support them.
14414 lt_prog_compiler_can_build_shared_F77=no
14415 enable_shared=no
14416 ;;
14417
14418 sysv4*MP*)
14419 if test -d /usr/nec; then
14420 lt_prog_compiler_pic_F77=-Kconform_pic
14421 fi
14422 ;;
14423
14424 hpux*)
14425 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14426 # not for PA HP-UX.
14430 msdosdjgpp*)
14431 # Just because we use GCC doesn't mean we suddenly get shared libraries
14432 # on systems that don't support them.
14433 lt_prog_compiler_can_build_shared_F77=no
14434 enable_shared=no
14435 ;;
14436
14437 sysv4*MP*)
14438 if test -d /usr/nec; then
14439 lt_prog_compiler_pic_F77=-Kconform_pic
14440 fi
14441 ;;
14442
14443 hpux*)
14444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14445 # not for PA HP-UX.
14427 case "$host_cpu" in
14446 case $host_cpu in
14428 hppa*64*|ia64*)
14429 # +Z the default
14430 ;;
14431 *)
14432 lt_prog_compiler_pic_F77='-fPIC'
14433 ;;
14434 esac
14435 ;;
14436
14437 *)
14438 lt_prog_compiler_pic_F77='-fPIC'
14439 ;;
14440 esac
14441 else
14442 # PORTME Check for flag to pass linker flags through the system compiler.
14443 case $host_os in
14444 aix*)
14445 lt_prog_compiler_wl_F77='-Wl,'
14446 if test "$host_cpu" = ia64; then
14447 # AIX 5 now supports IA64 processor
14448 lt_prog_compiler_static_F77='-Bstatic'
14449 else
14450 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14451 fi
14452 ;;
14453 darwin*)
14454 # PIC is the default on this platform
14455 # Common symbols not allowed in MH_DYLIB files
14456 case $cc_basename in
14457 xlc*)
14458 lt_prog_compiler_pic_F77='-qnocommon'
14459 lt_prog_compiler_wl_F77='-Wl,'
14460 ;;
14461 esac
14462 ;;
14463
14447 hppa*64*|ia64*)
14448 # +Z the default
14449 ;;
14450 *)
14451 lt_prog_compiler_pic_F77='-fPIC'
14452 ;;
14453 esac
14454 ;;
14455
14456 *)
14457 lt_prog_compiler_pic_F77='-fPIC'
14458 ;;
14459 esac
14460 else
14461 # PORTME Check for flag to pass linker flags through the system compiler.
14462 case $host_os in
14463 aix*)
14464 lt_prog_compiler_wl_F77='-Wl,'
14465 if test "$host_cpu" = ia64; then
14466 # AIX 5 now supports IA64 processor
14467 lt_prog_compiler_static_F77='-Bstatic'
14468 else
14469 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14470 fi
14471 ;;
14472 darwin*)
14473 # PIC is the default on this platform
14474 # Common symbols not allowed in MH_DYLIB files
14475 case $cc_basename in
14476 xlc*)
14477 lt_prog_compiler_pic_F77='-qnocommon'
14478 lt_prog_compiler_wl_F77='-Wl,'
14479 ;;
14480 esac
14481 ;;
14482
14464 mingw* | pw32* | os2*)
14483 mingw* | cygwin* | pw32* | os2*)
14465 # This hack is so that the source file can tell whether it is being
14466 # built for inclusion in a dll (and should export symbols for example).
14467 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14468 ;;
14469
14470 hpux9* | hpux10* | hpux11*)
14471 lt_prog_compiler_wl_F77='-Wl,'
14472 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14473 # not for PA HP-UX.
14484 # This hack is so that the source file can tell whether it is being
14485 # built for inclusion in a dll (and should export symbols for example).
14486 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14487 ;;
14488
14489 hpux9* | hpux10* | hpux11*)
14490 lt_prog_compiler_wl_F77='-Wl,'
14491 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14492 # not for PA HP-UX.
14474 case "$host_cpu" in
14493 case $host_cpu in
14475 hppa*64*|ia64*)
14476 # +Z the default
14477 ;;
14478 *)
14479 lt_prog_compiler_pic_F77='+Z'
14480 ;;
14481 esac
14482 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14483 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14484 ;;
14485
14486 irix5* | irix6* | nonstopux*)
14487 lt_prog_compiler_wl_F77='-Wl,'
14488 # PIC (with -KPIC) is the default.
14489 lt_prog_compiler_static_F77='-non_shared'
14490 ;;
14491
14492 newsos6)
14493 lt_prog_compiler_pic_F77='-KPIC'
14494 lt_prog_compiler_static_F77='-Bstatic'
14495 ;;
14496
14494 hppa*64*|ia64*)
14495 # +Z the default
14496 ;;
14497 *)
14498 lt_prog_compiler_pic_F77='+Z'
14499 ;;
14500 esac
14501 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14502 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14503 ;;
14504
14505 irix5* | irix6* | nonstopux*)
14506 lt_prog_compiler_wl_F77='-Wl,'
14507 # PIC (with -KPIC) is the default.
14508 lt_prog_compiler_static_F77='-non_shared'
14509 ;;
14510
14511 newsos6)
14512 lt_prog_compiler_pic_F77='-KPIC'
14513 lt_prog_compiler_static_F77='-Bstatic'
14514 ;;
14515
14497 linux*)
14516 linux* | k*bsd*-gnu)
14498 case $cc_basename in
14499 icc* | ecc*)
14500 lt_prog_compiler_wl_F77='-Wl,'
14501 lt_prog_compiler_pic_F77='-KPIC'
14502 lt_prog_compiler_static_F77='-static'
14503 ;;
14517 case $cc_basename in
14518 icc* | ecc*)
14519 lt_prog_compiler_wl_F77='-Wl,'
14520 lt_prog_compiler_pic_F77='-KPIC'
14521 lt_prog_compiler_static_F77='-static'
14522 ;;
14504 pgcc* | pgf77* | pgf90*)
14523 pgcc* | pgf77* | pgf90* | pgf95*)
14505 # Portland Group compilers (*not* the Pentium gcc compiler,
14506 # which looks to be a dead project)
14507 lt_prog_compiler_wl_F77='-Wl,'
14508 lt_prog_compiler_pic_F77='-fpic'
14524 # Portland Group compilers (*not* the Pentium gcc compiler,
14525 # which looks to be a dead project)
14526 lt_prog_compiler_wl_F77='-Wl,'
14527 lt_prog_compiler_pic_F77='-fpic'
14509 lt_prog_compiler_static_F77='-static'
14528 lt_prog_compiler_static_F77='-Bstatic'
14510 ;;
14511 ccc*)
14512 lt_prog_compiler_wl_F77='-Wl,'
14513 # All Alpha code is PIC.
14514 lt_prog_compiler_static_F77='-non_shared'
14515 ;;
14529 ;;
14530 ccc*)
14531 lt_prog_compiler_wl_F77='-Wl,'
14532 # All Alpha code is PIC.
14533 lt_prog_compiler_static_F77='-non_shared'
14534 ;;
14535 *)
14536 case `$CC -V 2>&1 | sed 5q` in
14537 *Sun\ C*)
14538 # Sun C 5.9
14539 lt_prog_compiler_pic_F77='-KPIC'
14540 lt_prog_compiler_static_F77='-Bstatic'
14541 lt_prog_compiler_wl_F77='-Wl,'
14542 ;;
14543 *Sun\ F*)
14544 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14545 lt_prog_compiler_pic_F77='-KPIC'
14546 lt_prog_compiler_static_F77='-Bstatic'
14547 lt_prog_compiler_wl_F77=''
14548 ;;
14549 esac
14550 ;;
14516 esac
14517 ;;
14518
14519 osf3* | osf4* | osf5*)
14520 lt_prog_compiler_wl_F77='-Wl,'
14521 # All OSF/1 code is PIC.
14522 lt_prog_compiler_static_F77='-non_shared'
14523 ;;
14524
14551 esac
14552 ;;
14553
14554 osf3* | osf4* | osf5*)
14555 lt_prog_compiler_wl_F77='-Wl,'
14556 # All OSF/1 code is PIC.
14557 lt_prog_compiler_static_F77='-non_shared'
14558 ;;
14559
14525 sco3.2v5*)
14526 lt_prog_compiler_pic_F77='-Kpic'
14527 lt_prog_compiler_static_F77='-dn'
14560 rdos*)
14561 lt_prog_compiler_static_F77='-non_shared'
14528 ;;
14529
14530 solaris*)
14531 lt_prog_compiler_pic_F77='-KPIC'
14532 lt_prog_compiler_static_F77='-Bstatic'
14533 case $cc_basename in
14534 f77* | f90* | f95*)
14535 lt_prog_compiler_wl_F77='-Qoption ld ';;
14536 *)
14537 lt_prog_compiler_wl_F77='-Wl,';;
14538 esac
14539 ;;
14540
14541 sunos4*)
14542 lt_prog_compiler_wl_F77='-Qoption ld '
14543 lt_prog_compiler_pic_F77='-PIC'
14544 lt_prog_compiler_static_F77='-Bstatic'
14545 ;;
14546
14562 ;;
14563
14564 solaris*)
14565 lt_prog_compiler_pic_F77='-KPIC'
14566 lt_prog_compiler_static_F77='-Bstatic'
14567 case $cc_basename in
14568 f77* | f90* | f95*)
14569 lt_prog_compiler_wl_F77='-Qoption ld ';;
14570 *)
14571 lt_prog_compiler_wl_F77='-Wl,';;
14572 esac
14573 ;;
14574
14575 sunos4*)
14576 lt_prog_compiler_wl_F77='-Qoption ld '
14577 lt_prog_compiler_pic_F77='-PIC'
14578 lt_prog_compiler_static_F77='-Bstatic'
14579 ;;
14580
14547 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14581 sysv4 | sysv4.2uw2* | sysv4.3*)
14548 lt_prog_compiler_wl_F77='-Wl,'
14549 lt_prog_compiler_pic_F77='-KPIC'
14550 lt_prog_compiler_static_F77='-Bstatic'
14551 ;;
14552
14553 sysv4*MP*)
14554 if test -d /usr/nec ;then
14555 lt_prog_compiler_pic_F77='-Kconform_pic'
14556 lt_prog_compiler_static_F77='-Bstatic'
14557 fi
14558 ;;
14559
14582 lt_prog_compiler_wl_F77='-Wl,'
14583 lt_prog_compiler_pic_F77='-KPIC'
14584 lt_prog_compiler_static_F77='-Bstatic'
14585 ;;
14586
14587 sysv4*MP*)
14588 if test -d /usr/nec ;then
14589 lt_prog_compiler_pic_F77='-Kconform_pic'
14590 lt_prog_compiler_static_F77='-Bstatic'
14591 fi
14592 ;;
14593
14594 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14595 lt_prog_compiler_wl_F77='-Wl,'
14596 lt_prog_compiler_pic_F77='-KPIC'
14597 lt_prog_compiler_static_F77='-Bstatic'
14598 ;;
14599
14560 unicos*)
14561 lt_prog_compiler_wl_F77='-Wl,'
14562 lt_prog_compiler_can_build_shared_F77=no
14563 ;;
14564
14565 uts4*)
14566 lt_prog_compiler_pic_F77='-pic'
14567 lt_prog_compiler_static_F77='-Bstatic'
14568 ;;
14569
14570 *)
14571 lt_prog_compiler_can_build_shared_F77=no
14572 ;;
14573 esac
14574 fi
14575
14576{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14577echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14578
14579#
14580# Check to make sure the PIC flag actually works.
14581#
14582if test -n "$lt_prog_compiler_pic_F77"; then
14583
14584{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14585echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14600 unicos*)
14601 lt_prog_compiler_wl_F77='-Wl,'
14602 lt_prog_compiler_can_build_shared_F77=no
14603 ;;
14604
14605 uts4*)
14606 lt_prog_compiler_pic_F77='-pic'
14607 lt_prog_compiler_static_F77='-Bstatic'
14608 ;;
14609
14610 *)
14611 lt_prog_compiler_can_build_shared_F77=no
14612 ;;
14613 esac
14614 fi
14615
14616{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14617echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14618
14619#
14620# Check to make sure the PIC flag actually works.
14621#
14622if test -n "$lt_prog_compiler_pic_F77"; then
14623
14624{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14625echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14586if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14626if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
14588else
14627 echo $ECHO_N "(cached) $ECHO_C" >&6
14628else
14589 lt_prog_compiler_pic_works_F77=no
14629 lt_cv_prog_compiler_pic_works_F77=no
14590 ac_outfile=conftest.$ac_objext
14630 ac_outfile=conftest.$ac_objext
14591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14592 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14593 # Insert the option either (1) after the last *FLAGS variable, or
14594 # (2) before a word containing "conftest.", or (3) at the end.
14595 # Note that $ac_compile itself does not contain backslashes and begins
14596 # with a dollar sign (not a hyphen), so the echo should work correctly.
14597 # The option is referenced via a variable to avoid confusing sed.
14598 lt_compile=`echo "$ac_compile" | $SED \
14632 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14633 # Insert the option either (1) after the last *FLAGS variable, or
14634 # (2) before a word containing "conftest.", or (3) at the end.
14635 # Note that $ac_compile itself does not contain backslashes and begins
14636 # with a dollar sign (not a hyphen), so the echo should work correctly.
14637 # The option is referenced via a variable to avoid confusing sed.
14638 lt_compile=`echo "$ac_compile" | $SED \
14599 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14601 -e 's:$: $lt_compiler_flag:'`
14640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14641 -e 's:$: $lt_compiler_flag:'`
14602 (eval echo "\"\$as_me:14602: $lt_compile\"" >&5)
14642 (eval echo "\"\$as_me:14642: $lt_compile\"" >&5)
14603 (eval "$lt_compile" 2>conftest.err)
14604 ac_status=$?
14605 cat conftest.err >&5
14643 (eval "$lt_compile" 2>conftest.err)
14644 ac_status=$?
14645 cat conftest.err >&5
14606 echo "$as_me:14606: \$? = $ac_status" >&5
14646 echo "$as_me:14646: \$? = $ac_status" >&5
14607 if (exit $ac_status) && test -s "$ac_outfile"; then
14608 # The compiler can only warn and ignore the option if not recognized
14609 # So say no if there are warnings other than the usual output.
14647 if (exit $ac_status) && test -s "$ac_outfile"; then
14648 # The compiler can only warn and ignore the option if not recognized
14649 # So say no if there are warnings other than the usual output.
14610 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14611 $SED '/^$/d' conftest.err >conftest.er2
14612 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14613 lt_prog_compiler_pic_works_F77=yes
14650 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14653 lt_cv_prog_compiler_pic_works_F77=yes
14614 fi
14615 fi
14616 $rm conftest*
14617
14618fi
14654 fi
14655 fi
14656 $rm conftest*
14657
14658fi
14619{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14620echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14659{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14660echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14621
14661
14622if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14662if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14623 case $lt_prog_compiler_pic_F77 in
14624 "" | " "*) ;;
14625 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14626 esac
14627else
14628 lt_prog_compiler_pic_F77=
14629 lt_prog_compiler_can_build_shared_F77=no
14630fi
14631
14632fi
14663 case $lt_prog_compiler_pic_F77 in
14664 "" | " "*) ;;
14665 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14666 esac
14667else
14668 lt_prog_compiler_pic_F77=
14669 lt_prog_compiler_can_build_shared_F77=no
14670fi
14671
14672fi
14633case "$host_os" in
14673case $host_os in
14634 # For platforms which do not support PIC, -DPIC is meaningless:
14635 *djgpp*)
14636 lt_prog_compiler_pic_F77=
14637 ;;
14638 *)
14639 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14640 ;;
14641esac
14642
14674 # For platforms which do not support PIC, -DPIC is meaningless:
14675 *djgpp*)
14676 lt_prog_compiler_pic_F77=
14677 ;;
14678 *)
14679 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14680 ;;
14681esac
14682
14683#
14684# Check to make sure the static flag actually works.
14685#
14686wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14687{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14688echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14689if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691else
14692 lt_cv_prog_compiler_static_works_F77=no
14693 save_LDFLAGS="$LDFLAGS"
14694 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14695 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14696 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14697 # The linker can only warn and ignore the option if not recognized
14698 # So say no if there are warnings
14699 if test -s conftest.err; then
14700 # Append any errors to the config.log.
14701 cat conftest.err 1>&5
14702 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14704 if diff conftest.exp conftest.er2 >/dev/null; then
14705 lt_cv_prog_compiler_static_works_F77=yes
14706 fi
14707 else
14708 lt_cv_prog_compiler_static_works_F77=yes
14709 fi
14710 fi
14711 $rm -r conftest*
14712 LDFLAGS="$save_LDFLAGS"
14713
14714fi
14715{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14716echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14717
14718if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14719 :
14720else
14721 lt_prog_compiler_static_F77=
14722fi
14723
14724
14643{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14644echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14645if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
14647else
14648 lt_cv_prog_compiler_c_o_F77=no
14649 $rm -r conftest 2>/dev/null
14650 mkdir conftest
14651 cd conftest
14652 mkdir out
14725{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14726echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14727if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14729else
14730 lt_cv_prog_compiler_c_o_F77=no
14731 $rm -r conftest 2>/dev/null
14732 mkdir conftest
14733 cd conftest
14734 mkdir out
14653 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14654
14655 lt_compiler_flag="-o out/conftest2.$ac_objext"
14656 # Insert the option either (1) after the last *FLAGS variable, or
14657 # (2) before a word containing "conftest.", or (3) at the end.
14658 # Note that $ac_compile itself does not contain backslashes and begins
14659 # with a dollar sign (not a hyphen), so the echo should work correctly.
14660 lt_compile=`echo "$ac_compile" | $SED \
14736
14737 lt_compiler_flag="-o out/conftest2.$ac_objext"
14738 # Insert the option either (1) after the last *FLAGS variable, or
14739 # (2) before a word containing "conftest.", or (3) at the end.
14740 # Note that $ac_compile itself does not contain backslashes and begins
14741 # with a dollar sign (not a hyphen), so the echo should work correctly.
14742 lt_compile=`echo "$ac_compile" | $SED \
14661 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14663 -e 's:$: $lt_compiler_flag:'`
14744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14745 -e 's:$: $lt_compiler_flag:'`
14664 (eval echo "\"\$as_me:14664: $lt_compile\"" >&5)
14746 (eval echo "\"\$as_me:14746: $lt_compile\"" >&5)
14665 (eval "$lt_compile" 2>out/conftest.err)
14666 ac_status=$?
14667 cat out/conftest.err >&5
14747 (eval "$lt_compile" 2>out/conftest.err)
14748 ac_status=$?
14749 cat out/conftest.err >&5
14668 echo "$as_me:14668: \$? = $ac_status" >&5
14750 echo "$as_me:14750: \$? = $ac_status" >&5
14669 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14670 then
14671 # The compiler can only warn and ignore the option if not recognized
14672 # So say no if there are warnings
14751 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14752 then
14753 # The compiler can only warn and ignore the option if not recognized
14754 # So say no if there are warnings
14673 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14674 $SED '/^$/d' out/conftest.err >out/conftest.er2
14675 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14755 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14756 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14757 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14676 lt_cv_prog_compiler_c_o_F77=yes
14677 fi
14678 fi
14758 lt_cv_prog_compiler_c_o_F77=yes
14759 fi
14760 fi
14679 chmod u+w .
14761 chmod u+w . 2>&5
14680 $rm conftest*
14681 # SGI C++ compiler will create directory out/ii_files/ for
14682 # template instantiation
14683 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14684 $rm out/* && rmdir out
14685 cd ..
14686 rmdir conftest
14687 $rm conftest*
14688
14689fi
14690{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14691echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14692
14693
14694hard_links="nottested"
14695if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14696 # do not overwrite the value of need_locks provided by the user
14697 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14698echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14699 hard_links=yes
14700 $rm conftest*
14701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14702 touch conftest.a
14703 ln conftest.a conftest.b 2>&5 || hard_links=no
14704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14705 { echo "$as_me:$LINENO: result: $hard_links" >&5
14706echo "${ECHO_T}$hard_links" >&6; }
14707 if test "$hard_links" = no; then
14708 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14709echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14710 need_locks=warn
14711 fi
14712else
14713 need_locks=no
14714fi
14715
14716{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14717echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14718
14719 runpath_var=
14720 allow_undefined_flag_F77=
14721 enable_shared_with_static_runtimes_F77=no
14722 archive_cmds_F77=
14723 archive_expsym_cmds_F77=
14724 old_archive_From_new_cmds_F77=
14725 old_archive_from_expsyms_cmds_F77=
14726 export_dynamic_flag_spec_F77=
14727 whole_archive_flag_spec_F77=
14728 thread_safe_flag_spec_F77=
14729 hardcode_libdir_flag_spec_F77=
14730 hardcode_libdir_flag_spec_ld_F77=
14731 hardcode_libdir_separator_F77=
14732 hardcode_direct_F77=no
14733 hardcode_minus_L_F77=no
14734 hardcode_shlibpath_var_F77=unsupported
14735 link_all_deplibs_F77=unknown
14736 hardcode_automatic_F77=no
14737 module_cmds_F77=
14738 module_expsym_cmds_F77=
14739 always_export_symbols_F77=no
14740 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14741 # include_expsyms should be a list of space-separated symbols to be *always*
14742 # included in the symbol list
14743 include_expsyms_F77=
14744 # exclude_expsyms can be an extended regexp of symbols to exclude
14745 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14746 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14747 # as well as any symbol that contains `d'.
14762 $rm conftest*
14763 # SGI C++ compiler will create directory out/ii_files/ for
14764 # template instantiation
14765 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14766 $rm out/* && rmdir out
14767 cd ..
14768 rmdir conftest
14769 $rm conftest*
14770
14771fi
14772{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14773echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14774
14775
14776hard_links="nottested"
14777if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14778 # do not overwrite the value of need_locks provided by the user
14779 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14780echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14781 hard_links=yes
14782 $rm conftest*
14783 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14784 touch conftest.a
14785 ln conftest.a conftest.b 2>&5 || hard_links=no
14786 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14787 { echo "$as_me:$LINENO: result: $hard_links" >&5
14788echo "${ECHO_T}$hard_links" >&6; }
14789 if test "$hard_links" = no; then
14790 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14791echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14792 need_locks=warn
14793 fi
14794else
14795 need_locks=no
14796fi
14797
14798{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14799echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14800
14801 runpath_var=
14802 allow_undefined_flag_F77=
14803 enable_shared_with_static_runtimes_F77=no
14804 archive_cmds_F77=
14805 archive_expsym_cmds_F77=
14806 old_archive_From_new_cmds_F77=
14807 old_archive_from_expsyms_cmds_F77=
14808 export_dynamic_flag_spec_F77=
14809 whole_archive_flag_spec_F77=
14810 thread_safe_flag_spec_F77=
14811 hardcode_libdir_flag_spec_F77=
14812 hardcode_libdir_flag_spec_ld_F77=
14813 hardcode_libdir_separator_F77=
14814 hardcode_direct_F77=no
14815 hardcode_minus_L_F77=no
14816 hardcode_shlibpath_var_F77=unsupported
14817 link_all_deplibs_F77=unknown
14818 hardcode_automatic_F77=no
14819 module_cmds_F77=
14820 module_expsym_cmds_F77=
14821 always_export_symbols_F77=no
14822 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14823 # include_expsyms should be a list of space-separated symbols to be *always*
14824 # included in the symbol list
14825 include_expsyms_F77=
14826 # exclude_expsyms can be an extended regexp of symbols to exclude
14827 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14828 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14829 # as well as any symbol that contains `d'.
14748 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14830 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14749 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14750 # platforms (ab)use it in PIC code, but their linkers get confused if
14751 # the symbol is explicitly referenced. Since portable code cannot
14752 # rely on this symbol name, it's probably fine to never include it in
14753 # preloaded symbol tables.
14831 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14832 # platforms (ab)use it in PIC code, but their linkers get confused if
14833 # the symbol is explicitly referenced. Since portable code cannot
14834 # rely on this symbol name, it's probably fine to never include it in
14835 # preloaded symbol tables.
14836 # Exclude shared library initialization/finalization symbols.
14754 extract_expsyms_cmds=
14755 # Just being paranoid about ensuring that cc_basename is set.
14756 for cc_temp in $compiler""; do
14757 case $cc_temp in
14758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14760 \-*) ;;
14761 *) break;;
14762 esac
14763done
14764cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14765
14766 case $host_os in
14767 cygwin* | mingw* | pw32*)
14768 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14769 # When not using gcc, we currently assume that we are using
14770 # Microsoft Visual C++.
14771 if test "$GCC" != yes; then
14772 with_gnu_ld=no
14773 fi
14774 ;;
14837 extract_expsyms_cmds=
14838 # Just being paranoid about ensuring that cc_basename is set.
14839 for cc_temp in $compiler""; do
14840 case $cc_temp in
14841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14843 \-*) ;;
14844 *) break;;
14845 esac
14846done
14847cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14848
14849 case $host_os in
14850 cygwin* | mingw* | pw32*)
14851 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14852 # When not using gcc, we currently assume that we are using
14853 # Microsoft Visual C++.
14854 if test "$GCC" != yes; then
14855 with_gnu_ld=no
14856 fi
14857 ;;
14858 interix*)
14859 # we just hope/assume this is gcc and not c89 (= MSVC++)
14860 with_gnu_ld=yes
14861 ;;
14775 openbsd*)
14776 with_gnu_ld=no
14777 ;;
14778 esac
14779
14780 ld_shlibs_F77=yes
14781 if test "$with_gnu_ld" = yes; then
14782 # If archive_cmds runs LD, not CC, wlarc should be empty
14783 wlarc='${wl}'
14784
14785 # Set some defaults for GNU ld with shared library support. These
14786 # are reset later if shared libraries are not supported. Putting them
14787 # here allows them to be overridden if necessary.
14788 runpath_var=LD_RUN_PATH
14789 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14790 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14791 # ancient GNU ld didn't support --whole-archive et. al.
14792 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14793 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14794 else
14795 whole_archive_flag_spec_F77=
14796 fi
14797 supports_anon_versioning=no
14798 case `$LD -v 2>/dev/null` in
14799 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14800 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14801 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14802 *\ 2.11.*) ;; # other 2.11 versions
14803 *) supports_anon_versioning=yes ;;
14804 esac
14805
14806 # See if GNU ld supports shared libraries.
14807 case $host_os in
14862 openbsd*)
14863 with_gnu_ld=no
14864 ;;
14865 esac
14866
14867 ld_shlibs_F77=yes
14868 if test "$with_gnu_ld" = yes; then
14869 # If archive_cmds runs LD, not CC, wlarc should be empty
14870 wlarc='${wl}'
14871
14872 # Set some defaults for GNU ld with shared library support. These
14873 # are reset later if shared libraries are not supported. Putting them
14874 # here allows them to be overridden if necessary.
14875 runpath_var=LD_RUN_PATH
14876 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14877 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14878 # ancient GNU ld didn't support --whole-archive et. al.
14879 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14880 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14881 else
14882 whole_archive_flag_spec_F77=
14883 fi
14884 supports_anon_versioning=no
14885 case `$LD -v 2>/dev/null` in
14886 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14887 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14888 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14889 *\ 2.11.*) ;; # other 2.11 versions
14890 *) supports_anon_versioning=yes ;;
14891 esac
14892
14893 # See if GNU ld supports shared libraries.
14894 case $host_os in
14808 aix3* | aix4* | aix5*)
14895 aix[3-9]*)
14809 # On AIX/PPC, the GNU linker is very broken
14810 if test "$host_cpu" != ia64; then
14811 ld_shlibs_F77=no
14812 cat <<EOF 1>&2
14813
14814*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14815*** to be unable to reliably create shared libraries on AIX.
14816*** Therefore, libtool is disabling shared libraries support. If you
14817*** really care for shared libraries, you may want to modify your PATH
14818*** so that a non-GNU linker is found, and then restart.
14819
14820EOF
14821 fi
14822 ;;
14823
14824 amigaos*)
14825 archive_cmds_F77='$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)'
14826 hardcode_libdir_flag_spec_F77='-L$libdir'
14827 hardcode_minus_L_F77=yes
14828
14829 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14830 # that the semantics of dynamic libraries on AmigaOS, at least up
14831 # to version 4, is to share data among multiple programs linked
14832 # with the same dynamic library. Since this doesn't match the
14833 # behavior of shared libraries on other platforms, we can't use
14834 # them.
14835 ld_shlibs_F77=no
14836 ;;
14837
14838 beos*)
14839 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14840 allow_undefined_flag_F77=unsupported
14841 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14842 # support --undefined. This deserves some investigation. FIXME
14843 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14844 else
14845 ld_shlibs_F77=no
14846 fi
14847 ;;
14848
14849 cygwin* | mingw* | pw32*)
14850 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14851 # as there is no search path for DLLs.
14852 hardcode_libdir_flag_spec_F77='-L$libdir'
14853 allow_undefined_flag_F77=unsupported
14854 always_export_symbols_F77=no
14855 enable_shared_with_static_runtimes_F77=yes
14896 # On AIX/PPC, the GNU linker is very broken
14897 if test "$host_cpu" != ia64; then
14898 ld_shlibs_F77=no
14899 cat <<EOF 1>&2
14900
14901*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14902*** to be unable to reliably create shared libraries on AIX.
14903*** Therefore, libtool is disabling shared libraries support. If you
14904*** really care for shared libraries, you may want to modify your PATH
14905*** so that a non-GNU linker is found, and then restart.
14906
14907EOF
14908 fi
14909 ;;
14910
14911 amigaos*)
14912 archive_cmds_F77='$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)'
14913 hardcode_libdir_flag_spec_F77='-L$libdir'
14914 hardcode_minus_L_F77=yes
14915
14916 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14917 # that the semantics of dynamic libraries on AmigaOS, at least up
14918 # to version 4, is to share data among multiple programs linked
14919 # with the same dynamic library. Since this doesn't match the
14920 # behavior of shared libraries on other platforms, we can't use
14921 # them.
14922 ld_shlibs_F77=no
14923 ;;
14924
14925 beos*)
14926 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14927 allow_undefined_flag_F77=unsupported
14928 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14929 # support --undefined. This deserves some investigation. FIXME
14930 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14931 else
14932 ld_shlibs_F77=no
14933 fi
14934 ;;
14935
14936 cygwin* | mingw* | pw32*)
14937 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14938 # as there is no search path for DLLs.
14939 hardcode_libdir_flag_spec_F77='-L$libdir'
14940 allow_undefined_flag_F77=unsupported
14941 always_export_symbols_F77=no
14942 enable_shared_with_static_runtimes_F77=yes
14856 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14943 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14857
14858 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14944
14945 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14859 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14946 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14860 # If the export-symbols file already is a .def file (1st line
14861 # is EXPORTS), use it as is; otherwise, prepend...
14862 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14863 cp $export_symbols $output_objdir/$soname.def;
14864 else
14865 echo EXPORTS > $output_objdir/$soname.def;
14866 cat $export_symbols >> $output_objdir/$soname.def;
14867 fi~
14947 # If the export-symbols file already is a .def file (1st line
14948 # is EXPORTS), use it as is; otherwise, prepend...
14949 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14950 cp $export_symbols $output_objdir/$soname.def;
14951 else
14952 echo EXPORTS > $output_objdir/$soname.def;
14953 cat $export_symbols >> $output_objdir/$soname.def;
14954 fi~
14868 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14955 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14869 else
14870 ld_shlibs_F77=no
14871 fi
14872 ;;
14873
14956 else
14957 ld_shlibs_F77=no
14958 fi
14959 ;;
14960
14874 linux*)
14961 interix[3-9]*)
14962 hardcode_direct_F77=no
14963 hardcode_shlibpath_var_F77=no
14964 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14965 export_dynamic_flag_spec_F77='${wl}-E'
14966 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14967 # Instead, shared libraries are loaded at an image base (0x10000000 by
14968 # default) and relocated if they conflict, which is a slow very memory
14969 # consuming and fragmenting process. To avoid this, we pick a random,
14970 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14971 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14972 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14973 archive_expsym_cmds_F77='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'
14974 ;;
14975
14976 gnu* | linux* | k*bsd*-gnu)
14875 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14876 tmp_addflag=
14877 case $cc_basename,$host_cpu in
14878 pgcc*) # Portland Group C compiler
14977 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14978 tmp_addflag=
14979 case $cc_basename,$host_cpu in
14980 pgcc*) # Portland Group C compiler
14879 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14981 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14880 tmp_addflag=' $pic_flag'
14881 ;;
14982 tmp_addflag=' $pic_flag'
14983 ;;
14882 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14883 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14984 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14985 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14884 tmp_addflag=' $pic_flag -Mnomain' ;;
14885 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14886 tmp_addflag=' -i_dynamic' ;;
14887 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14888 tmp_addflag=' -i_dynamic -nofor_main' ;;
14889 ifc* | ifort*) # Intel Fortran compiler
14890 tmp_addflag=' -nofor_main' ;;
14891 esac
14986 tmp_addflag=' $pic_flag -Mnomain' ;;
14987 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14988 tmp_addflag=' -i_dynamic' ;;
14989 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14990 tmp_addflag=' -i_dynamic -nofor_main' ;;
14991 ifc* | ifort*) # Intel Fortran compiler
14992 tmp_addflag=' -nofor_main' ;;
14993 esac
14892 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14994 case `$CC -V 2>&1 | sed 5q` in
14995 *Sun\ C*) # Sun C 5.9
14996 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14997 tmp_sharedflag='-G' ;;
14998 *Sun\ F*) # Sun Fortran 8.3
14999 tmp_sharedflag='-G' ;;
15000 *)
15001 tmp_sharedflag='-shared' ;;
15002 esac
15003 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14893
14894 if test $supports_anon_versioning = yes; then
14895 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14896 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14897 $echo "local: *; };" >> $output_objdir/$libname.ver~
15004
15005 if test $supports_anon_versioning = yes; then
15006 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15007 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15008 $echo "local: *; };" >> $output_objdir/$libname.ver~
14898 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15009 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14899 fi
14900 else
14901 ld_shlibs_F77=no
14902 fi
14903 ;;
14904
14905 netbsd*)
14906 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14907 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14908 wlarc=
14909 else
14910 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14911 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14912 fi
14913 ;;
14914
15010 fi
15011 else
15012 ld_shlibs_F77=no
15013 fi
15014 ;;
15015
15016 netbsd*)
15017 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15018 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15019 wlarc=
15020 else
15021 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15022 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15023 fi
15024 ;;
15025
14915 solaris* | sysv5*)
15026 solaris*)
14916 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14917 ld_shlibs_F77=no
14918 cat <<EOF 1>&2
14919
14920*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14921*** create shared libraries on Solaris systems. Therefore, libtool
14922*** is disabling shared libraries support. We urge you to upgrade GNU
14923*** binutils to release 2.9.1 or newer. Another option is to modify
14924*** your PATH or compiler configuration so that the native linker is
14925*** used, and then restart.
14926
14927EOF
14928 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14929 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14930 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14931 else
14932 ld_shlibs_F77=no
14933 fi
14934 ;;
14935
15027 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15028 ld_shlibs_F77=no
15029 cat <<EOF 1>&2
15030
15031*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15032*** create shared libraries on Solaris systems. Therefore, libtool
15033*** is disabling shared libraries support. We urge you to upgrade GNU
15034*** binutils to release 2.9.1 or newer. Another option is to modify
15035*** your PATH or compiler configuration so that the native linker is
15036*** used, and then restart.
15037
15038EOF
15039 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15040 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15041 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15042 else
15043 ld_shlibs_F77=no
15044 fi
15045 ;;
15046
15047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15048 case `$LD -v 2>&1` in
15049 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15050 ld_shlibs_F77=no
15051 cat <<_LT_EOF 1>&2
15052
15053*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15054*** reliably create shared libraries on SCO systems. Therefore, libtool
15055*** is disabling shared libraries support. We urge you to upgrade GNU
15056*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15057*** your PATH or compiler configuration so that the native linker is
15058*** used, and then restart.
15059
15060_LT_EOF
15061 ;;
15062 *)
15063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15064 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15065 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15066 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15067 else
15068 ld_shlibs_F77=no
15069 fi
15070 ;;
15071 esac
15072 ;;
15073
14936 sunos4*)
14937 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14938 wlarc=
14939 hardcode_direct_F77=yes
14940 hardcode_shlibpath_var_F77=no
14941 ;;
14942
14943 *)
14944 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14945 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14946 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14947 else
14948 ld_shlibs_F77=no
14949 fi
14950 ;;
14951 esac
14952
14953 if test "$ld_shlibs_F77" = no; then
14954 runpath_var=
14955 hardcode_libdir_flag_spec_F77=
14956 export_dynamic_flag_spec_F77=
14957 whole_archive_flag_spec_F77=
14958 fi
14959 else
14960 # PORTME fill in a description of your system's linker (not GNU ld)
14961 case $host_os in
14962 aix3*)
14963 allow_undefined_flag_F77=unsupported
14964 always_export_symbols_F77=yes
14965 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14966 # Note: this linker hardcodes the directories in LIBPATH if there
14967 # are no directories specified by -L.
14968 hardcode_minus_L_F77=yes
15074 sunos4*)
15075 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15076 wlarc=
15077 hardcode_direct_F77=yes
15078 hardcode_shlibpath_var_F77=no
15079 ;;
15080
15081 *)
15082 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15083 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15084 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15085 else
15086 ld_shlibs_F77=no
15087 fi
15088 ;;
15089 esac
15090
15091 if test "$ld_shlibs_F77" = no; then
15092 runpath_var=
15093 hardcode_libdir_flag_spec_F77=
15094 export_dynamic_flag_spec_F77=
15095 whole_archive_flag_spec_F77=
15096 fi
15097 else
15098 # PORTME fill in a description of your system's linker (not GNU ld)
15099 case $host_os in
15100 aix3*)
15101 allow_undefined_flag_F77=unsupported
15102 always_export_symbols_F77=yes
15103 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15104 # Note: this linker hardcodes the directories in LIBPATH if there
15105 # are no directories specified by -L.
15106 hardcode_minus_L_F77=yes
14969 if test "$GCC" = yes && test -z "$link_static_flag"; then
15107 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14970 # Neither direct hardcoding nor static linking is supported with a
14971 # broken collect2.
14972 hardcode_direct_F77=unsupported
14973 fi
14974 ;;
14975
15108 # Neither direct hardcoding nor static linking is supported with a
15109 # broken collect2.
15110 hardcode_direct_F77=unsupported
15111 fi
15112 ;;
15113
14976 aix4* | aix5*)
15114 aix[4-9]*)
14977 if test "$host_cpu" = ia64; then
14978 # On IA64, the linker does run time linking by default, so we don't
14979 # have to do anything special.
14980 aix_use_runtimelinking=no
14981 exp_sym_flag='-Bexport'
14982 no_entry_flag=""
14983 else
14984 # If we're using GNU nm, then we don't want the "-C" option.
14985 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14986 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14987 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14988 else
14989 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14990 fi
14991 aix_use_runtimelinking=no
14992
14993 # Test if we are trying to use run time linking or normal
14994 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14995 # need to do runtime linking.
15115 if test "$host_cpu" = ia64; then
15116 # On IA64, the linker does run time linking by default, so we don't
15117 # have to do anything special.
15118 aix_use_runtimelinking=no
15119 exp_sym_flag='-Bexport'
15120 no_entry_flag=""
15121 else
15122 # If we're using GNU nm, then we don't want the "-C" option.
15123 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15124 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15125 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15126 else
15127 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15128 fi
15129 aix_use_runtimelinking=no
15130
15131 # Test if we are trying to use run time linking or normal
15132 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15133 # need to do runtime linking.
14996 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15134 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14997 for ld_flag in $LDFLAGS; do
14998 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14999 aix_use_runtimelinking=yes
15000 break
15001 fi
15002 done
15135 for ld_flag in $LDFLAGS; do
15136 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15137 aix_use_runtimelinking=yes
15138 break
15139 fi
15140 done
15141 ;;
15003 esac
15004
15005 exp_sym_flag='-bexport'
15006 no_entry_flag='-bnoentry'
15007 fi
15008
15009 # When large executables or shared objects are built, AIX ld can
15010 # have problems creating the table of contents. If linking a library
15011 # or program results in "error TOC overflow" add -mminimal-toc to
15012 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15013 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15014
15015 archive_cmds_F77=''
15016 hardcode_direct_F77=yes
15017 hardcode_libdir_separator_F77=':'
15018 link_all_deplibs_F77=yes
15019
15020 if test "$GCC" = yes; then
15021 case $host_os in aix4.[012]|aix4.[012].*)
15022 # We only want to do this on AIX 4.2 and lower, the check
15023 # below for broken collect2 doesn't work under 4.3+
15024 collect2name=`${CC} -print-prog-name=collect2`
15025 if test -f "$collect2name" && \
15026 strings "$collect2name" | grep resolve_lib_name >/dev/null
15027 then
15028 # We have reworked collect2
15142 esac
15143
15144 exp_sym_flag='-bexport'
15145 no_entry_flag='-bnoentry'
15146 fi
15147
15148 # When large executables or shared objects are built, AIX ld can
15149 # have problems creating the table of contents. If linking a library
15150 # or program results in "error TOC overflow" add -mminimal-toc to
15151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15153
15154 archive_cmds_F77=''
15155 hardcode_direct_F77=yes
15156 hardcode_libdir_separator_F77=':'
15157 link_all_deplibs_F77=yes
15158
15159 if test "$GCC" = yes; then
15160 case $host_os in aix4.[012]|aix4.[012].*)
15161 # We only want to do this on AIX 4.2 and lower, the check
15162 # below for broken collect2 doesn't work under 4.3+
15163 collect2name=`${CC} -print-prog-name=collect2`
15164 if test -f "$collect2name" && \
15165 strings "$collect2name" | grep resolve_lib_name >/dev/null
15166 then
15167 # We have reworked collect2
15029 hardcode_direct_F77=yes
15168 :
15030 else
15031 # We have old collect2
15032 hardcode_direct_F77=unsupported
15033 # It fails to find uninstalled libraries when the uninstalled
15034 # path is not listed in the libpath. Setting hardcode_minus_L
15035 # to unsupported forces relinking
15036 hardcode_minus_L_F77=yes
15037 hardcode_libdir_flag_spec_F77='-L$libdir'
15038 hardcode_libdir_separator_F77=
15039 fi
15169 else
15170 # We have old collect2
15171 hardcode_direct_F77=unsupported
15172 # It fails to find uninstalled libraries when the uninstalled
15173 # path is not listed in the libpath. Setting hardcode_minus_L
15174 # to unsupported forces relinking
15175 hardcode_minus_L_F77=yes
15176 hardcode_libdir_flag_spec_F77='-L$libdir'
15177 hardcode_libdir_separator_F77=
15178 fi
15179 ;;
15040 esac
15041 shared_flag='-shared'
15042 if test "$aix_use_runtimelinking" = yes; then
15043 shared_flag="$shared_flag "'${wl}-G'
15044 fi
15045 else
15046 # not using gcc
15047 if test "$host_cpu" = ia64; then
15048 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15049 # chokes on -Wl,-G. The following line is correct:
15050 shared_flag='-G'
15051 else
15180 esac
15181 shared_flag='-shared'
15182 if test "$aix_use_runtimelinking" = yes; then
15183 shared_flag="$shared_flag "'${wl}-G'
15184 fi
15185 else
15186 # not using gcc
15187 if test "$host_cpu" = ia64; then
15188 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15189 # chokes on -Wl,-G. The following line is correct:
15190 shared_flag='-G'
15191 else
15052 if test "$aix_use_runtimelinking" = yes; then
15192 if test "$aix_use_runtimelinking" = yes; then
15053 shared_flag='${wl}-G'
15054 else
15055 shared_flag='${wl}-bM:SRE'
15193 shared_flag='${wl}-G'
15194 else
15195 shared_flag='${wl}-bM:SRE'
15056 fi
15196 fi
15057 fi
15058 fi
15059
15060 # It seems that -bexpall does not export symbols beginning with
15061 # underscore (_), so it is better to generate a list of symbols to export.
15062 always_export_symbols_F77=yes
15063 if test "$aix_use_runtimelinking" = yes; then
15064 # Warning - without using the other runtime loading flags (-brtl),
15065 # -berok will link without error, but may produce a broken library.
15066 allow_undefined_flag_F77='-berok'
15067 # Determine the default libpath from the value encoded in an empty executable.
15068 cat >conftest.$ac_ext <<_ACEOF
15069 program main
15070
15071 end
15072_ACEOF
15073rm -f conftest.$ac_objext conftest$ac_exeext
15074if { (ac_try="$ac_link"
15075case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15078esac
15079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080 (eval "$ac_link") 2>conftest.er1
15081 ac_status=$?
15082 grep -v '^ *+' conftest.er1 >conftest.err
15083 rm -f conftest.er1
15084 cat conftest.err >&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } && {
15087 test -z "$ac_f77_werror_flag" ||
15088 test ! -s conftest.err
15089 } && test -s conftest$ac_exeext &&
15090 $as_test_x conftest$ac_exeext; then
15091
15197 fi
15198 fi
15199
15200 # It seems that -bexpall does not export symbols beginning with
15201 # underscore (_), so it is better to generate a list of symbols to export.
15202 always_export_symbols_F77=yes
15203 if test "$aix_use_runtimelinking" = yes; then
15204 # Warning - without using the other runtime loading flags (-brtl),
15205 # -berok will link without error, but may produce a broken library.
15206 allow_undefined_flag_F77='-berok'
15207 # Determine the default libpath from the value encoded in an empty executable.
15208 cat >conftest.$ac_ext <<_ACEOF
15209 program main
15210
15211 end
15212_ACEOF
15213rm -f conftest.$ac_objext conftest$ac_exeext
15214if { (ac_try="$ac_link"
15215case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15218esac
15219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220 (eval "$ac_link") 2>conftest.er1
15221 ac_status=$?
15222 grep -v '^ *+' conftest.er1 >conftest.err
15223 rm -f conftest.er1
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } && {
15227 test -z "$ac_f77_werror_flag" ||
15228 test ! -s conftest.err
15229 } && test -s conftest$ac_exeext &&
15230 $as_test_x conftest$ac_exeext; then
15231
15092aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15093}'`
15232lt_aix_libpath_sed='
15233 /Import File Strings/,/^$/ {
15234 /^0/ {
15235 s/^0 *\(.*\)$/\1/
15236 p
15237 }
15238 }'
15239aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15094# Check for a 64-bit object if we didn't find anything.
15240# Check for a 64-bit object if we didn't find anything.
15095if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15096}'`; fi
15241if test -z "$aix_libpath"; then
15242 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15243fi
15097else
15098 echo "$as_me: failed program was:" >&5
15099sed 's/^/| /' conftest.$ac_ext >&5
15100
15101
15102fi
15103
15104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15105 conftest$ac_exeext conftest.$ac_ext
15106if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15107
15108 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15244else
15245 echo "$as_me: failed program was:" >&5
15246sed 's/^/| /' conftest.$ac_ext >&5
15247
15248
15249fi
15250
15251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15252 conftest$ac_exeext conftest.$ac_ext
15253if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15254
15255 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15109 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15256 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15110 else
15111 if test "$host_cpu" = ia64; then
15112 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15113 allow_undefined_flag_F77="-z nodefs"
15257 else
15258 if test "$host_cpu" = ia64; then
15259 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15260 allow_undefined_flag_F77="-z nodefs"
15114 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15261 archive_expsym_cmds_F77="\$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"
15115 else
15116 # Determine the default libpath from the value encoded in an empty executable.
15117 cat >conftest.$ac_ext <<_ACEOF
15118 program main
15119
15120 end
15121_ACEOF
15122rm -f conftest.$ac_objext conftest$ac_exeext
15123if { (ac_try="$ac_link"
15124case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15127esac
15128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_link") 2>conftest.er1
15130 ac_status=$?
15131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } && {
15136 test -z "$ac_f77_werror_flag" ||
15137 test ! -s conftest.err
15138 } && test -s conftest$ac_exeext &&
15139 $as_test_x conftest$ac_exeext; then
15140
15262 else
15263 # Determine the default libpath from the value encoded in an empty executable.
15264 cat >conftest.$ac_ext <<_ACEOF
15265 program main
15266
15267 end
15268_ACEOF
15269rm -f conftest.$ac_objext conftest$ac_exeext
15270if { (ac_try="$ac_link"
15271case "(($ac_try" in
15272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273 *) ac_try_echo=$ac_try;;
15274esac
15275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276 (eval "$ac_link") 2>conftest.er1
15277 ac_status=$?
15278 grep -v '^ *+' conftest.er1 >conftest.err
15279 rm -f conftest.er1
15280 cat conftest.err >&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); } && {
15283 test -z "$ac_f77_werror_flag" ||
15284 test ! -s conftest.err
15285 } && test -s conftest$ac_exeext &&
15286 $as_test_x conftest$ac_exeext; then
15287
15141aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15142}'`
15288lt_aix_libpath_sed='
15289 /Import File Strings/,/^$/ {
15290 /^0/ {
15291 s/^0 *\(.*\)$/\1/
15292 p
15293 }
15294 }'
15295aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15143# Check for a 64-bit object if we didn't find anything.
15296# Check for a 64-bit object if we didn't find anything.
15144if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15145}'`; fi
15297if test -z "$aix_libpath"; then
15298 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15299fi
15146else
15147 echo "$as_me: failed program was:" >&5
15148sed 's/^/| /' conftest.$ac_ext >&5
15149
15150
15151fi
15152
15153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15154 conftest$ac_exeext conftest.$ac_ext
15155if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15156
15157 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15158 # Warning - without using the other run time loading flags,
15159 # -berok will link without error, but may produce a broken library.
15160 no_undefined_flag_F77=' ${wl}-bernotok'
15161 allow_undefined_flag_F77=' ${wl}-berok'
15300else
15301 echo "$as_me: failed program was:" >&5
15302sed 's/^/| /' conftest.$ac_ext >&5
15303
15304
15305fi
15306
15307rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15308 conftest$ac_exeext conftest.$ac_ext
15309if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15310
15311 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15312 # Warning - without using the other run time loading flags,
15313 # -berok will link without error, but may produce a broken library.
15314 no_undefined_flag_F77=' ${wl}-bernotok'
15315 allow_undefined_flag_F77=' ${wl}-berok'
15162 # -bexpall does not export symbols beginning with underscore (_)
15163 always_export_symbols_F77=yes
15164 # Exported symbols can be pulled into shared objects from archives
15316 # Exported symbols can be pulled into shared objects from archives
15165 whole_archive_flag_spec_F77=' '
15317 whole_archive_flag_spec_F77='$convenience'
15166 archive_cmds_need_lc_F77=yes
15318 archive_cmds_need_lc_F77=yes
15167 # This is similar to how AIX traditionally builds it's shared libraries.
15168 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15319 # This is similar to how AIX traditionally builds its shared libraries.
15320 archive_expsym_cmds_F77="\$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'
15169 fi
15170 fi
15171 ;;
15172
15173 amigaos*)
15174 archive_cmds_F77='$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)'
15175 hardcode_libdir_flag_spec_F77='-L$libdir'
15176 hardcode_minus_L_F77=yes
15177 # see comment about different semantics on the GNU ld section
15178 ld_shlibs_F77=no
15179 ;;
15180
15181 bsdi[45]*)
15182 export_dynamic_flag_spec_F77=-rdynamic
15183 ;;
15184
15185 cygwin* | mingw* | pw32*)
15186 # When not using gcc, we currently assume that we are using
15187 # Microsoft Visual C++.
15188 # hardcode_libdir_flag_spec is actually meaningless, as there is
15189 # no search path for DLLs.
15190 hardcode_libdir_flag_spec_F77=' '
15191 allow_undefined_flag_F77=unsupported
15192 # Tell ltmain to make .lib files, not .a files.
15193 libext=lib
15194 # Tell ltmain to make .dll files, not .so files.
15195 shrext_cmds=".dll"
15196 # FIXME: Setting linknames here is a bad hack.
15197 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15198 # The linker will automatically build a .lib file if we build a DLL.
15199 old_archive_From_new_cmds_F77='true'
15200 # FIXME: Should let the user specify the lib program.
15321 fi
15322 fi
15323 ;;
15324
15325 amigaos*)
15326 archive_cmds_F77='$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)'
15327 hardcode_libdir_flag_spec_F77='-L$libdir'
15328 hardcode_minus_L_F77=yes
15329 # see comment about different semantics on the GNU ld section
15330 ld_shlibs_F77=no
15331 ;;
15332
15333 bsdi[45]*)
15334 export_dynamic_flag_spec_F77=-rdynamic
15335 ;;
15336
15337 cygwin* | mingw* | pw32*)
15338 # When not using gcc, we currently assume that we are using
15339 # Microsoft Visual C++.
15340 # hardcode_libdir_flag_spec is actually meaningless, as there is
15341 # no search path for DLLs.
15342 hardcode_libdir_flag_spec_F77=' '
15343 allow_undefined_flag_F77=unsupported
15344 # Tell ltmain to make .lib files, not .a files.
15345 libext=lib
15346 # Tell ltmain to make .dll files, not .so files.
15347 shrext_cmds=".dll"
15348 # FIXME: Setting linknames here is a bad hack.
15349 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15350 # The linker will automatically build a .lib file if we build a DLL.
15351 old_archive_From_new_cmds_F77='true'
15352 # FIXME: Should let the user specify the lib program.
15201 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15353 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15202 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15203 enable_shared_with_static_runtimes_F77=yes
15204 ;;
15205
15206 darwin* | rhapsody*)
15354 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15355 enable_shared_with_static_runtimes_F77=yes
15356 ;;
15357
15358 darwin* | rhapsody*)
15207 case "$host_os" in
15359 case $host_os in
15208 rhapsody* | darwin1.[012])
15209 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15210 ;;
15211 *) # Darwin 1.3 on
15212 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15213 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15214 else
15215 case ${MACOSX_DEPLOYMENT_TARGET} in
15216 10.[012])
15217 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15218 ;;
15219 10.*)
15220 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15221 ;;
15222 esac
15223 fi
15224 ;;
15225 esac
15226 archive_cmds_need_lc_F77=no
15227 hardcode_direct_F77=no
15228 hardcode_automatic_F77=yes
15229 hardcode_shlibpath_var_F77=unsupported
15230 whole_archive_flag_spec_F77=''
15231 link_all_deplibs_F77=yes
15232 if test "$GCC" = yes ; then
15233 output_verbose_link_cmd='echo'
15360 rhapsody* | darwin1.[012])
15361 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15362 ;;
15363 *) # Darwin 1.3 on
15364 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15365 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15366 else
15367 case ${MACOSX_DEPLOYMENT_TARGET} in
15368 10.[012])
15369 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15370 ;;
15371 10.*)
15372 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15373 ;;
15374 esac
15375 fi
15376 ;;
15377 esac
15378 archive_cmds_need_lc_F77=no
15379 hardcode_direct_F77=no
15380 hardcode_automatic_F77=yes
15381 hardcode_shlibpath_var_F77=unsupported
15382 whole_archive_flag_spec_F77=''
15383 link_all_deplibs_F77=yes
15384 if test "$GCC" = yes ; then
15385 output_verbose_link_cmd='echo'
15234 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15235 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15236 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15237 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15238 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15386 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15387 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15388 archive_expsym_cmds_F77="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}"
15389 module_expsym_cmds_F77="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}"
15239 else
15240 case $cc_basename in
15241 xlc*)
15242 output_verbose_link_cmd='echo'
15390 else
15391 case $cc_basename in
15392 xlc*)
15393 output_verbose_link_cmd='echo'
15243 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15394 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15244 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15395 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15245 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15246 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15396 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15397 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15247 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15248 ;;
15249 *)
15250 ld_shlibs_F77=no
15251 ;;
15252 esac
15253 fi
15254 ;;
15255
15256 dgux*)
15257 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15258 hardcode_libdir_flag_spec_F77='-L$libdir'
15259 hardcode_shlibpath_var_F77=no
15260 ;;
15261
15262 freebsd1*)
15263 ld_shlibs_F77=no
15264 ;;
15265
15266 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15267 # support. Future versions do this automatically, but an explicit c++rt0.o
15268 # does not break anything, and helps significantly (at the cost of a little
15269 # extra space).
15270 freebsd2.2*)
15271 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15272 hardcode_libdir_flag_spec_F77='-R$libdir'
15273 hardcode_direct_F77=yes
15274 hardcode_shlibpath_var_F77=no
15275 ;;
15276
15277 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15278 freebsd2*)
15279 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15280 hardcode_direct_F77=yes
15281 hardcode_minus_L_F77=yes
15282 hardcode_shlibpath_var_F77=no
15283 ;;
15284
15285 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15398 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15399 ;;
15400 *)
15401 ld_shlibs_F77=no
15402 ;;
15403 esac
15404 fi
15405 ;;
15406
15407 dgux*)
15408 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15409 hardcode_libdir_flag_spec_F77='-L$libdir'
15410 hardcode_shlibpath_var_F77=no
15411 ;;
15412
15413 freebsd1*)
15414 ld_shlibs_F77=no
15415 ;;
15416
15417 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15418 # support. Future versions do this automatically, but an explicit c++rt0.o
15419 # does not break anything, and helps significantly (at the cost of a little
15420 # extra space).
15421 freebsd2.2*)
15422 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15423 hardcode_libdir_flag_spec_F77='-R$libdir'
15424 hardcode_direct_F77=yes
15425 hardcode_shlibpath_var_F77=no
15426 ;;
15427
15428 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15429 freebsd2*)
15430 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15431 hardcode_direct_F77=yes
15432 hardcode_minus_L_F77=yes
15433 hardcode_shlibpath_var_F77=no
15434 ;;
15435
15436 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15286 freebsd* | kfreebsd*-gnu | dragonfly*)
15437 freebsd* | dragonfly*)
15287 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15288 hardcode_libdir_flag_spec_F77='-R$libdir'
15289 hardcode_direct_F77=yes
15290 hardcode_shlibpath_var_F77=no
15291 ;;
15292
15293 hpux9*)
15294 if test "$GCC" = yes; then
15295 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15296 else
15297 archive_cmds_F77='$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'
15298 fi
15299 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15300 hardcode_libdir_separator_F77=:
15301 hardcode_direct_F77=yes
15302
15303 # hardcode_minus_L: Not really in the search PATH,
15304 # but as the default location of the library.
15305 hardcode_minus_L_F77=yes
15306 export_dynamic_flag_spec_F77='${wl}-E'
15307 ;;
15308
15438 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15439 hardcode_libdir_flag_spec_F77='-R$libdir'
15440 hardcode_direct_F77=yes
15441 hardcode_shlibpath_var_F77=no
15442 ;;
15443
15444 hpux9*)
15445 if test "$GCC" = yes; then
15446 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15447 else
15448 archive_cmds_F77='$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'
15449 fi
15450 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15451 hardcode_libdir_separator_F77=:
15452 hardcode_direct_F77=yes
15453
15454 # hardcode_minus_L: Not really in the search PATH,
15455 # but as the default location of the library.
15456 hardcode_minus_L_F77=yes
15457 export_dynamic_flag_spec_F77='${wl}-E'
15458 ;;
15459
15309 hpux10* | hpux11*)
15460 hpux10*)
15310 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15461 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15311 case "$host_cpu" in
15312 hppa*64*|ia64*)
15462 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15463 else
15464 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15465 fi
15466 if test "$with_gnu_ld" = no; then
15467 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15468 hardcode_libdir_separator_F77=:
15469
15470 hardcode_direct_F77=yes
15471 export_dynamic_flag_spec_F77='${wl}-E'
15472
15473 # hardcode_minus_L: Not really in the search PATH,
15474 # but as the default location of the library.
15475 hardcode_minus_L_F77=yes
15476 fi
15477 ;;
15478
15479 hpux11*)
15480 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15481 case $host_cpu in
15482 hppa*64*)
15313 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15314 ;;
15483 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15484 ;;
15485 ia64*)
15486 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15487 ;;
15315 *)
15316 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15317 ;;
15318 esac
15319 else
15488 *)
15489 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15490 ;;
15491 esac
15492 else
15320 case "$host_cpu" in
15321 hppa*64*|ia64*)
15322 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15493 case $host_cpu in
15494 hppa*64*)
15495 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15323 ;;
15496 ;;
15497 ia64*)
15498 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15499 ;;
15324 *)
15500 *)
15325 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15501 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15326 ;;
15327 esac
15328 fi
15329 if test "$with_gnu_ld" = no; then
15502 ;;
15503 esac
15504 fi
15505 if test "$with_gnu_ld" = no; then
15330 case "$host_cpu" in
15331 hppa*64*)
15332 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15506 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15507 hardcode_libdir_separator_F77=:
15508
15509 case $host_cpu in
15510 hppa*64*|ia64*)
15333 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15511 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15334 hardcode_libdir_separator_F77=:
15335 hardcode_direct_F77=no
15336 hardcode_shlibpath_var_F77=no
15337 ;;
15512 hardcode_direct_F77=no
15513 hardcode_shlibpath_var_F77=no
15514 ;;
15338 ia64*)
15339 hardcode_libdir_flag_spec_F77='-L$libdir'
15340 hardcode_direct_F77=no
15341 hardcode_shlibpath_var_F77=no
15342
15343 # hardcode_minus_L: Not really in the search PATH,
15344 # but as the default location of the library.
15345 hardcode_minus_L_F77=yes
15346 ;;
15347 *)
15515 *)
15348 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15349 hardcode_libdir_separator_F77=:
15350 hardcode_direct_F77=yes
15351 export_dynamic_flag_spec_F77='${wl}-E'
15352
15353 # hardcode_minus_L: Not really in the search PATH,
15354 # but as the default location of the library.
15355 hardcode_minus_L_F77=yes
15356 ;;
15357 esac
15358 fi
15359 ;;
15360
15361 irix5* | irix6* | nonstopux*)
15362 if test "$GCC" = yes; then
15363 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15364 else
15365 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15366 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15367 fi
15368 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15369 hardcode_libdir_separator_F77=:
15370 link_all_deplibs_F77=yes
15371 ;;
15372
15373 netbsd*)
15374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15375 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15376 else
15377 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15378 fi
15379 hardcode_libdir_flag_spec_F77='-R$libdir'
15380 hardcode_direct_F77=yes
15381 hardcode_shlibpath_var_F77=no
15382 ;;
15383
15384 newsos6)
15385 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15386 hardcode_direct_F77=yes
15387 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15388 hardcode_libdir_separator_F77=:
15389 hardcode_shlibpath_var_F77=no
15390 ;;
15391
15392 openbsd*)
15516 hardcode_direct_F77=yes
15517 export_dynamic_flag_spec_F77='${wl}-E'
15518
15519 # hardcode_minus_L: Not really in the search PATH,
15520 # but as the default location of the library.
15521 hardcode_minus_L_F77=yes
15522 ;;
15523 esac
15524 fi
15525 ;;
15526
15527 irix5* | irix6* | nonstopux*)
15528 if test "$GCC" = yes; then
15529 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15530 else
15531 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15532 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15533 fi
15534 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15535 hardcode_libdir_separator_F77=:
15536 link_all_deplibs_F77=yes
15537 ;;
15538
15539 netbsd*)
15540 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15541 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15542 else
15543 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15544 fi
15545 hardcode_libdir_flag_spec_F77='-R$libdir'
15546 hardcode_direct_F77=yes
15547 hardcode_shlibpath_var_F77=no
15548 ;;
15549
15550 newsos6)
15551 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552 hardcode_direct_F77=yes
15553 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15554 hardcode_libdir_separator_F77=:
15555 hardcode_shlibpath_var_F77=no
15556 ;;
15557
15558 openbsd*)
15393 hardcode_direct_F77=yes
15394 hardcode_shlibpath_var_F77=no
15395 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15396 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15397 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15398 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15399 export_dynamic_flag_spec_F77='${wl}-E'
15559 if test -f /usr/libexec/ld.so; then
15560 hardcode_direct_F77=yes
15561 hardcode_shlibpath_var_F77=no
15562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15563 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15564 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15565 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15566 export_dynamic_flag_spec_F77='${wl}-E'
15567 else
15568 case $host_os in
15569 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15570 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15571 hardcode_libdir_flag_spec_F77='-R$libdir'
15572 ;;
15573 *)
15574 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15575 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15576 ;;
15577 esac
15578 fi
15400 else
15579 else
15401 case $host_os in
15402 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15403 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15404 hardcode_libdir_flag_spec_F77='-R$libdir'
15405 ;;
15406 *)
15407 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15408 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15409 ;;
15410 esac
15580 ld_shlibs_F77=no
15411 fi
15412 ;;
15413
15414 os2*)
15415 hardcode_libdir_flag_spec_F77='-L$libdir'
15416 hardcode_minus_L_F77=yes
15417 allow_undefined_flag_F77=unsupported
15418 archive_cmds_F77='$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'
15419 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15420 ;;
15421
15422 osf3*)
15423 if test "$GCC" = yes; then
15424 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15425 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15426 else
15427 allow_undefined_flag_F77=' -expect_unresolved \*'
15428 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15429 fi
15430 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15431 hardcode_libdir_separator_F77=:
15432 ;;
15433
15434 osf4* | osf5*) # as osf3* with the addition of -msym flag
15435 if test "$GCC" = yes; then
15436 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15437 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15438 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15439 else
15440 allow_undefined_flag_F77=' -expect_unresolved \*'
15441 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15442 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15443 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15444
15445 # Both c and cxx compiler support -rpath directly
15446 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15447 fi
15448 hardcode_libdir_separator_F77=:
15449 ;;
15450
15581 fi
15582 ;;
15583
15584 os2*)
15585 hardcode_libdir_flag_spec_F77='-L$libdir'
15586 hardcode_minus_L_F77=yes
15587 allow_undefined_flag_F77=unsupported
15588 archive_cmds_F77='$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'
15589 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15590 ;;
15591
15592 osf3*)
15593 if test "$GCC" = yes; then
15594 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15595 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15596 else
15597 allow_undefined_flag_F77=' -expect_unresolved \*'
15598 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15599 fi
15600 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15601 hardcode_libdir_separator_F77=:
15602 ;;
15603
15604 osf4* | osf5*) # as osf3* with the addition of -msym flag
15605 if test "$GCC" = yes; then
15606 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15607 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15608 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15609 else
15610 allow_undefined_flag_F77=' -expect_unresolved \*'
15611 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15612 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15613 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15614
15615 # Both c and cxx compiler support -rpath directly
15616 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15617 fi
15618 hardcode_libdir_separator_F77=:
15619 ;;
15620
15451 sco3.2v5*)
15452 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15453 hardcode_shlibpath_var_F77=no
15454 export_dynamic_flag_spec_F77='${wl}-Bexport'
15455 runpath_var=LD_RUN_PATH
15456 hardcode_runpath_var=yes
15457 ;;
15458
15459 solaris*)
15460 no_undefined_flag_F77=' -z text'
15461 if test "$GCC" = yes; then
15462 wlarc='${wl}'
15463 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15464 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15465 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15466 else
15467 wlarc=''
15468 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15469 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15470 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15471 fi
15472 hardcode_libdir_flag_spec_F77='-R$libdir'
15473 hardcode_shlibpath_var_F77=no
15474 case $host_os in
15475 solaris2.[0-5] | solaris2.[0-5].*) ;;
15476 *)
15621 solaris*)
15622 no_undefined_flag_F77=' -z text'
15623 if test "$GCC" = yes; then
15624 wlarc='${wl}'
15625 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15626 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15627 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15628 else
15629 wlarc=''
15630 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15631 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15632 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15633 fi
15634 hardcode_libdir_flag_spec_F77='-R$libdir'
15635 hardcode_shlibpath_var_F77=no
15636 case $host_os in
15637 solaris2.[0-5] | solaris2.[0-5].*) ;;
15638 *)
15477 # The compiler driver will combine linker options so we
15478 # cannot just pass the convience library names through
15479 # without $wl, iff we do not link with $LD.
15480 # Luckily, gcc supports the same syntax we need for Sun Studio.
15639 # The compiler driver will combine and reorder linker options,
15640 # but understands `-z linker_flag'. GCC discards it without `$wl',
15641 # but is careful enough not to reorder.
15481 # Supported since Solaris 2.6 (maybe 2.5.1?)
15642 # Supported since Solaris 2.6 (maybe 2.5.1?)
15482 case $wlarc in
15483 '')
15484 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15485 *)
15486 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15487 esac ;;
15643 if test "$GCC" = yes; then
15644 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15645 else
15646 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15647 fi
15648 ;;
15488 esac
15489 link_all_deplibs_F77=yes
15490 ;;
15491
15492 sunos4*)
15493 if test "x$host_vendor" = xsequent; then
15494 # Use $CC to link under sequent, because it throws in some extra .o
15495 # files that make .init and .fini sections work.
15496 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15497 else
15498 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15499 fi
15500 hardcode_libdir_flag_spec_F77='-L$libdir'
15501 hardcode_direct_F77=yes
15502 hardcode_minus_L_F77=yes
15503 hardcode_shlibpath_var_F77=no
15504 ;;
15505
15506 sysv4)
15507 case $host_vendor in
15508 sni)
15509 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15510 hardcode_direct_F77=yes # is this really true???
15511 ;;
15512 siemens)
15513 ## LD is ld it makes a PLAMLIB
15514 ## CC just makes a GrossModule.
15515 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15516 reload_cmds_F77='$CC -r -o $output$reload_objs'
15517 hardcode_direct_F77=no
15518 ;;
15519 motorola)
15520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15522 ;;
15523 esac
15524 runpath_var='LD_RUN_PATH'
15525 hardcode_shlibpath_var_F77=no
15526 ;;
15527
15528 sysv4.3*)
15529 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530 hardcode_shlibpath_var_F77=no
15531 export_dynamic_flag_spec_F77='-Bexport'
15532 ;;
15533
15534 sysv4*MP*)
15535 if test -d /usr/nec; then
15536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15537 hardcode_shlibpath_var_F77=no
15538 runpath_var=LD_RUN_PATH
15539 hardcode_runpath_var=yes
15540 ld_shlibs_F77=yes
15541 fi
15542 ;;
15543
15649 esac
15650 link_all_deplibs_F77=yes
15651 ;;
15652
15653 sunos4*)
15654 if test "x$host_vendor" = xsequent; then
15655 # Use $CC to link under sequent, because it throws in some extra .o
15656 # files that make .init and .fini sections work.
15657 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15658 else
15659 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15660 fi
15661 hardcode_libdir_flag_spec_F77='-L$libdir'
15662 hardcode_direct_F77=yes
15663 hardcode_minus_L_F77=yes
15664 hardcode_shlibpath_var_F77=no
15665 ;;
15666
15667 sysv4)
15668 case $host_vendor in
15669 sni)
15670 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15671 hardcode_direct_F77=yes # is this really true???
15672 ;;
15673 siemens)
15674 ## LD is ld it makes a PLAMLIB
15675 ## CC just makes a GrossModule.
15676 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15677 reload_cmds_F77='$CC -r -o $output$reload_objs'
15678 hardcode_direct_F77=no
15679 ;;
15680 motorola)
15681 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15682 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15683 ;;
15684 esac
15685 runpath_var='LD_RUN_PATH'
15686 hardcode_shlibpath_var_F77=no
15687 ;;
15688
15689 sysv4.3*)
15690 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15691 hardcode_shlibpath_var_F77=no
15692 export_dynamic_flag_spec_F77='-Bexport'
15693 ;;
15694
15695 sysv4*MP*)
15696 if test -d /usr/nec; then
15697 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698 hardcode_shlibpath_var_F77=no
15699 runpath_var=LD_RUN_PATH
15700 hardcode_runpath_var=yes
15701 ld_shlibs_F77=yes
15702 fi
15703 ;;
15704
15544 sysv4.2uw2*)
15545 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15546 hardcode_direct_F77=yes
15547 hardcode_minus_L_F77=no
15705 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15706 no_undefined_flag_F77='${wl}-z,text'
15707 archive_cmds_need_lc_F77=no
15548 hardcode_shlibpath_var_F77=no
15708 hardcode_shlibpath_var_F77=no
15549 hardcode_runpath_var=yes
15550 runpath_var=LD_RUN_PATH
15551 ;;
15709 runpath_var='LD_RUN_PATH'
15552
15710
15553 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15554 no_undefined_flag_F77='${wl}-z ${wl}text'
15555 if test "$GCC" = yes; then
15711 if test "$GCC" = yes; then
15556 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15712 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15713 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15557 else
15714 else
15558 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15715 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15716 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15559 fi
15717 fi
15560 runpath_var='LD_RUN_PATH'
15561 hardcode_shlibpath_var_F77=no
15562 ;;
15563
15718 ;;
15719
15564 sysv5*)
15565 no_undefined_flag_F77=' -z text'
15566 # $CC -shared without GNU ld will not create a library from C++
15567 # object files and a static libstdc++, better avoid it by now
15568 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15569 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15570 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15571 hardcode_libdir_flag_spec_F77=
15720 sysv5* | sco3.2v5* | sco5v6*)
15721 # Note: We can NOT use -z defs as we might desire, because we do not
15722 # link with -lc, and that would cause any symbols used from libc to
15723 # always be unresolved, which means just about no library would
15724 # ever link correctly. If we're not using GNU ld we use -z text
15725 # though, which does catch some bad symbols but isn't as heavy-handed
15726 # as -z defs.
15727 no_undefined_flag_F77='${wl}-z,text'
15728 allow_undefined_flag_F77='${wl}-z,nodefs'
15729 archive_cmds_need_lc_F77=no
15572 hardcode_shlibpath_var_F77=no
15730 hardcode_shlibpath_var_F77=no
15731 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15732 hardcode_libdir_separator_F77=':'
15733 link_all_deplibs_F77=yes
15734 export_dynamic_flag_spec_F77='${wl}-Bexport'
15573 runpath_var='LD_RUN_PATH'
15735 runpath_var='LD_RUN_PATH'
15736
15737 if test "$GCC" = yes; then
15738 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15739 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15740 else
15741 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15742 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15743 fi
15574 ;;
15575
15576 uts4*)
15577 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15578 hardcode_libdir_flag_spec_F77='-L$libdir'
15579 hardcode_shlibpath_var_F77=no
15580 ;;
15581
15582 *)
15583 ld_shlibs_F77=no
15584 ;;
15585 esac
15586 fi
15587
15588{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15589echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15590test "$ld_shlibs_F77" = no && can_build_shared=no
15591
15744 ;;
15745
15746 uts4*)
15747 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15748 hardcode_libdir_flag_spec_F77='-L$libdir'
15749 hardcode_shlibpath_var_F77=no
15750 ;;
15751
15752 *)
15753 ld_shlibs_F77=no
15754 ;;
15755 esac
15756 fi
15757
15758{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15759echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15760test "$ld_shlibs_F77" = no && can_build_shared=no
15761
15592variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15593if test "$GCC" = yes; then
15594 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15595fi
15596
15597#
15598# Do we need to explicitly link libc?
15599#
15600case "x$archive_cmds_need_lc_F77" in
15601x|xyes)
15602 # Assume -lc should be added
15603 archive_cmds_need_lc_F77=yes
15604
15605 if test "$enable_shared" = yes && test "$GCC" = yes; then
15606 case $archive_cmds_F77 in
15607 *'~'*)
15608 # FIXME: we may have to deal with multi-command sequences.
15609 ;;
15610 '$CC '*)
15611 # Test whether the compiler implicitly links with -lc since on some
15612 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15613 # to ld, don't add -lc before -lgcc.
15614 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15615echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15616 $rm conftest*
15762#
15763# Do we need to explicitly link libc?
15764#
15765case "x$archive_cmds_need_lc_F77" in
15766x|xyes)
15767 # Assume -lc should be added
15768 archive_cmds_need_lc_F77=yes
15769
15770 if test "$enable_shared" = yes && test "$GCC" = yes; then
15771 case $archive_cmds_F77 in
15772 *'~'*)
15773 # FIXME: we may have to deal with multi-command sequences.
15774 ;;
15775 '$CC '*)
15776 # Test whether the compiler implicitly links with -lc since on some
15777 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15778 # to ld, don't add -lc before -lgcc.
15779 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15780echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15781 $rm conftest*
15617 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15618
15619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620 (eval $ac_compile) 2>&5
15621 ac_status=$?
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } 2>conftest.err; then
15624 soname=conftest
15625 lib=conftest
15626 libobjs=conftest.$ac_objext
15627 deplibs=
15628 wl=$lt_prog_compiler_wl_F77
15783
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785 (eval $ac_compile) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } 2>conftest.err; then
15789 soname=conftest
15790 lib=conftest
15791 libobjs=conftest.$ac_objext
15792 deplibs=
15793 wl=$lt_prog_compiler_wl_F77
15794 pic_flag=$lt_prog_compiler_pic_F77
15629 compiler_flags=-v
15630 linker_flags=-v
15631 verstring=
15632 output_objdir=.
15633 libname=conftest
15634 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15635 allow_undefined_flag_F77=
15636 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15637 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }
15641 then
15642 archive_cmds_need_lc_F77=no
15643 else
15644 archive_cmds_need_lc_F77=yes
15645 fi
15646 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15647 else
15648 cat conftest.err 1>&5
15649 fi
15650 $rm conftest*
15651 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15652echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15653 ;;
15654 esac
15655 fi
15656 ;;
15657esac
15658
15659{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15660echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15661library_names_spec=
15662libname_spec='lib$name'
15663soname_spec=
15664shrext_cmds=".so"
15665postinstall_cmds=
15666postuninstall_cmds=
15667finish_cmds=
15668finish_eval=
15669shlibpath_var=
15670shlibpath_overrides_runpath=unknown
15671version_type=none
15672dynamic_linker="$host_os ld.so"
15673sys_lib_dlsearch_path_spec="/lib /usr/lib"
15795 compiler_flags=-v
15796 linker_flags=-v
15797 verstring=
15798 output_objdir=.
15799 libname=conftest
15800 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15801 allow_undefined_flag_F77=
15802 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15803 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15804 ac_status=$?
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); }
15807 then
15808 archive_cmds_need_lc_F77=no
15809 else
15810 archive_cmds_need_lc_F77=yes
15811 fi
15812 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15813 else
15814 cat conftest.err 1>&5
15815 fi
15816 $rm conftest*
15817 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15818echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15819 ;;
15820 esac
15821 fi
15822 ;;
15823esac
15824
15825{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15826echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15827library_names_spec=
15828libname_spec='lib$name'
15829soname_spec=
15830shrext_cmds=".so"
15831postinstall_cmds=
15832postuninstall_cmds=
15833finish_cmds=
15834finish_eval=
15835shlibpath_var=
15836shlibpath_overrides_runpath=unknown
15837version_type=none
15838dynamic_linker="$host_os ld.so"
15839sys_lib_dlsearch_path_spec="/lib /usr/lib"
15674if test "$GCC" = yes; then
15675 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15676 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15677 # if the path contains ";" then we assume it to be the separator
15678 # otherwise default to the standard path separator (i.e. ":") - it is
15679 # assumed that no part of a normal pathname contains ";" but that should
15680 # okay in the real world where ";" in dirpaths is itself problematic.
15681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15682 else
15683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15684 fi
15685else
15686 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15687fi
15840
15688need_lib_prefix=unknown
15689hardcode_into_libs=no
15690
15691# when you set need_version to no, make sure it does not cause -set_version
15692# flags to be left without arguments
15693need_version=unknown
15694
15695case $host_os in
15696aix3*)
15697 version_type=linux
15698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15699 shlibpath_var=LIBPATH
15700
15701 # AIX 3 has no versioning support, so we append a major version to the name.
15702 soname_spec='${libname}${release}${shared_ext}$major'
15703 ;;
15704
15841need_lib_prefix=unknown
15842hardcode_into_libs=no
15843
15844# when you set need_version to no, make sure it does not cause -set_version
15845# flags to be left without arguments
15846need_version=unknown
15847
15848case $host_os in
15849aix3*)
15850 version_type=linux
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15852 shlibpath_var=LIBPATH
15853
15854 # AIX 3 has no versioning support, so we append a major version to the name.
15855 soname_spec='${libname}${release}${shared_ext}$major'
15856 ;;
15857
15705aix4* | aix5*)
15858aix[4-9]*)
15706 version_type=linux
15707 need_lib_prefix=no
15708 need_version=no
15709 hardcode_into_libs=yes
15710 if test "$host_cpu" = ia64; then
15711 # AIX 5 supports IA64
15712 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15713 shlibpath_var=LD_LIBRARY_PATH
15714 else
15715 # With GCC up to 2.95.x, collect2 would create an import file
15716 # for dependence libraries. The import file would start with
15717 # the line `#! .'. This would cause the generated library to
15718 # depend on `.', always an invalid library. This was fixed in
15719 # development snapshots of GCC prior to 3.0.
15720 case $host_os in
15721 aix4 | aix4.[01] | aix4.[01].*)
15722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15723 echo ' yes '
15724 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15725 :
15726 else
15727 can_build_shared=no
15728 fi
15729 ;;
15730 esac
15731 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15732 # soname into executable. Probably we can add versioning support to
15733 # collect2, so additional links can be useful in future.
15734 if test "$aix_use_runtimelinking" = yes; then
15735 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15736 # instead of lib<name>.a to let people know that these are not
15737 # typical AIX shared libraries.
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15739 else
15740 # We preserve .a as extension for shared libraries through AIX4.2
15741 # and later when we are not doing run time linking.
15742 library_names_spec='${libname}${release}.a $libname.a'
15743 soname_spec='${libname}${release}${shared_ext}$major'
15744 fi
15745 shlibpath_var=LIBPATH
15746 fi
15747 ;;
15748
15749amigaos*)
15750 library_names_spec='$libname.ixlibrary $libname.a'
15751 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15752 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15753 ;;
15754
15755beos*)
15756 library_names_spec='${libname}${shared_ext}'
15757 dynamic_linker="$host_os ld.so"
15758 shlibpath_var=LIBRARY_PATH
15759 ;;
15760
15761bsdi[45]*)
15762 version_type=linux
15763 need_version=no
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765 soname_spec='${libname}${release}${shared_ext}$major'
15766 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15767 shlibpath_var=LD_LIBRARY_PATH
15768 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15769 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15770 # the default ld.so.conf also contains /usr/contrib/lib and
15771 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15772 # libtool to hard-code these into programs
15773 ;;
15774
15775cygwin* | mingw* | pw32*)
15776 version_type=windows
15777 shrext_cmds=".dll"
15778 need_version=no
15779 need_lib_prefix=no
15780
15781 case $GCC,$host_os in
15782 yes,cygwin* | yes,mingw* | yes,pw32*)
15783 library_names_spec='$libname.dll.a'
15784 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15785 postinstall_cmds='base_file=`basename \${file}`~
15786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15787 dldir=$destdir/`dirname \$dlpath`~
15788 test -d \$dldir || mkdir -p \$dldir~
15859 version_type=linux
15860 need_lib_prefix=no
15861 need_version=no
15862 hardcode_into_libs=yes
15863 if test "$host_cpu" = ia64; then
15864 # AIX 5 supports IA64
15865 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15866 shlibpath_var=LD_LIBRARY_PATH
15867 else
15868 # With GCC up to 2.95.x, collect2 would create an import file
15869 # for dependence libraries. The import file would start with
15870 # the line `#! .'. This would cause the generated library to
15871 # depend on `.', always an invalid library. This was fixed in
15872 # development snapshots of GCC prior to 3.0.
15873 case $host_os in
15874 aix4 | aix4.[01] | aix4.[01].*)
15875 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15876 echo ' yes '
15877 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15878 :
15879 else
15880 can_build_shared=no
15881 fi
15882 ;;
15883 esac
15884 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15885 # soname into executable. Probably we can add versioning support to
15886 # collect2, so additional links can be useful in future.
15887 if test "$aix_use_runtimelinking" = yes; then
15888 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15889 # instead of lib<name>.a to let people know that these are not
15890 # typical AIX shared libraries.
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892 else
15893 # We preserve .a as extension for shared libraries through AIX4.2
15894 # and later when we are not doing run time linking.
15895 library_names_spec='${libname}${release}.a $libname.a'
15896 soname_spec='${libname}${release}${shared_ext}$major'
15897 fi
15898 shlibpath_var=LIBPATH
15899 fi
15900 ;;
15901
15902amigaos*)
15903 library_names_spec='$libname.ixlibrary $libname.a'
15904 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15905 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15906 ;;
15907
15908beos*)
15909 library_names_spec='${libname}${shared_ext}'
15910 dynamic_linker="$host_os ld.so"
15911 shlibpath_var=LIBRARY_PATH
15912 ;;
15913
15914bsdi[45]*)
15915 version_type=linux
15916 need_version=no
15917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15918 soname_spec='${libname}${release}${shared_ext}$major'
15919 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15920 shlibpath_var=LD_LIBRARY_PATH
15921 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15922 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15923 # the default ld.so.conf also contains /usr/contrib/lib and
15924 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15925 # libtool to hard-code these into programs
15926 ;;
15927
15928cygwin* | mingw* | pw32*)
15929 version_type=windows
15930 shrext_cmds=".dll"
15931 need_version=no
15932 need_lib_prefix=no
15933
15934 case $GCC,$host_os in
15935 yes,cygwin* | yes,mingw* | yes,pw32*)
15936 library_names_spec='$libname.dll.a'
15937 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15938 postinstall_cmds='base_file=`basename \${file}`~
15939 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15940 dldir=$destdir/`dirname \$dlpath`~
15941 test -d \$dldir || mkdir -p \$dldir~
15789 $install_prog $dir/$dlname \$dldir/$dlname'
15942 $install_prog $dir/$dlname \$dldir/$dlname~
15943 chmod a+x \$dldir/$dlname'
15790 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15791 dlpath=$dir/\$dldll~
15792 $rm \$dlpath'
15793 shlibpath_overrides_runpath=yes
15794
15795 case $host_os in
15796 cygwin*)
15797 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15798 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15799 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15800 ;;
15801 mingw*)
15802 # MinGW DLLs use traditional 'lib' prefix
15803 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15804 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15805 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15806 # It is most probably a Windows format PATH printed by
15807 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15808 # path with ; separators, and with drive letters. We can handle the
15809 # drive letters (cygwin fileutils understands them), so leave them,
15810 # especially as we might pass files found there to a mingw objdump,
15811 # which wouldn't understand a cygwinified path. Ahh.
15812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15813 else
15814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15815 fi
15816 ;;
15817 pw32*)
15818 # pw32 DLLs use 'pw' prefix rather than 'lib'
15819 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15820 ;;
15821 esac
15822 ;;
15823
15824 *)
15825 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15826 ;;
15827 esac
15828 dynamic_linker='Win32 ld.exe'
15829 # FIXME: first we should search . and the directory the executable is in
15830 shlibpath_var=PATH
15831 ;;
15832
15833darwin* | rhapsody*)
15834 dynamic_linker="$host_os dyld"
15835 version_type=darwin
15836 need_lib_prefix=no
15837 need_version=no
15838 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15839 soname_spec='${libname}${release}${major}$shared_ext'
15840 shlibpath_overrides_runpath=yes
15841 shlibpath_var=DYLD_LIBRARY_PATH
15944 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15945 dlpath=$dir/\$dldll~
15946 $rm \$dlpath'
15947 shlibpath_overrides_runpath=yes
15948
15949 case $host_os in
15950 cygwin*)
15951 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15952 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15953 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15954 ;;
15955 mingw*)
15956 # MinGW DLLs use traditional 'lib' prefix
15957 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15958 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15959 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15960 # It is most probably a Windows format PATH printed by
15961 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15962 # path with ; separators, and with drive letters. We can handle the
15963 # drive letters (cygwin fileutils understands them), so leave them,
15964 # especially as we might pass files found there to a mingw objdump,
15965 # which wouldn't understand a cygwinified path. Ahh.
15966 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15967 else
15968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15969 fi
15970 ;;
15971 pw32*)
15972 # pw32 DLLs use 'pw' prefix rather than 'lib'
15973 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15974 ;;
15975 esac
15976 ;;
15977
15978 *)
15979 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15980 ;;
15981 esac
15982 dynamic_linker='Win32 ld.exe'
15983 # FIXME: first we should search . and the directory the executable is in
15984 shlibpath_var=PATH
15985 ;;
15986
15987darwin* | rhapsody*)
15988 dynamic_linker="$host_os dyld"
15989 version_type=darwin
15990 need_lib_prefix=no
15991 need_version=no
15992 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15993 soname_spec='${libname}${release}${major}$shared_ext'
15994 shlibpath_overrides_runpath=yes
15995 shlibpath_var=DYLD_LIBRARY_PATH
15842 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15843 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15844 if test "$GCC" = yes; then
15845 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15846 else
15847 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15848 fi
15996 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15997
15849 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15850 ;;
15851
15852dgux*)
15853 version_type=linux
15854 need_lib_prefix=no
15855 need_version=no
15856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15857 soname_spec='${libname}${release}${shared_ext}$major'
15858 shlibpath_var=LD_LIBRARY_PATH
15859 ;;
15860
15861freebsd1*)
15862 dynamic_linker=no
15863 ;;
15864
15998 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15999 ;;
16000
16001dgux*)
16002 version_type=linux
16003 need_lib_prefix=no
16004 need_version=no
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16006 soname_spec='${libname}${release}${shared_ext}$major'
16007 shlibpath_var=LD_LIBRARY_PATH
16008 ;;
16009
16010freebsd1*)
16011 dynamic_linker=no
16012 ;;
16013
15865kfreebsd*-gnu)
15866 version_type=linux
15867 need_lib_prefix=no
15868 need_version=no
15869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15870 soname_spec='${libname}${release}${shared_ext}$major'
15871 shlibpath_var=LD_LIBRARY_PATH
15872 shlibpath_overrides_runpath=no
15873 hardcode_into_libs=yes
15874 dynamic_linker='GNU ld.so'
15875 ;;
15876
15877freebsd* | dragonfly*)
15878 # DragonFly does not have aout. When/if they implement a new
15879 # versioning mechanism, adjust this.
16014freebsd* | dragonfly*)
16015 # DragonFly does not have aout. When/if they implement a new
16016 # versioning mechanism, adjust this.
15880 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16017 if test -x /usr/bin/objformat; then
16018 objformat=`/usr/bin/objformat`
16019 else
16020 case $host_os in
16021 freebsd[123]*) objformat=aout ;;
16022 *) objformat=elf ;;
16023 esac
16024 fi
15881 version_type=freebsd-$objformat
15882 case $version_type in
15883 freebsd-elf*)
15884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15885 need_version=no
15886 need_lib_prefix=no
15887 ;;
15888 freebsd-*)
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15890 need_version=yes
15891 ;;
15892 esac
15893 shlibpath_var=LD_LIBRARY_PATH
15894 case $host_os in
15895 freebsd2*)
15896 shlibpath_overrides_runpath=yes
15897 ;;
15898 freebsd3.[01]* | freebsdelf3.[01]*)
15899 shlibpath_overrides_runpath=yes
15900 hardcode_into_libs=yes
15901 ;;
16025 version_type=freebsd-$objformat
16026 case $version_type in
16027 freebsd-elf*)
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16029 need_version=no
16030 need_lib_prefix=no
16031 ;;
16032 freebsd-*)
16033 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16034 need_version=yes
16035 ;;
16036 esac
16037 shlibpath_var=LD_LIBRARY_PATH
16038 case $host_os in
16039 freebsd2*)
16040 shlibpath_overrides_runpath=yes
16041 ;;
16042 freebsd3.[01]* | freebsdelf3.[01]*)
16043 shlibpath_overrides_runpath=yes
16044 hardcode_into_libs=yes
16045 ;;
15902 *) # from 3.2 on
16046 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16047 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15903 shlibpath_overrides_runpath=no
15904 hardcode_into_libs=yes
15905 ;;
16048 shlibpath_overrides_runpath=no
16049 hardcode_into_libs=yes
16050 ;;
16051 *) # from 4.6 on, and DragonFly
16052 shlibpath_overrides_runpath=yes
16053 hardcode_into_libs=yes
16054 ;;
15906 esac
15907 ;;
15908
15909gnu*)
15910 version_type=linux
15911 need_lib_prefix=no
15912 need_version=no
15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15914 soname_spec='${libname}${release}${shared_ext}$major'
15915 shlibpath_var=LD_LIBRARY_PATH
15916 hardcode_into_libs=yes
15917 ;;
15918
15919hpux9* | hpux10* | hpux11*)
15920 # Give a soname corresponding to the major version so that dld.sl refuses to
15921 # link against other versions.
15922 version_type=sunos
15923 need_lib_prefix=no
15924 need_version=no
16055 esac
16056 ;;
16057
16058gnu*)
16059 version_type=linux
16060 need_lib_prefix=no
16061 need_version=no
16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16063 soname_spec='${libname}${release}${shared_ext}$major'
16064 shlibpath_var=LD_LIBRARY_PATH
16065 hardcode_into_libs=yes
16066 ;;
16067
16068hpux9* | hpux10* | hpux11*)
16069 # Give a soname corresponding to the major version so that dld.sl refuses to
16070 # link against other versions.
16071 version_type=sunos
16072 need_lib_prefix=no
16073 need_version=no
15925 case "$host_cpu" in
16074 case $host_cpu in
15926 ia64*)
15927 shrext_cmds='.so'
15928 hardcode_into_libs=yes
15929 dynamic_linker="$host_os dld.so"
15930 shlibpath_var=LD_LIBRARY_PATH
15931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15933 soname_spec='${libname}${release}${shared_ext}$major'
15934 if test "X$HPUX_IA64_MODE" = X32; then
15935 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15936 else
15937 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15938 fi
15939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15940 ;;
15941 hppa*64*)
15942 shrext_cmds='.sl'
15943 hardcode_into_libs=yes
15944 dynamic_linker="$host_os dld.sl"
15945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 soname_spec='${libname}${release}${shared_ext}$major'
15949 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15951 ;;
15952 *)
15953 shrext_cmds='.sl'
15954 dynamic_linker="$host_os dld.sl"
15955 shlibpath_var=SHLIB_PATH
15956 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15958 soname_spec='${libname}${release}${shared_ext}$major'
15959 ;;
15960 esac
15961 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15962 postinstall_cmds='chmod 555 $lib'
15963 ;;
15964
16075 ia64*)
16076 shrext_cmds='.so'
16077 hardcode_into_libs=yes
16078 dynamic_linker="$host_os dld.so"
16079 shlibpath_var=LD_LIBRARY_PATH
16080 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16082 soname_spec='${libname}${release}${shared_ext}$major'
16083 if test "X$HPUX_IA64_MODE" = X32; then
16084 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16085 else
16086 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16087 fi
16088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16089 ;;
16090 hppa*64*)
16091 shrext_cmds='.sl'
16092 hardcode_into_libs=yes
16093 dynamic_linker="$host_os dld.sl"
16094 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097 soname_spec='${libname}${release}${shared_ext}$major'
16098 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16100 ;;
16101 *)
16102 shrext_cmds='.sl'
16103 dynamic_linker="$host_os dld.sl"
16104 shlibpath_var=SHLIB_PATH
16105 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107 soname_spec='${libname}${release}${shared_ext}$major'
16108 ;;
16109 esac
16110 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16111 postinstall_cmds='chmod 555 $lib'
16112 ;;
16113
16114interix[3-9]*)
16115 version_type=linux
16116 need_lib_prefix=no
16117 need_version=no
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16119 soname_spec='${libname}${release}${shared_ext}$major'
16120 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16121 shlibpath_var=LD_LIBRARY_PATH
16122 shlibpath_overrides_runpath=no
16123 hardcode_into_libs=yes
16124 ;;
16125
15965irix5* | irix6* | nonstopux*)
15966 case $host_os in
15967 nonstopux*) version_type=nonstopux ;;
15968 *)
15969 if test "$lt_cv_prog_gnu_ld" = yes; then
15970 version_type=linux
15971 else
15972 version_type=irix
15973 fi ;;
15974 esac
15975 need_lib_prefix=no
15976 need_version=no
15977 soname_spec='${libname}${release}${shared_ext}$major'
15978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15979 case $host_os in
15980 irix5* | nonstopux*)
15981 libsuff= shlibsuff=
15982 ;;
15983 *)
15984 case $LD in # libtool.m4 will add one of these switches to LD
15985 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15986 libsuff= shlibsuff= libmagic=32-bit;;
15987 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15988 libsuff=32 shlibsuff=N32 libmagic=N32;;
15989 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15990 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15991 *) libsuff= shlibsuff= libmagic=never-match;;
15992 esac
15993 ;;
15994 esac
15995 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15996 shlibpath_overrides_runpath=no
15997 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15998 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15999 hardcode_into_libs=yes
16000 ;;
16001
16002# No shared lib support for Linux oldld, aout, or coff.
16003linux*oldld* | linux*aout* | linux*coff*)
16004 dynamic_linker=no
16005 ;;
16006
16007# This must be Linux ELF.
16126irix5* | irix6* | nonstopux*)
16127 case $host_os in
16128 nonstopux*) version_type=nonstopux ;;
16129 *)
16130 if test "$lt_cv_prog_gnu_ld" = yes; then
16131 version_type=linux
16132 else
16133 version_type=irix
16134 fi ;;
16135 esac
16136 need_lib_prefix=no
16137 need_version=no
16138 soname_spec='${libname}${release}${shared_ext}$major'
16139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16140 case $host_os in
16141 irix5* | nonstopux*)
16142 libsuff= shlibsuff=
16143 ;;
16144 *)
16145 case $LD in # libtool.m4 will add one of these switches to LD
16146 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16147 libsuff= shlibsuff= libmagic=32-bit;;
16148 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16149 libsuff=32 shlibsuff=N32 libmagic=N32;;
16150 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16151 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16152 *) libsuff= shlibsuff= libmagic=never-match;;
16153 esac
16154 ;;
16155 esac
16156 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16157 shlibpath_overrides_runpath=no
16158 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16159 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16160 hardcode_into_libs=yes
16161 ;;
16162
16163# No shared lib support for Linux oldld, aout, or coff.
16164linux*oldld* | linux*aout* | linux*coff*)
16165 dynamic_linker=no
16166 ;;
16167
16168# This must be Linux ELF.
16008linux*)
16169linux* | k*bsd*-gnu)
16009 version_type=linux
16010 need_lib_prefix=no
16011 need_version=no
16012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16013 soname_spec='${libname}${release}${shared_ext}$major'
16014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16015 shlibpath_var=LD_LIBRARY_PATH
16016 shlibpath_overrides_runpath=no
16017 # This implies no fast_install, which is unacceptable.
16018 # Some rework will be needed to allow for fast_install
16019 # before this can be enabled.
16020 hardcode_into_libs=yes
16021
16022 # Append ld.so.conf contents to the search path
16023 if test -f /etc/ld.so.conf; then
16170 version_type=linux
16171 need_lib_prefix=no
16172 need_version=no
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174 soname_spec='${libname}${release}${shared_ext}$major'
16175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16176 shlibpath_var=LD_LIBRARY_PATH
16177 shlibpath_overrides_runpath=no
16178 # This implies no fast_install, which is unacceptable.
16179 # Some rework will be needed to allow for fast_install
16180 # before this can be enabled.
16181 hardcode_into_libs=yes
16182
16183 # Append ld.so.conf contents to the search path
16184 if test -f /etc/ld.so.conf; then
16024 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16185 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;/^$/d' | tr '\n' ' '`
16025 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16026 fi
16027
16028 # We used to test for /lib/ld.so.1 and disable shared libraries on
16029 # powerpc, because MkLinux only supported shared libraries with the
16030 # GNU dynamic linker. Since this was broken with cross compilers,
16031 # most powerpc-linux boxes support dynamic linking these days and
16032 # people can always --disable-shared, the test was removed, and we
16033 # assume the GNU/Linux dynamic linker is in use.
16034 dynamic_linker='GNU/Linux ld.so'
16035 ;;
16036
16186 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16187 fi
16188
16189 # We used to test for /lib/ld.so.1 and disable shared libraries on
16190 # powerpc, because MkLinux only supported shared libraries with the
16191 # GNU dynamic linker. Since this was broken with cross compilers,
16192 # most powerpc-linux boxes support dynamic linking these days and
16193 # people can always --disable-shared, the test was removed, and we
16194 # assume the GNU/Linux dynamic linker is in use.
16195 dynamic_linker='GNU/Linux ld.so'
16196 ;;
16197
16037knetbsd*-gnu)
16038 version_type=linux
16039 need_lib_prefix=no
16040 need_version=no
16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16042 soname_spec='${libname}${release}${shared_ext}$major'
16043 shlibpath_var=LD_LIBRARY_PATH
16044 shlibpath_overrides_runpath=no
16045 hardcode_into_libs=yes
16046 dynamic_linker='GNU ld.so'
16047 ;;
16048
16049netbsd*)
16050 version_type=sunos
16051 need_lib_prefix=no
16052 need_version=no
16053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16056 dynamic_linker='NetBSD (a.out) ld.so'
16057 else
16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16059 soname_spec='${libname}${release}${shared_ext}$major'
16060 dynamic_linker='NetBSD ld.elf_so'
16061 fi
16062 shlibpath_var=LD_LIBRARY_PATH
16063 shlibpath_overrides_runpath=yes
16064 hardcode_into_libs=yes
16065 ;;
16066
16067newsos6)
16068 version_type=linux
16069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070 shlibpath_var=LD_LIBRARY_PATH
16071 shlibpath_overrides_runpath=yes
16072 ;;
16073
16074nto-qnx*)
16075 version_type=linux
16076 need_lib_prefix=no
16077 need_version=no
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16079 soname_spec='${libname}${release}${shared_ext}$major'
16080 shlibpath_var=LD_LIBRARY_PATH
16081 shlibpath_overrides_runpath=yes
16082 ;;
16083
16084openbsd*)
16085 version_type=sunos
16198netbsd*)
16199 version_type=sunos
16200 need_lib_prefix=no
16201 need_version=no
16202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16205 dynamic_linker='NetBSD (a.out) ld.so'
16206 else
16207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16208 soname_spec='${libname}${release}${shared_ext}$major'
16209 dynamic_linker='NetBSD ld.elf_so'
16210 fi
16211 shlibpath_var=LD_LIBRARY_PATH
16212 shlibpath_overrides_runpath=yes
16213 hardcode_into_libs=yes
16214 ;;
16215
16216newsos6)
16217 version_type=linux
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16219 shlibpath_var=LD_LIBRARY_PATH
16220 shlibpath_overrides_runpath=yes
16221 ;;
16222
16223nto-qnx*)
16224 version_type=linux
16225 need_lib_prefix=no
16226 need_version=no
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes
16231 ;;
16232
16233openbsd*)
16234 version_type=sunos
16235 sys_lib_dlsearch_path_spec="/usr/lib"
16086 need_lib_prefix=no
16087 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16088 case $host_os in
16089 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16090 *) need_version=no ;;
16091 esac
16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16094 shlibpath_var=LD_LIBRARY_PATH
16095 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16096 case $host_os in
16097 openbsd2.[89] | openbsd2.[89].*)
16098 shlibpath_overrides_runpath=no
16099 ;;
16100 *)
16101 shlibpath_overrides_runpath=yes
16102 ;;
16103 esac
16104 else
16105 shlibpath_overrides_runpath=yes
16106 fi
16107 ;;
16108
16109os2*)
16110 libname_spec='$name'
16111 shrext_cmds=".dll"
16112 need_lib_prefix=no
16113 library_names_spec='$libname${shared_ext} $libname.a'
16114 dynamic_linker='OS/2 ld.exe'
16115 shlibpath_var=LIBPATH
16116 ;;
16117
16118osf3* | osf4* | osf5*)
16119 version_type=osf
16120 need_lib_prefix=no
16121 need_version=no
16122 soname_spec='${libname}${release}${shared_ext}$major'
16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16124 shlibpath_var=LD_LIBRARY_PATH
16125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16126 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16127 ;;
16128
16236 need_lib_prefix=no
16237 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16238 case $host_os in
16239 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16240 *) need_version=no ;;
16241 esac
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16244 shlibpath_var=LD_LIBRARY_PATH
16245 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16246 case $host_os in
16247 openbsd2.[89] | openbsd2.[89].*)
16248 shlibpath_overrides_runpath=no
16249 ;;
16250 *)
16251 shlibpath_overrides_runpath=yes
16252 ;;
16253 esac
16254 else
16255 shlibpath_overrides_runpath=yes
16256 fi
16257 ;;
16258
16259os2*)
16260 libname_spec='$name'
16261 shrext_cmds=".dll"
16262 need_lib_prefix=no
16263 library_names_spec='$libname${shared_ext} $libname.a'
16264 dynamic_linker='OS/2 ld.exe'
16265 shlibpath_var=LIBPATH
16266 ;;
16267
16268osf3* | osf4* | osf5*)
16269 version_type=osf
16270 need_lib_prefix=no
16271 need_version=no
16272 soname_spec='${libname}${release}${shared_ext}$major'
16273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274 shlibpath_var=LD_LIBRARY_PATH
16275 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16276 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16277 ;;
16278
16129sco3.2v5*)
16130 version_type=osf
16131 soname_spec='${libname}${release}${shared_ext}$major'
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133 shlibpath_var=LD_LIBRARY_PATH
16279rdos*)
16280 dynamic_linker=no
16134 ;;
16135
16136solaris*)
16137 version_type=linux
16138 need_lib_prefix=no
16139 need_version=no
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141 soname_spec='${libname}${release}${shared_ext}$major'
16142 shlibpath_var=LD_LIBRARY_PATH
16143 shlibpath_overrides_runpath=yes
16144 hardcode_into_libs=yes
16145 # ldd complains unless libraries are executable
16146 postinstall_cmds='chmod +x $lib'
16147 ;;
16148
16149sunos4*)
16150 version_type=sunos
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16153 shlibpath_var=LD_LIBRARY_PATH
16154 shlibpath_overrides_runpath=yes
16155 if test "$with_gnu_ld" = yes; then
16156 need_lib_prefix=no
16157 fi
16158 need_version=yes
16159 ;;
16160
16281 ;;
16282
16283solaris*)
16284 version_type=linux
16285 need_lib_prefix=no
16286 need_version=no
16287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16288 soname_spec='${libname}${release}${shared_ext}$major'
16289 shlibpath_var=LD_LIBRARY_PATH
16290 shlibpath_overrides_runpath=yes
16291 hardcode_into_libs=yes
16292 # ldd complains unless libraries are executable
16293 postinstall_cmds='chmod +x $lib'
16294 ;;
16295
16296sunos4*)
16297 version_type=sunos
16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16299 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16300 shlibpath_var=LD_LIBRARY_PATH
16301 shlibpath_overrides_runpath=yes
16302 if test "$with_gnu_ld" = yes; then
16303 need_lib_prefix=no
16304 fi
16305 need_version=yes
16306 ;;
16307
16161sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16308sysv4 | sysv4.3*)
16162 version_type=linux
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164 soname_spec='${libname}${release}${shared_ext}$major'
16165 shlibpath_var=LD_LIBRARY_PATH
16166 case $host_vendor in
16167 sni)
16168 shlibpath_overrides_runpath=no
16169 need_lib_prefix=no
16170 export_dynamic_flag_spec='${wl}-Blargedynsym'
16171 runpath_var=LD_RUN_PATH
16172 ;;
16173 siemens)
16174 need_lib_prefix=no
16175 ;;
16176 motorola)
16177 need_lib_prefix=no
16178 need_version=no
16179 shlibpath_overrides_runpath=no
16180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16181 ;;
16182 esac
16183 ;;
16184
16185sysv4*MP*)
16186 if test -d /usr/nec ;then
16187 version_type=linux
16188 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16189 soname_spec='$libname${shared_ext}.$major'
16190 shlibpath_var=LD_LIBRARY_PATH
16191 fi
16192 ;;
16193
16309 version_type=linux
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16311 soname_spec='${libname}${release}${shared_ext}$major'
16312 shlibpath_var=LD_LIBRARY_PATH
16313 case $host_vendor in
16314 sni)
16315 shlibpath_overrides_runpath=no
16316 need_lib_prefix=no
16317 export_dynamic_flag_spec='${wl}-Blargedynsym'
16318 runpath_var=LD_RUN_PATH
16319 ;;
16320 siemens)
16321 need_lib_prefix=no
16322 ;;
16323 motorola)
16324 need_lib_prefix=no
16325 need_version=no
16326 shlibpath_overrides_runpath=no
16327 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16328 ;;
16329 esac
16330 ;;
16331
16332sysv4*MP*)
16333 if test -d /usr/nec ;then
16334 version_type=linux
16335 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16336 soname_spec='$libname${shared_ext}.$major'
16337 shlibpath_var=LD_LIBRARY_PATH
16338 fi
16339 ;;
16340
16341sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16342 version_type=freebsd-elf
16343 need_lib_prefix=no
16344 need_version=no
16345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16346 soname_spec='${libname}${release}${shared_ext}$major'
16347 shlibpath_var=LD_LIBRARY_PATH
16348 hardcode_into_libs=yes
16349 if test "$with_gnu_ld" = yes; then
16350 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16351 shlibpath_overrides_runpath=no
16352 else
16353 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16354 shlibpath_overrides_runpath=yes
16355 case $host_os in
16356 sco3.2v5*)
16357 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16358 ;;
16359 esac
16360 fi
16361 sys_lib_dlsearch_path_spec='/usr/lib'
16362 ;;
16363
16194uts4*)
16195 version_type=linux
16196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16197 soname_spec='${libname}${release}${shared_ext}$major'
16198 shlibpath_var=LD_LIBRARY_PATH
16199 ;;
16200
16201*)
16202 dynamic_linker=no
16203 ;;
16204esac
16205{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16206echo "${ECHO_T}$dynamic_linker" >&6; }
16207test "$dynamic_linker" = no && can_build_shared=no
16208
16364uts4*)
16365 version_type=linux
16366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16367 soname_spec='${libname}${release}${shared_ext}$major'
16368 shlibpath_var=LD_LIBRARY_PATH
16369 ;;
16370
16371*)
16372 dynamic_linker=no
16373 ;;
16374esac
16375{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16376echo "${ECHO_T}$dynamic_linker" >&6; }
16377test "$dynamic_linker" = no && can_build_shared=no
16378
16379if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16381else
16382 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16383fi
16384
16385sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16386if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16388else
16389 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16390fi
16391
16392sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16393
16394variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16395if test "$GCC" = yes; then
16396 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16397fi
16398
16209{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16210echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16211hardcode_action_F77=
16212if test -n "$hardcode_libdir_flag_spec_F77" || \
16213 test -n "$runpath_var_F77" || \
16214 test "X$hardcode_automatic_F77" = "Xyes" ; then
16215
16216 # We can hardcode non-existant directories.
16217 if test "$hardcode_direct_F77" != no &&
16218 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16219 # have to relink, otherwise we might link with an installed library
16220 # when we should be linking with a yet-to-be-installed one
16221 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16222 test "$hardcode_minus_L_F77" != no; then
16223 # Linking always hardcodes the temporary library directory.
16224 hardcode_action_F77=relink
16225 else
16226 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16227 hardcode_action_F77=immediate
16228 fi
16229else
16230 # We cannot hardcode anything, or else we can only hardcode existing
16231 # directories.
16232 hardcode_action_F77=unsupported
16233fi
16234{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16235echo "${ECHO_T}$hardcode_action_F77" >&6; }
16236
16237if test "$hardcode_action_F77" = relink; then
16238 # Fast installation is not supported
16239 enable_fast_install=no
16240elif test "$shlibpath_overrides_runpath" = yes ||
16241 test "$enable_shared" = no; then
16242 # Fast installation is not necessary
16243 enable_fast_install=needless
16244fi
16245
16399{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16400echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16401hardcode_action_F77=
16402if test -n "$hardcode_libdir_flag_spec_F77" || \
16403 test -n "$runpath_var_F77" || \
16404 test "X$hardcode_automatic_F77" = "Xyes" ; then
16405
16406 # We can hardcode non-existant directories.
16407 if test "$hardcode_direct_F77" != no &&
16408 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16409 # have to relink, otherwise we might link with an installed library
16410 # when we should be linking with a yet-to-be-installed one
16411 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16412 test "$hardcode_minus_L_F77" != no; then
16413 # Linking always hardcodes the temporary library directory.
16414 hardcode_action_F77=relink
16415 else
16416 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16417 hardcode_action_F77=immediate
16418 fi
16419else
16420 # We cannot hardcode anything, or else we can only hardcode existing
16421 # directories.
16422 hardcode_action_F77=unsupported
16423fi
16424{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16425echo "${ECHO_T}$hardcode_action_F77" >&6; }
16426
16427if test "$hardcode_action_F77" = relink; then
16428 # Fast installation is not supported
16429 enable_fast_install=no
16430elif test "$shlibpath_overrides_runpath" = yes ||
16431 test "$enable_shared" = no; then
16432 # Fast installation is not necessary
16433 enable_fast_install=needless
16434fi
16435
16246striplib=
16247old_striplib=
16248{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16249echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16250if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16251 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16252 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16253 { echo "$as_me:$LINENO: result: yes" >&5
16254echo "${ECHO_T}yes" >&6; }
16255else
16256# FIXME - insert some real tests, host_os isn't really good enough
16257 case $host_os in
16258 darwin*)
16259 if test -n "$STRIP" ; then
16260 striplib="$STRIP -x"
16261 { echo "$as_me:$LINENO: result: yes" >&5
16262echo "${ECHO_T}yes" >&6; }
16263 else
16264 { echo "$as_me:$LINENO: result: no" >&5
16265echo "${ECHO_T}no" >&6; }
16266fi
16267 ;;
16268 *)
16269 { echo "$as_me:$LINENO: result: no" >&5
16270echo "${ECHO_T}no" >&6; }
16271 ;;
16272 esac
16273fi
16274
16436
16275
16276
16277# The else clause should only fire when bootstrapping the
16278# libtool distribution, otherwise you forgot to ship ltmain.sh
16279# with your package, and you will get complaints that there are
16280# no rules to generate ltmain.sh.
16281if test -f "$ltmain"; then
16282 # See if we are running on zsh, and set the options which allow our commands through
16283 # without removal of \ escapes.
16284 if test -n "${ZSH_VERSION+set}" ; then
16285 setopt NO_GLOB_SUBST
16286 fi
16287 # Now quote all the things that may contain metacharacters while being
16288 # careful not to overquote the AC_SUBSTed values. We take copies of the
16289 # variables and quote the copies for generation of the libtool script.
16437# The else clause should only fire when bootstrapping the
16438# libtool distribution, otherwise you forgot to ship ltmain.sh
16439# with your package, and you will get complaints that there are
16440# no rules to generate ltmain.sh.
16441if test -f "$ltmain"; then
16442 # See if we are running on zsh, and set the options which allow our commands through
16443 # without removal of \ escapes.
16444 if test -n "${ZSH_VERSION+set}" ; then
16445 setopt NO_GLOB_SUBST
16446 fi
16447 # Now quote all the things that may contain metacharacters while being
16448 # careful not to overquote the AC_SUBSTed values. We take copies of the
16449 # variables and quote the copies for generation of the libtool script.
16290 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16450 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16291 SED SHELL STRIP \
16292 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16293 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16294 deplibs_check_method reload_flag reload_cmds need_locks \
16295 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16296 lt_cv_sys_global_symbol_to_c_name_address \
16297 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16298 old_postinstall_cmds old_postuninstall_cmds \
16299 compiler_F77 \
16300 CC_F77 \
16301 LD_F77 \
16302 lt_prog_compiler_wl_F77 \
16303 lt_prog_compiler_pic_F77 \
16304 lt_prog_compiler_static_F77 \
16305 lt_prog_compiler_no_builtin_flag_F77 \
16306 export_dynamic_flag_spec_F77 \
16307 thread_safe_flag_spec_F77 \
16308 whole_archive_flag_spec_F77 \
16309 enable_shared_with_static_runtimes_F77 \
16310 old_archive_cmds_F77 \
16311 old_archive_from_new_cmds_F77 \
16312 predep_objects_F77 \
16313 postdep_objects_F77 \
16314 predeps_F77 \
16315 postdeps_F77 \
16316 compiler_lib_search_path_F77 \
16451 SED SHELL STRIP \
16452 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16453 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16454 deplibs_check_method reload_flag reload_cmds need_locks \
16455 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16456 lt_cv_sys_global_symbol_to_c_name_address \
16457 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16458 old_postinstall_cmds old_postuninstall_cmds \
16459 compiler_F77 \
16460 CC_F77 \
16461 LD_F77 \
16462 lt_prog_compiler_wl_F77 \
16463 lt_prog_compiler_pic_F77 \
16464 lt_prog_compiler_static_F77 \
16465 lt_prog_compiler_no_builtin_flag_F77 \
16466 export_dynamic_flag_spec_F77 \
16467 thread_safe_flag_spec_F77 \
16468 whole_archive_flag_spec_F77 \
16469 enable_shared_with_static_runtimes_F77 \
16470 old_archive_cmds_F77 \
16471 old_archive_from_new_cmds_F77 \
16472 predep_objects_F77 \
16473 postdep_objects_F77 \
16474 predeps_F77 \
16475 postdeps_F77 \
16476 compiler_lib_search_path_F77 \
16477 compiler_lib_search_dirs_F77 \
16317 archive_cmds_F77 \
16318 archive_expsym_cmds_F77 \
16319 postinstall_cmds_F77 \
16320 postuninstall_cmds_F77 \
16321 old_archive_from_expsyms_cmds_F77 \
16322 allow_undefined_flag_F77 \
16323 no_undefined_flag_F77 \
16324 export_symbols_cmds_F77 \
16325 hardcode_libdir_flag_spec_F77 \
16326 hardcode_libdir_flag_spec_ld_F77 \
16327 hardcode_libdir_separator_F77 \
16328 hardcode_automatic_F77 \
16329 module_cmds_F77 \
16330 module_expsym_cmds_F77 \
16331 lt_cv_prog_compiler_c_o_F77 \
16478 archive_cmds_F77 \
16479 archive_expsym_cmds_F77 \
16480 postinstall_cmds_F77 \
16481 postuninstall_cmds_F77 \
16482 old_archive_from_expsyms_cmds_F77 \
16483 allow_undefined_flag_F77 \
16484 no_undefined_flag_F77 \
16485 export_symbols_cmds_F77 \
16486 hardcode_libdir_flag_spec_F77 \
16487 hardcode_libdir_flag_spec_ld_F77 \
16488 hardcode_libdir_separator_F77 \
16489 hardcode_automatic_F77 \
16490 module_cmds_F77 \
16491 module_expsym_cmds_F77 \
16492 lt_cv_prog_compiler_c_o_F77 \
16493 fix_srcfile_path_F77 \
16332 exclude_expsyms_F77 \
16333 include_expsyms_F77; do
16334
16335 case $var in
16336 old_archive_cmds_F77 | \
16337 old_archive_from_new_cmds_F77 | \
16338 archive_cmds_F77 | \
16339 archive_expsym_cmds_F77 | \
16340 module_cmds_F77 | \
16341 module_expsym_cmds_F77 | \
16342 old_archive_from_expsyms_cmds_F77 | \
16343 export_symbols_cmds_F77 | \
16344 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16345 postinstall_cmds | postuninstall_cmds | \
16346 old_postinstall_cmds | old_postuninstall_cmds | \
16347 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16348 # Double-quote double-evaled strings.
16349 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16350 ;;
16351 *)
16352 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16353 ;;
16354 esac
16355 done
16356
16357 case $lt_echo in
16358 *'\$0 --fallback-echo"')
16359 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16360 ;;
16361 esac
16362
16363cfgfile="$ofile"
16364
16365 cat <<__EOF__ >> "$cfgfile"
16366# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16367
16368# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16369
16370# Shell to use when invoking shell scripts.
16371SHELL=$lt_SHELL
16372
16373# Whether or not to build shared libraries.
16374build_libtool_libs=$enable_shared
16375
16376# Whether or not to build static libraries.
16377build_old_libs=$enable_static
16378
16379# Whether or not to add -lc for building shared libraries.
16380build_libtool_need_lc=$archive_cmds_need_lc_F77
16381
16382# Whether or not to disallow shared libs when runtime libs are static
16383allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16384
16385# Whether or not to optimize for fast installation.
16386fast_install=$enable_fast_install
16387
16388# The host system.
16389host_alias=$host_alias
16390host=$host
16391host_os=$host_os
16392
16393# The build system.
16394build_alias=$build_alias
16395build=$build
16396build_os=$build_os
16397
16398# An echo program that does not interpret backslashes.
16399echo=$lt_echo
16400
16401# The archiver.
16402AR=$lt_AR
16403AR_FLAGS=$lt_AR_FLAGS
16404
16405# A C compiler.
16406LTCC=$lt_LTCC
16407
16494 exclude_expsyms_F77 \
16495 include_expsyms_F77; do
16496
16497 case $var in
16498 old_archive_cmds_F77 | \
16499 old_archive_from_new_cmds_F77 | \
16500 archive_cmds_F77 | \
16501 archive_expsym_cmds_F77 | \
16502 module_cmds_F77 | \
16503 module_expsym_cmds_F77 | \
16504 old_archive_from_expsyms_cmds_F77 | \
16505 export_symbols_cmds_F77 | \
16506 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16507 postinstall_cmds | postuninstall_cmds | \
16508 old_postinstall_cmds | old_postuninstall_cmds | \
16509 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16510 # Double-quote double-evaled strings.
16511 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16512 ;;
16513 *)
16514 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16515 ;;
16516 esac
16517 done
16518
16519 case $lt_echo in
16520 *'\$0 --fallback-echo"')
16521 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16522 ;;
16523 esac
16524
16525cfgfile="$ofile"
16526
16527 cat <<__EOF__ >> "$cfgfile"
16528# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16529
16530# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16531
16532# Shell to use when invoking shell scripts.
16533SHELL=$lt_SHELL
16534
16535# Whether or not to build shared libraries.
16536build_libtool_libs=$enable_shared
16537
16538# Whether or not to build static libraries.
16539build_old_libs=$enable_static
16540
16541# Whether or not to add -lc for building shared libraries.
16542build_libtool_need_lc=$archive_cmds_need_lc_F77
16543
16544# Whether or not to disallow shared libs when runtime libs are static
16545allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16546
16547# Whether or not to optimize for fast installation.
16548fast_install=$enable_fast_install
16549
16550# The host system.
16551host_alias=$host_alias
16552host=$host
16553host_os=$host_os
16554
16555# The build system.
16556build_alias=$build_alias
16557build=$build
16558build_os=$build_os
16559
16560# An echo program that does not interpret backslashes.
16561echo=$lt_echo
16562
16563# The archiver.
16564AR=$lt_AR
16565AR_FLAGS=$lt_AR_FLAGS
16566
16567# A C compiler.
16568LTCC=$lt_LTCC
16569
16570# LTCC compiler flags.
16571LTCFLAGS=$lt_LTCFLAGS
16572
16408# A language-specific compiler.
16409CC=$lt_compiler_F77
16410
16411# Is the compiler the GNU C compiler?
16412with_gcc=$GCC_F77
16413
16414# An ERE matcher.
16415EGREP=$lt_EGREP
16416
16417# The linker used to build libraries.
16418LD=$lt_LD_F77
16419
16420# Whether we need hard or soft links.
16421LN_S=$lt_LN_S
16422
16423# A BSD-compatible nm program.
16424NM=$lt_NM
16425
16426# A symbol stripping program
16427STRIP=$lt_STRIP
16428
16429# Used to examine libraries when file_magic_cmd begins "file"
16430MAGIC_CMD=$MAGIC_CMD
16431
16432# Used on cygwin: DLL creation program.
16433DLLTOOL="$DLLTOOL"
16434
16435# Used on cygwin: object dumper.
16436OBJDUMP="$OBJDUMP"
16437
16438# Used on cygwin: assembler.
16439AS="$AS"
16440
16441# The name of the directory that contains temporary libtool files.
16442objdir=$objdir
16443
16444# How to create reloadable object files.
16445reload_flag=$lt_reload_flag
16446reload_cmds=$lt_reload_cmds
16447
16448# How to pass a linker flag through the compiler.
16449wl=$lt_lt_prog_compiler_wl_F77
16450
16451# Object file suffix (normally "o").
16452objext="$ac_objext"
16453
16454# Old archive suffix (normally "a").
16455libext="$libext"
16456
16457# Shared library suffix (normally ".so").
16458shrext_cmds='$shrext_cmds'
16459
16460# Executable file suffix (normally "").
16461exeext="$exeext"
16462
16463# Additional compiler flags for building library objects.
16464pic_flag=$lt_lt_prog_compiler_pic_F77
16465pic_mode=$pic_mode
16466
16467# What is the maximum length of a command?
16468max_cmd_len=$lt_cv_sys_max_cmd_len
16469
16470# Does compiler simultaneously support -c and -o options?
16471compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16472
16473# Must we lock files when doing compilation?
16474need_locks=$lt_need_locks
16475
16476# Do we need the lib prefix for modules?
16477need_lib_prefix=$need_lib_prefix
16478
16479# Do we need a version for libraries?
16480need_version=$need_version
16481
16482# Whether dlopen is supported.
16483dlopen_support=$enable_dlopen
16484
16485# Whether dlopen of programs is supported.
16486dlopen_self=$enable_dlopen_self
16487
16488# Whether dlopen of statically linked programs is supported.
16489dlopen_self_static=$enable_dlopen_self_static
16490
16491# Compiler flag to prevent dynamic linking.
16492link_static_flag=$lt_lt_prog_compiler_static_F77
16493
16494# Compiler flag to turn off builtin functions.
16495no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16496
16497# Compiler flag to allow reflexive dlopens.
16498export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16499
16500# Compiler flag to generate shared objects directly from archives.
16501whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16502
16503# Compiler flag to generate thread-safe objects.
16504thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16505
16506# Library versioning type.
16507version_type=$version_type
16508
16509# Format of library name prefix.
16510libname_spec=$lt_libname_spec
16511
16512# List of archive names. First name is the real one, the rest are links.
16513# The last name is the one that the linker finds with -lNAME.
16514library_names_spec=$lt_library_names_spec
16515
16516# The coded name of the library, if different from the real name.
16517soname_spec=$lt_soname_spec
16518
16519# Commands used to build and install an old-style archive.
16520RANLIB=$lt_RANLIB
16521old_archive_cmds=$lt_old_archive_cmds_F77
16522old_postinstall_cmds=$lt_old_postinstall_cmds
16523old_postuninstall_cmds=$lt_old_postuninstall_cmds
16524
16525# Create an old-style archive from a shared archive.
16526old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16527
16528# Create a temporary old-style archive to link instead of a shared archive.
16529old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16530
16531# Commands used to build and install a shared archive.
16532archive_cmds=$lt_archive_cmds_F77
16533archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16534postinstall_cmds=$lt_postinstall_cmds
16535postuninstall_cmds=$lt_postuninstall_cmds
16536
16537# Commands used to build a loadable module (assumed same as above if empty)
16538module_cmds=$lt_module_cmds_F77
16539module_expsym_cmds=$lt_module_expsym_cmds_F77
16540
16541# Commands to strip libraries.
16542old_striplib=$lt_old_striplib
16543striplib=$lt_striplib
16544
16545# Dependencies to place before the objects being linked to create a
16546# shared library.
16547predep_objects=$lt_predep_objects_F77
16548
16549# Dependencies to place after the objects being linked to create a
16550# shared library.
16551postdep_objects=$lt_postdep_objects_F77
16552
16553# Dependencies to place before the objects being linked to create a
16554# shared library.
16555predeps=$lt_predeps_F77
16556
16557# Dependencies to place after the objects being linked to create a
16558# shared library.
16559postdeps=$lt_postdeps_F77
16560
16573# A language-specific compiler.
16574CC=$lt_compiler_F77
16575
16576# Is the compiler the GNU C compiler?
16577with_gcc=$GCC_F77
16578
16579# An ERE matcher.
16580EGREP=$lt_EGREP
16581
16582# The linker used to build libraries.
16583LD=$lt_LD_F77
16584
16585# Whether we need hard or soft links.
16586LN_S=$lt_LN_S
16587
16588# A BSD-compatible nm program.
16589NM=$lt_NM
16590
16591# A symbol stripping program
16592STRIP=$lt_STRIP
16593
16594# Used to examine libraries when file_magic_cmd begins "file"
16595MAGIC_CMD=$MAGIC_CMD
16596
16597# Used on cygwin: DLL creation program.
16598DLLTOOL="$DLLTOOL"
16599
16600# Used on cygwin: object dumper.
16601OBJDUMP="$OBJDUMP"
16602
16603# Used on cygwin: assembler.
16604AS="$AS"
16605
16606# The name of the directory that contains temporary libtool files.
16607objdir=$objdir
16608
16609# How to create reloadable object files.
16610reload_flag=$lt_reload_flag
16611reload_cmds=$lt_reload_cmds
16612
16613# How to pass a linker flag through the compiler.
16614wl=$lt_lt_prog_compiler_wl_F77
16615
16616# Object file suffix (normally "o").
16617objext="$ac_objext"
16618
16619# Old archive suffix (normally "a").
16620libext="$libext"
16621
16622# Shared library suffix (normally ".so").
16623shrext_cmds='$shrext_cmds'
16624
16625# Executable file suffix (normally "").
16626exeext="$exeext"
16627
16628# Additional compiler flags for building library objects.
16629pic_flag=$lt_lt_prog_compiler_pic_F77
16630pic_mode=$pic_mode
16631
16632# What is the maximum length of a command?
16633max_cmd_len=$lt_cv_sys_max_cmd_len
16634
16635# Does compiler simultaneously support -c and -o options?
16636compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16637
16638# Must we lock files when doing compilation?
16639need_locks=$lt_need_locks
16640
16641# Do we need the lib prefix for modules?
16642need_lib_prefix=$need_lib_prefix
16643
16644# Do we need a version for libraries?
16645need_version=$need_version
16646
16647# Whether dlopen is supported.
16648dlopen_support=$enable_dlopen
16649
16650# Whether dlopen of programs is supported.
16651dlopen_self=$enable_dlopen_self
16652
16653# Whether dlopen of statically linked programs is supported.
16654dlopen_self_static=$enable_dlopen_self_static
16655
16656# Compiler flag to prevent dynamic linking.
16657link_static_flag=$lt_lt_prog_compiler_static_F77
16658
16659# Compiler flag to turn off builtin functions.
16660no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16661
16662# Compiler flag to allow reflexive dlopens.
16663export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16664
16665# Compiler flag to generate shared objects directly from archives.
16666whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16667
16668# Compiler flag to generate thread-safe objects.
16669thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16670
16671# Library versioning type.
16672version_type=$version_type
16673
16674# Format of library name prefix.
16675libname_spec=$lt_libname_spec
16676
16677# List of archive names. First name is the real one, the rest are links.
16678# The last name is the one that the linker finds with -lNAME.
16679library_names_spec=$lt_library_names_spec
16680
16681# The coded name of the library, if different from the real name.
16682soname_spec=$lt_soname_spec
16683
16684# Commands used to build and install an old-style archive.
16685RANLIB=$lt_RANLIB
16686old_archive_cmds=$lt_old_archive_cmds_F77
16687old_postinstall_cmds=$lt_old_postinstall_cmds
16688old_postuninstall_cmds=$lt_old_postuninstall_cmds
16689
16690# Create an old-style archive from a shared archive.
16691old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16692
16693# Create a temporary old-style archive to link instead of a shared archive.
16694old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16695
16696# Commands used to build and install a shared archive.
16697archive_cmds=$lt_archive_cmds_F77
16698archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16699postinstall_cmds=$lt_postinstall_cmds
16700postuninstall_cmds=$lt_postuninstall_cmds
16701
16702# Commands used to build a loadable module (assumed same as above if empty)
16703module_cmds=$lt_module_cmds_F77
16704module_expsym_cmds=$lt_module_expsym_cmds_F77
16705
16706# Commands to strip libraries.
16707old_striplib=$lt_old_striplib
16708striplib=$lt_striplib
16709
16710# Dependencies to place before the objects being linked to create a
16711# shared library.
16712predep_objects=$lt_predep_objects_F77
16713
16714# Dependencies to place after the objects being linked to create a
16715# shared library.
16716postdep_objects=$lt_postdep_objects_F77
16717
16718# Dependencies to place before the objects being linked to create a
16719# shared library.
16720predeps=$lt_predeps_F77
16721
16722# Dependencies to place after the objects being linked to create a
16723# shared library.
16724postdeps=$lt_postdeps_F77
16725
16726# The directories searched by this compiler when creating a shared
16727# library
16728compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16729
16561# The library search path used internally by the compiler when linking
16562# a shared library.
16563compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16564
16565# Method to check whether dependent libraries are shared objects.
16566deplibs_check_method=$lt_deplibs_check_method
16567
16568# Command to use when deplibs_check_method == file_magic.
16569file_magic_cmd=$lt_file_magic_cmd
16570
16571# Flag that allows shared libraries with undefined symbols to be built.
16572allow_undefined_flag=$lt_allow_undefined_flag_F77
16573
16574# Flag that forces no undefined symbols.
16575no_undefined_flag=$lt_no_undefined_flag_F77
16576
16577# Commands used to finish a libtool library installation in a directory.
16578finish_cmds=$lt_finish_cmds
16579
16580# Same as above, but a single script fragment to be evaled but not shown.
16581finish_eval=$lt_finish_eval
16582
16583# Take the output of nm and produce a listing of raw symbols and C names.
16584global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16585
16586# Transform the output of nm in a proper C declaration
16587global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16588
16589# Transform the output of nm in a C name address pair
16590global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16591
16592# This is the shared library runtime path variable.
16593runpath_var=$runpath_var
16594
16595# This is the shared library path variable.
16596shlibpath_var=$shlibpath_var
16597
16598# Is shlibpath searched before the hard-coded library search path?
16599shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16600
16601# How to hardcode a shared library path into an executable.
16602hardcode_action=$hardcode_action_F77
16603
16604# Whether we should hardcode library paths into libraries.
16605hardcode_into_libs=$hardcode_into_libs
16606
16607# Flag to hardcode \$libdir into a binary during linking.
16608# This must work even if \$libdir does not exist.
16609hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16610
16611# If ld is used when linking, flag to hardcode \$libdir into
16612# a binary during linking. This must work even if \$libdir does
16613# not exist.
16614hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16615
16616# Whether we need a single -rpath flag with a separated argument.
16617hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16618
16619# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16620# resulting binary.
16621hardcode_direct=$hardcode_direct_F77
16622
16623# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16624# resulting binary.
16625hardcode_minus_L=$hardcode_minus_L_F77
16626
16627# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16628# the resulting binary.
16629hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16630
16631# Set to yes if building a shared library automatically hardcodes DIR into the library
16632# and all subsequent libraries and executables linked against it.
16633hardcode_automatic=$hardcode_automatic_F77
16634
16635# Variables whose values should be saved in libtool wrapper scripts and
16636# restored at relink time.
16637variables_saved_for_relink="$variables_saved_for_relink"
16638
16639# Whether libtool must link a program against all its dependency libraries.
16640link_all_deplibs=$link_all_deplibs_F77
16641
16642# Compile-time system search path for libraries
16643sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16644
16645# Run-time system search path for libraries
16646sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16647
16648# Fix the shell variable \$srcfile for the compiler.
16730# The library search path used internally by the compiler when linking
16731# a shared library.
16732compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16733
16734# Method to check whether dependent libraries are shared objects.
16735deplibs_check_method=$lt_deplibs_check_method
16736
16737# Command to use when deplibs_check_method == file_magic.
16738file_magic_cmd=$lt_file_magic_cmd
16739
16740# Flag that allows shared libraries with undefined symbols to be built.
16741allow_undefined_flag=$lt_allow_undefined_flag_F77
16742
16743# Flag that forces no undefined symbols.
16744no_undefined_flag=$lt_no_undefined_flag_F77
16745
16746# Commands used to finish a libtool library installation in a directory.
16747finish_cmds=$lt_finish_cmds
16748
16749# Same as above, but a single script fragment to be evaled but not shown.
16750finish_eval=$lt_finish_eval
16751
16752# Take the output of nm and produce a listing of raw symbols and C names.
16753global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16754
16755# Transform the output of nm in a proper C declaration
16756global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16757
16758# Transform the output of nm in a C name address pair
16759global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16760
16761# This is the shared library runtime path variable.
16762runpath_var=$runpath_var
16763
16764# This is the shared library path variable.
16765shlibpath_var=$shlibpath_var
16766
16767# Is shlibpath searched before the hard-coded library search path?
16768shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16769
16770# How to hardcode a shared library path into an executable.
16771hardcode_action=$hardcode_action_F77
16772
16773# Whether we should hardcode library paths into libraries.
16774hardcode_into_libs=$hardcode_into_libs
16775
16776# Flag to hardcode \$libdir into a binary during linking.
16777# This must work even if \$libdir does not exist.
16778hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16779
16780# If ld is used when linking, flag to hardcode \$libdir into
16781# a binary during linking. This must work even if \$libdir does
16782# not exist.
16783hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16784
16785# Whether we need a single -rpath flag with a separated argument.
16786hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16787
16788# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16789# resulting binary.
16790hardcode_direct=$hardcode_direct_F77
16791
16792# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16793# resulting binary.
16794hardcode_minus_L=$hardcode_minus_L_F77
16795
16796# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16797# the resulting binary.
16798hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16799
16800# Set to yes if building a shared library automatically hardcodes DIR into the library
16801# and all subsequent libraries and executables linked against it.
16802hardcode_automatic=$hardcode_automatic_F77
16803
16804# Variables whose values should be saved in libtool wrapper scripts and
16805# restored at relink time.
16806variables_saved_for_relink="$variables_saved_for_relink"
16807
16808# Whether libtool must link a program against all its dependency libraries.
16809link_all_deplibs=$link_all_deplibs_F77
16810
16811# Compile-time system search path for libraries
16812sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16813
16814# Run-time system search path for libraries
16815sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16816
16817# Fix the shell variable \$srcfile for the compiler.
16649fix_srcfile_path="$fix_srcfile_path_F77"
16818fix_srcfile_path=$lt_fix_srcfile_path
16650
16651# Set to yes if exported symbols are required.
16652always_export_symbols=$always_export_symbols_F77
16653
16654# The commands to list exported symbols.
16655export_symbols_cmds=$lt_export_symbols_cmds_F77
16656
16657# The commands to extract the exported symbol list from a shared archive.
16658extract_expsyms_cmds=$lt_extract_expsyms_cmds
16659
16660# Symbols that should not be listed in the preloaded symbols.
16661exclude_expsyms=$lt_exclude_expsyms_F77
16662
16663# Symbols that must always be exported.
16664include_expsyms=$lt_include_expsyms_F77
16665
16666# ### END LIBTOOL TAG CONFIG: $tagname
16667
16668__EOF__
16669
16670
16671else
16672 # If there is no Makefile yet, we rely on a make rule to execute
16673 # `config.status --recheck' to rerun these tests and create the
16674 # libtool script then.
16675 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16676 if test -f "$ltmain_in"; then
16677 test -f Makefile && make "$ltmain"
16678 fi
16679fi
16680
16681
16682ac_ext=c
16683ac_cpp='$CPP $CPPFLAGS'
16684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16686ac_compiler_gnu=$ac_cv_c_compiler_gnu
16687
16688CC="$lt_save_CC"
16689
16690 else
16691 tagname=""
16692 fi
16693 ;;
16694
16695 GCJ)
16696 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16697
16698
16699# Source file extension for Java test sources.
16700ac_ext=java
16701
16702# Object file extension for compiled Java test sources.
16703objext=o
16704objext_GCJ=$objext
16705
16706# Code to be used in simple compile tests
16819
16820# Set to yes if exported symbols are required.
16821always_export_symbols=$always_export_symbols_F77
16822
16823# The commands to list exported symbols.
16824export_symbols_cmds=$lt_export_symbols_cmds_F77
16825
16826# The commands to extract the exported symbol list from a shared archive.
16827extract_expsyms_cmds=$lt_extract_expsyms_cmds
16828
16829# Symbols that should not be listed in the preloaded symbols.
16830exclude_expsyms=$lt_exclude_expsyms_F77
16831
16832# Symbols that must always be exported.
16833include_expsyms=$lt_include_expsyms_F77
16834
16835# ### END LIBTOOL TAG CONFIG: $tagname
16836
16837__EOF__
16838
16839
16840else
16841 # If there is no Makefile yet, we rely on a make rule to execute
16842 # `config.status --recheck' to rerun these tests and create the
16843 # libtool script then.
16844 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16845 if test -f "$ltmain_in"; then
16846 test -f Makefile && make "$ltmain"
16847 fi
16848fi
16849
16850
16851ac_ext=c
16852ac_cpp='$CPP $CPPFLAGS'
16853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16855ac_compiler_gnu=$ac_cv_c_compiler_gnu
16856
16857CC="$lt_save_CC"
16858
16859 else
16860 tagname=""
16861 fi
16862 ;;
16863
16864 GCJ)
16865 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16866
16867
16868# Source file extension for Java test sources.
16869ac_ext=java
16870
16871# Object file extension for compiled Java test sources.
16872objext=o
16873objext_GCJ=$objext
16874
16875# Code to be used in simple compile tests
16707lt_simple_compile_test_code="class foo {}\n"
16876lt_simple_compile_test_code="class foo {}"
16708
16709# Code to be used in simple link tests
16877
16878# Code to be used in simple link tests
16710lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16879lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16711
16712# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16713
16714# If no C compiler was specified, use CC.
16715LTCC=${LTCC-"$CC"}
16716
16880
16881# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16882
16883# If no C compiler was specified, use CC.
16884LTCC=${LTCC-"$CC"}
16885
16886# If no C compiler flags were specified, use CFLAGS.
16887LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16888
16717# Allow CC to be a program name with arguments.
16718compiler=$CC
16719
16720
16721# save warnings/boilerplate of simple test code
16722ac_outfile=conftest.$ac_objext
16889# Allow CC to be a program name with arguments.
16890compiler=$CC
16891
16892
16893# save warnings/boilerplate of simple test code
16894ac_outfile=conftest.$ac_objext
16723printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16724eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16895echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16896eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16725_lt_compiler_boilerplate=`cat conftest.err`
16726$rm conftest*
16727
16728ac_outfile=conftest.$ac_objext
16897_lt_compiler_boilerplate=`cat conftest.err`
16898$rm conftest*
16899
16900ac_outfile=conftest.$ac_objext
16729printf "$lt_simple_link_test_code" >conftest.$ac_ext
16730eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16901echo "$lt_simple_link_test_code" >conftest.$ac_ext
16902eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16731_lt_linker_boilerplate=`cat conftest.err`
16903_lt_linker_boilerplate=`cat conftest.err`
16732$rm conftest*
16904$rm -r conftest*
16733
16734
16735# Allow CC to be a program name with arguments.
16736lt_save_CC="$CC"
16737CC=${GCJ-"gcj"}
16738compiler=$CC
16739compiler_GCJ=$CC
16740for cc_temp in $compiler""; do
16741 case $cc_temp in
16742 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16743 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16744 \-*) ;;
16745 *) break;;
16746 esac
16747done
16748cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16749
16750
16751# GCJ did not exist at the time GCC didn't implicitly link libc in.
16752archive_cmds_need_lc_GCJ=no
16753
16754old_archive_cmds_GCJ=$old_archive_cmds
16755
16756
16757lt_prog_compiler_no_builtin_flag_GCJ=
16758
16759if test "$GCC" = yes; then
16760 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16761
16762
16763{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16764echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16765if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16767else
16768 lt_cv_prog_compiler_rtti_exceptions=no
16769 ac_outfile=conftest.$ac_objext
16905
16906
16907# Allow CC to be a program name with arguments.
16908lt_save_CC="$CC"
16909CC=${GCJ-"gcj"}
16910compiler=$CC
16911compiler_GCJ=$CC
16912for cc_temp in $compiler""; do
16913 case $cc_temp in
16914 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16915 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16916 \-*) ;;
16917 *) break;;
16918 esac
16919done
16920cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16921
16922
16923# GCJ did not exist at the time GCC didn't implicitly link libc in.
16924archive_cmds_need_lc_GCJ=no
16925
16926old_archive_cmds_GCJ=$old_archive_cmds
16927
16928
16929lt_prog_compiler_no_builtin_flag_GCJ=
16930
16931if test "$GCC" = yes; then
16932 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16933
16934
16935{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16936echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16937if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16938 echo $ECHO_N "(cached) $ECHO_C" >&6
16939else
16940 lt_cv_prog_compiler_rtti_exceptions=no
16941 ac_outfile=conftest.$ac_objext
16770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16771 lt_compiler_flag="-fno-rtti -fno-exceptions"
16772 # Insert the option either (1) after the last *FLAGS variable, or
16773 # (2) before a word containing "conftest.", or (3) at the end.
16774 # Note that $ac_compile itself does not contain backslashes and begins
16775 # with a dollar sign (not a hyphen), so the echo should work correctly.
16776 # The option is referenced via a variable to avoid confusing sed.
16777 lt_compile=`echo "$ac_compile" | $SED \
16943 lt_compiler_flag="-fno-rtti -fno-exceptions"
16944 # Insert the option either (1) after the last *FLAGS variable, or
16945 # (2) before a word containing "conftest.", or (3) at the end.
16946 # Note that $ac_compile itself does not contain backslashes and begins
16947 # with a dollar sign (not a hyphen), so the echo should work correctly.
16948 # The option is referenced via a variable to avoid confusing sed.
16949 lt_compile=`echo "$ac_compile" | $SED \
16778 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16780 -e 's:$: $lt_compiler_flag:'`
16951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16952 -e 's:$: $lt_compiler_flag:'`
16781 (eval echo "\"\$as_me:16781: $lt_compile\"" >&5)
16953 (eval echo "\"\$as_me:16953: $lt_compile\"" >&5)
16782 (eval "$lt_compile" 2>conftest.err)
16783 ac_status=$?
16784 cat conftest.err >&5
16954 (eval "$lt_compile" 2>conftest.err)
16955 ac_status=$?
16956 cat conftest.err >&5
16785 echo "$as_me:16785: \$? = $ac_status" >&5
16957 echo "$as_me:16957: \$? = $ac_status" >&5
16786 if (exit $ac_status) && test -s "$ac_outfile"; then
16787 # The compiler can only warn and ignore the option if not recognized
16788 # So say no if there are warnings other than the usual output.
16958 if (exit $ac_status) && test -s "$ac_outfile"; then
16959 # The compiler can only warn and ignore the option if not recognized
16960 # So say no if there are warnings other than the usual output.
16789 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16790 $SED '/^$/d' conftest.err >conftest.er2
16791 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16961 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16792 lt_cv_prog_compiler_rtti_exceptions=yes
16793 fi
16794 fi
16795 $rm conftest*
16796
16797fi
16798{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16799echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16800
16801if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16802 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16803else
16804 :
16805fi
16806
16807fi
16808
16809lt_prog_compiler_wl_GCJ=
16810lt_prog_compiler_pic_GCJ=
16811lt_prog_compiler_static_GCJ=
16812
16813{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16814echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16815
16816 if test "$GCC" = yes; then
16817 lt_prog_compiler_wl_GCJ='-Wl,'
16818 lt_prog_compiler_static_GCJ='-static'
16819
16820 case $host_os in
16821 aix*)
16822 # All AIX code is PIC.
16823 if test "$host_cpu" = ia64; then
16824 # AIX 5 now supports IA64 processor
16825 lt_prog_compiler_static_GCJ='-Bstatic'
16826 fi
16827 ;;
16828
16829 amigaos*)
16830 # FIXME: we need at least 68020 code to build shared libraries, but
16831 # adding the `-m68020' flag to GCC prevents building anything better,
16832 # like `-m68040'.
16833 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16834 ;;
16835
16964 lt_cv_prog_compiler_rtti_exceptions=yes
16965 fi
16966 fi
16967 $rm conftest*
16968
16969fi
16970{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16971echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16972
16973if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16974 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16975else
16976 :
16977fi
16978
16979fi
16980
16981lt_prog_compiler_wl_GCJ=
16982lt_prog_compiler_pic_GCJ=
16983lt_prog_compiler_static_GCJ=
16984
16985{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16986echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16987
16988 if test "$GCC" = yes; then
16989 lt_prog_compiler_wl_GCJ='-Wl,'
16990 lt_prog_compiler_static_GCJ='-static'
16991
16992 case $host_os in
16993 aix*)
16994 # All AIX code is PIC.
16995 if test "$host_cpu" = ia64; then
16996 # AIX 5 now supports IA64 processor
16997 lt_prog_compiler_static_GCJ='-Bstatic'
16998 fi
16999 ;;
17000
17001 amigaos*)
17002 # FIXME: we need at least 68020 code to build shared libraries, but
17003 # adding the `-m68020' flag to GCC prevents building anything better,
17004 # like `-m68040'.
17005 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17006 ;;
17007
16836 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17008 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16837 # PIC is the default for these OSes.
16838 ;;
16839
17009 # PIC is the default for these OSes.
17010 ;;
17011
16840 mingw* | pw32* | os2*)
17012 mingw* | cygwin* | pw32* | os2*)
16841 # This hack is so that the source file can tell whether it is being
16842 # built for inclusion in a dll (and should export symbols for example).
17013 # This hack is so that the source file can tell whether it is being
17014 # built for inclusion in a dll (and should export symbols for example).
16843 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17015 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17016 # (--disable-auto-import) libraries
17017
16844 ;;
16845
16846 darwin* | rhapsody*)
16847 # PIC is the default on this platform
16848 # Common symbols not allowed in MH_DYLIB files
16849 lt_prog_compiler_pic_GCJ='-fno-common'
16850 ;;
16851
17018 ;;
17019
17020 darwin* | rhapsody*)
17021 # PIC is the default on this platform
17022 # Common symbols not allowed in MH_DYLIB files
17023 lt_prog_compiler_pic_GCJ='-fno-common'
17024 ;;
17025
17026 interix[3-9]*)
17027 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17028 # Instead, we relocate shared libraries at runtime.
17029 ;;
17030
16852 msdosdjgpp*)
16853 # Just because we use GCC doesn't mean we suddenly get shared libraries
16854 # on systems that don't support them.
16855 lt_prog_compiler_can_build_shared_GCJ=no
16856 enable_shared=no
16857 ;;
16858
16859 sysv4*MP*)
16860 if test -d /usr/nec; then
16861 lt_prog_compiler_pic_GCJ=-Kconform_pic
16862 fi
16863 ;;
16864
16865 hpux*)
16866 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16867 # not for PA HP-UX.
17031 msdosdjgpp*)
17032 # Just because we use GCC doesn't mean we suddenly get shared libraries
17033 # on systems that don't support them.
17034 lt_prog_compiler_can_build_shared_GCJ=no
17035 enable_shared=no
17036 ;;
17037
17038 sysv4*MP*)
17039 if test -d /usr/nec; then
17040 lt_prog_compiler_pic_GCJ=-Kconform_pic
17041 fi
17042 ;;
17043
17044 hpux*)
17045 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17046 # not for PA HP-UX.
16868 case "$host_cpu" in
17047 case $host_cpu in
16869 hppa*64*|ia64*)
16870 # +Z the default
16871 ;;
16872 *)
16873 lt_prog_compiler_pic_GCJ='-fPIC'
16874 ;;
16875 esac
16876 ;;
16877
16878 *)
16879 lt_prog_compiler_pic_GCJ='-fPIC'
16880 ;;
16881 esac
16882 else
16883 # PORTME Check for flag to pass linker flags through the system compiler.
16884 case $host_os in
16885 aix*)
16886 lt_prog_compiler_wl_GCJ='-Wl,'
16887 if test "$host_cpu" = ia64; then
16888 # AIX 5 now supports IA64 processor
16889 lt_prog_compiler_static_GCJ='-Bstatic'
16890 else
16891 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16892 fi
16893 ;;
16894 darwin*)
16895 # PIC is the default on this platform
16896 # Common symbols not allowed in MH_DYLIB files
16897 case $cc_basename in
16898 xlc*)
16899 lt_prog_compiler_pic_GCJ='-qnocommon'
16900 lt_prog_compiler_wl_GCJ='-Wl,'
16901 ;;
16902 esac
16903 ;;
16904
17048 hppa*64*|ia64*)
17049 # +Z the default
17050 ;;
17051 *)
17052 lt_prog_compiler_pic_GCJ='-fPIC'
17053 ;;
17054 esac
17055 ;;
17056
17057 *)
17058 lt_prog_compiler_pic_GCJ='-fPIC'
17059 ;;
17060 esac
17061 else
17062 # PORTME Check for flag to pass linker flags through the system compiler.
17063 case $host_os in
17064 aix*)
17065 lt_prog_compiler_wl_GCJ='-Wl,'
17066 if test "$host_cpu" = ia64; then
17067 # AIX 5 now supports IA64 processor
17068 lt_prog_compiler_static_GCJ='-Bstatic'
17069 else
17070 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17071 fi
17072 ;;
17073 darwin*)
17074 # PIC is the default on this platform
17075 # Common symbols not allowed in MH_DYLIB files
17076 case $cc_basename in
17077 xlc*)
17078 lt_prog_compiler_pic_GCJ='-qnocommon'
17079 lt_prog_compiler_wl_GCJ='-Wl,'
17080 ;;
17081 esac
17082 ;;
17083
16905 mingw* | pw32* | os2*)
17084 mingw* | cygwin* | pw32* | os2*)
16906 # This hack is so that the source file can tell whether it is being
16907 # built for inclusion in a dll (and should export symbols for example).
17085 # This hack is so that the source file can tell whether it is being
17086 # built for inclusion in a dll (and should export symbols for example).
16908 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17087
16909 ;;
16910
16911 hpux9* | hpux10* | hpux11*)
16912 lt_prog_compiler_wl_GCJ='-Wl,'
16913 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16914 # not for PA HP-UX.
17088 ;;
17089
17090 hpux9* | hpux10* | hpux11*)
17091 lt_prog_compiler_wl_GCJ='-Wl,'
17092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17093 # not for PA HP-UX.
16915 case "$host_cpu" in
17094 case $host_cpu in
16916 hppa*64*|ia64*)
16917 # +Z the default
16918 ;;
16919 *)
16920 lt_prog_compiler_pic_GCJ='+Z'
16921 ;;
16922 esac
16923 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16924 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16925 ;;
16926
16927 irix5* | irix6* | nonstopux*)
16928 lt_prog_compiler_wl_GCJ='-Wl,'
16929 # PIC (with -KPIC) is the default.
16930 lt_prog_compiler_static_GCJ='-non_shared'
16931 ;;
16932
16933 newsos6)
16934 lt_prog_compiler_pic_GCJ='-KPIC'
16935 lt_prog_compiler_static_GCJ='-Bstatic'
16936 ;;
16937
17095 hppa*64*|ia64*)
17096 # +Z the default
17097 ;;
17098 *)
17099 lt_prog_compiler_pic_GCJ='+Z'
17100 ;;
17101 esac
17102 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17103 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17104 ;;
17105
17106 irix5* | irix6* | nonstopux*)
17107 lt_prog_compiler_wl_GCJ='-Wl,'
17108 # PIC (with -KPIC) is the default.
17109 lt_prog_compiler_static_GCJ='-non_shared'
17110 ;;
17111
17112 newsos6)
17113 lt_prog_compiler_pic_GCJ='-KPIC'
17114 lt_prog_compiler_static_GCJ='-Bstatic'
17115 ;;
17116
16938 linux*)
17117 linux* | k*bsd*-gnu)
16939 case $cc_basename in
16940 icc* | ecc*)
16941 lt_prog_compiler_wl_GCJ='-Wl,'
16942 lt_prog_compiler_pic_GCJ='-KPIC'
16943 lt_prog_compiler_static_GCJ='-static'
16944 ;;
17118 case $cc_basename in
17119 icc* | ecc*)
17120 lt_prog_compiler_wl_GCJ='-Wl,'
17121 lt_prog_compiler_pic_GCJ='-KPIC'
17122 lt_prog_compiler_static_GCJ='-static'
17123 ;;
16945 pgcc* | pgf77* | pgf90*)
17124 pgcc* | pgf77* | pgf90* | pgf95*)
16946 # Portland Group compilers (*not* the Pentium gcc compiler,
16947 # which looks to be a dead project)
16948 lt_prog_compiler_wl_GCJ='-Wl,'
16949 lt_prog_compiler_pic_GCJ='-fpic'
17125 # Portland Group compilers (*not* the Pentium gcc compiler,
17126 # which looks to be a dead project)
17127 lt_prog_compiler_wl_GCJ='-Wl,'
17128 lt_prog_compiler_pic_GCJ='-fpic'
16950 lt_prog_compiler_static_GCJ='-static'
17129 lt_prog_compiler_static_GCJ='-Bstatic'
16951 ;;
16952 ccc*)
16953 lt_prog_compiler_wl_GCJ='-Wl,'
16954 # All Alpha code is PIC.
16955 lt_prog_compiler_static_GCJ='-non_shared'
16956 ;;
17130 ;;
17131 ccc*)
17132 lt_prog_compiler_wl_GCJ='-Wl,'
17133 # All Alpha code is PIC.
17134 lt_prog_compiler_static_GCJ='-non_shared'
17135 ;;
17136 *)
17137 case `$CC -V 2>&1 | sed 5q` in
17138 *Sun\ C*)
17139 # Sun C 5.9
17140 lt_prog_compiler_pic_GCJ='-KPIC'
17141 lt_prog_compiler_static_GCJ='-Bstatic'
17142 lt_prog_compiler_wl_GCJ='-Wl,'
17143 ;;
17144 *Sun\ F*)
17145 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17146 lt_prog_compiler_pic_GCJ='-KPIC'
17147 lt_prog_compiler_static_GCJ='-Bstatic'
17148 lt_prog_compiler_wl_GCJ=''
17149 ;;
17150 esac
17151 ;;
16957 esac
16958 ;;
16959
16960 osf3* | osf4* | osf5*)
16961 lt_prog_compiler_wl_GCJ='-Wl,'
16962 # All OSF/1 code is PIC.
16963 lt_prog_compiler_static_GCJ='-non_shared'
16964 ;;
16965
17152 esac
17153 ;;
17154
17155 osf3* | osf4* | osf5*)
17156 lt_prog_compiler_wl_GCJ='-Wl,'
17157 # All OSF/1 code is PIC.
17158 lt_prog_compiler_static_GCJ='-non_shared'
17159 ;;
17160
16966 sco3.2v5*)
16967 lt_prog_compiler_pic_GCJ='-Kpic'
16968 lt_prog_compiler_static_GCJ='-dn'
17161 rdos*)
17162 lt_prog_compiler_static_GCJ='-non_shared'
16969 ;;
16970
16971 solaris*)
16972 lt_prog_compiler_pic_GCJ='-KPIC'
16973 lt_prog_compiler_static_GCJ='-Bstatic'
16974 case $cc_basename in
16975 f77* | f90* | f95*)
16976 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16977 *)
16978 lt_prog_compiler_wl_GCJ='-Wl,';;
16979 esac
16980 ;;
16981
16982 sunos4*)
16983 lt_prog_compiler_wl_GCJ='-Qoption ld '
16984 lt_prog_compiler_pic_GCJ='-PIC'
16985 lt_prog_compiler_static_GCJ='-Bstatic'
16986 ;;
16987
17163 ;;
17164
17165 solaris*)
17166 lt_prog_compiler_pic_GCJ='-KPIC'
17167 lt_prog_compiler_static_GCJ='-Bstatic'
17168 case $cc_basename in
17169 f77* | f90* | f95*)
17170 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17171 *)
17172 lt_prog_compiler_wl_GCJ='-Wl,';;
17173 esac
17174 ;;
17175
17176 sunos4*)
17177 lt_prog_compiler_wl_GCJ='-Qoption ld '
17178 lt_prog_compiler_pic_GCJ='-PIC'
17179 lt_prog_compiler_static_GCJ='-Bstatic'
17180 ;;
17181
16988 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17182 sysv4 | sysv4.2uw2* | sysv4.3*)
16989 lt_prog_compiler_wl_GCJ='-Wl,'
16990 lt_prog_compiler_pic_GCJ='-KPIC'
16991 lt_prog_compiler_static_GCJ='-Bstatic'
16992 ;;
16993
16994 sysv4*MP*)
16995 if test -d /usr/nec ;then
16996 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16997 lt_prog_compiler_static_GCJ='-Bstatic'
16998 fi
16999 ;;
17000
17183 lt_prog_compiler_wl_GCJ='-Wl,'
17184 lt_prog_compiler_pic_GCJ='-KPIC'
17185 lt_prog_compiler_static_GCJ='-Bstatic'
17186 ;;
17187
17188 sysv4*MP*)
17189 if test -d /usr/nec ;then
17190 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17191 lt_prog_compiler_static_GCJ='-Bstatic'
17192 fi
17193 ;;
17194
17195 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17196 lt_prog_compiler_wl_GCJ='-Wl,'
17197 lt_prog_compiler_pic_GCJ='-KPIC'
17198 lt_prog_compiler_static_GCJ='-Bstatic'
17199 ;;
17200
17001 unicos*)
17002 lt_prog_compiler_wl_GCJ='-Wl,'
17003 lt_prog_compiler_can_build_shared_GCJ=no
17004 ;;
17005
17006 uts4*)
17007 lt_prog_compiler_pic_GCJ='-pic'
17008 lt_prog_compiler_static_GCJ='-Bstatic'
17009 ;;
17010
17011 *)
17012 lt_prog_compiler_can_build_shared_GCJ=no
17013 ;;
17014 esac
17015 fi
17016
17017{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17018echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17019
17020#
17021# Check to make sure the PIC flag actually works.
17022#
17023if test -n "$lt_prog_compiler_pic_GCJ"; then
17024
17025{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17026echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17201 unicos*)
17202 lt_prog_compiler_wl_GCJ='-Wl,'
17203 lt_prog_compiler_can_build_shared_GCJ=no
17204 ;;
17205
17206 uts4*)
17207 lt_prog_compiler_pic_GCJ='-pic'
17208 lt_prog_compiler_static_GCJ='-Bstatic'
17209 ;;
17210
17211 *)
17212 lt_prog_compiler_can_build_shared_GCJ=no
17213 ;;
17214 esac
17215 fi
17216
17217{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17218echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17219
17220#
17221# Check to make sure the PIC flag actually works.
17222#
17223if test -n "$lt_prog_compiler_pic_GCJ"; then
17224
17225{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17226echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17027if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17227if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17028 echo $ECHO_N "(cached) $ECHO_C" >&6
17029else
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229else
17030 lt_prog_compiler_pic_works_GCJ=no
17230 lt_cv_prog_compiler_pic_works_GCJ=no
17031 ac_outfile=conftest.$ac_objext
17231 ac_outfile=conftest.$ac_objext
17032 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17232 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17033 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17034 # Insert the option either (1) after the last *FLAGS variable, or
17035 # (2) before a word containing "conftest.", or (3) at the end.
17036 # Note that $ac_compile itself does not contain backslashes and begins
17037 # with a dollar sign (not a hyphen), so the echo should work correctly.
17038 # The option is referenced via a variable to avoid confusing sed.
17039 lt_compile=`echo "$ac_compile" | $SED \
17233 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17234 # Insert the option either (1) after the last *FLAGS variable, or
17235 # (2) before a word containing "conftest.", or (3) at the end.
17236 # Note that $ac_compile itself does not contain backslashes and begins
17237 # with a dollar sign (not a hyphen), so the echo should work correctly.
17238 # The option is referenced via a variable to avoid confusing sed.
17239 lt_compile=`echo "$ac_compile" | $SED \
17040 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17240 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17042 -e 's:$: $lt_compiler_flag:'`
17241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17242 -e 's:$: $lt_compiler_flag:'`
17043 (eval echo "\"\$as_me:17043: $lt_compile\"" >&5)
17243 (eval echo "\"\$as_me:17243: $lt_compile\"" >&5)
17044 (eval "$lt_compile" 2>conftest.err)
17045 ac_status=$?
17046 cat conftest.err >&5
17244 (eval "$lt_compile" 2>conftest.err)
17245 ac_status=$?
17246 cat conftest.err >&5
17047 echo "$as_me:17047: \$? = $ac_status" >&5
17247 echo "$as_me:17247: \$? = $ac_status" >&5
17048 if (exit $ac_status) && test -s "$ac_outfile"; then
17049 # The compiler can only warn and ignore the option if not recognized
17050 # So say no if there are warnings other than the usual output.
17248 if (exit $ac_status) && test -s "$ac_outfile"; then
17249 # The compiler can only warn and ignore the option if not recognized
17250 # So say no if there are warnings other than the usual output.
17051 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17052 $SED '/^$/d' conftest.err >conftest.er2
17053 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17054 lt_prog_compiler_pic_works_GCJ=yes
17251 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17253 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17254 lt_cv_prog_compiler_pic_works_GCJ=yes
17055 fi
17056 fi
17057 $rm conftest*
17058
17059fi
17255 fi
17256 fi
17257 $rm conftest*
17258
17259fi
17060{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17061echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17260{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17261echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17062
17262
17063if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17263if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17064 case $lt_prog_compiler_pic_GCJ in
17065 "" | " "*) ;;
17066 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17067 esac
17068else
17069 lt_prog_compiler_pic_GCJ=
17070 lt_prog_compiler_can_build_shared_GCJ=no
17071fi
17072
17073fi
17264 case $lt_prog_compiler_pic_GCJ in
17265 "" | " "*) ;;
17266 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17267 esac
17268else
17269 lt_prog_compiler_pic_GCJ=
17270 lt_prog_compiler_can_build_shared_GCJ=no
17271fi
17272
17273fi
17074case "$host_os" in
17274case $host_os in
17075 # For platforms which do not support PIC, -DPIC is meaningless:
17076 *djgpp*)
17077 lt_prog_compiler_pic_GCJ=
17078 ;;
17079 *)
17080 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17081 ;;
17082esac
17083
17275 # For platforms which do not support PIC, -DPIC is meaningless:
17276 *djgpp*)
17277 lt_prog_compiler_pic_GCJ=
17278 ;;
17279 *)
17280 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17281 ;;
17282esac
17283
17284#
17285# Check to make sure the static flag actually works.
17286#
17287wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17288{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17289echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17290if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17291 echo $ECHO_N "(cached) $ECHO_C" >&6
17292else
17293 lt_cv_prog_compiler_static_works_GCJ=no
17294 save_LDFLAGS="$LDFLAGS"
17295 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17296 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17298 # The linker can only warn and ignore the option if not recognized
17299 # So say no if there are warnings
17300 if test -s conftest.err; then
17301 # Append any errors to the config.log.
17302 cat conftest.err 1>&5
17303 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17305 if diff conftest.exp conftest.er2 >/dev/null; then
17306 lt_cv_prog_compiler_static_works_GCJ=yes
17307 fi
17308 else
17309 lt_cv_prog_compiler_static_works_GCJ=yes
17310 fi
17311 fi
17312 $rm -r conftest*
17313 LDFLAGS="$save_LDFLAGS"
17314
17315fi
17316{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17317echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17318
17319if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17320 :
17321else
17322 lt_prog_compiler_static_GCJ=
17323fi
17324
17325
17084{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17085echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17086if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17088else
17089 lt_cv_prog_compiler_c_o_GCJ=no
17090 $rm -r conftest 2>/dev/null
17091 mkdir conftest
17092 cd conftest
17093 mkdir out
17326{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17327echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17328if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17330else
17331 lt_cv_prog_compiler_c_o_GCJ=no
17332 $rm -r conftest 2>/dev/null
17333 mkdir conftest
17334 cd conftest
17335 mkdir out
17094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17095
17096 lt_compiler_flag="-o out/conftest2.$ac_objext"
17097 # Insert the option either (1) after the last *FLAGS variable, or
17098 # (2) before a word containing "conftest.", or (3) at the end.
17099 # Note that $ac_compile itself does not contain backslashes and begins
17100 # with a dollar sign (not a hyphen), so the echo should work correctly.
17101 lt_compile=`echo "$ac_compile" | $SED \
17337
17338 lt_compiler_flag="-o out/conftest2.$ac_objext"
17339 # Insert the option either (1) after the last *FLAGS variable, or
17340 # (2) before a word containing "conftest.", or (3) at the end.
17341 # Note that $ac_compile itself does not contain backslashes and begins
17342 # with a dollar sign (not a hyphen), so the echo should work correctly.
17343 lt_compile=`echo "$ac_compile" | $SED \
17102 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17104 -e 's:$: $lt_compiler_flag:'`
17345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17346 -e 's:$: $lt_compiler_flag:'`
17105 (eval echo "\"\$as_me:17105: $lt_compile\"" >&5)
17347 (eval echo "\"\$as_me:17347: $lt_compile\"" >&5)
17106 (eval "$lt_compile" 2>out/conftest.err)
17107 ac_status=$?
17108 cat out/conftest.err >&5
17348 (eval "$lt_compile" 2>out/conftest.err)
17349 ac_status=$?
17350 cat out/conftest.err >&5
17109 echo "$as_me:17109: \$? = $ac_status" >&5
17351 echo "$as_me:17351: \$? = $ac_status" >&5
17110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17111 then
17112 # The compiler can only warn and ignore the option if not recognized
17113 # So say no if there are warnings
17352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17353 then
17354 # The compiler can only warn and ignore the option if not recognized
17355 # So say no if there are warnings
17114 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17115 $SED '/^$/d' out/conftest.err >out/conftest.er2
17116 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17356 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17117 lt_cv_prog_compiler_c_o_GCJ=yes
17118 fi
17119 fi
17359 lt_cv_prog_compiler_c_o_GCJ=yes
17360 fi
17361 fi
17120 chmod u+w .
17362 chmod u+w . 2>&5
17121 $rm conftest*
17122 # SGI C++ compiler will create directory out/ii_files/ for
17123 # template instantiation
17124 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17125 $rm out/* && rmdir out
17126 cd ..
17127 rmdir conftest
17128 $rm conftest*
17129
17130fi
17131{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17132echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17133
17134
17135hard_links="nottested"
17136if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17137 # do not overwrite the value of need_locks provided by the user
17138 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17139echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17140 hard_links=yes
17141 $rm conftest*
17142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17143 touch conftest.a
17144 ln conftest.a conftest.b 2>&5 || hard_links=no
17145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17146 { echo "$as_me:$LINENO: result: $hard_links" >&5
17147echo "${ECHO_T}$hard_links" >&6; }
17148 if test "$hard_links" = no; then
17149 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17150echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17151 need_locks=warn
17152 fi
17153else
17154 need_locks=no
17155fi
17156
17157{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17158echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17159
17160 runpath_var=
17161 allow_undefined_flag_GCJ=
17162 enable_shared_with_static_runtimes_GCJ=no
17163 archive_cmds_GCJ=
17164 archive_expsym_cmds_GCJ=
17165 old_archive_From_new_cmds_GCJ=
17166 old_archive_from_expsyms_cmds_GCJ=
17167 export_dynamic_flag_spec_GCJ=
17168 whole_archive_flag_spec_GCJ=
17169 thread_safe_flag_spec_GCJ=
17170 hardcode_libdir_flag_spec_GCJ=
17171 hardcode_libdir_flag_spec_ld_GCJ=
17172 hardcode_libdir_separator_GCJ=
17173 hardcode_direct_GCJ=no
17174 hardcode_minus_L_GCJ=no
17175 hardcode_shlibpath_var_GCJ=unsupported
17176 link_all_deplibs_GCJ=unknown
17177 hardcode_automatic_GCJ=no
17178 module_cmds_GCJ=
17179 module_expsym_cmds_GCJ=
17180 always_export_symbols_GCJ=no
17181 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17182 # include_expsyms should be a list of space-separated symbols to be *always*
17183 # included in the symbol list
17184 include_expsyms_GCJ=
17185 # exclude_expsyms can be an extended regexp of symbols to exclude
17186 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17187 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17188 # as well as any symbol that contains `d'.
17363 $rm conftest*
17364 # SGI C++ compiler will create directory out/ii_files/ for
17365 # template instantiation
17366 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17367 $rm out/* && rmdir out
17368 cd ..
17369 rmdir conftest
17370 $rm conftest*
17371
17372fi
17373{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17374echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17375
17376
17377hard_links="nottested"
17378if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17379 # do not overwrite the value of need_locks provided by the user
17380 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17381echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17382 hard_links=yes
17383 $rm conftest*
17384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17385 touch conftest.a
17386 ln conftest.a conftest.b 2>&5 || hard_links=no
17387 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17388 { echo "$as_me:$LINENO: result: $hard_links" >&5
17389echo "${ECHO_T}$hard_links" >&6; }
17390 if test "$hard_links" = no; then
17391 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17392echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17393 need_locks=warn
17394 fi
17395else
17396 need_locks=no
17397fi
17398
17399{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17400echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17401
17402 runpath_var=
17403 allow_undefined_flag_GCJ=
17404 enable_shared_with_static_runtimes_GCJ=no
17405 archive_cmds_GCJ=
17406 archive_expsym_cmds_GCJ=
17407 old_archive_From_new_cmds_GCJ=
17408 old_archive_from_expsyms_cmds_GCJ=
17409 export_dynamic_flag_spec_GCJ=
17410 whole_archive_flag_spec_GCJ=
17411 thread_safe_flag_spec_GCJ=
17412 hardcode_libdir_flag_spec_GCJ=
17413 hardcode_libdir_flag_spec_ld_GCJ=
17414 hardcode_libdir_separator_GCJ=
17415 hardcode_direct_GCJ=no
17416 hardcode_minus_L_GCJ=no
17417 hardcode_shlibpath_var_GCJ=unsupported
17418 link_all_deplibs_GCJ=unknown
17419 hardcode_automatic_GCJ=no
17420 module_cmds_GCJ=
17421 module_expsym_cmds_GCJ=
17422 always_export_symbols_GCJ=no
17423 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17424 # include_expsyms should be a list of space-separated symbols to be *always*
17425 # included in the symbol list
17426 include_expsyms_GCJ=
17427 # exclude_expsyms can be an extended regexp of symbols to exclude
17428 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17429 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17430 # as well as any symbol that contains `d'.
17189 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17431 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17190 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17191 # platforms (ab)use it in PIC code, but their linkers get confused if
17192 # the symbol is explicitly referenced. Since portable code cannot
17193 # rely on this symbol name, it's probably fine to never include it in
17194 # preloaded symbol tables.
17432 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17433 # platforms (ab)use it in PIC code, but their linkers get confused if
17434 # the symbol is explicitly referenced. Since portable code cannot
17435 # rely on this symbol name, it's probably fine to never include it in
17436 # preloaded symbol tables.
17437 # Exclude shared library initialization/finalization symbols.
17195 extract_expsyms_cmds=
17196 # Just being paranoid about ensuring that cc_basename is set.
17197 for cc_temp in $compiler""; do
17198 case $cc_temp in
17199 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17200 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17201 \-*) ;;
17202 *) break;;
17203 esac
17204done
17205cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17206
17207 case $host_os in
17208 cygwin* | mingw* | pw32*)
17209 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17210 # When not using gcc, we currently assume that we are using
17211 # Microsoft Visual C++.
17212 if test "$GCC" != yes; then
17213 with_gnu_ld=no
17214 fi
17215 ;;
17438 extract_expsyms_cmds=
17439 # Just being paranoid about ensuring that cc_basename is set.
17440 for cc_temp in $compiler""; do
17441 case $cc_temp in
17442 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17443 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17444 \-*) ;;
17445 *) break;;
17446 esac
17447done
17448cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17449
17450 case $host_os in
17451 cygwin* | mingw* | pw32*)
17452 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17453 # When not using gcc, we currently assume that we are using
17454 # Microsoft Visual C++.
17455 if test "$GCC" != yes; then
17456 with_gnu_ld=no
17457 fi
17458 ;;
17459 interix*)
17460 # we just hope/assume this is gcc and not c89 (= MSVC++)
17461 with_gnu_ld=yes
17462 ;;
17216 openbsd*)
17217 with_gnu_ld=no
17218 ;;
17219 esac
17220
17221 ld_shlibs_GCJ=yes
17222 if test "$with_gnu_ld" = yes; then
17223 # If archive_cmds runs LD, not CC, wlarc should be empty
17224 wlarc='${wl}'
17225
17226 # Set some defaults for GNU ld with shared library support. These
17227 # are reset later if shared libraries are not supported. Putting them
17228 # here allows them to be overridden if necessary.
17229 runpath_var=LD_RUN_PATH
17230 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17231 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17232 # ancient GNU ld didn't support --whole-archive et. al.
17233 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17234 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17235 else
17236 whole_archive_flag_spec_GCJ=
17237 fi
17238 supports_anon_versioning=no
17239 case `$LD -v 2>/dev/null` in
17240 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17241 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17242 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17243 *\ 2.11.*) ;; # other 2.11 versions
17244 *) supports_anon_versioning=yes ;;
17245 esac
17246
17247 # See if GNU ld supports shared libraries.
17248 case $host_os in
17463 openbsd*)
17464 with_gnu_ld=no
17465 ;;
17466 esac
17467
17468 ld_shlibs_GCJ=yes
17469 if test "$with_gnu_ld" = yes; then
17470 # If archive_cmds runs LD, not CC, wlarc should be empty
17471 wlarc='${wl}'
17472
17473 # Set some defaults for GNU ld with shared library support. These
17474 # are reset later if shared libraries are not supported. Putting them
17475 # here allows them to be overridden if necessary.
17476 runpath_var=LD_RUN_PATH
17477 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17478 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17479 # ancient GNU ld didn't support --whole-archive et. al.
17480 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17481 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17482 else
17483 whole_archive_flag_spec_GCJ=
17484 fi
17485 supports_anon_versioning=no
17486 case `$LD -v 2>/dev/null` in
17487 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17488 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17489 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17490 *\ 2.11.*) ;; # other 2.11 versions
17491 *) supports_anon_versioning=yes ;;
17492 esac
17493
17494 # See if GNU ld supports shared libraries.
17495 case $host_os in
17249 aix3* | aix4* | aix5*)
17496 aix[3-9]*)
17250 # On AIX/PPC, the GNU linker is very broken
17251 if test "$host_cpu" != ia64; then
17252 ld_shlibs_GCJ=no
17253 cat <<EOF 1>&2
17254
17255*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17256*** to be unable to reliably create shared libraries on AIX.
17257*** Therefore, libtool is disabling shared libraries support. If you
17258*** really care for shared libraries, you may want to modify your PATH
17259*** so that a non-GNU linker is found, and then restart.
17260
17261EOF
17262 fi
17263 ;;
17264
17265 amigaos*)
17266 archive_cmds_GCJ='$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)'
17267 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17268 hardcode_minus_L_GCJ=yes
17269
17270 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17271 # that the semantics of dynamic libraries on AmigaOS, at least up
17272 # to version 4, is to share data among multiple programs linked
17273 # with the same dynamic library. Since this doesn't match the
17274 # behavior of shared libraries on other platforms, we can't use
17275 # them.
17276 ld_shlibs_GCJ=no
17277 ;;
17278
17279 beos*)
17280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17281 allow_undefined_flag_GCJ=unsupported
17282 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17283 # support --undefined. This deserves some investigation. FIXME
17284 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17285 else
17286 ld_shlibs_GCJ=no
17287 fi
17288 ;;
17289
17290 cygwin* | mingw* | pw32*)
17291 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17292 # as there is no search path for DLLs.
17293 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17294 allow_undefined_flag_GCJ=unsupported
17295 always_export_symbols_GCJ=no
17296 enable_shared_with_static_runtimes_GCJ=yes
17497 # On AIX/PPC, the GNU linker is very broken
17498 if test "$host_cpu" != ia64; then
17499 ld_shlibs_GCJ=no
17500 cat <<EOF 1>&2
17501
17502*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17503*** to be unable to reliably create shared libraries on AIX.
17504*** Therefore, libtool is disabling shared libraries support. If you
17505*** really care for shared libraries, you may want to modify your PATH
17506*** so that a non-GNU linker is found, and then restart.
17507
17508EOF
17509 fi
17510 ;;
17511
17512 amigaos*)
17513 archive_cmds_GCJ='$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)'
17514 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17515 hardcode_minus_L_GCJ=yes
17516
17517 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17518 # that the semantics of dynamic libraries on AmigaOS, at least up
17519 # to version 4, is to share data among multiple programs linked
17520 # with the same dynamic library. Since this doesn't match the
17521 # behavior of shared libraries on other platforms, we can't use
17522 # them.
17523 ld_shlibs_GCJ=no
17524 ;;
17525
17526 beos*)
17527 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17528 allow_undefined_flag_GCJ=unsupported
17529 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17530 # support --undefined. This deserves some investigation. FIXME
17531 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17532 else
17533 ld_shlibs_GCJ=no
17534 fi
17535 ;;
17536
17537 cygwin* | mingw* | pw32*)
17538 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17539 # as there is no search path for DLLs.
17540 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17541 allow_undefined_flag_GCJ=unsupported
17542 always_export_symbols_GCJ=no
17543 enable_shared_with_static_runtimes_GCJ=yes
17297 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17544 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17298
17299 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17545
17546 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17300 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17547 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17301 # If the export-symbols file already is a .def file (1st line
17302 # is EXPORTS), use it as is; otherwise, prepend...
17303 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17304 cp $export_symbols $output_objdir/$soname.def;
17305 else
17306 echo EXPORTS > $output_objdir/$soname.def;
17307 cat $export_symbols >> $output_objdir/$soname.def;
17308 fi~
17548 # If the export-symbols file already is a .def file (1st line
17549 # is EXPORTS), use it as is; otherwise, prepend...
17550 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17551 cp $export_symbols $output_objdir/$soname.def;
17552 else
17553 echo EXPORTS > $output_objdir/$soname.def;
17554 cat $export_symbols >> $output_objdir/$soname.def;
17555 fi~
17309 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17556 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17310 else
17311 ld_shlibs_GCJ=no
17312 fi
17313 ;;
17314
17557 else
17558 ld_shlibs_GCJ=no
17559 fi
17560 ;;
17561
17315 linux*)
17562 interix[3-9]*)
17563 hardcode_direct_GCJ=no
17564 hardcode_shlibpath_var_GCJ=no
17565 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17566 export_dynamic_flag_spec_GCJ='${wl}-E'
17567 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17568 # Instead, shared libraries are loaded at an image base (0x10000000 by
17569 # default) and relocated if they conflict, which is a slow very memory
17570 # consuming and fragmenting process. To avoid this, we pick a random,
17571 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17572 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17573 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17574 archive_expsym_cmds_GCJ='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'
17575 ;;
17576
17577 gnu* | linux* | k*bsd*-gnu)
17316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17317 tmp_addflag=
17318 case $cc_basename,$host_cpu in
17319 pgcc*) # Portland Group C compiler
17578 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17579 tmp_addflag=
17580 case $cc_basename,$host_cpu in
17581 pgcc*) # Portland Group C compiler
17320 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17582 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17321 tmp_addflag=' $pic_flag'
17322 ;;
17583 tmp_addflag=' $pic_flag'
17584 ;;
17323 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
17324 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17585 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17586 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17325 tmp_addflag=' $pic_flag -Mnomain' ;;
17326 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17327 tmp_addflag=' -i_dynamic' ;;
17328 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17329 tmp_addflag=' -i_dynamic -nofor_main' ;;
17330 ifc* | ifort*) # Intel Fortran compiler
17331 tmp_addflag=' -nofor_main' ;;
17332 esac
17587 tmp_addflag=' $pic_flag -Mnomain' ;;
17588 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17589 tmp_addflag=' -i_dynamic' ;;
17590 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17591 tmp_addflag=' -i_dynamic -nofor_main' ;;
17592 ifc* | ifort*) # Intel Fortran compiler
17593 tmp_addflag=' -nofor_main' ;;
17594 esac
17333 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17595 case `$CC -V 2>&1 | sed 5q` in
17596 *Sun\ C*) # Sun C 5.9
17597 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17598 tmp_sharedflag='-G' ;;
17599 *Sun\ F*) # Sun Fortran 8.3
17600 tmp_sharedflag='-G' ;;
17601 *)
17602 tmp_sharedflag='-shared' ;;
17603 esac
17604 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17334
17335 if test $supports_anon_versioning = yes; then
17336 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17337 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17338 $echo "local: *; };" >> $output_objdir/$libname.ver~
17605
17606 if test $supports_anon_versioning = yes; then
17607 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17609 $echo "local: *; };" >> $output_objdir/$libname.ver~
17339 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17610 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17340 fi
17341 else
17342 ld_shlibs_GCJ=no
17343 fi
17344 ;;
17345
17346 netbsd*)
17347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17348 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17349 wlarc=
17350 else
17351 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17352 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17353 fi
17354 ;;
17355
17611 fi
17612 else
17613 ld_shlibs_GCJ=no
17614 fi
17615 ;;
17616
17617 netbsd*)
17618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17619 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17620 wlarc=
17621 else
17622 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17623 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17624 fi
17625 ;;
17626
17356 solaris* | sysv5*)
17627 solaris*)
17357 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17358 ld_shlibs_GCJ=no
17359 cat <<EOF 1>&2
17360
17361*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17362*** create shared libraries on Solaris systems. Therefore, libtool
17363*** is disabling shared libraries support. We urge you to upgrade GNU
17364*** binutils to release 2.9.1 or newer. Another option is to modify
17365*** your PATH or compiler configuration so that the native linker is
17366*** used, and then restart.
17367
17368EOF
17369 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17370 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17371 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17372 else
17373 ld_shlibs_GCJ=no
17374 fi
17375 ;;
17376
17628 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17629 ld_shlibs_GCJ=no
17630 cat <<EOF 1>&2
17631
17632*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17633*** create shared libraries on Solaris systems. Therefore, libtool
17634*** is disabling shared libraries support. We urge you to upgrade GNU
17635*** binutils to release 2.9.1 or newer. Another option is to modify
17636*** your PATH or compiler configuration so that the native linker is
17637*** used, and then restart.
17638
17639EOF
17640 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17641 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17642 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17643 else
17644 ld_shlibs_GCJ=no
17645 fi
17646 ;;
17647
17648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17649 case `$LD -v 2>&1` in
17650 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17651 ld_shlibs_GCJ=no
17652 cat <<_LT_EOF 1>&2
17653
17654*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17655*** reliably create shared libraries on SCO systems. Therefore, libtool
17656*** is disabling shared libraries support. We urge you to upgrade GNU
17657*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17658*** your PATH or compiler configuration so that the native linker is
17659*** used, and then restart.
17660
17661_LT_EOF
17662 ;;
17663 *)
17664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17665 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17666 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17667 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17668 else
17669 ld_shlibs_GCJ=no
17670 fi
17671 ;;
17672 esac
17673 ;;
17674
17377 sunos4*)
17378 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17379 wlarc=
17380 hardcode_direct_GCJ=yes
17381 hardcode_shlibpath_var_GCJ=no
17382 ;;
17383
17384 *)
17385 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17386 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17387 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17388 else
17389 ld_shlibs_GCJ=no
17390 fi
17391 ;;
17392 esac
17393
17394 if test "$ld_shlibs_GCJ" = no; then
17395 runpath_var=
17396 hardcode_libdir_flag_spec_GCJ=
17397 export_dynamic_flag_spec_GCJ=
17398 whole_archive_flag_spec_GCJ=
17399 fi
17400 else
17401 # PORTME fill in a description of your system's linker (not GNU ld)
17402 case $host_os in
17403 aix3*)
17404 allow_undefined_flag_GCJ=unsupported
17405 always_export_symbols_GCJ=yes
17406 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17407 # Note: this linker hardcodes the directories in LIBPATH if there
17408 # are no directories specified by -L.
17409 hardcode_minus_L_GCJ=yes
17675 sunos4*)
17676 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17677 wlarc=
17678 hardcode_direct_GCJ=yes
17679 hardcode_shlibpath_var_GCJ=no
17680 ;;
17681
17682 *)
17683 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17684 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17685 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17686 else
17687 ld_shlibs_GCJ=no
17688 fi
17689 ;;
17690 esac
17691
17692 if test "$ld_shlibs_GCJ" = no; then
17693 runpath_var=
17694 hardcode_libdir_flag_spec_GCJ=
17695 export_dynamic_flag_spec_GCJ=
17696 whole_archive_flag_spec_GCJ=
17697 fi
17698 else
17699 # PORTME fill in a description of your system's linker (not GNU ld)
17700 case $host_os in
17701 aix3*)
17702 allow_undefined_flag_GCJ=unsupported
17703 always_export_symbols_GCJ=yes
17704 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17705 # Note: this linker hardcodes the directories in LIBPATH if there
17706 # are no directories specified by -L.
17707 hardcode_minus_L_GCJ=yes
17410 if test "$GCC" = yes && test -z "$link_static_flag"; then
17708 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17411 # Neither direct hardcoding nor static linking is supported with a
17412 # broken collect2.
17413 hardcode_direct_GCJ=unsupported
17414 fi
17415 ;;
17416
17709 # Neither direct hardcoding nor static linking is supported with a
17710 # broken collect2.
17711 hardcode_direct_GCJ=unsupported
17712 fi
17713 ;;
17714
17417 aix4* | aix5*)
17715 aix[4-9]*)
17418 if test "$host_cpu" = ia64; then
17419 # On IA64, the linker does run time linking by default, so we don't
17420 # have to do anything special.
17421 aix_use_runtimelinking=no
17422 exp_sym_flag='-Bexport'
17423 no_entry_flag=""
17424 else
17425 # If we're using GNU nm, then we don't want the "-C" option.
17426 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17427 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17428 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17429 else
17430 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17431 fi
17432 aix_use_runtimelinking=no
17433
17434 # Test if we are trying to use run time linking or normal
17435 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17436 # need to do runtime linking.
17716 if test "$host_cpu" = ia64; then
17717 # On IA64, the linker does run time linking by default, so we don't
17718 # have to do anything special.
17719 aix_use_runtimelinking=no
17720 exp_sym_flag='-Bexport'
17721 no_entry_flag=""
17722 else
17723 # If we're using GNU nm, then we don't want the "-C" option.
17724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17725 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17726 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17727 else
17728 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17729 fi
17730 aix_use_runtimelinking=no
17731
17732 # Test if we are trying to use run time linking or normal
17733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17734 # need to do runtime linking.
17437 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17735 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17438 for ld_flag in $LDFLAGS; do
17439 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17440 aix_use_runtimelinking=yes
17441 break
17442 fi
17443 done
17736 for ld_flag in $LDFLAGS; do
17737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17738 aix_use_runtimelinking=yes
17739 break
17740 fi
17741 done
17742 ;;
17444 esac
17445
17446 exp_sym_flag='-bexport'
17447 no_entry_flag='-bnoentry'
17448 fi
17449
17450 # When large executables or shared objects are built, AIX ld can
17451 # have problems creating the table of contents. If linking a library
17452 # or program results in "error TOC overflow" add -mminimal-toc to
17453 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17454 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17455
17456 archive_cmds_GCJ=''
17457 hardcode_direct_GCJ=yes
17458 hardcode_libdir_separator_GCJ=':'
17459 link_all_deplibs_GCJ=yes
17460
17461 if test "$GCC" = yes; then
17462 case $host_os in aix4.[012]|aix4.[012].*)
17463 # We only want to do this on AIX 4.2 and lower, the check
17464 # below for broken collect2 doesn't work under 4.3+
17465 collect2name=`${CC} -print-prog-name=collect2`
17466 if test -f "$collect2name" && \
17467 strings "$collect2name" | grep resolve_lib_name >/dev/null
17468 then
17469 # We have reworked collect2
17743 esac
17744
17745 exp_sym_flag='-bexport'
17746 no_entry_flag='-bnoentry'
17747 fi
17748
17749 # When large executables or shared objects are built, AIX ld can
17750 # have problems creating the table of contents. If linking a library
17751 # or program results in "error TOC overflow" add -mminimal-toc to
17752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17754
17755 archive_cmds_GCJ=''
17756 hardcode_direct_GCJ=yes
17757 hardcode_libdir_separator_GCJ=':'
17758 link_all_deplibs_GCJ=yes
17759
17760 if test "$GCC" = yes; then
17761 case $host_os in aix4.[012]|aix4.[012].*)
17762 # We only want to do this on AIX 4.2 and lower, the check
17763 # below for broken collect2 doesn't work under 4.3+
17764 collect2name=`${CC} -print-prog-name=collect2`
17765 if test -f "$collect2name" && \
17766 strings "$collect2name" | grep resolve_lib_name >/dev/null
17767 then
17768 # We have reworked collect2
17470 hardcode_direct_GCJ=yes
17769 :
17471 else
17472 # We have old collect2
17473 hardcode_direct_GCJ=unsupported
17474 # It fails to find uninstalled libraries when the uninstalled
17475 # path is not listed in the libpath. Setting hardcode_minus_L
17476 # to unsupported forces relinking
17477 hardcode_minus_L_GCJ=yes
17478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17479 hardcode_libdir_separator_GCJ=
17480 fi
17770 else
17771 # We have old collect2
17772 hardcode_direct_GCJ=unsupported
17773 # It fails to find uninstalled libraries when the uninstalled
17774 # path is not listed in the libpath. Setting hardcode_minus_L
17775 # to unsupported forces relinking
17776 hardcode_minus_L_GCJ=yes
17777 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17778 hardcode_libdir_separator_GCJ=
17779 fi
17780 ;;
17481 esac
17482 shared_flag='-shared'
17483 if test "$aix_use_runtimelinking" = yes; then
17484 shared_flag="$shared_flag "'${wl}-G'
17485 fi
17486 else
17487 # not using gcc
17488 if test "$host_cpu" = ia64; then
17489 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17490 # chokes on -Wl,-G. The following line is correct:
17491 shared_flag='-G'
17492 else
17781 esac
17782 shared_flag='-shared'
17783 if test "$aix_use_runtimelinking" = yes; then
17784 shared_flag="$shared_flag "'${wl}-G'
17785 fi
17786 else
17787 # not using gcc
17788 if test "$host_cpu" = ia64; then
17789 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17790 # chokes on -Wl,-G. The following line is correct:
17791 shared_flag='-G'
17792 else
17493 if test "$aix_use_runtimelinking" = yes; then
17793 if test "$aix_use_runtimelinking" = yes; then
17494 shared_flag='${wl}-G'
17495 else
17496 shared_flag='${wl}-bM:SRE'
17794 shared_flag='${wl}-G'
17795 else
17796 shared_flag='${wl}-bM:SRE'
17497 fi
17797 fi
17498 fi
17499 fi
17500
17501 # It seems that -bexpall does not export symbols beginning with
17502 # underscore (_), so it is better to generate a list of symbols to export.
17503 always_export_symbols_GCJ=yes
17504 if test "$aix_use_runtimelinking" = yes; then
17505 # Warning - without using the other runtime loading flags (-brtl),
17506 # -berok will link without error, but may produce a broken library.
17507 allow_undefined_flag_GCJ='-berok'
17508 # Determine the default libpath from the value encoded in an empty executable.
17509 cat >conftest.$ac_ext <<_ACEOF
17510/* confdefs.h. */
17511_ACEOF
17512cat confdefs.h >>conftest.$ac_ext
17513cat >>conftest.$ac_ext <<_ACEOF
17514/* end confdefs.h. */
17515
17516int
17517main ()
17518{
17519
17520 ;
17521 return 0;
17522}
17523_ACEOF
17524rm -f conftest.$ac_objext conftest$ac_exeext
17525if { (ac_try="$ac_link"
17526case "(($ac_try" in
17527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528 *) ac_try_echo=$ac_try;;
17529esac
17530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531 (eval "$ac_link") 2>conftest.er1
17532 ac_status=$?
17533 grep -v '^ *+' conftest.er1 >conftest.err
17534 rm -f conftest.er1
17535 cat conftest.err >&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } && {
17538 test -z "$ac_c_werror_flag" ||
17539 test ! -s conftest.err
17540 } && test -s conftest$ac_exeext &&
17541 $as_test_x conftest$ac_exeext; then
17542
17798 fi
17799 fi
17800
17801 # It seems that -bexpall does not export symbols beginning with
17802 # underscore (_), so it is better to generate a list of symbols to export.
17803 always_export_symbols_GCJ=yes
17804 if test "$aix_use_runtimelinking" = yes; then
17805 # Warning - without using the other runtime loading flags (-brtl),
17806 # -berok will link without error, but may produce a broken library.
17807 allow_undefined_flag_GCJ='-berok'
17808 # Determine the default libpath from the value encoded in an empty executable.
17809 cat >conftest.$ac_ext <<_ACEOF
17810/* confdefs.h. */
17811_ACEOF
17812cat confdefs.h >>conftest.$ac_ext
17813cat >>conftest.$ac_ext <<_ACEOF
17814/* end confdefs.h. */
17815
17816int
17817main ()
17818{
17819
17820 ;
17821 return 0;
17822}
17823_ACEOF
17824rm -f conftest.$ac_objext conftest$ac_exeext
17825if { (ac_try="$ac_link"
17826case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17829esac
17830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_link") 2>conftest.er1
17832 ac_status=$?
17833 grep -v '^ *+' conftest.er1 >conftest.err
17834 rm -f conftest.er1
17835 cat conftest.err >&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } && {
17838 test -z "$ac_c_werror_flag" ||
17839 test ! -s conftest.err
17840 } && test -s conftest$ac_exeext &&
17841 $as_test_x conftest$ac_exeext; then
17842
17543aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17544}'`
17843lt_aix_libpath_sed='
17844 /Import File Strings/,/^$/ {
17845 /^0/ {
17846 s/^0 *\(.*\)$/\1/
17847 p
17848 }
17849 }'
17850aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17545# Check for a 64-bit object if we didn't find anything.
17851# Check for a 64-bit object if we didn't find anything.
17546if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17547}'`; fi
17852if test -z "$aix_libpath"; then
17853 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17854fi
17548else
17549 echo "$as_me: failed program was:" >&5
17550sed 's/^/| /' conftest.$ac_ext >&5
17551
17552
17553fi
17554
17555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17556 conftest$ac_exeext conftest.$ac_ext
17557if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17558
17559 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17855else
17856 echo "$as_me: failed program was:" >&5
17857sed 's/^/| /' conftest.$ac_ext >&5
17858
17859
17860fi
17861
17862rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17863 conftest$ac_exeext conftest.$ac_ext
17864if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17865
17866 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17560 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17867 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17561 else
17562 if test "$host_cpu" = ia64; then
17563 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17564 allow_undefined_flag_GCJ="-z nodefs"
17868 else
17869 if test "$host_cpu" = ia64; then
17870 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17871 allow_undefined_flag_GCJ="-z nodefs"
17565 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17872 archive_expsym_cmds_GCJ="\$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"
17566 else
17567 # Determine the default libpath from the value encoded in an empty executable.
17568 cat >conftest.$ac_ext <<_ACEOF
17569/* confdefs.h. */
17570_ACEOF
17571cat confdefs.h >>conftest.$ac_ext
17572cat >>conftest.$ac_ext <<_ACEOF
17573/* end confdefs.h. */
17574
17575int
17576main ()
17577{
17578
17579 ;
17580 return 0;
17581}
17582_ACEOF
17583rm -f conftest.$ac_objext conftest$ac_exeext
17584if { (ac_try="$ac_link"
17585case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17588esac
17589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_link") 2>conftest.er1
17591 ac_status=$?
17592 grep -v '^ *+' conftest.er1 >conftest.err
17593 rm -f conftest.er1
17594 cat conftest.err >&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); } && {
17597 test -z "$ac_c_werror_flag" ||
17598 test ! -s conftest.err
17599 } && test -s conftest$ac_exeext &&
17600 $as_test_x conftest$ac_exeext; then
17601
17873 else
17874 # Determine the default libpath from the value encoded in an empty executable.
17875 cat >conftest.$ac_ext <<_ACEOF
17876/* confdefs.h. */
17877_ACEOF
17878cat confdefs.h >>conftest.$ac_ext
17879cat >>conftest.$ac_ext <<_ACEOF
17880/* end confdefs.h. */
17881
17882int
17883main ()
17884{
17885
17886 ;
17887 return 0;
17888}
17889_ACEOF
17890rm -f conftest.$ac_objext conftest$ac_exeext
17891if { (ac_try="$ac_link"
17892case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17895esac
17896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897 (eval "$ac_link") 2>conftest.er1
17898 ac_status=$?
17899 grep -v '^ *+' conftest.er1 >conftest.err
17900 rm -f conftest.er1
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } && {
17904 test -z "$ac_c_werror_flag" ||
17905 test ! -s conftest.err
17906 } && test -s conftest$ac_exeext &&
17907 $as_test_x conftest$ac_exeext; then
17908
17602aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17603}'`
17909lt_aix_libpath_sed='
17910 /Import File Strings/,/^$/ {
17911 /^0/ {
17912 s/^0 *\(.*\)$/\1/
17913 p
17914 }
17915 }'
17916aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17604# Check for a 64-bit object if we didn't find anything.
17917# Check for a 64-bit object if we didn't find anything.
17605if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17606}'`; fi
17918if test -z "$aix_libpath"; then
17919 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17920fi
17607else
17608 echo "$as_me: failed program was:" >&5
17609sed 's/^/| /' conftest.$ac_ext >&5
17610
17611
17612fi
17613
17614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17615 conftest$ac_exeext conftest.$ac_ext
17616if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17617
17618 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17619 # Warning - without using the other run time loading flags,
17620 # -berok will link without error, but may produce a broken library.
17621 no_undefined_flag_GCJ=' ${wl}-bernotok'
17622 allow_undefined_flag_GCJ=' ${wl}-berok'
17921else
17922 echo "$as_me: failed program was:" >&5
17923sed 's/^/| /' conftest.$ac_ext >&5
17924
17925
17926fi
17927
17928rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17929 conftest$ac_exeext conftest.$ac_ext
17930if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17931
17932 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17933 # Warning - without using the other run time loading flags,
17934 # -berok will link without error, but may produce a broken library.
17935 no_undefined_flag_GCJ=' ${wl}-bernotok'
17936 allow_undefined_flag_GCJ=' ${wl}-berok'
17623 # -bexpall does not export symbols beginning with underscore (_)
17624 always_export_symbols_GCJ=yes
17625 # Exported symbols can be pulled into shared objects from archives
17937 # Exported symbols can be pulled into shared objects from archives
17626 whole_archive_flag_spec_GCJ=' '
17938 whole_archive_flag_spec_GCJ='$convenience'
17627 archive_cmds_need_lc_GCJ=yes
17939 archive_cmds_need_lc_GCJ=yes
17628 # This is similar to how AIX traditionally builds it's shared libraries.
17629 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17940 # This is similar to how AIX traditionally builds its shared libraries.
17941 archive_expsym_cmds_GCJ="\$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'
17630 fi
17631 fi
17632 ;;
17633
17634 amigaos*)
17635 archive_cmds_GCJ='$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)'
17636 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17637 hardcode_minus_L_GCJ=yes
17638 # see comment about different semantics on the GNU ld section
17639 ld_shlibs_GCJ=no
17640 ;;
17641
17642 bsdi[45]*)
17643 export_dynamic_flag_spec_GCJ=-rdynamic
17644 ;;
17645
17646 cygwin* | mingw* | pw32*)
17647 # When not using gcc, we currently assume that we are using
17648 # Microsoft Visual C++.
17649 # hardcode_libdir_flag_spec is actually meaningless, as there is
17650 # no search path for DLLs.
17651 hardcode_libdir_flag_spec_GCJ=' '
17652 allow_undefined_flag_GCJ=unsupported
17653 # Tell ltmain to make .lib files, not .a files.
17654 libext=lib
17655 # Tell ltmain to make .dll files, not .so files.
17656 shrext_cmds=".dll"
17657 # FIXME: Setting linknames here is a bad hack.
17658 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17659 # The linker will automatically build a .lib file if we build a DLL.
17660 old_archive_From_new_cmds_GCJ='true'
17661 # FIXME: Should let the user specify the lib program.
17942 fi
17943 fi
17944 ;;
17945
17946 amigaos*)
17947 archive_cmds_GCJ='$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)'
17948 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17949 hardcode_minus_L_GCJ=yes
17950 # see comment about different semantics on the GNU ld section
17951 ld_shlibs_GCJ=no
17952 ;;
17953
17954 bsdi[45]*)
17955 export_dynamic_flag_spec_GCJ=-rdynamic
17956 ;;
17957
17958 cygwin* | mingw* | pw32*)
17959 # When not using gcc, we currently assume that we are using
17960 # Microsoft Visual C++.
17961 # hardcode_libdir_flag_spec is actually meaningless, as there is
17962 # no search path for DLLs.
17963 hardcode_libdir_flag_spec_GCJ=' '
17964 allow_undefined_flag_GCJ=unsupported
17965 # Tell ltmain to make .lib files, not .a files.
17966 libext=lib
17967 # Tell ltmain to make .dll files, not .so files.
17968 shrext_cmds=".dll"
17969 # FIXME: Setting linknames here is a bad hack.
17970 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17971 # The linker will automatically build a .lib file if we build a DLL.
17972 old_archive_From_new_cmds_GCJ='true'
17973 # FIXME: Should let the user specify the lib program.
17662 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17974 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17663 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17664 enable_shared_with_static_runtimes_GCJ=yes
17665 ;;
17666
17667 darwin* | rhapsody*)
17975 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17976 enable_shared_with_static_runtimes_GCJ=yes
17977 ;;
17978
17979 darwin* | rhapsody*)
17668 case "$host_os" in
17980 case $host_os in
17669 rhapsody* | darwin1.[012])
17670 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17671 ;;
17672 *) # Darwin 1.3 on
17673 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17674 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17675 else
17676 case ${MACOSX_DEPLOYMENT_TARGET} in
17677 10.[012])
17678 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17679 ;;
17680 10.*)
17681 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17682 ;;
17683 esac
17684 fi
17685 ;;
17686 esac
17687 archive_cmds_need_lc_GCJ=no
17688 hardcode_direct_GCJ=no
17689 hardcode_automatic_GCJ=yes
17690 hardcode_shlibpath_var_GCJ=unsupported
17691 whole_archive_flag_spec_GCJ=''
17692 link_all_deplibs_GCJ=yes
17693 if test "$GCC" = yes ; then
17694 output_verbose_link_cmd='echo'
17981 rhapsody* | darwin1.[012])
17982 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17983 ;;
17984 *) # Darwin 1.3 on
17985 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17986 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17987 else
17988 case ${MACOSX_DEPLOYMENT_TARGET} in
17989 10.[012])
17990 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17991 ;;
17992 10.*)
17993 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17994 ;;
17995 esac
17996 fi
17997 ;;
17998 esac
17999 archive_cmds_need_lc_GCJ=no
18000 hardcode_direct_GCJ=no
18001 hardcode_automatic_GCJ=yes
18002 hardcode_shlibpath_var_GCJ=unsupported
18003 whole_archive_flag_spec_GCJ=''
18004 link_all_deplibs_GCJ=yes
18005 if test "$GCC" = yes ; then
18006 output_verbose_link_cmd='echo'
17695 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17696 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17697 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17698 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17699 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18007 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18008 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18009 archive_expsym_cmds_GCJ="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}"
18010 module_expsym_cmds_GCJ="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}"
17700 else
17701 case $cc_basename in
17702 xlc*)
17703 output_verbose_link_cmd='echo'
18011 else
18012 case $cc_basename in
18013 xlc*)
18014 output_verbose_link_cmd='echo'
17704 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18015 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17705 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18016 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17706 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17707 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18017 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18018 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17708 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17709 ;;
17710 *)
17711 ld_shlibs_GCJ=no
17712 ;;
17713 esac
17714 fi
17715 ;;
17716
17717 dgux*)
17718 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17719 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17720 hardcode_shlibpath_var_GCJ=no
17721 ;;
17722
17723 freebsd1*)
17724 ld_shlibs_GCJ=no
17725 ;;
17726
17727 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17728 # support. Future versions do this automatically, but an explicit c++rt0.o
17729 # does not break anything, and helps significantly (at the cost of a little
17730 # extra space).
17731 freebsd2.2*)
17732 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17733 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17734 hardcode_direct_GCJ=yes
17735 hardcode_shlibpath_var_GCJ=no
17736 ;;
17737
17738 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17739 freebsd2*)
17740 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17741 hardcode_direct_GCJ=yes
17742 hardcode_minus_L_GCJ=yes
17743 hardcode_shlibpath_var_GCJ=no
17744 ;;
17745
17746 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18019 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18020 ;;
18021 *)
18022 ld_shlibs_GCJ=no
18023 ;;
18024 esac
18025 fi
18026 ;;
18027
18028 dgux*)
18029 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18030 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18031 hardcode_shlibpath_var_GCJ=no
18032 ;;
18033
18034 freebsd1*)
18035 ld_shlibs_GCJ=no
18036 ;;
18037
18038 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18039 # support. Future versions do this automatically, but an explicit c++rt0.o
18040 # does not break anything, and helps significantly (at the cost of a little
18041 # extra space).
18042 freebsd2.2*)
18043 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18044 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18045 hardcode_direct_GCJ=yes
18046 hardcode_shlibpath_var_GCJ=no
18047 ;;
18048
18049 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18050 freebsd2*)
18051 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18052 hardcode_direct_GCJ=yes
18053 hardcode_minus_L_GCJ=yes
18054 hardcode_shlibpath_var_GCJ=no
18055 ;;
18056
18057 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17747 freebsd* | kfreebsd*-gnu | dragonfly*)
18058 freebsd* | dragonfly*)
17748 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17749 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17750 hardcode_direct_GCJ=yes
17751 hardcode_shlibpath_var_GCJ=no
17752 ;;
17753
17754 hpux9*)
17755 if test "$GCC" = yes; then
17756 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17757 else
17758 archive_cmds_GCJ='$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'
17759 fi
17760 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17761 hardcode_libdir_separator_GCJ=:
17762 hardcode_direct_GCJ=yes
17763
17764 # hardcode_minus_L: Not really in the search PATH,
17765 # but as the default location of the library.
17766 hardcode_minus_L_GCJ=yes
17767 export_dynamic_flag_spec_GCJ='${wl}-E'
17768 ;;
17769
18059 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18060 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18061 hardcode_direct_GCJ=yes
18062 hardcode_shlibpath_var_GCJ=no
18063 ;;
18064
18065 hpux9*)
18066 if test "$GCC" = yes; then
18067 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18068 else
18069 archive_cmds_GCJ='$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'
18070 fi
18071 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18072 hardcode_libdir_separator_GCJ=:
18073 hardcode_direct_GCJ=yes
18074
18075 # hardcode_minus_L: Not really in the search PATH,
18076 # but as the default location of the library.
18077 hardcode_minus_L_GCJ=yes
18078 export_dynamic_flag_spec_GCJ='${wl}-E'
18079 ;;
18080
17770 hpux10* | hpux11*)
18081 hpux10*)
17771 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18082 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17772 case "$host_cpu" in
17773 hppa*64*|ia64*)
18083 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18084 else
18085 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18086 fi
18087 if test "$with_gnu_ld" = no; then
18088 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18089 hardcode_libdir_separator_GCJ=:
18090
18091 hardcode_direct_GCJ=yes
18092 export_dynamic_flag_spec_GCJ='${wl}-E'
18093
18094 # hardcode_minus_L: Not really in the search PATH,
18095 # but as the default location of the library.
18096 hardcode_minus_L_GCJ=yes
18097 fi
18098 ;;
18099
18100 hpux11*)
18101 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18102 case $host_cpu in
18103 hppa*64*)
17774 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17775 ;;
18104 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18105 ;;
18106 ia64*)
18107 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18108 ;;
17776 *)
17777 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17778 ;;
17779 esac
17780 else
18109 *)
18110 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18111 ;;
18112 esac
18113 else
17781 case "$host_cpu" in
17782 hppa*64*|ia64*)
17783 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18114 case $host_cpu in
18115 hppa*64*)
18116 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17784 ;;
18117 ;;
18118 ia64*)
18119 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18120 ;;
17785 *)
18121 *)
17786 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18122 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17787 ;;
17788 esac
17789 fi
17790 if test "$with_gnu_ld" = no; then
18123 ;;
18124 esac
18125 fi
18126 if test "$with_gnu_ld" = no; then
17791 case "$host_cpu" in
17792 hppa*64*)
17793 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18127 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18128 hardcode_libdir_separator_GCJ=:
18129
18130 case $host_cpu in
18131 hppa*64*|ia64*)
17794 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18132 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17795 hardcode_libdir_separator_GCJ=:
17796 hardcode_direct_GCJ=no
17797 hardcode_shlibpath_var_GCJ=no
17798 ;;
18133 hardcode_direct_GCJ=no
18134 hardcode_shlibpath_var_GCJ=no
18135 ;;
17799 ia64*)
17800 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17801 hardcode_direct_GCJ=no
17802 hardcode_shlibpath_var_GCJ=no
17803
17804 # hardcode_minus_L: Not really in the search PATH,
17805 # but as the default location of the library.
17806 hardcode_minus_L_GCJ=yes
17807 ;;
17808 *)
18136 *)
17809 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17810 hardcode_libdir_separator_GCJ=:
17811 hardcode_direct_GCJ=yes
17812 export_dynamic_flag_spec_GCJ='${wl}-E'
17813
17814 # hardcode_minus_L: Not really in the search PATH,
17815 # but as the default location of the library.
17816 hardcode_minus_L_GCJ=yes
17817 ;;
17818 esac
17819 fi
17820 ;;
17821
17822 irix5* | irix6* | nonstopux*)
17823 if test "$GCC" = yes; then
17824 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17825 else
17826 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17827 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17828 fi
17829 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17830 hardcode_libdir_separator_GCJ=:
17831 link_all_deplibs_GCJ=yes
17832 ;;
17833
17834 netbsd*)
17835 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17836 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17837 else
17838 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17839 fi
17840 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17841 hardcode_direct_GCJ=yes
17842 hardcode_shlibpath_var_GCJ=no
17843 ;;
17844
17845 newsos6)
17846 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17847 hardcode_direct_GCJ=yes
17848 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17849 hardcode_libdir_separator_GCJ=:
17850 hardcode_shlibpath_var_GCJ=no
17851 ;;
17852
17853 openbsd*)
18137 hardcode_direct_GCJ=yes
18138 export_dynamic_flag_spec_GCJ='${wl}-E'
18139
18140 # hardcode_minus_L: Not really in the search PATH,
18141 # but as the default location of the library.
18142 hardcode_minus_L_GCJ=yes
18143 ;;
18144 esac
18145 fi
18146 ;;
18147
18148 irix5* | irix6* | nonstopux*)
18149 if test "$GCC" = yes; then
18150 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18151 else
18152 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18153 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18154 fi
18155 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18156 hardcode_libdir_separator_GCJ=:
18157 link_all_deplibs_GCJ=yes
18158 ;;
18159
18160 netbsd*)
18161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18162 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18163 else
18164 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18165 fi
18166 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18167 hardcode_direct_GCJ=yes
18168 hardcode_shlibpath_var_GCJ=no
18169 ;;
18170
18171 newsos6)
18172 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18173 hardcode_direct_GCJ=yes
18174 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18175 hardcode_libdir_separator_GCJ=:
18176 hardcode_shlibpath_var_GCJ=no
18177 ;;
18178
18179 openbsd*)
17854 hardcode_direct_GCJ=yes
17855 hardcode_shlibpath_var_GCJ=no
17856 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17857 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17858 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17859 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17860 export_dynamic_flag_spec_GCJ='${wl}-E'
18180 if test -f /usr/libexec/ld.so; then
18181 hardcode_direct_GCJ=yes
18182 hardcode_shlibpath_var_GCJ=no
18183 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18184 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18185 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18186 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18187 export_dynamic_flag_spec_GCJ='${wl}-E'
18188 else
18189 case $host_os in
18190 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18191 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18192 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18193 ;;
18194 *)
18195 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18196 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18197 ;;
18198 esac
18199 fi
17861 else
18200 else
17862 case $host_os in
17863 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17864 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17865 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17866 ;;
17867 *)
17868 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17869 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17870 ;;
17871 esac
18201 ld_shlibs_GCJ=no
17872 fi
17873 ;;
17874
17875 os2*)
17876 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17877 hardcode_minus_L_GCJ=yes
17878 allow_undefined_flag_GCJ=unsupported
17879 archive_cmds_GCJ='$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'
17880 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17881 ;;
17882
17883 osf3*)
17884 if test "$GCC" = yes; then
17885 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17886 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17887 else
17888 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17889 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17890 fi
17891 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17892 hardcode_libdir_separator_GCJ=:
17893 ;;
17894
17895 osf4* | osf5*) # as osf3* with the addition of -msym flag
17896 if test "$GCC" = yes; then
17897 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17898 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17899 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17900 else
17901 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17902 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17903 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17904 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17905
17906 # Both c and cxx compiler support -rpath directly
17907 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17908 fi
17909 hardcode_libdir_separator_GCJ=:
17910 ;;
17911
18202 fi
18203 ;;
18204
18205 os2*)
18206 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18207 hardcode_minus_L_GCJ=yes
18208 allow_undefined_flag_GCJ=unsupported
18209 archive_cmds_GCJ='$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'
18210 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18211 ;;
18212
18213 osf3*)
18214 if test "$GCC" = yes; then
18215 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18216 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18217 else
18218 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18219 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18220 fi
18221 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18222 hardcode_libdir_separator_GCJ=:
18223 ;;
18224
18225 osf4* | osf5*) # as osf3* with the addition of -msym flag
18226 if test "$GCC" = yes; then
18227 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18228 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18229 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18230 else
18231 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18232 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18233 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18234 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18235
18236 # Both c and cxx compiler support -rpath directly
18237 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18238 fi
18239 hardcode_libdir_separator_GCJ=:
18240 ;;
18241
17912 sco3.2v5*)
17913 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17914 hardcode_shlibpath_var_GCJ=no
17915 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17916 runpath_var=LD_RUN_PATH
17917 hardcode_runpath_var=yes
17918 ;;
17919
17920 solaris*)
17921 no_undefined_flag_GCJ=' -z text'
17922 if test "$GCC" = yes; then
17923 wlarc='${wl}'
17924 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17925 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17926 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17927 else
17928 wlarc=''
17929 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17930 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17931 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17932 fi
17933 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17934 hardcode_shlibpath_var_GCJ=no
17935 case $host_os in
17936 solaris2.[0-5] | solaris2.[0-5].*) ;;
17937 *)
18242 solaris*)
18243 no_undefined_flag_GCJ=' -z text'
18244 if test "$GCC" = yes; then
18245 wlarc='${wl}'
18246 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18247 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18248 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18249 else
18250 wlarc=''
18251 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18252 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18253 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18254 fi
18255 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18256 hardcode_shlibpath_var_GCJ=no
18257 case $host_os in
18258 solaris2.[0-5] | solaris2.[0-5].*) ;;
18259 *)
17938 # The compiler driver will combine linker options so we
17939 # cannot just pass the convience library names through
17940 # without $wl, iff we do not link with $LD.
17941 # Luckily, gcc supports the same syntax we need for Sun Studio.
18260 # The compiler driver will combine and reorder linker options,
18261 # but understands `-z linker_flag'. GCC discards it without `$wl',
18262 # but is careful enough not to reorder.
17942 # Supported since Solaris 2.6 (maybe 2.5.1?)
18263 # Supported since Solaris 2.6 (maybe 2.5.1?)
17943 case $wlarc in
17944 '')
17945 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17946 *)
17947 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17948 esac ;;
18264 if test "$GCC" = yes; then
18265 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18266 else
18267 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18268 fi
18269 ;;
17949 esac
17950 link_all_deplibs_GCJ=yes
17951 ;;
17952
17953 sunos4*)
17954 if test "x$host_vendor" = xsequent; then
17955 # Use $CC to link under sequent, because it throws in some extra .o
17956 # files that make .init and .fini sections work.
17957 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17958 else
17959 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17960 fi
17961 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17962 hardcode_direct_GCJ=yes
17963 hardcode_minus_L_GCJ=yes
17964 hardcode_shlibpath_var_GCJ=no
17965 ;;
17966
17967 sysv4)
17968 case $host_vendor in
17969 sni)
17970 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17971 hardcode_direct_GCJ=yes # is this really true???
17972 ;;
17973 siemens)
17974 ## LD is ld it makes a PLAMLIB
17975 ## CC just makes a GrossModule.
17976 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17977 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17978 hardcode_direct_GCJ=no
17979 ;;
17980 motorola)
17981 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17982 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17983 ;;
17984 esac
17985 runpath_var='LD_RUN_PATH'
17986 hardcode_shlibpath_var_GCJ=no
17987 ;;
17988
17989 sysv4.3*)
17990 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17991 hardcode_shlibpath_var_GCJ=no
17992 export_dynamic_flag_spec_GCJ='-Bexport'
17993 ;;
17994
17995 sysv4*MP*)
17996 if test -d /usr/nec; then
17997 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17998 hardcode_shlibpath_var_GCJ=no
17999 runpath_var=LD_RUN_PATH
18000 hardcode_runpath_var=yes
18001 ld_shlibs_GCJ=yes
18002 fi
18003 ;;
18004
18270 esac
18271 link_all_deplibs_GCJ=yes
18272 ;;
18273
18274 sunos4*)
18275 if test "x$host_vendor" = xsequent; then
18276 # Use $CC to link under sequent, because it throws in some extra .o
18277 # files that make .init and .fini sections work.
18278 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18279 else
18280 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18281 fi
18282 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18283 hardcode_direct_GCJ=yes
18284 hardcode_minus_L_GCJ=yes
18285 hardcode_shlibpath_var_GCJ=no
18286 ;;
18287
18288 sysv4)
18289 case $host_vendor in
18290 sni)
18291 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18292 hardcode_direct_GCJ=yes # is this really true???
18293 ;;
18294 siemens)
18295 ## LD is ld it makes a PLAMLIB
18296 ## CC just makes a GrossModule.
18297 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18298 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18299 hardcode_direct_GCJ=no
18300 ;;
18301 motorola)
18302 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18303 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18304 ;;
18305 esac
18306 runpath_var='LD_RUN_PATH'
18307 hardcode_shlibpath_var_GCJ=no
18308 ;;
18309
18310 sysv4.3*)
18311 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18312 hardcode_shlibpath_var_GCJ=no
18313 export_dynamic_flag_spec_GCJ='-Bexport'
18314 ;;
18315
18316 sysv4*MP*)
18317 if test -d /usr/nec; then
18318 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18319 hardcode_shlibpath_var_GCJ=no
18320 runpath_var=LD_RUN_PATH
18321 hardcode_runpath_var=yes
18322 ld_shlibs_GCJ=yes
18323 fi
18324 ;;
18325
18005 sysv4.2uw2*)
18006 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18007 hardcode_direct_GCJ=yes
18008 hardcode_minus_L_GCJ=no
18326 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18327 no_undefined_flag_GCJ='${wl}-z,text'
18328 archive_cmds_need_lc_GCJ=no
18009 hardcode_shlibpath_var_GCJ=no
18329 hardcode_shlibpath_var_GCJ=no
18010 hardcode_runpath_var=yes
18011 runpath_var=LD_RUN_PATH
18012 ;;
18330 runpath_var='LD_RUN_PATH'
18013
18331
18014 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18015 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18016 if test "$GCC" = yes; then
18332 if test "$GCC" = yes; then
18017 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18333 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18334 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18018 else
18335 else
18019 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18336 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18337 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18020 fi
18338 fi
18021 runpath_var='LD_RUN_PATH'
18022 hardcode_shlibpath_var_GCJ=no
18023 ;;
18024
18339 ;;
18340
18025 sysv5*)
18026 no_undefined_flag_GCJ=' -z text'
18027 # $CC -shared without GNU ld will not create a library from C++
18028 # object files and a static libstdc++, better avoid it by now
18029 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18030 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18031 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18032 hardcode_libdir_flag_spec_GCJ=
18341 sysv5* | sco3.2v5* | sco5v6*)
18342 # Note: We can NOT use -z defs as we might desire, because we do not
18343 # link with -lc, and that would cause any symbols used from libc to
18344 # always be unresolved, which means just about no library would
18345 # ever link correctly. If we're not using GNU ld we use -z text
18346 # though, which does catch some bad symbols but isn't as heavy-handed
18347 # as -z defs.
18348 no_undefined_flag_GCJ='${wl}-z,text'
18349 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18350 archive_cmds_need_lc_GCJ=no
18033 hardcode_shlibpath_var_GCJ=no
18351 hardcode_shlibpath_var_GCJ=no
18352 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18353 hardcode_libdir_separator_GCJ=':'
18354 link_all_deplibs_GCJ=yes
18355 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18034 runpath_var='LD_RUN_PATH'
18356 runpath_var='LD_RUN_PATH'
18357
18358 if test "$GCC" = yes; then
18359 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18360 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18361 else
18362 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18363 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18364 fi
18035 ;;
18036
18037 uts4*)
18038 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18039 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18040 hardcode_shlibpath_var_GCJ=no
18041 ;;
18042
18043 *)
18044 ld_shlibs_GCJ=no
18045 ;;
18046 esac
18047 fi
18048
18049{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18050echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18051test "$ld_shlibs_GCJ" = no && can_build_shared=no
18052
18365 ;;
18366
18367 uts4*)
18368 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18369 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18370 hardcode_shlibpath_var_GCJ=no
18371 ;;
18372
18373 *)
18374 ld_shlibs_GCJ=no
18375 ;;
18376 esac
18377 fi
18378
18379{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18380echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18381test "$ld_shlibs_GCJ" = no && can_build_shared=no
18382
18053variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18054if test "$GCC" = yes; then
18055 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18056fi
18057
18058#
18059# Do we need to explicitly link libc?
18060#
18061case "x$archive_cmds_need_lc_GCJ" in
18062x|xyes)
18063 # Assume -lc should be added
18064 archive_cmds_need_lc_GCJ=yes
18065
18066 if test "$enable_shared" = yes && test "$GCC" = yes; then
18067 case $archive_cmds_GCJ in
18068 *'~'*)
18069 # FIXME: we may have to deal with multi-command sequences.
18070 ;;
18071 '$CC '*)
18072 # Test whether the compiler implicitly links with -lc since on some
18073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18074 # to ld, don't add -lc before -lgcc.
18075 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18076echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18077 $rm conftest*
18383#
18384# Do we need to explicitly link libc?
18385#
18386case "x$archive_cmds_need_lc_GCJ" in
18387x|xyes)
18388 # Assume -lc should be added
18389 archive_cmds_need_lc_GCJ=yes
18390
18391 if test "$enable_shared" = yes && test "$GCC" = yes; then
18392 case $archive_cmds_GCJ in
18393 *'~'*)
18394 # FIXME: we may have to deal with multi-command sequences.
18395 ;;
18396 '$CC '*)
18397 # Test whether the compiler implicitly links with -lc since on some
18398 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18399 # to ld, don't add -lc before -lgcc.
18400 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18401echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18402 $rm conftest*
18078 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18079
18080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18081 (eval $ac_compile) 2>&5
18082 ac_status=$?
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } 2>conftest.err; then
18085 soname=conftest
18086 lib=conftest
18087 libobjs=conftest.$ac_objext
18088 deplibs=
18089 wl=$lt_prog_compiler_wl_GCJ
18404
18405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18406 (eval $ac_compile) 2>&5
18407 ac_status=$?
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } 2>conftest.err; then
18410 soname=conftest
18411 lib=conftest
18412 libobjs=conftest.$ac_objext
18413 deplibs=
18414 wl=$lt_prog_compiler_wl_GCJ
18415 pic_flag=$lt_prog_compiler_pic_GCJ
18090 compiler_flags=-v
18091 linker_flags=-v
18092 verstring=
18093 output_objdir=.
18094 libname=conftest
18095 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18096 allow_undefined_flag_GCJ=
18097 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18098 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }
18102 then
18103 archive_cmds_need_lc_GCJ=no
18104 else
18105 archive_cmds_need_lc_GCJ=yes
18106 fi
18107 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18108 else
18109 cat conftest.err 1>&5
18110 fi
18111 $rm conftest*
18112 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18113echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18114 ;;
18115 esac
18116 fi
18117 ;;
18118esac
18119
18120{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18121echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18122library_names_spec=
18123libname_spec='lib$name'
18124soname_spec=
18125shrext_cmds=".so"
18126postinstall_cmds=
18127postuninstall_cmds=
18128finish_cmds=
18129finish_eval=
18130shlibpath_var=
18131shlibpath_overrides_runpath=unknown
18132version_type=none
18133dynamic_linker="$host_os ld.so"
18134sys_lib_dlsearch_path_spec="/lib /usr/lib"
18416 compiler_flags=-v
18417 linker_flags=-v
18418 verstring=
18419 output_objdir=.
18420 libname=conftest
18421 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18422 allow_undefined_flag_GCJ=
18423 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18424 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18425 ac_status=$?
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }
18428 then
18429 archive_cmds_need_lc_GCJ=no
18430 else
18431 archive_cmds_need_lc_GCJ=yes
18432 fi
18433 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18434 else
18435 cat conftest.err 1>&5
18436 fi
18437 $rm conftest*
18438 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18439echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18440 ;;
18441 esac
18442 fi
18443 ;;
18444esac
18445
18446{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18447echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18448library_names_spec=
18449libname_spec='lib$name'
18450soname_spec=
18451shrext_cmds=".so"
18452postinstall_cmds=
18453postuninstall_cmds=
18454finish_cmds=
18455finish_eval=
18456shlibpath_var=
18457shlibpath_overrides_runpath=unknown
18458version_type=none
18459dynamic_linker="$host_os ld.so"
18460sys_lib_dlsearch_path_spec="/lib /usr/lib"
18135if test "$GCC" = yes; then
18136 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18137 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18138 # if the path contains ";" then we assume it to be the separator
18139 # otherwise default to the standard path separator (i.e. ":") - it is
18140 # assumed that no part of a normal pathname contains ";" but that should
18141 # okay in the real world where ";" in dirpaths is itself problematic.
18142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18143 else
18144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18145 fi
18146else
18147 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18148fi
18461
18149need_lib_prefix=unknown
18150hardcode_into_libs=no
18151
18152# when you set need_version to no, make sure it does not cause -set_version
18153# flags to be left without arguments
18154need_version=unknown
18155
18156case $host_os in
18157aix3*)
18158 version_type=linux
18159 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18160 shlibpath_var=LIBPATH
18161
18162 # AIX 3 has no versioning support, so we append a major version to the name.
18163 soname_spec='${libname}${release}${shared_ext}$major'
18164 ;;
18165
18462need_lib_prefix=unknown
18463hardcode_into_libs=no
18464
18465# when you set need_version to no, make sure it does not cause -set_version
18466# flags to be left without arguments
18467need_version=unknown
18468
18469case $host_os in
18470aix3*)
18471 version_type=linux
18472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18473 shlibpath_var=LIBPATH
18474
18475 # AIX 3 has no versioning support, so we append a major version to the name.
18476 soname_spec='${libname}${release}${shared_ext}$major'
18477 ;;
18478
18166aix4* | aix5*)
18479aix[4-9]*)
18167 version_type=linux
18168 need_lib_prefix=no
18169 need_version=no
18170 hardcode_into_libs=yes
18171 if test "$host_cpu" = ia64; then
18172 # AIX 5 supports IA64
18173 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18174 shlibpath_var=LD_LIBRARY_PATH
18175 else
18176 # With GCC up to 2.95.x, collect2 would create an import file
18177 # for dependence libraries. The import file would start with
18178 # the line `#! .'. This would cause the generated library to
18179 # depend on `.', always an invalid library. This was fixed in
18180 # development snapshots of GCC prior to 3.0.
18181 case $host_os in
18182 aix4 | aix4.[01] | aix4.[01].*)
18183 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18184 echo ' yes '
18185 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18186 :
18187 else
18188 can_build_shared=no
18189 fi
18190 ;;
18191 esac
18192 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18193 # soname into executable. Probably we can add versioning support to
18194 # collect2, so additional links can be useful in future.
18195 if test "$aix_use_runtimelinking" = yes; then
18196 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18197 # instead of lib<name>.a to let people know that these are not
18198 # typical AIX shared libraries.
18199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18200 else
18201 # We preserve .a as extension for shared libraries through AIX4.2
18202 # and later when we are not doing run time linking.
18203 library_names_spec='${libname}${release}.a $libname.a'
18204 soname_spec='${libname}${release}${shared_ext}$major'
18205 fi
18206 shlibpath_var=LIBPATH
18207 fi
18208 ;;
18209
18210amigaos*)
18211 library_names_spec='$libname.ixlibrary $libname.a'
18212 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18213 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
18214 ;;
18215
18216beos*)
18217 library_names_spec='${libname}${shared_ext}'
18218 dynamic_linker="$host_os ld.so"
18219 shlibpath_var=LIBRARY_PATH
18220 ;;
18221
18222bsdi[45]*)
18223 version_type=linux
18224 need_version=no
18225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18226 soname_spec='${libname}${release}${shared_ext}$major'
18227 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18228 shlibpath_var=LD_LIBRARY_PATH
18229 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18230 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18231 # the default ld.so.conf also contains /usr/contrib/lib and
18232 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18233 # libtool to hard-code these into programs
18234 ;;
18235
18236cygwin* | mingw* | pw32*)
18237 version_type=windows
18238 shrext_cmds=".dll"
18239 need_version=no
18240 need_lib_prefix=no
18241
18242 case $GCC,$host_os in
18243 yes,cygwin* | yes,mingw* | yes,pw32*)
18244 library_names_spec='$libname.dll.a'
18245 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18246 postinstall_cmds='base_file=`basename \${file}`~
18247 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18248 dldir=$destdir/`dirname \$dlpath`~
18249 test -d \$dldir || mkdir -p \$dldir~
18480 version_type=linux
18481 need_lib_prefix=no
18482 need_version=no
18483 hardcode_into_libs=yes
18484 if test "$host_cpu" = ia64; then
18485 # AIX 5 supports IA64
18486 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18487 shlibpath_var=LD_LIBRARY_PATH
18488 else
18489 # With GCC up to 2.95.x, collect2 would create an import file
18490 # for dependence libraries. The import file would start with
18491 # the line `#! .'. This would cause the generated library to
18492 # depend on `.', always an invalid library. This was fixed in
18493 # development snapshots of GCC prior to 3.0.
18494 case $host_os in
18495 aix4 | aix4.[01] | aix4.[01].*)
18496 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18497 echo ' yes '
18498 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18499 :
18500 else
18501 can_build_shared=no
18502 fi
18503 ;;
18504 esac
18505 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18506 # soname into executable. Probably we can add versioning support to
18507 # collect2, so additional links can be useful in future.
18508 if test "$aix_use_runtimelinking" = yes; then
18509 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18510 # instead of lib<name>.a to let people know that these are not
18511 # typical AIX shared libraries.
18512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18513 else
18514 # We preserve .a as extension for shared libraries through AIX4.2
18515 # and later when we are not doing run time linking.
18516 library_names_spec='${libname}${release}.a $libname.a'
18517 soname_spec='${libname}${release}${shared_ext}$major'
18518 fi
18519 shlibpath_var=LIBPATH
18520 fi
18521 ;;
18522
18523amigaos*)
18524 library_names_spec='$libname.ixlibrary $libname.a'
18525 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18526 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
18527 ;;
18528
18529beos*)
18530 library_names_spec='${libname}${shared_ext}'
18531 dynamic_linker="$host_os ld.so"
18532 shlibpath_var=LIBRARY_PATH
18533 ;;
18534
18535bsdi[45]*)
18536 version_type=linux
18537 need_version=no
18538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18539 soname_spec='${libname}${release}${shared_ext}$major'
18540 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18541 shlibpath_var=LD_LIBRARY_PATH
18542 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18543 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18544 # the default ld.so.conf also contains /usr/contrib/lib and
18545 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18546 # libtool to hard-code these into programs
18547 ;;
18548
18549cygwin* | mingw* | pw32*)
18550 version_type=windows
18551 shrext_cmds=".dll"
18552 need_version=no
18553 need_lib_prefix=no
18554
18555 case $GCC,$host_os in
18556 yes,cygwin* | yes,mingw* | yes,pw32*)
18557 library_names_spec='$libname.dll.a'
18558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18559 postinstall_cmds='base_file=`basename \${file}`~
18560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18561 dldir=$destdir/`dirname \$dlpath`~
18562 test -d \$dldir || mkdir -p \$dldir~
18250 $install_prog $dir/$dlname \$dldir/$dlname'
18563 $install_prog $dir/$dlname \$dldir/$dlname~
18564 chmod a+x \$dldir/$dlname'
18251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18252 dlpath=$dir/\$dldll~
18253 $rm \$dlpath'
18254 shlibpath_overrides_runpath=yes
18255
18256 case $host_os in
18257 cygwin*)
18258 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18259 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18260 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18261 ;;
18262 mingw*)
18263 # MinGW DLLs use traditional 'lib' prefix
18264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18265 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18266 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18267 # It is most probably a Windows format PATH printed by
18268 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18269 # path with ; separators, and with drive letters. We can handle the
18270 # drive letters (cygwin fileutils understands them), so leave them,
18271 # especially as we might pass files found there to a mingw objdump,
18272 # which wouldn't understand a cygwinified path. Ahh.
18273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18274 else
18275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18276 fi
18277 ;;
18278 pw32*)
18279 # pw32 DLLs use 'pw' prefix rather than 'lib'
18280 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18281 ;;
18282 esac
18283 ;;
18284
18285 *)
18286 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18287 ;;
18288 esac
18289 dynamic_linker='Win32 ld.exe'
18290 # FIXME: first we should search . and the directory the executable is in
18291 shlibpath_var=PATH
18292 ;;
18293
18294darwin* | rhapsody*)
18295 dynamic_linker="$host_os dyld"
18296 version_type=darwin
18297 need_lib_prefix=no
18298 need_version=no
18299 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18300 soname_spec='${libname}${release}${major}$shared_ext'
18301 shlibpath_overrides_runpath=yes
18302 shlibpath_var=DYLD_LIBRARY_PATH
18565 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18566 dlpath=$dir/\$dldll~
18567 $rm \$dlpath'
18568 shlibpath_overrides_runpath=yes
18569
18570 case $host_os in
18571 cygwin*)
18572 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18573 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18574 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18575 ;;
18576 mingw*)
18577 # MinGW DLLs use traditional 'lib' prefix
18578 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18579 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18580 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18581 # It is most probably a Windows format PATH printed by
18582 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18583 # path with ; separators, and with drive letters. We can handle the
18584 # drive letters (cygwin fileutils understands them), so leave them,
18585 # especially as we might pass files found there to a mingw objdump,
18586 # which wouldn't understand a cygwinified path. Ahh.
18587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18588 else
18589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18590 fi
18591 ;;
18592 pw32*)
18593 # pw32 DLLs use 'pw' prefix rather than 'lib'
18594 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18595 ;;
18596 esac
18597 ;;
18598
18599 *)
18600 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18601 ;;
18602 esac
18603 dynamic_linker='Win32 ld.exe'
18604 # FIXME: first we should search . and the directory the executable is in
18605 shlibpath_var=PATH
18606 ;;
18607
18608darwin* | rhapsody*)
18609 dynamic_linker="$host_os dyld"
18610 version_type=darwin
18611 need_lib_prefix=no
18612 need_version=no
18613 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18614 soname_spec='${libname}${release}${major}$shared_ext'
18615 shlibpath_overrides_runpath=yes
18616 shlibpath_var=DYLD_LIBRARY_PATH
18303 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18304 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18305 if test "$GCC" = yes; then
18306 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18307 else
18308 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18309 fi
18617 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18618
18310 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18311 ;;
18312
18313dgux*)
18314 version_type=linux
18315 need_lib_prefix=no
18316 need_version=no
18317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18318 soname_spec='${libname}${release}${shared_ext}$major'
18319 shlibpath_var=LD_LIBRARY_PATH
18320 ;;
18321
18322freebsd1*)
18323 dynamic_linker=no
18324 ;;
18325
18619 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18620 ;;
18621
18622dgux*)
18623 version_type=linux
18624 need_lib_prefix=no
18625 need_version=no
18626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18627 soname_spec='${libname}${release}${shared_ext}$major'
18628 shlibpath_var=LD_LIBRARY_PATH
18629 ;;
18630
18631freebsd1*)
18632 dynamic_linker=no
18633 ;;
18634
18326kfreebsd*-gnu)
18327 version_type=linux
18328 need_lib_prefix=no
18329 need_version=no
18330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18331 soname_spec='${libname}${release}${shared_ext}$major'
18332 shlibpath_var=LD_LIBRARY_PATH
18333 shlibpath_overrides_runpath=no
18334 hardcode_into_libs=yes
18335 dynamic_linker='GNU ld.so'
18336 ;;
18337
18338freebsd* | dragonfly*)
18339 # DragonFly does not have aout. When/if they implement a new
18340 # versioning mechanism, adjust this.
18635freebsd* | dragonfly*)
18636 # DragonFly does not have aout. When/if they implement a new
18637 # versioning mechanism, adjust this.
18341 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18638 if test -x /usr/bin/objformat; then
18639 objformat=`/usr/bin/objformat`
18640 else
18641 case $host_os in
18642 freebsd[123]*) objformat=aout ;;
18643 *) objformat=elf ;;
18644 esac
18645 fi
18342 version_type=freebsd-$objformat
18343 case $version_type in
18344 freebsd-elf*)
18345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18346 need_version=no
18347 need_lib_prefix=no
18348 ;;
18349 freebsd-*)
18350 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18351 need_version=yes
18352 ;;
18353 esac
18354 shlibpath_var=LD_LIBRARY_PATH
18355 case $host_os in
18356 freebsd2*)
18357 shlibpath_overrides_runpath=yes
18358 ;;
18359 freebsd3.[01]* | freebsdelf3.[01]*)
18360 shlibpath_overrides_runpath=yes
18361 hardcode_into_libs=yes
18362 ;;
18646 version_type=freebsd-$objformat
18647 case $version_type in
18648 freebsd-elf*)
18649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18650 need_version=no
18651 need_lib_prefix=no
18652 ;;
18653 freebsd-*)
18654 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18655 need_version=yes
18656 ;;
18657 esac
18658 shlibpath_var=LD_LIBRARY_PATH
18659 case $host_os in
18660 freebsd2*)
18661 shlibpath_overrides_runpath=yes
18662 ;;
18663 freebsd3.[01]* | freebsdelf3.[01]*)
18664 shlibpath_overrides_runpath=yes
18665 hardcode_into_libs=yes
18666 ;;
18363 *) # from 3.2 on
18667 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18668 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18364 shlibpath_overrides_runpath=no
18365 hardcode_into_libs=yes
18366 ;;
18669 shlibpath_overrides_runpath=no
18670 hardcode_into_libs=yes
18671 ;;
18672 *) # from 4.6 on, and DragonFly
18673 shlibpath_overrides_runpath=yes
18674 hardcode_into_libs=yes
18675 ;;
18367 esac
18368 ;;
18369
18370gnu*)
18371 version_type=linux
18372 need_lib_prefix=no
18373 need_version=no
18374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18375 soname_spec='${libname}${release}${shared_ext}$major'
18376 shlibpath_var=LD_LIBRARY_PATH
18377 hardcode_into_libs=yes
18378 ;;
18379
18380hpux9* | hpux10* | hpux11*)
18381 # Give a soname corresponding to the major version so that dld.sl refuses to
18382 # link against other versions.
18383 version_type=sunos
18384 need_lib_prefix=no
18385 need_version=no
18676 esac
18677 ;;
18678
18679gnu*)
18680 version_type=linux
18681 need_lib_prefix=no
18682 need_version=no
18683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18684 soname_spec='${libname}${release}${shared_ext}$major'
18685 shlibpath_var=LD_LIBRARY_PATH
18686 hardcode_into_libs=yes
18687 ;;
18688
18689hpux9* | hpux10* | hpux11*)
18690 # Give a soname corresponding to the major version so that dld.sl refuses to
18691 # link against other versions.
18692 version_type=sunos
18693 need_lib_prefix=no
18694 need_version=no
18386 case "$host_cpu" in
18695 case $host_cpu in
18387 ia64*)
18388 shrext_cmds='.so'
18389 hardcode_into_libs=yes
18390 dynamic_linker="$host_os dld.so"
18391 shlibpath_var=LD_LIBRARY_PATH
18392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18394 soname_spec='${libname}${release}${shared_ext}$major'
18395 if test "X$HPUX_IA64_MODE" = X32; then
18396 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18397 else
18398 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18399 fi
18400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18401 ;;
18402 hppa*64*)
18403 shrext_cmds='.sl'
18404 hardcode_into_libs=yes
18405 dynamic_linker="$host_os dld.sl"
18406 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18407 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18409 soname_spec='${libname}${release}${shared_ext}$major'
18410 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18411 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18412 ;;
18413 *)
18414 shrext_cmds='.sl'
18415 dynamic_linker="$host_os dld.sl"
18416 shlibpath_var=SHLIB_PATH
18417 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18419 soname_spec='${libname}${release}${shared_ext}$major'
18420 ;;
18421 esac
18422 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18423 postinstall_cmds='chmod 555 $lib'
18424 ;;
18425
18696 ia64*)
18697 shrext_cmds='.so'
18698 hardcode_into_libs=yes
18699 dynamic_linker="$host_os dld.so"
18700 shlibpath_var=LD_LIBRARY_PATH
18701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18703 soname_spec='${libname}${release}${shared_ext}$major'
18704 if test "X$HPUX_IA64_MODE" = X32; then
18705 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18706 else
18707 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18708 fi
18709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18710 ;;
18711 hppa*64*)
18712 shrext_cmds='.sl'
18713 hardcode_into_libs=yes
18714 dynamic_linker="$host_os dld.sl"
18715 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18718 soname_spec='${libname}${release}${shared_ext}$major'
18719 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18720 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18721 ;;
18722 *)
18723 shrext_cmds='.sl'
18724 dynamic_linker="$host_os dld.sl"
18725 shlibpath_var=SHLIB_PATH
18726 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18728 soname_spec='${libname}${release}${shared_ext}$major'
18729 ;;
18730 esac
18731 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18732 postinstall_cmds='chmod 555 $lib'
18733 ;;
18734
18735interix[3-9]*)
18736 version_type=linux
18737 need_lib_prefix=no
18738 need_version=no
18739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18740 soname_spec='${libname}${release}${shared_ext}$major'
18741 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18742 shlibpath_var=LD_LIBRARY_PATH
18743 shlibpath_overrides_runpath=no
18744 hardcode_into_libs=yes
18745 ;;
18746
18426irix5* | irix6* | nonstopux*)
18427 case $host_os in
18428 nonstopux*) version_type=nonstopux ;;
18429 *)
18430 if test "$lt_cv_prog_gnu_ld" = yes; then
18431 version_type=linux
18432 else
18433 version_type=irix
18434 fi ;;
18435 esac
18436 need_lib_prefix=no
18437 need_version=no
18438 soname_spec='${libname}${release}${shared_ext}$major'
18439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18440 case $host_os in
18441 irix5* | nonstopux*)
18442 libsuff= shlibsuff=
18443 ;;
18444 *)
18445 case $LD in # libtool.m4 will add one of these switches to LD
18446 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18447 libsuff= shlibsuff= libmagic=32-bit;;
18448 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18449 libsuff=32 shlibsuff=N32 libmagic=N32;;
18450 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18451 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18452 *) libsuff= shlibsuff= libmagic=never-match;;
18453 esac
18454 ;;
18455 esac
18456 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18457 shlibpath_overrides_runpath=no
18458 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18459 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18460 hardcode_into_libs=yes
18461 ;;
18462
18463# No shared lib support for Linux oldld, aout, or coff.
18464linux*oldld* | linux*aout* | linux*coff*)
18465 dynamic_linker=no
18466 ;;
18467
18468# This must be Linux ELF.
18747irix5* | irix6* | nonstopux*)
18748 case $host_os in
18749 nonstopux*) version_type=nonstopux ;;
18750 *)
18751 if test "$lt_cv_prog_gnu_ld" = yes; then
18752 version_type=linux
18753 else
18754 version_type=irix
18755 fi ;;
18756 esac
18757 need_lib_prefix=no
18758 need_version=no
18759 soname_spec='${libname}${release}${shared_ext}$major'
18760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18761 case $host_os in
18762 irix5* | nonstopux*)
18763 libsuff= shlibsuff=
18764 ;;
18765 *)
18766 case $LD in # libtool.m4 will add one of these switches to LD
18767 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18768 libsuff= shlibsuff= libmagic=32-bit;;
18769 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18770 libsuff=32 shlibsuff=N32 libmagic=N32;;
18771 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18772 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18773 *) libsuff= shlibsuff= libmagic=never-match;;
18774 esac
18775 ;;
18776 esac
18777 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18778 shlibpath_overrides_runpath=no
18779 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18780 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18781 hardcode_into_libs=yes
18782 ;;
18783
18784# No shared lib support for Linux oldld, aout, or coff.
18785linux*oldld* | linux*aout* | linux*coff*)
18786 dynamic_linker=no
18787 ;;
18788
18789# This must be Linux ELF.
18469linux*)
18790linux* | k*bsd*-gnu)
18470 version_type=linux
18471 need_lib_prefix=no
18472 need_version=no
18473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18474 soname_spec='${libname}${release}${shared_ext}$major'
18475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18476 shlibpath_var=LD_LIBRARY_PATH
18477 shlibpath_overrides_runpath=no
18478 # This implies no fast_install, which is unacceptable.
18479 # Some rework will be needed to allow for fast_install
18480 # before this can be enabled.
18481 hardcode_into_libs=yes
18482
18483 # Append ld.so.conf contents to the search path
18484 if test -f /etc/ld.so.conf; then
18791 version_type=linux
18792 need_lib_prefix=no
18793 need_version=no
18794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18795 soname_spec='${libname}${release}${shared_ext}$major'
18796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18797 shlibpath_var=LD_LIBRARY_PATH
18798 shlibpath_overrides_runpath=no
18799 # This implies no fast_install, which is unacceptable.
18800 # Some rework will be needed to allow for fast_install
18801 # before this can be enabled.
18802 hardcode_into_libs=yes
18803
18804 # Append ld.so.conf contents to the search path
18805 if test -f /etc/ld.so.conf; then
18485 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18806 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;/^$/d' | tr '\n' ' '`
18486 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18487 fi
18488
18489 # We used to test for /lib/ld.so.1 and disable shared libraries on
18490 # powerpc, because MkLinux only supported shared libraries with the
18491 # GNU dynamic linker. Since this was broken with cross compilers,
18492 # most powerpc-linux boxes support dynamic linking these days and
18493 # people can always --disable-shared, the test was removed, and we
18494 # assume the GNU/Linux dynamic linker is in use.
18495 dynamic_linker='GNU/Linux ld.so'
18496 ;;
18497
18807 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18808 fi
18809
18810 # We used to test for /lib/ld.so.1 and disable shared libraries on
18811 # powerpc, because MkLinux only supported shared libraries with the
18812 # GNU dynamic linker. Since this was broken with cross compilers,
18813 # most powerpc-linux boxes support dynamic linking these days and
18814 # people can always --disable-shared, the test was removed, and we
18815 # assume the GNU/Linux dynamic linker is in use.
18816 dynamic_linker='GNU/Linux ld.so'
18817 ;;
18818
18498knetbsd*-gnu)
18499 version_type=linux
18500 need_lib_prefix=no
18501 need_version=no
18502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18503 soname_spec='${libname}${release}${shared_ext}$major'
18504 shlibpath_var=LD_LIBRARY_PATH
18505 shlibpath_overrides_runpath=no
18506 hardcode_into_libs=yes
18507 dynamic_linker='GNU ld.so'
18508 ;;
18509
18510netbsd*)
18511 version_type=sunos
18512 need_lib_prefix=no
18513 need_version=no
18514 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18517 dynamic_linker='NetBSD (a.out) ld.so'
18518 else
18519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18520 soname_spec='${libname}${release}${shared_ext}$major'
18521 dynamic_linker='NetBSD ld.elf_so'
18522 fi
18523 shlibpath_var=LD_LIBRARY_PATH
18524 shlibpath_overrides_runpath=yes
18525 hardcode_into_libs=yes
18526 ;;
18527
18528newsos6)
18529 version_type=linux
18530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18531 shlibpath_var=LD_LIBRARY_PATH
18532 shlibpath_overrides_runpath=yes
18533 ;;
18534
18535nto-qnx*)
18536 version_type=linux
18537 need_lib_prefix=no
18538 need_version=no
18539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18540 soname_spec='${libname}${release}${shared_ext}$major'
18541 shlibpath_var=LD_LIBRARY_PATH
18542 shlibpath_overrides_runpath=yes
18543 ;;
18544
18545openbsd*)
18546 version_type=sunos
18819netbsd*)
18820 version_type=sunos
18821 need_lib_prefix=no
18822 need_version=no
18823 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18826 dynamic_linker='NetBSD (a.out) ld.so'
18827 else
18828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18829 soname_spec='${libname}${release}${shared_ext}$major'
18830 dynamic_linker='NetBSD ld.elf_so'
18831 fi
18832 shlibpath_var=LD_LIBRARY_PATH
18833 shlibpath_overrides_runpath=yes
18834 hardcode_into_libs=yes
18835 ;;
18836
18837newsos6)
18838 version_type=linux
18839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18840 shlibpath_var=LD_LIBRARY_PATH
18841 shlibpath_overrides_runpath=yes
18842 ;;
18843
18844nto-qnx*)
18845 version_type=linux
18846 need_lib_prefix=no
18847 need_version=no
18848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18849 soname_spec='${libname}${release}${shared_ext}$major'
18850 shlibpath_var=LD_LIBRARY_PATH
18851 shlibpath_overrides_runpath=yes
18852 ;;
18853
18854openbsd*)
18855 version_type=sunos
18856 sys_lib_dlsearch_path_spec="/usr/lib"
18547 need_lib_prefix=no
18548 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18549 case $host_os in
18550 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18551 *) need_version=no ;;
18552 esac
18553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18555 shlibpath_var=LD_LIBRARY_PATH
18556 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18557 case $host_os in
18558 openbsd2.[89] | openbsd2.[89].*)
18559 shlibpath_overrides_runpath=no
18560 ;;
18561 *)
18562 shlibpath_overrides_runpath=yes
18563 ;;
18564 esac
18565 else
18566 shlibpath_overrides_runpath=yes
18567 fi
18568 ;;
18569
18570os2*)
18571 libname_spec='$name'
18572 shrext_cmds=".dll"
18573 need_lib_prefix=no
18574 library_names_spec='$libname${shared_ext} $libname.a'
18575 dynamic_linker='OS/2 ld.exe'
18576 shlibpath_var=LIBPATH
18577 ;;
18578
18579osf3* | osf4* | osf5*)
18580 version_type=osf
18581 need_lib_prefix=no
18582 need_version=no
18583 soname_spec='${libname}${release}${shared_ext}$major'
18584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18585 shlibpath_var=LD_LIBRARY_PATH
18586 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18587 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18588 ;;
18589
18857 need_lib_prefix=no
18858 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18859 case $host_os in
18860 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18861 *) need_version=no ;;
18862 esac
18863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18865 shlibpath_var=LD_LIBRARY_PATH
18866 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18867 case $host_os in
18868 openbsd2.[89] | openbsd2.[89].*)
18869 shlibpath_overrides_runpath=no
18870 ;;
18871 *)
18872 shlibpath_overrides_runpath=yes
18873 ;;
18874 esac
18875 else
18876 shlibpath_overrides_runpath=yes
18877 fi
18878 ;;
18879
18880os2*)
18881 libname_spec='$name'
18882 shrext_cmds=".dll"
18883 need_lib_prefix=no
18884 library_names_spec='$libname${shared_ext} $libname.a'
18885 dynamic_linker='OS/2 ld.exe'
18886 shlibpath_var=LIBPATH
18887 ;;
18888
18889osf3* | osf4* | osf5*)
18890 version_type=osf
18891 need_lib_prefix=no
18892 need_version=no
18893 soname_spec='${libname}${release}${shared_ext}$major'
18894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18895 shlibpath_var=LD_LIBRARY_PATH
18896 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18897 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18898 ;;
18899
18590sco3.2v5*)
18591 version_type=osf
18592 soname_spec='${libname}${release}${shared_ext}$major'
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18594 shlibpath_var=LD_LIBRARY_PATH
18900rdos*)
18901 dynamic_linker=no
18595 ;;
18596
18597solaris*)
18598 version_type=linux
18599 need_lib_prefix=no
18600 need_version=no
18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18602 soname_spec='${libname}${release}${shared_ext}$major'
18603 shlibpath_var=LD_LIBRARY_PATH
18604 shlibpath_overrides_runpath=yes
18605 hardcode_into_libs=yes
18606 # ldd complains unless libraries are executable
18607 postinstall_cmds='chmod +x $lib'
18608 ;;
18609
18610sunos4*)
18611 version_type=sunos
18612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18613 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18614 shlibpath_var=LD_LIBRARY_PATH
18615 shlibpath_overrides_runpath=yes
18616 if test "$with_gnu_ld" = yes; then
18617 need_lib_prefix=no
18618 fi
18619 need_version=yes
18620 ;;
18621
18902 ;;
18903
18904solaris*)
18905 version_type=linux
18906 need_lib_prefix=no
18907 need_version=no
18908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18909 soname_spec='${libname}${release}${shared_ext}$major'
18910 shlibpath_var=LD_LIBRARY_PATH
18911 shlibpath_overrides_runpath=yes
18912 hardcode_into_libs=yes
18913 # ldd complains unless libraries are executable
18914 postinstall_cmds='chmod +x $lib'
18915 ;;
18916
18917sunos4*)
18918 version_type=sunos
18919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18921 shlibpath_var=LD_LIBRARY_PATH
18922 shlibpath_overrides_runpath=yes
18923 if test "$with_gnu_ld" = yes; then
18924 need_lib_prefix=no
18925 fi
18926 need_version=yes
18927 ;;
18928
18622sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18929sysv4 | sysv4.3*)
18623 version_type=linux
18624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18625 soname_spec='${libname}${release}${shared_ext}$major'
18626 shlibpath_var=LD_LIBRARY_PATH
18627 case $host_vendor in
18628 sni)
18629 shlibpath_overrides_runpath=no
18630 need_lib_prefix=no
18631 export_dynamic_flag_spec='${wl}-Blargedynsym'
18632 runpath_var=LD_RUN_PATH
18633 ;;
18634 siemens)
18635 need_lib_prefix=no
18636 ;;
18637 motorola)
18638 need_lib_prefix=no
18639 need_version=no
18640 shlibpath_overrides_runpath=no
18641 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18642 ;;
18643 esac
18644 ;;
18645
18646sysv4*MP*)
18647 if test -d /usr/nec ;then
18648 version_type=linux
18649 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18650 soname_spec='$libname${shared_ext}.$major'
18651 shlibpath_var=LD_LIBRARY_PATH
18652 fi
18653 ;;
18654
18930 version_type=linux
18931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18932 soname_spec='${libname}${release}${shared_ext}$major'
18933 shlibpath_var=LD_LIBRARY_PATH
18934 case $host_vendor in
18935 sni)
18936 shlibpath_overrides_runpath=no
18937 need_lib_prefix=no
18938 export_dynamic_flag_spec='${wl}-Blargedynsym'
18939 runpath_var=LD_RUN_PATH
18940 ;;
18941 siemens)
18942 need_lib_prefix=no
18943 ;;
18944 motorola)
18945 need_lib_prefix=no
18946 need_version=no
18947 shlibpath_overrides_runpath=no
18948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18949 ;;
18950 esac
18951 ;;
18952
18953sysv4*MP*)
18954 if test -d /usr/nec ;then
18955 version_type=linux
18956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18957 soname_spec='$libname${shared_ext}.$major'
18958 shlibpath_var=LD_LIBRARY_PATH
18959 fi
18960 ;;
18961
18962sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18963 version_type=freebsd-elf
18964 need_lib_prefix=no
18965 need_version=no
18966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18967 soname_spec='${libname}${release}${shared_ext}$major'
18968 shlibpath_var=LD_LIBRARY_PATH
18969 hardcode_into_libs=yes
18970 if test "$with_gnu_ld" = yes; then
18971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18972 shlibpath_overrides_runpath=no
18973 else
18974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18975 shlibpath_overrides_runpath=yes
18976 case $host_os in
18977 sco3.2v5*)
18978 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18979 ;;
18980 esac
18981 fi
18982 sys_lib_dlsearch_path_spec='/usr/lib'
18983 ;;
18984
18655uts4*)
18656 version_type=linux
18657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18658 soname_spec='${libname}${release}${shared_ext}$major'
18659 shlibpath_var=LD_LIBRARY_PATH
18660 ;;
18661
18662*)
18663 dynamic_linker=no
18664 ;;
18665esac
18666{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18667echo "${ECHO_T}$dynamic_linker" >&6; }
18668test "$dynamic_linker" = no && can_build_shared=no
18669
18985uts4*)
18986 version_type=linux
18987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18988 soname_spec='${libname}${release}${shared_ext}$major'
18989 shlibpath_var=LD_LIBRARY_PATH
18990 ;;
18991
18992*)
18993 dynamic_linker=no
18994 ;;
18995esac
18996{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18997echo "${ECHO_T}$dynamic_linker" >&6; }
18998test "$dynamic_linker" = no && can_build_shared=no
18999
19000if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19002else
19003 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19004fi
19005
19006sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19007if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19008 echo $ECHO_N "(cached) $ECHO_C" >&6
19009else
19010 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19011fi
19012
19013sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19014
19015variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19016if test "$GCC" = yes; then
19017 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19018fi
19019
18670{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18671echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18672hardcode_action_GCJ=
18673if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18674 test -n "$runpath_var_GCJ" || \
18675 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18676
18677 # We can hardcode non-existant directories.
18678 if test "$hardcode_direct_GCJ" != no &&
18679 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18680 # have to relink, otherwise we might link with an installed library
18681 # when we should be linking with a yet-to-be-installed one
18682 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18683 test "$hardcode_minus_L_GCJ" != no; then
18684 # Linking always hardcodes the temporary library directory.
18685 hardcode_action_GCJ=relink
18686 else
18687 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18688 hardcode_action_GCJ=immediate
18689 fi
18690else
18691 # We cannot hardcode anything, or else we can only hardcode existing
18692 # directories.
18693 hardcode_action_GCJ=unsupported
18694fi
18695{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18696echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18697
18698if test "$hardcode_action_GCJ" = relink; then
18699 # Fast installation is not supported
18700 enable_fast_install=no
18701elif test "$shlibpath_overrides_runpath" = yes ||
18702 test "$enable_shared" = no; then
18703 # Fast installation is not necessary
18704 enable_fast_install=needless
18705fi
18706
19020{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19021echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19022hardcode_action_GCJ=
19023if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19024 test -n "$runpath_var_GCJ" || \
19025 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19026
19027 # We can hardcode non-existant directories.
19028 if test "$hardcode_direct_GCJ" != no &&
19029 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19030 # have to relink, otherwise we might link with an installed library
19031 # when we should be linking with a yet-to-be-installed one
19032 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19033 test "$hardcode_minus_L_GCJ" != no; then
19034 # Linking always hardcodes the temporary library directory.
19035 hardcode_action_GCJ=relink
19036 else
19037 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19038 hardcode_action_GCJ=immediate
19039 fi
19040else
19041 # We cannot hardcode anything, or else we can only hardcode existing
19042 # directories.
19043 hardcode_action_GCJ=unsupported
19044fi
19045{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19046echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19047
19048if test "$hardcode_action_GCJ" = relink; then
19049 # Fast installation is not supported
19050 enable_fast_install=no
19051elif test "$shlibpath_overrides_runpath" = yes ||
19052 test "$enable_shared" = no; then
19053 # Fast installation is not necessary
19054 enable_fast_install=needless
19055fi
19056
18707striplib=
18708old_striplib=
18709{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18710echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18711if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18712 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18713 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18714 { echo "$as_me:$LINENO: result: yes" >&5
18715echo "${ECHO_T}yes" >&6; }
18716else
18717# FIXME - insert some real tests, host_os isn't really good enough
18718 case $host_os in
18719 darwin*)
18720 if test -n "$STRIP" ; then
18721 striplib="$STRIP -x"
18722 { echo "$as_me:$LINENO: result: yes" >&5
18723echo "${ECHO_T}yes" >&6; }
18724 else
18725 { echo "$as_me:$LINENO: result: no" >&5
18726echo "${ECHO_T}no" >&6; }
18727fi
18728 ;;
18729 *)
18730 { echo "$as_me:$LINENO: result: no" >&5
18731echo "${ECHO_T}no" >&6; }
18732 ;;
18733 esac
18734fi
18735
19057
18736if test "x$enable_dlopen" != xyes; then
18737 enable_dlopen=unknown
18738 enable_dlopen_self=unknown
18739 enable_dlopen_self_static=unknown
18740else
18741 lt_cv_dlopen=no
18742 lt_cv_dlopen_libs=
18743
18744 case $host_os in
18745 beos*)
18746 lt_cv_dlopen="load_add_on"
18747 lt_cv_dlopen_libs=
18748 lt_cv_dlopen_self=yes
18749 ;;
18750
18751 mingw* | pw32*)
18752 lt_cv_dlopen="LoadLibrary"
18753 lt_cv_dlopen_libs=
18754 ;;
18755
18756 cygwin*)
18757 lt_cv_dlopen="dlopen"
18758 lt_cv_dlopen_libs=
18759 ;;
18760
18761 darwin*)
18762 # if libdl is installed we need to link against it
18763 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18764echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18765if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18767else
18768 ac_check_lib_save_LIBS=$LIBS
18769LIBS="-ldl $LIBS"
18770cat >conftest.$ac_ext <<_ACEOF
18771/* confdefs.h. */
18772_ACEOF
18773cat confdefs.h >>conftest.$ac_ext
18774cat >>conftest.$ac_ext <<_ACEOF
18775/* end confdefs.h. */
18776
18777/* Override any GCC internal prototype to avoid an error.
18778 Use char because int might match the return type of a GCC
18779 builtin and then its argument prototype would still apply. */
18780#ifdef __cplusplus
18781extern "C"
18782#endif
18783char dlopen ();
18784int
18785main ()
18786{
18787return dlopen ();
18788 ;
18789 return 0;
18790}
18791_ACEOF
18792rm -f conftest.$ac_objext conftest$ac_exeext
18793if { (ac_try="$ac_link"
18794case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18797esac
18798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_link") 2>conftest.er1
18800 ac_status=$?
18801 grep -v '^ *+' conftest.er1 >conftest.err
18802 rm -f conftest.er1
18803 cat conftest.err >&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } && {
18806 test -z "$ac_c_werror_flag" ||
18807 test ! -s conftest.err
18808 } && test -s conftest$ac_exeext &&
18809 $as_test_x conftest$ac_exeext; then
18810 ac_cv_lib_dl_dlopen=yes
18811else
18812 echo "$as_me: failed program was:" >&5
18813sed 's/^/| /' conftest.$ac_ext >&5
18814
18815 ac_cv_lib_dl_dlopen=no
18816fi
18817
18818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18819 conftest$ac_exeext conftest.$ac_ext
18820LIBS=$ac_check_lib_save_LIBS
18821fi
18822{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18823echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18824if test $ac_cv_lib_dl_dlopen = yes; then
18825 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18826else
18827
18828 lt_cv_dlopen="dyld"
18829 lt_cv_dlopen_libs=
18830 lt_cv_dlopen_self=yes
18831
18832fi
18833
18834 ;;
18835
18836 *)
18837 { echo "$as_me:$LINENO: checking for shl_load" >&5
18838echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18839if test "${ac_cv_func_shl_load+set}" = set; then
18840 echo $ECHO_N "(cached) $ECHO_C" >&6
18841else
18842 cat >conftest.$ac_ext <<_ACEOF
18843/* confdefs.h. */
18844_ACEOF
18845cat confdefs.h >>conftest.$ac_ext
18846cat >>conftest.$ac_ext <<_ACEOF
18847/* end confdefs.h. */
18848/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18850#define shl_load innocuous_shl_load
18851
18852/* System header to define __stub macros and hopefully few prototypes,
18853 which can conflict with char shl_load (); below.
18854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18855 <limits.h> exists even on freestanding compilers. */
18856
18857#ifdef __STDC__
18858# include <limits.h>
18859#else
18860# include <assert.h>
18861#endif
18862
18863#undef shl_load
18864
18865/* Override any GCC internal prototype to avoid an error.
18866 Use char because int might match the return type of a GCC
18867 builtin and then its argument prototype would still apply. */
18868#ifdef __cplusplus
18869extern "C"
18870#endif
18871char shl_load ();
18872/* The GNU C library defines this for functions which it implements
18873 to always fail with ENOSYS. Some functions are actually named
18874 something starting with __ and the normal name is an alias. */
18875#if defined __stub_shl_load || defined __stub___shl_load
18876choke me
18877#endif
18878
18879int
18880main ()
18881{
18882return shl_load ();
18883 ;
18884 return 0;
18885}
18886_ACEOF
18887rm -f conftest.$ac_objext conftest$ac_exeext
18888if { (ac_try="$ac_link"
18889case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18892esac
18893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_link") 2>conftest.er1
18895 ac_status=$?
18896 grep -v '^ *+' conftest.er1 >conftest.err
18897 rm -f conftest.er1
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } && {
18901 test -z "$ac_c_werror_flag" ||
18902 test ! -s conftest.err
18903 } && test -s conftest$ac_exeext &&
18904 $as_test_x conftest$ac_exeext; then
18905 ac_cv_func_shl_load=yes
18906else
18907 echo "$as_me: failed program was:" >&5
18908sed 's/^/| /' conftest.$ac_ext >&5
18909
18910 ac_cv_func_shl_load=no
18911fi
18912
18913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18914 conftest$ac_exeext conftest.$ac_ext
18915fi
18916{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18917echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18918if test $ac_cv_func_shl_load = yes; then
18919 lt_cv_dlopen="shl_load"
18920else
18921 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18922echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18923if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18925else
18926 ac_check_lib_save_LIBS=$LIBS
18927LIBS="-ldld $LIBS"
18928cat >conftest.$ac_ext <<_ACEOF
18929/* confdefs.h. */
18930_ACEOF
18931cat confdefs.h >>conftest.$ac_ext
18932cat >>conftest.$ac_ext <<_ACEOF
18933/* end confdefs.h. */
18934
18935/* Override any GCC internal prototype to avoid an error.
18936 Use char because int might match the return type of a GCC
18937 builtin and then its argument prototype would still apply. */
18938#ifdef __cplusplus
18939extern "C"
18940#endif
18941char shl_load ();
18942int
18943main ()
18944{
18945return shl_load ();
18946 ;
18947 return 0;
18948}
18949_ACEOF
18950rm -f conftest.$ac_objext conftest$ac_exeext
18951if { (ac_try="$ac_link"
18952case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18955esac
18956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_link") 2>conftest.er1
18958 ac_status=$?
18959 grep -v '^ *+' conftest.er1 >conftest.err
18960 rm -f conftest.er1
18961 cat conftest.err >&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } && {
18964 test -z "$ac_c_werror_flag" ||
18965 test ! -s conftest.err
18966 } && test -s conftest$ac_exeext &&
18967 $as_test_x conftest$ac_exeext; then
18968 ac_cv_lib_dld_shl_load=yes
18969else
18970 echo "$as_me: failed program was:" >&5
18971sed 's/^/| /' conftest.$ac_ext >&5
18972
18973 ac_cv_lib_dld_shl_load=no
18974fi
18975
18976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18977 conftest$ac_exeext conftest.$ac_ext
18978LIBS=$ac_check_lib_save_LIBS
18979fi
18980{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18981echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18982if test $ac_cv_lib_dld_shl_load = yes; then
18983 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18984else
18985 { echo "$as_me:$LINENO: checking for dlopen" >&5
18986echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18987if test "${ac_cv_func_dlopen+set}" = set; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18989else
18990 cat >conftest.$ac_ext <<_ACEOF
18991/* confdefs.h. */
18992_ACEOF
18993cat confdefs.h >>conftest.$ac_ext
18994cat >>conftest.$ac_ext <<_ACEOF
18995/* end confdefs.h. */
18996/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18998#define dlopen innocuous_dlopen
18999
19000/* System header to define __stub macros and hopefully few prototypes,
19001 which can conflict with char dlopen (); below.
19002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19003 <limits.h> exists even on freestanding compilers. */
19004
19005#ifdef __STDC__
19006# include <limits.h>
19007#else
19008# include <assert.h>
19009#endif
19010
19011#undef dlopen
19012
19013/* Override any GCC internal prototype to avoid an error.
19014 Use char because int might match the return type of a GCC
19015 builtin and then its argument prototype would still apply. */
19016#ifdef __cplusplus
19017extern "C"
19018#endif
19019char dlopen ();
19020/* The GNU C library defines this for functions which it implements
19021 to always fail with ENOSYS. Some functions are actually named
19022 something starting with __ and the normal name is an alias. */
19023#if defined __stub_dlopen || defined __stub___dlopen
19024choke me
19025#endif
19026
19027int
19028main ()
19029{
19030return dlopen ();
19031 ;
19032 return 0;
19033}
19034_ACEOF
19035rm -f conftest.$ac_objext conftest$ac_exeext
19036if { (ac_try="$ac_link"
19037case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19040esac
19041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_link") 2>conftest.er1
19043 ac_status=$?
19044 grep -v '^ *+' conftest.er1 >conftest.err
19045 rm -f conftest.er1
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } && {
19049 test -z "$ac_c_werror_flag" ||
19050 test ! -s conftest.err
19051 } && test -s conftest$ac_exeext &&
19052 $as_test_x conftest$ac_exeext; then
19053 ac_cv_func_dlopen=yes
19054else
19055 echo "$as_me: failed program was:" >&5
19056sed 's/^/| /' conftest.$ac_ext >&5
19057
19058 ac_cv_func_dlopen=no
19059fi
19060
19061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19062 conftest$ac_exeext conftest.$ac_ext
19063fi
19064{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19065echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
19066if test $ac_cv_func_dlopen = yes; then
19067 lt_cv_dlopen="dlopen"
19068else
19069 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19070echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19071if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19073else
19074 ac_check_lib_save_LIBS=$LIBS
19075LIBS="-ldl $LIBS"
19076cat >conftest.$ac_ext <<_ACEOF
19077/* confdefs.h. */
19078_ACEOF
19079cat confdefs.h >>conftest.$ac_ext
19080cat >>conftest.$ac_ext <<_ACEOF
19081/* end confdefs.h. */
19082
19083/* Override any GCC internal prototype to avoid an error.
19084 Use char because int might match the return type of a GCC
19085 builtin and then its argument prototype would still apply. */
19086#ifdef __cplusplus
19087extern "C"
19088#endif
19089char dlopen ();
19090int
19091main ()
19092{
19093return dlopen ();
19094 ;
19095 return 0;
19096}
19097_ACEOF
19098rm -f conftest.$ac_objext conftest$ac_exeext
19099if { (ac_try="$ac_link"
19100case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19103esac
19104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_link") 2>conftest.er1
19106 ac_status=$?
19107 grep -v '^ *+' conftest.er1 >conftest.err
19108 rm -f conftest.er1
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } && {
19112 test -z "$ac_c_werror_flag" ||
19113 test ! -s conftest.err
19114 } && test -s conftest$ac_exeext &&
19115 $as_test_x conftest$ac_exeext; then
19116 ac_cv_lib_dl_dlopen=yes
19117else
19118 echo "$as_me: failed program was:" >&5
19119sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 ac_cv_lib_dl_dlopen=no
19122fi
19123
19124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19125 conftest$ac_exeext conftest.$ac_ext
19126LIBS=$ac_check_lib_save_LIBS
19127fi
19128{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19129echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19130if test $ac_cv_lib_dl_dlopen = yes; then
19131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19132else
19133 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19134echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19135if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19137else
19138 ac_check_lib_save_LIBS=$LIBS
19139LIBS="-lsvld $LIBS"
19140cat >conftest.$ac_ext <<_ACEOF
19141/* confdefs.h. */
19142_ACEOF
19143cat confdefs.h >>conftest.$ac_ext
19144cat >>conftest.$ac_ext <<_ACEOF
19145/* end confdefs.h. */
19146
19147/* Override any GCC internal prototype to avoid an error.
19148 Use char because int might match the return type of a GCC
19149 builtin and then its argument prototype would still apply. */
19150#ifdef __cplusplus
19151extern "C"
19152#endif
19153char dlopen ();
19154int
19155main ()
19156{
19157return dlopen ();
19158 ;
19159 return 0;
19160}
19161_ACEOF
19162rm -f conftest.$ac_objext conftest$ac_exeext
19163if { (ac_try="$ac_link"
19164case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19167esac
19168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_link") 2>conftest.er1
19170 ac_status=$?
19171 grep -v '^ *+' conftest.er1 >conftest.err
19172 rm -f conftest.er1
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } && {
19176 test -z "$ac_c_werror_flag" ||
19177 test ! -s conftest.err
19178 } && test -s conftest$ac_exeext &&
19179 $as_test_x conftest$ac_exeext; then
19180 ac_cv_lib_svld_dlopen=yes
19181else
19182 echo "$as_me: failed program was:" >&5
19183sed 's/^/| /' conftest.$ac_ext >&5
19184
19185 ac_cv_lib_svld_dlopen=no
19186fi
19187
19188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19189 conftest$ac_exeext conftest.$ac_ext
19190LIBS=$ac_check_lib_save_LIBS
19191fi
19192{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19193echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
19194if test $ac_cv_lib_svld_dlopen = yes; then
19195 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19196else
19197 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19198echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
19199if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19201else
19202 ac_check_lib_save_LIBS=$LIBS
19203LIBS="-ldld $LIBS"
19204cat >conftest.$ac_ext <<_ACEOF
19205/* confdefs.h. */
19206_ACEOF
19207cat confdefs.h >>conftest.$ac_ext
19208cat >>conftest.$ac_ext <<_ACEOF
19209/* end confdefs.h. */
19210
19211/* Override any GCC internal prototype to avoid an error.
19212 Use char because int might match the return type of a GCC
19213 builtin and then its argument prototype would still apply. */
19214#ifdef __cplusplus
19215extern "C"
19216#endif
19217char dld_link ();
19218int
19219main ()
19220{
19221return dld_link ();
19222 ;
19223 return 0;
19224}
19225_ACEOF
19226rm -f conftest.$ac_objext conftest$ac_exeext
19227if { (ac_try="$ac_link"
19228case "(($ac_try" in
19229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230 *) ac_try_echo=$ac_try;;
19231esac
19232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19233 (eval "$ac_link") 2>conftest.er1
19234 ac_status=$?
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } && {
19240 test -z "$ac_c_werror_flag" ||
19241 test ! -s conftest.err
19242 } && test -s conftest$ac_exeext &&
19243 $as_test_x conftest$ac_exeext; then
19244 ac_cv_lib_dld_dld_link=yes
19245else
19246 echo "$as_me: failed program was:" >&5
19247sed 's/^/| /' conftest.$ac_ext >&5
19248
19249 ac_cv_lib_dld_dld_link=no
19250fi
19251
19252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19253 conftest$ac_exeext conftest.$ac_ext
19254LIBS=$ac_check_lib_save_LIBS
19255fi
19256{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19257echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
19258if test $ac_cv_lib_dld_dld_link = yes; then
19259 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19260fi
19261
19262
19263fi
19264
19265
19266fi
19267
19268
19269fi
19270
19271
19272fi
19273
19274
19275fi
19276
19277 ;;
19278 esac
19279
19280 if test "x$lt_cv_dlopen" != xno; then
19281 enable_dlopen=yes
19282 else
19283 enable_dlopen=no
19284 fi
19285
19286 case $lt_cv_dlopen in
19287 dlopen)
19288 save_CPPFLAGS="$CPPFLAGS"
19289 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19290
19291 save_LDFLAGS="$LDFLAGS"
19292 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19293
19294 save_LIBS="$LIBS"
19295 LIBS="$lt_cv_dlopen_libs $LIBS"
19296
19297 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19298echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19299if test "${lt_cv_dlopen_self+set}" = set; then
19300 echo $ECHO_N "(cached) $ECHO_C" >&6
19301else
19302 if test "$cross_compiling" = yes; then :
19303 lt_cv_dlopen_self=cross
19304else
19305 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19306 lt_status=$lt_dlunknown
19307 cat > conftest.$ac_ext <<EOF
19308#line 19308 "configure"
19309#include "confdefs.h"
19310
19311#if HAVE_DLFCN_H
19312#include <dlfcn.h>
19313#endif
19314
19315#include <stdio.h>
19316
19317#ifdef RTLD_GLOBAL
19318# define LT_DLGLOBAL RTLD_GLOBAL
19319#else
19320# ifdef DL_GLOBAL
19321# define LT_DLGLOBAL DL_GLOBAL
19322# else
19323# define LT_DLGLOBAL 0
19324# endif
19325#endif
19326
19327/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19328 find out it does not work in some platform. */
19329#ifndef LT_DLLAZY_OR_NOW
19330# ifdef RTLD_LAZY
19331# define LT_DLLAZY_OR_NOW RTLD_LAZY
19332# else
19333# ifdef DL_LAZY
19334# define LT_DLLAZY_OR_NOW DL_LAZY
19335# else
19336# ifdef RTLD_NOW
19337# define LT_DLLAZY_OR_NOW RTLD_NOW
19338# else
19339# ifdef DL_NOW
19340# define LT_DLLAZY_OR_NOW DL_NOW
19341# else
19342# define LT_DLLAZY_OR_NOW 0
19343# endif
19344# endif
19345# endif
19346# endif
19347#endif
19348
19349#ifdef __cplusplus
19350extern "C" void exit (int);
19351#endif
19352
19353void fnord() { int i=42;}
19354int main ()
19355{
19356 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19357 int status = $lt_dlunknown;
19358
19359 if (self)
19360 {
19361 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19362 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19363 /* dlclose (self); */
19364 }
19365
19366 exit (status);
19367}
19368EOF
19369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19370 (eval $ac_link) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19374 (./conftest; exit; ) 2>/dev/null
19375 lt_status=$?
19376 case x$lt_status in
19377 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19378 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19379 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19380 esac
19381 else :
19382 # compilation failed
19383 lt_cv_dlopen_self=no
19384 fi
19385fi
19386rm -fr conftest*
19387
19388
19389fi
19390{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19391echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19392
19393 if test "x$lt_cv_dlopen_self" = xyes; then
19394 LDFLAGS="$LDFLAGS $link_static_flag"
19395 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19396echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19397if test "${lt_cv_dlopen_self_static+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19399else
19400 if test "$cross_compiling" = yes; then :
19401 lt_cv_dlopen_self_static=cross
19402else
19403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19404 lt_status=$lt_dlunknown
19405 cat > conftest.$ac_ext <<EOF
19406#line 19406 "configure"
19407#include "confdefs.h"
19408
19409#if HAVE_DLFCN_H
19410#include <dlfcn.h>
19411#endif
19412
19413#include <stdio.h>
19414
19415#ifdef RTLD_GLOBAL
19416# define LT_DLGLOBAL RTLD_GLOBAL
19417#else
19418# ifdef DL_GLOBAL
19419# define LT_DLGLOBAL DL_GLOBAL
19420# else
19421# define LT_DLGLOBAL 0
19422# endif
19423#endif
19424
19425/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19426 find out it does not work in some platform. */
19427#ifndef LT_DLLAZY_OR_NOW
19428# ifdef RTLD_LAZY
19429# define LT_DLLAZY_OR_NOW RTLD_LAZY
19430# else
19431# ifdef DL_LAZY
19432# define LT_DLLAZY_OR_NOW DL_LAZY
19433# else
19434# ifdef RTLD_NOW
19435# define LT_DLLAZY_OR_NOW RTLD_NOW
19436# else
19437# ifdef DL_NOW
19438# define LT_DLLAZY_OR_NOW DL_NOW
19439# else
19440# define LT_DLLAZY_OR_NOW 0
19441# endif
19442# endif
19443# endif
19444# endif
19445#endif
19446
19447#ifdef __cplusplus
19448extern "C" void exit (int);
19449#endif
19450
19451void fnord() { int i=42;}
19452int main ()
19453{
19454 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19455 int status = $lt_dlunknown;
19456
19457 if (self)
19458 {
19459 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19460 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19461 /* dlclose (self); */
19462 }
19463
19464 exit (status);
19465}
19466EOF
19467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19468 (eval $ac_link) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19472 (./conftest; exit; ) 2>/dev/null
19473 lt_status=$?
19474 case x$lt_status in
19475 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19476 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19477 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19478 esac
19479 else :
19480 # compilation failed
19481 lt_cv_dlopen_self_static=no
19482 fi
19483fi
19484rm -fr conftest*
19485
19486
19487fi
19488{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19489echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19490 fi
19491
19492 CPPFLAGS="$save_CPPFLAGS"
19493 LDFLAGS="$save_LDFLAGS"
19494 LIBS="$save_LIBS"
19495 ;;
19496 esac
19497
19498 case $lt_cv_dlopen_self in
19499 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19500 *) enable_dlopen_self=unknown ;;
19501 esac
19502
19503 case $lt_cv_dlopen_self_static in
19504 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19505 *) enable_dlopen_self_static=unknown ;;
19506 esac
19507fi
19508
19509
19510# The else clause should only fire when bootstrapping the
19511# libtool distribution, otherwise you forgot to ship ltmain.sh
19512# with your package, and you will get complaints that there are
19513# no rules to generate ltmain.sh.
19514if test -f "$ltmain"; then
19515 # See if we are running on zsh, and set the options which allow our commands through
19516 # without removal of \ escapes.
19517 if test -n "${ZSH_VERSION+set}" ; then
19518 setopt NO_GLOB_SUBST
19519 fi
19520 # Now quote all the things that may contain metacharacters while being
19521 # careful not to overquote the AC_SUBSTed values. We take copies of the
19522 # variables and quote the copies for generation of the libtool script.
19058# The else clause should only fire when bootstrapping the
19059# libtool distribution, otherwise you forgot to ship ltmain.sh
19060# with your package, and you will get complaints that there are
19061# no rules to generate ltmain.sh.
19062if test -f "$ltmain"; then
19063 # See if we are running on zsh, and set the options which allow our commands through
19064 # without removal of \ escapes.
19065 if test -n "${ZSH_VERSION+set}" ; then
19066 setopt NO_GLOB_SUBST
19067 fi
19068 # Now quote all the things that may contain metacharacters while being
19069 # careful not to overquote the AC_SUBSTed values. We take copies of the
19070 # variables and quote the copies for generation of the libtool script.
19523 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19071 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19524 SED SHELL STRIP \
19525 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19526 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19527 deplibs_check_method reload_flag reload_cmds need_locks \
19528 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19529 lt_cv_sys_global_symbol_to_c_name_address \
19530 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19531 old_postinstall_cmds old_postuninstall_cmds \
19532 compiler_GCJ \
19533 CC_GCJ \
19534 LD_GCJ \
19535 lt_prog_compiler_wl_GCJ \
19536 lt_prog_compiler_pic_GCJ \
19537 lt_prog_compiler_static_GCJ \
19538 lt_prog_compiler_no_builtin_flag_GCJ \
19539 export_dynamic_flag_spec_GCJ \
19540 thread_safe_flag_spec_GCJ \
19541 whole_archive_flag_spec_GCJ \
19542 enable_shared_with_static_runtimes_GCJ \
19543 old_archive_cmds_GCJ \
19544 old_archive_from_new_cmds_GCJ \
19545 predep_objects_GCJ \
19546 postdep_objects_GCJ \
19547 predeps_GCJ \
19548 postdeps_GCJ \
19549 compiler_lib_search_path_GCJ \
19072 SED SHELL STRIP \
19073 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19074 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19075 deplibs_check_method reload_flag reload_cmds need_locks \
19076 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19077 lt_cv_sys_global_symbol_to_c_name_address \
19078 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19079 old_postinstall_cmds old_postuninstall_cmds \
19080 compiler_GCJ \
19081 CC_GCJ \
19082 LD_GCJ \
19083 lt_prog_compiler_wl_GCJ \
19084 lt_prog_compiler_pic_GCJ \
19085 lt_prog_compiler_static_GCJ \
19086 lt_prog_compiler_no_builtin_flag_GCJ \
19087 export_dynamic_flag_spec_GCJ \
19088 thread_safe_flag_spec_GCJ \
19089 whole_archive_flag_spec_GCJ \
19090 enable_shared_with_static_runtimes_GCJ \
19091 old_archive_cmds_GCJ \
19092 old_archive_from_new_cmds_GCJ \
19093 predep_objects_GCJ \
19094 postdep_objects_GCJ \
19095 predeps_GCJ \
19096 postdeps_GCJ \
19097 compiler_lib_search_path_GCJ \
19098 compiler_lib_search_dirs_GCJ \
19550 archive_cmds_GCJ \
19551 archive_expsym_cmds_GCJ \
19552 postinstall_cmds_GCJ \
19553 postuninstall_cmds_GCJ \
19554 old_archive_from_expsyms_cmds_GCJ \
19555 allow_undefined_flag_GCJ \
19556 no_undefined_flag_GCJ \
19557 export_symbols_cmds_GCJ \
19558 hardcode_libdir_flag_spec_GCJ \
19559 hardcode_libdir_flag_spec_ld_GCJ \
19560 hardcode_libdir_separator_GCJ \
19561 hardcode_automatic_GCJ \
19562 module_cmds_GCJ \
19563 module_expsym_cmds_GCJ \
19564 lt_cv_prog_compiler_c_o_GCJ \
19099 archive_cmds_GCJ \
19100 archive_expsym_cmds_GCJ \
19101 postinstall_cmds_GCJ \
19102 postuninstall_cmds_GCJ \
19103 old_archive_from_expsyms_cmds_GCJ \
19104 allow_undefined_flag_GCJ \
19105 no_undefined_flag_GCJ \
19106 export_symbols_cmds_GCJ \
19107 hardcode_libdir_flag_spec_GCJ \
19108 hardcode_libdir_flag_spec_ld_GCJ \
19109 hardcode_libdir_separator_GCJ \
19110 hardcode_automatic_GCJ \
19111 module_cmds_GCJ \
19112 module_expsym_cmds_GCJ \
19113 lt_cv_prog_compiler_c_o_GCJ \
19114 fix_srcfile_path_GCJ \
19565 exclude_expsyms_GCJ \
19566 include_expsyms_GCJ; do
19567
19568 case $var in
19569 old_archive_cmds_GCJ | \
19570 old_archive_from_new_cmds_GCJ | \
19571 archive_cmds_GCJ | \
19572 archive_expsym_cmds_GCJ | \
19573 module_cmds_GCJ | \
19574 module_expsym_cmds_GCJ | \
19575 old_archive_from_expsyms_cmds_GCJ | \
19576 export_symbols_cmds_GCJ | \
19577 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19578 postinstall_cmds | postuninstall_cmds | \
19579 old_postinstall_cmds | old_postuninstall_cmds | \
19580 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19581 # Double-quote double-evaled strings.
19582 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19583 ;;
19584 *)
19585 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19586 ;;
19587 esac
19588 done
19589
19590 case $lt_echo in
19591 *'\$0 --fallback-echo"')
19592 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19593 ;;
19594 esac
19595
19596cfgfile="$ofile"
19597
19598 cat <<__EOF__ >> "$cfgfile"
19599# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19600
19601# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19602
19603# Shell to use when invoking shell scripts.
19604SHELL=$lt_SHELL
19605
19606# Whether or not to build shared libraries.
19607build_libtool_libs=$enable_shared
19608
19609# Whether or not to build static libraries.
19610build_old_libs=$enable_static
19611
19612# Whether or not to add -lc for building shared libraries.
19613build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19614
19615# Whether or not to disallow shared libs when runtime libs are static
19616allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19617
19618# Whether or not to optimize for fast installation.
19619fast_install=$enable_fast_install
19620
19621# The host system.
19622host_alias=$host_alias
19623host=$host
19624host_os=$host_os
19625
19626# The build system.
19627build_alias=$build_alias
19628build=$build
19629build_os=$build_os
19630
19631# An echo program that does not interpret backslashes.
19632echo=$lt_echo
19633
19634# The archiver.
19635AR=$lt_AR
19636AR_FLAGS=$lt_AR_FLAGS
19637
19638# A C compiler.
19639LTCC=$lt_LTCC
19640
19115 exclude_expsyms_GCJ \
19116 include_expsyms_GCJ; do
19117
19118 case $var in
19119 old_archive_cmds_GCJ | \
19120 old_archive_from_new_cmds_GCJ | \
19121 archive_cmds_GCJ | \
19122 archive_expsym_cmds_GCJ | \
19123 module_cmds_GCJ | \
19124 module_expsym_cmds_GCJ | \
19125 old_archive_from_expsyms_cmds_GCJ | \
19126 export_symbols_cmds_GCJ | \
19127 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19128 postinstall_cmds | postuninstall_cmds | \
19129 old_postinstall_cmds | old_postuninstall_cmds | \
19130 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19131 # Double-quote double-evaled strings.
19132 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19133 ;;
19134 *)
19135 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19136 ;;
19137 esac
19138 done
19139
19140 case $lt_echo in
19141 *'\$0 --fallback-echo"')
19142 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19143 ;;
19144 esac
19145
19146cfgfile="$ofile"
19147
19148 cat <<__EOF__ >> "$cfgfile"
19149# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19150
19151# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19152
19153# Shell to use when invoking shell scripts.
19154SHELL=$lt_SHELL
19155
19156# Whether or not to build shared libraries.
19157build_libtool_libs=$enable_shared
19158
19159# Whether or not to build static libraries.
19160build_old_libs=$enable_static
19161
19162# Whether or not to add -lc for building shared libraries.
19163build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19164
19165# Whether or not to disallow shared libs when runtime libs are static
19166allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19167
19168# Whether or not to optimize for fast installation.
19169fast_install=$enable_fast_install
19170
19171# The host system.
19172host_alias=$host_alias
19173host=$host
19174host_os=$host_os
19175
19176# The build system.
19177build_alias=$build_alias
19178build=$build
19179build_os=$build_os
19180
19181# An echo program that does not interpret backslashes.
19182echo=$lt_echo
19183
19184# The archiver.
19185AR=$lt_AR
19186AR_FLAGS=$lt_AR_FLAGS
19187
19188# A C compiler.
19189LTCC=$lt_LTCC
19190
19191# LTCC compiler flags.
19192LTCFLAGS=$lt_LTCFLAGS
19193
19641# A language-specific compiler.
19642CC=$lt_compiler_GCJ
19643
19644# Is the compiler the GNU C compiler?
19645with_gcc=$GCC_GCJ
19646
19647# An ERE matcher.
19648EGREP=$lt_EGREP
19649
19650# The linker used to build libraries.
19651LD=$lt_LD_GCJ
19652
19653# Whether we need hard or soft links.
19654LN_S=$lt_LN_S
19655
19656# A BSD-compatible nm program.
19657NM=$lt_NM
19658
19659# A symbol stripping program
19660STRIP=$lt_STRIP
19661
19662# Used to examine libraries when file_magic_cmd begins "file"
19663MAGIC_CMD=$MAGIC_CMD
19664
19665# Used on cygwin: DLL creation program.
19666DLLTOOL="$DLLTOOL"
19667
19668# Used on cygwin: object dumper.
19669OBJDUMP="$OBJDUMP"
19670
19671# Used on cygwin: assembler.
19672AS="$AS"
19673
19674# The name of the directory that contains temporary libtool files.
19675objdir=$objdir
19676
19677# How to create reloadable object files.
19678reload_flag=$lt_reload_flag
19679reload_cmds=$lt_reload_cmds
19680
19681# How to pass a linker flag through the compiler.
19682wl=$lt_lt_prog_compiler_wl_GCJ
19683
19684# Object file suffix (normally "o").
19685objext="$ac_objext"
19686
19687# Old archive suffix (normally "a").
19688libext="$libext"
19689
19690# Shared library suffix (normally ".so").
19691shrext_cmds='$shrext_cmds'
19692
19693# Executable file suffix (normally "").
19694exeext="$exeext"
19695
19696# Additional compiler flags for building library objects.
19697pic_flag=$lt_lt_prog_compiler_pic_GCJ
19698pic_mode=$pic_mode
19699
19700# What is the maximum length of a command?
19701max_cmd_len=$lt_cv_sys_max_cmd_len
19702
19703# Does compiler simultaneously support -c and -o options?
19704compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19705
19706# Must we lock files when doing compilation?
19707need_locks=$lt_need_locks
19708
19709# Do we need the lib prefix for modules?
19710need_lib_prefix=$need_lib_prefix
19711
19712# Do we need a version for libraries?
19713need_version=$need_version
19714
19715# Whether dlopen is supported.
19716dlopen_support=$enable_dlopen
19717
19718# Whether dlopen of programs is supported.
19719dlopen_self=$enable_dlopen_self
19720
19721# Whether dlopen of statically linked programs is supported.
19722dlopen_self_static=$enable_dlopen_self_static
19723
19724# Compiler flag to prevent dynamic linking.
19725link_static_flag=$lt_lt_prog_compiler_static_GCJ
19726
19727# Compiler flag to turn off builtin functions.
19728no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19729
19730# Compiler flag to allow reflexive dlopens.
19731export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19732
19733# Compiler flag to generate shared objects directly from archives.
19734whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19735
19736# Compiler flag to generate thread-safe objects.
19737thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19738
19739# Library versioning type.
19740version_type=$version_type
19741
19742# Format of library name prefix.
19743libname_spec=$lt_libname_spec
19744
19745# List of archive names. First name is the real one, the rest are links.
19746# The last name is the one that the linker finds with -lNAME.
19747library_names_spec=$lt_library_names_spec
19748
19749# The coded name of the library, if different from the real name.
19750soname_spec=$lt_soname_spec
19751
19752# Commands used to build and install an old-style archive.
19753RANLIB=$lt_RANLIB
19754old_archive_cmds=$lt_old_archive_cmds_GCJ
19755old_postinstall_cmds=$lt_old_postinstall_cmds
19756old_postuninstall_cmds=$lt_old_postuninstall_cmds
19757
19758# Create an old-style archive from a shared archive.
19759old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19760
19761# Create a temporary old-style archive to link instead of a shared archive.
19762old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19763
19764# Commands used to build and install a shared archive.
19765archive_cmds=$lt_archive_cmds_GCJ
19766archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19767postinstall_cmds=$lt_postinstall_cmds
19768postuninstall_cmds=$lt_postuninstall_cmds
19769
19770# Commands used to build a loadable module (assumed same as above if empty)
19771module_cmds=$lt_module_cmds_GCJ
19772module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19773
19774# Commands to strip libraries.
19775old_striplib=$lt_old_striplib
19776striplib=$lt_striplib
19777
19778# Dependencies to place before the objects being linked to create a
19779# shared library.
19780predep_objects=$lt_predep_objects_GCJ
19781
19782# Dependencies to place after the objects being linked to create a
19783# shared library.
19784postdep_objects=$lt_postdep_objects_GCJ
19785
19786# Dependencies to place before the objects being linked to create a
19787# shared library.
19788predeps=$lt_predeps_GCJ
19789
19790# Dependencies to place after the objects being linked to create a
19791# shared library.
19792postdeps=$lt_postdeps_GCJ
19793
19194# A language-specific compiler.
19195CC=$lt_compiler_GCJ
19196
19197# Is the compiler the GNU C compiler?
19198with_gcc=$GCC_GCJ
19199
19200# An ERE matcher.
19201EGREP=$lt_EGREP
19202
19203# The linker used to build libraries.
19204LD=$lt_LD_GCJ
19205
19206# Whether we need hard or soft links.
19207LN_S=$lt_LN_S
19208
19209# A BSD-compatible nm program.
19210NM=$lt_NM
19211
19212# A symbol stripping program
19213STRIP=$lt_STRIP
19214
19215# Used to examine libraries when file_magic_cmd begins "file"
19216MAGIC_CMD=$MAGIC_CMD
19217
19218# Used on cygwin: DLL creation program.
19219DLLTOOL="$DLLTOOL"
19220
19221# Used on cygwin: object dumper.
19222OBJDUMP="$OBJDUMP"
19223
19224# Used on cygwin: assembler.
19225AS="$AS"
19226
19227# The name of the directory that contains temporary libtool files.
19228objdir=$objdir
19229
19230# How to create reloadable object files.
19231reload_flag=$lt_reload_flag
19232reload_cmds=$lt_reload_cmds
19233
19234# How to pass a linker flag through the compiler.
19235wl=$lt_lt_prog_compiler_wl_GCJ
19236
19237# Object file suffix (normally "o").
19238objext="$ac_objext"
19239
19240# Old archive suffix (normally "a").
19241libext="$libext"
19242
19243# Shared library suffix (normally ".so").
19244shrext_cmds='$shrext_cmds'
19245
19246# Executable file suffix (normally "").
19247exeext="$exeext"
19248
19249# Additional compiler flags for building library objects.
19250pic_flag=$lt_lt_prog_compiler_pic_GCJ
19251pic_mode=$pic_mode
19252
19253# What is the maximum length of a command?
19254max_cmd_len=$lt_cv_sys_max_cmd_len
19255
19256# Does compiler simultaneously support -c and -o options?
19257compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19258
19259# Must we lock files when doing compilation?
19260need_locks=$lt_need_locks
19261
19262# Do we need the lib prefix for modules?
19263need_lib_prefix=$need_lib_prefix
19264
19265# Do we need a version for libraries?
19266need_version=$need_version
19267
19268# Whether dlopen is supported.
19269dlopen_support=$enable_dlopen
19270
19271# Whether dlopen of programs is supported.
19272dlopen_self=$enable_dlopen_self
19273
19274# Whether dlopen of statically linked programs is supported.
19275dlopen_self_static=$enable_dlopen_self_static
19276
19277# Compiler flag to prevent dynamic linking.
19278link_static_flag=$lt_lt_prog_compiler_static_GCJ
19279
19280# Compiler flag to turn off builtin functions.
19281no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19282
19283# Compiler flag to allow reflexive dlopens.
19284export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19285
19286# Compiler flag to generate shared objects directly from archives.
19287whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19288
19289# Compiler flag to generate thread-safe objects.
19290thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19291
19292# Library versioning type.
19293version_type=$version_type
19294
19295# Format of library name prefix.
19296libname_spec=$lt_libname_spec
19297
19298# List of archive names. First name is the real one, the rest are links.
19299# The last name is the one that the linker finds with -lNAME.
19300library_names_spec=$lt_library_names_spec
19301
19302# The coded name of the library, if different from the real name.
19303soname_spec=$lt_soname_spec
19304
19305# Commands used to build and install an old-style archive.
19306RANLIB=$lt_RANLIB
19307old_archive_cmds=$lt_old_archive_cmds_GCJ
19308old_postinstall_cmds=$lt_old_postinstall_cmds
19309old_postuninstall_cmds=$lt_old_postuninstall_cmds
19310
19311# Create an old-style archive from a shared archive.
19312old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19313
19314# Create a temporary old-style archive to link instead of a shared archive.
19315old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19316
19317# Commands used to build and install a shared archive.
19318archive_cmds=$lt_archive_cmds_GCJ
19319archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19320postinstall_cmds=$lt_postinstall_cmds
19321postuninstall_cmds=$lt_postuninstall_cmds
19322
19323# Commands used to build a loadable module (assumed same as above if empty)
19324module_cmds=$lt_module_cmds_GCJ
19325module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19326
19327# Commands to strip libraries.
19328old_striplib=$lt_old_striplib
19329striplib=$lt_striplib
19330
19331# Dependencies to place before the objects being linked to create a
19332# shared library.
19333predep_objects=$lt_predep_objects_GCJ
19334
19335# Dependencies to place after the objects being linked to create a
19336# shared library.
19337postdep_objects=$lt_postdep_objects_GCJ
19338
19339# Dependencies to place before the objects being linked to create a
19340# shared library.
19341predeps=$lt_predeps_GCJ
19342
19343# Dependencies to place after the objects being linked to create a
19344# shared library.
19345postdeps=$lt_postdeps_GCJ
19346
19347# The directories searched by this compiler when creating a shared
19348# library
19349compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19350
19794# The library search path used internally by the compiler when linking
19795# a shared library.
19796compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19797
19798# Method to check whether dependent libraries are shared objects.
19799deplibs_check_method=$lt_deplibs_check_method
19800
19801# Command to use when deplibs_check_method == file_magic.
19802file_magic_cmd=$lt_file_magic_cmd
19803
19804# Flag that allows shared libraries with undefined symbols to be built.
19805allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19806
19807# Flag that forces no undefined symbols.
19808no_undefined_flag=$lt_no_undefined_flag_GCJ
19809
19810# Commands used to finish a libtool library installation in a directory.
19811finish_cmds=$lt_finish_cmds
19812
19813# Same as above, but a single script fragment to be evaled but not shown.
19814finish_eval=$lt_finish_eval
19815
19816# Take the output of nm and produce a listing of raw symbols and C names.
19817global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19818
19819# Transform the output of nm in a proper C declaration
19820global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19821
19822# Transform the output of nm in a C name address pair
19823global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19824
19825# This is the shared library runtime path variable.
19826runpath_var=$runpath_var
19827
19828# This is the shared library path variable.
19829shlibpath_var=$shlibpath_var
19830
19831# Is shlibpath searched before the hard-coded library search path?
19832shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19833
19834# How to hardcode a shared library path into an executable.
19835hardcode_action=$hardcode_action_GCJ
19836
19837# Whether we should hardcode library paths into libraries.
19838hardcode_into_libs=$hardcode_into_libs
19839
19840# Flag to hardcode \$libdir into a binary during linking.
19841# This must work even if \$libdir does not exist.
19842hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19843
19844# If ld is used when linking, flag to hardcode \$libdir into
19845# a binary during linking. This must work even if \$libdir does
19846# not exist.
19847hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19848
19849# Whether we need a single -rpath flag with a separated argument.
19850hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19851
19852# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19853# resulting binary.
19854hardcode_direct=$hardcode_direct_GCJ
19855
19856# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19857# resulting binary.
19858hardcode_minus_L=$hardcode_minus_L_GCJ
19859
19860# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19861# the resulting binary.
19862hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19863
19864# Set to yes if building a shared library automatically hardcodes DIR into the library
19865# and all subsequent libraries and executables linked against it.
19866hardcode_automatic=$hardcode_automatic_GCJ
19867
19868# Variables whose values should be saved in libtool wrapper scripts and
19869# restored at relink time.
19870variables_saved_for_relink="$variables_saved_for_relink"
19871
19872# Whether libtool must link a program against all its dependency libraries.
19873link_all_deplibs=$link_all_deplibs_GCJ
19874
19875# Compile-time system search path for libraries
19876sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19877
19878# Run-time system search path for libraries
19879sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19880
19881# Fix the shell variable \$srcfile for the compiler.
19351# The library search path used internally by the compiler when linking
19352# a shared library.
19353compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19354
19355# Method to check whether dependent libraries are shared objects.
19356deplibs_check_method=$lt_deplibs_check_method
19357
19358# Command to use when deplibs_check_method == file_magic.
19359file_magic_cmd=$lt_file_magic_cmd
19360
19361# Flag that allows shared libraries with undefined symbols to be built.
19362allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19363
19364# Flag that forces no undefined symbols.
19365no_undefined_flag=$lt_no_undefined_flag_GCJ
19366
19367# Commands used to finish a libtool library installation in a directory.
19368finish_cmds=$lt_finish_cmds
19369
19370# Same as above, but a single script fragment to be evaled but not shown.
19371finish_eval=$lt_finish_eval
19372
19373# Take the output of nm and produce a listing of raw symbols and C names.
19374global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19375
19376# Transform the output of nm in a proper C declaration
19377global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19378
19379# Transform the output of nm in a C name address pair
19380global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19381
19382# This is the shared library runtime path variable.
19383runpath_var=$runpath_var
19384
19385# This is the shared library path variable.
19386shlibpath_var=$shlibpath_var
19387
19388# Is shlibpath searched before the hard-coded library search path?
19389shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19390
19391# How to hardcode a shared library path into an executable.
19392hardcode_action=$hardcode_action_GCJ
19393
19394# Whether we should hardcode library paths into libraries.
19395hardcode_into_libs=$hardcode_into_libs
19396
19397# Flag to hardcode \$libdir into a binary during linking.
19398# This must work even if \$libdir does not exist.
19399hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19400
19401# If ld is used when linking, flag to hardcode \$libdir into
19402# a binary during linking. This must work even if \$libdir does
19403# not exist.
19404hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19405
19406# Whether we need a single -rpath flag with a separated argument.
19407hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19408
19409# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19410# resulting binary.
19411hardcode_direct=$hardcode_direct_GCJ
19412
19413# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19414# resulting binary.
19415hardcode_minus_L=$hardcode_minus_L_GCJ
19416
19417# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19418# the resulting binary.
19419hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19420
19421# Set to yes if building a shared library automatically hardcodes DIR into the library
19422# and all subsequent libraries and executables linked against it.
19423hardcode_automatic=$hardcode_automatic_GCJ
19424
19425# Variables whose values should be saved in libtool wrapper scripts and
19426# restored at relink time.
19427variables_saved_for_relink="$variables_saved_for_relink"
19428
19429# Whether libtool must link a program against all its dependency libraries.
19430link_all_deplibs=$link_all_deplibs_GCJ
19431
19432# Compile-time system search path for libraries
19433sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19434
19435# Run-time system search path for libraries
19436sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19437
19438# Fix the shell variable \$srcfile for the compiler.
19882fix_srcfile_path="$fix_srcfile_path_GCJ"
19439fix_srcfile_path=$lt_fix_srcfile_path
19883
19884# Set to yes if exported symbols are required.
19885always_export_symbols=$always_export_symbols_GCJ
19886
19887# The commands to list exported symbols.
19888export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19889
19890# The commands to extract the exported symbol list from a shared archive.
19891extract_expsyms_cmds=$lt_extract_expsyms_cmds
19892
19893# Symbols that should not be listed in the preloaded symbols.
19894exclude_expsyms=$lt_exclude_expsyms_GCJ
19895
19896# Symbols that must always be exported.
19897include_expsyms=$lt_include_expsyms_GCJ
19898
19899# ### END LIBTOOL TAG CONFIG: $tagname
19900
19901__EOF__
19902
19903
19904else
19905 # If there is no Makefile yet, we rely on a make rule to execute
19906 # `config.status --recheck' to rerun these tests and create the
19907 # libtool script then.
19908 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19909 if test -f "$ltmain_in"; then
19910 test -f Makefile && make "$ltmain"
19911 fi
19912fi
19913
19914
19915ac_ext=c
19916ac_cpp='$CPP $CPPFLAGS'
19917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19919ac_compiler_gnu=$ac_cv_c_compiler_gnu
19920
19921CC="$lt_save_CC"
19922
19923 else
19924 tagname=""
19925 fi
19926 ;;
19927
19928 RC)
19929
19930
19931# Source file extension for RC test sources.
19932ac_ext=rc
19933
19934# Object file extension for compiled RC test sources.
19935objext=o
19936objext_RC=$objext
19937
19938# Code to be used in simple compile tests
19440
19441# Set to yes if exported symbols are required.
19442always_export_symbols=$always_export_symbols_GCJ
19443
19444# The commands to list exported symbols.
19445export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19446
19447# The commands to extract the exported symbol list from a shared archive.
19448extract_expsyms_cmds=$lt_extract_expsyms_cmds
19449
19450# Symbols that should not be listed in the preloaded symbols.
19451exclude_expsyms=$lt_exclude_expsyms_GCJ
19452
19453# Symbols that must always be exported.
19454include_expsyms=$lt_include_expsyms_GCJ
19455
19456# ### END LIBTOOL TAG CONFIG: $tagname
19457
19458__EOF__
19459
19460
19461else
19462 # If there is no Makefile yet, we rely on a make rule to execute
19463 # `config.status --recheck' to rerun these tests and create the
19464 # libtool script then.
19465 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19466 if test -f "$ltmain_in"; then
19467 test -f Makefile && make "$ltmain"
19468 fi
19469fi
19470
19471
19472ac_ext=c
19473ac_cpp='$CPP $CPPFLAGS'
19474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19476ac_compiler_gnu=$ac_cv_c_compiler_gnu
19477
19478CC="$lt_save_CC"
19479
19480 else
19481 tagname=""
19482 fi
19483 ;;
19484
19485 RC)
19486
19487
19488# Source file extension for RC test sources.
19489ac_ext=rc
19490
19491# Object file extension for compiled RC test sources.
19492objext=o
19493objext_RC=$objext
19494
19495# Code to be used in simple compile tests
19939lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19496lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19940
19941# Code to be used in simple link tests
19942lt_simple_link_test_code="$lt_simple_compile_test_code"
19943
19944# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19945
19946# If no C compiler was specified, use CC.
19947LTCC=${LTCC-"$CC"}
19948
19497
19498# Code to be used in simple link tests
19499lt_simple_link_test_code="$lt_simple_compile_test_code"
19500
19501# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19502
19503# If no C compiler was specified, use CC.
19504LTCC=${LTCC-"$CC"}
19505
19506# If no C compiler flags were specified, use CFLAGS.
19507LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19508
19949# Allow CC to be a program name with arguments.
19950compiler=$CC
19951
19952
19953# save warnings/boilerplate of simple test code
19954ac_outfile=conftest.$ac_objext
19509# Allow CC to be a program name with arguments.
19510compiler=$CC
19511
19512
19513# save warnings/boilerplate of simple test code
19514ac_outfile=conftest.$ac_objext
19955printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19956eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19515echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19516eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19957_lt_compiler_boilerplate=`cat conftest.err`
19958$rm conftest*
19959
19960ac_outfile=conftest.$ac_objext
19517_lt_compiler_boilerplate=`cat conftest.err`
19518$rm conftest*
19519
19520ac_outfile=conftest.$ac_objext
19961printf "$lt_simple_link_test_code" >conftest.$ac_ext
19962eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19521echo "$lt_simple_link_test_code" >conftest.$ac_ext
19522eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19963_lt_linker_boilerplate=`cat conftest.err`
19523_lt_linker_boilerplate=`cat conftest.err`
19964$rm conftest*
19524$rm -r conftest*
19965
19966
19967# Allow CC to be a program name with arguments.
19968lt_save_CC="$CC"
19969CC=${RC-"windres"}
19970compiler=$CC
19971compiler_RC=$CC
19972for cc_temp in $compiler""; do
19973 case $cc_temp in
19974 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19975 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19976 \-*) ;;
19977 *) break;;
19978 esac
19979done
19980cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19981
19982lt_cv_prog_compiler_c_o_RC=yes
19983
19984# The else clause should only fire when bootstrapping the
19985# libtool distribution, otherwise you forgot to ship ltmain.sh
19986# with your package, and you will get complaints that there are
19987# no rules to generate ltmain.sh.
19988if test -f "$ltmain"; then
19989 # See if we are running on zsh, and set the options which allow our commands through
19990 # without removal of \ escapes.
19991 if test -n "${ZSH_VERSION+set}" ; then
19992 setopt NO_GLOB_SUBST
19993 fi
19994 # Now quote all the things that may contain metacharacters while being
19995 # careful not to overquote the AC_SUBSTed values. We take copies of the
19996 # variables and quote the copies for generation of the libtool script.
19525
19526
19527# Allow CC to be a program name with arguments.
19528lt_save_CC="$CC"
19529CC=${RC-"windres"}
19530compiler=$CC
19531compiler_RC=$CC
19532for cc_temp in $compiler""; do
19533 case $cc_temp in
19534 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19535 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19536 \-*) ;;
19537 *) break;;
19538 esac
19539done
19540cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19541
19542lt_cv_prog_compiler_c_o_RC=yes
19543
19544# The else clause should only fire when bootstrapping the
19545# libtool distribution, otherwise you forgot to ship ltmain.sh
19546# with your package, and you will get complaints that there are
19547# no rules to generate ltmain.sh.
19548if test -f "$ltmain"; then
19549 # See if we are running on zsh, and set the options which allow our commands through
19550 # without removal of \ escapes.
19551 if test -n "${ZSH_VERSION+set}" ; then
19552 setopt NO_GLOB_SUBST
19553 fi
19554 # Now quote all the things that may contain metacharacters while being
19555 # careful not to overquote the AC_SUBSTed values. We take copies of the
19556 # variables and quote the copies for generation of the libtool script.
19997 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19557 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19998 SED SHELL STRIP \
19999 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20000 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20001 deplibs_check_method reload_flag reload_cmds need_locks \
20002 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20003 lt_cv_sys_global_symbol_to_c_name_address \
20004 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20005 old_postinstall_cmds old_postuninstall_cmds \
20006 compiler_RC \
20007 CC_RC \
20008 LD_RC \
20009 lt_prog_compiler_wl_RC \
20010 lt_prog_compiler_pic_RC \
20011 lt_prog_compiler_static_RC \
20012 lt_prog_compiler_no_builtin_flag_RC \
20013 export_dynamic_flag_spec_RC \
20014 thread_safe_flag_spec_RC \
20015 whole_archive_flag_spec_RC \
20016 enable_shared_with_static_runtimes_RC \
20017 old_archive_cmds_RC \
20018 old_archive_from_new_cmds_RC \
20019 predep_objects_RC \
20020 postdep_objects_RC \
20021 predeps_RC \
20022 postdeps_RC \
20023 compiler_lib_search_path_RC \
19558 SED SHELL STRIP \
19559 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19560 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19561 deplibs_check_method reload_flag reload_cmds need_locks \
19562 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19563 lt_cv_sys_global_symbol_to_c_name_address \
19564 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19565 old_postinstall_cmds old_postuninstall_cmds \
19566 compiler_RC \
19567 CC_RC \
19568 LD_RC \
19569 lt_prog_compiler_wl_RC \
19570 lt_prog_compiler_pic_RC \
19571 lt_prog_compiler_static_RC \
19572 lt_prog_compiler_no_builtin_flag_RC \
19573 export_dynamic_flag_spec_RC \
19574 thread_safe_flag_spec_RC \
19575 whole_archive_flag_spec_RC \
19576 enable_shared_with_static_runtimes_RC \
19577 old_archive_cmds_RC \
19578 old_archive_from_new_cmds_RC \
19579 predep_objects_RC \
19580 postdep_objects_RC \
19581 predeps_RC \
19582 postdeps_RC \
19583 compiler_lib_search_path_RC \
19584 compiler_lib_search_dirs_RC \
20024 archive_cmds_RC \
20025 archive_expsym_cmds_RC \
20026 postinstall_cmds_RC \
20027 postuninstall_cmds_RC \
20028 old_archive_from_expsyms_cmds_RC \
20029 allow_undefined_flag_RC \
20030 no_undefined_flag_RC \
20031 export_symbols_cmds_RC \
20032 hardcode_libdir_flag_spec_RC \
20033 hardcode_libdir_flag_spec_ld_RC \
20034 hardcode_libdir_separator_RC \
20035 hardcode_automatic_RC \
20036 module_cmds_RC \
20037 module_expsym_cmds_RC \
20038 lt_cv_prog_compiler_c_o_RC \
19585 archive_cmds_RC \
19586 archive_expsym_cmds_RC \
19587 postinstall_cmds_RC \
19588 postuninstall_cmds_RC \
19589 old_archive_from_expsyms_cmds_RC \
19590 allow_undefined_flag_RC \
19591 no_undefined_flag_RC \
19592 export_symbols_cmds_RC \
19593 hardcode_libdir_flag_spec_RC \
19594 hardcode_libdir_flag_spec_ld_RC \
19595 hardcode_libdir_separator_RC \
19596 hardcode_automatic_RC \
19597 module_cmds_RC \
19598 module_expsym_cmds_RC \
19599 lt_cv_prog_compiler_c_o_RC \
19600 fix_srcfile_path_RC \
20039 exclude_expsyms_RC \
20040 include_expsyms_RC; do
20041
20042 case $var in
20043 old_archive_cmds_RC | \
20044 old_archive_from_new_cmds_RC | \
20045 archive_cmds_RC | \
20046 archive_expsym_cmds_RC | \
20047 module_cmds_RC | \
20048 module_expsym_cmds_RC | \
20049 old_archive_from_expsyms_cmds_RC | \
20050 export_symbols_cmds_RC | \
20051 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20052 postinstall_cmds | postuninstall_cmds | \
20053 old_postinstall_cmds | old_postuninstall_cmds | \
20054 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20055 # Double-quote double-evaled strings.
20056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20057 ;;
20058 *)
20059 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20060 ;;
20061 esac
20062 done
20063
20064 case $lt_echo in
20065 *'\$0 --fallback-echo"')
20066 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20067 ;;
20068 esac
20069
20070cfgfile="$ofile"
20071
20072 cat <<__EOF__ >> "$cfgfile"
20073# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20074
20075# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20076
20077# Shell to use when invoking shell scripts.
20078SHELL=$lt_SHELL
20079
20080# Whether or not to build shared libraries.
20081build_libtool_libs=$enable_shared
20082
20083# Whether or not to build static libraries.
20084build_old_libs=$enable_static
20085
20086# Whether or not to add -lc for building shared libraries.
20087build_libtool_need_lc=$archive_cmds_need_lc_RC
20088
20089# Whether or not to disallow shared libs when runtime libs are static
20090allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20091
20092# Whether or not to optimize for fast installation.
20093fast_install=$enable_fast_install
20094
20095# The host system.
20096host_alias=$host_alias
20097host=$host
20098host_os=$host_os
20099
20100# The build system.
20101build_alias=$build_alias
20102build=$build
20103build_os=$build_os
20104
20105# An echo program that does not interpret backslashes.
20106echo=$lt_echo
20107
20108# The archiver.
20109AR=$lt_AR
20110AR_FLAGS=$lt_AR_FLAGS
20111
20112# A C compiler.
20113LTCC=$lt_LTCC
20114
19601 exclude_expsyms_RC \
19602 include_expsyms_RC; do
19603
19604 case $var in
19605 old_archive_cmds_RC | \
19606 old_archive_from_new_cmds_RC | \
19607 archive_cmds_RC | \
19608 archive_expsym_cmds_RC | \
19609 module_cmds_RC | \
19610 module_expsym_cmds_RC | \
19611 old_archive_from_expsyms_cmds_RC | \
19612 export_symbols_cmds_RC | \
19613 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19614 postinstall_cmds | postuninstall_cmds | \
19615 old_postinstall_cmds | old_postuninstall_cmds | \
19616 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19617 # Double-quote double-evaled strings.
19618 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19619 ;;
19620 *)
19621 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19622 ;;
19623 esac
19624 done
19625
19626 case $lt_echo in
19627 *'\$0 --fallback-echo"')
19628 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19629 ;;
19630 esac
19631
19632cfgfile="$ofile"
19633
19634 cat <<__EOF__ >> "$cfgfile"
19635# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19636
19637# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19638
19639# Shell to use when invoking shell scripts.
19640SHELL=$lt_SHELL
19641
19642# Whether or not to build shared libraries.
19643build_libtool_libs=$enable_shared
19644
19645# Whether or not to build static libraries.
19646build_old_libs=$enable_static
19647
19648# Whether or not to add -lc for building shared libraries.
19649build_libtool_need_lc=$archive_cmds_need_lc_RC
19650
19651# Whether or not to disallow shared libs when runtime libs are static
19652allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19653
19654# Whether or not to optimize for fast installation.
19655fast_install=$enable_fast_install
19656
19657# The host system.
19658host_alias=$host_alias
19659host=$host
19660host_os=$host_os
19661
19662# The build system.
19663build_alias=$build_alias
19664build=$build
19665build_os=$build_os
19666
19667# An echo program that does not interpret backslashes.
19668echo=$lt_echo
19669
19670# The archiver.
19671AR=$lt_AR
19672AR_FLAGS=$lt_AR_FLAGS
19673
19674# A C compiler.
19675LTCC=$lt_LTCC
19676
19677# LTCC compiler flags.
19678LTCFLAGS=$lt_LTCFLAGS
19679
20115# A language-specific compiler.
20116CC=$lt_compiler_RC
20117
20118# Is the compiler the GNU C compiler?
20119with_gcc=$GCC_RC
20120
20121# An ERE matcher.
20122EGREP=$lt_EGREP
20123
20124# The linker used to build libraries.
20125LD=$lt_LD_RC
20126
20127# Whether we need hard or soft links.
20128LN_S=$lt_LN_S
20129
20130# A BSD-compatible nm program.
20131NM=$lt_NM
20132
20133# A symbol stripping program
20134STRIP=$lt_STRIP
20135
20136# Used to examine libraries when file_magic_cmd begins "file"
20137MAGIC_CMD=$MAGIC_CMD
20138
20139# Used on cygwin: DLL creation program.
20140DLLTOOL="$DLLTOOL"
20141
20142# Used on cygwin: object dumper.
20143OBJDUMP="$OBJDUMP"
20144
20145# Used on cygwin: assembler.
20146AS="$AS"
20147
20148# The name of the directory that contains temporary libtool files.
20149objdir=$objdir
20150
20151# How to create reloadable object files.
20152reload_flag=$lt_reload_flag
20153reload_cmds=$lt_reload_cmds
20154
20155# How to pass a linker flag through the compiler.
20156wl=$lt_lt_prog_compiler_wl_RC
20157
20158# Object file suffix (normally "o").
20159objext="$ac_objext"
20160
20161# Old archive suffix (normally "a").
20162libext="$libext"
20163
20164# Shared library suffix (normally ".so").
20165shrext_cmds='$shrext_cmds'
20166
20167# Executable file suffix (normally "").
20168exeext="$exeext"
20169
20170# Additional compiler flags for building library objects.
20171pic_flag=$lt_lt_prog_compiler_pic_RC
20172pic_mode=$pic_mode
20173
20174# What is the maximum length of a command?
20175max_cmd_len=$lt_cv_sys_max_cmd_len
20176
20177# Does compiler simultaneously support -c and -o options?
20178compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20179
20180# Must we lock files when doing compilation?
20181need_locks=$lt_need_locks
20182
20183# Do we need the lib prefix for modules?
20184need_lib_prefix=$need_lib_prefix
20185
20186# Do we need a version for libraries?
20187need_version=$need_version
20188
20189# Whether dlopen is supported.
20190dlopen_support=$enable_dlopen
20191
20192# Whether dlopen of programs is supported.
20193dlopen_self=$enable_dlopen_self
20194
20195# Whether dlopen of statically linked programs is supported.
20196dlopen_self_static=$enable_dlopen_self_static
20197
20198# Compiler flag to prevent dynamic linking.
20199link_static_flag=$lt_lt_prog_compiler_static_RC
20200
20201# Compiler flag to turn off builtin functions.
20202no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20203
20204# Compiler flag to allow reflexive dlopens.
20205export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20206
20207# Compiler flag to generate shared objects directly from archives.
20208whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20209
20210# Compiler flag to generate thread-safe objects.
20211thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20212
20213# Library versioning type.
20214version_type=$version_type
20215
20216# Format of library name prefix.
20217libname_spec=$lt_libname_spec
20218
20219# List of archive names. First name is the real one, the rest are links.
20220# The last name is the one that the linker finds with -lNAME.
20221library_names_spec=$lt_library_names_spec
20222
20223# The coded name of the library, if different from the real name.
20224soname_spec=$lt_soname_spec
20225
20226# Commands used to build and install an old-style archive.
20227RANLIB=$lt_RANLIB
20228old_archive_cmds=$lt_old_archive_cmds_RC
20229old_postinstall_cmds=$lt_old_postinstall_cmds
20230old_postuninstall_cmds=$lt_old_postuninstall_cmds
20231
20232# Create an old-style archive from a shared archive.
20233old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20234
20235# Create a temporary old-style archive to link instead of a shared archive.
20236old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20237
20238# Commands used to build and install a shared archive.
20239archive_cmds=$lt_archive_cmds_RC
20240archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20241postinstall_cmds=$lt_postinstall_cmds
20242postuninstall_cmds=$lt_postuninstall_cmds
20243
20244# Commands used to build a loadable module (assumed same as above if empty)
20245module_cmds=$lt_module_cmds_RC
20246module_expsym_cmds=$lt_module_expsym_cmds_RC
20247
20248# Commands to strip libraries.
20249old_striplib=$lt_old_striplib
20250striplib=$lt_striplib
20251
20252# Dependencies to place before the objects being linked to create a
20253# shared library.
20254predep_objects=$lt_predep_objects_RC
20255
20256# Dependencies to place after the objects being linked to create a
20257# shared library.
20258postdep_objects=$lt_postdep_objects_RC
20259
20260# Dependencies to place before the objects being linked to create a
20261# shared library.
20262predeps=$lt_predeps_RC
20263
20264# Dependencies to place after the objects being linked to create a
20265# shared library.
20266postdeps=$lt_postdeps_RC
20267
19680# A language-specific compiler.
19681CC=$lt_compiler_RC
19682
19683# Is the compiler the GNU C compiler?
19684with_gcc=$GCC_RC
19685
19686# An ERE matcher.
19687EGREP=$lt_EGREP
19688
19689# The linker used to build libraries.
19690LD=$lt_LD_RC
19691
19692# Whether we need hard or soft links.
19693LN_S=$lt_LN_S
19694
19695# A BSD-compatible nm program.
19696NM=$lt_NM
19697
19698# A symbol stripping program
19699STRIP=$lt_STRIP
19700
19701# Used to examine libraries when file_magic_cmd begins "file"
19702MAGIC_CMD=$MAGIC_CMD
19703
19704# Used on cygwin: DLL creation program.
19705DLLTOOL="$DLLTOOL"
19706
19707# Used on cygwin: object dumper.
19708OBJDUMP="$OBJDUMP"
19709
19710# Used on cygwin: assembler.
19711AS="$AS"
19712
19713# The name of the directory that contains temporary libtool files.
19714objdir=$objdir
19715
19716# How to create reloadable object files.
19717reload_flag=$lt_reload_flag
19718reload_cmds=$lt_reload_cmds
19719
19720# How to pass a linker flag through the compiler.
19721wl=$lt_lt_prog_compiler_wl_RC
19722
19723# Object file suffix (normally "o").
19724objext="$ac_objext"
19725
19726# Old archive suffix (normally "a").
19727libext="$libext"
19728
19729# Shared library suffix (normally ".so").
19730shrext_cmds='$shrext_cmds'
19731
19732# Executable file suffix (normally "").
19733exeext="$exeext"
19734
19735# Additional compiler flags for building library objects.
19736pic_flag=$lt_lt_prog_compiler_pic_RC
19737pic_mode=$pic_mode
19738
19739# What is the maximum length of a command?
19740max_cmd_len=$lt_cv_sys_max_cmd_len
19741
19742# Does compiler simultaneously support -c and -o options?
19743compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19744
19745# Must we lock files when doing compilation?
19746need_locks=$lt_need_locks
19747
19748# Do we need the lib prefix for modules?
19749need_lib_prefix=$need_lib_prefix
19750
19751# Do we need a version for libraries?
19752need_version=$need_version
19753
19754# Whether dlopen is supported.
19755dlopen_support=$enable_dlopen
19756
19757# Whether dlopen of programs is supported.
19758dlopen_self=$enable_dlopen_self
19759
19760# Whether dlopen of statically linked programs is supported.
19761dlopen_self_static=$enable_dlopen_self_static
19762
19763# Compiler flag to prevent dynamic linking.
19764link_static_flag=$lt_lt_prog_compiler_static_RC
19765
19766# Compiler flag to turn off builtin functions.
19767no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19768
19769# Compiler flag to allow reflexive dlopens.
19770export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19771
19772# Compiler flag to generate shared objects directly from archives.
19773whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19774
19775# Compiler flag to generate thread-safe objects.
19776thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19777
19778# Library versioning type.
19779version_type=$version_type
19780
19781# Format of library name prefix.
19782libname_spec=$lt_libname_spec
19783
19784# List of archive names. First name is the real one, the rest are links.
19785# The last name is the one that the linker finds with -lNAME.
19786library_names_spec=$lt_library_names_spec
19787
19788# The coded name of the library, if different from the real name.
19789soname_spec=$lt_soname_spec
19790
19791# Commands used to build and install an old-style archive.
19792RANLIB=$lt_RANLIB
19793old_archive_cmds=$lt_old_archive_cmds_RC
19794old_postinstall_cmds=$lt_old_postinstall_cmds
19795old_postuninstall_cmds=$lt_old_postuninstall_cmds
19796
19797# Create an old-style archive from a shared archive.
19798old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19799
19800# Create a temporary old-style archive to link instead of a shared archive.
19801old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19802
19803# Commands used to build and install a shared archive.
19804archive_cmds=$lt_archive_cmds_RC
19805archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19806postinstall_cmds=$lt_postinstall_cmds
19807postuninstall_cmds=$lt_postuninstall_cmds
19808
19809# Commands used to build a loadable module (assumed same as above if empty)
19810module_cmds=$lt_module_cmds_RC
19811module_expsym_cmds=$lt_module_expsym_cmds_RC
19812
19813# Commands to strip libraries.
19814old_striplib=$lt_old_striplib
19815striplib=$lt_striplib
19816
19817# Dependencies to place before the objects being linked to create a
19818# shared library.
19819predep_objects=$lt_predep_objects_RC
19820
19821# Dependencies to place after the objects being linked to create a
19822# shared library.
19823postdep_objects=$lt_postdep_objects_RC
19824
19825# Dependencies to place before the objects being linked to create a
19826# shared library.
19827predeps=$lt_predeps_RC
19828
19829# Dependencies to place after the objects being linked to create a
19830# shared library.
19831postdeps=$lt_postdeps_RC
19832
19833# The directories searched by this compiler when creating a shared
19834# library
19835compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19836
20268# The library search path used internally by the compiler when linking
20269# a shared library.
20270compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20271
20272# Method to check whether dependent libraries are shared objects.
20273deplibs_check_method=$lt_deplibs_check_method
20274
20275# Command to use when deplibs_check_method == file_magic.
20276file_magic_cmd=$lt_file_magic_cmd
20277
20278# Flag that allows shared libraries with undefined symbols to be built.
20279allow_undefined_flag=$lt_allow_undefined_flag_RC
20280
20281# Flag that forces no undefined symbols.
20282no_undefined_flag=$lt_no_undefined_flag_RC
20283
20284# Commands used to finish a libtool library installation in a directory.
20285finish_cmds=$lt_finish_cmds
20286
20287# Same as above, but a single script fragment to be evaled but not shown.
20288finish_eval=$lt_finish_eval
20289
20290# Take the output of nm and produce a listing of raw symbols and C names.
20291global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20292
20293# Transform the output of nm in a proper C declaration
20294global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20295
20296# Transform the output of nm in a C name address pair
20297global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20298
20299# This is the shared library runtime path variable.
20300runpath_var=$runpath_var
20301
20302# This is the shared library path variable.
20303shlibpath_var=$shlibpath_var
20304
20305# Is shlibpath searched before the hard-coded library search path?
20306shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20307
20308# How to hardcode a shared library path into an executable.
20309hardcode_action=$hardcode_action_RC
20310
20311# Whether we should hardcode library paths into libraries.
20312hardcode_into_libs=$hardcode_into_libs
20313
20314# Flag to hardcode \$libdir into a binary during linking.
20315# This must work even if \$libdir does not exist.
20316hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20317
20318# If ld is used when linking, flag to hardcode \$libdir into
20319# a binary during linking. This must work even if \$libdir does
20320# not exist.
20321hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20322
20323# Whether we need a single -rpath flag with a separated argument.
20324hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20325
20326# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20327# resulting binary.
20328hardcode_direct=$hardcode_direct_RC
20329
20330# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20331# resulting binary.
20332hardcode_minus_L=$hardcode_minus_L_RC
20333
20334# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20335# the resulting binary.
20336hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20337
20338# Set to yes if building a shared library automatically hardcodes DIR into the library
20339# and all subsequent libraries and executables linked against it.
20340hardcode_automatic=$hardcode_automatic_RC
20341
20342# Variables whose values should be saved in libtool wrapper scripts and
20343# restored at relink time.
20344variables_saved_for_relink="$variables_saved_for_relink"
20345
20346# Whether libtool must link a program against all its dependency libraries.
20347link_all_deplibs=$link_all_deplibs_RC
20348
20349# Compile-time system search path for libraries
20350sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20351
20352# Run-time system search path for libraries
20353sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20354
20355# Fix the shell variable \$srcfile for the compiler.
19837# The library search path used internally by the compiler when linking
19838# a shared library.
19839compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19840
19841# Method to check whether dependent libraries are shared objects.
19842deplibs_check_method=$lt_deplibs_check_method
19843
19844# Command to use when deplibs_check_method == file_magic.
19845file_magic_cmd=$lt_file_magic_cmd
19846
19847# Flag that allows shared libraries with undefined symbols to be built.
19848allow_undefined_flag=$lt_allow_undefined_flag_RC
19849
19850# Flag that forces no undefined symbols.
19851no_undefined_flag=$lt_no_undefined_flag_RC
19852
19853# Commands used to finish a libtool library installation in a directory.
19854finish_cmds=$lt_finish_cmds
19855
19856# Same as above, but a single script fragment to be evaled but not shown.
19857finish_eval=$lt_finish_eval
19858
19859# Take the output of nm and produce a listing of raw symbols and C names.
19860global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19861
19862# Transform the output of nm in a proper C declaration
19863global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19864
19865# Transform the output of nm in a C name address pair
19866global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19867
19868# This is the shared library runtime path variable.
19869runpath_var=$runpath_var
19870
19871# This is the shared library path variable.
19872shlibpath_var=$shlibpath_var
19873
19874# Is shlibpath searched before the hard-coded library search path?
19875shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19876
19877# How to hardcode a shared library path into an executable.
19878hardcode_action=$hardcode_action_RC
19879
19880# Whether we should hardcode library paths into libraries.
19881hardcode_into_libs=$hardcode_into_libs
19882
19883# Flag to hardcode \$libdir into a binary during linking.
19884# This must work even if \$libdir does not exist.
19885hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19886
19887# If ld is used when linking, flag to hardcode \$libdir into
19888# a binary during linking. This must work even if \$libdir does
19889# not exist.
19890hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19891
19892# Whether we need a single -rpath flag with a separated argument.
19893hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19894
19895# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19896# resulting binary.
19897hardcode_direct=$hardcode_direct_RC
19898
19899# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19900# resulting binary.
19901hardcode_minus_L=$hardcode_minus_L_RC
19902
19903# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19904# the resulting binary.
19905hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19906
19907# Set to yes if building a shared library automatically hardcodes DIR into the library
19908# and all subsequent libraries and executables linked against it.
19909hardcode_automatic=$hardcode_automatic_RC
19910
19911# Variables whose values should be saved in libtool wrapper scripts and
19912# restored at relink time.
19913variables_saved_for_relink="$variables_saved_for_relink"
19914
19915# Whether libtool must link a program against all its dependency libraries.
19916link_all_deplibs=$link_all_deplibs_RC
19917
19918# Compile-time system search path for libraries
19919sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19920
19921# Run-time system search path for libraries
19922sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19923
19924# Fix the shell variable \$srcfile for the compiler.
20356fix_srcfile_path="$fix_srcfile_path_RC"
19925fix_srcfile_path=$lt_fix_srcfile_path
20357
20358# Set to yes if exported symbols are required.
20359always_export_symbols=$always_export_symbols_RC
20360
20361# The commands to list exported symbols.
20362export_symbols_cmds=$lt_export_symbols_cmds_RC
20363
20364# The commands to extract the exported symbol list from a shared archive.
20365extract_expsyms_cmds=$lt_extract_expsyms_cmds
20366
20367# Symbols that should not be listed in the preloaded symbols.
20368exclude_expsyms=$lt_exclude_expsyms_RC
20369
20370# Symbols that must always be exported.
20371include_expsyms=$lt_include_expsyms_RC
20372
20373# ### END LIBTOOL TAG CONFIG: $tagname
20374
20375__EOF__
20376
20377
20378else
20379 # If there is no Makefile yet, we rely on a make rule to execute
20380 # `config.status --recheck' to rerun these tests and create the
20381 # libtool script then.
20382 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20383 if test -f "$ltmain_in"; then
20384 test -f Makefile && make "$ltmain"
20385 fi
20386fi
20387
20388
20389ac_ext=c
20390ac_cpp='$CPP $CPPFLAGS'
20391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20393ac_compiler_gnu=$ac_cv_c_compiler_gnu
20394
20395CC="$lt_save_CC"
20396
20397 ;;
20398
20399 *)
20400 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20401echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20402 { (exit 1); exit 1; }; }
20403 ;;
20404 esac
20405
20406 # Append the new tag name to the list of available tags.
20407 if test -n "$tagname" ; then
20408 available_tags="$available_tags $tagname"
20409 fi
20410 fi
20411 done
20412 IFS="$lt_save_ifs"
20413
20414 # Now substitute the updated list of available tags.
20415 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20416 mv "${ofile}T" "$ofile"
20417 chmod +x "$ofile"
20418 else
20419 rm -f "${ofile}T"
20420 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20421echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20422 { (exit 1); exit 1; }; }
20423 fi
20424fi
20425
20426
20427
20428# This can be used to rebuild libtool when needed
20429LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20430
20431# Always use our own libtool.
20432LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20433
20434# Prevent multiple expansion
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20457echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20458if test "${ac_cv_header_stdc+set}" = set; then
20459 echo $ECHO_N "(cached) $ECHO_C" >&6
20460else
20461 cat >conftest.$ac_ext <<_ACEOF
20462/* confdefs.h. */
20463_ACEOF
20464cat confdefs.h >>conftest.$ac_ext
20465cat >>conftest.$ac_ext <<_ACEOF
20466/* end confdefs.h. */
20467#include <stdlib.h>
20468#include <stdarg.h>
20469#include <string.h>
20470#include <float.h>
20471
20472int
20473main ()
20474{
20475
20476 ;
20477 return 0;
20478}
20479_ACEOF
20480rm -f conftest.$ac_objext
20481if { (ac_try="$ac_compile"
20482case "(($ac_try" in
20483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484 *) ac_try_echo=$ac_try;;
20485esac
20486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487 (eval "$ac_compile") 2>conftest.er1
20488 ac_status=$?
20489 grep -v '^ *+' conftest.er1 >conftest.err
20490 rm -f conftest.er1
20491 cat conftest.err >&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } && {
20494 test -z "$ac_c_werror_flag" ||
20495 test ! -s conftest.err
20496 } && test -s conftest.$ac_objext; then
20497 ac_cv_header_stdc=yes
20498else
20499 echo "$as_me: failed program was:" >&5
20500sed 's/^/| /' conftest.$ac_ext >&5
20501
20502 ac_cv_header_stdc=no
20503fi
20504
20505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20506
20507if test $ac_cv_header_stdc = yes; then
20508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20509 cat >conftest.$ac_ext <<_ACEOF
20510/* confdefs.h. */
20511_ACEOF
20512cat confdefs.h >>conftest.$ac_ext
20513cat >>conftest.$ac_ext <<_ACEOF
20514/* end confdefs.h. */
20515#include <string.h>
20516
20517_ACEOF
20518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20519 $EGREP "memchr" >/dev/null 2>&1; then
20520 :
20521else
20522 ac_cv_header_stdc=no
20523fi
20524rm -f conftest*
20525
20526fi
20527
20528if test $ac_cv_header_stdc = yes; then
20529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20530 cat >conftest.$ac_ext <<_ACEOF
20531/* confdefs.h. */
20532_ACEOF
20533cat confdefs.h >>conftest.$ac_ext
20534cat >>conftest.$ac_ext <<_ACEOF
20535/* end confdefs.h. */
20536#include <stdlib.h>
20537
20538_ACEOF
20539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20540 $EGREP "free" >/dev/null 2>&1; then
20541 :
20542else
20543 ac_cv_header_stdc=no
20544fi
20545rm -f conftest*
20546
20547fi
20548
20549if test $ac_cv_header_stdc = yes; then
20550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20551 if test "$cross_compiling" = yes; then
20552 :
20553else
20554 cat >conftest.$ac_ext <<_ACEOF
20555/* confdefs.h. */
20556_ACEOF
20557cat confdefs.h >>conftest.$ac_ext
20558cat >>conftest.$ac_ext <<_ACEOF
20559/* end confdefs.h. */
20560#include <ctype.h>
20561#include <stdlib.h>
20562#if ((' ' & 0x0FF) == 0x020)
20563# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20564# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20565#else
20566# define ISLOWER(c) \
20567 (('a' <= (c) && (c) <= 'i') \
20568 || ('j' <= (c) && (c) <= 'r') \
20569 || ('s' <= (c) && (c) <= 'z'))
20570# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20571#endif
20572
20573#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20574int
20575main ()
20576{
20577 int i;
20578 for (i = 0; i < 256; i++)
20579 if (XOR (islower (i), ISLOWER (i))
20580 || toupper (i) != TOUPPER (i))
20581 return 2;
20582 return 0;
20583}
20584_ACEOF
20585rm -f conftest$ac_exeext
20586if { (ac_try="$ac_link"
20587case "(($ac_try" in
20588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589 *) ac_try_echo=$ac_try;;
20590esac
20591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592 (eval "$ac_link") 2>&5
20593 ac_status=$?
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20596 { (case "(($ac_try" in
20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598 *) ac_try_echo=$ac_try;;
20599esac
20600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601 (eval "$ac_try") 2>&5
20602 ac_status=$?
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); }; }; then
20605 :
20606else
20607 echo "$as_me: program exited with status $ac_status" >&5
20608echo "$as_me: failed program was:" >&5
20609sed 's/^/| /' conftest.$ac_ext >&5
20610
20611( exit $ac_status )
20612ac_cv_header_stdc=no
20613fi
20614rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20615fi
20616
20617
20618fi
20619fi
20620{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20621echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20622if test $ac_cv_header_stdc = yes; then
20623
20624cat >>confdefs.h <<\_ACEOF
20625#define STDC_HEADERS 1
20626_ACEOF
20627
20628fi
20629
20630{ echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20631echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20632if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20633 echo $ECHO_N "(cached) $ECHO_C" >&6
20634else
20635 cat >conftest.$ac_ext <<_ACEOF
20636/* confdefs.h. */
20637_ACEOF
20638cat confdefs.h >>conftest.$ac_ext
20639cat >>conftest.$ac_ext <<_ACEOF
20640/* end confdefs.h. */
20641#include <sys/types.h>
20642int
20643main ()
20644{
20645return makedev(0, 0);
20646 ;
20647 return 0;
20648}
20649_ACEOF
20650rm -f conftest.$ac_objext conftest$ac_exeext
20651if { (ac_try="$ac_link"
20652case "(($ac_try" in
20653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654 *) ac_try_echo=$ac_try;;
20655esac
20656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20657 (eval "$ac_link") 2>conftest.er1
20658 ac_status=$?
20659 grep -v '^ *+' conftest.er1 >conftest.err
20660 rm -f conftest.er1
20661 cat conftest.err >&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); } && {
20664 test -z "$ac_c_werror_flag" ||
20665 test ! -s conftest.err
20666 } && test -s conftest$ac_exeext &&
20667 $as_test_x conftest$ac_exeext; then
20668 ac_cv_header_sys_types_h_makedev=yes
20669else
20670 echo "$as_me: failed program was:" >&5
20671sed 's/^/| /' conftest.$ac_ext >&5
20672
20673 ac_cv_header_sys_types_h_makedev=no
20674fi
20675
20676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20677 conftest$ac_exeext conftest.$ac_ext
20678
20679fi
20680{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20681echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20682
20683if test $ac_cv_header_sys_types_h_makedev = no; then
20684if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20685 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20686echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20687if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20688 echo $ECHO_N "(cached) $ECHO_C" >&6
20689fi
20690{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20691echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20692else
20693 # Is the header compilable?
20694{ echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20695echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20696cat >conftest.$ac_ext <<_ACEOF
20697/* confdefs.h. */
20698_ACEOF
20699cat confdefs.h >>conftest.$ac_ext
20700cat >>conftest.$ac_ext <<_ACEOF
20701/* end confdefs.h. */
20702$ac_includes_default
20703#include <sys/mkdev.h>
20704_ACEOF
20705rm -f conftest.$ac_objext
20706if { (ac_try="$ac_compile"
20707case "(($ac_try" in
20708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709 *) ac_try_echo=$ac_try;;
20710esac
20711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712 (eval "$ac_compile") 2>conftest.er1
20713 ac_status=$?
20714 grep -v '^ *+' conftest.er1 >conftest.err
20715 rm -f conftest.er1
20716 cat conftest.err >&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } && {
20719 test -z "$ac_c_werror_flag" ||
20720 test ! -s conftest.err
20721 } && test -s conftest.$ac_objext; then
20722 ac_header_compiler=yes
20723else
20724 echo "$as_me: failed program was:" >&5
20725sed 's/^/| /' conftest.$ac_ext >&5
20726
20727 ac_header_compiler=no
20728fi
20729
20730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20731{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20732echo "${ECHO_T}$ac_header_compiler" >&6; }
20733
20734# Is the header present?
20735{ echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20736echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20737cat >conftest.$ac_ext <<_ACEOF
20738/* confdefs.h. */
20739_ACEOF
20740cat confdefs.h >>conftest.$ac_ext
20741cat >>conftest.$ac_ext <<_ACEOF
20742/* end confdefs.h. */
20743#include <sys/mkdev.h>
20744_ACEOF
20745if { (ac_try="$ac_cpp conftest.$ac_ext"
20746case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20749esac
20750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20752 ac_status=$?
20753 grep -v '^ *+' conftest.er1 >conftest.err
20754 rm -f conftest.er1
20755 cat conftest.err >&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } >/dev/null && {
20758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20759 test ! -s conftest.err
20760 }; then
20761 ac_header_preproc=yes
20762else
20763 echo "$as_me: failed program was:" >&5
20764sed 's/^/| /' conftest.$ac_ext >&5
20765
20766 ac_header_preproc=no
20767fi
20768
20769rm -f conftest.err conftest.$ac_ext
20770{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20771echo "${ECHO_T}$ac_header_preproc" >&6; }
20772
20773# So? What about this header?
20774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20775 yes:no: )
20776 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20777echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20778 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20779echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20780 ac_header_preproc=yes
20781 ;;
20782 no:yes:* )
20783 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20784echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20785 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20786echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20787 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20788echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20789 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20790echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20791 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20792echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20793 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20794echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20795 ( cat <<\_ASBOX
20796## ---------------------------------- ##
20797## Report this to christos@astron.com ##
20798## ---------------------------------- ##
20799_ASBOX
20800 ) | sed "s/^/$as_me: WARNING: /" >&2
20801 ;;
20802esac
20803{ echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20804echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20805if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20806 echo $ECHO_N "(cached) $ECHO_C" >&6
20807else
20808 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20809fi
20810{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20811echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20812
20813fi
20814if test $ac_cv_header_sys_mkdev_h = yes; then
20815
20816cat >>confdefs.h <<\_ACEOF
20817#define MAJOR_IN_MKDEV 1
20818_ACEOF
20819
20820fi
20821
20822
20823
20824 if test $ac_cv_header_sys_mkdev_h = no; then
20825 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20826 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20827echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20828if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20829 echo $ECHO_N "(cached) $ECHO_C" >&6
20830fi
20831{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20832echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20833else
20834 # Is the header compilable?
20835{ echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20836echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20837cat >conftest.$ac_ext <<_ACEOF
20838/* confdefs.h. */
20839_ACEOF
20840cat confdefs.h >>conftest.$ac_ext
20841cat >>conftest.$ac_ext <<_ACEOF
20842/* end confdefs.h. */
20843$ac_includes_default
20844#include <sys/sysmacros.h>
20845_ACEOF
20846rm -f conftest.$ac_objext
20847if { (ac_try="$ac_compile"
20848case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20851esac
20852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_compile") 2>conftest.er1
20854 ac_status=$?
20855 grep -v '^ *+' conftest.er1 >conftest.err
20856 rm -f conftest.er1
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } && {
20860 test -z "$ac_c_werror_flag" ||
20861 test ! -s conftest.err
20862 } && test -s conftest.$ac_objext; then
20863 ac_header_compiler=yes
20864else
20865 echo "$as_me: failed program was:" >&5
20866sed 's/^/| /' conftest.$ac_ext >&5
20867
20868 ac_header_compiler=no
20869fi
20870
20871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20872{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20873echo "${ECHO_T}$ac_header_compiler" >&6; }
20874
20875# Is the header present?
20876{ echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20877echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20878cat >conftest.$ac_ext <<_ACEOF
20879/* confdefs.h. */
20880_ACEOF
20881cat confdefs.h >>conftest.$ac_ext
20882cat >>conftest.$ac_ext <<_ACEOF
20883/* end confdefs.h. */
20884#include <sys/sysmacros.h>
20885_ACEOF
20886if { (ac_try="$ac_cpp conftest.$ac_ext"
20887case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20890esac
20891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20893 ac_status=$?
20894 grep -v '^ *+' conftest.er1 >conftest.err
20895 rm -f conftest.er1
20896 cat conftest.err >&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } >/dev/null && {
20899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20900 test ! -s conftest.err
20901 }; then
20902 ac_header_preproc=yes
20903else
20904 echo "$as_me: failed program was:" >&5
20905sed 's/^/| /' conftest.$ac_ext >&5
20906
20907 ac_header_preproc=no
20908fi
20909
20910rm -f conftest.err conftest.$ac_ext
20911{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20912echo "${ECHO_T}$ac_header_preproc" >&6; }
20913
20914# So? What about this header?
20915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20916 yes:no: )
20917 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20918echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20919 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20920echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20921 ac_header_preproc=yes
20922 ;;
20923 no:yes:* )
20924 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20925echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20926 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20927echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20928 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20929echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20930 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20931echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20932 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20933echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20934 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20935echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20936 ( cat <<\_ASBOX
20937## ---------------------------------- ##
20938## Report this to christos@astron.com ##
20939## ---------------------------------- ##
20940_ASBOX
20941 ) | sed "s/^/$as_me: WARNING: /" >&2
20942 ;;
20943esac
20944{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20945echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20946if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20947 echo $ECHO_N "(cached) $ECHO_C" >&6
20948else
20949 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20950fi
20951{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20952echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20953
20954fi
20955if test $ac_cv_header_sys_sysmacros_h = yes; then
20956
20957cat >>confdefs.h <<\_ACEOF
20958#define MAJOR_IN_SYSMACROS 1
20959_ACEOF
20960
20961fi
20962
20963
20964 fi
20965fi
20966
20967{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20968echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20969if test "${ac_cv_header_sys_wait_h+set}" = set; then
20970 echo $ECHO_N "(cached) $ECHO_C" >&6
20971else
20972 cat >conftest.$ac_ext <<_ACEOF
20973/* confdefs.h. */
20974_ACEOF
20975cat confdefs.h >>conftest.$ac_ext
20976cat >>conftest.$ac_ext <<_ACEOF
20977/* end confdefs.h. */
20978#include <sys/types.h>
20979#include <sys/wait.h>
20980#ifndef WEXITSTATUS
20981# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20982#endif
20983#ifndef WIFEXITED
20984# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20985#endif
20986
20987int
20988main ()
20989{
20990 int s;
20991 wait (&s);
20992 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20993 ;
20994 return 0;
20995}
20996_ACEOF
20997rm -f conftest.$ac_objext
20998if { (ac_try="$ac_compile"
20999case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21002esac
21003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_compile") 2>conftest.er1
21005 ac_status=$?
21006 grep -v '^ *+' conftest.er1 >conftest.err
21007 rm -f conftest.er1
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } && {
21011 test -z "$ac_c_werror_flag" ||
21012 test ! -s conftest.err
21013 } && test -s conftest.$ac_objext; then
21014 ac_cv_header_sys_wait_h=yes
21015else
21016 echo "$as_me: failed program was:" >&5
21017sed 's/^/| /' conftest.$ac_ext >&5
21018
21019 ac_cv_header_sys_wait_h=no
21020fi
21021
21022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21023fi
21024{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21025echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21026if test $ac_cv_header_sys_wait_h = yes; then
21027
21028cat >>confdefs.h <<\_ACEOF
21029#define HAVE_SYS_WAIT_H 1
21030_ACEOF
21031
21032fi
21033
21034
21035
21036
21037
21038
21039
21040for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
21041do
21042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21046if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21047 echo $ECHO_N "(cached) $ECHO_C" >&6
21048fi
21049ac_res=`eval echo '${'$as_ac_Header'}'`
21050 { echo "$as_me:$LINENO: result: $ac_res" >&5
21051echo "${ECHO_T}$ac_res" >&6; }
21052else
21053 # Is the header compilable?
21054{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21055echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21056cat >conftest.$ac_ext <<_ACEOF
21057/* confdefs.h. */
21058_ACEOF
21059cat confdefs.h >>conftest.$ac_ext
21060cat >>conftest.$ac_ext <<_ACEOF
21061/* end confdefs.h. */
21062$ac_includes_default
21063#include <$ac_header>
21064_ACEOF
21065rm -f conftest.$ac_objext
21066if { (ac_try="$ac_compile"
21067case "(($ac_try" in
21068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069 *) ac_try_echo=$ac_try;;
21070esac
21071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21072 (eval "$ac_compile") 2>conftest.er1
21073 ac_status=$?
21074 grep -v '^ *+' conftest.er1 >conftest.err
21075 rm -f conftest.er1
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } && {
21079 test -z "$ac_c_werror_flag" ||
21080 test ! -s conftest.err
21081 } && test -s conftest.$ac_objext; then
21082 ac_header_compiler=yes
21083else
21084 echo "$as_me: failed program was:" >&5
21085sed 's/^/| /' conftest.$ac_ext >&5
21086
21087 ac_header_compiler=no
21088fi
21089
21090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21091{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21092echo "${ECHO_T}$ac_header_compiler" >&6; }
21093
21094# Is the header present?
21095{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21096echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21097cat >conftest.$ac_ext <<_ACEOF
21098/* confdefs.h. */
21099_ACEOF
21100cat confdefs.h >>conftest.$ac_ext
21101cat >>conftest.$ac_ext <<_ACEOF
21102/* end confdefs.h. */
21103#include <$ac_header>
21104_ACEOF
21105if { (ac_try="$ac_cpp conftest.$ac_ext"
21106case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21109esac
21110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21112 ac_status=$?
21113 grep -v '^ *+' conftest.er1 >conftest.err
21114 rm -f conftest.er1
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } >/dev/null && {
21118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21119 test ! -s conftest.err
21120 }; then
21121 ac_header_preproc=yes
21122else
21123 echo "$as_me: failed program was:" >&5
21124sed 's/^/| /' conftest.$ac_ext >&5
21125
21126 ac_header_preproc=no
21127fi
21128
21129rm -f conftest.err conftest.$ac_ext
21130{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21131echo "${ECHO_T}$ac_header_preproc" >&6; }
21132
21133# So? What about this header?
21134case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21135 yes:no: )
21136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21137echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21139echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21140 ac_header_preproc=yes
21141 ;;
21142 no:yes:* )
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21144echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21146echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21148echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21150echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21152echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21154echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21155 ( cat <<\_ASBOX
21156## ---------------------------------- ##
21157## Report this to christos@astron.com ##
21158## ---------------------------------- ##
21159_ASBOX
21160 ) | sed "s/^/$as_me: WARNING: /" >&2
21161 ;;
21162esac
21163{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21164echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21165if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21166 echo $ECHO_N "(cached) $ECHO_C" >&6
21167else
21168 eval "$as_ac_Header=\$ac_header_preproc"
21169fi
21170ac_res=`eval echo '${'$as_ac_Header'}'`
21171 { echo "$as_me:$LINENO: result: $ac_res" >&5
21172echo "${ECHO_T}$ac_res" >&6; }
21173
21174fi
21175if test `eval echo '${'$as_ac_Header'}'` = yes; then
21176 cat >>confdefs.h <<_ACEOF
21177#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21178_ACEOF
21179
21180fi
21181
21182done
21183
21184
21185
21186
21187
21188for ac_header in utime.h wchar.h wctype.h limits.h
21189do
21190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21195 echo $ECHO_N "(cached) $ECHO_C" >&6
21196fi
21197ac_res=`eval echo '${'$as_ac_Header'}'`
21198 { echo "$as_me:$LINENO: result: $ac_res" >&5
21199echo "${ECHO_T}$ac_res" >&6; }
21200else
21201 # Is the header compilable?
21202{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21203echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21204cat >conftest.$ac_ext <<_ACEOF
21205/* confdefs.h. */
21206_ACEOF
21207cat confdefs.h >>conftest.$ac_ext
21208cat >>conftest.$ac_ext <<_ACEOF
21209/* end confdefs.h. */
21210$ac_includes_default
21211#include <$ac_header>
21212_ACEOF
21213rm -f conftest.$ac_objext
21214if { (ac_try="$ac_compile"
21215case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21218esac
21219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_compile") 2>conftest.er1
21221 ac_status=$?
21222 grep -v '^ *+' conftest.er1 >conftest.err
21223 rm -f conftest.er1
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } && {
21227 test -z "$ac_c_werror_flag" ||
21228 test ! -s conftest.err
21229 } && test -s conftest.$ac_objext; then
21230 ac_header_compiler=yes
21231else
21232 echo "$as_me: failed program was:" >&5
21233sed 's/^/| /' conftest.$ac_ext >&5
21234
21235 ac_header_compiler=no
21236fi
21237
21238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21239{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21240echo "${ECHO_T}$ac_header_compiler" >&6; }
21241
21242# Is the header present?
21243{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21244echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21245cat >conftest.$ac_ext <<_ACEOF
21246/* confdefs.h. */
21247_ACEOF
21248cat confdefs.h >>conftest.$ac_ext
21249cat >>conftest.$ac_ext <<_ACEOF
21250/* end confdefs.h. */
21251#include <$ac_header>
21252_ACEOF
21253if { (ac_try="$ac_cpp conftest.$ac_ext"
21254case "(($ac_try" in
21255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256 *) ac_try_echo=$ac_try;;
21257esac
21258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21260 ac_status=$?
21261 grep -v '^ *+' conftest.er1 >conftest.err
21262 rm -f conftest.er1
21263 cat conftest.err >&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } >/dev/null && {
21266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21267 test ! -s conftest.err
21268 }; then
21269 ac_header_preproc=yes
21270else
21271 echo "$as_me: failed program was:" >&5
21272sed 's/^/| /' conftest.$ac_ext >&5
21273
21274 ac_header_preproc=no
21275fi
21276
21277rm -f conftest.err conftest.$ac_ext
21278{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21279echo "${ECHO_T}$ac_header_preproc" >&6; }
21280
21281# So? What about this header?
21282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21283 yes:no: )
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21285echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21287echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21288 ac_header_preproc=yes
21289 ;;
21290 no:yes:* )
21291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21292echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21294echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21296echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21298echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21300echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21302echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21303 ( cat <<\_ASBOX
21304## ---------------------------------- ##
21305## Report this to christos@astron.com ##
21306## ---------------------------------- ##
21307_ASBOX
21308 ) | sed "s/^/$as_me: WARNING: /" >&2
21309 ;;
21310esac
21311{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21314 echo $ECHO_N "(cached) $ECHO_C" >&6
21315else
21316 eval "$as_ac_Header=\$ac_header_preproc"
21317fi
21318ac_res=`eval echo '${'$as_ac_Header'}'`
21319 { echo "$as_me:$LINENO: result: $ac_res" >&5
21320echo "${ECHO_T}$ac_res" >&6; }
21321
21322fi
21323if test `eval echo '${'$as_ac_Header'}'` = yes; then
21324 cat >>confdefs.h <<_ACEOF
21325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21326_ACEOF
21327
21328fi
21329
21330done
21331
21332
21333
21334for ac_header in getopt.h err.h
21335do
21336as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21341 echo $ECHO_N "(cached) $ECHO_C" >&6
21342fi
21343ac_res=`eval echo '${'$as_ac_Header'}'`
21344 { echo "$as_me:$LINENO: result: $ac_res" >&5
21345echo "${ECHO_T}$ac_res" >&6; }
21346else
21347 # Is the header compilable?
21348{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21349echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21350cat >conftest.$ac_ext <<_ACEOF
21351/* confdefs.h. */
21352_ACEOF
21353cat confdefs.h >>conftest.$ac_ext
21354cat >>conftest.$ac_ext <<_ACEOF
21355/* end confdefs.h. */
21356$ac_includes_default
21357#include <$ac_header>
21358_ACEOF
21359rm -f conftest.$ac_objext
21360if { (ac_try="$ac_compile"
21361case "(($ac_try" in
21362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363 *) ac_try_echo=$ac_try;;
21364esac
21365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366 (eval "$ac_compile") 2>conftest.er1
21367 ac_status=$?
21368 grep -v '^ *+' conftest.er1 >conftest.err
21369 rm -f conftest.er1
21370 cat conftest.err >&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } && {
21373 test -z "$ac_c_werror_flag" ||
21374 test ! -s conftest.err
21375 } && test -s conftest.$ac_objext; then
21376 ac_header_compiler=yes
21377else
21378 echo "$as_me: failed program was:" >&5
21379sed 's/^/| /' conftest.$ac_ext >&5
21380
21381 ac_header_compiler=no
21382fi
21383
21384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21385{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21386echo "${ECHO_T}$ac_header_compiler" >&6; }
21387
21388# Is the header present?
21389{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21391cat >conftest.$ac_ext <<_ACEOF
21392/* confdefs.h. */
21393_ACEOF
21394cat confdefs.h >>conftest.$ac_ext
21395cat >>conftest.$ac_ext <<_ACEOF
21396/* end confdefs.h. */
21397#include <$ac_header>
21398_ACEOF
21399if { (ac_try="$ac_cpp conftest.$ac_ext"
21400case "(($ac_try" in
21401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402 *) ac_try_echo=$ac_try;;
21403esac
21404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21406 ac_status=$?
21407 grep -v '^ *+' conftest.er1 >conftest.err
21408 rm -f conftest.er1
21409 cat conftest.err >&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } >/dev/null && {
21412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21413 test ! -s conftest.err
21414 }; then
21415 ac_header_preproc=yes
21416else
21417 echo "$as_me: failed program was:" >&5
21418sed 's/^/| /' conftest.$ac_ext >&5
21419
21420 ac_header_preproc=no
21421fi
21422
21423rm -f conftest.err conftest.$ac_ext
21424{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21425echo "${ECHO_T}$ac_header_preproc" >&6; }
21426
21427# So? What about this header?
21428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21429 yes:no: )
21430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21433echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21434 ac_header_preproc=yes
21435 ;;
21436 no:yes:* )
21437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21438echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21440echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21442echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21444echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21448echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21449 ( cat <<\_ASBOX
21450## ---------------------------------- ##
21451## Report this to christos@astron.com ##
21452## ---------------------------------- ##
21453_ASBOX
21454 ) | sed "s/^/$as_me: WARNING: /" >&2
21455 ;;
21456esac
21457{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21461else
21462 eval "$as_ac_Header=\$ac_header_preproc"
21463fi
21464ac_res=`eval echo '${'$as_ac_Header'}'`
21465 { echo "$as_me:$LINENO: result: $ac_res" >&5
21466echo "${ECHO_T}$ac_res" >&6; }
21467
21468fi
21469if test `eval echo '${'$as_ac_Header'}'` = yes; then
21470 cat >>confdefs.h <<_ACEOF
21471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21472_ACEOF
21473
21474fi
21475
21476done
21477
21478
21479
21480
21481
21482
21483for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
21484do
21485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21491fi
21492ac_res=`eval echo '${'$as_ac_Header'}'`
21493 { echo "$as_me:$LINENO: result: $ac_res" >&5
21494echo "${ECHO_T}$ac_res" >&6; }
21495else
21496 # Is the header compilable?
21497{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21499cat >conftest.$ac_ext <<_ACEOF
21500/* confdefs.h. */
21501_ACEOF
21502cat confdefs.h >>conftest.$ac_ext
21503cat >>conftest.$ac_ext <<_ACEOF
21504/* end confdefs.h. */
21505$ac_includes_default
21506#include <$ac_header>
21507_ACEOF
21508rm -f conftest.$ac_objext
21509if { (ac_try="$ac_compile"
21510case "(($ac_try" in
21511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512 *) ac_try_echo=$ac_try;;
21513esac
21514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515 (eval "$ac_compile") 2>conftest.er1
21516 ac_status=$?
21517 grep -v '^ *+' conftest.er1 >conftest.err
21518 rm -f conftest.er1
21519 cat conftest.err >&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); } && {
21522 test -z "$ac_c_werror_flag" ||
21523 test ! -s conftest.err
21524 } && test -s conftest.$ac_objext; then
21525 ac_header_compiler=yes
21526else
21527 echo "$as_me: failed program was:" >&5
21528sed 's/^/| /' conftest.$ac_ext >&5
21529
21530 ac_header_compiler=no
21531fi
21532
21533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21534{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21535echo "${ECHO_T}$ac_header_compiler" >&6; }
21536
21537# Is the header present?
21538{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21539echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21540cat >conftest.$ac_ext <<_ACEOF
21541/* confdefs.h. */
21542_ACEOF
21543cat confdefs.h >>conftest.$ac_ext
21544cat >>conftest.$ac_ext <<_ACEOF
21545/* end confdefs.h. */
21546#include <$ac_header>
21547_ACEOF
21548if { (ac_try="$ac_cpp conftest.$ac_ext"
21549case "(($ac_try" in
21550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551 *) ac_try_echo=$ac_try;;
21552esac
21553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21555 ac_status=$?
21556 grep -v '^ *+' conftest.er1 >conftest.err
21557 rm -f conftest.er1
21558 cat conftest.err >&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); } >/dev/null && {
21561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21562 test ! -s conftest.err
21563 }; then
21564 ac_header_preproc=yes
21565else
21566 echo "$as_me: failed program was:" >&5
21567sed 's/^/| /' conftest.$ac_ext >&5
21568
21569 ac_header_preproc=no
21570fi
21571
21572rm -f conftest.err conftest.$ac_ext
21573{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21574echo "${ECHO_T}$ac_header_preproc" >&6; }
21575
21576# So? What about this header?
21577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21578 yes:no: )
21579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21582echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21583 ac_header_preproc=yes
21584 ;;
21585 no:yes:* )
21586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21587echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21589echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21591echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21593echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21597echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21598 ( cat <<\_ASBOX
21599## ---------------------------------- ##
21600## Report this to christos@astron.com ##
21601## ---------------------------------- ##
21602_ASBOX
21603 ) | sed "s/^/$as_me: WARNING: /" >&2
21604 ;;
21605esac
21606{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21610else
21611 eval "$as_ac_Header=\$ac_header_preproc"
21612fi
21613ac_res=`eval echo '${'$as_ac_Header'}'`
21614 { echo "$as_me:$LINENO: result: $ac_res" >&5
21615echo "${ECHO_T}$ac_res" >&6; }
21616
21617fi
21618if test `eval echo '${'$as_ac_Header'}'` = yes; then
21619 cat >>confdefs.h <<_ACEOF
21620#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21621_ACEOF
21622
21623fi
21624
21625done
21626
21627
21628for ac_header in zlib.h
21629do
21630as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21636fi
21637ac_res=`eval echo '${'$as_ac_Header'}'`
21638 { echo "$as_me:$LINENO: result: $ac_res" >&5
21639echo "${ECHO_T}$ac_res" >&6; }
21640else
21641 # Is the header compilable?
21642{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21643echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21644cat >conftest.$ac_ext <<_ACEOF
21645/* confdefs.h. */
21646_ACEOF
21647cat confdefs.h >>conftest.$ac_ext
21648cat >>conftest.$ac_ext <<_ACEOF
21649/* end confdefs.h. */
21650$ac_includes_default
21651#include <$ac_header>
21652_ACEOF
21653rm -f conftest.$ac_objext
21654if { (ac_try="$ac_compile"
21655case "(($ac_try" in
21656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21657 *) ac_try_echo=$ac_try;;
21658esac
21659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21660 (eval "$ac_compile") 2>conftest.er1
21661 ac_status=$?
21662 grep -v '^ *+' conftest.er1 >conftest.err
21663 rm -f conftest.er1
21664 cat conftest.err >&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } && {
21667 test -z "$ac_c_werror_flag" ||
21668 test ! -s conftest.err
21669 } && test -s conftest.$ac_objext; then
21670 ac_header_compiler=yes
21671else
21672 echo "$as_me: failed program was:" >&5
21673sed 's/^/| /' conftest.$ac_ext >&5
21674
21675 ac_header_compiler=no
21676fi
21677
21678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21679{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21680echo "${ECHO_T}$ac_header_compiler" >&6; }
21681
21682# Is the header present?
21683{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21685cat >conftest.$ac_ext <<_ACEOF
21686/* confdefs.h. */
21687_ACEOF
21688cat confdefs.h >>conftest.$ac_ext
21689cat >>conftest.$ac_ext <<_ACEOF
21690/* end confdefs.h. */
21691#include <$ac_header>
21692_ACEOF
21693if { (ac_try="$ac_cpp conftest.$ac_ext"
21694case "(($ac_try" in
21695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696 *) ac_try_echo=$ac_try;;
21697esac
21698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21700 ac_status=$?
21701 grep -v '^ *+' conftest.er1 >conftest.err
21702 rm -f conftest.er1
21703 cat conftest.err >&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } >/dev/null && {
21706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21707 test ! -s conftest.err
21708 }; then
21709 ac_header_preproc=yes
21710else
21711 echo "$as_me: failed program was:" >&5
21712sed 's/^/| /' conftest.$ac_ext >&5
21713
21714 ac_header_preproc=no
21715fi
21716
21717rm -f conftest.err conftest.$ac_ext
21718{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21719echo "${ECHO_T}$ac_header_preproc" >&6; }
21720
21721# So? What about this header?
21722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21723 yes:no: )
21724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21725echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21727echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21728 ac_header_preproc=yes
21729 ;;
21730 no:yes:* )
21731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21732echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21734echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21736echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21738echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21740echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21742echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21743 ( cat <<\_ASBOX
21744## ---------------------------------- ##
21745## Report this to christos@astron.com ##
21746## ---------------------------------- ##
21747_ASBOX
21748 ) | sed "s/^/$as_me: WARNING: /" >&2
21749 ;;
21750esac
21751{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21753if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21754 echo $ECHO_N "(cached) $ECHO_C" >&6
21755else
21756 eval "$as_ac_Header=\$ac_header_preproc"
21757fi
21758ac_res=`eval echo '${'$as_ac_Header'}'`
21759 { echo "$as_me:$LINENO: result: $ac_res" >&5
21760echo "${ECHO_T}$ac_res" >&6; }
21761
21762fi
21763if test `eval echo '${'$as_ac_Header'}'` = yes; then
21764 cat >>confdefs.h <<_ACEOF
21765#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21766_ACEOF
21767
21768fi
21769
21770done
21771
21772
21773{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21774echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21775if test "${ac_cv_c_const+set}" = set; then
21776 echo $ECHO_N "(cached) $ECHO_C" >&6
21777else
21778 cat >conftest.$ac_ext <<_ACEOF
21779/* confdefs.h. */
21780_ACEOF
21781cat confdefs.h >>conftest.$ac_ext
21782cat >>conftest.$ac_ext <<_ACEOF
21783/* end confdefs.h. */
21784
21785int
21786main ()
21787{
21788/* FIXME: Include the comments suggested by Paul. */
21789#ifndef __cplusplus
21790 /* Ultrix mips cc rejects this. */
21791 typedef int charset[2];
21792 const charset cs;
21793 /* SunOS 4.1.1 cc rejects this. */
21794 char const *const *pcpcc;
21795 char **ppc;
21796 /* NEC SVR4.0.2 mips cc rejects this. */
21797 struct point {int x, y;};
21798 static struct point const zero = {0,0};
21799 /* AIX XL C 1.02.0.0 rejects this.
21800 It does not let you subtract one const X* pointer from another in
21801 an arm of an if-expression whose if-part is not a constant
21802 expression */
21803 const char *g = "string";
21804 pcpcc = &g + (g ? g-g : 0);
21805 /* HPUX 7.0 cc rejects these. */
21806 ++pcpcc;
21807 ppc = (char**) pcpcc;
21808 pcpcc = (char const *const *) ppc;
21809 { /* SCO 3.2v4 cc rejects this. */
21810 char *t;
21811 char const *s = 0 ? (char *) 0 : (char const *) 0;
21812
21813 *t++ = 0;
21814 if (s) return 0;
21815 }
21816 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21817 int x[] = {25, 17};
21818 const int *foo = &x[0];
21819 ++foo;
21820 }
21821 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21822 typedef const int *iptr;
21823 iptr p = 0;
21824 ++p;
21825 }
21826 { /* AIX XL C 1.02.0.0 rejects this saying
21827 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21828 struct s { int j; const int *ap[3]; };
21829 struct s *b; b->j = 5;
21830 }
21831 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21832 const int foo = 10;
21833 if (!foo) return 0;
21834 }
21835 return !cs[0] && !zero.x;
21836#endif
21837
21838 ;
21839 return 0;
21840}
21841_ACEOF
21842rm -f conftest.$ac_objext
21843if { (ac_try="$ac_compile"
21844case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21847esac
21848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_compile") 2>conftest.er1
21850 ac_status=$?
21851 grep -v '^ *+' conftest.er1 >conftest.err
21852 rm -f conftest.er1
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } && {
21856 test -z "$ac_c_werror_flag" ||
21857 test ! -s conftest.err
21858 } && test -s conftest.$ac_objext; then
21859 ac_cv_c_const=yes
21860else
21861 echo "$as_me: failed program was:" >&5
21862sed 's/^/| /' conftest.$ac_ext >&5
21863
21864 ac_cv_c_const=no
21865fi
21866
21867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21868fi
21869{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21870echo "${ECHO_T}$ac_cv_c_const" >&6; }
21871if test $ac_cv_c_const = no; then
21872
21873cat >>confdefs.h <<\_ACEOF
21874#define const
21875_ACEOF
21876
21877fi
21878
21879{ echo "$as_me:$LINENO: checking for off_t" >&5
21880echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21881if test "${ac_cv_type_off_t+set}" = set; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21883else
21884 cat >conftest.$ac_ext <<_ACEOF
21885/* confdefs.h. */
21886_ACEOF
21887cat confdefs.h >>conftest.$ac_ext
21888cat >>conftest.$ac_ext <<_ACEOF
21889/* end confdefs.h. */
21890$ac_includes_default
21891typedef off_t ac__type_new_;
21892int
21893main ()
21894{
21895if ((ac__type_new_ *) 0)
21896 return 0;
21897if (sizeof (ac__type_new_))
21898 return 0;
21899 ;
21900 return 0;
21901}
21902_ACEOF
21903rm -f conftest.$ac_objext
21904if { (ac_try="$ac_compile"
21905case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21908esac
21909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910 (eval "$ac_compile") 2>conftest.er1
21911 ac_status=$?
21912 grep -v '^ *+' conftest.er1 >conftest.err
21913 rm -f conftest.er1
21914 cat conftest.err >&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } && {
21917 test -z "$ac_c_werror_flag" ||
21918 test ! -s conftest.err
21919 } && test -s conftest.$ac_objext; then
21920 ac_cv_type_off_t=yes
21921else
21922 echo "$as_me: failed program was:" >&5
21923sed 's/^/| /' conftest.$ac_ext >&5
21924
21925 ac_cv_type_off_t=no
21926fi
21927
21928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21929fi
21930{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21931echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21932if test $ac_cv_type_off_t = yes; then
21933 :
21934else
21935
21936cat >>confdefs.h <<_ACEOF
21937#define off_t long int
21938_ACEOF
21939
21940fi
21941
21942{ echo "$as_me:$LINENO: checking for size_t" >&5
21943echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21944if test "${ac_cv_type_size_t+set}" = set; then
21945 echo $ECHO_N "(cached) $ECHO_C" >&6
21946else
21947 cat >conftest.$ac_ext <<_ACEOF
21948/* confdefs.h. */
21949_ACEOF
21950cat confdefs.h >>conftest.$ac_ext
21951cat >>conftest.$ac_ext <<_ACEOF
21952/* end confdefs.h. */
21953$ac_includes_default
21954typedef size_t ac__type_new_;
21955int
21956main ()
21957{
21958if ((ac__type_new_ *) 0)
21959 return 0;
21960if (sizeof (ac__type_new_))
21961 return 0;
21962 ;
21963 return 0;
21964}
21965_ACEOF
21966rm -f conftest.$ac_objext
21967if { (ac_try="$ac_compile"
21968case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21971esac
21972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_compile") 2>conftest.er1
21974 ac_status=$?
21975 grep -v '^ *+' conftest.er1 >conftest.err
21976 rm -f conftest.er1
21977 cat conftest.err >&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); } && {
21980 test -z "$ac_c_werror_flag" ||
21981 test ! -s conftest.err
21982 } && test -s conftest.$ac_objext; then
21983 ac_cv_type_size_t=yes
21984else
21985 echo "$as_me: failed program was:" >&5
21986sed 's/^/| /' conftest.$ac_ext >&5
21987
21988 ac_cv_type_size_t=no
21989fi
21990
21991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21992fi
21993{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21994echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21995if test $ac_cv_type_size_t = yes; then
21996 :
21997else
21998
21999cat >>confdefs.h <<_ACEOF
22000#define size_t unsigned int
22001_ACEOF
22002
22003fi
22004
22005{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22006echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
22007if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22008 echo $ECHO_N "(cached) $ECHO_C" >&6
22009else
22010 cat >conftest.$ac_ext <<_ACEOF
22011/* confdefs.h. */
22012_ACEOF
22013cat confdefs.h >>conftest.$ac_ext
22014cat >>conftest.$ac_ext <<_ACEOF
22015/* end confdefs.h. */
22016$ac_includes_default
22017int
22018main ()
22019{
22020static struct stat ac_aggr;
22021if (ac_aggr.st_rdev)
22022return 0;
22023 ;
22024 return 0;
22025}
22026_ACEOF
22027rm -f conftest.$ac_objext
22028if { (ac_try="$ac_compile"
22029case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22032esac
22033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034 (eval "$ac_compile") 2>conftest.er1
22035 ac_status=$?
22036 grep -v '^ *+' conftest.er1 >conftest.err
22037 rm -f conftest.er1
22038 cat conftest.err >&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } && {
22041 test -z "$ac_c_werror_flag" ||
22042 test ! -s conftest.err
22043 } && test -s conftest.$ac_objext; then
22044 ac_cv_member_struct_stat_st_rdev=yes
22045else
22046 echo "$as_me: failed program was:" >&5
22047sed 's/^/| /' conftest.$ac_ext >&5
22048
22049 cat >conftest.$ac_ext <<_ACEOF
22050/* confdefs.h. */
22051_ACEOF
22052cat confdefs.h >>conftest.$ac_ext
22053cat >>conftest.$ac_ext <<_ACEOF
22054/* end confdefs.h. */
22055$ac_includes_default
22056int
22057main ()
22058{
22059static struct stat ac_aggr;
22060if (sizeof ac_aggr.st_rdev)
22061return 0;
22062 ;
22063 return 0;
22064}
22065_ACEOF
22066rm -f conftest.$ac_objext
22067if { (ac_try="$ac_compile"
22068case "(($ac_try" in
22069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22070 *) ac_try_echo=$ac_try;;
22071esac
22072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22073 (eval "$ac_compile") 2>conftest.er1
22074 ac_status=$?
22075 grep -v '^ *+' conftest.er1 >conftest.err
22076 rm -f conftest.er1
22077 cat conftest.err >&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } && {
22080 test -z "$ac_c_werror_flag" ||
22081 test ! -s conftest.err
22082 } && test -s conftest.$ac_objext; then
22083 ac_cv_member_struct_stat_st_rdev=yes
22084else
22085 echo "$as_me: failed program was:" >&5
22086sed 's/^/| /' conftest.$ac_ext >&5
22087
22088 ac_cv_member_struct_stat_st_rdev=no
22089fi
22090
22091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22092fi
22093
22094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22095fi
22096{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22097echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
22098if test $ac_cv_member_struct_stat_st_rdev = yes; then
22099
22100cat >>confdefs.h <<_ACEOF
22101#define HAVE_STRUCT_STAT_ST_RDEV 1
22102_ACEOF
22103
22104
22105fi
22106
22107
22108{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22109echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
22110if test "${ac_cv_struct_tm+set}" = set; then
22111 echo $ECHO_N "(cached) $ECHO_C" >&6
22112else
22113 cat >conftest.$ac_ext <<_ACEOF
22114/* confdefs.h. */
22115_ACEOF
22116cat confdefs.h >>conftest.$ac_ext
22117cat >>conftest.$ac_ext <<_ACEOF
22118/* end confdefs.h. */
22119#include <sys/types.h>
22120#include <time.h>
22121
22122int
22123main ()
22124{
22125struct tm tm;
22126 int *p = &tm.tm_sec;
22127 return !p;
22128 ;
22129 return 0;
22130}
22131_ACEOF
22132rm -f conftest.$ac_objext
22133if { (ac_try="$ac_compile"
22134case "(($ac_try" in
22135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136 *) ac_try_echo=$ac_try;;
22137esac
22138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22139 (eval "$ac_compile") 2>conftest.er1
22140 ac_status=$?
22141 grep -v '^ *+' conftest.er1 >conftest.err
22142 rm -f conftest.er1
22143 cat conftest.err >&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); } && {
22146 test -z "$ac_c_werror_flag" ||
22147 test ! -s conftest.err
22148 } && test -s conftest.$ac_objext; then
22149 ac_cv_struct_tm=time.h
22150else
22151 echo "$as_me: failed program was:" >&5
22152sed 's/^/| /' conftest.$ac_ext >&5
22153
22154 ac_cv_struct_tm=sys/time.h
22155fi
22156
22157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22158fi
22159{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22160echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
22161if test $ac_cv_struct_tm = sys/time.h; then
22162
22163cat >>confdefs.h <<\_ACEOF
22164#define TM_IN_SYS_TIME 1
22165_ACEOF
22166
22167fi
22168
22169{ echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
22170echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
22171if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22173else
22174 cat >conftest.$ac_ext <<_ACEOF
22175/* confdefs.h. */
22176_ACEOF
22177cat confdefs.h >>conftest.$ac_ext
22178cat >>conftest.$ac_ext <<_ACEOF
22179/* end confdefs.h. */
22180$ac_includes_default
22181int
22182main ()
22183{
22184static struct tm ac_aggr;
22185if (ac_aggr.tm_gmtoff)
22186return 0;
22187 ;
22188 return 0;
22189}
22190_ACEOF
22191rm -f conftest.$ac_objext
22192if { (ac_try="$ac_compile"
22193case "(($ac_try" in
22194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22195 *) ac_try_echo=$ac_try;;
22196esac
22197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22198 (eval "$ac_compile") 2>conftest.er1
22199 ac_status=$?
22200 grep -v '^ *+' conftest.er1 >conftest.err
22201 rm -f conftest.er1
22202 cat conftest.err >&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); } && {
22205 test -z "$ac_c_werror_flag" ||
22206 test ! -s conftest.err
22207 } && test -s conftest.$ac_objext; then
22208 ac_cv_member_struct_tm_tm_gmtoff=yes
22209else
22210 echo "$as_me: failed program was:" >&5
22211sed 's/^/| /' conftest.$ac_ext >&5
22212
22213 cat >conftest.$ac_ext <<_ACEOF
22214/* confdefs.h. */
22215_ACEOF
22216cat confdefs.h >>conftest.$ac_ext
22217cat >>conftest.$ac_ext <<_ACEOF
22218/* end confdefs.h. */
22219$ac_includes_default
22220int
22221main ()
22222{
22223static struct tm ac_aggr;
22224if (sizeof ac_aggr.tm_gmtoff)
22225return 0;
22226 ;
22227 return 0;
22228}
22229_ACEOF
22230rm -f conftest.$ac_objext
22231if { (ac_try="$ac_compile"
22232case "(($ac_try" in
22233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22234 *) ac_try_echo=$ac_try;;
22235esac
22236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22237 (eval "$ac_compile") 2>conftest.er1
22238 ac_status=$?
22239 grep -v '^ *+' conftest.er1 >conftest.err
22240 rm -f conftest.er1
22241 cat conftest.err >&5
22242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); } && {
22244 test -z "$ac_c_werror_flag" ||
22245 test ! -s conftest.err
22246 } && test -s conftest.$ac_objext; then
22247 ac_cv_member_struct_tm_tm_gmtoff=yes
22248else
22249 echo "$as_me: failed program was:" >&5
22250sed 's/^/| /' conftest.$ac_ext >&5
22251
22252 ac_cv_member_struct_tm_tm_gmtoff=no
22253fi
22254
22255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22256fi
22257
22258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22259fi
22260{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
22261echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
22262if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
22263
22264cat >>confdefs.h <<_ACEOF
22265#define HAVE_STRUCT_TM_TM_GMTOFF 1
22266_ACEOF
22267
22268
22269fi
22270{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22271echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22272if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22273 echo $ECHO_N "(cached) $ECHO_C" >&6
22274else
22275 cat >conftest.$ac_ext <<_ACEOF
22276/* confdefs.h. */
22277_ACEOF
22278cat confdefs.h >>conftest.$ac_ext
22279cat >>conftest.$ac_ext <<_ACEOF
22280/* end confdefs.h. */
22281$ac_includes_default
22282int
22283main ()
22284{
22285static struct tm ac_aggr;
22286if (ac_aggr.tm_zone)
22287return 0;
22288 ;
22289 return 0;
22290}
22291_ACEOF
22292rm -f conftest.$ac_objext
22293if { (ac_try="$ac_compile"
22294case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22297esac
22298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22299 (eval "$ac_compile") 2>conftest.er1
22300 ac_status=$?
22301 grep -v '^ *+' conftest.er1 >conftest.err
22302 rm -f conftest.er1
22303 cat conftest.err >&5
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); } && {
22306 test -z "$ac_c_werror_flag" ||
22307 test ! -s conftest.err
22308 } && test -s conftest.$ac_objext; then
22309 ac_cv_member_struct_tm_tm_zone=yes
22310else
22311 echo "$as_me: failed program was:" >&5
22312sed 's/^/| /' conftest.$ac_ext >&5
22313
22314 cat >conftest.$ac_ext <<_ACEOF
22315/* confdefs.h. */
22316_ACEOF
22317cat confdefs.h >>conftest.$ac_ext
22318cat >>conftest.$ac_ext <<_ACEOF
22319/* end confdefs.h. */
22320$ac_includes_default
22321int
22322main ()
22323{
22324static struct tm ac_aggr;
22325if (sizeof ac_aggr.tm_zone)
22326return 0;
22327 ;
22328 return 0;
22329}
22330_ACEOF
22331rm -f conftest.$ac_objext
22332if { (ac_try="$ac_compile"
22333case "(($ac_try" in
22334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335 *) ac_try_echo=$ac_try;;
22336esac
22337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338 (eval "$ac_compile") 2>conftest.er1
22339 ac_status=$?
22340 grep -v '^ *+' conftest.er1 >conftest.err
22341 rm -f conftest.er1
22342 cat conftest.err >&5
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); } && {
22345 test -z "$ac_c_werror_flag" ||
22346 test ! -s conftest.err
22347 } && test -s conftest.$ac_objext; then
22348 ac_cv_member_struct_tm_tm_zone=yes
22349else
22350 echo "$as_me: failed program was:" >&5
22351sed 's/^/| /' conftest.$ac_ext >&5
22352
22353 ac_cv_member_struct_tm_tm_zone=no
22354fi
22355
22356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22357fi
22358
22359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22360fi
22361{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22362echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
22363if test $ac_cv_member_struct_tm_tm_zone = yes; then
22364
22365cat >>confdefs.h <<_ACEOF
22366#define HAVE_STRUCT_TM_TM_ZONE 1
22367_ACEOF
22368
22369
22370fi
22371
22372{ echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
22373echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
22374if test "${ac_cv_struct_tm_zone+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22376else
22377 cat >conftest.$ac_ext <<_ACEOF
22378/* confdefs.h. */
22379_ACEOF
22380cat confdefs.h >>conftest.$ac_ext
22381cat >>conftest.$ac_ext <<_ACEOF
22382/* end confdefs.h. */
22383#include <sys/types.h>
22384#include <$ac_cv_struct_tm>
22385int
22386main ()
22387{
22388struct tm tm; tm.tm_zone;
22389 ;
22390 return 0;
22391}
22392_ACEOF
22393rm -f conftest.$ac_objext
22394if { (ac_try="$ac_compile"
22395case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22398esac
22399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400 (eval "$ac_compile") 2>conftest.er1
22401 ac_status=$?
22402 grep -v '^ *+' conftest.er1 >conftest.err
22403 rm -f conftest.er1
22404 cat conftest.err >&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); } && {
22407 test -z "$ac_c_werror_flag" ||
22408 test ! -s conftest.err
22409 } && test -s conftest.$ac_objext; then
22410 ac_cv_struct_tm_zone=yes
22411else
22412 echo "$as_me: failed program was:" >&5
22413sed 's/^/| /' conftest.$ac_ext >&5
22414
22415 ac_cv_struct_tm_zone=no
22416fi
22417
22418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22419fi
22420{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
22421echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6; }
22422if test "$ac_cv_struct_tm_zone" = yes; then
22423
22424cat >>confdefs.h <<\_ACEOF
22425#define HAVE_TM_ZONE 1
22426_ACEOF
22427
22428fi
19926
19927# Set to yes if exported symbols are required.
19928always_export_symbols=$always_export_symbols_RC
19929
19930# The commands to list exported symbols.
19931export_symbols_cmds=$lt_export_symbols_cmds_RC
19932
19933# The commands to extract the exported symbol list from a shared archive.
19934extract_expsyms_cmds=$lt_extract_expsyms_cmds
19935
19936# Symbols that should not be listed in the preloaded symbols.
19937exclude_expsyms=$lt_exclude_expsyms_RC
19938
19939# Symbols that must always be exported.
19940include_expsyms=$lt_include_expsyms_RC
19941
19942# ### END LIBTOOL TAG CONFIG: $tagname
19943
19944__EOF__
19945
19946
19947else
19948 # If there is no Makefile yet, we rely on a make rule to execute
19949 # `config.status --recheck' to rerun these tests and create the
19950 # libtool script then.
19951 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19952 if test -f "$ltmain_in"; then
19953 test -f Makefile && make "$ltmain"
19954 fi
19955fi
19956
19957
19958ac_ext=c
19959ac_cpp='$CPP $CPPFLAGS'
19960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19962ac_compiler_gnu=$ac_cv_c_compiler_gnu
19963
19964CC="$lt_save_CC"
19965
19966 ;;
19967
19968 *)
19969 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19970echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19971 { (exit 1); exit 1; }; }
19972 ;;
19973 esac
19974
19975 # Append the new tag name to the list of available tags.
19976 if test -n "$tagname" ; then
19977 available_tags="$available_tags $tagname"
19978 fi
19979 fi
19980 done
19981 IFS="$lt_save_ifs"
19982
19983 # Now substitute the updated list of available tags.
19984 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19985 mv "${ofile}T" "$ofile"
19986 chmod +x "$ofile"
19987 else
19988 rm -f "${ofile}T"
19989 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19990echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19991 { (exit 1); exit 1; }; }
19992 fi
19993fi
19994
19995
19996
19997# This can be used to rebuild libtool when needed
19998LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19999
20000# Always use our own libtool.
20001LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20002
20003# Prevent multiple expansion
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20026echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20027if test "${ac_cv_header_stdc+set}" = set; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
20029else
20030 cat >conftest.$ac_ext <<_ACEOF
20031/* confdefs.h. */
20032_ACEOF
20033cat confdefs.h >>conftest.$ac_ext
20034cat >>conftest.$ac_ext <<_ACEOF
20035/* end confdefs.h. */
20036#include <stdlib.h>
20037#include <stdarg.h>
20038#include <string.h>
20039#include <float.h>
20040
20041int
20042main ()
20043{
20044
20045 ;
20046 return 0;
20047}
20048_ACEOF
20049rm -f conftest.$ac_objext
20050if { (ac_try="$ac_compile"
20051case "(($ac_try" in
20052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20053 *) ac_try_echo=$ac_try;;
20054esac
20055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20056 (eval "$ac_compile") 2>conftest.er1
20057 ac_status=$?
20058 grep -v '^ *+' conftest.er1 >conftest.err
20059 rm -f conftest.er1
20060 cat conftest.err >&5
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); } && {
20063 test -z "$ac_c_werror_flag" ||
20064 test ! -s conftest.err
20065 } && test -s conftest.$ac_objext; then
20066 ac_cv_header_stdc=yes
20067else
20068 echo "$as_me: failed program was:" >&5
20069sed 's/^/| /' conftest.$ac_ext >&5
20070
20071 ac_cv_header_stdc=no
20072fi
20073
20074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20075
20076if test $ac_cv_header_stdc = yes; then
20077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20078 cat >conftest.$ac_ext <<_ACEOF
20079/* confdefs.h. */
20080_ACEOF
20081cat confdefs.h >>conftest.$ac_ext
20082cat >>conftest.$ac_ext <<_ACEOF
20083/* end confdefs.h. */
20084#include <string.h>
20085
20086_ACEOF
20087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20088 $EGREP "memchr" >/dev/null 2>&1; then
20089 :
20090else
20091 ac_cv_header_stdc=no
20092fi
20093rm -f conftest*
20094
20095fi
20096
20097if test $ac_cv_header_stdc = yes; then
20098 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20099 cat >conftest.$ac_ext <<_ACEOF
20100/* confdefs.h. */
20101_ACEOF
20102cat confdefs.h >>conftest.$ac_ext
20103cat >>conftest.$ac_ext <<_ACEOF
20104/* end confdefs.h. */
20105#include <stdlib.h>
20106
20107_ACEOF
20108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20109 $EGREP "free" >/dev/null 2>&1; then
20110 :
20111else
20112 ac_cv_header_stdc=no
20113fi
20114rm -f conftest*
20115
20116fi
20117
20118if test $ac_cv_header_stdc = yes; then
20119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20120 if test "$cross_compiling" = yes; then
20121 :
20122else
20123 cat >conftest.$ac_ext <<_ACEOF
20124/* confdefs.h. */
20125_ACEOF
20126cat confdefs.h >>conftest.$ac_ext
20127cat >>conftest.$ac_ext <<_ACEOF
20128/* end confdefs.h. */
20129#include <ctype.h>
20130#include <stdlib.h>
20131#if ((' ' & 0x0FF) == 0x020)
20132# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20133# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20134#else
20135# define ISLOWER(c) \
20136 (('a' <= (c) && (c) <= 'i') \
20137 || ('j' <= (c) && (c) <= 'r') \
20138 || ('s' <= (c) && (c) <= 'z'))
20139# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20140#endif
20141
20142#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20143int
20144main ()
20145{
20146 int i;
20147 for (i = 0; i < 256; i++)
20148 if (XOR (islower (i), ISLOWER (i))
20149 || toupper (i) != TOUPPER (i))
20150 return 2;
20151 return 0;
20152}
20153_ACEOF
20154rm -f conftest$ac_exeext
20155if { (ac_try="$ac_link"
20156case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20159esac
20160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_link") 2>&5
20162 ac_status=$?
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20165 { (case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20168esac
20169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_try") 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
20174 :
20175else
20176 echo "$as_me: program exited with status $ac_status" >&5
20177echo "$as_me: failed program was:" >&5
20178sed 's/^/| /' conftest.$ac_ext >&5
20179
20180( exit $ac_status )
20181ac_cv_header_stdc=no
20182fi
20183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20184fi
20185
20186
20187fi
20188fi
20189{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20190echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20191if test $ac_cv_header_stdc = yes; then
20192
20193cat >>confdefs.h <<\_ACEOF
20194#define STDC_HEADERS 1
20195_ACEOF
20196
20197fi
20198
20199{ echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20200echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20201if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20203else
20204 cat >conftest.$ac_ext <<_ACEOF
20205/* confdefs.h. */
20206_ACEOF
20207cat confdefs.h >>conftest.$ac_ext
20208cat >>conftest.$ac_ext <<_ACEOF
20209/* end confdefs.h. */
20210#include <sys/types.h>
20211int
20212main ()
20213{
20214return makedev(0, 0);
20215 ;
20216 return 0;
20217}
20218_ACEOF
20219rm -f conftest.$ac_objext conftest$ac_exeext
20220if { (ac_try="$ac_link"
20221case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224esac
20225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_link") 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } && {
20233 test -z "$ac_c_werror_flag" ||
20234 test ! -s conftest.err
20235 } && test -s conftest$ac_exeext &&
20236 $as_test_x conftest$ac_exeext; then
20237 ac_cv_header_sys_types_h_makedev=yes
20238else
20239 echo "$as_me: failed program was:" >&5
20240sed 's/^/| /' conftest.$ac_ext >&5
20241
20242 ac_cv_header_sys_types_h_makedev=no
20243fi
20244
20245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20246 conftest$ac_exeext conftest.$ac_ext
20247
20248fi
20249{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20250echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20251
20252if test $ac_cv_header_sys_types_h_makedev = no; then
20253if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20254 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20255echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20256if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20257 echo $ECHO_N "(cached) $ECHO_C" >&6
20258fi
20259{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20260echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20261else
20262 # Is the header compilable?
20263{ echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20264echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20265cat >conftest.$ac_ext <<_ACEOF
20266/* confdefs.h. */
20267_ACEOF
20268cat confdefs.h >>conftest.$ac_ext
20269cat >>conftest.$ac_ext <<_ACEOF
20270/* end confdefs.h. */
20271$ac_includes_default
20272#include <sys/mkdev.h>
20273_ACEOF
20274rm -f conftest.$ac_objext
20275if { (ac_try="$ac_compile"
20276case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20279esac
20280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_compile") 2>conftest.er1
20282 ac_status=$?
20283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } && {
20288 test -z "$ac_c_werror_flag" ||
20289 test ! -s conftest.err
20290 } && test -s conftest.$ac_objext; then
20291 ac_header_compiler=yes
20292else
20293 echo "$as_me: failed program was:" >&5
20294sed 's/^/| /' conftest.$ac_ext >&5
20295
20296 ac_header_compiler=no
20297fi
20298
20299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20300{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20301echo "${ECHO_T}$ac_header_compiler" >&6; }
20302
20303# Is the header present?
20304{ echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20305echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20306cat >conftest.$ac_ext <<_ACEOF
20307/* confdefs.h. */
20308_ACEOF
20309cat confdefs.h >>conftest.$ac_ext
20310cat >>conftest.$ac_ext <<_ACEOF
20311/* end confdefs.h. */
20312#include <sys/mkdev.h>
20313_ACEOF
20314if { (ac_try="$ac_cpp conftest.$ac_ext"
20315case "(($ac_try" in
20316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317 *) ac_try_echo=$ac_try;;
20318esac
20319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20321 ac_status=$?
20322 grep -v '^ *+' conftest.er1 >conftest.err
20323 rm -f conftest.er1
20324 cat conftest.err >&5
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); } >/dev/null && {
20327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20328 test ! -s conftest.err
20329 }; then
20330 ac_header_preproc=yes
20331else
20332 echo "$as_me: failed program was:" >&5
20333sed 's/^/| /' conftest.$ac_ext >&5
20334
20335 ac_header_preproc=no
20336fi
20337
20338rm -f conftest.err conftest.$ac_ext
20339{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20340echo "${ECHO_T}$ac_header_preproc" >&6; }
20341
20342# So? What about this header?
20343case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20344 yes:no: )
20345 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20346echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20347 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20348echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20349 ac_header_preproc=yes
20350 ;;
20351 no:yes:* )
20352 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20353echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20354 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20355echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20356 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20357echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20358 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20359echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20361echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20362 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20363echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20364 ( cat <<\_ASBOX
20365## ---------------------------------- ##
20366## Report this to christos@astron.com ##
20367## ---------------------------------- ##
20368_ASBOX
20369 ) | sed "s/^/$as_me: WARNING: /" >&2
20370 ;;
20371esac
20372{ echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20373echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20374if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20375 echo $ECHO_N "(cached) $ECHO_C" >&6
20376else
20377 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20378fi
20379{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20380echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20381
20382fi
20383if test $ac_cv_header_sys_mkdev_h = yes; then
20384
20385cat >>confdefs.h <<\_ACEOF
20386#define MAJOR_IN_MKDEV 1
20387_ACEOF
20388
20389fi
20390
20391
20392
20393 if test $ac_cv_header_sys_mkdev_h = no; then
20394 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20395 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20396echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20397if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20398 echo $ECHO_N "(cached) $ECHO_C" >&6
20399fi
20400{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20401echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20402else
20403 # Is the header compilable?
20404{ echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20405echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20406cat >conftest.$ac_ext <<_ACEOF
20407/* confdefs.h. */
20408_ACEOF
20409cat confdefs.h >>conftest.$ac_ext
20410cat >>conftest.$ac_ext <<_ACEOF
20411/* end confdefs.h. */
20412$ac_includes_default
20413#include <sys/sysmacros.h>
20414_ACEOF
20415rm -f conftest.$ac_objext
20416if { (ac_try="$ac_compile"
20417case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20420esac
20421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_compile") 2>conftest.er1
20423 ac_status=$?
20424 grep -v '^ *+' conftest.er1 >conftest.err
20425 rm -f conftest.er1
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } && {
20429 test -z "$ac_c_werror_flag" ||
20430 test ! -s conftest.err
20431 } && test -s conftest.$ac_objext; then
20432 ac_header_compiler=yes
20433else
20434 echo "$as_me: failed program was:" >&5
20435sed 's/^/| /' conftest.$ac_ext >&5
20436
20437 ac_header_compiler=no
20438fi
20439
20440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20441{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20442echo "${ECHO_T}$ac_header_compiler" >&6; }
20443
20444# Is the header present?
20445{ echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20446echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20447cat >conftest.$ac_ext <<_ACEOF
20448/* confdefs.h. */
20449_ACEOF
20450cat confdefs.h >>conftest.$ac_ext
20451cat >>conftest.$ac_ext <<_ACEOF
20452/* end confdefs.h. */
20453#include <sys/sysmacros.h>
20454_ACEOF
20455if { (ac_try="$ac_cpp conftest.$ac_ext"
20456case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20459esac
20460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20462 ac_status=$?
20463 grep -v '^ *+' conftest.er1 >conftest.err
20464 rm -f conftest.er1
20465 cat conftest.err >&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } >/dev/null && {
20468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20469 test ! -s conftest.err
20470 }; then
20471 ac_header_preproc=yes
20472else
20473 echo "$as_me: failed program was:" >&5
20474sed 's/^/| /' conftest.$ac_ext >&5
20475
20476 ac_header_preproc=no
20477fi
20478
20479rm -f conftest.err conftest.$ac_ext
20480{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20481echo "${ECHO_T}$ac_header_preproc" >&6; }
20482
20483# So? What about this header?
20484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20485 yes:no: )
20486 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20487echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20488 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20489echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20490 ac_header_preproc=yes
20491 ;;
20492 no:yes:* )
20493 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20494echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20495 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20496echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20497 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20498echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20499 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20500echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20501 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20502echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20503 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20504echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20505 ( cat <<\_ASBOX
20506## ---------------------------------- ##
20507## Report this to christos@astron.com ##
20508## ---------------------------------- ##
20509_ASBOX
20510 ) | sed "s/^/$as_me: WARNING: /" >&2
20511 ;;
20512esac
20513{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20514echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20515if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20516 echo $ECHO_N "(cached) $ECHO_C" >&6
20517else
20518 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20519fi
20520{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20521echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20522
20523fi
20524if test $ac_cv_header_sys_sysmacros_h = yes; then
20525
20526cat >>confdefs.h <<\_ACEOF
20527#define MAJOR_IN_SYSMACROS 1
20528_ACEOF
20529
20530fi
20531
20532
20533 fi
20534fi
20535
20536{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20537echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20538if test "${ac_cv_header_sys_wait_h+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20540else
20541 cat >conftest.$ac_ext <<_ACEOF
20542/* confdefs.h. */
20543_ACEOF
20544cat confdefs.h >>conftest.$ac_ext
20545cat >>conftest.$ac_ext <<_ACEOF
20546/* end confdefs.h. */
20547#include <sys/types.h>
20548#include <sys/wait.h>
20549#ifndef WEXITSTATUS
20550# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20551#endif
20552#ifndef WIFEXITED
20553# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20554#endif
20555
20556int
20557main ()
20558{
20559 int s;
20560 wait (&s);
20561 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20562 ;
20563 return 0;
20564}
20565_ACEOF
20566rm -f conftest.$ac_objext
20567if { (ac_try="$ac_compile"
20568case "(($ac_try" in
20569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570 *) ac_try_echo=$ac_try;;
20571esac
20572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573 (eval "$ac_compile") 2>conftest.er1
20574 ac_status=$?
20575 grep -v '^ *+' conftest.er1 >conftest.err
20576 rm -f conftest.er1
20577 cat conftest.err >&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } && {
20580 test -z "$ac_c_werror_flag" ||
20581 test ! -s conftest.err
20582 } && test -s conftest.$ac_objext; then
20583 ac_cv_header_sys_wait_h=yes
20584else
20585 echo "$as_me: failed program was:" >&5
20586sed 's/^/| /' conftest.$ac_ext >&5
20587
20588 ac_cv_header_sys_wait_h=no
20589fi
20590
20591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20592fi
20593{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20594echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20595if test $ac_cv_header_sys_wait_h = yes; then
20596
20597cat >>confdefs.h <<\_ACEOF
20598#define HAVE_SYS_WAIT_H 1
20599_ACEOF
20600
20601fi
20602
20603
20604
20605
20606
20607
20608
20609for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
20610do
20611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20617fi
20618ac_res=`eval echo '${'$as_ac_Header'}'`
20619 { echo "$as_me:$LINENO: result: $ac_res" >&5
20620echo "${ECHO_T}$ac_res" >&6; }
20621else
20622 # Is the header compilable?
20623{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20624echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20625cat >conftest.$ac_ext <<_ACEOF
20626/* confdefs.h. */
20627_ACEOF
20628cat confdefs.h >>conftest.$ac_ext
20629cat >>conftest.$ac_ext <<_ACEOF
20630/* end confdefs.h. */
20631$ac_includes_default
20632#include <$ac_header>
20633_ACEOF
20634rm -f conftest.$ac_objext
20635if { (ac_try="$ac_compile"
20636case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20639esac
20640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641 (eval "$ac_compile") 2>conftest.er1
20642 ac_status=$?
20643 grep -v '^ *+' conftest.er1 >conftest.err
20644 rm -f conftest.er1
20645 cat conftest.err >&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } && {
20648 test -z "$ac_c_werror_flag" ||
20649 test ! -s conftest.err
20650 } && test -s conftest.$ac_objext; then
20651 ac_header_compiler=yes
20652else
20653 echo "$as_me: failed program was:" >&5
20654sed 's/^/| /' conftest.$ac_ext >&5
20655
20656 ac_header_compiler=no
20657fi
20658
20659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20660{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20661echo "${ECHO_T}$ac_header_compiler" >&6; }
20662
20663# Is the header present?
20664{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20666cat >conftest.$ac_ext <<_ACEOF
20667/* confdefs.h. */
20668_ACEOF
20669cat confdefs.h >>conftest.$ac_ext
20670cat >>conftest.$ac_ext <<_ACEOF
20671/* end confdefs.h. */
20672#include <$ac_header>
20673_ACEOF
20674if { (ac_try="$ac_cpp conftest.$ac_ext"
20675case "(($ac_try" in
20676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20677 *) ac_try_echo=$ac_try;;
20678esac
20679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20681 ac_status=$?
20682 grep -v '^ *+' conftest.er1 >conftest.err
20683 rm -f conftest.er1
20684 cat conftest.err >&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } >/dev/null && {
20687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20688 test ! -s conftest.err
20689 }; then
20690 ac_header_preproc=yes
20691else
20692 echo "$as_me: failed program was:" >&5
20693sed 's/^/| /' conftest.$ac_ext >&5
20694
20695 ac_header_preproc=no
20696fi
20697
20698rm -f conftest.err conftest.$ac_ext
20699{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20700echo "${ECHO_T}$ac_header_preproc" >&6; }
20701
20702# So? What about this header?
20703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20704 yes:no: )
20705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20706echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20708echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20709 ac_header_preproc=yes
20710 ;;
20711 no:yes:* )
20712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20713echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20715echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20717echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20719echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20721echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20723echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20724 ( cat <<\_ASBOX
20725## ---------------------------------- ##
20726## Report this to christos@astron.com ##
20727## ---------------------------------- ##
20728_ASBOX
20729 ) | sed "s/^/$as_me: WARNING: /" >&2
20730 ;;
20731esac
20732{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20735 echo $ECHO_N "(cached) $ECHO_C" >&6
20736else
20737 eval "$as_ac_Header=\$ac_header_preproc"
20738fi
20739ac_res=`eval echo '${'$as_ac_Header'}'`
20740 { echo "$as_me:$LINENO: result: $ac_res" >&5
20741echo "${ECHO_T}$ac_res" >&6; }
20742
20743fi
20744if test `eval echo '${'$as_ac_Header'}'` = yes; then
20745 cat >>confdefs.h <<_ACEOF
20746#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20747_ACEOF
20748
20749fi
20750
20751done
20752
20753
20754
20755
20756
20757for ac_header in utime.h wchar.h wctype.h limits.h
20758do
20759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20764 echo $ECHO_N "(cached) $ECHO_C" >&6
20765fi
20766ac_res=`eval echo '${'$as_ac_Header'}'`
20767 { echo "$as_me:$LINENO: result: $ac_res" >&5
20768echo "${ECHO_T}$ac_res" >&6; }
20769else
20770 # Is the header compilable?
20771{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20773cat >conftest.$ac_ext <<_ACEOF
20774/* confdefs.h. */
20775_ACEOF
20776cat confdefs.h >>conftest.$ac_ext
20777cat >>conftest.$ac_ext <<_ACEOF
20778/* end confdefs.h. */
20779$ac_includes_default
20780#include <$ac_header>
20781_ACEOF
20782rm -f conftest.$ac_objext
20783if { (ac_try="$ac_compile"
20784case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20787esac
20788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_compile") 2>conftest.er1
20790 ac_status=$?
20791 grep -v '^ *+' conftest.er1 >conftest.err
20792 rm -f conftest.er1
20793 cat conftest.err >&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); } && {
20796 test -z "$ac_c_werror_flag" ||
20797 test ! -s conftest.err
20798 } && test -s conftest.$ac_objext; then
20799 ac_header_compiler=yes
20800else
20801 echo "$as_me: failed program was:" >&5
20802sed 's/^/| /' conftest.$ac_ext >&5
20803
20804 ac_header_compiler=no
20805fi
20806
20807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20808{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20809echo "${ECHO_T}$ac_header_compiler" >&6; }
20810
20811# Is the header present?
20812{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20814cat >conftest.$ac_ext <<_ACEOF
20815/* confdefs.h. */
20816_ACEOF
20817cat confdefs.h >>conftest.$ac_ext
20818cat >>conftest.$ac_ext <<_ACEOF
20819/* end confdefs.h. */
20820#include <$ac_header>
20821_ACEOF
20822if { (ac_try="$ac_cpp conftest.$ac_ext"
20823case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20826esac
20827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20829 ac_status=$?
20830 grep -v '^ *+' conftest.er1 >conftest.err
20831 rm -f conftest.er1
20832 cat conftest.err >&5
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); } >/dev/null && {
20835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20836 test ! -s conftest.err
20837 }; then
20838 ac_header_preproc=yes
20839else
20840 echo "$as_me: failed program was:" >&5
20841sed 's/^/| /' conftest.$ac_ext >&5
20842
20843 ac_header_preproc=no
20844fi
20845
20846rm -f conftest.err conftest.$ac_ext
20847{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20848echo "${ECHO_T}$ac_header_preproc" >&6; }
20849
20850# So? What about this header?
20851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20852 yes:no: )
20853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20854echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20856echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20857 ac_header_preproc=yes
20858 ;;
20859 no:yes:* )
20860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20861echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20863echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20865echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20867echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20869echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20871echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20872 ( cat <<\_ASBOX
20873## ---------------------------------- ##
20874## Report this to christos@astron.com ##
20875## ---------------------------------- ##
20876_ASBOX
20877 ) | sed "s/^/$as_me: WARNING: /" >&2
20878 ;;
20879esac
20880{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20883 echo $ECHO_N "(cached) $ECHO_C" >&6
20884else
20885 eval "$as_ac_Header=\$ac_header_preproc"
20886fi
20887ac_res=`eval echo '${'$as_ac_Header'}'`
20888 { echo "$as_me:$LINENO: result: $ac_res" >&5
20889echo "${ECHO_T}$ac_res" >&6; }
20890
20891fi
20892if test `eval echo '${'$as_ac_Header'}'` = yes; then
20893 cat >>confdefs.h <<_ACEOF
20894#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20895_ACEOF
20896
20897fi
20898
20899done
20900
20901
20902
20903for ac_header in getopt.h err.h
20904do
20905as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
20911fi
20912ac_res=`eval echo '${'$as_ac_Header'}'`
20913 { echo "$as_me:$LINENO: result: $ac_res" >&5
20914echo "${ECHO_T}$ac_res" >&6; }
20915else
20916 # Is the header compilable?
20917{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20918echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20919cat >conftest.$ac_ext <<_ACEOF
20920/* confdefs.h. */
20921_ACEOF
20922cat confdefs.h >>conftest.$ac_ext
20923cat >>conftest.$ac_ext <<_ACEOF
20924/* end confdefs.h. */
20925$ac_includes_default
20926#include <$ac_header>
20927_ACEOF
20928rm -f conftest.$ac_objext
20929if { (ac_try="$ac_compile"
20930case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20933esac
20934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935 (eval "$ac_compile") 2>conftest.er1
20936 ac_status=$?
20937 grep -v '^ *+' conftest.er1 >conftest.err
20938 rm -f conftest.er1
20939 cat conftest.err >&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } && {
20942 test -z "$ac_c_werror_flag" ||
20943 test ! -s conftest.err
20944 } && test -s conftest.$ac_objext; then
20945 ac_header_compiler=yes
20946else
20947 echo "$as_me: failed program was:" >&5
20948sed 's/^/| /' conftest.$ac_ext >&5
20949
20950 ac_header_compiler=no
20951fi
20952
20953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20954{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20955echo "${ECHO_T}$ac_header_compiler" >&6; }
20956
20957# Is the header present?
20958{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20959echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20960cat >conftest.$ac_ext <<_ACEOF
20961/* confdefs.h. */
20962_ACEOF
20963cat confdefs.h >>conftest.$ac_ext
20964cat >>conftest.$ac_ext <<_ACEOF
20965/* end confdefs.h. */
20966#include <$ac_header>
20967_ACEOF
20968if { (ac_try="$ac_cpp conftest.$ac_ext"
20969case "(($ac_try" in
20970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971 *) ac_try_echo=$ac_try;;
20972esac
20973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20975 ac_status=$?
20976 grep -v '^ *+' conftest.er1 >conftest.err
20977 rm -f conftest.er1
20978 cat conftest.err >&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } >/dev/null && {
20981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20982 test ! -s conftest.err
20983 }; then
20984 ac_header_preproc=yes
20985else
20986 echo "$as_me: failed program was:" >&5
20987sed 's/^/| /' conftest.$ac_ext >&5
20988
20989 ac_header_preproc=no
20990fi
20991
20992rm -f conftest.err conftest.$ac_ext
20993{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20994echo "${ECHO_T}$ac_header_preproc" >&6; }
20995
20996# So? What about this header?
20997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20998 yes:no: )
20999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21000echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21002echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21003 ac_header_preproc=yes
21004 ;;
21005 no:yes:* )
21006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21007echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21009echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21011echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21013echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21015echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21017echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21018 ( cat <<\_ASBOX
21019## ---------------------------------- ##
21020## Report this to christos@astron.com ##
21021## ---------------------------------- ##
21022_ASBOX
21023 ) | sed "s/^/$as_me: WARNING: /" >&2
21024 ;;
21025esac
21026{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21029 echo $ECHO_N "(cached) $ECHO_C" >&6
21030else
21031 eval "$as_ac_Header=\$ac_header_preproc"
21032fi
21033ac_res=`eval echo '${'$as_ac_Header'}'`
21034 { echo "$as_me:$LINENO: result: $ac_res" >&5
21035echo "${ECHO_T}$ac_res" >&6; }
21036
21037fi
21038if test `eval echo '${'$as_ac_Header'}'` = yes; then
21039 cat >>confdefs.h <<_ACEOF
21040#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21041_ACEOF
21042
21043fi
21044
21045done
21046
21047
21048
21049
21050
21051
21052for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
21053do
21054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21059 echo $ECHO_N "(cached) $ECHO_C" >&6
21060fi
21061ac_res=`eval echo '${'$as_ac_Header'}'`
21062 { echo "$as_me:$LINENO: result: $ac_res" >&5
21063echo "${ECHO_T}$ac_res" >&6; }
21064else
21065 # Is the header compilable?
21066{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21067echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21068cat >conftest.$ac_ext <<_ACEOF
21069/* confdefs.h. */
21070_ACEOF
21071cat confdefs.h >>conftest.$ac_ext
21072cat >>conftest.$ac_ext <<_ACEOF
21073/* end confdefs.h. */
21074$ac_includes_default
21075#include <$ac_header>
21076_ACEOF
21077rm -f conftest.$ac_objext
21078if { (ac_try="$ac_compile"
21079case "(($ac_try" in
21080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081 *) ac_try_echo=$ac_try;;
21082esac
21083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21084 (eval "$ac_compile") 2>conftest.er1
21085 ac_status=$?
21086 grep -v '^ *+' conftest.er1 >conftest.err
21087 rm -f conftest.er1
21088 cat conftest.err >&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } && {
21091 test -z "$ac_c_werror_flag" ||
21092 test ! -s conftest.err
21093 } && test -s conftest.$ac_objext; then
21094 ac_header_compiler=yes
21095else
21096 echo "$as_me: failed program was:" >&5
21097sed 's/^/| /' conftest.$ac_ext >&5
21098
21099 ac_header_compiler=no
21100fi
21101
21102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21104echo "${ECHO_T}$ac_header_compiler" >&6; }
21105
21106# Is the header present?
21107{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21108echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21109cat >conftest.$ac_ext <<_ACEOF
21110/* confdefs.h. */
21111_ACEOF
21112cat confdefs.h >>conftest.$ac_ext
21113cat >>conftest.$ac_ext <<_ACEOF
21114/* end confdefs.h. */
21115#include <$ac_header>
21116_ACEOF
21117if { (ac_try="$ac_cpp conftest.$ac_ext"
21118case "(($ac_try" in
21119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120 *) ac_try_echo=$ac_try;;
21121esac
21122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21124 ac_status=$?
21125 grep -v '^ *+' conftest.er1 >conftest.err
21126 rm -f conftest.er1
21127 cat conftest.err >&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } >/dev/null && {
21130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21131 test ! -s conftest.err
21132 }; then
21133 ac_header_preproc=yes
21134else
21135 echo "$as_me: failed program was:" >&5
21136sed 's/^/| /' conftest.$ac_ext >&5
21137
21138 ac_header_preproc=no
21139fi
21140
21141rm -f conftest.err conftest.$ac_ext
21142{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21143echo "${ECHO_T}$ac_header_preproc" >&6; }
21144
21145# So? What about this header?
21146case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21147 yes:no: )
21148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21149echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21151echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21152 ac_header_preproc=yes
21153 ;;
21154 no:yes:* )
21155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21156echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21158echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21160echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21162echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21164echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21166echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21167 ( cat <<\_ASBOX
21168## ---------------------------------- ##
21169## Report this to christos@astron.com ##
21170## ---------------------------------- ##
21171_ASBOX
21172 ) | sed "s/^/$as_me: WARNING: /" >&2
21173 ;;
21174esac
21175{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21177if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21179else
21180 eval "$as_ac_Header=\$ac_header_preproc"
21181fi
21182ac_res=`eval echo '${'$as_ac_Header'}'`
21183 { echo "$as_me:$LINENO: result: $ac_res" >&5
21184echo "${ECHO_T}$ac_res" >&6; }
21185
21186fi
21187if test `eval echo '${'$as_ac_Header'}'` = yes; then
21188 cat >>confdefs.h <<_ACEOF
21189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21190_ACEOF
21191
21192fi
21193
21194done
21195
21196
21197for ac_header in zlib.h
21198do
21199as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21204 echo $ECHO_N "(cached) $ECHO_C" >&6
21205fi
21206ac_res=`eval echo '${'$as_ac_Header'}'`
21207 { echo "$as_me:$LINENO: result: $ac_res" >&5
21208echo "${ECHO_T}$ac_res" >&6; }
21209else
21210 # Is the header compilable?
21211{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21212echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21213cat >conftest.$ac_ext <<_ACEOF
21214/* confdefs.h. */
21215_ACEOF
21216cat confdefs.h >>conftest.$ac_ext
21217cat >>conftest.$ac_ext <<_ACEOF
21218/* end confdefs.h. */
21219$ac_includes_default
21220#include <$ac_header>
21221_ACEOF
21222rm -f conftest.$ac_objext
21223if { (ac_try="$ac_compile"
21224case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21227esac
21228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_compile") 2>conftest.er1
21230 ac_status=$?
21231 grep -v '^ *+' conftest.er1 >conftest.err
21232 rm -f conftest.er1
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && {
21236 test -z "$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21238 } && test -s conftest.$ac_objext; then
21239 ac_header_compiler=yes
21240else
21241 echo "$as_me: failed program was:" >&5
21242sed 's/^/| /' conftest.$ac_ext >&5
21243
21244 ac_header_compiler=no
21245fi
21246
21247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21248{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21249echo "${ECHO_T}$ac_header_compiler" >&6; }
21250
21251# Is the header present?
21252{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21253echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21254cat >conftest.$ac_ext <<_ACEOF
21255/* confdefs.h. */
21256_ACEOF
21257cat confdefs.h >>conftest.$ac_ext
21258cat >>conftest.$ac_ext <<_ACEOF
21259/* end confdefs.h. */
21260#include <$ac_header>
21261_ACEOF
21262if { (ac_try="$ac_cpp conftest.$ac_ext"
21263case "(($ac_try" in
21264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265 *) ac_try_echo=$ac_try;;
21266esac
21267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21269 ac_status=$?
21270 grep -v '^ *+' conftest.er1 >conftest.err
21271 rm -f conftest.er1
21272 cat conftest.err >&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); } >/dev/null && {
21275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21276 test ! -s conftest.err
21277 }; then
21278 ac_header_preproc=yes
21279else
21280 echo "$as_me: failed program was:" >&5
21281sed 's/^/| /' conftest.$ac_ext >&5
21282
21283 ac_header_preproc=no
21284fi
21285
21286rm -f conftest.err conftest.$ac_ext
21287{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21288echo "${ECHO_T}$ac_header_preproc" >&6; }
21289
21290# So? What about this header?
21291case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21292 yes:no: )
21293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21294echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21296echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21297 ac_header_preproc=yes
21298 ;;
21299 no:yes:* )
21300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21301echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21303echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21305echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21307echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21309echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21311echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21312 ( cat <<\_ASBOX
21313## ---------------------------------- ##
21314## Report this to christos@astron.com ##
21315## ---------------------------------- ##
21316_ASBOX
21317 ) | sed "s/^/$as_me: WARNING: /" >&2
21318 ;;
21319esac
21320{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21324else
21325 eval "$as_ac_Header=\$ac_header_preproc"
21326fi
21327ac_res=`eval echo '${'$as_ac_Header'}'`
21328 { echo "$as_me:$LINENO: result: $ac_res" >&5
21329echo "${ECHO_T}$ac_res" >&6; }
21330
21331fi
21332if test `eval echo '${'$as_ac_Header'}'` = yes; then
21333 cat >>confdefs.h <<_ACEOF
21334#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21335_ACEOF
21336
21337fi
21338
21339done
21340
21341
21342{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21343echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21344if test "${ac_cv_c_const+set}" = set; then
21345 echo $ECHO_N "(cached) $ECHO_C" >&6
21346else
21347 cat >conftest.$ac_ext <<_ACEOF
21348/* confdefs.h. */
21349_ACEOF
21350cat confdefs.h >>conftest.$ac_ext
21351cat >>conftest.$ac_ext <<_ACEOF
21352/* end confdefs.h. */
21353
21354int
21355main ()
21356{
21357/* FIXME: Include the comments suggested by Paul. */
21358#ifndef __cplusplus
21359 /* Ultrix mips cc rejects this. */
21360 typedef int charset[2];
21361 const charset cs;
21362 /* SunOS 4.1.1 cc rejects this. */
21363 char const *const *pcpcc;
21364 char **ppc;
21365 /* NEC SVR4.0.2 mips cc rejects this. */
21366 struct point {int x, y;};
21367 static struct point const zero = {0,0};
21368 /* AIX XL C 1.02.0.0 rejects this.
21369 It does not let you subtract one const X* pointer from another in
21370 an arm of an if-expression whose if-part is not a constant
21371 expression */
21372 const char *g = "string";
21373 pcpcc = &g + (g ? g-g : 0);
21374 /* HPUX 7.0 cc rejects these. */
21375 ++pcpcc;
21376 ppc = (char**) pcpcc;
21377 pcpcc = (char const *const *) ppc;
21378 { /* SCO 3.2v4 cc rejects this. */
21379 char *t;
21380 char const *s = 0 ? (char *) 0 : (char const *) 0;
21381
21382 *t++ = 0;
21383 if (s) return 0;
21384 }
21385 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21386 int x[] = {25, 17};
21387 const int *foo = &x[0];
21388 ++foo;
21389 }
21390 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21391 typedef const int *iptr;
21392 iptr p = 0;
21393 ++p;
21394 }
21395 { /* AIX XL C 1.02.0.0 rejects this saying
21396 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21397 struct s { int j; const int *ap[3]; };
21398 struct s *b; b->j = 5;
21399 }
21400 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21401 const int foo = 10;
21402 if (!foo) return 0;
21403 }
21404 return !cs[0] && !zero.x;
21405#endif
21406
21407 ;
21408 return 0;
21409}
21410_ACEOF
21411rm -f conftest.$ac_objext
21412if { (ac_try="$ac_compile"
21413case "(($ac_try" in
21414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415 *) ac_try_echo=$ac_try;;
21416esac
21417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21418 (eval "$ac_compile") 2>conftest.er1
21419 ac_status=$?
21420 grep -v '^ *+' conftest.er1 >conftest.err
21421 rm -f conftest.er1
21422 cat conftest.err >&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); } && {
21425 test -z "$ac_c_werror_flag" ||
21426 test ! -s conftest.err
21427 } && test -s conftest.$ac_objext; then
21428 ac_cv_c_const=yes
21429else
21430 echo "$as_me: failed program was:" >&5
21431sed 's/^/| /' conftest.$ac_ext >&5
21432
21433 ac_cv_c_const=no
21434fi
21435
21436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21437fi
21438{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21439echo "${ECHO_T}$ac_cv_c_const" >&6; }
21440if test $ac_cv_c_const = no; then
21441
21442cat >>confdefs.h <<\_ACEOF
21443#define const
21444_ACEOF
21445
21446fi
21447
21448{ echo "$as_me:$LINENO: checking for off_t" >&5
21449echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21450if test "${ac_cv_type_off_t+set}" = set; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21452else
21453 cat >conftest.$ac_ext <<_ACEOF
21454/* confdefs.h. */
21455_ACEOF
21456cat confdefs.h >>conftest.$ac_ext
21457cat >>conftest.$ac_ext <<_ACEOF
21458/* end confdefs.h. */
21459$ac_includes_default
21460typedef off_t ac__type_new_;
21461int
21462main ()
21463{
21464if ((ac__type_new_ *) 0)
21465 return 0;
21466if (sizeof (ac__type_new_))
21467 return 0;
21468 ;
21469 return 0;
21470}
21471_ACEOF
21472rm -f conftest.$ac_objext
21473if { (ac_try="$ac_compile"
21474case "(($ac_try" in
21475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21476 *) ac_try_echo=$ac_try;;
21477esac
21478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21479 (eval "$ac_compile") 2>conftest.er1
21480 ac_status=$?
21481 grep -v '^ *+' conftest.er1 >conftest.err
21482 rm -f conftest.er1
21483 cat conftest.err >&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); } && {
21486 test -z "$ac_c_werror_flag" ||
21487 test ! -s conftest.err
21488 } && test -s conftest.$ac_objext; then
21489 ac_cv_type_off_t=yes
21490else
21491 echo "$as_me: failed program was:" >&5
21492sed 's/^/| /' conftest.$ac_ext >&5
21493
21494 ac_cv_type_off_t=no
21495fi
21496
21497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21498fi
21499{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21500echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21501if test $ac_cv_type_off_t = yes; then
21502 :
21503else
21504
21505cat >>confdefs.h <<_ACEOF
21506#define off_t long int
21507_ACEOF
21508
21509fi
21510
21511{ echo "$as_me:$LINENO: checking for size_t" >&5
21512echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21513if test "${ac_cv_type_size_t+set}" = set; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21515else
21516 cat >conftest.$ac_ext <<_ACEOF
21517/* confdefs.h. */
21518_ACEOF
21519cat confdefs.h >>conftest.$ac_ext
21520cat >>conftest.$ac_ext <<_ACEOF
21521/* end confdefs.h. */
21522$ac_includes_default
21523typedef size_t ac__type_new_;
21524int
21525main ()
21526{
21527if ((ac__type_new_ *) 0)
21528 return 0;
21529if (sizeof (ac__type_new_))
21530 return 0;
21531 ;
21532 return 0;
21533}
21534_ACEOF
21535rm -f conftest.$ac_objext
21536if { (ac_try="$ac_compile"
21537case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21540esac
21541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_compile") 2>conftest.er1
21543 ac_status=$?
21544 grep -v '^ *+' conftest.er1 >conftest.err
21545 rm -f conftest.er1
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } && {
21549 test -z "$ac_c_werror_flag" ||
21550 test ! -s conftest.err
21551 } && test -s conftest.$ac_objext; then
21552 ac_cv_type_size_t=yes
21553else
21554 echo "$as_me: failed program was:" >&5
21555sed 's/^/| /' conftest.$ac_ext >&5
21556
21557 ac_cv_type_size_t=no
21558fi
21559
21560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21561fi
21562{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21563echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21564if test $ac_cv_type_size_t = yes; then
21565 :
21566else
21567
21568cat >>confdefs.h <<_ACEOF
21569#define size_t unsigned int
21570_ACEOF
21571
21572fi
21573
21574{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21575echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21576if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21578else
21579 cat >conftest.$ac_ext <<_ACEOF
21580/* confdefs.h. */
21581_ACEOF
21582cat confdefs.h >>conftest.$ac_ext
21583cat >>conftest.$ac_ext <<_ACEOF
21584/* end confdefs.h. */
21585$ac_includes_default
21586int
21587main ()
21588{
21589static struct stat ac_aggr;
21590if (ac_aggr.st_rdev)
21591return 0;
21592 ;
21593 return 0;
21594}
21595_ACEOF
21596rm -f conftest.$ac_objext
21597if { (ac_try="$ac_compile"
21598case "(($ac_try" in
21599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600 *) ac_try_echo=$ac_try;;
21601esac
21602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603 (eval "$ac_compile") 2>conftest.er1
21604 ac_status=$?
21605 grep -v '^ *+' conftest.er1 >conftest.err
21606 rm -f conftest.er1
21607 cat conftest.err >&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); } && {
21610 test -z "$ac_c_werror_flag" ||
21611 test ! -s conftest.err
21612 } && test -s conftest.$ac_objext; then
21613 ac_cv_member_struct_stat_st_rdev=yes
21614else
21615 echo "$as_me: failed program was:" >&5
21616sed 's/^/| /' conftest.$ac_ext >&5
21617
21618 cat >conftest.$ac_ext <<_ACEOF
21619/* confdefs.h. */
21620_ACEOF
21621cat confdefs.h >>conftest.$ac_ext
21622cat >>conftest.$ac_ext <<_ACEOF
21623/* end confdefs.h. */
21624$ac_includes_default
21625int
21626main ()
21627{
21628static struct stat ac_aggr;
21629if (sizeof ac_aggr.st_rdev)
21630return 0;
21631 ;
21632 return 0;
21633}
21634_ACEOF
21635rm -f conftest.$ac_objext
21636if { (ac_try="$ac_compile"
21637case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21640esac
21641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_compile") 2>conftest.er1
21643 ac_status=$?
21644 grep -v '^ *+' conftest.er1 >conftest.err
21645 rm -f conftest.er1
21646 cat conftest.err >&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } && {
21649 test -z "$ac_c_werror_flag" ||
21650 test ! -s conftest.err
21651 } && test -s conftest.$ac_objext; then
21652 ac_cv_member_struct_stat_st_rdev=yes
21653else
21654 echo "$as_me: failed program was:" >&5
21655sed 's/^/| /' conftest.$ac_ext >&5
21656
21657 ac_cv_member_struct_stat_st_rdev=no
21658fi
21659
21660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21661fi
21662
21663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664fi
21665{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21666echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21667if test $ac_cv_member_struct_stat_st_rdev = yes; then
21668
21669cat >>confdefs.h <<_ACEOF
21670#define HAVE_STRUCT_STAT_ST_RDEV 1
21671_ACEOF
21672
21673
21674fi
21675
21676
21677{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21678echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21679if test "${ac_cv_struct_tm+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21681else
21682 cat >conftest.$ac_ext <<_ACEOF
21683/* confdefs.h. */
21684_ACEOF
21685cat confdefs.h >>conftest.$ac_ext
21686cat >>conftest.$ac_ext <<_ACEOF
21687/* end confdefs.h. */
21688#include <sys/types.h>
21689#include <time.h>
21690
21691int
21692main ()
21693{
21694struct tm tm;
21695 int *p = &tm.tm_sec;
21696 return !p;
21697 ;
21698 return 0;
21699}
21700_ACEOF
21701rm -f conftest.$ac_objext
21702if { (ac_try="$ac_compile"
21703case "(($ac_try" in
21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705 *) ac_try_echo=$ac_try;;
21706esac
21707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708 (eval "$ac_compile") 2>conftest.er1
21709 ac_status=$?
21710 grep -v '^ *+' conftest.er1 >conftest.err
21711 rm -f conftest.er1
21712 cat conftest.err >&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } && {
21715 test -z "$ac_c_werror_flag" ||
21716 test ! -s conftest.err
21717 } && test -s conftest.$ac_objext; then
21718 ac_cv_struct_tm=time.h
21719else
21720 echo "$as_me: failed program was:" >&5
21721sed 's/^/| /' conftest.$ac_ext >&5
21722
21723 ac_cv_struct_tm=sys/time.h
21724fi
21725
21726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21727fi
21728{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21729echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21730if test $ac_cv_struct_tm = sys/time.h; then
21731
21732cat >>confdefs.h <<\_ACEOF
21733#define TM_IN_SYS_TIME 1
21734_ACEOF
21735
21736fi
21737
21738{ echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
21739echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
21740if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21742else
21743 cat >conftest.$ac_ext <<_ACEOF
21744/* confdefs.h. */
21745_ACEOF
21746cat confdefs.h >>conftest.$ac_ext
21747cat >>conftest.$ac_ext <<_ACEOF
21748/* end confdefs.h. */
21749$ac_includes_default
21750int
21751main ()
21752{
21753static struct tm ac_aggr;
21754if (ac_aggr.tm_gmtoff)
21755return 0;
21756 ;
21757 return 0;
21758}
21759_ACEOF
21760rm -f conftest.$ac_objext
21761if { (ac_try="$ac_compile"
21762case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21765esac
21766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_compile") 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } && {
21774 test -z "$ac_c_werror_flag" ||
21775 test ! -s conftest.err
21776 } && test -s conftest.$ac_objext; then
21777 ac_cv_member_struct_tm_tm_gmtoff=yes
21778else
21779 echo "$as_me: failed program was:" >&5
21780sed 's/^/| /' conftest.$ac_ext >&5
21781
21782 cat >conftest.$ac_ext <<_ACEOF
21783/* confdefs.h. */
21784_ACEOF
21785cat confdefs.h >>conftest.$ac_ext
21786cat >>conftest.$ac_ext <<_ACEOF
21787/* end confdefs.h. */
21788$ac_includes_default
21789int
21790main ()
21791{
21792static struct tm ac_aggr;
21793if (sizeof ac_aggr.tm_gmtoff)
21794return 0;
21795 ;
21796 return 0;
21797}
21798_ACEOF
21799rm -f conftest.$ac_objext
21800if { (ac_try="$ac_compile"
21801case "(($ac_try" in
21802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803 *) ac_try_echo=$ac_try;;
21804esac
21805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21806 (eval "$ac_compile") 2>conftest.er1
21807 ac_status=$?
21808 grep -v '^ *+' conftest.er1 >conftest.err
21809 rm -f conftest.er1
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } && {
21813 test -z "$ac_c_werror_flag" ||
21814 test ! -s conftest.err
21815 } && test -s conftest.$ac_objext; then
21816 ac_cv_member_struct_tm_tm_gmtoff=yes
21817else
21818 echo "$as_me: failed program was:" >&5
21819sed 's/^/| /' conftest.$ac_ext >&5
21820
21821 ac_cv_member_struct_tm_tm_gmtoff=no
21822fi
21823
21824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825fi
21826
21827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21828fi
21829{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
21830echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
21831if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
21832
21833cat >>confdefs.h <<_ACEOF
21834#define HAVE_STRUCT_TM_TM_GMTOFF 1
21835_ACEOF
21836
21837
21838fi
21839{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21840echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21841if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21842 echo $ECHO_N "(cached) $ECHO_C" >&6
21843else
21844 cat >conftest.$ac_ext <<_ACEOF
21845/* confdefs.h. */
21846_ACEOF
21847cat confdefs.h >>conftest.$ac_ext
21848cat >>conftest.$ac_ext <<_ACEOF
21849/* end confdefs.h. */
21850$ac_includes_default
21851int
21852main ()
21853{
21854static struct tm ac_aggr;
21855if (ac_aggr.tm_zone)
21856return 0;
21857 ;
21858 return 0;
21859}
21860_ACEOF
21861rm -f conftest.$ac_objext
21862if { (ac_try="$ac_compile"
21863case "(($ac_try" in
21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865 *) ac_try_echo=$ac_try;;
21866esac
21867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21868 (eval "$ac_compile") 2>conftest.er1
21869 ac_status=$?
21870 grep -v '^ *+' conftest.er1 >conftest.err
21871 rm -f conftest.er1
21872 cat conftest.err >&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } && {
21875 test -z "$ac_c_werror_flag" ||
21876 test ! -s conftest.err
21877 } && test -s conftest.$ac_objext; then
21878 ac_cv_member_struct_tm_tm_zone=yes
21879else
21880 echo "$as_me: failed program was:" >&5
21881sed 's/^/| /' conftest.$ac_ext >&5
21882
21883 cat >conftest.$ac_ext <<_ACEOF
21884/* confdefs.h. */
21885_ACEOF
21886cat confdefs.h >>conftest.$ac_ext
21887cat >>conftest.$ac_ext <<_ACEOF
21888/* end confdefs.h. */
21889$ac_includes_default
21890int
21891main ()
21892{
21893static struct tm ac_aggr;
21894if (sizeof ac_aggr.tm_zone)
21895return 0;
21896 ;
21897 return 0;
21898}
21899_ACEOF
21900rm -f conftest.$ac_objext
21901if { (ac_try="$ac_compile"
21902case "(($ac_try" in
21903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904 *) ac_try_echo=$ac_try;;
21905esac
21906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907 (eval "$ac_compile") 2>conftest.er1
21908 ac_status=$?
21909 grep -v '^ *+' conftest.er1 >conftest.err
21910 rm -f conftest.er1
21911 cat conftest.err >&5
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); } && {
21914 test -z "$ac_c_werror_flag" ||
21915 test ! -s conftest.err
21916 } && test -s conftest.$ac_objext; then
21917 ac_cv_member_struct_tm_tm_zone=yes
21918else
21919 echo "$as_me: failed program was:" >&5
21920sed 's/^/| /' conftest.$ac_ext >&5
21921
21922 ac_cv_member_struct_tm_tm_zone=no
21923fi
21924
21925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21926fi
21927
21928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21929fi
21930{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21931echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21932if test $ac_cv_member_struct_tm_tm_zone = yes; then
21933
21934cat >>confdefs.h <<_ACEOF
21935#define HAVE_STRUCT_TM_TM_ZONE 1
21936_ACEOF
21937
21938
21939fi
21940
21941{ echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
21942echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
21943if test "${ac_cv_struct_tm_zone+set}" = set; then
21944 echo $ECHO_N "(cached) $ECHO_C" >&6
21945else
21946 cat >conftest.$ac_ext <<_ACEOF
21947/* confdefs.h. */
21948_ACEOF
21949cat confdefs.h >>conftest.$ac_ext
21950cat >>conftest.$ac_ext <<_ACEOF
21951/* end confdefs.h. */
21952#include <sys/types.h>
21953#include <$ac_cv_struct_tm>
21954int
21955main ()
21956{
21957struct tm tm; tm.tm_zone;
21958 ;
21959 return 0;
21960}
21961_ACEOF
21962rm -f conftest.$ac_objext
21963if { (ac_try="$ac_compile"
21964case "(($ac_try" in
21965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21966 *) ac_try_echo=$ac_try;;
21967esac
21968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21969 (eval "$ac_compile") 2>conftest.er1
21970 ac_status=$?
21971 grep -v '^ *+' conftest.er1 >conftest.err
21972 rm -f conftest.er1
21973 cat conftest.err >&5
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); } && {
21976 test -z "$ac_c_werror_flag" ||
21977 test ! -s conftest.err
21978 } && test -s conftest.$ac_objext; then
21979 ac_cv_struct_tm_zone=yes
21980else
21981 echo "$as_me: failed program was:" >&5
21982sed 's/^/| /' conftest.$ac_ext >&5
21983
21984 ac_cv_struct_tm_zone=no
21985fi
21986
21987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21988fi
21989{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
21990echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6; }
21991if test "$ac_cv_struct_tm_zone" = yes; then
21992
21993cat >>confdefs.h <<\_ACEOF
21994#define HAVE_TM_ZONE 1
21995_ACEOF
21996
21997fi
21998
22429{ echo "$as_me:$LINENO: checking for tzname" >&5
22430echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
22431if test "${ac_cv_var_tzname+set}" = set; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22433else
22434 cat >conftest.$ac_ext <<_ACEOF
22435/* confdefs.h. */
22436_ACEOF
22437cat confdefs.h >>conftest.$ac_ext
22438cat >>conftest.$ac_ext <<_ACEOF
22439/* end confdefs.h. */
22440#include <time.h>
22441#ifndef tzname /* For SGI. */
22442extern char *tzname[]; /* RS6000 and others reject char **tzname. */
22443#endif
22444int
22445main ()
22446{
22447atoi(*tzname);
22448 ;
22449 return 0;
22450}
22451_ACEOF
22452rm -f conftest.$ac_objext conftest$ac_exeext
22453if { (ac_try="$ac_link"
22454case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22457esac
22458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_link") 2>conftest.er1
22460 ac_status=$?
22461 grep -v '^ *+' conftest.er1 >conftest.err
22462 rm -f conftest.er1
22463 cat conftest.err >&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } && {
22466 test -z "$ac_c_werror_flag" ||
22467 test ! -s conftest.err
22468 } && test -s conftest$ac_exeext &&
22469 $as_test_x conftest$ac_exeext; then
22470 ac_cv_var_tzname=yes
22471else
22472 echo "$as_me: failed program was:" >&5
22473sed 's/^/| /' conftest.$ac_ext >&5
22474
22475 ac_cv_var_tzname=no
22476fi
22477
22478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22479 conftest$ac_exeext conftest.$ac_ext
22480fi
22481{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22482echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
22483 if test $ac_cv_var_tzname = yes; then
22484
22485cat >>confdefs.h <<\_ACEOF
22486#define HAVE_TZNAME 1
22487_ACEOF
22488
22489 fi
22490
22491{ echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
22492echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6; }
22493if test "${ac_cv_struct_tm_isdst+set}" = set; then
22494 echo $ECHO_N "(cached) $ECHO_C" >&6
22495else
22496 cat >conftest.$ac_ext <<_ACEOF
22497/* confdefs.h. */
22498_ACEOF
22499cat confdefs.h >>conftest.$ac_ext
22500cat >>conftest.$ac_ext <<_ACEOF
22501/* end confdefs.h. */
22502#include <sys/types.h>
22503#include <$ac_cv_struct_tm>
22504int
22505main ()
22506{
22507struct tm tm; tm.tm_isdst;
22508 ;
22509 return 0;
22510}
22511_ACEOF
22512rm -f conftest.$ac_objext
22513if { (ac_try="$ac_compile"
22514case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22517esac
22518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519 (eval "$ac_compile") 2>conftest.er1
22520 ac_status=$?
22521 grep -v '^ *+' conftest.er1 >conftest.err
22522 rm -f conftest.er1
22523 cat conftest.err >&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } && {
22526 test -z "$ac_c_werror_flag" ||
22527 test ! -s conftest.err
22528 } && test -s conftest.$ac_objext; then
22529 ac_cv_struct_tm_isdst=yes
22530else
22531 echo "$as_me: failed program was:" >&5
22532sed 's/^/| /' conftest.$ac_ext >&5
22533
22534 ac_cv_struct_tm_isdst=no
22535fi
22536
22537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22538fi
22539{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
22540echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6; }
22541if test "$ac_cv_struct_tm_isdst" = yes; then
22542
22543cat >>confdefs.h <<\_ACEOF
22544#define HAVE_TM_ISDST 1
22545_ACEOF
22546
22547fi
21999{ echo "$as_me:$LINENO: checking for tzname" >&5
22000echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
22001if test "${ac_cv_var_tzname+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22003else
22004 cat >conftest.$ac_ext <<_ACEOF
22005/* confdefs.h. */
22006_ACEOF
22007cat confdefs.h >>conftest.$ac_ext
22008cat >>conftest.$ac_ext <<_ACEOF
22009/* end confdefs.h. */
22010#include <time.h>
22011#ifndef tzname /* For SGI. */
22012extern char *tzname[]; /* RS6000 and others reject char **tzname. */
22013#endif
22014int
22015main ()
22016{
22017atoi(*tzname);
22018 ;
22019 return 0;
22020}
22021_ACEOF
22022rm -f conftest.$ac_objext conftest$ac_exeext
22023if { (ac_try="$ac_link"
22024case "(($ac_try" in
22025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22027esac
22028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_link") 2>conftest.er1
22030 ac_status=$?
22031 grep -v '^ *+' conftest.er1 >conftest.err
22032 rm -f conftest.er1
22033 cat conftest.err >&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); } && {
22036 test -z "$ac_c_werror_flag" ||
22037 test ! -s conftest.err
22038 } && test -s conftest$ac_exeext &&
22039 $as_test_x conftest$ac_exeext; then
22040 ac_cv_var_tzname=yes
22041else
22042 echo "$as_me: failed program was:" >&5
22043sed 's/^/| /' conftest.$ac_ext >&5
22044
22045 ac_cv_var_tzname=no
22046fi
22047
22048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22049 conftest$ac_exeext conftest.$ac_ext
22050fi
22051{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22052echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
22053 if test $ac_cv_var_tzname = yes; then
22054
22055cat >>confdefs.h <<\_ACEOF
22056#define HAVE_TZNAME 1
22057_ACEOF
22058
22059 fi
22060
22061{ echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
22062echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6; }
22063if test "${ac_cv_struct_tm_isdst+set}" = set; then
22064 echo $ECHO_N "(cached) $ECHO_C" >&6
22065else
22066 cat >conftest.$ac_ext <<_ACEOF
22067/* confdefs.h. */
22068_ACEOF
22069cat confdefs.h >>conftest.$ac_ext
22070cat >>conftest.$ac_ext <<_ACEOF
22071/* end confdefs.h. */
22072#include <sys/types.h>
22073#include <$ac_cv_struct_tm>
22074int
22075main ()
22076{
22077struct tm tm; tm.tm_isdst;
22078 ;
22079 return 0;
22080}
22081_ACEOF
22082rm -f conftest.$ac_objext
22083if { (ac_try="$ac_compile"
22084case "(($ac_try" in
22085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086 *) ac_try_echo=$ac_try;;
22087esac
22088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089 (eval "$ac_compile") 2>conftest.er1
22090 ac_status=$?
22091 grep -v '^ *+' conftest.er1 >conftest.err
22092 rm -f conftest.er1
22093 cat conftest.err >&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); } && {
22096 test -z "$ac_c_werror_flag" ||
22097 test ! -s conftest.err
22098 } && test -s conftest.$ac_objext; then
22099 ac_cv_struct_tm_isdst=yes
22100else
22101 echo "$as_me: failed program was:" >&5
22102sed 's/^/| /' conftest.$ac_ext >&5
22103
22104 ac_cv_struct_tm_isdst=no
22105fi
22106
22107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22108fi
22109{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
22110echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6; }
22111if test "$ac_cv_struct_tm_isdst" = yes; then
22112
22113cat >>confdefs.h <<\_ACEOF
22114#define HAVE_TM_ISDST 1
22115_ACEOF
22116
22117fi
22118
22548{ echo "$as_me:$LINENO: checking for daylight" >&5
22549echo $ECHO_N "checking for daylight... $ECHO_C" >&6; }
22550if test "${ac_cv_var_daylight+set}" = set; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22552else
22553 cat >conftest.$ac_ext <<_ACEOF
22554/* confdefs.h. */
22555_ACEOF
22556cat confdefs.h >>conftest.$ac_ext
22557cat >>conftest.$ac_ext <<_ACEOF
22558/* end confdefs.h. */
22559#include <time.h>
22560#ifndef daylight /* In case IRIX #defines this, too */
22561extern int daylight;
22562#endif
22563int
22564main ()
22565{
22566atoi(daylight);
22567 ;
22568 return 0;
22569}
22570_ACEOF
22571rm -f conftest.$ac_objext conftest$ac_exeext
22572if { (ac_try="$ac_link"
22573case "(($ac_try" in
22574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22575 *) ac_try_echo=$ac_try;;
22576esac
22577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22578 (eval "$ac_link") 2>conftest.er1
22579 ac_status=$?
22580 grep -v '^ *+' conftest.er1 >conftest.err
22581 rm -f conftest.er1
22582 cat conftest.err >&5
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); } && {
22585 test -z "$ac_c_werror_flag" ||
22586 test ! -s conftest.err
22587 } && test -s conftest$ac_exeext &&
22588 $as_test_x conftest$ac_exeext; then
22589 ac_cv_var_daylight=yes
22590else
22591 echo "$as_me: failed program was:" >&5
22592sed 's/^/| /' conftest.$ac_ext >&5
22593
22594 ac_cv_var_daylight=no
22595fi
22596
22597rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22598 conftest$ac_exeext conftest.$ac_ext
22599fi
22600{ echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
22601echo "${ECHO_T}$ac_cv_var_daylight" >&6; }
22602 if test $ac_cv_var_daylight = yes; then
22603
22604cat >>confdefs.h <<\_ACEOF
22605#define HAVE_DAYLIGHT 1
22606_ACEOF
22607
22608 fi
22609
22610# Check whether --enable-largefile was given.
22611if test "${enable_largefile+set}" = set; then
22612 enableval=$enable_largefile;
22613fi
22614
22615if test "$enable_largefile" != no; then
22616
22617 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
22618echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
22619if test "${ac_cv_sys_largefile_CC+set}" = set; then
22620 echo $ECHO_N "(cached) $ECHO_C" >&6
22621else
22622 ac_cv_sys_largefile_CC=no
22623 if test "$GCC" != yes; then
22624 ac_save_CC=$CC
22625 while :; do
22626 # IRIX 6.2 and later do not support large files by default,
22627 # so use the C compiler's -n32 option if that helps.
22628 cat >conftest.$ac_ext <<_ACEOF
22629/* confdefs.h. */
22630_ACEOF
22631cat confdefs.h >>conftest.$ac_ext
22632cat >>conftest.$ac_ext <<_ACEOF
22633/* end confdefs.h. */
22634#include <sys/types.h>
22635 /* Check that off_t can represent 2**63 - 1 correctly.
22636 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22637 since some C++ compilers masquerading as C compilers
22638 incorrectly reject 9223372036854775807. */
22639#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22640 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22641 && LARGE_OFF_T % 2147483647 == 1)
22642 ? 1 : -1];
22643int
22644main ()
22645{
22646
22647 ;
22648 return 0;
22649}
22650_ACEOF
22651 rm -f conftest.$ac_objext
22652if { (ac_try="$ac_compile"
22653case "(($ac_try" in
22654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22655 *) ac_try_echo=$ac_try;;
22656esac
22657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22658 (eval "$ac_compile") 2>conftest.er1
22659 ac_status=$?
22660 grep -v '^ *+' conftest.er1 >conftest.err
22661 rm -f conftest.er1
22662 cat conftest.err >&5
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); } && {
22665 test -z "$ac_c_werror_flag" ||
22666 test ! -s conftest.err
22667 } && test -s conftest.$ac_objext; then
22668 break
22669else
22670 echo "$as_me: failed program was:" >&5
22671sed 's/^/| /' conftest.$ac_ext >&5
22672
22673
22674fi
22675
22676rm -f core conftest.err conftest.$ac_objext
22677 CC="$CC -n32"
22678 rm -f conftest.$ac_objext
22679if { (ac_try="$ac_compile"
22680case "(($ac_try" in
22681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682 *) ac_try_echo=$ac_try;;
22683esac
22684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685 (eval "$ac_compile") 2>conftest.er1
22686 ac_status=$?
22687 grep -v '^ *+' conftest.er1 >conftest.err
22688 rm -f conftest.er1
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } && {
22692 test -z "$ac_c_werror_flag" ||
22693 test ! -s conftest.err
22694 } && test -s conftest.$ac_objext; then
22695 ac_cv_sys_largefile_CC=' -n32'; break
22696else
22697 echo "$as_me: failed program was:" >&5
22698sed 's/^/| /' conftest.$ac_ext >&5
22699
22700
22701fi
22702
22703rm -f core conftest.err conftest.$ac_objext
22704 break
22705 done
22706 CC=$ac_save_CC
22707 rm -f conftest.$ac_ext
22708 fi
22709fi
22710{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
22711echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
22712 if test "$ac_cv_sys_largefile_CC" != no; then
22713 CC=$CC$ac_cv_sys_largefile_CC
22714 fi
22715
22716 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22717echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
22718if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22719 echo $ECHO_N "(cached) $ECHO_C" >&6
22720else
22721 while :; do
22722 cat >conftest.$ac_ext <<_ACEOF
22723/* confdefs.h. */
22724_ACEOF
22725cat confdefs.h >>conftest.$ac_ext
22726cat >>conftest.$ac_ext <<_ACEOF
22727/* end confdefs.h. */
22728#include <sys/types.h>
22729 /* Check that off_t can represent 2**63 - 1 correctly.
22730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22731 since some C++ compilers masquerading as C compilers
22732 incorrectly reject 9223372036854775807. */
22733#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22735 && LARGE_OFF_T % 2147483647 == 1)
22736 ? 1 : -1];
22737int
22738main ()
22739{
22740
22741 ;
22742 return 0;
22743}
22744_ACEOF
22745rm -f conftest.$ac_objext
22746if { (ac_try="$ac_compile"
22747case "(($ac_try" in
22748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22749 *) ac_try_echo=$ac_try;;
22750esac
22751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22752 (eval "$ac_compile") 2>conftest.er1
22753 ac_status=$?
22754 grep -v '^ *+' conftest.er1 >conftest.err
22755 rm -f conftest.er1
22756 cat conftest.err >&5
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); } && {
22759 test -z "$ac_c_werror_flag" ||
22760 test ! -s conftest.err
22761 } && test -s conftest.$ac_objext; then
22762 ac_cv_sys_file_offset_bits=no; break
22763else
22764 echo "$as_me: failed program was:" >&5
22765sed 's/^/| /' conftest.$ac_ext >&5
22766
22767
22768fi
22769
22770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22771 cat >conftest.$ac_ext <<_ACEOF
22772/* confdefs.h. */
22773_ACEOF
22774cat confdefs.h >>conftest.$ac_ext
22775cat >>conftest.$ac_ext <<_ACEOF
22776/* end confdefs.h. */
22777#define _FILE_OFFSET_BITS 64
22778#include <sys/types.h>
22779 /* Check that off_t can represent 2**63 - 1 correctly.
22780 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22781 since some C++ compilers masquerading as C compilers
22782 incorrectly reject 9223372036854775807. */
22783#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22784 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22785 && LARGE_OFF_T % 2147483647 == 1)
22786 ? 1 : -1];
22787int
22788main ()
22789{
22790
22791 ;
22792 return 0;
22793}
22794_ACEOF
22795rm -f conftest.$ac_objext
22796if { (ac_try="$ac_compile"
22797case "(($ac_try" in
22798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22799 *) ac_try_echo=$ac_try;;
22800esac
22801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22802 (eval "$ac_compile") 2>conftest.er1
22803 ac_status=$?
22804 grep -v '^ *+' conftest.er1 >conftest.err
22805 rm -f conftest.er1
22806 cat conftest.err >&5
22807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); } && {
22809 test -z "$ac_c_werror_flag" ||
22810 test ! -s conftest.err
22811 } && test -s conftest.$ac_objext; then
22812 ac_cv_sys_file_offset_bits=64; break
22813else
22814 echo "$as_me: failed program was:" >&5
22815sed 's/^/| /' conftest.$ac_ext >&5
22816
22817
22818fi
22819
22820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22821 ac_cv_sys_file_offset_bits=unknown
22822 break
22823done
22824fi
22825{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22826echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
22827case $ac_cv_sys_file_offset_bits in #(
22828 no | unknown) ;;
22829 *)
22830cat >>confdefs.h <<_ACEOF
22831#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22832_ACEOF
22833;;
22834esac
22835rm -f conftest*
22836 if test $ac_cv_sys_file_offset_bits = unknown; then
22837 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22838echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
22839if test "${ac_cv_sys_large_files+set}" = set; then
22840 echo $ECHO_N "(cached) $ECHO_C" >&6
22841else
22842 while :; do
22843 cat >conftest.$ac_ext <<_ACEOF
22844/* confdefs.h. */
22845_ACEOF
22846cat confdefs.h >>conftest.$ac_ext
22847cat >>conftest.$ac_ext <<_ACEOF
22848/* end confdefs.h. */
22849#include <sys/types.h>
22850 /* Check that off_t can represent 2**63 - 1 correctly.
22851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22852 since some C++ compilers masquerading as C compilers
22853 incorrectly reject 9223372036854775807. */
22854#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22856 && LARGE_OFF_T % 2147483647 == 1)
22857 ? 1 : -1];
22858int
22859main ()
22860{
22861
22862 ;
22863 return 0;
22864}
22865_ACEOF
22866rm -f conftest.$ac_objext
22867if { (ac_try="$ac_compile"
22868case "(($ac_try" in
22869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22870 *) ac_try_echo=$ac_try;;
22871esac
22872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22873 (eval "$ac_compile") 2>conftest.er1
22874 ac_status=$?
22875 grep -v '^ *+' conftest.er1 >conftest.err
22876 rm -f conftest.er1
22877 cat conftest.err >&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); } && {
22880 test -z "$ac_c_werror_flag" ||
22881 test ! -s conftest.err
22882 } && test -s conftest.$ac_objext; then
22883 ac_cv_sys_large_files=no; break
22884else
22885 echo "$as_me: failed program was:" >&5
22886sed 's/^/| /' conftest.$ac_ext >&5
22887
22888
22889fi
22890
22891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22892 cat >conftest.$ac_ext <<_ACEOF
22893/* confdefs.h. */
22894_ACEOF
22895cat confdefs.h >>conftest.$ac_ext
22896cat >>conftest.$ac_ext <<_ACEOF
22897/* end confdefs.h. */
22898#define _LARGE_FILES 1
22899#include <sys/types.h>
22900 /* Check that off_t can represent 2**63 - 1 correctly.
22901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22902 since some C++ compilers masquerading as C compilers
22903 incorrectly reject 9223372036854775807. */
22904#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22906 && LARGE_OFF_T % 2147483647 == 1)
22907 ? 1 : -1];
22908int
22909main ()
22910{
22911
22912 ;
22913 return 0;
22914}
22915_ACEOF
22916rm -f conftest.$ac_objext
22917if { (ac_try="$ac_compile"
22918case "(($ac_try" in
22919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920 *) ac_try_echo=$ac_try;;
22921esac
22922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923 (eval "$ac_compile") 2>conftest.er1
22924 ac_status=$?
22925 grep -v '^ *+' conftest.er1 >conftest.err
22926 rm -f conftest.er1
22927 cat conftest.err >&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } && {
22930 test -z "$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 } && test -s conftest.$ac_objext; then
22933 ac_cv_sys_large_files=1; break
22934else
22935 echo "$as_me: failed program was:" >&5
22936sed 's/^/| /' conftest.$ac_ext >&5
22937
22938
22939fi
22940
22941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22942 ac_cv_sys_large_files=unknown
22943 break
22944done
22945fi
22946{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22947echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
22948case $ac_cv_sys_large_files in #(
22949 no | unknown) ;;
22950 *)
22951cat >>confdefs.h <<_ACEOF
22952#define _LARGE_FILES $ac_cv_sys_large_files
22953_ACEOF
22954;;
22955esac
22956rm -f conftest*
22957 fi
22958fi
22959
22960{ echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
22961echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
22962if test "${ac_cv_sys_largefile_source+set}" = set; then
22963 echo $ECHO_N "(cached) $ECHO_C" >&6
22964else
22965 while :; do
22966 cat >conftest.$ac_ext <<_ACEOF
22967/* confdefs.h. */
22968_ACEOF
22969cat confdefs.h >>conftest.$ac_ext
22970cat >>conftest.$ac_ext <<_ACEOF
22971/* end confdefs.h. */
22972#include <stdio.h>
22973int
22974main ()
22975{
22976return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
22977 ;
22978 return 0;
22979}
22980_ACEOF
22981rm -f conftest.$ac_objext conftest$ac_exeext
22982if { (ac_try="$ac_link"
22983case "(($ac_try" in
22984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985 *) ac_try_echo=$ac_try;;
22986esac
22987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22988 (eval "$ac_link") 2>conftest.er1
22989 ac_status=$?
22990 grep -v '^ *+' conftest.er1 >conftest.err
22991 rm -f conftest.er1
22992 cat conftest.err >&5
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); } && {
22995 test -z "$ac_c_werror_flag" ||
22996 test ! -s conftest.err
22997 } && test -s conftest$ac_exeext &&
22998 $as_test_x conftest$ac_exeext; then
22999 ac_cv_sys_largefile_source=no; break
23000else
23001 echo "$as_me: failed program was:" >&5
23002sed 's/^/| /' conftest.$ac_ext >&5
23003
23004
23005fi
23006
23007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23008 conftest$ac_exeext conftest.$ac_ext
23009 cat >conftest.$ac_ext <<_ACEOF
23010/* confdefs.h. */
23011_ACEOF
23012cat confdefs.h >>conftest.$ac_ext
23013cat >>conftest.$ac_ext <<_ACEOF
23014/* end confdefs.h. */
23015#define _LARGEFILE_SOURCE 1
23016#include <stdio.h>
23017int
23018main ()
23019{
23020return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
23021 ;
23022 return 0;
23023}
23024_ACEOF
23025rm -f conftest.$ac_objext conftest$ac_exeext
23026if { (ac_try="$ac_link"
23027case "(($ac_try" in
23028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029 *) ac_try_echo=$ac_try;;
23030esac
23031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23032 (eval "$ac_link") 2>conftest.er1
23033 ac_status=$?
23034 grep -v '^ *+' conftest.er1 >conftest.err
23035 rm -f conftest.er1
23036 cat conftest.err >&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } && {
23039 test -z "$ac_c_werror_flag" ||
23040 test ! -s conftest.err
23041 } && test -s conftest$ac_exeext &&
23042 $as_test_x conftest$ac_exeext; then
23043 ac_cv_sys_largefile_source=1; break
23044else
23045 echo "$as_me: failed program was:" >&5
23046sed 's/^/| /' conftest.$ac_ext >&5
23047
23048
23049fi
23050
23051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23052 conftest$ac_exeext conftest.$ac_ext
23053 ac_cv_sys_largefile_source=unknown
23054 break
23055done
23056fi
23057{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23058echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
23059case $ac_cv_sys_largefile_source in #(
23060 no | unknown) ;;
23061 *)
23062cat >>confdefs.h <<_ACEOF
23063#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23064_ACEOF
23065;;
23066esac
23067rm -f conftest*
23068
23069# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23070# in glibc 2.1.3, but that breaks too many other things.
23071# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23072if test $ac_cv_sys_largefile_source != unknown; then
23073
23074cat >>confdefs.h <<\_ACEOF
23075#define HAVE_FSEEKO 1
23076_ACEOF
23077
23078fi
23079
23080{ echo "$as_me:$LINENO: checking for mbstate_t" >&5
23081echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23082if test "${ac_cv_type_mbstate_t+set}" = set; then
23083 echo $ECHO_N "(cached) $ECHO_C" >&6
23084else
23085 cat >conftest.$ac_ext <<_ACEOF
23086/* confdefs.h. */
23087_ACEOF
23088cat confdefs.h >>conftest.$ac_ext
23089cat >>conftest.$ac_ext <<_ACEOF
23090/* end confdefs.h. */
23091$ac_includes_default
23092# include <wchar.h>
23093int
23094main ()
23095{
23096mbstate_t x; return sizeof x;
23097 ;
23098 return 0;
23099}
23100_ACEOF
23101rm -f conftest.$ac_objext
23102if { (ac_try="$ac_compile"
23103case "(($ac_try" in
23104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23105 *) ac_try_echo=$ac_try;;
23106esac
23107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23108 (eval "$ac_compile") 2>conftest.er1
23109 ac_status=$?
23110 grep -v '^ *+' conftest.er1 >conftest.err
23111 rm -f conftest.er1
23112 cat conftest.err >&5
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); } && {
23115 test -z "$ac_c_werror_flag" ||
23116 test ! -s conftest.err
23117 } && test -s conftest.$ac_objext; then
23118 ac_cv_type_mbstate_t=yes
23119else
23120 echo "$as_me: failed program was:" >&5
23121sed 's/^/| /' conftest.$ac_ext >&5
23122
23123 ac_cv_type_mbstate_t=no
23124fi
23125
23126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23127fi
23128{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23129echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23130 if test $ac_cv_type_mbstate_t = yes; then
23131
23132cat >>confdefs.h <<\_ACEOF
23133#define HAVE_MBSTATE_T 1
23134_ACEOF
23135
23136 else
23137
23138cat >>confdefs.h <<\_ACEOF
23139#define mbstate_t int
23140_ACEOF
23141
23142 fi
23143
22119{ echo "$as_me:$LINENO: checking for daylight" >&5
22120echo $ECHO_N "checking for daylight... $ECHO_C" >&6; }
22121if test "${ac_cv_var_daylight+set}" = set; then
22122 echo $ECHO_N "(cached) $ECHO_C" >&6
22123else
22124 cat >conftest.$ac_ext <<_ACEOF
22125/* confdefs.h. */
22126_ACEOF
22127cat confdefs.h >>conftest.$ac_ext
22128cat >>conftest.$ac_ext <<_ACEOF
22129/* end confdefs.h. */
22130#include <time.h>
22131#ifndef daylight /* In case IRIX #defines this, too */
22132extern int daylight;
22133#endif
22134int
22135main ()
22136{
22137atoi(daylight);
22138 ;
22139 return 0;
22140}
22141_ACEOF
22142rm -f conftest.$ac_objext conftest$ac_exeext
22143if { (ac_try="$ac_link"
22144case "(($ac_try" in
22145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22146 *) ac_try_echo=$ac_try;;
22147esac
22148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22149 (eval "$ac_link") 2>conftest.er1
22150 ac_status=$?
22151 grep -v '^ *+' conftest.er1 >conftest.err
22152 rm -f conftest.er1
22153 cat conftest.err >&5
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); } && {
22156 test -z "$ac_c_werror_flag" ||
22157 test ! -s conftest.err
22158 } && test -s conftest$ac_exeext &&
22159 $as_test_x conftest$ac_exeext; then
22160 ac_cv_var_daylight=yes
22161else
22162 echo "$as_me: failed program was:" >&5
22163sed 's/^/| /' conftest.$ac_ext >&5
22164
22165 ac_cv_var_daylight=no
22166fi
22167
22168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22169 conftest$ac_exeext conftest.$ac_ext
22170fi
22171{ echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
22172echo "${ECHO_T}$ac_cv_var_daylight" >&6; }
22173 if test $ac_cv_var_daylight = yes; then
22174
22175cat >>confdefs.h <<\_ACEOF
22176#define HAVE_DAYLIGHT 1
22177_ACEOF
22178
22179 fi
22180
22181# Check whether --enable-largefile was given.
22182if test "${enable_largefile+set}" = set; then
22183 enableval=$enable_largefile;
22184fi
22185
22186if test "$enable_largefile" != no; then
22187
22188 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
22189echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
22190if test "${ac_cv_sys_largefile_CC+set}" = set; then
22191 echo $ECHO_N "(cached) $ECHO_C" >&6
22192else
22193 ac_cv_sys_largefile_CC=no
22194 if test "$GCC" != yes; then
22195 ac_save_CC=$CC
22196 while :; do
22197 # IRIX 6.2 and later do not support large files by default,
22198 # so use the C compiler's -n32 option if that helps.
22199 cat >conftest.$ac_ext <<_ACEOF
22200/* confdefs.h. */
22201_ACEOF
22202cat confdefs.h >>conftest.$ac_ext
22203cat >>conftest.$ac_ext <<_ACEOF
22204/* end confdefs.h. */
22205#include <sys/types.h>
22206 /* Check that off_t can represent 2**63 - 1 correctly.
22207 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22208 since some C++ compilers masquerading as C compilers
22209 incorrectly reject 9223372036854775807. */
22210#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22211 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22212 && LARGE_OFF_T % 2147483647 == 1)
22213 ? 1 : -1];
22214int
22215main ()
22216{
22217
22218 ;
22219 return 0;
22220}
22221_ACEOF
22222 rm -f conftest.$ac_objext
22223if { (ac_try="$ac_compile"
22224case "(($ac_try" in
22225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22226 *) ac_try_echo=$ac_try;;
22227esac
22228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22229 (eval "$ac_compile") 2>conftest.er1
22230 ac_status=$?
22231 grep -v '^ *+' conftest.er1 >conftest.err
22232 rm -f conftest.er1
22233 cat conftest.err >&5
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); } && {
22236 test -z "$ac_c_werror_flag" ||
22237 test ! -s conftest.err
22238 } && test -s conftest.$ac_objext; then
22239 break
22240else
22241 echo "$as_me: failed program was:" >&5
22242sed 's/^/| /' conftest.$ac_ext >&5
22243
22244
22245fi
22246
22247rm -f core conftest.err conftest.$ac_objext
22248 CC="$CC -n32"
22249 rm -f conftest.$ac_objext
22250if { (ac_try="$ac_compile"
22251case "(($ac_try" in
22252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22253 *) ac_try_echo=$ac_try;;
22254esac
22255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22256 (eval "$ac_compile") 2>conftest.er1
22257 ac_status=$?
22258 grep -v '^ *+' conftest.er1 >conftest.err
22259 rm -f conftest.er1
22260 cat conftest.err >&5
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); } && {
22263 test -z "$ac_c_werror_flag" ||
22264 test ! -s conftest.err
22265 } && test -s conftest.$ac_objext; then
22266 ac_cv_sys_largefile_CC=' -n32'; break
22267else
22268 echo "$as_me: failed program was:" >&5
22269sed 's/^/| /' conftest.$ac_ext >&5
22270
22271
22272fi
22273
22274rm -f core conftest.err conftest.$ac_objext
22275 break
22276 done
22277 CC=$ac_save_CC
22278 rm -f conftest.$ac_ext
22279 fi
22280fi
22281{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
22282echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
22283 if test "$ac_cv_sys_largefile_CC" != no; then
22284 CC=$CC$ac_cv_sys_largefile_CC
22285 fi
22286
22287 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22288echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
22289if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22290 echo $ECHO_N "(cached) $ECHO_C" >&6
22291else
22292 while :; do
22293 cat >conftest.$ac_ext <<_ACEOF
22294/* confdefs.h. */
22295_ACEOF
22296cat confdefs.h >>conftest.$ac_ext
22297cat >>conftest.$ac_ext <<_ACEOF
22298/* end confdefs.h. */
22299#include <sys/types.h>
22300 /* Check that off_t can represent 2**63 - 1 correctly.
22301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22302 since some C++ compilers masquerading as C compilers
22303 incorrectly reject 9223372036854775807. */
22304#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22306 && LARGE_OFF_T % 2147483647 == 1)
22307 ? 1 : -1];
22308int
22309main ()
22310{
22311
22312 ;
22313 return 0;
22314}
22315_ACEOF
22316rm -f conftest.$ac_objext
22317if { (ac_try="$ac_compile"
22318case "(($ac_try" in
22319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22320 *) ac_try_echo=$ac_try;;
22321esac
22322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22323 (eval "$ac_compile") 2>conftest.er1
22324 ac_status=$?
22325 grep -v '^ *+' conftest.er1 >conftest.err
22326 rm -f conftest.er1
22327 cat conftest.err >&5
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); } && {
22330 test -z "$ac_c_werror_flag" ||
22331 test ! -s conftest.err
22332 } && test -s conftest.$ac_objext; then
22333 ac_cv_sys_file_offset_bits=no; break
22334else
22335 echo "$as_me: failed program was:" >&5
22336sed 's/^/| /' conftest.$ac_ext >&5
22337
22338
22339fi
22340
22341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22342 cat >conftest.$ac_ext <<_ACEOF
22343/* confdefs.h. */
22344_ACEOF
22345cat confdefs.h >>conftest.$ac_ext
22346cat >>conftest.$ac_ext <<_ACEOF
22347/* end confdefs.h. */
22348#define _FILE_OFFSET_BITS 64
22349#include <sys/types.h>
22350 /* Check that off_t can represent 2**63 - 1 correctly.
22351 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22352 since some C++ compilers masquerading as C compilers
22353 incorrectly reject 9223372036854775807. */
22354#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22355 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22356 && LARGE_OFF_T % 2147483647 == 1)
22357 ? 1 : -1];
22358int
22359main ()
22360{
22361
22362 ;
22363 return 0;
22364}
22365_ACEOF
22366rm -f conftest.$ac_objext
22367if { (ac_try="$ac_compile"
22368case "(($ac_try" in
22369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22370 *) ac_try_echo=$ac_try;;
22371esac
22372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22373 (eval "$ac_compile") 2>conftest.er1
22374 ac_status=$?
22375 grep -v '^ *+' conftest.er1 >conftest.err
22376 rm -f conftest.er1
22377 cat conftest.err >&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } && {
22380 test -z "$ac_c_werror_flag" ||
22381 test ! -s conftest.err
22382 } && test -s conftest.$ac_objext; then
22383 ac_cv_sys_file_offset_bits=64; break
22384else
22385 echo "$as_me: failed program was:" >&5
22386sed 's/^/| /' conftest.$ac_ext >&5
22387
22388
22389fi
22390
22391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22392 ac_cv_sys_file_offset_bits=unknown
22393 break
22394done
22395fi
22396{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22397echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
22398case $ac_cv_sys_file_offset_bits in #(
22399 no | unknown) ;;
22400 *)
22401cat >>confdefs.h <<_ACEOF
22402#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22403_ACEOF
22404;;
22405esac
22406rm -f conftest*
22407 if test $ac_cv_sys_file_offset_bits = unknown; then
22408 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22409echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
22410if test "${ac_cv_sys_large_files+set}" = set; then
22411 echo $ECHO_N "(cached) $ECHO_C" >&6
22412else
22413 while :; do
22414 cat >conftest.$ac_ext <<_ACEOF
22415/* confdefs.h. */
22416_ACEOF
22417cat confdefs.h >>conftest.$ac_ext
22418cat >>conftest.$ac_ext <<_ACEOF
22419/* end confdefs.h. */
22420#include <sys/types.h>
22421 /* Check that off_t can represent 2**63 - 1 correctly.
22422 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22423 since some C++ compilers masquerading as C compilers
22424 incorrectly reject 9223372036854775807. */
22425#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22426 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22427 && LARGE_OFF_T % 2147483647 == 1)
22428 ? 1 : -1];
22429int
22430main ()
22431{
22432
22433 ;
22434 return 0;
22435}
22436_ACEOF
22437rm -f conftest.$ac_objext
22438if { (ac_try="$ac_compile"
22439case "(($ac_try" in
22440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22441 *) ac_try_echo=$ac_try;;
22442esac
22443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22444 (eval "$ac_compile") 2>conftest.er1
22445 ac_status=$?
22446 grep -v '^ *+' conftest.er1 >conftest.err
22447 rm -f conftest.er1
22448 cat conftest.err >&5
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); } && {
22451 test -z "$ac_c_werror_flag" ||
22452 test ! -s conftest.err
22453 } && test -s conftest.$ac_objext; then
22454 ac_cv_sys_large_files=no; break
22455else
22456 echo "$as_me: failed program was:" >&5
22457sed 's/^/| /' conftest.$ac_ext >&5
22458
22459
22460fi
22461
22462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22463 cat >conftest.$ac_ext <<_ACEOF
22464/* confdefs.h. */
22465_ACEOF
22466cat confdefs.h >>conftest.$ac_ext
22467cat >>conftest.$ac_ext <<_ACEOF
22468/* end confdefs.h. */
22469#define _LARGE_FILES 1
22470#include <sys/types.h>
22471 /* Check that off_t can represent 2**63 - 1 correctly.
22472 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22473 since some C++ compilers masquerading as C compilers
22474 incorrectly reject 9223372036854775807. */
22475#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22476 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22477 && LARGE_OFF_T % 2147483647 == 1)
22478 ? 1 : -1];
22479int
22480main ()
22481{
22482
22483 ;
22484 return 0;
22485}
22486_ACEOF
22487rm -f conftest.$ac_objext
22488if { (ac_try="$ac_compile"
22489case "(($ac_try" in
22490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491 *) ac_try_echo=$ac_try;;
22492esac
22493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494 (eval "$ac_compile") 2>conftest.er1
22495 ac_status=$?
22496 grep -v '^ *+' conftest.er1 >conftest.err
22497 rm -f conftest.er1
22498 cat conftest.err >&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } && {
22501 test -z "$ac_c_werror_flag" ||
22502 test ! -s conftest.err
22503 } && test -s conftest.$ac_objext; then
22504 ac_cv_sys_large_files=1; break
22505else
22506 echo "$as_me: failed program was:" >&5
22507sed 's/^/| /' conftest.$ac_ext >&5
22508
22509
22510fi
22511
22512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513 ac_cv_sys_large_files=unknown
22514 break
22515done
22516fi
22517{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22518echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
22519case $ac_cv_sys_large_files in #(
22520 no | unknown) ;;
22521 *)
22522cat >>confdefs.h <<_ACEOF
22523#define _LARGE_FILES $ac_cv_sys_large_files
22524_ACEOF
22525;;
22526esac
22527rm -f conftest*
22528 fi
22529fi
22530
22531{ echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
22532echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
22533if test "${ac_cv_sys_largefile_source+set}" = set; then
22534 echo $ECHO_N "(cached) $ECHO_C" >&6
22535else
22536 while :; do
22537 cat >conftest.$ac_ext <<_ACEOF
22538/* confdefs.h. */
22539_ACEOF
22540cat confdefs.h >>conftest.$ac_ext
22541cat >>conftest.$ac_ext <<_ACEOF
22542/* end confdefs.h. */
22543#include <stdio.h>
22544int
22545main ()
22546{
22547return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
22548 ;
22549 return 0;
22550}
22551_ACEOF
22552rm -f conftest.$ac_objext conftest$ac_exeext
22553if { (ac_try="$ac_link"
22554case "(($ac_try" in
22555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556 *) ac_try_echo=$ac_try;;
22557esac
22558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22559 (eval "$ac_link") 2>conftest.er1
22560 ac_status=$?
22561 grep -v '^ *+' conftest.er1 >conftest.err
22562 rm -f conftest.er1
22563 cat conftest.err >&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } && {
22566 test -z "$ac_c_werror_flag" ||
22567 test ! -s conftest.err
22568 } && test -s conftest$ac_exeext &&
22569 $as_test_x conftest$ac_exeext; then
22570 ac_cv_sys_largefile_source=no; break
22571else
22572 echo "$as_me: failed program was:" >&5
22573sed 's/^/| /' conftest.$ac_ext >&5
22574
22575
22576fi
22577
22578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22579 conftest$ac_exeext conftest.$ac_ext
22580 cat >conftest.$ac_ext <<_ACEOF
22581/* confdefs.h. */
22582_ACEOF
22583cat confdefs.h >>conftest.$ac_ext
22584cat >>conftest.$ac_ext <<_ACEOF
22585/* end confdefs.h. */
22586#define _LARGEFILE_SOURCE 1
22587#include <stdio.h>
22588int
22589main ()
22590{
22591return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
22592 ;
22593 return 0;
22594}
22595_ACEOF
22596rm -f conftest.$ac_objext conftest$ac_exeext
22597if { (ac_try="$ac_link"
22598case "(($ac_try" in
22599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22600 *) ac_try_echo=$ac_try;;
22601esac
22602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22603 (eval "$ac_link") 2>conftest.er1
22604 ac_status=$?
22605 grep -v '^ *+' conftest.er1 >conftest.err
22606 rm -f conftest.er1
22607 cat conftest.err >&5
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); } && {
22610 test -z "$ac_c_werror_flag" ||
22611 test ! -s conftest.err
22612 } && test -s conftest$ac_exeext &&
22613 $as_test_x conftest$ac_exeext; then
22614 ac_cv_sys_largefile_source=1; break
22615else
22616 echo "$as_me: failed program was:" >&5
22617sed 's/^/| /' conftest.$ac_ext >&5
22618
22619
22620fi
22621
22622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22623 conftest$ac_exeext conftest.$ac_ext
22624 ac_cv_sys_largefile_source=unknown
22625 break
22626done
22627fi
22628{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22629echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
22630case $ac_cv_sys_largefile_source in #(
22631 no | unknown) ;;
22632 *)
22633cat >>confdefs.h <<_ACEOF
22634#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22635_ACEOF
22636;;
22637esac
22638rm -f conftest*
22639
22640# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22641# in glibc 2.1.3, but that breaks too many other things.
22642# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22643if test $ac_cv_sys_largefile_source != unknown; then
22644
22645cat >>confdefs.h <<\_ACEOF
22646#define HAVE_FSEEKO 1
22647_ACEOF
22648
22649fi
22650
22651{ echo "$as_me:$LINENO: checking for mbstate_t" >&5
22652echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22653if test "${ac_cv_type_mbstate_t+set}" = set; then
22654 echo $ECHO_N "(cached) $ECHO_C" >&6
22655else
22656 cat >conftest.$ac_ext <<_ACEOF
22657/* confdefs.h. */
22658_ACEOF
22659cat confdefs.h >>conftest.$ac_ext
22660cat >>conftest.$ac_ext <<_ACEOF
22661/* end confdefs.h. */
22662$ac_includes_default
22663# include <wchar.h>
22664int
22665main ()
22666{
22667mbstate_t x; return sizeof x;
22668 ;
22669 return 0;
22670}
22671_ACEOF
22672rm -f conftest.$ac_objext
22673if { (ac_try="$ac_compile"
22674case "(($ac_try" in
22675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22676 *) ac_try_echo=$ac_try;;
22677esac
22678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22679 (eval "$ac_compile") 2>conftest.er1
22680 ac_status=$?
22681 grep -v '^ *+' conftest.er1 >conftest.err
22682 rm -f conftest.er1
22683 cat conftest.err >&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); } && {
22686 test -z "$ac_c_werror_flag" ||
22687 test ! -s conftest.err
22688 } && test -s conftest.$ac_objext; then
22689 ac_cv_type_mbstate_t=yes
22690else
22691 echo "$as_me: failed program was:" >&5
22692sed 's/^/| /' conftest.$ac_ext >&5
22693
22694 ac_cv_type_mbstate_t=no
22695fi
22696
22697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22698fi
22699{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22700echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22701 if test $ac_cv_type_mbstate_t = yes; then
22702
22703cat >>confdefs.h <<\_ACEOF
22704#define HAVE_MBSTATE_T 1
22705_ACEOF
22706
22707 else
22708
22709cat >>confdefs.h <<\_ACEOF
22710#define mbstate_t int
22711_ACEOF
22712
22713 fi
22714
22715{ echo "$as_me:$LINENO: checking for struct option in getopt" >&5
22716echo $ECHO_N "checking for struct option in getopt... $ECHO_C" >&6; }
22717if test "${ac_cv_struct_option_getopt_h+set}" = set; then
22718 echo $ECHO_N "(cached) $ECHO_C" >&6
22719else
22720 cat >conftest.$ac_ext <<_ACEOF
22721/* confdefs.h. */
22722_ACEOF
22723cat confdefs.h >>conftest.$ac_ext
22724cat >>conftest.$ac_ext <<_ACEOF
22725/* end confdefs.h. */
22726#include <getopt.h>
22727int
22728main ()
22729{
22730struct option op; op.name;
22731 ;
22732 return 0;
22733}
22734_ACEOF
22735rm -f conftest.$ac_objext
22736if { (ac_try="$ac_compile"
22737case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22740esac
22741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_compile") 2>conftest.er1
22743 ac_status=$?
22744 grep -v '^ *+' conftest.er1 >conftest.err
22745 rm -f conftest.er1
22746 cat conftest.err >&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } && {
22749 test -z "$ac_c_werror_flag" ||
22750 test ! -s conftest.err
22751 } && test -s conftest.$ac_objext; then
22752 ac_cv_struct_option_getopt_h=yes
22753else
22754 echo "$as_me: failed program was:" >&5
22755sed 's/^/| /' conftest.$ac_ext >&5
22756
22757 ac_cv_struct_option_getopt_h=no
22758fi
22759
22760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22761fi
22762{ echo "$as_me:$LINENO: result: $ac_cv_struct_option_getopt_h" >&5
22763echo "${ECHO_T}$ac_cv_struct_option_getopt_h" >&6; }
22764if test "$ac_cv_struct_option_getopt_h" = yes; then
22765
22766cat >>confdefs.h <<\_ACEOF
22767#define HAVE_STRUCT_OPTION 1
22768_ACEOF
22769
22770fi
22771
22772
23144{ echo "$as_me:$LINENO: checking for uint8_t" >&5
23145echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23146if test "${ac_cv_type_uint8_t+set}" = set; then
23147 echo $ECHO_N "(cached) $ECHO_C" >&6
23148else
23149 cat >conftest.$ac_ext <<_ACEOF
23150/* confdefs.h. */
23151_ACEOF
23152cat confdefs.h >>conftest.$ac_ext
23153cat >>conftest.$ac_ext <<_ACEOF
23154/* end confdefs.h. */
23155$ac_includes_default
23156typedef uint8_t ac__type_new_;
23157int
23158main ()
23159{
23160if ((ac__type_new_ *) 0)
23161 return 0;
23162if (sizeof (ac__type_new_))
23163 return 0;
23164 ;
23165 return 0;
23166}
23167_ACEOF
23168rm -f conftest.$ac_objext
23169if { (ac_try="$ac_compile"
23170case "(($ac_try" in
23171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23172 *) ac_try_echo=$ac_try;;
23173esac
23174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23175 (eval "$ac_compile") 2>conftest.er1
23176 ac_status=$?
23177 grep -v '^ *+' conftest.er1 >conftest.err
23178 rm -f conftest.er1
23179 cat conftest.err >&5
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); } && {
23182 test -z "$ac_c_werror_flag" ||
23183 test ! -s conftest.err
23184 } && test -s conftest.$ac_objext; then
23185 ac_cv_type_uint8_t=yes
23186else
23187 echo "$as_me: failed program was:" >&5
23188sed 's/^/| /' conftest.$ac_ext >&5
23189
23190 ac_cv_type_uint8_t=no
23191fi
23192
23193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23194fi
23195{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23196echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23197if test $ac_cv_type_uint8_t = yes; then
23198
23199cat >>confdefs.h <<_ACEOF
23200#define HAVE_UINT8_T 1
23201_ACEOF
23202
23203
23204fi
23205{ echo "$as_me:$LINENO: checking for uint16_t" >&5
23206echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23207if test "${ac_cv_type_uint16_t+set}" = set; then
23208 echo $ECHO_N "(cached) $ECHO_C" >&6
23209else
23210 cat >conftest.$ac_ext <<_ACEOF
23211/* confdefs.h. */
23212_ACEOF
23213cat confdefs.h >>conftest.$ac_ext
23214cat >>conftest.$ac_ext <<_ACEOF
23215/* end confdefs.h. */
23216$ac_includes_default
23217typedef uint16_t ac__type_new_;
23218int
23219main ()
23220{
23221if ((ac__type_new_ *) 0)
23222 return 0;
23223if (sizeof (ac__type_new_))
23224 return 0;
23225 ;
23226 return 0;
23227}
23228_ACEOF
23229rm -f conftest.$ac_objext
23230if { (ac_try="$ac_compile"
23231case "(($ac_try" in
23232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23233 *) ac_try_echo=$ac_try;;
23234esac
23235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23236 (eval "$ac_compile") 2>conftest.er1
23237 ac_status=$?
23238 grep -v '^ *+' conftest.er1 >conftest.err
23239 rm -f conftest.er1
23240 cat conftest.err >&5
23241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242 (exit $ac_status); } && {
23243 test -z "$ac_c_werror_flag" ||
23244 test ! -s conftest.err
23245 } && test -s conftest.$ac_objext; then
23246 ac_cv_type_uint16_t=yes
23247else
23248 echo "$as_me: failed program was:" >&5
23249sed 's/^/| /' conftest.$ac_ext >&5
23250
23251 ac_cv_type_uint16_t=no
23252fi
23253
23254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23255fi
23256{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23257echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23258if test $ac_cv_type_uint16_t = yes; then
23259
23260cat >>confdefs.h <<_ACEOF
23261#define HAVE_UINT16_T 1
23262_ACEOF
23263
23264
23265fi
23266{ echo "$as_me:$LINENO: checking for uint32_t" >&5
23267echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23268if test "${ac_cv_type_uint32_t+set}" = set; then
23269 echo $ECHO_N "(cached) $ECHO_C" >&6
23270else
23271 cat >conftest.$ac_ext <<_ACEOF
23272/* confdefs.h. */
23273_ACEOF
23274cat confdefs.h >>conftest.$ac_ext
23275cat >>conftest.$ac_ext <<_ACEOF
23276/* end confdefs.h. */
23277$ac_includes_default
23278typedef uint32_t ac__type_new_;
23279int
23280main ()
23281{
23282if ((ac__type_new_ *) 0)
23283 return 0;
23284if (sizeof (ac__type_new_))
23285 return 0;
23286 ;
23287 return 0;
23288}
23289_ACEOF
23290rm -f conftest.$ac_objext
23291if { (ac_try="$ac_compile"
23292case "(($ac_try" in
23293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23294 *) ac_try_echo=$ac_try;;
23295esac
23296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23297 (eval "$ac_compile") 2>conftest.er1
23298 ac_status=$?
23299 grep -v '^ *+' conftest.er1 >conftest.err
23300 rm -f conftest.er1
23301 cat conftest.err >&5
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); } && {
23304 test -z "$ac_c_werror_flag" ||
23305 test ! -s conftest.err
23306 } && test -s conftest.$ac_objext; then
23307 ac_cv_type_uint32_t=yes
23308else
23309 echo "$as_me: failed program was:" >&5
23310sed 's/^/| /' conftest.$ac_ext >&5
23311
23312 ac_cv_type_uint32_t=no
23313fi
23314
23315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23316fi
23317{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23318echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
23319if test $ac_cv_type_uint32_t = yes; then
23320
23321cat >>confdefs.h <<_ACEOF
23322#define HAVE_UINT32_T 1
23323_ACEOF
23324
23325
23326fi
23327{ echo "$as_me:$LINENO: checking for int32_t" >&5
23328echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
23329if test "${ac_cv_type_int32_t+set}" = set; then
23330 echo $ECHO_N "(cached) $ECHO_C" >&6
23331else
23332 cat >conftest.$ac_ext <<_ACEOF
23333/* confdefs.h. */
23334_ACEOF
23335cat confdefs.h >>conftest.$ac_ext
23336cat >>conftest.$ac_ext <<_ACEOF
23337/* end confdefs.h. */
23338$ac_includes_default
23339typedef int32_t ac__type_new_;
23340int
23341main ()
23342{
23343if ((ac__type_new_ *) 0)
23344 return 0;
23345if (sizeof (ac__type_new_))
23346 return 0;
23347 ;
23348 return 0;
23349}
23350_ACEOF
23351rm -f conftest.$ac_objext
23352if { (ac_try="$ac_compile"
23353case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23356esac
23357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358 (eval "$ac_compile") 2>conftest.er1
23359 ac_status=$?
23360 grep -v '^ *+' conftest.er1 >conftest.err
23361 rm -f conftest.er1
23362 cat conftest.err >&5
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); } && {
23365 test -z "$ac_c_werror_flag" ||
23366 test ! -s conftest.err
23367 } && test -s conftest.$ac_objext; then
23368 ac_cv_type_int32_t=yes
23369else
23370 echo "$as_me: failed program was:" >&5
23371sed 's/^/| /' conftest.$ac_ext >&5
23372
23373 ac_cv_type_int32_t=no
23374fi
23375
23376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23377fi
23378{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
23379echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
23380if test $ac_cv_type_int32_t = yes; then
23381
23382cat >>confdefs.h <<_ACEOF
23383#define HAVE_INT32_T 1
23384_ACEOF
23385
23386
23387fi
23388{ echo "$as_me:$LINENO: checking for uint64_t" >&5
23389echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
23390if test "${ac_cv_type_uint64_t+set}" = set; then
23391 echo $ECHO_N "(cached) $ECHO_C" >&6
23392else
23393 cat >conftest.$ac_ext <<_ACEOF
23394/* confdefs.h. */
23395_ACEOF
23396cat confdefs.h >>conftest.$ac_ext
23397cat >>conftest.$ac_ext <<_ACEOF
23398/* end confdefs.h. */
23399$ac_includes_default
23400typedef uint64_t ac__type_new_;
23401int
23402main ()
23403{
23404if ((ac__type_new_ *) 0)
23405 return 0;
23406if (sizeof (ac__type_new_))
23407 return 0;
23408 ;
23409 return 0;
23410}
23411_ACEOF
23412rm -f conftest.$ac_objext
23413if { (ac_try="$ac_compile"
23414case "(($ac_try" in
23415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23416 *) ac_try_echo=$ac_try;;
23417esac
23418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23419 (eval "$ac_compile") 2>conftest.er1
23420 ac_status=$?
23421 grep -v '^ *+' conftest.er1 >conftest.err
23422 rm -f conftest.er1
23423 cat conftest.err >&5
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); } && {
23426 test -z "$ac_c_werror_flag" ||
23427 test ! -s conftest.err
23428 } && test -s conftest.$ac_objext; then
23429 ac_cv_type_uint64_t=yes
23430else
23431 echo "$as_me: failed program was:" >&5
23432sed 's/^/| /' conftest.$ac_ext >&5
23433
23434 ac_cv_type_uint64_t=no
23435fi
23436
23437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23438fi
23439{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
23440echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
23441if test $ac_cv_type_uint64_t = yes; then
23442
23443cat >>confdefs.h <<_ACEOF
23444#define HAVE_UINT64_T 1
23445_ACEOF
23446
23447
23448fi
23449{ echo "$as_me:$LINENO: checking for int64_t" >&5
23450echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
23451if test "${ac_cv_type_int64_t+set}" = set; then
23452 echo $ECHO_N "(cached) $ECHO_C" >&6
23453else
23454 cat >conftest.$ac_ext <<_ACEOF
23455/* confdefs.h. */
23456_ACEOF
23457cat confdefs.h >>conftest.$ac_ext
23458cat >>conftest.$ac_ext <<_ACEOF
23459/* end confdefs.h. */
23460$ac_includes_default
23461typedef int64_t ac__type_new_;
23462int
23463main ()
23464{
23465if ((ac__type_new_ *) 0)
23466 return 0;
23467if (sizeof (ac__type_new_))
23468 return 0;
23469 ;
23470 return 0;
23471}
23472_ACEOF
23473rm -f conftest.$ac_objext
23474if { (ac_try="$ac_compile"
23475case "(($ac_try" in
23476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23477 *) ac_try_echo=$ac_try;;
23478esac
23479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23480 (eval "$ac_compile") 2>conftest.er1
23481 ac_status=$?
23482 grep -v '^ *+' conftest.er1 >conftest.err
23483 rm -f conftest.er1
23484 cat conftest.err >&5
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); } && {
23487 test -z "$ac_c_werror_flag" ||
23488 test ! -s conftest.err
23489 } && test -s conftest.$ac_objext; then
23490 ac_cv_type_int64_t=yes
23491else
23492 echo "$as_me: failed program was:" >&5
23493sed 's/^/| /' conftest.$ac_ext >&5
23494
23495 ac_cv_type_int64_t=no
23496fi
23497
23498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23499fi
23500{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
23501echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
23502if test $ac_cv_type_int64_t = yes; then
23503
23504cat >>confdefs.h <<_ACEOF
23505#define HAVE_INT64_T 1
23506_ACEOF
23507
23508
23509fi
23510
23511{ echo "$as_me:$LINENO: checking for long long" >&5
23512echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23513if test "${ac_cv_type_long_long+set}" = set; then
23514 echo $ECHO_N "(cached) $ECHO_C" >&6
23515else
23516 cat >conftest.$ac_ext <<_ACEOF
23517/* confdefs.h. */
23518_ACEOF
23519cat confdefs.h >>conftest.$ac_ext
23520cat >>conftest.$ac_ext <<_ACEOF
23521/* end confdefs.h. */
23522$ac_includes_default
23523typedef long long ac__type_new_;
23524int
23525main ()
23526{
23527if ((ac__type_new_ *) 0)
23528 return 0;
23529if (sizeof (ac__type_new_))
23530 return 0;
23531 ;
23532 return 0;
23533}
23534_ACEOF
23535rm -f conftest.$ac_objext
23536if { (ac_try="$ac_compile"
23537case "(($ac_try" in
23538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23539 *) ac_try_echo=$ac_try;;
23540esac
23541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23542 (eval "$ac_compile") 2>conftest.er1
23543 ac_status=$?
23544 grep -v '^ *+' conftest.er1 >conftest.err
23545 rm -f conftest.er1
23546 cat conftest.err >&5
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); } && {
23549 test -z "$ac_c_werror_flag" ||
23550 test ! -s conftest.err
23551 } && test -s conftest.$ac_objext; then
23552 ac_cv_type_long_long=yes
23553else
23554 echo "$as_me: failed program was:" >&5
23555sed 's/^/| /' conftest.$ac_ext >&5
23556
23557 ac_cv_type_long_long=no
23558fi
23559
23560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23561fi
23562{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23563echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23564
23565# The cast to long int works around a bug in the HP C Compiler
23566# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23567# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23568# This bug is HP SR number 8606223364.
23569{ echo "$as_me:$LINENO: checking size of long long" >&5
23570echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23571if test "${ac_cv_sizeof_long_long+set}" = set; then
23572 echo $ECHO_N "(cached) $ECHO_C" >&6
23573else
23574 if test "$cross_compiling" = yes; then
23575 # Depending upon the size, compute the lo and hi bounds.
23576cat >conftest.$ac_ext <<_ACEOF
23577/* confdefs.h. */
23578_ACEOF
23579cat confdefs.h >>conftest.$ac_ext
23580cat >>conftest.$ac_ext <<_ACEOF
23581/* end confdefs.h. */
23582$ac_includes_default
23583 typedef long long ac__type_sizeof_;
23584int
23585main ()
23586{
23587static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23588test_array [0] = 0
23589
23590 ;
23591 return 0;
23592}
23593_ACEOF
23594rm -f conftest.$ac_objext
23595if { (ac_try="$ac_compile"
23596case "(($ac_try" in
23597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23598 *) ac_try_echo=$ac_try;;
23599esac
23600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23601 (eval "$ac_compile") 2>conftest.er1
23602 ac_status=$?
23603 grep -v '^ *+' conftest.er1 >conftest.err
23604 rm -f conftest.er1
23605 cat conftest.err >&5
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } && {
23608 test -z "$ac_c_werror_flag" ||
23609 test ! -s conftest.err
23610 } && test -s conftest.$ac_objext; then
23611 ac_lo=0 ac_mid=0
23612 while :; do
23613 cat >conftest.$ac_ext <<_ACEOF
23614/* confdefs.h. */
23615_ACEOF
23616cat confdefs.h >>conftest.$ac_ext
23617cat >>conftest.$ac_ext <<_ACEOF
23618/* end confdefs.h. */
23619$ac_includes_default
23620 typedef long long ac__type_sizeof_;
23621int
23622main ()
23623{
23624static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23625test_array [0] = 0
23626
23627 ;
23628 return 0;
23629}
23630_ACEOF
23631rm -f conftest.$ac_objext
23632if { (ac_try="$ac_compile"
23633case "(($ac_try" in
23634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23635 *) ac_try_echo=$ac_try;;
23636esac
23637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23638 (eval "$ac_compile") 2>conftest.er1
23639 ac_status=$?
23640 grep -v '^ *+' conftest.er1 >conftest.err
23641 rm -f conftest.er1
23642 cat conftest.err >&5
23643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); } && {
23645 test -z "$ac_c_werror_flag" ||
23646 test ! -s conftest.err
23647 } && test -s conftest.$ac_objext; then
23648 ac_hi=$ac_mid; break
23649else
23650 echo "$as_me: failed program was:" >&5
23651sed 's/^/| /' conftest.$ac_ext >&5
23652
23653 ac_lo=`expr $ac_mid + 1`
23654 if test $ac_lo -le $ac_mid; then
23655 ac_lo= ac_hi=
23656 break
23657 fi
23658 ac_mid=`expr 2 '*' $ac_mid + 1`
23659fi
23660
23661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23662 done
23663else
23664 echo "$as_me: failed program was:" >&5
23665sed 's/^/| /' conftest.$ac_ext >&5
23666
23667 cat >conftest.$ac_ext <<_ACEOF
23668/* confdefs.h. */
23669_ACEOF
23670cat confdefs.h >>conftest.$ac_ext
23671cat >>conftest.$ac_ext <<_ACEOF
23672/* end confdefs.h. */
23673$ac_includes_default
23674 typedef long long ac__type_sizeof_;
23675int
23676main ()
23677{
23678static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23679test_array [0] = 0
23680
23681 ;
23682 return 0;
23683}
23684_ACEOF
23685rm -f conftest.$ac_objext
23686if { (ac_try="$ac_compile"
23687case "(($ac_try" in
23688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23690esac
23691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23693 ac_status=$?
23694 grep -v '^ *+' conftest.er1 >conftest.err
23695 rm -f conftest.er1
23696 cat conftest.err >&5
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); } && {
23699 test -z "$ac_c_werror_flag" ||
23700 test ! -s conftest.err
23701 } && test -s conftest.$ac_objext; then
23702 ac_hi=-1 ac_mid=-1
23703 while :; do
23704 cat >conftest.$ac_ext <<_ACEOF
23705/* confdefs.h. */
23706_ACEOF
23707cat confdefs.h >>conftest.$ac_ext
23708cat >>conftest.$ac_ext <<_ACEOF
23709/* end confdefs.h. */
23710$ac_includes_default
23711 typedef long long ac__type_sizeof_;
23712int
23713main ()
23714{
23715static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23716test_array [0] = 0
23717
23718 ;
23719 return 0;
23720}
23721_ACEOF
23722rm -f conftest.$ac_objext
23723if { (ac_try="$ac_compile"
23724case "(($ac_try" in
23725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23726 *) ac_try_echo=$ac_try;;
23727esac
23728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23729 (eval "$ac_compile") 2>conftest.er1
23730 ac_status=$?
23731 grep -v '^ *+' conftest.er1 >conftest.err
23732 rm -f conftest.er1
23733 cat conftest.err >&5
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); } && {
23736 test -z "$ac_c_werror_flag" ||
23737 test ! -s conftest.err
23738 } && test -s conftest.$ac_objext; then
23739 ac_lo=$ac_mid; break
23740else
23741 echo "$as_me: failed program was:" >&5
23742sed 's/^/| /' conftest.$ac_ext >&5
23743
23744 ac_hi=`expr '(' $ac_mid ')' - 1`
23745 if test $ac_mid -le $ac_hi; then
23746 ac_lo= ac_hi=
23747 break
23748 fi
23749 ac_mid=`expr 2 '*' $ac_mid`
23750fi
23751
23752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23753 done
23754else
23755 echo "$as_me: failed program was:" >&5
23756sed 's/^/| /' conftest.$ac_ext >&5
23757
23758 ac_lo= ac_hi=
23759fi
23760
23761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23762fi
23763
23764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23765# Binary search between lo and hi bounds.
23766while test "x$ac_lo" != "x$ac_hi"; do
23767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23768 cat >conftest.$ac_ext <<_ACEOF
23769/* confdefs.h. */
23770_ACEOF
23771cat confdefs.h >>conftest.$ac_ext
23772cat >>conftest.$ac_ext <<_ACEOF
23773/* end confdefs.h. */
23774$ac_includes_default
23775 typedef long long ac__type_sizeof_;
23776int
23777main ()
23778{
23779static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23780test_array [0] = 0
23781
23782 ;
23783 return 0;
23784}
23785_ACEOF
23786rm -f conftest.$ac_objext
23787if { (ac_try="$ac_compile"
23788case "(($ac_try" in
23789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790 *) ac_try_echo=$ac_try;;
23791esac
23792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23793 (eval "$ac_compile") 2>conftest.er1
23794 ac_status=$?
23795 grep -v '^ *+' conftest.er1 >conftest.err
23796 rm -f conftest.er1
23797 cat conftest.err >&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); } && {
23800 test -z "$ac_c_werror_flag" ||
23801 test ! -s conftest.err
23802 } && test -s conftest.$ac_objext; then
23803 ac_hi=$ac_mid
23804else
23805 echo "$as_me: failed program was:" >&5
23806sed 's/^/| /' conftest.$ac_ext >&5
23807
23808 ac_lo=`expr '(' $ac_mid ')' + 1`
23809fi
23810
23811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23812done
23813case $ac_lo in
23814?*) ac_cv_sizeof_long_long=$ac_lo;;
23815'') if test "$ac_cv_type_long_long" = yes; then
23816 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23817See \`config.log' for more details." >&5
23818echo "$as_me: error: cannot compute sizeof (long long)
23819See \`config.log' for more details." >&2;}
23820 { (exit 77); exit 77; }; }
23821 else
23822 ac_cv_sizeof_long_long=0
23823 fi ;;
23824esac
23825else
23826 cat >conftest.$ac_ext <<_ACEOF
23827/* confdefs.h. */
23828_ACEOF
23829cat confdefs.h >>conftest.$ac_ext
23830cat >>conftest.$ac_ext <<_ACEOF
23831/* end confdefs.h. */
23832$ac_includes_default
23833 typedef long long ac__type_sizeof_;
23834static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23835static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23836#include <stdio.h>
23837#include <stdlib.h>
23838int
23839main ()
23840{
23841
23842 FILE *f = fopen ("conftest.val", "w");
23843 if (! f)
23844 return 1;
23845 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23846 {
23847 long int i = longval ();
23848 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23849 return 1;
23850 fprintf (f, "%ld\n", i);
23851 }
23852 else
23853 {
23854 unsigned long int i = ulongval ();
23855 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23856 return 1;
23857 fprintf (f, "%lu\n", i);
23858 }
23859 return ferror (f) || fclose (f) != 0;
23860
23861 ;
23862 return 0;
23863}
23864_ACEOF
23865rm -f conftest$ac_exeext
23866if { (ac_try="$ac_link"
23867case "(($ac_try" in
23868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23869 *) ac_try_echo=$ac_try;;
23870esac
23871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23872 (eval "$ac_link") 2>&5
23873 ac_status=$?
23874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23876 { (case "(($ac_try" in
23877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23878 *) ac_try_echo=$ac_try;;
23879esac
23880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23881 (eval "$ac_try") 2>&5
23882 ac_status=$?
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); }; }; then
23885 ac_cv_sizeof_long_long=`cat conftest.val`
23886else
23887 echo "$as_me: program exited with status $ac_status" >&5
23888echo "$as_me: failed program was:" >&5
23889sed 's/^/| /' conftest.$ac_ext >&5
23890
23891( exit $ac_status )
23892if test "$ac_cv_type_long_long" = yes; then
23893 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23894See \`config.log' for more details." >&5
23895echo "$as_me: error: cannot compute sizeof (long long)
23896See \`config.log' for more details." >&2;}
23897 { (exit 77); exit 77; }; }
23898 else
23899 ac_cv_sizeof_long_long=0
23900 fi
23901fi
23902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23903fi
23904rm -f conftest.val
23905fi
23906{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23907echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23908
23909
23910
23911cat >>confdefs.h <<_ACEOF
23912#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23913_ACEOF
23914
23915
23916
23917
23918
23919{ echo "$as_me:$LINENO: checking for gcc compiler warnings" >&5
23920echo $ECHO_N "checking for gcc compiler warnings... $ECHO_C" >&6; }
23921# Check whether --enable-warnings was given.
23922if test "${enable_warnings+set}" = set; then
22773{ echo "$as_me:$LINENO: checking for uint8_t" >&5
22774echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22775if test "${ac_cv_type_uint8_t+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22777else
22778 cat >conftest.$ac_ext <<_ACEOF
22779/* confdefs.h. */
22780_ACEOF
22781cat confdefs.h >>conftest.$ac_ext
22782cat >>conftest.$ac_ext <<_ACEOF
22783/* end confdefs.h. */
22784$ac_includes_default
22785typedef uint8_t ac__type_new_;
22786int
22787main ()
22788{
22789if ((ac__type_new_ *) 0)
22790 return 0;
22791if (sizeof (ac__type_new_))
22792 return 0;
22793 ;
22794 return 0;
22795}
22796_ACEOF
22797rm -f conftest.$ac_objext
22798if { (ac_try="$ac_compile"
22799case "(($ac_try" in
22800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22801 *) ac_try_echo=$ac_try;;
22802esac
22803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22804 (eval "$ac_compile") 2>conftest.er1
22805 ac_status=$?
22806 grep -v '^ *+' conftest.er1 >conftest.err
22807 rm -f conftest.er1
22808 cat conftest.err >&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } && {
22811 test -z "$ac_c_werror_flag" ||
22812 test ! -s conftest.err
22813 } && test -s conftest.$ac_objext; then
22814 ac_cv_type_uint8_t=yes
22815else
22816 echo "$as_me: failed program was:" >&5
22817sed 's/^/| /' conftest.$ac_ext >&5
22818
22819 ac_cv_type_uint8_t=no
22820fi
22821
22822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22823fi
22824{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22825echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22826if test $ac_cv_type_uint8_t = yes; then
22827
22828cat >>confdefs.h <<_ACEOF
22829#define HAVE_UINT8_T 1
22830_ACEOF
22831
22832
22833fi
22834{ echo "$as_me:$LINENO: checking for uint16_t" >&5
22835echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22836if test "${ac_cv_type_uint16_t+set}" = set; then
22837 echo $ECHO_N "(cached) $ECHO_C" >&6
22838else
22839 cat >conftest.$ac_ext <<_ACEOF
22840/* confdefs.h. */
22841_ACEOF
22842cat confdefs.h >>conftest.$ac_ext
22843cat >>conftest.$ac_ext <<_ACEOF
22844/* end confdefs.h. */
22845$ac_includes_default
22846typedef uint16_t ac__type_new_;
22847int
22848main ()
22849{
22850if ((ac__type_new_ *) 0)
22851 return 0;
22852if (sizeof (ac__type_new_))
22853 return 0;
22854 ;
22855 return 0;
22856}
22857_ACEOF
22858rm -f conftest.$ac_objext
22859if { (ac_try="$ac_compile"
22860case "(($ac_try" in
22861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22862 *) ac_try_echo=$ac_try;;
22863esac
22864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22865 (eval "$ac_compile") 2>conftest.er1
22866 ac_status=$?
22867 grep -v '^ *+' conftest.er1 >conftest.err
22868 rm -f conftest.er1
22869 cat conftest.err >&5
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); } && {
22872 test -z "$ac_c_werror_flag" ||
22873 test ! -s conftest.err
22874 } && test -s conftest.$ac_objext; then
22875 ac_cv_type_uint16_t=yes
22876else
22877 echo "$as_me: failed program was:" >&5
22878sed 's/^/| /' conftest.$ac_ext >&5
22879
22880 ac_cv_type_uint16_t=no
22881fi
22882
22883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22884fi
22885{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22886echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22887if test $ac_cv_type_uint16_t = yes; then
22888
22889cat >>confdefs.h <<_ACEOF
22890#define HAVE_UINT16_T 1
22891_ACEOF
22892
22893
22894fi
22895{ echo "$as_me:$LINENO: checking for uint32_t" >&5
22896echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22897if test "${ac_cv_type_uint32_t+set}" = set; then
22898 echo $ECHO_N "(cached) $ECHO_C" >&6
22899else
22900 cat >conftest.$ac_ext <<_ACEOF
22901/* confdefs.h. */
22902_ACEOF
22903cat confdefs.h >>conftest.$ac_ext
22904cat >>conftest.$ac_ext <<_ACEOF
22905/* end confdefs.h. */
22906$ac_includes_default
22907typedef uint32_t ac__type_new_;
22908int
22909main ()
22910{
22911if ((ac__type_new_ *) 0)
22912 return 0;
22913if (sizeof (ac__type_new_))
22914 return 0;
22915 ;
22916 return 0;
22917}
22918_ACEOF
22919rm -f conftest.$ac_objext
22920if { (ac_try="$ac_compile"
22921case "(($ac_try" in
22922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923 *) ac_try_echo=$ac_try;;
22924esac
22925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926 (eval "$ac_compile") 2>conftest.er1
22927 ac_status=$?
22928 grep -v '^ *+' conftest.er1 >conftest.err
22929 rm -f conftest.er1
22930 cat conftest.err >&5
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); } && {
22933 test -z "$ac_c_werror_flag" ||
22934 test ! -s conftest.err
22935 } && test -s conftest.$ac_objext; then
22936 ac_cv_type_uint32_t=yes
22937else
22938 echo "$as_me: failed program was:" >&5
22939sed 's/^/| /' conftest.$ac_ext >&5
22940
22941 ac_cv_type_uint32_t=no
22942fi
22943
22944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22945fi
22946{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22947echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22948if test $ac_cv_type_uint32_t = yes; then
22949
22950cat >>confdefs.h <<_ACEOF
22951#define HAVE_UINT32_T 1
22952_ACEOF
22953
22954
22955fi
22956{ echo "$as_me:$LINENO: checking for int32_t" >&5
22957echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
22958if test "${ac_cv_type_int32_t+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22960else
22961 cat >conftest.$ac_ext <<_ACEOF
22962/* confdefs.h. */
22963_ACEOF
22964cat confdefs.h >>conftest.$ac_ext
22965cat >>conftest.$ac_ext <<_ACEOF
22966/* end confdefs.h. */
22967$ac_includes_default
22968typedef int32_t ac__type_new_;
22969int
22970main ()
22971{
22972if ((ac__type_new_ *) 0)
22973 return 0;
22974if (sizeof (ac__type_new_))
22975 return 0;
22976 ;
22977 return 0;
22978}
22979_ACEOF
22980rm -f conftest.$ac_objext
22981if { (ac_try="$ac_compile"
22982case "(($ac_try" in
22983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984 *) ac_try_echo=$ac_try;;
22985esac
22986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987 (eval "$ac_compile") 2>conftest.er1
22988 ac_status=$?
22989 grep -v '^ *+' conftest.er1 >conftest.err
22990 rm -f conftest.er1
22991 cat conftest.err >&5
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } && {
22994 test -z "$ac_c_werror_flag" ||
22995 test ! -s conftest.err
22996 } && test -s conftest.$ac_objext; then
22997 ac_cv_type_int32_t=yes
22998else
22999 echo "$as_me: failed program was:" >&5
23000sed 's/^/| /' conftest.$ac_ext >&5
23001
23002 ac_cv_type_int32_t=no
23003fi
23004
23005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23006fi
23007{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
23008echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
23009if test $ac_cv_type_int32_t = yes; then
23010
23011cat >>confdefs.h <<_ACEOF
23012#define HAVE_INT32_T 1
23013_ACEOF
23014
23015
23016fi
23017{ echo "$as_me:$LINENO: checking for uint64_t" >&5
23018echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
23019if test "${ac_cv_type_uint64_t+set}" = set; then
23020 echo $ECHO_N "(cached) $ECHO_C" >&6
23021else
23022 cat >conftest.$ac_ext <<_ACEOF
23023/* confdefs.h. */
23024_ACEOF
23025cat confdefs.h >>conftest.$ac_ext
23026cat >>conftest.$ac_ext <<_ACEOF
23027/* end confdefs.h. */
23028$ac_includes_default
23029typedef uint64_t ac__type_new_;
23030int
23031main ()
23032{
23033if ((ac__type_new_ *) 0)
23034 return 0;
23035if (sizeof (ac__type_new_))
23036 return 0;
23037 ;
23038 return 0;
23039}
23040_ACEOF
23041rm -f conftest.$ac_objext
23042if { (ac_try="$ac_compile"
23043case "(($ac_try" in
23044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23045 *) ac_try_echo=$ac_try;;
23046esac
23047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23048 (eval "$ac_compile") 2>conftest.er1
23049 ac_status=$?
23050 grep -v '^ *+' conftest.er1 >conftest.err
23051 rm -f conftest.er1
23052 cat conftest.err >&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } && {
23055 test -z "$ac_c_werror_flag" ||
23056 test ! -s conftest.err
23057 } && test -s conftest.$ac_objext; then
23058 ac_cv_type_uint64_t=yes
23059else
23060 echo "$as_me: failed program was:" >&5
23061sed 's/^/| /' conftest.$ac_ext >&5
23062
23063 ac_cv_type_uint64_t=no
23064fi
23065
23066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23067fi
23068{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
23069echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
23070if test $ac_cv_type_uint64_t = yes; then
23071
23072cat >>confdefs.h <<_ACEOF
23073#define HAVE_UINT64_T 1
23074_ACEOF
23075
23076
23077fi
23078{ echo "$as_me:$LINENO: checking for int64_t" >&5
23079echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
23080if test "${ac_cv_type_int64_t+set}" = set; then
23081 echo $ECHO_N "(cached) $ECHO_C" >&6
23082else
23083 cat >conftest.$ac_ext <<_ACEOF
23084/* confdefs.h. */
23085_ACEOF
23086cat confdefs.h >>conftest.$ac_ext
23087cat >>conftest.$ac_ext <<_ACEOF
23088/* end confdefs.h. */
23089$ac_includes_default
23090typedef int64_t ac__type_new_;
23091int
23092main ()
23093{
23094if ((ac__type_new_ *) 0)
23095 return 0;
23096if (sizeof (ac__type_new_))
23097 return 0;
23098 ;
23099 return 0;
23100}
23101_ACEOF
23102rm -f conftest.$ac_objext
23103if { (ac_try="$ac_compile"
23104case "(($ac_try" in
23105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106 *) ac_try_echo=$ac_try;;
23107esac
23108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23109 (eval "$ac_compile") 2>conftest.er1
23110 ac_status=$?
23111 grep -v '^ *+' conftest.er1 >conftest.err
23112 rm -f conftest.er1
23113 cat conftest.err >&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); } && {
23116 test -z "$ac_c_werror_flag" ||
23117 test ! -s conftest.err
23118 } && test -s conftest.$ac_objext; then
23119 ac_cv_type_int64_t=yes
23120else
23121 echo "$as_me: failed program was:" >&5
23122sed 's/^/| /' conftest.$ac_ext >&5
23123
23124 ac_cv_type_int64_t=no
23125fi
23126
23127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23128fi
23129{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
23130echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
23131if test $ac_cv_type_int64_t = yes; then
23132
23133cat >>confdefs.h <<_ACEOF
23134#define HAVE_INT64_T 1
23135_ACEOF
23136
23137
23138fi
23139
23140{ echo "$as_me:$LINENO: checking for long long" >&5
23141echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23142if test "${ac_cv_type_long_long+set}" = set; then
23143 echo $ECHO_N "(cached) $ECHO_C" >&6
23144else
23145 cat >conftest.$ac_ext <<_ACEOF
23146/* confdefs.h. */
23147_ACEOF
23148cat confdefs.h >>conftest.$ac_ext
23149cat >>conftest.$ac_ext <<_ACEOF
23150/* end confdefs.h. */
23151$ac_includes_default
23152typedef long long ac__type_new_;
23153int
23154main ()
23155{
23156if ((ac__type_new_ *) 0)
23157 return 0;
23158if (sizeof (ac__type_new_))
23159 return 0;
23160 ;
23161 return 0;
23162}
23163_ACEOF
23164rm -f conftest.$ac_objext
23165if { (ac_try="$ac_compile"
23166case "(($ac_try" in
23167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168 *) ac_try_echo=$ac_try;;
23169esac
23170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23171 (eval "$ac_compile") 2>conftest.er1
23172 ac_status=$?
23173 grep -v '^ *+' conftest.er1 >conftest.err
23174 rm -f conftest.er1
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } && {
23178 test -z "$ac_c_werror_flag" ||
23179 test ! -s conftest.err
23180 } && test -s conftest.$ac_objext; then
23181 ac_cv_type_long_long=yes
23182else
23183 echo "$as_me: failed program was:" >&5
23184sed 's/^/| /' conftest.$ac_ext >&5
23185
23186 ac_cv_type_long_long=no
23187fi
23188
23189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23190fi
23191{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23192echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23193
23194# The cast to long int works around a bug in the HP C Compiler
23195# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23196# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23197# This bug is HP SR number 8606223364.
23198{ echo "$as_me:$LINENO: checking size of long long" >&5
23199echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23200if test "${ac_cv_sizeof_long_long+set}" = set; then
23201 echo $ECHO_N "(cached) $ECHO_C" >&6
23202else
23203 if test "$cross_compiling" = yes; then
23204 # Depending upon the size, compute the lo and hi bounds.
23205cat >conftest.$ac_ext <<_ACEOF
23206/* confdefs.h. */
23207_ACEOF
23208cat confdefs.h >>conftest.$ac_ext
23209cat >>conftest.$ac_ext <<_ACEOF
23210/* end confdefs.h. */
23211$ac_includes_default
23212 typedef long long ac__type_sizeof_;
23213int
23214main ()
23215{
23216static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23217test_array [0] = 0
23218
23219 ;
23220 return 0;
23221}
23222_ACEOF
23223rm -f conftest.$ac_objext
23224if { (ac_try="$ac_compile"
23225case "(($ac_try" in
23226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227 *) ac_try_echo=$ac_try;;
23228esac
23229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230 (eval "$ac_compile") 2>conftest.er1
23231 ac_status=$?
23232 grep -v '^ *+' conftest.er1 >conftest.err
23233 rm -f conftest.er1
23234 cat conftest.err >&5
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); } && {
23237 test -z "$ac_c_werror_flag" ||
23238 test ! -s conftest.err
23239 } && test -s conftest.$ac_objext; then
23240 ac_lo=0 ac_mid=0
23241 while :; do
23242 cat >conftest.$ac_ext <<_ACEOF
23243/* confdefs.h. */
23244_ACEOF
23245cat confdefs.h >>conftest.$ac_ext
23246cat >>conftest.$ac_ext <<_ACEOF
23247/* end confdefs.h. */
23248$ac_includes_default
23249 typedef long long ac__type_sizeof_;
23250int
23251main ()
23252{
23253static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23254test_array [0] = 0
23255
23256 ;
23257 return 0;
23258}
23259_ACEOF
23260rm -f conftest.$ac_objext
23261if { (ac_try="$ac_compile"
23262case "(($ac_try" in
23263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23264 *) ac_try_echo=$ac_try;;
23265esac
23266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23267 (eval "$ac_compile") 2>conftest.er1
23268 ac_status=$?
23269 grep -v '^ *+' conftest.er1 >conftest.err
23270 rm -f conftest.er1
23271 cat conftest.err >&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } && {
23274 test -z "$ac_c_werror_flag" ||
23275 test ! -s conftest.err
23276 } && test -s conftest.$ac_objext; then
23277 ac_hi=$ac_mid; break
23278else
23279 echo "$as_me: failed program was:" >&5
23280sed 's/^/| /' conftest.$ac_ext >&5
23281
23282 ac_lo=`expr $ac_mid + 1`
23283 if test $ac_lo -le $ac_mid; then
23284 ac_lo= ac_hi=
23285 break
23286 fi
23287 ac_mid=`expr 2 '*' $ac_mid + 1`
23288fi
23289
23290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23291 done
23292else
23293 echo "$as_me: failed program was:" >&5
23294sed 's/^/| /' conftest.$ac_ext >&5
23295
23296 cat >conftest.$ac_ext <<_ACEOF
23297/* confdefs.h. */
23298_ACEOF
23299cat confdefs.h >>conftest.$ac_ext
23300cat >>conftest.$ac_ext <<_ACEOF
23301/* end confdefs.h. */
23302$ac_includes_default
23303 typedef long long ac__type_sizeof_;
23304int
23305main ()
23306{
23307static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23308test_array [0] = 0
23309
23310 ;
23311 return 0;
23312}
23313_ACEOF
23314rm -f conftest.$ac_objext
23315if { (ac_try="$ac_compile"
23316case "(($ac_try" in
23317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318 *) ac_try_echo=$ac_try;;
23319esac
23320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321 (eval "$ac_compile") 2>conftest.er1
23322 ac_status=$?
23323 grep -v '^ *+' conftest.er1 >conftest.err
23324 rm -f conftest.er1
23325 cat conftest.err >&5
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); } && {
23328 test -z "$ac_c_werror_flag" ||
23329 test ! -s conftest.err
23330 } && test -s conftest.$ac_objext; then
23331 ac_hi=-1 ac_mid=-1
23332 while :; do
23333 cat >conftest.$ac_ext <<_ACEOF
23334/* confdefs.h. */
23335_ACEOF
23336cat confdefs.h >>conftest.$ac_ext
23337cat >>conftest.$ac_ext <<_ACEOF
23338/* end confdefs.h. */
23339$ac_includes_default
23340 typedef long long ac__type_sizeof_;
23341int
23342main ()
23343{
23344static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23345test_array [0] = 0
23346
23347 ;
23348 return 0;
23349}
23350_ACEOF
23351rm -f conftest.$ac_objext
23352if { (ac_try="$ac_compile"
23353case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23356esac
23357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358 (eval "$ac_compile") 2>conftest.er1
23359 ac_status=$?
23360 grep -v '^ *+' conftest.er1 >conftest.err
23361 rm -f conftest.er1
23362 cat conftest.err >&5
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); } && {
23365 test -z "$ac_c_werror_flag" ||
23366 test ! -s conftest.err
23367 } && test -s conftest.$ac_objext; then
23368 ac_lo=$ac_mid; break
23369else
23370 echo "$as_me: failed program was:" >&5
23371sed 's/^/| /' conftest.$ac_ext >&5
23372
23373 ac_hi=`expr '(' $ac_mid ')' - 1`
23374 if test $ac_mid -le $ac_hi; then
23375 ac_lo= ac_hi=
23376 break
23377 fi
23378 ac_mid=`expr 2 '*' $ac_mid`
23379fi
23380
23381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23382 done
23383else
23384 echo "$as_me: failed program was:" >&5
23385sed 's/^/| /' conftest.$ac_ext >&5
23386
23387 ac_lo= ac_hi=
23388fi
23389
23390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23391fi
23392
23393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23394# Binary search between lo and hi bounds.
23395while test "x$ac_lo" != "x$ac_hi"; do
23396 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23397 cat >conftest.$ac_ext <<_ACEOF
23398/* confdefs.h. */
23399_ACEOF
23400cat confdefs.h >>conftest.$ac_ext
23401cat >>conftest.$ac_ext <<_ACEOF
23402/* end confdefs.h. */
23403$ac_includes_default
23404 typedef long long ac__type_sizeof_;
23405int
23406main ()
23407{
23408static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23409test_array [0] = 0
23410
23411 ;
23412 return 0;
23413}
23414_ACEOF
23415rm -f conftest.$ac_objext
23416if { (ac_try="$ac_compile"
23417case "(($ac_try" in
23418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23419 *) ac_try_echo=$ac_try;;
23420esac
23421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23422 (eval "$ac_compile") 2>conftest.er1
23423 ac_status=$?
23424 grep -v '^ *+' conftest.er1 >conftest.err
23425 rm -f conftest.er1
23426 cat conftest.err >&5
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); } && {
23429 test -z "$ac_c_werror_flag" ||
23430 test ! -s conftest.err
23431 } && test -s conftest.$ac_objext; then
23432 ac_hi=$ac_mid
23433else
23434 echo "$as_me: failed program was:" >&5
23435sed 's/^/| /' conftest.$ac_ext >&5
23436
23437 ac_lo=`expr '(' $ac_mid ')' + 1`
23438fi
23439
23440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23441done
23442case $ac_lo in
23443?*) ac_cv_sizeof_long_long=$ac_lo;;
23444'') if test "$ac_cv_type_long_long" = yes; then
23445 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23446See \`config.log' for more details." >&5
23447echo "$as_me: error: cannot compute sizeof (long long)
23448See \`config.log' for more details." >&2;}
23449 { (exit 77); exit 77; }; }
23450 else
23451 ac_cv_sizeof_long_long=0
23452 fi ;;
23453esac
23454else
23455 cat >conftest.$ac_ext <<_ACEOF
23456/* confdefs.h. */
23457_ACEOF
23458cat confdefs.h >>conftest.$ac_ext
23459cat >>conftest.$ac_ext <<_ACEOF
23460/* end confdefs.h. */
23461$ac_includes_default
23462 typedef long long ac__type_sizeof_;
23463static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23464static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23465#include <stdio.h>
23466#include <stdlib.h>
23467int
23468main ()
23469{
23470
23471 FILE *f = fopen ("conftest.val", "w");
23472 if (! f)
23473 return 1;
23474 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23475 {
23476 long int i = longval ();
23477 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23478 return 1;
23479 fprintf (f, "%ld\n", i);
23480 }
23481 else
23482 {
23483 unsigned long int i = ulongval ();
23484 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23485 return 1;
23486 fprintf (f, "%lu\n", i);
23487 }
23488 return ferror (f) || fclose (f) != 0;
23489
23490 ;
23491 return 0;
23492}
23493_ACEOF
23494rm -f conftest$ac_exeext
23495if { (ac_try="$ac_link"
23496case "(($ac_try" in
23497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23498 *) ac_try_echo=$ac_try;;
23499esac
23500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23501 (eval "$ac_link") 2>&5
23502 ac_status=$?
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23505 { (case "(($ac_try" in
23506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507 *) ac_try_echo=$ac_try;;
23508esac
23509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510 (eval "$ac_try") 2>&5
23511 ac_status=$?
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); }; }; then
23514 ac_cv_sizeof_long_long=`cat conftest.val`
23515else
23516 echo "$as_me: program exited with status $ac_status" >&5
23517echo "$as_me: failed program was:" >&5
23518sed 's/^/| /' conftest.$ac_ext >&5
23519
23520( exit $ac_status )
23521if test "$ac_cv_type_long_long" = yes; then
23522 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23523See \`config.log' for more details." >&5
23524echo "$as_me: error: cannot compute sizeof (long long)
23525See \`config.log' for more details." >&2;}
23526 { (exit 77); exit 77; }; }
23527 else
23528 ac_cv_sizeof_long_long=0
23529 fi
23530fi
23531rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23532fi
23533rm -f conftest.val
23534fi
23535{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23536echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23537
23538
23539
23540cat >>confdefs.h <<_ACEOF
23541#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23542_ACEOF
23543
23544
23545
23546
23547
23548{ echo "$as_me:$LINENO: checking for gcc compiler warnings" >&5
23549echo $ECHO_N "checking for gcc compiler warnings... $ECHO_C" >&6; }
23550# Check whether --enable-warnings was given.
23551if test "${enable_warnings+set}" = set; then
23923 enableval=$enable_warnings; if test "${enableval}" = no -o $GCC = no; then
23552 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
23924 { echo "$as_me:$LINENO: result: no" >&5
23925echo "${ECHO_T}no" >&6; }
23926 WARNINGS=
23927else
23928 { echo "$as_me:$LINENO: result: yes" >&5
23929echo "${ECHO_T}yes" >&6; }
23930 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
23931 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
23932 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
23933 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
23934fi
23935else
23936
23553 { echo "$as_me:$LINENO: result: no" >&5
23554echo "${ECHO_T}no" >&6; }
23555 WARNINGS=
23556else
23557 { echo "$as_me:$LINENO: result: yes" >&5
23558echo "${ECHO_T}yes" >&6; }
23559 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
23560 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
23561 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
23562 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
23563fi
23564else
23565
23937if test $GCC = no; then
23566if test "$GCC" = no; then
23938 WARNINGS=
23939 { echo "$as_me:$LINENO: result: no" >&5
23940echo "${ECHO_T}no" >&6; }
23941else
23942 { echo "$as_me:$LINENO: result: yes" >&5
23943echo "${ECHO_T}yes" >&6; }
23944 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
23945 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
23946 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
23947 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
23948fi
23949fi
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof
23963do
23964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23965{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23967if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23968 echo $ECHO_N "(cached) $ECHO_C" >&6
23969else
23970 cat >conftest.$ac_ext <<_ACEOF
23971/* confdefs.h. */
23972_ACEOF
23973cat confdefs.h >>conftest.$ac_ext
23974cat >>conftest.$ac_ext <<_ACEOF
23975/* end confdefs.h. */
23976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23978#define $ac_func innocuous_$ac_func
23979
23980/* System header to define __stub macros and hopefully few prototypes,
23981 which can conflict with char $ac_func (); below.
23982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23983 <limits.h> exists even on freestanding compilers. */
23984
23985#ifdef __STDC__
23986# include <limits.h>
23987#else
23988# include <assert.h>
23989#endif
23990
23991#undef $ac_func
23992
23993/* Override any GCC internal prototype to avoid an error.
23994 Use char because int might match the return type of a GCC
23995 builtin and then its argument prototype would still apply. */
23996#ifdef __cplusplus
23997extern "C"
23998#endif
23999char $ac_func ();
24000/* The GNU C library defines this for functions which it implements
24001 to always fail with ENOSYS. Some functions are actually named
24002 something starting with __ and the normal name is an alias. */
24003#if defined __stub_$ac_func || defined __stub___$ac_func
24004choke me
24005#endif
24006
24007int
24008main ()
24009{
24010return $ac_func ();
24011 ;
24012 return 0;
24013}
24014_ACEOF
24015rm -f conftest.$ac_objext conftest$ac_exeext
24016if { (ac_try="$ac_link"
24017case "(($ac_try" in
24018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24019 *) ac_try_echo=$ac_try;;
24020esac
24021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24022 (eval "$ac_link") 2>conftest.er1
24023 ac_status=$?
24024 grep -v '^ *+' conftest.er1 >conftest.err
24025 rm -f conftest.er1
24026 cat conftest.err >&5
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); } && {
24029 test -z "$ac_c_werror_flag" ||
24030 test ! -s conftest.err
24031 } && test -s conftest$ac_exeext &&
24032 $as_test_x conftest$ac_exeext; then
24033 eval "$as_ac_var=yes"
24034else
24035 echo "$as_me: failed program was:" >&5
24036sed 's/^/| /' conftest.$ac_ext >&5
24037
24038 eval "$as_ac_var=no"
24039fi
24040
24041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24042 conftest$ac_exeext conftest.$ac_ext
24043fi
24044ac_res=`eval echo '${'$as_ac_var'}'`
24045 { echo "$as_me:$LINENO: result: $ac_res" >&5
24046echo "${ECHO_T}$ac_res" >&6; }
24047if test `eval echo '${'$as_ac_var'}'` = yes; then
24048 cat >>confdefs.h <<_ACEOF
24049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24050_ACEOF
24051
24052fi
24053done
24054
24055
24056
24057
24058
24059
24060
24061for ac_func in getopt_long asprintf vasprintf strlcpy strlcat
24062do
24063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24064{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24066if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24067 echo $ECHO_N "(cached) $ECHO_C" >&6
24068else
24069 cat >conftest.$ac_ext <<_ACEOF
24070/* confdefs.h. */
24071_ACEOF
24072cat confdefs.h >>conftest.$ac_ext
24073cat >>conftest.$ac_ext <<_ACEOF
24074/* end confdefs.h. */
24075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24077#define $ac_func innocuous_$ac_func
24078
24079/* System header to define __stub macros and hopefully few prototypes,
24080 which can conflict with char $ac_func (); below.
24081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24082 <limits.h> exists even on freestanding compilers. */
24083
24084#ifdef __STDC__
24085# include <limits.h>
24086#else
24087# include <assert.h>
24088#endif
24089
24090#undef $ac_func
24091
24092/* Override any GCC internal prototype to avoid an error.
24093 Use char because int might match the return type of a GCC
24094 builtin and then its argument prototype would still apply. */
24095#ifdef __cplusplus
24096extern "C"
24097#endif
24098char $ac_func ();
24099/* The GNU C library defines this for functions which it implements
24100 to always fail with ENOSYS. Some functions are actually named
24101 something starting with __ and the normal name is an alias. */
24102#if defined __stub_$ac_func || defined __stub___$ac_func
24103choke me
24104#endif
24105
24106int
24107main ()
24108{
24109return $ac_func ();
24110 ;
24111 return 0;
24112}
24113_ACEOF
24114rm -f conftest.$ac_objext conftest$ac_exeext
24115if { (ac_try="$ac_link"
24116case "(($ac_try" in
24117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24118 *) ac_try_echo=$ac_try;;
24119esac
24120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24121 (eval "$ac_link") 2>conftest.er1
24122 ac_status=$?
24123 grep -v '^ *+' conftest.er1 >conftest.err
24124 rm -f conftest.er1
24125 cat conftest.err >&5
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); } && {
24128 test -z "$ac_c_werror_flag" ||
24129 test ! -s conftest.err
24130 } && test -s conftest$ac_exeext &&
24131 $as_test_x conftest$ac_exeext; then
24132 eval "$as_ac_var=yes"
24133else
24134 echo "$as_me: failed program was:" >&5
24135sed 's/^/| /' conftest.$ac_ext >&5
24136
24137 eval "$as_ac_var=no"
24138fi
24139
24140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24141 conftest$ac_exeext conftest.$ac_ext
24142fi
24143ac_res=`eval echo '${'$as_ac_var'}'`
24144 { echo "$as_me:$LINENO: result: $ac_res" >&5
24145echo "${ECHO_T}$ac_res" >&6; }
24146if test `eval echo '${'$as_ac_var'}'` = yes; then
24147 cat >>confdefs.h <<_ACEOF
24148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24149_ACEOF
24150
24151else
24152 case " $LIBOBJS " in
24153 *" $ac_func.$ac_objext "* ) ;;
24154 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24155 ;;
24156esac
24157
24158fi
24159done
24160
24161
24162
24163
24164{ echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
24165echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
24166if test "${ac_cv_lib_z_gzopen+set}" = set; then
24167 echo $ECHO_N "(cached) $ECHO_C" >&6
24168else
24169 ac_check_lib_save_LIBS=$LIBS
24170LIBS="-lz $LIBS"
24171cat >conftest.$ac_ext <<_ACEOF
24172/* confdefs.h. */
24173_ACEOF
24174cat confdefs.h >>conftest.$ac_ext
24175cat >>conftest.$ac_ext <<_ACEOF
24176/* end confdefs.h. */
24177
24178/* Override any GCC internal prototype to avoid an error.
24179 Use char because int might match the return type of a GCC
24180 builtin and then its argument prototype would still apply. */
24181#ifdef __cplusplus
24182extern "C"
24183#endif
24184char gzopen ();
24185int
24186main ()
24187{
24188return gzopen ();
24189 ;
24190 return 0;
24191}
24192_ACEOF
24193rm -f conftest.$ac_objext conftest$ac_exeext
24194if { (ac_try="$ac_link"
24195case "(($ac_try" in
24196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24197 *) ac_try_echo=$ac_try;;
24198esac
24199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24200 (eval "$ac_link") 2>conftest.er1
24201 ac_status=$?
24202 grep -v '^ *+' conftest.er1 >conftest.err
24203 rm -f conftest.er1
24204 cat conftest.err >&5
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); } && {
24207 test -z "$ac_c_werror_flag" ||
24208 test ! -s conftest.err
24209 } && test -s conftest$ac_exeext &&
24210 $as_test_x conftest$ac_exeext; then
24211 ac_cv_lib_z_gzopen=yes
24212else
24213 echo "$as_me: failed program was:" >&5
24214sed 's/^/| /' conftest.$ac_ext >&5
24215
24216 ac_cv_lib_z_gzopen=no
24217fi
24218
24219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24220 conftest$ac_exeext conftest.$ac_ext
24221LIBS=$ac_check_lib_save_LIBS
24222fi
24223{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
24224echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
24225if test $ac_cv_lib_z_gzopen = yes; then
24226 cat >>confdefs.h <<_ACEOF
24227#define HAVE_LIBZ 1
24228_ACEOF
24229
24230 LIBS="-lz $LIBS"
24231
24232fi
24233
24234
24235 if test "$cross_compiling" = yes; then
24236 IS_CROSS_COMPILE_TRUE=
24237 IS_CROSS_COMPILE_FALSE='#'
24238else
24239 IS_CROSS_COMPILE_TRUE='#'
24240 IS_CROSS_COMPILE_FALSE=
24241fi
24242
24243
24244ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
24245
24246cat >confcache <<\_ACEOF
24247# This file is a shell script that caches the results of configure
24248# tests run on this system so they can be shared between configure
24249# scripts and configure runs, see configure's option --config-cache.
24250# It is not useful on other systems. If it contains results you don't
24251# want to keep, you may remove or edit it.
24252#
24253# config.status only pays attention to the cache file if you give it
24254# the --recheck option to rerun configure.
24255#
24256# `ac_cv_env_foo' variables (set or unset) will be overridden when
24257# loading this file, other *unset* `ac_cv_foo' will be assigned the
24258# following values.
24259
24260_ACEOF
24261
24262# The following way of writing the cache mishandles newlines in values,
24263# but we know of no workaround that is simple, portable, and efficient.
24264# So, we kill variables containing newlines.
24265# Ultrix sh set writes to stderr and can't be redirected directly,
24266# and sets the high bit in the cache file unless we assign to the vars.
24267(
24268 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24269 eval ac_val=\$$ac_var
24270 case $ac_val in #(
24271 *${as_nl}*)
24272 case $ac_var in #(
24273 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24274echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24275 esac
24276 case $ac_var in #(
24277 _ | IFS | as_nl) ;; #(
24278 *) $as_unset $ac_var ;;
24279 esac ;;
24280 esac
24281 done
24282
24283 (set) 2>&1 |
24284 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24285 *${as_nl}ac_space=\ *)
24286 # `set' does not quote correctly, so add quotes (double-quote
24287 # substitution turns \\\\ into \\, and sed turns \\ into \).
24288 sed -n \
24289 "s/'/'\\\\''/g;
24290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24291 ;; #(
24292 *)
24293 # `set' quotes correctly as required by POSIX, so do not add quotes.
24294 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24295 ;;
24296 esac |
24297 sort
24298) |
24299 sed '
24300 /^ac_cv_env_/b end
24301 t clear
24302 :clear
24303 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24304 t end
24305 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24306 :end' >>confcache
24307if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24308 if test -w "$cache_file"; then
24309 test "x$cache_file" != "x/dev/null" &&
24310 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24311echo "$as_me: updating cache $cache_file" >&6;}
24312 cat confcache >$cache_file
24313 else
24314 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24315echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24316 fi
24317fi
24318rm -f confcache
24319
24320test "x$prefix" = xNONE && prefix=$ac_default_prefix
24321# Let make expand exec_prefix.
24322test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24323
24324DEFS=-DHAVE_CONFIG_H
24325
24326ac_libobjs=
24327ac_ltlibobjs=
24328for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24329 # 1. Remove the extension, and $U if already installed.
24330 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24331 ac_i=`echo "$ac_i" | sed "$ac_script"`
24332 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24333 # will be set to the directory where LIBOBJS objects are built.
24334 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24335 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24336done
24337LIBOBJS=$ac_libobjs
24338
24339LTLIBOBJS=$ac_ltlibobjs
24340
24341
24342if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
24343 { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
24344Usually this means the macro was only invoked conditionally." >&5
24345echo "$as_me: error: conditional \"FSECT5\" was never defined.
24346Usually this means the macro was only invoked conditionally." >&2;}
24347 { (exit 1); exit 1; }; }
24348fi
24349if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24350 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24351Usually this means the macro was only invoked conditionally." >&5
24352echo "$as_me: error: conditional \"AMDEP\" was never defined.
24353Usually this means the macro was only invoked conditionally." >&2;}
24354 { (exit 1); exit 1; }; }
24355fi
24356if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24357 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24358Usually this means the macro was only invoked conditionally." >&5
24359echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24360Usually this means the macro was only invoked conditionally." >&2;}
24361 { (exit 1); exit 1; }; }
24362fi
24363if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24364 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24365Usually this means the macro was only invoked conditionally." >&5
24366echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24367Usually this means the macro was only invoked conditionally." >&2;}
24368 { (exit 1); exit 1; }; }
24369fi
24370if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
24371 { { echo "$as_me:$LINENO: error: conditional \"IS_CROSS_COMPILE\" was never defined.
24372Usually this means the macro was only invoked conditionally." >&5
24373echo "$as_me: error: conditional \"IS_CROSS_COMPILE\" was never defined.
24374Usually this means the macro was only invoked conditionally." >&2;}
24375 { (exit 1); exit 1; }; }
24376fi
24377
24378: ${CONFIG_STATUS=./config.status}
24379ac_clean_files_save=$ac_clean_files
24380ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24381{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24382echo "$as_me: creating $CONFIG_STATUS" >&6;}
24383cat >$CONFIG_STATUS <<_ACEOF
24384#! $SHELL
24385# Generated by $as_me.
24386# Run this file to recreate the current configuration.
24387# Compiler output produced by configure, useful for debugging
24388# configure, is in config.log if it exists.
24389
24390debug=false
24391ac_cs_recheck=false
24392ac_cs_silent=false
24393SHELL=\${CONFIG_SHELL-$SHELL}
24394_ACEOF
24395
24396cat >>$CONFIG_STATUS <<\_ACEOF
24397## --------------------- ##
24398## M4sh Initialization. ##
24399## --------------------- ##
24400
24401# Be more Bourne compatible
24402DUALCASE=1; export DUALCASE # for MKS sh
24403if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24404 emulate sh
24405 NULLCMD=:
24406 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24407 # is contrary to our usage. Disable this feature.
24408 alias -g '${1+"$@"}'='"$@"'
24409 setopt NO_GLOB_SUBST
24410else
24411 case `(set -o) 2>/dev/null` in
24412 *posix*) set -o posix ;;
24413esac
24414
24415fi
24416
24417
24418
24419
24420# PATH needs CR
24421# Avoid depending upon Character Ranges.
24422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24425as_cr_digits='0123456789'
24426as_cr_alnum=$as_cr_Letters$as_cr_digits
24427
24428# The user is always right.
24429if test "${PATH_SEPARATOR+set}" != set; then
24430 echo "#! /bin/sh" >conf$$.sh
24431 echo "exit 0" >>conf$$.sh
24432 chmod +x conf$$.sh
24433 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24434 PATH_SEPARATOR=';'
24435 else
24436 PATH_SEPARATOR=:
24437 fi
24438 rm -f conf$$.sh
24439fi
24440
24441# Support unset when possible.
24442if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24443 as_unset=unset
24444else
24445 as_unset=false
24446fi
24447
24448
24449# IFS
24450# We need space, tab and new line, in precisely that order. Quoting is
24451# there to prevent editors from complaining about space-tab.
24452# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24453# splitting by setting IFS to empty value.)
24454as_nl='
24455'
24456IFS=" "" $as_nl"
24457
24458# Find who we are. Look in the path if we contain no directory separator.
24459case $0 in
24460 *[\\/]* ) as_myself=$0 ;;
24461 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24462for as_dir in $PATH
24463do
24464 IFS=$as_save_IFS
24465 test -z "$as_dir" && as_dir=.
24466 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24467done
24468IFS=$as_save_IFS
24469
24470 ;;
24471esac
24472# We did not find ourselves, most probably we were run as `sh COMMAND'
24473# in which case we are not to be found in the path.
24474if test "x$as_myself" = x; then
24475 as_myself=$0
24476fi
24477if test ! -f "$as_myself"; then
24478 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24479 { (exit 1); exit 1; }
24480fi
24481
24482# Work around bugs in pre-3.0 UWIN ksh.
24483for as_var in ENV MAIL MAILPATH
24484do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24485done
24486PS1='$ '
24487PS2='> '
24488PS4='+ '
24489
24490# NLS nuisances.
24491for as_var in \
24492 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24493 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24494 LC_TELEPHONE LC_TIME
24495do
24496 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24497 eval $as_var=C; export $as_var
24498 else
24499 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24500 fi
24501done
24502
24503# Required to use basename.
24504if expr a : '\(a\)' >/dev/null 2>&1 &&
24505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24506 as_expr=expr
24507else
24508 as_expr=false
24509fi
24510
24511if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24512 as_basename=basename
24513else
24514 as_basename=false
24515fi
24516
24517
24518# Name of the executable.
24519as_me=`$as_basename -- "$0" ||
24520$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24521 X"$0" : 'X\(//\)$' \| \
24522 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24523echo X/"$0" |
24524 sed '/^.*\/\([^/][^/]*\)\/*$/{
24525 s//\1/
24526 q
24527 }
24528 /^X\/\(\/\/\)$/{
24529 s//\1/
24530 q
24531 }
24532 /^X\/\(\/\).*/{
24533 s//\1/
24534 q
24535 }
24536 s/.*/./; q'`
24537
24538# CDPATH.
24539$as_unset CDPATH
24540
24541
24542
24543 as_lineno_1=$LINENO
24544 as_lineno_2=$LINENO
24545 test "x$as_lineno_1" != "x$as_lineno_2" &&
24546 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24547
24548 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24549 # uniformly replaced by the line number. The first 'sed' inserts a
24550 # line-number line after each line using $LINENO; the second 'sed'
24551 # does the real work. The second script uses 'N' to pair each
24552 # line-number line with the line containing $LINENO, and appends
24553 # trailing '-' during substitution so that $LINENO is not a special
24554 # case at line end.
24555 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24556 # scripts with optimization help from Paolo Bonzini. Blame Lee
24557 # E. McMahon (1931-1989) for sed's syntax. :-)
24558 sed -n '
24559 p
24560 /[$]LINENO/=
24561 ' <$as_myself |
24562 sed '
24563 s/[$]LINENO.*/&-/
24564 t lineno
24565 b
24566 :lineno
24567 N
24568 :loop
24569 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24570 t loop
24571 s/-\n.*//
24572 ' >$as_me.lineno &&
24573 chmod +x "$as_me.lineno" ||
24574 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24575 { (exit 1); exit 1; }; }
24576
24577 # Don't try to exec as it changes $[0], causing all sort of problems
24578 # (the dirname of $[0] is not the place where we might find the
24579 # original and so on. Autoconf is especially sensitive to this).
24580 . "./$as_me.lineno"
24581 # Exit status is that of the last command.
24582 exit
24583}
24584
24585
24586if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24587 as_dirname=dirname
24588else
24589 as_dirname=false
24590fi
24591
24592ECHO_C= ECHO_N= ECHO_T=
24593case `echo -n x` in
24594-n*)
24595 case `echo 'x\c'` in
24596 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24597 *) ECHO_C='\c';;
24598 esac;;
24599*)
24600 ECHO_N='-n';;
24601esac
24602
24603if expr a : '\(a\)' >/dev/null 2>&1 &&
24604 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24605 as_expr=expr
24606else
24607 as_expr=false
24608fi
24609
24610rm -f conf$$ conf$$.exe conf$$.file
24611if test -d conf$$.dir; then
24612 rm -f conf$$.dir/conf$$.file
24613else
24614 rm -f conf$$.dir
24615 mkdir conf$$.dir
24616fi
24617echo >conf$$.file
24618if ln -s conf$$.file conf$$ 2>/dev/null; then
24619 as_ln_s='ln -s'
24620 # ... but there are two gotchas:
24621 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24622 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24623 # In both cases, we have to default to `cp -p'.
24624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24625 as_ln_s='cp -p'
24626elif ln conf$$.file conf$$ 2>/dev/null; then
24627 as_ln_s=ln
24628else
24629 as_ln_s='cp -p'
24630fi
24631rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24632rmdir conf$$.dir 2>/dev/null
24633
24634if mkdir -p . 2>/dev/null; then
24635 as_mkdir_p=:
24636else
24637 test -d ./-p && rmdir ./-p
24638 as_mkdir_p=false
24639fi
24640
24641if test -x / >/dev/null 2>&1; then
24642 as_test_x='test -x'
24643else
24644 if ls -dL / >/dev/null 2>&1; then
24645 as_ls_L_option=L
24646 else
24647 as_ls_L_option=
24648 fi
24649 as_test_x='
24650 eval sh -c '\''
24651 if test -d "$1"; then
24652 test -d "$1/.";
24653 else
24654 case $1 in
24655 -*)set "./$1";;
24656 esac;
24657 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24658 ???[sx]*):;;*)false;;esac;fi
24659 '\'' sh
24660 '
24661fi
24662as_executable_p=$as_test_x
24663
24664# Sed expression to map a string onto a valid CPP name.
24665as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24666
24667# Sed expression to map a string onto a valid variable name.
24668as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24669
24670
24671exec 6>&1
24672
24673# Save the log message, to keep $[0] and so on meaningful, and to
24674# report actual input values of CONFIG_FILES etc. instead of their
24675# values after options handling.
24676ac_log="
23567 WARNINGS=
23568 { echo "$as_me:$LINENO: result: no" >&5
23569echo "${ECHO_T}no" >&6; }
23570else
23571 { echo "$as_me:$LINENO: result: yes" >&5
23572echo "${ECHO_T}yes" >&6; }
23573 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
23574 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
23575 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
23576 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
23577fi
23578fi
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof
23592do
23593as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23594{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23595echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23596if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23597 echo $ECHO_N "(cached) $ECHO_C" >&6
23598else
23599 cat >conftest.$ac_ext <<_ACEOF
23600/* confdefs.h. */
23601_ACEOF
23602cat confdefs.h >>conftest.$ac_ext
23603cat >>conftest.$ac_ext <<_ACEOF
23604/* end confdefs.h. */
23605/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23607#define $ac_func innocuous_$ac_func
23608
23609/* System header to define __stub macros and hopefully few prototypes,
23610 which can conflict with char $ac_func (); below.
23611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23612 <limits.h> exists even on freestanding compilers. */
23613
23614#ifdef __STDC__
23615# include <limits.h>
23616#else
23617# include <assert.h>
23618#endif
23619
23620#undef $ac_func
23621
23622/* Override any GCC internal prototype to avoid an error.
23623 Use char because int might match the return type of a GCC
23624 builtin and then its argument prototype would still apply. */
23625#ifdef __cplusplus
23626extern "C"
23627#endif
23628char $ac_func ();
23629/* The GNU C library defines this for functions which it implements
23630 to always fail with ENOSYS. Some functions are actually named
23631 something starting with __ and the normal name is an alias. */
23632#if defined __stub_$ac_func || defined __stub___$ac_func
23633choke me
23634#endif
23635
23636int
23637main ()
23638{
23639return $ac_func ();
23640 ;
23641 return 0;
23642}
23643_ACEOF
23644rm -f conftest.$ac_objext conftest$ac_exeext
23645if { (ac_try="$ac_link"
23646case "(($ac_try" in
23647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23648 *) ac_try_echo=$ac_try;;
23649esac
23650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23651 (eval "$ac_link") 2>conftest.er1
23652 ac_status=$?
23653 grep -v '^ *+' conftest.er1 >conftest.err
23654 rm -f conftest.er1
23655 cat conftest.err >&5
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); } && {
23658 test -z "$ac_c_werror_flag" ||
23659 test ! -s conftest.err
23660 } && test -s conftest$ac_exeext &&
23661 $as_test_x conftest$ac_exeext; then
23662 eval "$as_ac_var=yes"
23663else
23664 echo "$as_me: failed program was:" >&5
23665sed 's/^/| /' conftest.$ac_ext >&5
23666
23667 eval "$as_ac_var=no"
23668fi
23669
23670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23671 conftest$ac_exeext conftest.$ac_ext
23672fi
23673ac_res=`eval echo '${'$as_ac_var'}'`
23674 { echo "$as_me:$LINENO: result: $ac_res" >&5
23675echo "${ECHO_T}$ac_res" >&6; }
23676if test `eval echo '${'$as_ac_var'}'` = yes; then
23677 cat >>confdefs.h <<_ACEOF
23678#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23679_ACEOF
23680
23681fi
23682done
23683
23684
23685
23686
23687
23688
23689
23690for ac_func in getopt_long asprintf vasprintf strlcpy strlcat
23691do
23692as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23693{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23694echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23695if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23696 echo $ECHO_N "(cached) $ECHO_C" >&6
23697else
23698 cat >conftest.$ac_ext <<_ACEOF
23699/* confdefs.h. */
23700_ACEOF
23701cat confdefs.h >>conftest.$ac_ext
23702cat >>conftest.$ac_ext <<_ACEOF
23703/* end confdefs.h. */
23704/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23706#define $ac_func innocuous_$ac_func
23707
23708/* System header to define __stub macros and hopefully few prototypes,
23709 which can conflict with char $ac_func (); below.
23710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23711 <limits.h> exists even on freestanding compilers. */
23712
23713#ifdef __STDC__
23714# include <limits.h>
23715#else
23716# include <assert.h>
23717#endif
23718
23719#undef $ac_func
23720
23721/* Override any GCC internal prototype to avoid an error.
23722 Use char because int might match the return type of a GCC
23723 builtin and then its argument prototype would still apply. */
23724#ifdef __cplusplus
23725extern "C"
23726#endif
23727char $ac_func ();
23728/* The GNU C library defines this for functions which it implements
23729 to always fail with ENOSYS. Some functions are actually named
23730 something starting with __ and the normal name is an alias. */
23731#if defined __stub_$ac_func || defined __stub___$ac_func
23732choke me
23733#endif
23734
23735int
23736main ()
23737{
23738return $ac_func ();
23739 ;
23740 return 0;
23741}
23742_ACEOF
23743rm -f conftest.$ac_objext conftest$ac_exeext
23744if { (ac_try="$ac_link"
23745case "(($ac_try" in
23746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23747 *) ac_try_echo=$ac_try;;
23748esac
23749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23750 (eval "$ac_link") 2>conftest.er1
23751 ac_status=$?
23752 grep -v '^ *+' conftest.er1 >conftest.err
23753 rm -f conftest.er1
23754 cat conftest.err >&5
23755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756 (exit $ac_status); } && {
23757 test -z "$ac_c_werror_flag" ||
23758 test ! -s conftest.err
23759 } && test -s conftest$ac_exeext &&
23760 $as_test_x conftest$ac_exeext; then
23761 eval "$as_ac_var=yes"
23762else
23763 echo "$as_me: failed program was:" >&5
23764sed 's/^/| /' conftest.$ac_ext >&5
23765
23766 eval "$as_ac_var=no"
23767fi
23768
23769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23770 conftest$ac_exeext conftest.$ac_ext
23771fi
23772ac_res=`eval echo '${'$as_ac_var'}'`
23773 { echo "$as_me:$LINENO: result: $ac_res" >&5
23774echo "${ECHO_T}$ac_res" >&6; }
23775if test `eval echo '${'$as_ac_var'}'` = yes; then
23776 cat >>confdefs.h <<_ACEOF
23777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23778_ACEOF
23779
23780else
23781 case " $LIBOBJS " in
23782 *" $ac_func.$ac_objext "* ) ;;
23783 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23784 ;;
23785esac
23786
23787fi
23788done
23789
23790
23791
23792
23793{ echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
23794echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
23795if test "${ac_cv_lib_z_gzopen+set}" = set; then
23796 echo $ECHO_N "(cached) $ECHO_C" >&6
23797else
23798 ac_check_lib_save_LIBS=$LIBS
23799LIBS="-lz $LIBS"
23800cat >conftest.$ac_ext <<_ACEOF
23801/* confdefs.h. */
23802_ACEOF
23803cat confdefs.h >>conftest.$ac_ext
23804cat >>conftest.$ac_ext <<_ACEOF
23805/* end confdefs.h. */
23806
23807/* Override any GCC internal prototype to avoid an error.
23808 Use char because int might match the return type of a GCC
23809 builtin and then its argument prototype would still apply. */
23810#ifdef __cplusplus
23811extern "C"
23812#endif
23813char gzopen ();
23814int
23815main ()
23816{
23817return gzopen ();
23818 ;
23819 return 0;
23820}
23821_ACEOF
23822rm -f conftest.$ac_objext conftest$ac_exeext
23823if { (ac_try="$ac_link"
23824case "(($ac_try" in
23825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23826 *) ac_try_echo=$ac_try;;
23827esac
23828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23829 (eval "$ac_link") 2>conftest.er1
23830 ac_status=$?
23831 grep -v '^ *+' conftest.er1 >conftest.err
23832 rm -f conftest.er1
23833 cat conftest.err >&5
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } && {
23836 test -z "$ac_c_werror_flag" ||
23837 test ! -s conftest.err
23838 } && test -s conftest$ac_exeext &&
23839 $as_test_x conftest$ac_exeext; then
23840 ac_cv_lib_z_gzopen=yes
23841else
23842 echo "$as_me: failed program was:" >&5
23843sed 's/^/| /' conftest.$ac_ext >&5
23844
23845 ac_cv_lib_z_gzopen=no
23846fi
23847
23848rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23849 conftest$ac_exeext conftest.$ac_ext
23850LIBS=$ac_check_lib_save_LIBS
23851fi
23852{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
23853echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
23854if test $ac_cv_lib_z_gzopen = yes; then
23855 cat >>confdefs.h <<_ACEOF
23856#define HAVE_LIBZ 1
23857_ACEOF
23858
23859 LIBS="-lz $LIBS"
23860
23861fi
23862
23863
23864 if test "$cross_compiling" = yes; then
23865 IS_CROSS_COMPILE_TRUE=
23866 IS_CROSS_COMPILE_FALSE='#'
23867else
23868 IS_CROSS_COMPILE_TRUE='#'
23869 IS_CROSS_COMPILE_FALSE=
23870fi
23871
23872
23873ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
23874
23875cat >confcache <<\_ACEOF
23876# This file is a shell script that caches the results of configure
23877# tests run on this system so they can be shared between configure
23878# scripts and configure runs, see configure's option --config-cache.
23879# It is not useful on other systems. If it contains results you don't
23880# want to keep, you may remove or edit it.
23881#
23882# config.status only pays attention to the cache file if you give it
23883# the --recheck option to rerun configure.
23884#
23885# `ac_cv_env_foo' variables (set or unset) will be overridden when
23886# loading this file, other *unset* `ac_cv_foo' will be assigned the
23887# following values.
23888
23889_ACEOF
23890
23891# The following way of writing the cache mishandles newlines in values,
23892# but we know of no workaround that is simple, portable, and efficient.
23893# So, we kill variables containing newlines.
23894# Ultrix sh set writes to stderr and can't be redirected directly,
23895# and sets the high bit in the cache file unless we assign to the vars.
23896(
23897 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23898 eval ac_val=\$$ac_var
23899 case $ac_val in #(
23900 *${as_nl}*)
23901 case $ac_var in #(
23902 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23903echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23904 esac
23905 case $ac_var in #(
23906 _ | IFS | as_nl) ;; #(
23907 *) $as_unset $ac_var ;;
23908 esac ;;
23909 esac
23910 done
23911
23912 (set) 2>&1 |
23913 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23914 *${as_nl}ac_space=\ *)
23915 # `set' does not quote correctly, so add quotes (double-quote
23916 # substitution turns \\\\ into \\, and sed turns \\ into \).
23917 sed -n \
23918 "s/'/'\\\\''/g;
23919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23920 ;; #(
23921 *)
23922 # `set' quotes correctly as required by POSIX, so do not add quotes.
23923 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23924 ;;
23925 esac |
23926 sort
23927) |
23928 sed '
23929 /^ac_cv_env_/b end
23930 t clear
23931 :clear
23932 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23933 t end
23934 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23935 :end' >>confcache
23936if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23937 if test -w "$cache_file"; then
23938 test "x$cache_file" != "x/dev/null" &&
23939 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23940echo "$as_me: updating cache $cache_file" >&6;}
23941 cat confcache >$cache_file
23942 else
23943 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23944echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23945 fi
23946fi
23947rm -f confcache
23948
23949test "x$prefix" = xNONE && prefix=$ac_default_prefix
23950# Let make expand exec_prefix.
23951test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23952
23953DEFS=-DHAVE_CONFIG_H
23954
23955ac_libobjs=
23956ac_ltlibobjs=
23957for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23958 # 1. Remove the extension, and $U if already installed.
23959 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23960 ac_i=`echo "$ac_i" | sed "$ac_script"`
23961 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23962 # will be set to the directory where LIBOBJS objects are built.
23963 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23964 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23965done
23966LIBOBJS=$ac_libobjs
23967
23968LTLIBOBJS=$ac_ltlibobjs
23969
23970
23971if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
23972 { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
23973Usually this means the macro was only invoked conditionally." >&5
23974echo "$as_me: error: conditional \"FSECT5\" was never defined.
23975Usually this means the macro was only invoked conditionally." >&2;}
23976 { (exit 1); exit 1; }; }
23977fi
23978if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23979 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23980Usually this means the macro was only invoked conditionally." >&5
23981echo "$as_me: error: conditional \"AMDEP\" was never defined.
23982Usually this means the macro was only invoked conditionally." >&2;}
23983 { (exit 1); exit 1; }; }
23984fi
23985if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23986 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23987Usually this means the macro was only invoked conditionally." >&5
23988echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23989Usually this means the macro was only invoked conditionally." >&2;}
23990 { (exit 1); exit 1; }; }
23991fi
23992if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23993 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23994Usually this means the macro was only invoked conditionally." >&5
23995echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23996Usually this means the macro was only invoked conditionally." >&2;}
23997 { (exit 1); exit 1; }; }
23998fi
23999if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
24000 { { echo "$as_me:$LINENO: error: conditional \"IS_CROSS_COMPILE\" was never defined.
24001Usually this means the macro was only invoked conditionally." >&5
24002echo "$as_me: error: conditional \"IS_CROSS_COMPILE\" was never defined.
24003Usually this means the macro was only invoked conditionally." >&2;}
24004 { (exit 1); exit 1; }; }
24005fi
24006
24007: ${CONFIG_STATUS=./config.status}
24008ac_clean_files_save=$ac_clean_files
24009ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24010{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24011echo "$as_me: creating $CONFIG_STATUS" >&6;}
24012cat >$CONFIG_STATUS <<_ACEOF
24013#! $SHELL
24014# Generated by $as_me.
24015# Run this file to recreate the current configuration.
24016# Compiler output produced by configure, useful for debugging
24017# configure, is in config.log if it exists.
24018
24019debug=false
24020ac_cs_recheck=false
24021ac_cs_silent=false
24022SHELL=\${CONFIG_SHELL-$SHELL}
24023_ACEOF
24024
24025cat >>$CONFIG_STATUS <<\_ACEOF
24026## --------------------- ##
24027## M4sh Initialization. ##
24028## --------------------- ##
24029
24030# Be more Bourne compatible
24031DUALCASE=1; export DUALCASE # for MKS sh
24032if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24033 emulate sh
24034 NULLCMD=:
24035 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24036 # is contrary to our usage. Disable this feature.
24037 alias -g '${1+"$@"}'='"$@"'
24038 setopt NO_GLOB_SUBST
24039else
24040 case `(set -o) 2>/dev/null` in
24041 *posix*) set -o posix ;;
24042esac
24043
24044fi
24045
24046
24047
24048
24049# PATH needs CR
24050# Avoid depending upon Character Ranges.
24051as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24052as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24053as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24054as_cr_digits='0123456789'
24055as_cr_alnum=$as_cr_Letters$as_cr_digits
24056
24057# The user is always right.
24058if test "${PATH_SEPARATOR+set}" != set; then
24059 echo "#! /bin/sh" >conf$$.sh
24060 echo "exit 0" >>conf$$.sh
24061 chmod +x conf$$.sh
24062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24063 PATH_SEPARATOR=';'
24064 else
24065 PATH_SEPARATOR=:
24066 fi
24067 rm -f conf$$.sh
24068fi
24069
24070# Support unset when possible.
24071if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24072 as_unset=unset
24073else
24074 as_unset=false
24075fi
24076
24077
24078# IFS
24079# We need space, tab and new line, in precisely that order. Quoting is
24080# there to prevent editors from complaining about space-tab.
24081# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24082# splitting by setting IFS to empty value.)
24083as_nl='
24084'
24085IFS=" "" $as_nl"
24086
24087# Find who we are. Look in the path if we contain no directory separator.
24088case $0 in
24089 *[\\/]* ) as_myself=$0 ;;
24090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24091for as_dir in $PATH
24092do
24093 IFS=$as_save_IFS
24094 test -z "$as_dir" && as_dir=.
24095 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24096done
24097IFS=$as_save_IFS
24098
24099 ;;
24100esac
24101# We did not find ourselves, most probably we were run as `sh COMMAND'
24102# in which case we are not to be found in the path.
24103if test "x$as_myself" = x; then
24104 as_myself=$0
24105fi
24106if test ! -f "$as_myself"; then
24107 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24108 { (exit 1); exit 1; }
24109fi
24110
24111# Work around bugs in pre-3.0 UWIN ksh.
24112for as_var in ENV MAIL MAILPATH
24113do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24114done
24115PS1='$ '
24116PS2='> '
24117PS4='+ '
24118
24119# NLS nuisances.
24120for as_var in \
24121 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24122 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24123 LC_TELEPHONE LC_TIME
24124do
24125 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24126 eval $as_var=C; export $as_var
24127 else
24128 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24129 fi
24130done
24131
24132# Required to use basename.
24133if expr a : '\(a\)' >/dev/null 2>&1 &&
24134 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24135 as_expr=expr
24136else
24137 as_expr=false
24138fi
24139
24140if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24141 as_basename=basename
24142else
24143 as_basename=false
24144fi
24145
24146
24147# Name of the executable.
24148as_me=`$as_basename -- "$0" ||
24149$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24150 X"$0" : 'X\(//\)$' \| \
24151 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24152echo X/"$0" |
24153 sed '/^.*\/\([^/][^/]*\)\/*$/{
24154 s//\1/
24155 q
24156 }
24157 /^X\/\(\/\/\)$/{
24158 s//\1/
24159 q
24160 }
24161 /^X\/\(\/\).*/{
24162 s//\1/
24163 q
24164 }
24165 s/.*/./; q'`
24166
24167# CDPATH.
24168$as_unset CDPATH
24169
24170
24171
24172 as_lineno_1=$LINENO
24173 as_lineno_2=$LINENO
24174 test "x$as_lineno_1" != "x$as_lineno_2" &&
24175 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24176
24177 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24178 # uniformly replaced by the line number. The first 'sed' inserts a
24179 # line-number line after each line using $LINENO; the second 'sed'
24180 # does the real work. The second script uses 'N' to pair each
24181 # line-number line with the line containing $LINENO, and appends
24182 # trailing '-' during substitution so that $LINENO is not a special
24183 # case at line end.
24184 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24185 # scripts with optimization help from Paolo Bonzini. Blame Lee
24186 # E. McMahon (1931-1989) for sed's syntax. :-)
24187 sed -n '
24188 p
24189 /[$]LINENO/=
24190 ' <$as_myself |
24191 sed '
24192 s/[$]LINENO.*/&-/
24193 t lineno
24194 b
24195 :lineno
24196 N
24197 :loop
24198 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24199 t loop
24200 s/-\n.*//
24201 ' >$as_me.lineno &&
24202 chmod +x "$as_me.lineno" ||
24203 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24204 { (exit 1); exit 1; }; }
24205
24206 # Don't try to exec as it changes $[0], causing all sort of problems
24207 # (the dirname of $[0] is not the place where we might find the
24208 # original and so on. Autoconf is especially sensitive to this).
24209 . "./$as_me.lineno"
24210 # Exit status is that of the last command.
24211 exit
24212}
24213
24214
24215if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24216 as_dirname=dirname
24217else
24218 as_dirname=false
24219fi
24220
24221ECHO_C= ECHO_N= ECHO_T=
24222case `echo -n x` in
24223-n*)
24224 case `echo 'x\c'` in
24225 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24226 *) ECHO_C='\c';;
24227 esac;;
24228*)
24229 ECHO_N='-n';;
24230esac
24231
24232if expr a : '\(a\)' >/dev/null 2>&1 &&
24233 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24234 as_expr=expr
24235else
24236 as_expr=false
24237fi
24238
24239rm -f conf$$ conf$$.exe conf$$.file
24240if test -d conf$$.dir; then
24241 rm -f conf$$.dir/conf$$.file
24242else
24243 rm -f conf$$.dir
24244 mkdir conf$$.dir
24245fi
24246echo >conf$$.file
24247if ln -s conf$$.file conf$$ 2>/dev/null; then
24248 as_ln_s='ln -s'
24249 # ... but there are two gotchas:
24250 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24251 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24252 # In both cases, we have to default to `cp -p'.
24253 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24254 as_ln_s='cp -p'
24255elif ln conf$$.file conf$$ 2>/dev/null; then
24256 as_ln_s=ln
24257else
24258 as_ln_s='cp -p'
24259fi
24260rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24261rmdir conf$$.dir 2>/dev/null
24262
24263if mkdir -p . 2>/dev/null; then
24264 as_mkdir_p=:
24265else
24266 test -d ./-p && rmdir ./-p
24267 as_mkdir_p=false
24268fi
24269
24270if test -x / >/dev/null 2>&1; then
24271 as_test_x='test -x'
24272else
24273 if ls -dL / >/dev/null 2>&1; then
24274 as_ls_L_option=L
24275 else
24276 as_ls_L_option=
24277 fi
24278 as_test_x='
24279 eval sh -c '\''
24280 if test -d "$1"; then
24281 test -d "$1/.";
24282 else
24283 case $1 in
24284 -*)set "./$1";;
24285 esac;
24286 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24287 ???[sx]*):;;*)false;;esac;fi
24288 '\'' sh
24289 '
24290fi
24291as_executable_p=$as_test_x
24292
24293# Sed expression to map a string onto a valid CPP name.
24294as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24295
24296# Sed expression to map a string onto a valid variable name.
24297as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24298
24299
24300exec 6>&1
24301
24302# Save the log message, to keep $[0] and so on meaningful, and to
24303# report actual input values of CONFIG_FILES etc. instead of their
24304# values after options handling.
24305ac_log="
24677This file was extended by file $as_me 5.00, which was
24306This file was extended by file $as_me 5.03, which was
24678generated by GNU Autoconf 2.61. Invocation command line was
24679
24680 CONFIG_FILES = $CONFIG_FILES
24681 CONFIG_HEADERS = $CONFIG_HEADERS
24682 CONFIG_LINKS = $CONFIG_LINKS
24683 CONFIG_COMMANDS = $CONFIG_COMMANDS
24684 $ $0 $@
24685
24686on `(hostname || uname -n) 2>/dev/null | sed 1q`
24687"
24688
24689_ACEOF
24690
24691cat >>$CONFIG_STATUS <<_ACEOF
24692# Files that config.status was made for.
24693config_files="$ac_config_files"
24694config_headers="$ac_config_headers"
24695config_commands="$ac_config_commands"
24696
24697_ACEOF
24698
24699cat >>$CONFIG_STATUS <<\_ACEOF
24700ac_cs_usage="\
24701\`$as_me' instantiates files from templates according to the
24702current configuration.
24703
24704Usage: $0 [OPTIONS] [FILE]...
24705
24706 -h, --help print this help, then exit
24707 -V, --version print version number and configuration settings, then exit
24708 -q, --quiet do not print progress messages
24709 -d, --debug don't remove temporary files
24710 --recheck update $as_me by reconfiguring in the same conditions
24711 --file=FILE[:TEMPLATE]
24712 instantiate the configuration file FILE
24713 --header=FILE[:TEMPLATE]
24714 instantiate the configuration header FILE
24715
24716Configuration files:
24717$config_files
24718
24719Configuration headers:
24720$config_headers
24721
24722Configuration commands:
24723$config_commands
24724
24725Report bugs to <bug-autoconf@gnu.org>."
24726
24727_ACEOF
24728cat >>$CONFIG_STATUS <<_ACEOF
24729ac_cs_version="\\
24307generated by GNU Autoconf 2.61. Invocation command line was
24308
24309 CONFIG_FILES = $CONFIG_FILES
24310 CONFIG_HEADERS = $CONFIG_HEADERS
24311 CONFIG_LINKS = $CONFIG_LINKS
24312 CONFIG_COMMANDS = $CONFIG_COMMANDS
24313 $ $0 $@
24314
24315on `(hostname || uname -n) 2>/dev/null | sed 1q`
24316"
24317
24318_ACEOF
24319
24320cat >>$CONFIG_STATUS <<_ACEOF
24321# Files that config.status was made for.
24322config_files="$ac_config_files"
24323config_headers="$ac_config_headers"
24324config_commands="$ac_config_commands"
24325
24326_ACEOF
24327
24328cat >>$CONFIG_STATUS <<\_ACEOF
24329ac_cs_usage="\
24330\`$as_me' instantiates files from templates according to the
24331current configuration.
24332
24333Usage: $0 [OPTIONS] [FILE]...
24334
24335 -h, --help print this help, then exit
24336 -V, --version print version number and configuration settings, then exit
24337 -q, --quiet do not print progress messages
24338 -d, --debug don't remove temporary files
24339 --recheck update $as_me by reconfiguring in the same conditions
24340 --file=FILE[:TEMPLATE]
24341 instantiate the configuration file FILE
24342 --header=FILE[:TEMPLATE]
24343 instantiate the configuration header FILE
24344
24345Configuration files:
24346$config_files
24347
24348Configuration headers:
24349$config_headers
24350
24351Configuration commands:
24352$config_commands
24353
24354Report bugs to <bug-autoconf@gnu.org>."
24355
24356_ACEOF
24357cat >>$CONFIG_STATUS <<_ACEOF
24358ac_cs_version="\\
24730file config.status 5.00
24359file config.status 5.03
24731configured by $0, generated by GNU Autoconf 2.61,
24732 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24733
24734Copyright (C) 2006 Free Software Foundation, Inc.
24735This config.status script is free software; the Free Software Foundation
24736gives unlimited permission to copy, distribute and modify it."
24737
24738ac_pwd='$ac_pwd'
24739srcdir='$srcdir'
24740INSTALL='$INSTALL'
24741MKDIR_P='$MKDIR_P'
24742_ACEOF
24743
24744cat >>$CONFIG_STATUS <<\_ACEOF
24745# If no file are specified by the user, then we need to provide default
24746# value. By we need to know if files were specified by the user.
24747ac_need_defaults=:
24748while test $# != 0
24749do
24750 case $1 in
24751 --*=*)
24752 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24753 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24754 ac_shift=:
24755 ;;
24756 *)
24757 ac_option=$1
24758 ac_optarg=$2
24759 ac_shift=shift
24760 ;;
24761 esac
24762
24763 case $ac_option in
24764 # Handling of the options.
24765 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24766 ac_cs_recheck=: ;;
24767 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24768 echo "$ac_cs_version"; exit ;;
24769 --debug | --debu | --deb | --de | --d | -d )
24770 debug=: ;;
24771 --file | --fil | --fi | --f )
24772 $ac_shift
24773 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24774 ac_need_defaults=false;;
24775 --header | --heade | --head | --hea )
24776 $ac_shift
24777 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24778 ac_need_defaults=false;;
24779 --he | --h)
24780 # Conflict between --help and --header
24781 { echo "$as_me: error: ambiguous option: $1
24782Try \`$0 --help' for more information." >&2
24783 { (exit 1); exit 1; }; };;
24784 --help | --hel | -h )
24785 echo "$ac_cs_usage"; exit ;;
24786 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24787 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24788 ac_cs_silent=: ;;
24789
24790 # This is an error.
24791 -*) { echo "$as_me: error: unrecognized option: $1
24792Try \`$0 --help' for more information." >&2
24793 { (exit 1); exit 1; }; } ;;
24794
24795 *) ac_config_targets="$ac_config_targets $1"
24796 ac_need_defaults=false ;;
24797
24798 esac
24799 shift
24800done
24801
24802ac_configure_extra_args=
24803
24804if $ac_cs_silent; then
24805 exec 6>/dev/null
24806 ac_configure_extra_args="$ac_configure_extra_args --silent"
24807fi
24808
24809_ACEOF
24810cat >>$CONFIG_STATUS <<_ACEOF
24811if \$ac_cs_recheck; then
24812 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24813 CONFIG_SHELL=$SHELL
24814 export CONFIG_SHELL
24815 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24816fi
24817
24818_ACEOF
24819cat >>$CONFIG_STATUS <<\_ACEOF
24820exec 5>>config.log
24821{
24822 echo
24823 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24824## Running $as_me. ##
24825_ASBOX
24826 echo "$ac_log"
24827} >&5
24828
24829_ACEOF
24830cat >>$CONFIG_STATUS <<_ACEOF
24831#
24832# INIT-COMMANDS
24833#
24834AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24835
24836_ACEOF
24837
24838cat >>$CONFIG_STATUS <<\_ACEOF
24839
24840# Handling of arguments.
24841for ac_config_target in $ac_config_targets
24842do
24843 case $ac_config_target in
24844 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24845 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24846 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24847 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24848 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
24849 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
24850 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24851 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
24852
24853 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24854echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24855 { (exit 1); exit 1; }; };;
24856 esac
24857done
24858
24859
24860# If the user did not use the arguments to specify the items to instantiate,
24861# then the envvar interface is used. Set only those that are not.
24862# We use the long form for the default assignment because of an extremely
24863# bizarre bug on SunOS 4.1.3.
24864if $ac_need_defaults; then
24865 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24866 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24867 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24868fi
24869
24870# Have a temporary directory for convenience. Make it in the build tree
24871# simply because there is no reason against having it here, and in addition,
24872# creating and moving files from /tmp can sometimes cause problems.
24873# Hook for its removal unless debugging.
24874# Note that there is a small window in which the directory will not be cleaned:
24875# after its creation but before its name has been assigned to `$tmp'.
24876$debug ||
24877{
24878 tmp=
24879 trap 'exit_status=$?
24880 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24881' 0
24882 trap '{ (exit 1); exit 1; }' 1 2 13 15
24883}
24884# Create a (secure) tmp directory for tmp files.
24885
24886{
24887 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24888 test -n "$tmp" && test -d "$tmp"
24889} ||
24890{
24891 tmp=./conf$$-$RANDOM
24892 (umask 077 && mkdir "$tmp")
24893} ||
24894{
24895 echo "$me: cannot create a temporary directory in ." >&2
24896 { (exit 1); exit 1; }
24897}
24898
24899#
24900# Set up the sed scripts for CONFIG_FILES section.
24901#
24902
24903# No need to generate the scripts if there are no CONFIG_FILES.
24904# This happens for instance when ./config.status config.h
24905if test -n "$CONFIG_FILES"; then
24906
24907_ACEOF
24908
24909
24910
24911ac_delim='%!_!# '
24912for ac_last_try in false false false false false :; do
24913 cat >conf$$subs.sed <<_ACEOF
24914SHELL!$SHELL$ac_delim
24915PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24916PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24917PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24918PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24919PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24920PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24921exec_prefix!$exec_prefix$ac_delim
24922prefix!$prefix$ac_delim
24923program_transform_name!$program_transform_name$ac_delim
24924bindir!$bindir$ac_delim
24925sbindir!$sbindir$ac_delim
24926libexecdir!$libexecdir$ac_delim
24927datarootdir!$datarootdir$ac_delim
24928datadir!$datadir$ac_delim
24929sysconfdir!$sysconfdir$ac_delim
24930sharedstatedir!$sharedstatedir$ac_delim
24931localstatedir!$localstatedir$ac_delim
24932includedir!$includedir$ac_delim
24933oldincludedir!$oldincludedir$ac_delim
24934docdir!$docdir$ac_delim
24935infodir!$infodir$ac_delim
24936htmldir!$htmldir$ac_delim
24937dvidir!$dvidir$ac_delim
24938pdfdir!$pdfdir$ac_delim
24939psdir!$psdir$ac_delim
24940libdir!$libdir$ac_delim
24941localedir!$localedir$ac_delim
24942mandir!$mandir$ac_delim
24943DEFS!$DEFS$ac_delim
24944ECHO_C!$ECHO_C$ac_delim
24945ECHO_N!$ECHO_N$ac_delim
24946ECHO_T!$ECHO_T$ac_delim
24947LIBS!$LIBS$ac_delim
24948build_alias!$build_alias$ac_delim
24949host_alias!$host_alias$ac_delim
24950target_alias!$target_alias$ac_delim
24951INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24952INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24953INSTALL_DATA!$INSTALL_DATA$ac_delim
24954am__isrc!$am__isrc$ac_delim
24955CYGPATH_W!$CYGPATH_W$ac_delim
24956PACKAGE!$PACKAGE$ac_delim
24957VERSION!$VERSION$ac_delim
24958ACLOCAL!$ACLOCAL$ac_delim
24959AUTOCONF!$AUTOCONF$ac_delim
24960AUTOMAKE!$AUTOMAKE$ac_delim
24961AUTOHEADER!$AUTOHEADER$ac_delim
24962MAKEINFO!$MAKEINFO$ac_delim
24963install_sh!$install_sh$ac_delim
24964STRIP!$STRIP$ac_delim
24965INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24966mkdir_p!$mkdir_p$ac_delim
24967AWK!$AWK$ac_delim
24968SET_MAKE!$SET_MAKE$ac_delim
24969am__leading_dot!$am__leading_dot$ac_delim
24970AMTAR!$AMTAR$ac_delim
24971am__tar!$am__tar$ac_delim
24972am__untar!$am__untar$ac_delim
24360configured by $0, generated by GNU Autoconf 2.61,
24361 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24362
24363Copyright (C) 2006 Free Software Foundation, Inc.
24364This config.status script is free software; the Free Software Foundation
24365gives unlimited permission to copy, distribute and modify it."
24366
24367ac_pwd='$ac_pwd'
24368srcdir='$srcdir'
24369INSTALL='$INSTALL'
24370MKDIR_P='$MKDIR_P'
24371_ACEOF
24372
24373cat >>$CONFIG_STATUS <<\_ACEOF
24374# If no file are specified by the user, then we need to provide default
24375# value. By we need to know if files were specified by the user.
24376ac_need_defaults=:
24377while test $# != 0
24378do
24379 case $1 in
24380 --*=*)
24381 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24382 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24383 ac_shift=:
24384 ;;
24385 *)
24386 ac_option=$1
24387 ac_optarg=$2
24388 ac_shift=shift
24389 ;;
24390 esac
24391
24392 case $ac_option in
24393 # Handling of the options.
24394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24395 ac_cs_recheck=: ;;
24396 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24397 echo "$ac_cs_version"; exit ;;
24398 --debug | --debu | --deb | --de | --d | -d )
24399 debug=: ;;
24400 --file | --fil | --fi | --f )
24401 $ac_shift
24402 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24403 ac_need_defaults=false;;
24404 --header | --heade | --head | --hea )
24405 $ac_shift
24406 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24407 ac_need_defaults=false;;
24408 --he | --h)
24409 # Conflict between --help and --header
24410 { echo "$as_me: error: ambiguous option: $1
24411Try \`$0 --help' for more information." >&2
24412 { (exit 1); exit 1; }; };;
24413 --help | --hel | -h )
24414 echo "$ac_cs_usage"; exit ;;
24415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24416 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24417 ac_cs_silent=: ;;
24418
24419 # This is an error.
24420 -*) { echo "$as_me: error: unrecognized option: $1
24421Try \`$0 --help' for more information." >&2
24422 { (exit 1); exit 1; }; } ;;
24423
24424 *) ac_config_targets="$ac_config_targets $1"
24425 ac_need_defaults=false ;;
24426
24427 esac
24428 shift
24429done
24430
24431ac_configure_extra_args=
24432
24433if $ac_cs_silent; then
24434 exec 6>/dev/null
24435 ac_configure_extra_args="$ac_configure_extra_args --silent"
24436fi
24437
24438_ACEOF
24439cat >>$CONFIG_STATUS <<_ACEOF
24440if \$ac_cs_recheck; then
24441 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24442 CONFIG_SHELL=$SHELL
24443 export CONFIG_SHELL
24444 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24445fi
24446
24447_ACEOF
24448cat >>$CONFIG_STATUS <<\_ACEOF
24449exec 5>>config.log
24450{
24451 echo
24452 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24453## Running $as_me. ##
24454_ASBOX
24455 echo "$ac_log"
24456} >&5
24457
24458_ACEOF
24459cat >>$CONFIG_STATUS <<_ACEOF
24460#
24461# INIT-COMMANDS
24462#
24463AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24464
24465_ACEOF
24466
24467cat >>$CONFIG_STATUS <<\_ACEOF
24468
24469# Handling of arguments.
24470for ac_config_target in $ac_config_targets
24471do
24472 case $ac_config_target in
24473 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24474 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24475 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24476 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24477 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
24478 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
24479 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24480 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
24481
24482 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24483echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24484 { (exit 1); exit 1; }; };;
24485 esac
24486done
24487
24488
24489# If the user did not use the arguments to specify the items to instantiate,
24490# then the envvar interface is used. Set only those that are not.
24491# We use the long form for the default assignment because of an extremely
24492# bizarre bug on SunOS 4.1.3.
24493if $ac_need_defaults; then
24494 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24495 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24496 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24497fi
24498
24499# Have a temporary directory for convenience. Make it in the build tree
24500# simply because there is no reason against having it here, and in addition,
24501# creating and moving files from /tmp can sometimes cause problems.
24502# Hook for its removal unless debugging.
24503# Note that there is a small window in which the directory will not be cleaned:
24504# after its creation but before its name has been assigned to `$tmp'.
24505$debug ||
24506{
24507 tmp=
24508 trap 'exit_status=$?
24509 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24510' 0
24511 trap '{ (exit 1); exit 1; }' 1 2 13 15
24512}
24513# Create a (secure) tmp directory for tmp files.
24514
24515{
24516 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24517 test -n "$tmp" && test -d "$tmp"
24518} ||
24519{
24520 tmp=./conf$$-$RANDOM
24521 (umask 077 && mkdir "$tmp")
24522} ||
24523{
24524 echo "$me: cannot create a temporary directory in ." >&2
24525 { (exit 1); exit 1; }
24526}
24527
24528#
24529# Set up the sed scripts for CONFIG_FILES section.
24530#
24531
24532# No need to generate the scripts if there are no CONFIG_FILES.
24533# This happens for instance when ./config.status config.h
24534if test -n "$CONFIG_FILES"; then
24535
24536_ACEOF
24537
24538
24539
24540ac_delim='%!_!# '
24541for ac_last_try in false false false false false :; do
24542 cat >conf$$subs.sed <<_ACEOF
24543SHELL!$SHELL$ac_delim
24544PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24545PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24546PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24547PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24548PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24549PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24550exec_prefix!$exec_prefix$ac_delim
24551prefix!$prefix$ac_delim
24552program_transform_name!$program_transform_name$ac_delim
24553bindir!$bindir$ac_delim
24554sbindir!$sbindir$ac_delim
24555libexecdir!$libexecdir$ac_delim
24556datarootdir!$datarootdir$ac_delim
24557datadir!$datadir$ac_delim
24558sysconfdir!$sysconfdir$ac_delim
24559sharedstatedir!$sharedstatedir$ac_delim
24560localstatedir!$localstatedir$ac_delim
24561includedir!$includedir$ac_delim
24562oldincludedir!$oldincludedir$ac_delim
24563docdir!$docdir$ac_delim
24564infodir!$infodir$ac_delim
24565htmldir!$htmldir$ac_delim
24566dvidir!$dvidir$ac_delim
24567pdfdir!$pdfdir$ac_delim
24568psdir!$psdir$ac_delim
24569libdir!$libdir$ac_delim
24570localedir!$localedir$ac_delim
24571mandir!$mandir$ac_delim
24572DEFS!$DEFS$ac_delim
24573ECHO_C!$ECHO_C$ac_delim
24574ECHO_N!$ECHO_N$ac_delim
24575ECHO_T!$ECHO_T$ac_delim
24576LIBS!$LIBS$ac_delim
24577build_alias!$build_alias$ac_delim
24578host_alias!$host_alias$ac_delim
24579target_alias!$target_alias$ac_delim
24580INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24581INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24582INSTALL_DATA!$INSTALL_DATA$ac_delim
24583am__isrc!$am__isrc$ac_delim
24584CYGPATH_W!$CYGPATH_W$ac_delim
24585PACKAGE!$PACKAGE$ac_delim
24586VERSION!$VERSION$ac_delim
24587ACLOCAL!$ACLOCAL$ac_delim
24588AUTOCONF!$AUTOCONF$ac_delim
24589AUTOMAKE!$AUTOMAKE$ac_delim
24590AUTOHEADER!$AUTOHEADER$ac_delim
24591MAKEINFO!$MAKEINFO$ac_delim
24592install_sh!$install_sh$ac_delim
24593STRIP!$STRIP$ac_delim
24594INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24595mkdir_p!$mkdir_p$ac_delim
24596AWK!$AWK$ac_delim
24597SET_MAKE!$SET_MAKE$ac_delim
24598am__leading_dot!$am__leading_dot$ac_delim
24599AMTAR!$AMTAR$ac_delim
24600am__tar!$am__tar$ac_delim
24601am__untar!$am__untar$ac_delim
24602pkgdatadir!$pkgdatadir$ac_delim
24973fsect!$fsect$ac_delim
24974FSECT5_TRUE!$FSECT5_TRUE$ac_delim
24975FSECT5_FALSE!$FSECT5_FALSE$ac_delim
24976WARNINGS!$WARNINGS$ac_delim
24977CC!$CC$ac_delim
24978CFLAGS!$CFLAGS$ac_delim
24979LDFLAGS!$LDFLAGS$ac_delim
24980CPPFLAGS!$CPPFLAGS$ac_delim
24981ac_ct_CC!$ac_ct_CC$ac_delim
24982EXEEXT!$EXEEXT$ac_delim
24983OBJEXT!$OBJEXT$ac_delim
24984DEPDIR!$DEPDIR$ac_delim
24985am__include!$am__include$ac_delim
24986am__quote!$am__quote$ac_delim
24987AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24988AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24989AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24990CCDEPMODE!$CCDEPMODE$ac_delim
24991am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24992am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24993LN_S!$LN_S$ac_delim
24994build!$build$ac_delim
24995build_cpu!$build_cpu$ac_delim
24996build_vendor!$build_vendor$ac_delim
24997build_os!$build_os$ac_delim
24998host!$host$ac_delim
24999host_cpu!$host_cpu$ac_delim
25000host_vendor!$host_vendor$ac_delim
25001host_os!$host_os$ac_delim
24603fsect!$fsect$ac_delim
24604FSECT5_TRUE!$FSECT5_TRUE$ac_delim
24605FSECT5_FALSE!$FSECT5_FALSE$ac_delim
24606WARNINGS!$WARNINGS$ac_delim
24607CC!$CC$ac_delim
24608CFLAGS!$CFLAGS$ac_delim
24609LDFLAGS!$LDFLAGS$ac_delim
24610CPPFLAGS!$CPPFLAGS$ac_delim
24611ac_ct_CC!$ac_ct_CC$ac_delim
24612EXEEXT!$EXEEXT$ac_delim
24613OBJEXT!$OBJEXT$ac_delim
24614DEPDIR!$DEPDIR$ac_delim
24615am__include!$am__include$ac_delim
24616am__quote!$am__quote$ac_delim
24617AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24618AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24619AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24620CCDEPMODE!$CCDEPMODE$ac_delim
24621am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24622am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24623LN_S!$LN_S$ac_delim
24624build!$build$ac_delim
24625build_cpu!$build_cpu$ac_delim
24626build_vendor!$build_vendor$ac_delim
24627build_os!$build_os$ac_delim
24628host!$host$ac_delim
24629host_cpu!$host_cpu$ac_delim
24630host_vendor!$host_vendor$ac_delim
24631host_os!$host_os$ac_delim
24632SED!$SED$ac_delim
25002GREP!$GREP$ac_delim
25003EGREP!$EGREP$ac_delim
25004ECHO!$ECHO$ac_delim
25005AR!$AR$ac_delim
25006RANLIB!$RANLIB$ac_delim
24633GREP!$GREP$ac_delim
24634EGREP!$EGREP$ac_delim
24635ECHO!$ECHO$ac_delim
24636AR!$AR$ac_delim
24637RANLIB!$RANLIB$ac_delim
25007CPP!$CPP$ac_delim
25008CXX!$CXX$ac_delim
25009CXXFLAGS!$CXXFLAGS$ac_delim
25010ac_ct_CXX!$ac_ct_CXX$ac_delim
24638DSYMUTIL!$DSYMUTIL$ac_delim
24639NMEDIT!$NMEDIT$ac_delim
25011_ACEOF
25012
25013 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25014 break
25015 elif $ac_last_try; then
25016 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25017echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25018 { (exit 1); exit 1; }; }
25019 else
25020 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25021 fi
25022done
25023
25024ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25025if test -n "$ac_eof"; then
25026 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25027 ac_eof=`expr $ac_eof + 1`
25028fi
25029
25030cat >>$CONFIG_STATUS <<_ACEOF
25031cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25032/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25033_ACEOF
25034sed '
25035s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25036s/^/s,@/; s/!/@,|#_!!_#|/
25037:n
25038t n
25039s/'"$ac_delim"'$/,g/; t
25040s/$/\\/; p
25041N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25042' >>$CONFIG_STATUS <conf$$subs.sed
25043rm -f conf$$subs.sed
25044cat >>$CONFIG_STATUS <<_ACEOF
25045CEOF$ac_eof
25046_ACEOF
25047
25048
25049ac_delim='%!_!# '
25050for ac_last_try in false false false false false :; do
25051 cat >conf$$subs.sed <<_ACEOF
24640_ACEOF
24641
24642 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24643 break
24644 elif $ac_last_try; then
24645 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24646echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24647 { (exit 1); exit 1; }; }
24648 else
24649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24650 fi
24651done
24652
24653ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24654if test -n "$ac_eof"; then
24655 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24656 ac_eof=`expr $ac_eof + 1`
24657fi
24658
24659cat >>$CONFIG_STATUS <<_ACEOF
24660cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24661/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24662_ACEOF
24663sed '
24664s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24665s/^/s,@/; s/!/@,|#_!!_#|/
24666:n
24667t n
24668s/'"$ac_delim"'$/,g/; t
24669s/$/\\/; p
24670N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24671' >>$CONFIG_STATUS <conf$$subs.sed
24672rm -f conf$$subs.sed
24673cat >>$CONFIG_STATUS <<_ACEOF
24674CEOF$ac_eof
24675_ACEOF
24676
24677
24678ac_delim='%!_!# '
24679for ac_last_try in false false false false false :; do
24680 cat >conf$$subs.sed <<_ACEOF
24681CPP!$CPP$ac_delim
24682CXX!$CXX$ac_delim
24683CXXFLAGS!$CXXFLAGS$ac_delim
24684ac_ct_CXX!$ac_ct_CXX$ac_delim
25052CXXDEPMODE!$CXXDEPMODE$ac_delim
25053am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25054am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25055CXXCPP!$CXXCPP$ac_delim
25056F77!$F77$ac_delim
25057FFLAGS!$FFLAGS$ac_delim
25058ac_ct_F77!$ac_ct_F77$ac_delim
25059LIBTOOL!$LIBTOOL$ac_delim
25060LIBOBJS!$LIBOBJS$ac_delim
25061IS_CROSS_COMPILE_TRUE!$IS_CROSS_COMPILE_TRUE$ac_delim
25062IS_CROSS_COMPILE_FALSE!$IS_CROSS_COMPILE_FALSE$ac_delim
25063LTLIBOBJS!$LTLIBOBJS$ac_delim
25064_ACEOF
25065
24685CXXDEPMODE!$CXXDEPMODE$ac_delim
24686am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24687am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24688CXXCPP!$CXXCPP$ac_delim
24689F77!$F77$ac_delim
24690FFLAGS!$FFLAGS$ac_delim
24691ac_ct_F77!$ac_ct_F77$ac_delim
24692LIBTOOL!$LIBTOOL$ac_delim
24693LIBOBJS!$LIBOBJS$ac_delim
24694IS_CROSS_COMPILE_TRUE!$IS_CROSS_COMPILE_TRUE$ac_delim
24695IS_CROSS_COMPILE_FALSE!$IS_CROSS_COMPILE_FALSE$ac_delim
24696LTLIBOBJS!$LTLIBOBJS$ac_delim
24697_ACEOF
24698
25066 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
24699 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
25067 break
25068 elif $ac_last_try; then
25069 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25070echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25071 { (exit 1); exit 1; }; }
25072 else
25073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25074 fi
25075done
25076
25077ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25078if test -n "$ac_eof"; then
25079 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25080 ac_eof=`expr $ac_eof + 1`
25081fi
25082
25083cat >>$CONFIG_STATUS <<_ACEOF
25084cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25085/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25086_ACEOF
25087sed '
25088s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25089s/^/s,@/; s/!/@,|#_!!_#|/
25090:n
25091t n
25092s/'"$ac_delim"'$/,g/; t
25093s/$/\\/; p
25094N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25095' >>$CONFIG_STATUS <conf$$subs.sed
25096rm -f conf$$subs.sed
25097cat >>$CONFIG_STATUS <<_ACEOF
25098:end
25099s/|#_!!_#|//g
25100CEOF$ac_eof
25101_ACEOF
25102
25103
25104# VPATH may cause trouble with some makes, so we remove $(srcdir),
25105# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25106# trailing colons and then remove the whole line if VPATH becomes empty
25107# (actually we leave an empty line to preserve line numbers).
25108if test "x$srcdir" = x.; then
25109 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25110s/:*\$(srcdir):*/:/
25111s/:*\${srcdir}:*/:/
25112s/:*@srcdir@:*/:/
25113s/^\([^=]*=[ ]*\):*/\1/
25114s/:*$//
25115s/^[^=]*=[ ]*$//
25116}'
25117fi
25118
25119cat >>$CONFIG_STATUS <<\_ACEOF
25120fi # test -n "$CONFIG_FILES"
25121
25122
25123for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25124do
25125 case $ac_tag in
25126 :[FHLC]) ac_mode=$ac_tag; continue;;
25127 esac
25128 case $ac_mode$ac_tag in
25129 :[FHL]*:*);;
25130 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25131echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25132 { (exit 1); exit 1; }; };;
25133 :[FH]-) ac_tag=-:-;;
25134 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25135 esac
25136 ac_save_IFS=$IFS
25137 IFS=:
25138 set x $ac_tag
25139 IFS=$ac_save_IFS
25140 shift
25141 ac_file=$1
25142 shift
25143
25144 case $ac_mode in
25145 :L) ac_source=$1;;
25146 :[FH])
25147 ac_file_inputs=
25148 for ac_f
25149 do
25150 case $ac_f in
25151 -) ac_f="$tmp/stdin";;
25152 *) # Look for the file first in the build tree, then in the source tree
25153 # (if the path is not absolute). The absolute path cannot be DOS-style,
25154 # because $ac_f cannot contain `:'.
25155 test -f "$ac_f" ||
25156 case $ac_f in
25157 [\\/$]*) false;;
25158 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25159 esac ||
25160 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25161echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25162 { (exit 1); exit 1; }; };;
25163 esac
25164 ac_file_inputs="$ac_file_inputs $ac_f"
25165 done
25166
25167 # Let's still pretend it is `configure' which instantiates (i.e., don't
25168 # use $as_me), people would be surprised to read:
25169 # /* config.h. Generated by config.status. */
25170 configure_input="Generated from "`IFS=:
25171 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25172 if test x"$ac_file" != x-; then
25173 configure_input="$ac_file. $configure_input"
25174 { echo "$as_me:$LINENO: creating $ac_file" >&5
25175echo "$as_me: creating $ac_file" >&6;}
25176 fi
25177
25178 case $ac_tag in
25179 *:-:* | *:-) cat >"$tmp/stdin";;
25180 esac
25181 ;;
25182 esac
25183
25184 ac_dir=`$as_dirname -- "$ac_file" ||
25185$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25186 X"$ac_file" : 'X\(//\)[^/]' \| \
25187 X"$ac_file" : 'X\(//\)$' \| \
25188 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25189echo X"$ac_file" |
25190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25191 s//\1/
25192 q
25193 }
25194 /^X\(\/\/\)[^/].*/{
25195 s//\1/
25196 q
25197 }
25198 /^X\(\/\/\)$/{
25199 s//\1/
25200 q
25201 }
25202 /^X\(\/\).*/{
25203 s//\1/
25204 q
25205 }
25206 s/.*/./; q'`
25207 { as_dir="$ac_dir"
25208 case $as_dir in #(
25209 -*) as_dir=./$as_dir;;
25210 esac
25211 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25212 as_dirs=
25213 while :; do
25214 case $as_dir in #(
25215 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25216 *) as_qdir=$as_dir;;
25217 esac
25218 as_dirs="'$as_qdir' $as_dirs"
25219 as_dir=`$as_dirname -- "$as_dir" ||
25220$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25221 X"$as_dir" : 'X\(//\)[^/]' \| \
25222 X"$as_dir" : 'X\(//\)$' \| \
25223 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25224echo X"$as_dir" |
25225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25226 s//\1/
25227 q
25228 }
25229 /^X\(\/\/\)[^/].*/{
25230 s//\1/
25231 q
25232 }
25233 /^X\(\/\/\)$/{
25234 s//\1/
25235 q
25236 }
25237 /^X\(\/\).*/{
25238 s//\1/
25239 q
25240 }
25241 s/.*/./; q'`
25242 test -d "$as_dir" && break
25243 done
25244 test -z "$as_dirs" || eval "mkdir $as_dirs"
25245 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25246echo "$as_me: error: cannot create directory $as_dir" >&2;}
25247 { (exit 1); exit 1; }; }; }
25248 ac_builddir=.
25249
25250case "$ac_dir" in
25251.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25252*)
25253 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25254 # A ".." for each directory in $ac_dir_suffix.
25255 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25256 case $ac_top_builddir_sub in
25257 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25258 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25259 esac ;;
25260esac
25261ac_abs_top_builddir=$ac_pwd
25262ac_abs_builddir=$ac_pwd$ac_dir_suffix
25263# for backward compatibility:
25264ac_top_builddir=$ac_top_build_prefix
25265
25266case $srcdir in
25267 .) # We are building in place.
25268 ac_srcdir=.
25269 ac_top_srcdir=$ac_top_builddir_sub
25270 ac_abs_top_srcdir=$ac_pwd ;;
25271 [\\/]* | ?:[\\/]* ) # Absolute name.
25272 ac_srcdir=$srcdir$ac_dir_suffix;
25273 ac_top_srcdir=$srcdir
25274 ac_abs_top_srcdir=$srcdir ;;
25275 *) # Relative name.
25276 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25277 ac_top_srcdir=$ac_top_build_prefix$srcdir
25278 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25279esac
25280ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25281
25282
25283 case $ac_mode in
25284 :F)
25285 #
25286 # CONFIG_FILE
25287 #
25288
25289 case $INSTALL in
25290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25291 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25292 esac
25293 ac_MKDIR_P=$MKDIR_P
25294 case $MKDIR_P in
25295 [\\/$]* | ?:[\\/]* ) ;;
25296 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25297 esac
25298_ACEOF
25299
25300cat >>$CONFIG_STATUS <<\_ACEOF
25301# If the template does not know about datarootdir, expand it.
25302# FIXME: This hack should be removed a few years after 2.60.
25303ac_datarootdir_hack=; ac_datarootdir_seen=
25304
25305case `sed -n '/datarootdir/ {
25306 p
25307 q
25308}
25309/@datadir@/p
25310/@docdir@/p
25311/@infodir@/p
25312/@localedir@/p
25313/@mandir@/p
25314' $ac_file_inputs` in
25315*datarootdir*) ac_datarootdir_seen=yes;;
25316*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25317 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25318echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25319_ACEOF
25320cat >>$CONFIG_STATUS <<_ACEOF
25321 ac_datarootdir_hack='
25322 s&@datadir@&$datadir&g
25323 s&@docdir@&$docdir&g
25324 s&@infodir@&$infodir&g
25325 s&@localedir@&$localedir&g
25326 s&@mandir@&$mandir&g
25327 s&\\\${datarootdir}&$datarootdir&g' ;;
25328esac
25329_ACEOF
25330
25331# Neutralize VPATH when `$srcdir' = `.'.
25332# Shell code in configure.ac might set extrasub.
25333# FIXME: do we really want to maintain this feature?
25334cat >>$CONFIG_STATUS <<_ACEOF
25335 sed "$ac_vpsub
25336$extrasub
25337_ACEOF
25338cat >>$CONFIG_STATUS <<\_ACEOF
25339:t
25340/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25341s&@configure_input@&$configure_input&;t t
25342s&@top_builddir@&$ac_top_builddir_sub&;t t
25343s&@srcdir@&$ac_srcdir&;t t
25344s&@abs_srcdir@&$ac_abs_srcdir&;t t
25345s&@top_srcdir@&$ac_top_srcdir&;t t
25346s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25347s&@builddir@&$ac_builddir&;t t
25348s&@abs_builddir@&$ac_abs_builddir&;t t
25349s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25350s&@INSTALL@&$ac_INSTALL&;t t
25351s&@MKDIR_P@&$ac_MKDIR_P&;t t
25352$ac_datarootdir_hack
25353" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25354
25355test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25356 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25357 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25358 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25359which seems to be undefined. Please make sure it is defined." >&5
25360echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25361which seems to be undefined. Please make sure it is defined." >&2;}
25362
25363 rm -f "$tmp/stdin"
25364 case $ac_file in
25365 -) cat "$tmp/out"; rm -f "$tmp/out";;
25366 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25367 esac
25368 ;;
25369 :H)
25370 #
25371 # CONFIG_HEADER
25372 #
25373_ACEOF
25374
25375# Transform confdefs.h into a sed script `conftest.defines', that
25376# substitutes the proper values into config.h.in to produce config.h.
25377rm -f conftest.defines conftest.tail
25378# First, append a space to every undef/define line, to ease matching.
25379echo 's/$/ /' >conftest.defines
25380# Then, protect against being on the right side of a sed subst, or in
25381# an unquoted here document, in config.status. If some macros were
25382# called several times there might be several #defines for the same
25383# symbol, which is useless. But do not sort them, since the last
25384# AC_DEFINE must be honored.
25385ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25386# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25387# NAME is the cpp macro being defined, VALUE is the value it is being given.
25388# PARAMS is the parameter list in the macro definition--in most cases, it's
25389# just an empty string.
25390ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25391ac_dB='\\)[ (].*,\\1define\\2'
25392ac_dC=' '
25393ac_dD=' ,'
25394
25395uniq confdefs.h |
25396 sed -n '
25397 t rset
25398 :rset
25399 s/^[ ]*#[ ]*define[ ][ ]*//
25400 t ok
25401 d
25402 :ok
25403 s/[\\&,]/\\&/g
25404 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25405 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25406 ' >>conftest.defines
25407
25408# Remove the space that was appended to ease matching.
25409# Then replace #undef with comments. This is necessary, for
25410# example, in the case of _POSIX_SOURCE, which is predefined and required
25411# on some systems where configure will not decide to define it.
25412# (The regexp can be short, since the line contains either #define or #undef.)
25413echo 's/ $//
25414s,^[ #]*u.*,/* & */,' >>conftest.defines
25415
25416# Break up conftest.defines:
25417ac_max_sed_lines=50
25418
25419# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25420# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25421# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25422# et cetera.
25423ac_in='$ac_file_inputs'
25424ac_out='"$tmp/out1"'
25425ac_nxt='"$tmp/out2"'
25426
25427while :
25428do
25429 # Write a here document:
25430 cat >>$CONFIG_STATUS <<_ACEOF
25431 # First, check the format of the line:
25432 cat >"\$tmp/defines.sed" <<\\CEOF
25433/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25434/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25435b
25436:def
25437_ACEOF
25438 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25439 echo 'CEOF
25440 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25441 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25442 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25443 grep . conftest.tail >/dev/null || break
25444 rm -f conftest.defines
25445 mv conftest.tail conftest.defines
25446done
25447rm -f conftest.defines conftest.tail
25448
25449echo "ac_result=$ac_in" >>$CONFIG_STATUS
25450cat >>$CONFIG_STATUS <<\_ACEOF
25451 if test x"$ac_file" != x-; then
25452 echo "/* $configure_input */" >"$tmp/config.h"
25453 cat "$ac_result" >>"$tmp/config.h"
25454 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25455 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25456echo "$as_me: $ac_file is unchanged" >&6;}
25457 else
25458 rm -f $ac_file
25459 mv "$tmp/config.h" $ac_file
25460 fi
25461 else
25462 echo "/* $configure_input */"
25463 cat "$ac_result"
25464 fi
25465 rm -f "$tmp/out12"
25466# Compute $ac_file's index in $config_headers.
25467_am_stamp_count=1
25468for _am_header in $config_headers :; do
25469 case $_am_header in
25470 $ac_file | $ac_file:* )
25471 break ;;
25472 * )
25473 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25474 esac
25475done
25476echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25477$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25478 X$ac_file : 'X\(//\)[^/]' \| \
25479 X$ac_file : 'X\(//\)$' \| \
25480 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25481echo X$ac_file |
25482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25483 s//\1/
25484 q
25485 }
25486 /^X\(\/\/\)[^/].*/{
25487 s//\1/
25488 q
25489 }
25490 /^X\(\/\/\)$/{
25491 s//\1/
25492 q
25493 }
25494 /^X\(\/\).*/{
25495 s//\1/
25496 q
25497 }
25498 s/.*/./; q'`/stamp-h$_am_stamp_count
25499 ;;
25500
25501 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25502echo "$as_me: executing $ac_file commands" >&6;}
25503 ;;
25504 esac
25505
25506
25507 case $ac_file$ac_mode in
25508 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25509 # Strip MF so we end up with the name of the file.
25510 mf=`echo "$mf" | sed -e 's/:.*$//'`
25511 # Check whether this is an Automake generated Makefile or not.
25512 # We used to match only the files named `Makefile.in', but
25513 # some people rename them; so instead we look at the file content.
25514 # Grep'ing the first line is not enough: some people post-process
25515 # each Makefile.in and add a new line on top of each file to say so.
25516 # Grep'ing the whole file is not good either: AIX grep has a line
25517 # limit of 2048, but all sed's we know have understand at least 4000.
25518 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
25519 dirpart=`$as_dirname -- "$mf" ||
25520$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25521 X"$mf" : 'X\(//\)[^/]' \| \
25522 X"$mf" : 'X\(//\)$' \| \
25523 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25524echo X"$mf" |
25525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25526 s//\1/
25527 q
25528 }
25529 /^X\(\/\/\)[^/].*/{
25530 s//\1/
25531 q
25532 }
25533 /^X\(\/\/\)$/{
25534 s//\1/
25535 q
25536 }
25537 /^X\(\/\).*/{
25538 s//\1/
25539 q
25540 }
25541 s/.*/./; q'`
25542 else
25543 continue
25544 fi
25545 # Extract the definition of DEPDIR, am__include, and am__quote
25546 # from the Makefile without running `make'.
25547 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25548 test -z "$DEPDIR" && continue
25549 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25550 test -z "am__include" && continue
25551 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25552 # When using ansi2knr, U may be empty or an underscore; expand it
25553 U=`sed -n 's/^U = //p' < "$mf"`
25554 # Find all dependency output files, they are included files with
25555 # $(DEPDIR) in their names. We invoke sed twice because it is the
25556 # simplest approach to changing $(DEPDIR) to its actual value in the
25557 # expansion.
25558 for file in `sed -n "
25559 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25560 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25561 # Make sure the directory exists.
25562 test -f "$dirpart/$file" && continue
25563 fdir=`$as_dirname -- "$file" ||
25564$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25565 X"$file" : 'X\(//\)[^/]' \| \
25566 X"$file" : 'X\(//\)$' \| \
25567 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25568echo X"$file" |
25569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25570 s//\1/
25571 q
25572 }
25573 /^X\(\/\/\)[^/].*/{
25574 s//\1/
25575 q
25576 }
25577 /^X\(\/\/\)$/{
25578 s//\1/
25579 q
25580 }
25581 /^X\(\/\).*/{
25582 s//\1/
25583 q
25584 }
25585 s/.*/./; q'`
25586 { as_dir=$dirpart/$fdir
25587 case $as_dir in #(
25588 -*) as_dir=./$as_dir;;
25589 esac
25590 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25591 as_dirs=
25592 while :; do
25593 case $as_dir in #(
25594 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25595 *) as_qdir=$as_dir;;
25596 esac
25597 as_dirs="'$as_qdir' $as_dirs"
25598 as_dir=`$as_dirname -- "$as_dir" ||
25599$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25600 X"$as_dir" : 'X\(//\)[^/]' \| \
25601 X"$as_dir" : 'X\(//\)$' \| \
25602 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25603echo X"$as_dir" |
25604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25605 s//\1/
25606 q
25607 }
25608 /^X\(\/\/\)[^/].*/{
25609 s//\1/
25610 q
25611 }
25612 /^X\(\/\/\)$/{
25613 s//\1/
25614 q
25615 }
25616 /^X\(\/\).*/{
25617 s//\1/
25618 q
25619 }
25620 s/.*/./; q'`
25621 test -d "$as_dir" && break
25622 done
25623 test -z "$as_dirs" || eval "mkdir $as_dirs"
25624 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25625echo "$as_me: error: cannot create directory $as_dir" >&2;}
25626 { (exit 1); exit 1; }; }; }
25627 # echo "creating $dirpart/$file"
25628 echo '# dummy' > "$dirpart/$file"
25629 done
25630done
25631 ;;
25632
25633 esac
25634done # for ac_tag
25635
25636
25637{ (exit 0); exit 0; }
25638_ACEOF
25639chmod +x $CONFIG_STATUS
25640ac_clean_files=$ac_clean_files_save
25641
25642
25643# configure is writing to config.log, and then calls config.status.
25644# config.status does its own redirection, appending to config.log.
25645# Unfortunately, on DOS this fails, as config.log is still kept open
25646# by configure, so config.status won't be able to write to it; its
25647# output is simply discarded. So we exec the FD to /dev/null,
25648# effectively closing config.log, so it can be properly (re)opened and
25649# appended to by config.status. When coming back to configure, we
25650# need to make the FD available again.
25651if test "$no_create" != yes; then
25652 ac_cs_success=:
25653 ac_config_status_args=
25654 test "$silent" = yes &&
25655 ac_config_status_args="$ac_config_status_args --quiet"
25656 exec 5>/dev/null
25657 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25658 exec 5>>config.log
25659 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25660 # would make configure fail if this is the last instruction.
25661 $ac_cs_success || { (exit 1); exit 1; }
25662fi
25663
24700 break
24701 elif $ac_last_try; then
24702 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24703echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24704 { (exit 1); exit 1; }; }
24705 else
24706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24707 fi
24708done
24709
24710ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24711if test -n "$ac_eof"; then
24712 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24713 ac_eof=`expr $ac_eof + 1`
24714fi
24715
24716cat >>$CONFIG_STATUS <<_ACEOF
24717cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24718/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24719_ACEOF
24720sed '
24721s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24722s/^/s,@/; s/!/@,|#_!!_#|/
24723:n
24724t n
24725s/'"$ac_delim"'$/,g/; t
24726s/$/\\/; p
24727N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24728' >>$CONFIG_STATUS <conf$$subs.sed
24729rm -f conf$$subs.sed
24730cat >>$CONFIG_STATUS <<_ACEOF
24731:end
24732s/|#_!!_#|//g
24733CEOF$ac_eof
24734_ACEOF
24735
24736
24737# VPATH may cause trouble with some makes, so we remove $(srcdir),
24738# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24739# trailing colons and then remove the whole line if VPATH becomes empty
24740# (actually we leave an empty line to preserve line numbers).
24741if test "x$srcdir" = x.; then
24742 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24743s/:*\$(srcdir):*/:/
24744s/:*\${srcdir}:*/:/
24745s/:*@srcdir@:*/:/
24746s/^\([^=]*=[ ]*\):*/\1/
24747s/:*$//
24748s/^[^=]*=[ ]*$//
24749}'
24750fi
24751
24752cat >>$CONFIG_STATUS <<\_ACEOF
24753fi # test -n "$CONFIG_FILES"
24754
24755
24756for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24757do
24758 case $ac_tag in
24759 :[FHLC]) ac_mode=$ac_tag; continue;;
24760 esac
24761 case $ac_mode$ac_tag in
24762 :[FHL]*:*);;
24763 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24764echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24765 { (exit 1); exit 1; }; };;
24766 :[FH]-) ac_tag=-:-;;
24767 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24768 esac
24769 ac_save_IFS=$IFS
24770 IFS=:
24771 set x $ac_tag
24772 IFS=$ac_save_IFS
24773 shift
24774 ac_file=$1
24775 shift
24776
24777 case $ac_mode in
24778 :L) ac_source=$1;;
24779 :[FH])
24780 ac_file_inputs=
24781 for ac_f
24782 do
24783 case $ac_f in
24784 -) ac_f="$tmp/stdin";;
24785 *) # Look for the file first in the build tree, then in the source tree
24786 # (if the path is not absolute). The absolute path cannot be DOS-style,
24787 # because $ac_f cannot contain `:'.
24788 test -f "$ac_f" ||
24789 case $ac_f in
24790 [\\/$]*) false;;
24791 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24792 esac ||
24793 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24794echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24795 { (exit 1); exit 1; }; };;
24796 esac
24797 ac_file_inputs="$ac_file_inputs $ac_f"
24798 done
24799
24800 # Let's still pretend it is `configure' which instantiates (i.e., don't
24801 # use $as_me), people would be surprised to read:
24802 # /* config.h. Generated by config.status. */
24803 configure_input="Generated from "`IFS=:
24804 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24805 if test x"$ac_file" != x-; then
24806 configure_input="$ac_file. $configure_input"
24807 { echo "$as_me:$LINENO: creating $ac_file" >&5
24808echo "$as_me: creating $ac_file" >&6;}
24809 fi
24810
24811 case $ac_tag in
24812 *:-:* | *:-) cat >"$tmp/stdin";;
24813 esac
24814 ;;
24815 esac
24816
24817 ac_dir=`$as_dirname -- "$ac_file" ||
24818$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24819 X"$ac_file" : 'X\(//\)[^/]' \| \
24820 X"$ac_file" : 'X\(//\)$' \| \
24821 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24822echo X"$ac_file" |
24823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24824 s//\1/
24825 q
24826 }
24827 /^X\(\/\/\)[^/].*/{
24828 s//\1/
24829 q
24830 }
24831 /^X\(\/\/\)$/{
24832 s//\1/
24833 q
24834 }
24835 /^X\(\/\).*/{
24836 s//\1/
24837 q
24838 }
24839 s/.*/./; q'`
24840 { as_dir="$ac_dir"
24841 case $as_dir in #(
24842 -*) as_dir=./$as_dir;;
24843 esac
24844 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24845 as_dirs=
24846 while :; do
24847 case $as_dir in #(
24848 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24849 *) as_qdir=$as_dir;;
24850 esac
24851 as_dirs="'$as_qdir' $as_dirs"
24852 as_dir=`$as_dirname -- "$as_dir" ||
24853$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24854 X"$as_dir" : 'X\(//\)[^/]' \| \
24855 X"$as_dir" : 'X\(//\)$' \| \
24856 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24857echo X"$as_dir" |
24858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24859 s//\1/
24860 q
24861 }
24862 /^X\(\/\/\)[^/].*/{
24863 s//\1/
24864 q
24865 }
24866 /^X\(\/\/\)$/{
24867 s//\1/
24868 q
24869 }
24870 /^X\(\/\).*/{
24871 s//\1/
24872 q
24873 }
24874 s/.*/./; q'`
24875 test -d "$as_dir" && break
24876 done
24877 test -z "$as_dirs" || eval "mkdir $as_dirs"
24878 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24879echo "$as_me: error: cannot create directory $as_dir" >&2;}
24880 { (exit 1); exit 1; }; }; }
24881 ac_builddir=.
24882
24883case "$ac_dir" in
24884.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24885*)
24886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24887 # A ".." for each directory in $ac_dir_suffix.
24888 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24889 case $ac_top_builddir_sub in
24890 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24891 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24892 esac ;;
24893esac
24894ac_abs_top_builddir=$ac_pwd
24895ac_abs_builddir=$ac_pwd$ac_dir_suffix
24896# for backward compatibility:
24897ac_top_builddir=$ac_top_build_prefix
24898
24899case $srcdir in
24900 .) # We are building in place.
24901 ac_srcdir=.
24902 ac_top_srcdir=$ac_top_builddir_sub
24903 ac_abs_top_srcdir=$ac_pwd ;;
24904 [\\/]* | ?:[\\/]* ) # Absolute name.
24905 ac_srcdir=$srcdir$ac_dir_suffix;
24906 ac_top_srcdir=$srcdir
24907 ac_abs_top_srcdir=$srcdir ;;
24908 *) # Relative name.
24909 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24910 ac_top_srcdir=$ac_top_build_prefix$srcdir
24911 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24912esac
24913ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24914
24915
24916 case $ac_mode in
24917 :F)
24918 #
24919 # CONFIG_FILE
24920 #
24921
24922 case $INSTALL in
24923 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24924 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24925 esac
24926 ac_MKDIR_P=$MKDIR_P
24927 case $MKDIR_P in
24928 [\\/$]* | ?:[\\/]* ) ;;
24929 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24930 esac
24931_ACEOF
24932
24933cat >>$CONFIG_STATUS <<\_ACEOF
24934# If the template does not know about datarootdir, expand it.
24935# FIXME: This hack should be removed a few years after 2.60.
24936ac_datarootdir_hack=; ac_datarootdir_seen=
24937
24938case `sed -n '/datarootdir/ {
24939 p
24940 q
24941}
24942/@datadir@/p
24943/@docdir@/p
24944/@infodir@/p
24945/@localedir@/p
24946/@mandir@/p
24947' $ac_file_inputs` in
24948*datarootdir*) ac_datarootdir_seen=yes;;
24949*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24950 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24951echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24952_ACEOF
24953cat >>$CONFIG_STATUS <<_ACEOF
24954 ac_datarootdir_hack='
24955 s&@datadir@&$datadir&g
24956 s&@docdir@&$docdir&g
24957 s&@infodir@&$infodir&g
24958 s&@localedir@&$localedir&g
24959 s&@mandir@&$mandir&g
24960 s&\\\${datarootdir}&$datarootdir&g' ;;
24961esac
24962_ACEOF
24963
24964# Neutralize VPATH when `$srcdir' = `.'.
24965# Shell code in configure.ac might set extrasub.
24966# FIXME: do we really want to maintain this feature?
24967cat >>$CONFIG_STATUS <<_ACEOF
24968 sed "$ac_vpsub
24969$extrasub
24970_ACEOF
24971cat >>$CONFIG_STATUS <<\_ACEOF
24972:t
24973/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24974s&@configure_input@&$configure_input&;t t
24975s&@top_builddir@&$ac_top_builddir_sub&;t t
24976s&@srcdir@&$ac_srcdir&;t t
24977s&@abs_srcdir@&$ac_abs_srcdir&;t t
24978s&@top_srcdir@&$ac_top_srcdir&;t t
24979s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24980s&@builddir@&$ac_builddir&;t t
24981s&@abs_builddir@&$ac_abs_builddir&;t t
24982s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24983s&@INSTALL@&$ac_INSTALL&;t t
24984s&@MKDIR_P@&$ac_MKDIR_P&;t t
24985$ac_datarootdir_hack
24986" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24987
24988test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24989 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24990 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24991 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24992which seems to be undefined. Please make sure it is defined." >&5
24993echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24994which seems to be undefined. Please make sure it is defined." >&2;}
24995
24996 rm -f "$tmp/stdin"
24997 case $ac_file in
24998 -) cat "$tmp/out"; rm -f "$tmp/out";;
24999 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25000 esac
25001 ;;
25002 :H)
25003 #
25004 # CONFIG_HEADER
25005 #
25006_ACEOF
25007
25008# Transform confdefs.h into a sed script `conftest.defines', that
25009# substitutes the proper values into config.h.in to produce config.h.
25010rm -f conftest.defines conftest.tail
25011# First, append a space to every undef/define line, to ease matching.
25012echo 's/$/ /' >conftest.defines
25013# Then, protect against being on the right side of a sed subst, or in
25014# an unquoted here document, in config.status. If some macros were
25015# called several times there might be several #defines for the same
25016# symbol, which is useless. But do not sort them, since the last
25017# AC_DEFINE must be honored.
25018ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25019# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25020# NAME is the cpp macro being defined, VALUE is the value it is being given.
25021# PARAMS is the parameter list in the macro definition--in most cases, it's
25022# just an empty string.
25023ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25024ac_dB='\\)[ (].*,\\1define\\2'
25025ac_dC=' '
25026ac_dD=' ,'
25027
25028uniq confdefs.h |
25029 sed -n '
25030 t rset
25031 :rset
25032 s/^[ ]*#[ ]*define[ ][ ]*//
25033 t ok
25034 d
25035 :ok
25036 s/[\\&,]/\\&/g
25037 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25038 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25039 ' >>conftest.defines
25040
25041# Remove the space that was appended to ease matching.
25042# Then replace #undef with comments. This is necessary, for
25043# example, in the case of _POSIX_SOURCE, which is predefined and required
25044# on some systems where configure will not decide to define it.
25045# (The regexp can be short, since the line contains either #define or #undef.)
25046echo 's/ $//
25047s,^[ #]*u.*,/* & */,' >>conftest.defines
25048
25049# Break up conftest.defines:
25050ac_max_sed_lines=50
25051
25052# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25053# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25054# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25055# et cetera.
25056ac_in='$ac_file_inputs'
25057ac_out='"$tmp/out1"'
25058ac_nxt='"$tmp/out2"'
25059
25060while :
25061do
25062 # Write a here document:
25063 cat >>$CONFIG_STATUS <<_ACEOF
25064 # First, check the format of the line:
25065 cat >"\$tmp/defines.sed" <<\\CEOF
25066/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25067/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25068b
25069:def
25070_ACEOF
25071 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25072 echo 'CEOF
25073 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25074 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25075 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25076 grep . conftest.tail >/dev/null || break
25077 rm -f conftest.defines
25078 mv conftest.tail conftest.defines
25079done
25080rm -f conftest.defines conftest.tail
25081
25082echo "ac_result=$ac_in" >>$CONFIG_STATUS
25083cat >>$CONFIG_STATUS <<\_ACEOF
25084 if test x"$ac_file" != x-; then
25085 echo "/* $configure_input */" >"$tmp/config.h"
25086 cat "$ac_result" >>"$tmp/config.h"
25087 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25088 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25089echo "$as_me: $ac_file is unchanged" >&6;}
25090 else
25091 rm -f $ac_file
25092 mv "$tmp/config.h" $ac_file
25093 fi
25094 else
25095 echo "/* $configure_input */"
25096 cat "$ac_result"
25097 fi
25098 rm -f "$tmp/out12"
25099# Compute $ac_file's index in $config_headers.
25100_am_stamp_count=1
25101for _am_header in $config_headers :; do
25102 case $_am_header in
25103 $ac_file | $ac_file:* )
25104 break ;;
25105 * )
25106 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25107 esac
25108done
25109echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25110$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25111 X$ac_file : 'X\(//\)[^/]' \| \
25112 X$ac_file : 'X\(//\)$' \| \
25113 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25114echo X$ac_file |
25115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25116 s//\1/
25117 q
25118 }
25119 /^X\(\/\/\)[^/].*/{
25120 s//\1/
25121 q
25122 }
25123 /^X\(\/\/\)$/{
25124 s//\1/
25125 q
25126 }
25127 /^X\(\/\).*/{
25128 s//\1/
25129 q
25130 }
25131 s/.*/./; q'`/stamp-h$_am_stamp_count
25132 ;;
25133
25134 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25135echo "$as_me: executing $ac_file commands" >&6;}
25136 ;;
25137 esac
25138
25139
25140 case $ac_file$ac_mode in
25141 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25142 # Strip MF so we end up with the name of the file.
25143 mf=`echo "$mf" | sed -e 's/:.*$//'`
25144 # Check whether this is an Automake generated Makefile or not.
25145 # We used to match only the files named `Makefile.in', but
25146 # some people rename them; so instead we look at the file content.
25147 # Grep'ing the first line is not enough: some people post-process
25148 # each Makefile.in and add a new line on top of each file to say so.
25149 # Grep'ing the whole file is not good either: AIX grep has a line
25150 # limit of 2048, but all sed's we know have understand at least 4000.
25151 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
25152 dirpart=`$as_dirname -- "$mf" ||
25153$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25154 X"$mf" : 'X\(//\)[^/]' \| \
25155 X"$mf" : 'X\(//\)$' \| \
25156 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25157echo X"$mf" |
25158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25159 s//\1/
25160 q
25161 }
25162 /^X\(\/\/\)[^/].*/{
25163 s//\1/
25164 q
25165 }
25166 /^X\(\/\/\)$/{
25167 s//\1/
25168 q
25169 }
25170 /^X\(\/\).*/{
25171 s//\1/
25172 q
25173 }
25174 s/.*/./; q'`
25175 else
25176 continue
25177 fi
25178 # Extract the definition of DEPDIR, am__include, and am__quote
25179 # from the Makefile without running `make'.
25180 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25181 test -z "$DEPDIR" && continue
25182 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25183 test -z "am__include" && continue
25184 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25185 # When using ansi2knr, U may be empty or an underscore; expand it
25186 U=`sed -n 's/^U = //p' < "$mf"`
25187 # Find all dependency output files, they are included files with
25188 # $(DEPDIR) in their names. We invoke sed twice because it is the
25189 # simplest approach to changing $(DEPDIR) to its actual value in the
25190 # expansion.
25191 for file in `sed -n "
25192 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25193 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25194 # Make sure the directory exists.
25195 test -f "$dirpart/$file" && continue
25196 fdir=`$as_dirname -- "$file" ||
25197$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25198 X"$file" : 'X\(//\)[^/]' \| \
25199 X"$file" : 'X\(//\)$' \| \
25200 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25201echo X"$file" |
25202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25203 s//\1/
25204 q
25205 }
25206 /^X\(\/\/\)[^/].*/{
25207 s//\1/
25208 q
25209 }
25210 /^X\(\/\/\)$/{
25211 s//\1/
25212 q
25213 }
25214 /^X\(\/\).*/{
25215 s//\1/
25216 q
25217 }
25218 s/.*/./; q'`
25219 { as_dir=$dirpart/$fdir
25220 case $as_dir in #(
25221 -*) as_dir=./$as_dir;;
25222 esac
25223 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25224 as_dirs=
25225 while :; do
25226 case $as_dir in #(
25227 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25228 *) as_qdir=$as_dir;;
25229 esac
25230 as_dirs="'$as_qdir' $as_dirs"
25231 as_dir=`$as_dirname -- "$as_dir" ||
25232$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25233 X"$as_dir" : 'X\(//\)[^/]' \| \
25234 X"$as_dir" : 'X\(//\)$' \| \
25235 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25236echo X"$as_dir" |
25237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25238 s//\1/
25239 q
25240 }
25241 /^X\(\/\/\)[^/].*/{
25242 s//\1/
25243 q
25244 }
25245 /^X\(\/\/\)$/{
25246 s//\1/
25247 q
25248 }
25249 /^X\(\/\).*/{
25250 s//\1/
25251 q
25252 }
25253 s/.*/./; q'`
25254 test -d "$as_dir" && break
25255 done
25256 test -z "$as_dirs" || eval "mkdir $as_dirs"
25257 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25258echo "$as_me: error: cannot create directory $as_dir" >&2;}
25259 { (exit 1); exit 1; }; }; }
25260 # echo "creating $dirpart/$file"
25261 echo '# dummy' > "$dirpart/$file"
25262 done
25263done
25264 ;;
25265
25266 esac
25267done # for ac_tag
25268
25269
25270{ (exit 0); exit 0; }
25271_ACEOF
25272chmod +x $CONFIG_STATUS
25273ac_clean_files=$ac_clean_files_save
25274
25275
25276# configure is writing to config.log, and then calls config.status.
25277# config.status does its own redirection, appending to config.log.
25278# Unfortunately, on DOS this fails, as config.log is still kept open
25279# by configure, so config.status won't be able to write to it; its
25280# output is simply discarded. So we exec the FD to /dev/null,
25281# effectively closing config.log, so it can be properly (re)opened and
25282# appended to by config.status. When coming back to configure, we
25283# need to make the FD available again.
25284if test "$no_create" != yes; then
25285 ac_cs_success=:
25286 ac_config_status_args=
25287 test "$silent" = yes &&
25288 ac_config_status_args="$ac_config_status_args --quiet"
25289 exec 5>/dev/null
25290 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25291 exec 5>>config.log
25292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25293 # would make configure fail if this is the last instruction.
25294 $ac_cs_success || { (exit 1); exit 1; }
25295fi
25296