blob: b9860c863b0752983bcf3d351172bfdecf34608f [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.67 for library 1.0.
4@%:@
5@%:@ Report bugs to <support@itibia.com>.
6@%:@
7@%:@
8@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10@%:@ Foundation, Inc.
11@%:@
12@%:@
13@%:@ This configure script is free software; the Free Software Foundation
14@%:@ gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in @%:@(
30 *posix*) :
31 set -o posix ;; @%:@(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in @%:@(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
94case $0 in @%:@((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in @%:@(
148 *posix*) :
149 set -o posix ;; @%:@(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in @%:@(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and support@itibia.com
234$0: about your system, including any error possibly output
235$0: before this message. Then install a modern shell, or
236$0: manually run the script under such a shell if you do
237$0: have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252@%:@ as_fn_unset VAR
253@%:@ ---------------
254@%:@ Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261@%:@ as_fn_set_status STATUS
262@%:@ -----------------------
263@%:@ Set @S|@? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} @%:@ as_fn_set_status
268
269@%:@ as_fn_exit STATUS
270@%:@ -----------------
271@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} @%:@ as_fn_exit
278
279@%:@ as_fn_mkdir_p
280@%:@ -------------
281@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325} @%:@ as_fn_mkdir_p
326@%:@ as_fn_append VAR VALUE
327@%:@ ----------------------
328@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
329@%:@ advantage of any shell optimizations that allow amortized linear growth over
330@%:@ repeated appends, instead of the typical quadratic growth present in naive
331@%:@ implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344@%:@ as_fn_arith ARG...
345@%:@ ------------------
346@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
347@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
348@%:@ must be portable across @S|@(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
363@%:@ ----------------------------------------
364@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366@%:@ script with STATUS, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373 fi
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
376} @%:@ as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in @%:@(((((
457-n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
464*)
465 ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in @%:@(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543echo=${ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $echo works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<EOF
562$*
563EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$ECHO"; then
572if test "X${echo_test_string+set}" != Xset; then
573# find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
577 echo_test_string=`eval $cmd` &&
578 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
579 then
580 break
581 fi
582 done
583fi
584
585if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
586 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
587 test "X$echo_testing_string" = "X$echo_test_string"; then
588 :
589else
590 # The Solaris, AIX, and Digital Unix default echo programs unquote
591 # backslashes. This makes it impossible to quote backslashes using
592 # echo "$something" | sed 's/\\/\\\\/g'
593 #
594 # So, first we look for a working echo in the user's PATH.
595
596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597 for dir in $PATH /usr/ucb; do
598 IFS="$lt_save_ifs"
599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602 test "X$echo_testing_string" = "X$echo_test_string"; then
603 echo="$dir/echo"
604 break
605 fi
606 done
607 IFS="$lt_save_ifs"
608
609 if test "X$echo" = Xecho; then
610 # We didn't find a better echo, so look for alternatives.
611 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
612 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
613 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # This shell has a builtin print -r that does the trick.
615 echo='print -r'
616 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
617 test "X$CONFIG_SHELL" != X/bin/ksh; then
618 # If we have ksh, try running configure again with it.
619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620 export ORIGINAL_CONFIG_SHELL
621 CONFIG_SHELL=/bin/ksh
622 export CONFIG_SHELL
623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624 else
625 # Try using printf.
626 echo='printf %s\n'
627 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 # Cool, printf works
631 :
632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633 test "X$echo_testing_string" = 'X\t' &&
634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 export CONFIG_SHELL
638 SHELL="$CONFIG_SHELL"
639 export SHELL
640 echo="$CONFIG_SHELL $0 --fallback-echo"
641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 echo="$CONFIG_SHELL $0 --fallback-echo"
646 else
647 # maybe with a smaller string...
648 prev=:
649
650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
652 then
653 break
654 fi
655 prev="$cmd"
656 done
657
658 if test "$prev" != 'sed 50q "$0"'; then
659 echo_test_string=`eval $prev`
660 export echo_test_string
661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 else
663 # Oops. We lost completely, so just stick with echo.
664 echo=echo
665 fi
666 fi
667 fi
668 fi
669fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674ECHO=$echo
675if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682tagnames=${tagnames+${tagnames},}CXX
683
684tagnames=${tagnames+${tagnames},}F77
685
686test -n "$DJDIR" || exec 7<&0 </dev/null
687exec 6>&1
688
689# Name of the host.
690# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
691# so uname gets run too.
692ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693
694#
695# Initializations.
696#
697ac_default_prefix=/usr/local
698ac_clean_files=
699ac_config_libobj_dir=.
700LIB@&t@OBJS=
701cross_compiling=no
702subdirs=
703MFLAGS=
704MAKEFLAGS=
705
706# Identity of this package.
707PACKAGE_NAME='library'
708PACKAGE_TARNAME='library'
709PACKAGE_VERSION='1.0'
710PACKAGE_STRING='library 1.0'
711PACKAGE_BUGREPORT='support@itibia.com'
712PACKAGE_URL=''
713
714ac_unique_file=""
715# Factoring default headers for most tests.
716ac_includes_default="\
717#include <stdio.h>
718#ifdef HAVE_SYS_TYPES_H
719# include <sys/types.h>
720#endif
721#ifdef HAVE_SYS_STAT_H
722# include <sys/stat.h>
723#endif
724#ifdef STDC_HEADERS
725# include <stdlib.h>
726# include <stddef.h>
727#else
728# ifdef HAVE_STDLIB_H
729# include <stdlib.h>
730# endif
731#endif
732#ifdef HAVE_STRING_H
733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734# include <memory.h>
735# endif
736# include <string.h>
737#endif
738#ifdef HAVE_STRINGS_H
739# include <strings.h>
740#endif
741#ifdef HAVE_INTTYPES_H
742# include <inttypes.h>
743#endif
744#ifdef HAVE_STDINT_H
745# include <stdint.h>
746#endif
747#ifdef HAVE_UNISTD_H
748# include <unistd.h>
749#endif"
750
751ac_subst_vars='am__EXEEXT_FALSE
752am__EXEEXT_TRUE
753LTLIBOBJS
754COMPILE_FOR_MIPS_FALSE
755COMPILE_FOR_MIPS_TRUE
756HOST_OS
757HOST_VENDOR
758HOST_CPU
759BUILD_OS
760BUILD_VENDOR
761BUILD_CPU
762OPENSSL_DIR
763LIB@&t@OBJS
764ALLOCA
765LIBTOOL
766ac_ct_F77
767FFLAGS
768F77
769CXXCPP
770NMEDIT
771DSYMUTIL
772RANLIB
773AR
774ECHO
775LN_S
776EGREP
777GREP
778SED
779host_os
780host_vendor
781host_cpu
782host
783build_os
784build_vendor
785build_cpu
786build
787CPP
788am__fastdepCC_FALSE
789am__fastdepCC_TRUE
790CCDEPMODE
791ac_ct_CC
792CFLAGS
793CC
794am__fastdepCXX_FALSE
795am__fastdepCXX_TRUE
796CXXDEPMODE
797AMDEPBACKSLASH
798AMDEP_FALSE
799AMDEP_TRUE
800am__quote
801am__include
802DEPDIR
803OBJEXT
804EXEEXT
805ac_ct_CXX
806CPPFLAGS
807LDFLAGS
808CXXFLAGS
809CXX
810am__untar
811am__tar
812AMTAR
813am__leading_dot
814SET_MAKE
815AWK
816mkdir_p
817MKDIR_P
818INSTALL_STRIP_PROGRAM
819STRIP
820install_sh
821MAKEINFO
822AUTOHEADER
823AUTOMAKE
824AUTOCONF
825ACLOCAL
826VERSION
827PACKAGE
828CYGPATH_W
829am__isrc
830INSTALL_DATA
831INSTALL_SCRIPT
832INSTALL_PROGRAM
833target_alias
834host_alias
835build_alias
836LIBS
837ECHO_T
838ECHO_N
839ECHO_C
840DEFS
841mandir
842localedir
843libdir
844psdir
845pdfdir
846dvidir
847htmldir
848infodir
849docdir
850oldincludedir
851includedir
852localstatedir
853sharedstatedir
854sysconfdir
855datadir
856datarootdir
857libexecdir
858sbindir
859bindir
860program_transform_name
861prefix
862exec_prefix
863PACKAGE_URL
864PACKAGE_BUGREPORT
865PACKAGE_STRING
866PACKAGE_VERSION
867PACKAGE_TARNAME
868PACKAGE_NAME
869PATH_SEPARATOR
870SHELL'
871ac_subst_files=''
872ac_user_opts='
873enable_option_checking
874enable_dependency_tracking
875enable_shared
876enable_static
877enable_fast_install
878with_gnu_ld
879enable_libtool_lock
880with_pic
881with_tags
882with_openssl
883'
884 ac_precious_vars='build_alias
885host_alias
886target_alias
887CXX
888CXXFLAGS
889LDFLAGS
890LIBS
891CPPFLAGS
892CCC
893CC
894CFLAGS
895CPP
896CXXCPP
897F77
898FFLAGS'
899
900
901# Initialize some variables set by options.
902ac_init_help=
903ac_init_version=false
904ac_unrecognized_opts=
905ac_unrecognized_sep=
906# The variables have the same names as the options, with
907# dashes changed to underlines.
908cache_file=/dev/null
909exec_prefix=NONE
910no_create=
911no_recursion=
912prefix=NONE
913program_prefix=NONE
914program_suffix=NONE
915program_transform_name=s,x,x,
916silent=
917site=
918srcdir=
919verbose=
920x_includes=NONE
921x_libraries=NONE
922
923# Installation directory options.
924# These are left unexpanded so users can "make install exec_prefix=/foo"
925# and all the variables that are supposed to be based on exec_prefix
926# by default will actually change.
927# Use braces instead of parens because sh, perl, etc. also accept them.
928# (The list follows the same order as the GNU Coding Standards.)
929bindir='${exec_prefix}/bin'
930sbindir='${exec_prefix}/sbin'
931libexecdir='${exec_prefix}/libexec'
932datarootdir='${prefix}/share'
933datadir='${datarootdir}'
934sysconfdir='${prefix}/etc'
935sharedstatedir='${prefix}/com'
936localstatedir='${prefix}/var'
937includedir='${prefix}/include'
938oldincludedir='/usr/include'
939docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940infodir='${datarootdir}/info'
941htmldir='${docdir}'
942dvidir='${docdir}'
943pdfdir='${docdir}'
944psdir='${docdir}'
945libdir='${exec_prefix}/lib'
946localedir='${datarootdir}/locale'
947mandir='${datarootdir}/man'
948
949ac_prev=
950ac_dashdash=
951for ac_option
952do
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
956 ac_prev=
957 continue
958 fi
959
960 case $ac_option in
961 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 *=) ac_optarg= ;;
963 *) ac_optarg=yes ;;
964 esac
965
966 # Accept the important Cygnus configure options, so we can diagnose typos.
967
968 case $ac_dashdash$ac_option in
969 --)
970 ac_dashdash=yes ;;
971
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 bindir=$ac_optarg ;;
976
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
981
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
988
989 --config-cache | -C)
990 cache_file=config.cache ;;
991
992 -datadir | --datadir | --datadi | --datad)
993 ac_prev=datadir ;;
994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
995 datadir=$ac_optarg ;;
996
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1003
1004 -disable-* | --disable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error $? "invalid feature name: $ac_useropt"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1012 *"
1013"enable_$ac_useropt"
1014"*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=no ;;
1019
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1024
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1029
1030 -enable-* | --enable-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error $? "invalid feature name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1038 *"
1039"enable_$ac_useropt"
1040"*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval enable_$ac_useropt=\$ac_optarg ;;
1045
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1054
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1058
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1065
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1070
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1076
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1083
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1088
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1093
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1100
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1105
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1112
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1117
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1121
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1124 no_create=yes ;;
1125
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1129
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1138
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1143
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1150
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1157
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1174
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1179
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1184
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1233
1234 -with-* | --with-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243"with_$ac_useropt"
1244"*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=\$ac_optarg ;;
1249
1250 -without-* | --without-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259"with_$ac_useropt"
1260"*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=no ;;
1265
1266 --x)
1267 # Obsolete; use --with-x.
1268 with_x=yes ;;
1269
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1276
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1283
1284 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285Try \`$0 --help' for more information"
1286 ;;
1287
1288 *=*)
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294 esac
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1297
1298 *)
1299 # FIXME: should be removed in autoconf 3.0.
1300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1304 ;;
1305
1306 esac
1307done
1308
1309if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 as_fn_error $? "missing argument to $ac_option"
1312fi
1313
1314if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1316 no) ;;
1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 esac
1320fi
1321
1322# Check all directory arguments for consistency.
1323for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
1327do
1328 eval ac_val=\$$ac_var
1329 # Remove trailing slashes.
1330 case $ac_val in
1331 */ )
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1334 esac
1335 # Be sure to have absolute directory names.
1336 case $ac_val in
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 esac
1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341done
1342
1343# There might be people who depend on the old broken behavior: `$host'
1344# used to hold the argument of --host etc.
1345# FIXME: To remove some day.
1346build=$build_alias
1347host=$host_alias
1348target=$target_alias
1349
1350# FIXME: To remove some day.
1351if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1355 If a cross compiler is detected then cross compile mode will be used" >&2
1356 elif test "x$build_alias" != "x$host_alias"; then
1357 cross_compiling=yes
1358 fi
1359fi
1360
1361ac_tool_prefix=
1362test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
1364test "$silent" = yes && exec 6>/dev/null
1365
1366
1367ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368ac_ls_di=`ls -di .` &&
1369ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 as_fn_error $? "working directory cannot be determined"
1371test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372 as_fn_error $? "pwd does not report name of working directory"
1373
1374
1375# Find the source files, if location was not specified.
1376if test -z "$srcdir"; then
1377 ac_srcdir_defaulted=yes
1378 # Try the directory containing this script, then the parent directory.
1379 ac_confdir=`$as_dirname -- "$as_myself" ||
1380$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$as_myself" : 'X\(//\)[^/]' \| \
1382 X"$as_myself" : 'X\(//\)$' \| \
1383 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384$as_echo X"$as_myself" |
1385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\/\)[^/].*/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)$/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\).*/{
1398 s//\1/
1399 q
1400 }
1401 s/.*/./; q'`
1402 srcdir=$ac_confdir
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 srcdir=..
1405 fi
1406else
1407 ac_srcdir_defaulted=no
1408fi
1409if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1412fi
1413ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414ac_abs_confdir=`(
1415 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1416 pwd)`
1417# When building in place, set srcdir=.
1418if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 srcdir=.
1420fi
1421# Remove unnecessary trailing slashes from srcdir.
1422# Double slashes in file names in object file debugging info
1423# mess up M-x gdb in Emacs.
1424case $srcdir in
1425*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426esac
1427for ac_var in $ac_precious_vars; do
1428 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_env_${ac_var}_value=\$${ac_var}
1430 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1432done
1433
1434#
1435# Report the --help message.
1436#
1437if test "$ac_init_help" = "long"; then
1438 # Omit some internal or obsolete options to make the list less imposing.
1439 # This message is too long to be a string in the A/UX 3.1 sh.
1440 cat <<_ACEOF
1441\`configure' configures library 1.0 to adapt to many kinds of systems.
1442
1443Usage: $0 [OPTION]... [VAR=VALUE]...
1444
1445To assign environment variables (e.g., CC, CFLAGS...), specify them as
1446VAR=VALUE. See below for descriptions of some of the useful variables.
1447
1448Defaults for the options are specified in brackets.
1449
1450Configuration:
1451 -h, --help display this help and exit
1452 --help=short display options specific to this package
1453 --help=recursive display the short help of all the included packages
1454 -V, --version display version information and exit
1455 -q, --quiet, --silent do not print \`checking ...' messages
1456 --cache-file=FILE cache test results in FILE [disabled]
1457 -C, --config-cache alias for \`--cache-file=config.cache'
1458 -n, --no-create do not create output files
1459 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1460
1461Installation directories:
1462 --prefix=PREFIX install architecture-independent files in PREFIX
1463 @<:@@S|@ac_default_prefix@:>@
1464 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1465 @<:@PREFIX@:>@
1466
1467By default, \`make install' will install all the files in
1468\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1469an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1470for instance \`--prefix=\$HOME'.
1471
1472For better control, use the options below.
1473
1474Fine tuning of the installation directories:
1475 --bindir=DIR user executables [EPREFIX/bin]
1476 --sbindir=DIR system admin executables [EPREFIX/sbin]
1477 --libexecdir=DIR program executables [EPREFIX/libexec]
1478 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1479 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1480 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1481 --libdir=DIR object code libraries [EPREFIX/lib]
1482 --includedir=DIR C header files [PREFIX/include]
1483 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1484 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1485 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1486 --infodir=DIR info documentation [DATAROOTDIR/info]
1487 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1488 --mandir=DIR man documentation [DATAROOTDIR/man]
1489 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/library@:>@
1490 --htmldir=DIR html documentation [DOCDIR]
1491 --dvidir=DIR dvi documentation [DOCDIR]
1492 --pdfdir=DIR pdf documentation [DOCDIR]
1493 --psdir=DIR ps documentation [DOCDIR]
1494_ACEOF
1495
1496 cat <<\_ACEOF
1497
1498Program names:
1499 --program-prefix=PREFIX prepend PREFIX to installed program names
1500 --program-suffix=SUFFIX append SUFFIX to installed program names
1501 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1502
1503System types:
1504 --build=BUILD configure for building on BUILD [guessed]
1505 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506_ACEOF
1507fi
1508
1509if test -n "$ac_init_help"; then
1510 case $ac_init_help in
1511 short | recursive ) echo "Configuration of library 1.0:";;
1512 esac
1513 cat <<\_ACEOF
1514
1515Optional Features:
1516 --disable-option-checking ignore unrecognized --enable/--with options
1517 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1518 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1519 --disable-dependency-tracking speeds up one-time build
1520 --enable-dependency-tracking do not reject slow dependency extractors
1521 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1522 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1523 --enable-fast-install@<:@=PKGS@:>@
1524 optimize for fast installation @<:@default=yes@:>@
1525 --disable-libtool-lock avoid locking (might break parallel builds)
1526
1527Optional Packages:
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1530 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1531 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1532 both@:>@
1533 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1534--with-openssl=<path> sets path to temp directory
1535
1536Some influential environment variables:
1537 CXX C++ compiler command
1538 CXXFLAGS C++ compiler flags
1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1540 nonstandard directory <lib dir>
1541 LIBS libraries to pass to the linker, e.g. -l<library>
1542 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1543 you have headers in a nonstandard directory <include dir>
1544 CC C compiler command
1545 CFLAGS C compiler flags
1546 CPP C preprocessor
1547 CXXCPP C++ preprocessor
1548 F77 Fortran 77 compiler command
1549 FFLAGS Fortran 77 compiler flags
1550
1551Use these variables to override the choices made by `configure' or to help
1552it to find libraries and programs with nonstandard names/locations.
1553
1554Report bugs to <support@itibia.com>.
1555_ACEOF
1556ac_status=$?
1557fi
1558
1559if test "$ac_init_help" = "recursive"; then
1560 # If there are subdirs, report their specific --help.
1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1562 test -d "$ac_dir" ||
1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 continue
1565 ac_builddir=.
1566
1567case "$ac_dir" in
1568.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569*)
1570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1571 # A ".." for each directory in $ac_dir_suffix.
1572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1573 case $ac_top_builddir_sub in
1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 esac ;;
1577esac
1578ac_abs_top_builddir=$ac_pwd
1579ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580# for backward compatibility:
1581ac_top_builddir=$ac_top_build_prefix
1582
1583case $srcdir in
1584 .) # We are building in place.
1585 ac_srcdir=.
1586 ac_top_srcdir=$ac_top_builddir_sub
1587 ac_abs_top_srcdir=$ac_pwd ;;
1588 [\\/]* | ?:[\\/]* ) # Absolute name.
1589 ac_srcdir=$srcdir$ac_dir_suffix;
1590 ac_top_srcdir=$srcdir
1591 ac_abs_top_srcdir=$srcdir ;;
1592 *) # Relative name.
1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594 ac_top_srcdir=$ac_top_build_prefix$srcdir
1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596esac
1597ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598
1599 cd "$ac_dir" || { ac_status=$?; continue; }
1600 # Check for guested configure.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure" --help=recursive
1607 else
1608 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 fi || ac_status=$?
1610 cd "$ac_pwd" || { ac_status=$?; break; }
1611 done
1612fi
1613
1614test -n "$ac_init_help" && exit $ac_status
1615if $ac_init_version; then
1616 cat <<\_ACEOF
1617library configure 1.0
1618generated by GNU Autoconf 2.67
1619
1620Copyright (C) 2010 Free Software Foundation, Inc.
1621This configure script is free software; the Free Software Foundation
1622gives unlimited permission to copy, distribute and modify it.
1623_ACEOF
1624 exit
1625fi
1626
1627## ------------------------ ##
1628## Autoconf initialization. ##
1629## ------------------------ ##
1630
1631@%:@ ac_fn_cxx_try_compile LINENO
1632@%:@ ----------------------------
1633@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1634ac_fn_cxx_try_compile ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1639case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_cxx_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1657 ac_retval=0
1658else
1659 $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663fi
1664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1665 as_fn_set_status $ac_retval
1666
1667} @%:@ ac_fn_cxx_try_compile
1668
1669@%:@ ac_fn_c_try_compile LINENO
1670@%:@ --------------------------
1671@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1672ac_fn_c_try_compile ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext
1676 if { { ac_try="$ac_compile"
1677case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_compile") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest.$ac_objext; then :
1695 ac_retval=0
1696else
1697 $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1
1701fi
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 as_fn_set_status $ac_retval
1704
1705} @%:@ ac_fn_c_try_compile
1706
1707@%:@ ac_fn_c_try_cpp LINENO
1708@%:@ ----------------------
1709@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1710ac_fn_c_try_cpp ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_cpp conftest.$ac_ext"
1714case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } > conftest.i && {
1729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 }; then :
1732 ac_retval=0
1733else
1734 $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=1
1738fi
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 as_fn_set_status $ac_retval
1741
1742} @%:@ ac_fn_c_try_cpp
1743
1744@%:@ ac_fn_c_try_link LINENO
1745@%:@ -----------------------
1746@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1747ac_fn_c_try_link ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 rm -f conftest.$ac_objext conftest$ac_exeext
1751 if { { ac_try="$ac_link"
1752case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1764 fi
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && {
1767 test -z "$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1769 } && test -s conftest$ac_exeext && {
1770 test "$cross_compiling" = yes ||
1771 $as_test_x conftest$ac_exeext
1772 }; then :
1773 ac_retval=0
1774else
1775 $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=1
1779fi
1780 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1781 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1782 # interfere with the next link command; also delete a directory that is
1783 # left behind by Apple's compiler. We do this before executing the actions.
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786 as_fn_set_status $ac_retval
1787
1788} @%:@ ac_fn_c_try_link
1789
1790@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1791@%:@ -------------------------------------------------------
1792@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1793@%:@ the include files in INCLUDES and setting the cache variable VAR
1794@%:@ accordingly.
1795ac_fn_c_check_header_mongrel ()
1796{
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 if eval "test \"\${$3+set}\"" = set; then :
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800$as_echo_n "checking for $2... " >&6; }
1801if eval "test \"\${$3+set}\"" = set; then :
1802 $as_echo_n "(cached) " >&6
1803fi
1804eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807else
1808 # Is the header compilable?
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1810$as_echo_n "checking $2 usability... " >&6; }
1811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h. */
1813$4
1814@%:@include <$2>
1815_ACEOF
1816if ac_fn_c_try_compile "$LINENO"; then :
1817 ac_header_compiler=yes
1818else
1819 ac_header_compiler=no
1820fi
1821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1823$as_echo "$ac_header_compiler" >&6; }
1824
1825# Is the header present?
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1827$as_echo_n "checking $2 presence... " >&6; }
1828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h. */
1830@%:@include <$2>
1831_ACEOF
1832if ac_fn_c_try_cpp "$LINENO"; then :
1833 ac_header_preproc=yes
1834else
1835 ac_header_preproc=no
1836fi
1837rm -f conftest.err conftest.i conftest.$ac_ext
1838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1839$as_echo "$ac_header_preproc" >&6; }
1840
1841# So? What about this header?
1842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1843 yes:no: )
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1845$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848 ;;
1849 no:yes:* )
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1851$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1853$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1855$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1857$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1859$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860( $as_echo "## --------------------------------- ##
1861## Report this to support@itibia.com ##
1862## --------------------------------- ##"
1863 ) | sed "s/^/$as_me: WARNING: /" >&2
1864 ;;
1865esac
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867$as_echo_n "checking for $2... " >&6; }
1868if eval "test \"\${$3+set}\"" = set; then :
1869 $as_echo_n "(cached) " >&6
1870else
1871 eval "$3=\$ac_header_compiler"
1872fi
1873eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876fi
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878
1879} @%:@ ac_fn_c_check_header_mongrel
1880
1881@%:@ ac_fn_c_try_run LINENO
1882@%:@ ----------------------
1883@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1884@%:@ that executables *can* be run.
1885ac_fn_c_try_run ()
1886{
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if { { ac_try="$ac_link"
1889case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892esac
1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894$as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>&5
1896 ac_status=$?
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1899 { { case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_try") 2>&5
1906 ac_status=$?
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; }; }; then :
1909 ac_retval=0
1910else
1911 $as_echo "$as_me: program exited with status $ac_status" >&5
1912 $as_echo "$as_me: failed program was:" >&5
1913sed 's/^/| /' conftest.$ac_ext >&5
1914
1915 ac_retval=$ac_status
1916fi
1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919 as_fn_set_status $ac_retval
1920
1921} @%:@ ac_fn_c_try_run
1922
1923@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1924@%:@ -------------------------------------------------------
1925@%:@ Tests whether HEADER exists and can be compiled using the include files in
1926@%:@ INCLUDES, setting the cache variable VAR accordingly.
1927ac_fn_c_check_header_compile ()
1928{
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931$as_echo_n "checking for $2... " >&6; }
1932if eval "test \"\${$3+set}\"" = set; then :
1933 $as_echo_n "(cached) " >&6
1934else
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936/* end confdefs.h. */
1937$4
1938@%:@include <$2>
1939_ACEOF
1940if ac_fn_c_try_compile "$LINENO"; then :
1941 eval "$3=yes"
1942else
1943 eval "$3=no"
1944fi
1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946fi
1947eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
1950 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951
1952} @%:@ ac_fn_c_check_header_compile
1953
1954@%:@ ac_fn_c_check_func LINENO FUNC VAR
1955@%:@ ----------------------------------
1956@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1957ac_fn_c_check_func ()
1958{
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961$as_echo_n "checking for $2... " >&6; }
1962if eval "test \"\${$3+set}\"" = set; then :
1963 $as_echo_n "(cached) " >&6
1964else
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966/* end confdefs.h. */
1967/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1969#define $2 innocuous_$2
1970
1971/* System header to define __stub macros and hopefully few prototypes,
1972 which can conflict with char $2 (); below.
1973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1974 <limits.h> exists even on freestanding compilers. */
1975
1976#ifdef __STDC__
1977# include <limits.h>
1978#else
1979# include <assert.h>
1980#endif
1981
1982#undef $2
1983
1984/* Override any GCC internal prototype to avoid an error.
1985 Use char because int might match the return type of a GCC
1986 builtin and then its argument prototype would still apply. */
1987#ifdef __cplusplus
1988extern "C"
1989#endif
1990char $2 ();
1991/* The GNU C library defines this for functions which it implements
1992 to always fail with ENOSYS. Some functions are actually named
1993 something starting with __ and the normal name is an alias. */
1994#if defined __stub_$2 || defined __stub___$2
1995choke me
1996#endif
1997
1998int
1999main ()
2000{
2001return $2 ();
2002 ;
2003 return 0;
2004}
2005_ACEOF
2006if ac_fn_c_try_link "$LINENO"; then :
2007 eval "$3=yes"
2008else
2009 eval "$3=no"
2010fi
2011rm -f core conftest.err conftest.$ac_objext \
2012 conftest$ac_exeext conftest.$ac_ext
2013fi
2014eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016$as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018
2019} @%:@ ac_fn_c_check_func
2020
2021@%:@ ac_fn_cxx_try_cpp LINENO
2022@%:@ ------------------------
2023@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
2024ac_fn_cxx_try_cpp ()
2025{
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 if { { ac_try="$ac_cpp conftest.$ac_ext"
2028case "(($ac_try" in
2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030 *) ac_try_echo=$ac_try;;
2031esac
2032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033$as_echo "$ac_try_echo"; } >&5
2034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2035 ac_status=$?
2036 if test -s conftest.err; then
2037 grep -v '^ *+' conftest.err >conftest.er1
2038 cat conftest.er1 >&5
2039 mv -f conftest.er1 conftest.err
2040 fi
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; } > conftest.i && {
2043 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2044 test ! -s conftest.err
2045 }; then :
2046 ac_retval=0
2047else
2048 $as_echo "$as_me: failed program was:" >&5
2049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051 ac_retval=1
2052fi
2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 as_fn_set_status $ac_retval
2055
2056} @%:@ ac_fn_cxx_try_cpp
2057
2058@%:@ ac_fn_cxx_try_link LINENO
2059@%:@ -------------------------
2060@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
2061ac_fn_cxx_try_link ()
2062{
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 rm -f conftest.$ac_objext conftest$ac_exeext
2065 if { { ac_try="$ac_link"
2066case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069esac
2070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071$as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_link") 2>conftest.err
2073 ac_status=$?
2074 if test -s conftest.err; then
2075 grep -v '^ *+' conftest.err >conftest.er1
2076 cat conftest.er1 >&5
2077 mv -f conftest.er1 conftest.err
2078 fi
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; } && {
2081 test -z "$ac_cxx_werror_flag" ||
2082 test ! -s conftest.err
2083 } && test -s conftest$ac_exeext && {
2084 test "$cross_compiling" = yes ||
2085 $as_test_x conftest$ac_exeext
2086 }; then :
2087 ac_retval=0
2088else
2089 $as_echo "$as_me: failed program was:" >&5
2090sed 's/^/| /' conftest.$ac_ext >&5
2091
2092 ac_retval=1
2093fi
2094 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2095 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2096 # interfere with the next link command; also delete a directory that is
2097 # left behind by Apple's compiler. We do this before executing the actions.
2098 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2100 as_fn_set_status $ac_retval
2101
2102} @%:@ ac_fn_cxx_try_link
2103
2104@%:@ ac_fn_f77_try_compile LINENO
2105@%:@ ----------------------------
2106@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
2107ac_fn_f77_try_compile ()
2108{
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 rm -f conftest.$ac_objext
2111 if { { ac_try="$ac_compile"
2112case "(($ac_try" in
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2115esac
2116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117$as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_compile") 2>conftest.err
2119 ac_status=$?
2120 if test -s conftest.err; then
2121 grep -v '^ *+' conftest.err >conftest.er1
2122 cat conftest.er1 >&5
2123 mv -f conftest.er1 conftest.err
2124 fi
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; } && {
2127 test -z "$ac_f77_werror_flag" ||
2128 test ! -s conftest.err
2129 } && test -s conftest.$ac_objext; then :
2130 ac_retval=0
2131else
2132 $as_echo "$as_me: failed program was:" >&5
2133sed 's/^/| /' conftest.$ac_ext >&5
2134
2135 ac_retval=1
2136fi
2137 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2138 as_fn_set_status $ac_retval
2139
2140} @%:@ ac_fn_f77_try_compile
2141
2142@%:@ ac_fn_f77_try_link LINENO
2143@%:@ -------------------------
2144@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
2145ac_fn_f77_try_link ()
2146{
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 rm -f conftest.$ac_objext conftest$ac_exeext
2149 if { { ac_try="$ac_link"
2150case "(($ac_try" in
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2153esac
2154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2155$as_echo "$ac_try_echo"; } >&5
2156 (eval "$ac_link") 2>conftest.err
2157 ac_status=$?
2158 if test -s conftest.err; then
2159 grep -v '^ *+' conftest.err >conftest.er1
2160 cat conftest.er1 >&5
2161 mv -f conftest.er1 conftest.err
2162 fi
2163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2164 test $ac_status = 0; } && {
2165 test -z "$ac_f77_werror_flag" ||
2166 test ! -s conftest.err
2167 } && test -s conftest$ac_exeext && {
2168 test "$cross_compiling" = yes ||
2169 $as_test_x conftest$ac_exeext
2170 }; then :
2171 ac_retval=0
2172else
2173 $as_echo "$as_me: failed program was:" >&5
2174sed 's/^/| /' conftest.$ac_ext >&5
2175
2176 ac_retval=1
2177fi
2178 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2179 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2180 # interfere with the next link command; also delete a directory that is
2181 # left behind by Apple's compiler. We do this before executing the actions.
2182 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2183 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2184 as_fn_set_status $ac_retval
2185
2186} @%:@ ac_fn_f77_try_link
2187
2188@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2189@%:@ -------------------------------------------
2190@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2191@%:@ variable VAR accordingly.
2192ac_fn_c_check_type ()
2193{
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196$as_echo_n "checking for $2... " >&6; }
2197if eval "test \"\${$3+set}\"" = set; then :
2198 $as_echo_n "(cached) " >&6
2199else
2200 eval "$3=no"
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202/* end confdefs.h. */
2203$4
2204int
2205main ()
2206{
2207if (sizeof ($2))
2208 return 0;
2209 ;
2210 return 0;
2211}
2212_ACEOF
2213if ac_fn_c_try_compile "$LINENO"; then :
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215/* end confdefs.h. */
2216$4
2217int
2218main ()
2219{
2220if (sizeof (($2)))
2221 return 0;
2222 ;
2223 return 0;
2224}
2225_ACEOF
2226if ac_fn_c_try_compile "$LINENO"; then :
2227
2228else
2229 eval "$3=yes"
2230fi
2231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232fi
2233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234fi
2235eval ac_res=\$$3
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237$as_echo "$ac_res" >&6; }
2238 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2239
2240} @%:@ ac_fn_c_check_type
2241
2242@%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2243@%:@ --------------------------------------------
2244@%:@ Tries to find the compile-time value of EXPR in a program that includes
2245@%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
2246@%:@ computed
2247ac_fn_c_compute_int ()
2248{
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 if test "$cross_compiling" = yes; then
2251 # Depending upon the size, compute the lo and hi bounds.
2252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253/* end confdefs.h. */
2254$4
2255int
2256main ()
2257{
2258static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
2259test_array @<:@0@:>@ = 0
2260
2261 ;
2262 return 0;
2263}
2264_ACEOF
2265if ac_fn_c_try_compile "$LINENO"; then :
2266 ac_lo=0 ac_mid=0
2267 while :; do
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269/* end confdefs.h. */
2270$4
2271int
2272main ()
2273{
2274static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2275test_array @<:@0@:>@ = 0
2276
2277 ;
2278 return 0;
2279}
2280_ACEOF
2281if ac_fn_c_try_compile "$LINENO"; then :
2282 ac_hi=$ac_mid; break
2283else
2284 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2285 if test $ac_lo -le $ac_mid; then
2286 ac_lo= ac_hi=
2287 break
2288 fi
2289 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2290fi
2291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 done
2293else
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295/* end confdefs.h. */
2296$4
2297int
2298main ()
2299{
2300static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2301test_array @<:@0@:>@ = 0
2302
2303 ;
2304 return 0;
2305}
2306_ACEOF
2307if ac_fn_c_try_compile "$LINENO"; then :
2308 ac_hi=-1 ac_mid=-1
2309 while :; do
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311/* end confdefs.h. */
2312$4
2313int
2314main ()
2315{
2316static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2317test_array @<:@0@:>@ = 0
2318
2319 ;
2320 return 0;
2321}
2322_ACEOF
2323if ac_fn_c_try_compile "$LINENO"; then :
2324 ac_lo=$ac_mid; break
2325else
2326 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2327 if test $ac_mid -le $ac_hi; then
2328 ac_lo= ac_hi=
2329 break
2330 fi
2331 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2332fi
2333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 done
2335else
2336 ac_lo= ac_hi=
2337fi
2338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339fi
2340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341# Binary search between lo and hi bounds.
2342while test "x$ac_lo" != "x$ac_hi"; do
2343 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345/* end confdefs.h. */
2346$4
2347int
2348main ()
2349{
2350static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2351test_array @<:@0@:>@ = 0
2352
2353 ;
2354 return 0;
2355}
2356_ACEOF
2357if ac_fn_c_try_compile "$LINENO"; then :
2358 ac_hi=$ac_mid
2359else
2360 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2361fi
2362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363done
2364case $ac_lo in @%:@((
2365?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2366'') ac_retval=1 ;;
2367esac
2368 else
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370/* end confdefs.h. */
2371$4
2372static long int longval () { return $2; }
2373static unsigned long int ulongval () { return $2; }
2374@%:@include <stdio.h>
2375@%:@include <stdlib.h>
2376int
2377main ()
2378{
2379
2380 FILE *f = fopen ("conftest.val", "w");
2381 if (! f)
2382 return 1;
2383 if (($2) < 0)
2384 {
2385 long int i = longval ();
2386 if (i != ($2))
2387 return 1;
2388 fprintf (f, "%ld", i);
2389 }
2390 else
2391 {
2392 unsigned long int i = ulongval ();
2393 if (i != ($2))
2394 return 1;
2395 fprintf (f, "%lu", i);
2396 }
2397 /* Do not output a trailing newline, as this causes \r\n confusion
2398 on some platforms. */
2399 return ferror (f) || fclose (f) != 0;
2400
2401 ;
2402 return 0;
2403}
2404_ACEOF
2405if ac_fn_c_try_run "$LINENO"; then :
2406 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2407else
2408 ac_retval=1
2409fi
2410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2411 conftest.$ac_objext conftest.beam conftest.$ac_ext
2412rm -f conftest.val
2413
2414 fi
2415 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2416 as_fn_set_status $ac_retval
2417
2418} @%:@ ac_fn_c_compute_int
2419cat >config.log <<_ACEOF
2420This file contains any messages produced by compilers while
2421running configure, to aid debugging if configure makes a mistake.
2422
2423It was created by library $as_me 1.0, which was
2424generated by GNU Autoconf 2.67. Invocation command line was
2425
2426 $ $0 $@
2427
2428_ACEOF
2429exec 5>>config.log
2430{
2431cat <<_ASUNAME
2432## --------- ##
2433## Platform. ##
2434## --------- ##
2435
2436hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2437uname -m = `(uname -m) 2>/dev/null || echo unknown`
2438uname -r = `(uname -r) 2>/dev/null || echo unknown`
2439uname -s = `(uname -s) 2>/dev/null || echo unknown`
2440uname -v = `(uname -v) 2>/dev/null || echo unknown`
2441
2442/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2443/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2444
2445/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2446/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2447/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2448/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2449/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2450/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2451/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2452
2453_ASUNAME
2454
2455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 $as_echo "PATH: $as_dir"
2461 done
2462IFS=$as_save_IFS
2463
2464} >&5
2465
2466cat >&5 <<_ACEOF
2467
2468
2469## ----------- ##
2470## Core tests. ##
2471## ----------- ##
2472
2473_ACEOF
2474
2475
2476# Keep a trace of the command line.
2477# Strip out --no-create and --no-recursion so they do not pile up.
2478# Strip out --silent because we don't want to record it for future runs.
2479# Also quote any args containing shell meta-characters.
2480# Make two passes to allow for proper duplicate-argument suppression.
2481ac_configure_args=
2482ac_configure_args0=
2483ac_configure_args1=
2484ac_must_keep_next=false
2485for ac_pass in 1 2
2486do
2487 for ac_arg
2488 do
2489 case $ac_arg in
2490 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2491 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2492 | -silent | --silent | --silen | --sile | --sil)
2493 continue ;;
2494 *\'*)
2495 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2496 esac
2497 case $ac_pass in
2498 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2499 2)
2500 as_fn_append ac_configure_args1 " '$ac_arg'"
2501 if test $ac_must_keep_next = true; then
2502 ac_must_keep_next=false # Got value, back to normal.
2503 else
2504 case $ac_arg in
2505 *=* | --config-cache | -C | -disable-* | --disable-* \
2506 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2507 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2508 | -with-* | --with-* | -without-* | --without-* | --x)
2509 case "$ac_configure_args0 " in
2510 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2511 esac
2512 ;;
2513 -* ) ac_must_keep_next=true ;;
2514 esac
2515 fi
2516 as_fn_append ac_configure_args " '$ac_arg'"
2517 ;;
2518 esac
2519 done
2520done
2521{ ac_configure_args0=; unset ac_configure_args0;}
2522{ ac_configure_args1=; unset ac_configure_args1;}
2523
2524# When interrupted or exit'd, cleanup temporary files, and complete
2525# config.log. We remove comments because anyway the quotes in there
2526# would cause problems or look ugly.
2527# WARNING: Use '\'' to represent an apostrophe within the trap.
2528# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2529trap 'exit_status=$?
2530 # Save into config.log some information that might help in debugging.
2531 {
2532 echo
2533
2534 $as_echo "## ---------------- ##
2535## Cache variables. ##
2536## ---------------- ##"
2537 echo
2538 # The following way of writing the cache mishandles newlines in values,
2539(
2540 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2541 eval ac_val=\$$ac_var
2542 case $ac_val in #(
2543 *${as_nl}*)
2544 case $ac_var in #(
2545 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2546$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2547 esac
2548 case $ac_var in #(
2549 _ | IFS | as_nl) ;; #(
2550 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2551 *) { eval $ac_var=; unset $ac_var;} ;;
2552 esac ;;
2553 esac
2554 done
2555 (set) 2>&1 |
2556 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2557 *${as_nl}ac_space=\ *)
2558 sed -n \
2559 "s/'\''/'\''\\\\'\'''\''/g;
2560 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2561 ;; #(
2562 *)
2563 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2564 ;;
2565 esac |
2566 sort
2567)
2568 echo
2569
2570 $as_echo "## ----------------- ##
2571## Output variables. ##
2572## ----------------- ##"
2573 echo
2574 for ac_var in $ac_subst_vars
2575 do
2576 eval ac_val=\$$ac_var
2577 case $ac_val in
2578 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2579 esac
2580 $as_echo "$ac_var='\''$ac_val'\''"
2581 done | sort
2582 echo
2583
2584 if test -n "$ac_subst_files"; then
2585 $as_echo "## ------------------- ##
2586## File substitutions. ##
2587## ------------------- ##"
2588 echo
2589 for ac_var in $ac_subst_files
2590 do
2591 eval ac_val=\$$ac_var
2592 case $ac_val in
2593 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2594 esac
2595 $as_echo "$ac_var='\''$ac_val'\''"
2596 done | sort
2597 echo
2598 fi
2599
2600 if test -s confdefs.h; then
2601 $as_echo "## ----------- ##
2602## confdefs.h. ##
2603## ----------- ##"
2604 echo
2605 cat confdefs.h
2606 echo
2607 fi
2608 test "$ac_signal" != 0 &&
2609 $as_echo "$as_me: caught signal $ac_signal"
2610 $as_echo "$as_me: exit $exit_status"
2611 } >&5
2612 rm -f core *.core core.conftest.* &&
2613 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2614 exit $exit_status
2615' 0
2616for ac_signal in 1 2 13 15; do
2617 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2618done
2619ac_signal=0
2620
2621# confdefs.h avoids OS command line length limits that DEFS can exceed.
2622rm -f -r conftest* confdefs.h
2623
2624$as_echo "/* confdefs.h */" > confdefs.h
2625
2626# Predefined preprocessor variables.
2627
2628cat >>confdefs.h <<_ACEOF
2629@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2630_ACEOF
2631
2632cat >>confdefs.h <<_ACEOF
2633@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2634_ACEOF
2635
2636cat >>confdefs.h <<_ACEOF
2637@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2638_ACEOF
2639
2640cat >>confdefs.h <<_ACEOF
2641@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2642_ACEOF
2643
2644cat >>confdefs.h <<_ACEOF
2645@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2646_ACEOF
2647
2648cat >>confdefs.h <<_ACEOF
2649@%:@define PACKAGE_URL "$PACKAGE_URL"
2650_ACEOF
2651
2652
2653# Let the site file select an alternate cache file if it wants to.
2654# Prefer an explicitly selected file to automatically selected ones.
2655ac_site_file1=NONE
2656ac_site_file2=NONE
2657if test -n "$CONFIG_SITE"; then
2658 # We do not want a PATH search for config.site.
2659 case $CONFIG_SITE in @%:@((
2660 -*) ac_site_file1=./$CONFIG_SITE;;
2661 */*) ac_site_file1=$CONFIG_SITE;;
2662 *) ac_site_file1=./$CONFIG_SITE;;
2663 esac
2664elif test "x$prefix" != xNONE; then
2665 ac_site_file1=$prefix/share/config.site
2666 ac_site_file2=$prefix/etc/config.site
2667else
2668 ac_site_file1=$ac_default_prefix/share/config.site
2669 ac_site_file2=$ac_default_prefix/etc/config.site
2670fi
2671for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2672do
2673 test "x$ac_site_file" = xNONE && continue
2674 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2676$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2677 sed 's/^/| /' "$ac_site_file" >&5
2678 . "$ac_site_file" \
2679 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2681as_fn_error $? "failed to load site script $ac_site_file
2682See \`config.log' for more details" "$LINENO" 5 ; }
2683 fi
2684done
2685
2686if test -r "$cache_file"; then
2687 # Some versions of bash will fail to source /dev/null (special files
2688 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2689 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2691$as_echo "$as_me: loading cache $cache_file" >&6;}
2692 case $cache_file in
2693 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2694 *) . "./$cache_file";;
2695 esac
2696 fi
2697else
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2699$as_echo "$as_me: creating cache $cache_file" >&6;}
2700 >$cache_file
2701fi
2702
2703# Check that the precious variables saved in the cache have kept the same
2704# value.
2705ac_cache_corrupted=false
2706for ac_var in $ac_precious_vars; do
2707 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2708 eval ac_new_set=\$ac_env_${ac_var}_set
2709 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2710 eval ac_new_val=\$ac_env_${ac_var}_value
2711 case $ac_old_set,$ac_new_set in
2712 set,)
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2714$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2715 ac_cache_corrupted=: ;;
2716 ,set)
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2718$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2719 ac_cache_corrupted=: ;;
2720 ,);;
2721 *)
2722 if test "x$ac_old_val" != "x$ac_new_val"; then
2723 # differences in whitespace do not lead to failure.
2724 ac_old_val_w=`echo x $ac_old_val`
2725 ac_new_val_w=`echo x $ac_new_val`
2726 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2728$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2729 ac_cache_corrupted=:
2730 else
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2732$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2733 eval $ac_var=\$ac_old_val
2734 fi
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2736$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2738$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2739 fi;;
2740 esac
2741 # Pass precious variables to config.status.
2742 if test "$ac_new_set" = set; then
2743 case $ac_new_val in
2744 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2745 *) ac_arg=$ac_var=$ac_new_val ;;
2746 esac
2747 case " $ac_configure_args " in
2748 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2749 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2750 esac
2751 fi
2752done
2753if $ac_cache_corrupted; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2757$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2758 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2759fi
2760## -------------------- ##
2761## Main body of script. ##
2762## -------------------- ##
2763
2764ac_ext=c
2765ac_cpp='$CPP $CPPFLAGS'
2766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769
2770
2771ac_aux_dir=
2772for ac_dir in build "$srcdir"/build; do
2773 if test -f "$ac_dir/install-sh"; then
2774 ac_aux_dir=$ac_dir
2775 ac_install_sh="$ac_aux_dir/install-sh -c"
2776 break
2777 elif test -f "$ac_dir/install.sh"; then
2778 ac_aux_dir=$ac_dir
2779 ac_install_sh="$ac_aux_dir/install.sh -c"
2780 break
2781 elif test -f "$ac_dir/shtool"; then
2782 ac_aux_dir=$ac_dir
2783 ac_install_sh="$ac_aux_dir/shtool install -c"
2784 break
2785 fi
2786done
2787if test -z "$ac_aux_dir"; then
2788 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2789fi
2790
2791# These three variables are undocumented and unsupported,
2792# and are intended to be withdrawn in a future Autoconf release.
2793# They can cause serious problems if a builder's source tree is in a directory
2794# whose full name contains unusual characters.
2795ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2796ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2797ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2798
2799
2800am__api_version='1.11'
2801
2802# Find a good install program. We prefer a C program (faster),
2803# so one script is as good as another. But avoid the broken or
2804# incompatible versions:
2805# SysV /etc/install, /usr/sbin/install
2806# SunOS /usr/etc/install
2807# IRIX /sbin/install
2808# AIX /bin/install
2809# AmigaOS /C/install, which installs bootblocks on floppy discs
2810# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2811# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2812# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2813# OS/2's system install, which has a completely different semantic
2814# ./install, which can be erroneously created by make from ./install.sh.
2815# Reject install programs that cannot install multiple files.
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2817$as_echo_n "checking for a BSD-compatible install... " >&6; }
2818if test -z "$INSTALL"; then
2819if test "${ac_cv_path_install+set}" = set; then :
2820 $as_echo_n "(cached) " >&6
2821else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 # Account for people who put trailing slashes in PATH elements.
2828case $as_dir/ in @%:@((
2829 ./ | .// | /[cC]/* | \
2830 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2831 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2832 /usr/ucb/* ) ;;
2833 *)
2834 # OSF1 and SCO ODT 3.0 have their own names for install.
2835 # Don't use installbsd from OSF since it installs stuff as root
2836 # by default.
2837 for ac_prog in ginstall scoinst install; do
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2840 if test $ac_prog = install &&
2841 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2842 # AIX install. It has an incompatible calling convention.
2843 :
2844 elif test $ac_prog = install &&
2845 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2846 # program-specific install script used by HP pwplus--don't use.
2847 :
2848 else
2849 rm -rf conftest.one conftest.two conftest.dir
2850 echo one > conftest.one
2851 echo two > conftest.two
2852 mkdir conftest.dir
2853 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2854 test -s conftest.one && test -s conftest.two &&
2855 test -s conftest.dir/conftest.one &&
2856 test -s conftest.dir/conftest.two
2857 then
2858 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2859 break 3
2860 fi
2861 fi
2862 fi
2863 done
2864 done
2865 ;;
2866esac
2867
2868 done
2869IFS=$as_save_IFS
2870
2871rm -rf conftest.one conftest.two conftest.dir
2872
2873fi
2874 if test "${ac_cv_path_install+set}" = set; then
2875 INSTALL=$ac_cv_path_install
2876 else
2877 # As a last resort, use the slow shell script. Don't cache a
2878 # value for INSTALL within a source directory, because that will
2879 # break other packages using the cache if that directory is
2880 # removed, or if the value is a relative name.
2881 INSTALL=$ac_install_sh
2882 fi
2883fi
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2885$as_echo "$INSTALL" >&6; }
2886
2887# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2888# It thinks the first close brace ends the variable substitution.
2889test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2890
2891test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2892
2893test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2894
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2896$as_echo_n "checking whether build environment is sane... " >&6; }
2897# Just in case
2898sleep 1
2899echo timestamp > conftest.file
2900# Reject unsafe characters in $srcdir or the absolute working directory
2901# name. Accept space and tab only in the latter.
2902am_lf='
2903'
2904case `pwd` in
2905 *[\\\"\#\$\&\'\`$am_lf]*)
2906 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2907esac
2908case $srcdir in
2909 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2910 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2911esac
2912
2913# Do `set' in a subshell so we don't clobber the current shell's
2914# arguments. Must try -L first in case configure is actually a
2915# symlink; some systems play weird games with the mod time of symlinks
2916# (eg FreeBSD returns the mod time of the symlink's containing
2917# directory).
2918if (
2919 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2920 if test "$*" = "X"; then
2921 # -L didn't work.
2922 set X `ls -t "$srcdir/configure" conftest.file`
2923 fi
2924 rm -f conftest.file
2925 if test "$*" != "X $srcdir/configure conftest.file" \
2926 && test "$*" != "X conftest.file $srcdir/configure"; then
2927
2928 # If neither matched, then we have a broken ls. This can happen
2929 # if, for instance, CONFIG_SHELL is bash and it inherits a
2930 # broken ls alias from the environment. This has actually
2931 # happened. Such a system could not be considered "sane".
2932 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2933alias in your environment" "$LINENO" 5
2934 fi
2935
2936 test "$2" = conftest.file
2937 )
2938then
2939 # Ok.
2940 :
2941else
2942 as_fn_error $? "newly created file is older than distributed files!
2943Check your system clock" "$LINENO" 5
2944fi
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2946$as_echo "yes" >&6; }
2947test "$program_prefix" != NONE &&
2948 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2949# Use a double $ so make ignores it.
2950test "$program_suffix" != NONE &&
2951 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2952# Double any \ or $.
2953# By default was `s,x,x', remove it if useless.
2954ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2955program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2956
2957# expand $ac_aux_dir to an absolute path
2958am_aux_dir=`cd $ac_aux_dir && pwd`
2959
2960if test x"${MISSING+set}" != xset; then
2961 case $am_aux_dir in
2962 *\ * | *\ *)
2963 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2964 *)
2965 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2966 esac
2967fi
2968# Use eval to expand $SHELL
2969if eval "$MISSING --run true"; then
2970 am_missing_run="$MISSING --run "
2971else
2972 am_missing_run=
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2974$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2975fi
2976
2977if test x"${install_sh}" != xset; then
2978 case $am_aux_dir in
2979 *\ * | *\ *)
2980 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2981 *)
2982 install_sh="\${SHELL} $am_aux_dir/install-sh"
2983 esac
2984fi
2985
2986# Installed binaries are usually stripped using `strip' when the user
2987# run `make install-strip'. However `strip' might not be the right
2988# tool to use in cross-compilation environments, therefore Automake
2989# will honor the `STRIP' environment variable to overrule this program.
2990if test "$cross_compiling" != no; then
2991 if test -n "$ac_tool_prefix"; then
2992 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2993set dummy ${ac_tool_prefix}strip; ac_word=$2
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995$as_echo_n "checking for $ac_word... " >&6; }
2996if test "${ac_cv_prog_STRIP+set}" = set; then :
2997 $as_echo_n "(cached) " >&6
2998else
2999 if test -n "$STRIP"; then
3000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3001else
3002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003for as_dir in $PATH
3004do
3005 IFS=$as_save_IFS
3006 test -z "$as_dir" && as_dir=.
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 break 2
3012 fi
3013done
3014 done
3015IFS=$as_save_IFS
3016
3017fi
3018fi
3019STRIP=$ac_cv_prog_STRIP
3020if test -n "$STRIP"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3022$as_echo "$STRIP" >&6; }
3023else
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025$as_echo "no" >&6; }
3026fi
3027
3028
3029fi
3030if test -z "$ac_cv_prog_STRIP"; then
3031 ac_ct_STRIP=$STRIP
3032 # Extract the first word of "strip", so it can be a program name with args.
3033set dummy strip; ac_word=$2
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035$as_echo_n "checking for $ac_word... " >&6; }
3036if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3038else
3039 if test -n "$ac_ct_STRIP"; then
3040 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_ac_ct_STRIP="strip"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053done
3054 done
3055IFS=$as_save_IFS
3056
3057fi
3058fi
3059ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3060if test -n "$ac_ct_STRIP"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3062$as_echo "$ac_ct_STRIP" >&6; }
3063else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068 if test "x$ac_ct_STRIP" = x; then
3069 STRIP=":"
3070 else
3071 case $cross_compiling:$ac_tool_warned in
3072yes:)
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3075ac_tool_warned=yes ;;
3076esac
3077 STRIP=$ac_ct_STRIP
3078 fi
3079else
3080 STRIP="$ac_cv_prog_STRIP"
3081fi
3082
3083fi
3084INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3085
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3087$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3088if test -z "$MKDIR_P"; then
3089 if test "${ac_cv_path_mkdir+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
3091else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_prog in mkdir gmkdir; do
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3100 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3101 'mkdir (GNU coreutils) '* | \
3102 'mkdir (coreutils) '* | \
3103 'mkdir (fileutils) '4.1*)
3104 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3105 break 3;;
3106 esac
3107 done
3108 done
3109 done
3110IFS=$as_save_IFS
3111
3112fi
3113
3114 test -d ./--version && rmdir ./--version
3115 if test "${ac_cv_path_mkdir+set}" = set; then
3116 MKDIR_P="$ac_cv_path_mkdir -p"
3117 else
3118 # As a last resort, use the slow shell script. Don't cache a
3119 # value for MKDIR_P within a source directory, because that will
3120 # break other packages using the cache if that directory is
3121 # removed, or if the value is a relative name.
3122 MKDIR_P="$ac_install_sh -d"
3123 fi
3124fi
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3126$as_echo "$MKDIR_P" >&6; }
3127
3128mkdir_p="$MKDIR_P"
3129case $mkdir_p in
3130 [\\/$]* | ?:[\\/]*) ;;
3131 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3132esac
3133
3134for ac_prog in gawk mawk nawk awk
3135do
3136 # Extract the first word of "$ac_prog", so it can be a program name with args.
3137set dummy $ac_prog; ac_word=$2
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139$as_echo_n "checking for $ac_word... " >&6; }
3140if test "${ac_cv_prog_AWK+set}" = set; then :
3141 $as_echo_n "(cached) " >&6
3142else
3143 if test -n "$AWK"; then
3144 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3145else
3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147for as_dir in $PATH
3148do
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 ac_cv_prog_AWK="$ac_prog"
3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 break 2
3156 fi
3157done
3158 done
3159IFS=$as_save_IFS
3160
3161fi
3162fi
3163AWK=$ac_cv_prog_AWK
3164if test -n "$AWK"; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3166$as_echo "$AWK" >&6; }
3167else
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169$as_echo "no" >&6; }
3170fi
3171
3172
3173 test -n "$AWK" && break
3174done
3175
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3177$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3178set x ${MAKE-make}
3179ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3180if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3181 $as_echo_n "(cached) " >&6
3182else
3183 cat >conftest.make <<\_ACEOF
3184SHELL = /bin/sh
3185all:
3186 @echo '@@@%%%=$(MAKE)=@@@%%%'
3187_ACEOF
3188# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3189case `${MAKE-make} -f conftest.make 2>/dev/null` in
3190 *@@@%%%=?*=@@@%%%*)
3191 eval ac_cv_prog_make_${ac_make}_set=yes;;
3192 *)
3193 eval ac_cv_prog_make_${ac_make}_set=no;;
3194esac
3195rm -f conftest.make
3196fi
3197if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199$as_echo "yes" >&6; }
3200 SET_MAKE=
3201else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203$as_echo "no" >&6; }
3204 SET_MAKE="MAKE=${MAKE-make}"
3205fi
3206
3207rm -rf .tst 2>/dev/null
3208mkdir .tst 2>/dev/null
3209if test -d .tst; then
3210 am__leading_dot=.
3211else
3212 am__leading_dot=_
3213fi
3214rmdir .tst 2>/dev/null
3215
3216if test "`cd $srcdir && pwd`" != "`pwd`"; then
3217 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3218 # is not polluted with repeated "-I."
3219 am__isrc=' -I$(srcdir)'
3220 # test to see if srcdir already configured
3221 if test -f $srcdir/config.status; then
3222 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3223 fi
3224fi
3225
3226# test whether we have cygpath
3227if test -z "$CYGPATH_W"; then
3228 if (cygpath --version) >/dev/null 2>/dev/null; then
3229 CYGPATH_W='cygpath -w'
3230 else
3231 CYGPATH_W=echo
3232 fi
3233fi
3234
3235
3236# Define the identity of the package.
3237 PACKAGE='library'
3238 VERSION='1.0'
3239
3240
3241cat >>confdefs.h <<_ACEOF
3242@%:@define PACKAGE "$PACKAGE"
3243_ACEOF
3244
3245
3246cat >>confdefs.h <<_ACEOF
3247@%:@define VERSION "$VERSION"
3248_ACEOF
3249
3250# Some tools Automake needs.
3251
3252ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3253
3254
3255AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3256
3257
3258AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3259
3260
3261AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3262
3263
3264MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3265
3266# We need awk for the "check" target. The system "awk" is bad on
3267# some platforms.
3268# Always define AMTAR for backward compatibility.
3269
3270AMTAR=${AMTAR-"${am_missing_run}tar"}
3271
3272am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3273
3274
3275
3276
3277
3278
3279ac_config_headers="$ac_config_headers config.h"
3280
3281
3282#AC_PREFIX_DEFAULT([])
3283
3284# Checks for programs.
3285ac_ext=cpp
3286ac_cpp='$CXXCPP $CPPFLAGS'
3287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3290if test -z "$CXX"; then
3291 if test -n "$CCC"; then
3292 CXX=$CCC
3293 else
3294 if test -n "$ac_tool_prefix"; then
3295 for ac_prog in g++
3296 do
3297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3298set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300$as_echo_n "checking for $ac_word... " >&6; }
3301if test "${ac_cv_prog_CXX+set}" = set; then :
3302 $as_echo_n "(cached) " >&6
3303else
3304 if test -n "$CXX"; then
3305 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3306else
3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308for as_dir in $PATH
3309do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3317 fi
3318done
3319 done
3320IFS=$as_save_IFS
3321
3322fi
3323fi
3324CXX=$ac_cv_prog_CXX
3325if test -n "$CXX"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3327$as_echo "$CXX" >&6; }
3328else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331fi
3332
3333
3334 test -n "$CXX" && break
3335 done
3336fi
3337if test -z "$CXX"; then
3338 ac_ct_CXX=$CXX
3339 for ac_prog in g++
3340do
3341 # Extract the first word of "$ac_prog", so it can be a program name with args.
3342set dummy $ac_prog; ac_word=$2
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344$as_echo_n "checking for $ac_word... " >&6; }
3345if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3346 $as_echo_n "(cached) " >&6
3347else
3348 if test -n "$ac_ct_CXX"; then
3349 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3350else
3351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352for as_dir in $PATH
3353do
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 ac_cv_prog_ac_ct_CXX="$ac_prog"
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3361 fi
3362done
3363 done
3364IFS=$as_save_IFS
3365
3366fi
3367fi
3368ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3369if test -n "$ac_ct_CXX"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3371$as_echo "$ac_ct_CXX" >&6; }
3372else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374$as_echo "no" >&6; }
3375fi
3376
3377
3378 test -n "$ac_ct_CXX" && break
3379done
3380
3381 if test "x$ac_ct_CXX" = x; then
3382 CXX="g++"
3383 else
3384 case $cross_compiling:$ac_tool_warned in
3385yes:)
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3388ac_tool_warned=yes ;;
3389esac
3390 CXX=$ac_ct_CXX
3391 fi
3392fi
3393
3394 fi
3395fi
3396# Provide some information about the compiler.
3397$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3398set X $ac_compile
3399ac_compiler=$2
3400for ac_option in --version -v -V -qversion; do
3401 { { ac_try="$ac_compiler $ac_option >&5"
3402case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405esac
3406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407$as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3409 ac_status=$?
3410 if test -s conftest.err; then
3411 sed '10a\
3412... rest of stderr output deleted ...
3413 10q' conftest.err >conftest.er1
3414 cat conftest.er1 >&5
3415 fi
3416 rm -f conftest.er1 conftest.err
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }
3419done
3420
3421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422/* end confdefs.h. */
3423
3424int
3425main ()
3426{
3427
3428 ;
3429 return 0;
3430}
3431_ACEOF
3432ac_clean_files_save=$ac_clean_files
3433ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3434# Try to create an executable without -o first, disregard a.out.
3435# It will help us diagnose broken compilers, and finding out an intuition
3436# of exeext.
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3438$as_echo_n "checking whether the C++ compiler works... " >&6; }
3439ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3440
3441# The possible output files:
3442ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3443
3444ac_rmfiles=
3445for ac_file in $ac_files
3446do
3447 case $ac_file in
3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3449 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3450 esac
3451done
3452rm -f $ac_rmfiles
3453
3454if { { ac_try="$ac_link_default"
3455case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458esac
3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_link_default") 2>&5
3462 ac_status=$?
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }; then :
3465 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3466# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3467# in a Makefile. We should not override ac_cv_exeext if it was cached,
3468# so that the user can short-circuit this test for compilers unknown to
3469# Autoconf.
3470for ac_file in $ac_files ''
3471do
3472 test -f "$ac_file" || continue
3473 case $ac_file in
3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3475 ;;
3476 [ab].out )
3477 # We found the default executable, but exeext='' is most
3478 # certainly right.
3479 break;;
3480 *.* )
3481 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3482 then :; else
3483 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3484 fi
3485 # We set ac_cv_exeext here because the later test for it is not
3486 # safe: cross compilers may not add the suffix if given an `-o'
3487 # argument, so we may need to know it at that point already.
3488 # Even if this section looks crufty: it has the advantage of
3489 # actually working.
3490 break;;
3491 * )
3492 break;;
3493 esac
3494done
3495test "$ac_cv_exeext" = no && ac_cv_exeext=
3496
3497else
3498 ac_file=''
3499fi
3500if test -z "$ac_file"; then :
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502$as_echo "no" >&6; }
3503$as_echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
3506{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508as_fn_error 77 "C++ compiler cannot create executables
3509See \`config.log' for more details" "$LINENO" 5 ; }
3510else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3512$as_echo "yes" >&6; }
3513fi
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3515$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3517$as_echo "$ac_file" >&6; }
3518ac_exeext=$ac_cv_exeext
3519
3520rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3521ac_clean_files=$ac_clean_files_save
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3523$as_echo_n "checking for suffix of executables... " >&6; }
3524if { { ac_try="$ac_link"
3525case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528esac
3529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530$as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_link") 2>&5
3532 ac_status=$?
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; then :
3535 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3536# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3537# work properly (i.e., refer to `conftest.exe'), while it won't with
3538# `rm'.
3539for ac_file in conftest.exe conftest conftest.*; do
3540 test -f "$ac_file" || continue
3541 case $ac_file in
3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3543 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3544 break;;
3545 * ) break;;
3546 esac
3547done
3548else
3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3552See \`config.log' for more details" "$LINENO" 5 ; }
3553fi
3554rm -f conftest conftest$ac_cv_exeext
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3556$as_echo "$ac_cv_exeext" >&6; }
3557
3558rm -f conftest.$ac_ext
3559EXEEXT=$ac_cv_exeext
3560ac_exeext=$EXEEXT
3561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562/* end confdefs.h. */
3563@%:@include <stdio.h>
3564int
3565main ()
3566{
3567FILE *f = fopen ("conftest.out", "w");
3568 return ferror (f) || fclose (f) != 0;
3569
3570 ;
3571 return 0;
3572}
3573_ACEOF
3574ac_clean_files="$ac_clean_files conftest.out"
3575# Check that the compiler produces executables we can run. If not, either
3576# the compiler is broken, or we cross compile.
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3578$as_echo_n "checking whether we are cross compiling... " >&6; }
3579if test "$cross_compiling" != yes; then
3580 { { ac_try="$ac_link"
3581case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584esac
3585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586$as_echo "$ac_try_echo"; } >&5
3587 (eval "$ac_link") 2>&5
3588 ac_status=$?
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }
3591 if { ac_try='./conftest$ac_cv_exeext'
3592 { { case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595esac
3596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597$as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_try") 2>&5
3599 ac_status=$?
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; }; then
3602 cross_compiling=no
3603 else
3604 if test "$cross_compiling" = maybe; then
3605 cross_compiling=yes
3606 else
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609as_fn_error $? "cannot run C++ compiled programs.
3610If you meant to cross compile, use \`--host'.
3611See \`config.log' for more details" "$LINENO" 5 ; }
3612 fi
3613 fi
3614fi
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3616$as_echo "$cross_compiling" >&6; }
3617
3618rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3619ac_clean_files=$ac_clean_files_save
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3621$as_echo_n "checking for suffix of object files... " >&6; }
3622if test "${ac_cv_objext+set}" = set; then :
3623 $as_echo_n "(cached) " >&6
3624else
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626/* end confdefs.h. */
3627
3628int
3629main ()
3630{
3631
3632 ;
3633 return 0;
3634}
3635_ACEOF
3636rm -f conftest.o conftest.obj
3637if { { ac_try="$ac_compile"
3638case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641esac
3642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643$as_echo "$ac_try_echo"; } >&5
3644 (eval "$ac_compile") 2>&5
3645 ac_status=$?
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }; then :
3648 for ac_file in conftest.o conftest.obj conftest.*; do
3649 test -f "$ac_file" || continue;
3650 case $ac_file in
3651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3652 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3653 break;;
3654 esac
3655done
3656else
3657 $as_echo "$as_me: failed program was:" >&5
3658sed 's/^/| /' conftest.$ac_ext >&5
3659
3660{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662as_fn_error $? "cannot compute suffix of object files: cannot compile
3663See \`config.log' for more details" "$LINENO" 5 ; }
3664fi
3665rm -f conftest.$ac_cv_objext conftest.$ac_ext
3666fi
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3668$as_echo "$ac_cv_objext" >&6; }
3669OBJEXT=$ac_cv_objext
3670ac_objext=$OBJEXT
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3672$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3673if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3674 $as_echo_n "(cached) " >&6
3675else
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677/* end confdefs.h. */
3678
3679int
3680main ()
3681{
3682#ifndef __GNUC__
3683 choke me
3684#endif
3685
3686 ;
3687 return 0;
3688}
3689_ACEOF
3690if ac_fn_cxx_try_compile "$LINENO"; then :
3691 ac_compiler_gnu=yes
3692else
3693 ac_compiler_gnu=no
3694fi
3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3697
3698fi
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3700$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3701if test $ac_compiler_gnu = yes; then
3702 GXX=yes
3703else
3704 GXX=
3705fi
3706ac_test_CXXFLAGS=${CXXFLAGS+set}
3707ac_save_CXXFLAGS=$CXXFLAGS
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3709$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3710if test "${ac_cv_prog_cxx_g+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
3712else
3713 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3714 ac_cxx_werror_flag=yes
3715 ac_cv_prog_cxx_g=no
3716 CXXFLAGS="-g"
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718/* end confdefs.h. */
3719
3720int
3721main ()
3722{
3723
3724 ;
3725 return 0;
3726}
3727_ACEOF
3728if ac_fn_cxx_try_compile "$LINENO"; then :
3729 ac_cv_prog_cxx_g=yes
3730else
3731 CXXFLAGS=""
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h. */
3734
3735int
3736main ()
3737{
3738
3739 ;
3740 return 0;
3741}
3742_ACEOF
3743if ac_fn_cxx_try_compile "$LINENO"; then :
3744
3745else
3746 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3747 CXXFLAGS="-g"
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749/* end confdefs.h. */
3750
3751int
3752main ()
3753{
3754
3755 ;
3756 return 0;
3757}
3758_ACEOF
3759if ac_fn_cxx_try_compile "$LINENO"; then :
3760 ac_cv_prog_cxx_g=yes
3761fi
3762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763fi
3764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765fi
3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3768fi
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3770$as_echo "$ac_cv_prog_cxx_g" >&6; }
3771if test "$ac_test_CXXFLAGS" = set; then
3772 CXXFLAGS=$ac_save_CXXFLAGS
3773elif test $ac_cv_prog_cxx_g = yes; then
3774 if test "$GXX" = yes; then
3775 CXXFLAGS="-g -O2"
3776 else
3777 CXXFLAGS="-g"
3778 fi
3779else
3780 if test "$GXX" = yes; then
3781 CXXFLAGS="-O2"
3782 else
3783 CXXFLAGS=
3784 fi
3785fi
3786ac_ext=c
3787ac_cpp='$CPP $CPPFLAGS'
3788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791DEPDIR="${am__leading_dot}deps"
3792
3793ac_config_commands="$ac_config_commands depfiles"
3794
3795
3796am_make=${MAKE-make}
3797cat > confinc << 'END'
3798am__doit:
3799 @echo this is the am__doit target
3800.PHONY: am__doit
3801END
3802# If we don't find an include directive, just comment out the code.
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3804$as_echo_n "checking for style of include used by $am_make... " >&6; }
3805am__include="#"
3806am__quote=
3807_am_result=none
3808# First try GNU make style include.
3809echo "include confinc" > confmf
3810# Ignore all kinds of additional output from `make'.
3811case `$am_make -s -f confmf 2> /dev/null` in #(
3812*the\ am__doit\ target*)
3813 am__include=include
3814 am__quote=
3815 _am_result=GNU
3816 ;;
3817esac
3818# Now try BSD make style include.
3819if test "$am__include" = "#"; then
3820 echo '.include "confinc"' > confmf
3821 case `$am_make -s -f confmf 2> /dev/null` in #(
3822 *the\ am__doit\ target*)
3823 am__include=.include
3824 am__quote="\""
3825 _am_result=BSD
3826 ;;
3827 esac
3828fi
3829
3830
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3832$as_echo "$_am_result" >&6; }
3833rm -f confinc confmf
3834
3835@%:@ Check whether --enable-dependency-tracking was given.
3836if test "${enable_dependency_tracking+set}" = set; then :
3837 enableval=$enable_dependency_tracking;
3838fi
3839
3840if test "x$enable_dependency_tracking" != xno; then
3841 am_depcomp="$ac_aux_dir/depcomp"
3842 AMDEPBACKSLASH='\'
3843fi
3844 if test "x$enable_dependency_tracking" != xno; then
3845 AMDEP_TRUE=
3846 AMDEP_FALSE='#'
3847else
3848 AMDEP_TRUE='#'
3849 AMDEP_FALSE=
3850fi
3851
3852
3853
3854depcc="$CXX" am_compiler_list=
3855
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3857$as_echo_n "checking dependency style of $depcc... " >&6; }
3858if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3859 $as_echo_n "(cached) " >&6
3860else
3861 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3862 # We make a subdir and do the tests there. Otherwise we can end up
3863 # making bogus files that we don't know about and never remove. For
3864 # instance it was reported that on HP-UX the gcc test will end up
3865 # making a dummy file named `D' -- because `-MD' means `put the output
3866 # in D'.
3867 mkdir conftest.dir
3868 # Copy depcomp to subdir because otherwise we won't find it if we're
3869 # using a relative directory.
3870 cp "$am_depcomp" conftest.dir
3871 cd conftest.dir
3872 # We will build objects and dependencies in a subdirectory because
3873 # it helps to detect inapplicable dependency modes. For instance
3874 # both Tru64's cc and ICC support -MD to output dependencies as a
3875 # side effect of compilation, but ICC will put the dependencies in
3876 # the current directory while Tru64 will put them in the object
3877 # directory.
3878 mkdir sub
3879
3880 am_cv_CXX_dependencies_compiler_type=none
3881 if test "$am_compiler_list" = ""; then
3882 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3883 fi
3884 am__universal=false
3885 case " $depcc " in #(
3886 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3887 esac
3888
3889 for depmode in $am_compiler_list; do
3890 # Setup a source with many dependencies, because some compilers
3891 # like to wrap large dependency lists on column 80 (with \), and
3892 # we should not choose a depcomp mode which is confused by this.
3893 #
3894 # We need to recreate these files for each test, as the compiler may
3895 # overwrite some of them when testing with obscure command lines.
3896 # This happens at least with the AIX C compiler.
3897 : > sub/conftest.c
3898 for i in 1 2 3 4 5 6; do
3899 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3900 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3901 # Solaris 8's {/usr,}/bin/sh.
3902 touch sub/conftst$i.h
3903 done
3904 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3905
3906 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3907 # mode. It turns out that the SunPro C++ compiler does not properly
3908 # handle `-M -o', and we need to detect this. Also, some Intel
3909 # versions had trouble with output in subdirs
3910 am__obj=sub/conftest.${OBJEXT-o}
3911 am__minus_obj="-o $am__obj"
3912 case $depmode in
3913 gcc)
3914 # This depmode causes a compiler race in universal mode.
3915 test "$am__universal" = false || continue
3916 ;;
3917 nosideeffect)
3918 # after this tag, mechanisms are not by side-effect, so they'll
3919 # only be used when explicitly requested
3920 if test "x$enable_dependency_tracking" = xyes; then
3921 continue
3922 else
3923 break
3924 fi
3925 ;;
3926 msvisualcpp | msvcmsys)
3927 # This compiler won't grok `-c -o', but also, the minuso test has
3928 # not run yet. These depmodes are late enough in the game, and
3929 # so weak that their functioning should not be impacted.
3930 am__obj=conftest.${OBJEXT-o}
3931 am__minus_obj=
3932 ;;
3933 none) break ;;
3934 esac
3935 if depmode=$depmode \
3936 source=sub/conftest.c object=$am__obj \
3937 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3938 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3939 >/dev/null 2>conftest.err &&
3940 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3941 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3942 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3943 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3944 # icc doesn't choke on unknown options, it will just issue warnings
3945 # or remarks (even with -Werror). So we grep stderr for any message
3946 # that says an option was ignored or not supported.
3947 # When given -MP, icc 7.0 and 7.1 complain thusly:
3948 # icc: Command line warning: ignoring option '-M'; no argument required
3949 # The diagnosis changed in icc 8.0:
3950 # icc: Command line remark: option '-MP' not supported
3951 if (grep 'ignoring option' conftest.err ||
3952 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3953 am_cv_CXX_dependencies_compiler_type=$depmode
3954 break
3955 fi
3956 fi
3957 done
3958
3959 cd ..
3960 rm -rf conftest.dir
3961else
3962 am_cv_CXX_dependencies_compiler_type=none
3963fi
3964
3965fi
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3967$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3968CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3969
3970 if
3971 test "x$enable_dependency_tracking" != xno \
3972 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3973 am__fastdepCXX_TRUE=
3974 am__fastdepCXX_FALSE='#'
3975else
3976 am__fastdepCXX_TRUE='#'
3977 am__fastdepCXX_FALSE=
3978fi
3979
3980
3981ac_ext=c
3982ac_cpp='$CPP $CPPFLAGS'
3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986if test -n "$ac_tool_prefix"; then
3987 for ac_prog in gcc g++
3988 do
3989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3990set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992$as_echo_n "checking for $ac_word... " >&6; }
3993if test "${ac_cv_prog_CC+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995else
3996 if test -n "$CC"; then
3997 ac_cv_prog_CC="$CC" # Let the user override the test.
3998else
3999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000for as_dir in $PATH
4001do
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 break 2
4009 fi
4010done
4011 done
4012IFS=$as_save_IFS
4013
4014fi
4015fi
4016CC=$ac_cv_prog_CC
4017if test -n "$CC"; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4019$as_echo "$CC" >&6; }
4020else
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022$as_echo "no" >&6; }
4023fi
4024
4025
4026 test -n "$CC" && break
4027 done
4028fi
4029if test -z "$CC"; then
4030 ac_ct_CC=$CC
4031 for ac_prog in gcc g++
4032do
4033 # Extract the first word of "$ac_prog", so it can be a program name with args.
4034set dummy $ac_prog; ac_word=$2
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036$as_echo_n "checking for $ac_word... " >&6; }
4037if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4038 $as_echo_n "(cached) " >&6
4039else
4040 if test -n "$ac_ct_CC"; then
4041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4042else
4043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044for as_dir in $PATH
4045do
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050 ac_cv_prog_ac_ct_CC="$ac_prog"
4051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 break 2
4053 fi
4054done
4055 done
4056IFS=$as_save_IFS
4057
4058fi
4059fi
4060ac_ct_CC=$ac_cv_prog_ac_ct_CC
4061if test -n "$ac_ct_CC"; then
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4063$as_echo "$ac_ct_CC" >&6; }
4064else
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066$as_echo "no" >&6; }
4067fi
4068
4069
4070 test -n "$ac_ct_CC" && break
4071done
4072
4073 if test "x$ac_ct_CC" = x; then
4074 CC=""
4075 else
4076 case $cross_compiling:$ac_tool_warned in
4077yes:)
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4080ac_tool_warned=yes ;;
4081esac
4082 CC=$ac_ct_CC
4083 fi
4084fi
4085
4086
4087test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4089as_fn_error $? "no acceptable C compiler found in \$PATH
4090See \`config.log' for more details" "$LINENO" 5 ; }
4091
4092# Provide some information about the compiler.
4093$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4094set X $ac_compile
4095ac_compiler=$2
4096for ac_option in --version -v -V -qversion; do
4097 { { ac_try="$ac_compiler $ac_option >&5"
4098case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101esac
4102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103$as_echo "$ac_try_echo"; } >&5
4104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4105 ac_status=$?
4106 if test -s conftest.err; then
4107 sed '10a\
4108... rest of stderr output deleted ...
4109 10q' conftest.err >conftest.er1
4110 cat conftest.er1 >&5
4111 fi
4112 rm -f conftest.er1 conftest.err
4113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4114 test $ac_status = 0; }
4115done
4116
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4118$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4119if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
4121else
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h. */
4124
4125int
4126main ()
4127{
4128#ifndef __GNUC__
4129 choke me
4130#endif
4131
4132 ;
4133 return 0;
4134}
4135_ACEOF
4136if ac_fn_c_try_compile "$LINENO"; then :
4137 ac_compiler_gnu=yes
4138else
4139 ac_compiler_gnu=no
4140fi
4141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142ac_cv_c_compiler_gnu=$ac_compiler_gnu
4143
4144fi
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4146$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4147if test $ac_compiler_gnu = yes; then
4148 GCC=yes
4149else
4150 GCC=
4151fi
4152ac_test_CFLAGS=${CFLAGS+set}
4153ac_save_CFLAGS=$CFLAGS
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4155$as_echo_n "checking whether $CC accepts -g... " >&6; }
4156if test "${ac_cv_prog_cc_g+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4158else
4159 ac_save_c_werror_flag=$ac_c_werror_flag
4160 ac_c_werror_flag=yes
4161 ac_cv_prog_cc_g=no
4162 CFLAGS="-g"
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164/* end confdefs.h. */
4165
4166int
4167main ()
4168{
4169
4170 ;
4171 return 0;
4172}
4173_ACEOF
4174if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_cv_prog_cc_g=yes
4176else
4177 CFLAGS=""
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179/* end confdefs.h. */
4180
4181int
4182main ()
4183{
4184
4185 ;
4186 return 0;
4187}
4188_ACEOF
4189if ac_fn_c_try_compile "$LINENO"; then :
4190
4191else
4192 ac_c_werror_flag=$ac_save_c_werror_flag
4193 CFLAGS="-g"
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195/* end confdefs.h. */
4196
4197int
4198main ()
4199{
4200
4201 ;
4202 return 0;
4203}
4204_ACEOF
4205if ac_fn_c_try_compile "$LINENO"; then :
4206 ac_cv_prog_cc_g=yes
4207fi
4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209fi
4210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211fi
4212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 ac_c_werror_flag=$ac_save_c_werror_flag
4214fi
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4216$as_echo "$ac_cv_prog_cc_g" >&6; }
4217if test "$ac_test_CFLAGS" = set; then
4218 CFLAGS=$ac_save_CFLAGS
4219elif test $ac_cv_prog_cc_g = yes; then
4220 if test "$GCC" = yes; then
4221 CFLAGS="-g -O2"
4222 else
4223 CFLAGS="-g"
4224 fi
4225else
4226 if test "$GCC" = yes; then
4227 CFLAGS="-O2"
4228 else
4229 CFLAGS=
4230 fi
4231fi
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4233$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4234if test "${ac_cv_prog_cc_c89+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4236else
4237 ac_cv_prog_cc_c89=no
4238ac_save_CC=$CC
4239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240/* end confdefs.h. */
4241#include <stdarg.h>
4242#include <stdio.h>
4243#include <sys/types.h>
4244#include <sys/stat.h>
4245/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4246struct buf { int x; };
4247FILE * (*rcsopen) (struct buf *, struct stat *, int);
4248static char *e (p, i)
4249 char **p;
4250 int i;
4251{
4252 return p[i];
4253}
4254static char *f (char * (*g) (char **, int), char **p, ...)
4255{
4256 char *s;
4257 va_list v;
4258 va_start (v,p);
4259 s = g (p, va_arg (v,int));
4260 va_end (v);
4261 return s;
4262}
4263
4264/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4265 function prototypes and stuff, but not '\xHH' hex character constants.
4266 These don't provoke an error unfortunately, instead are silently treated
4267 as 'x'. The following induces an error, until -std is added to get
4268 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4269 array size at least. It's necessary to write '\x00'==0 to get something
4270 that's true only with -std. */
4271int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4272
4273/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4274 inside strings and character constants. */
4275#define FOO(x) 'x'
4276int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4277
4278int test (int i, double x);
4279struct s1 {int (*f) (int a);};
4280struct s2 {int (*f) (double a);};
4281int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4282int argc;
4283char **argv;
4284int
4285main ()
4286{
4287return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4288 ;
4289 return 0;
4290}
4291_ACEOF
4292for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4293 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4294do
4295 CC="$ac_save_CC $ac_arg"
4296 if ac_fn_c_try_compile "$LINENO"; then :
4297 ac_cv_prog_cc_c89=$ac_arg
4298fi
4299rm -f core conftest.err conftest.$ac_objext
4300 test "x$ac_cv_prog_cc_c89" != "xno" && break
4301done
4302rm -f conftest.$ac_ext
4303CC=$ac_save_CC
4304
4305fi
4306# AC_CACHE_VAL
4307case "x$ac_cv_prog_cc_c89" in
4308 x)
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4310$as_echo "none needed" >&6; } ;;
4311 xno)
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4313$as_echo "unsupported" >&6; } ;;
4314 *)
4315 CC="$CC $ac_cv_prog_cc_c89"
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4317$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4318esac
4319if test "x$ac_cv_prog_cc_c89" != xno; then :
4320
4321fi
4322
4323ac_ext=c
4324ac_cpp='$CPP $CPPFLAGS'
4325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328
4329depcc="$CC" am_compiler_list=
4330
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4332$as_echo_n "checking dependency style of $depcc... " >&6; }
4333if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4335else
4336 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4337 # We make a subdir and do the tests there. Otherwise we can end up
4338 # making bogus files that we don't know about and never remove. For
4339 # instance it was reported that on HP-UX the gcc test will end up
4340 # making a dummy file named `D' -- because `-MD' means `put the output
4341 # in D'.
4342 mkdir conftest.dir
4343 # Copy depcomp to subdir because otherwise we won't find it if we're
4344 # using a relative directory.
4345 cp "$am_depcomp" conftest.dir
4346 cd conftest.dir
4347 # We will build objects and dependencies in a subdirectory because
4348 # it helps to detect inapplicable dependency modes. For instance
4349 # both Tru64's cc and ICC support -MD to output dependencies as a
4350 # side effect of compilation, but ICC will put the dependencies in
4351 # the current directory while Tru64 will put them in the object
4352 # directory.
4353 mkdir sub
4354
4355 am_cv_CC_dependencies_compiler_type=none
4356 if test "$am_compiler_list" = ""; then
4357 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4358 fi
4359 am__universal=false
4360 case " $depcc " in #(
4361 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4362 esac
4363
4364 for depmode in $am_compiler_list; do
4365 # Setup a source with many dependencies, because some compilers
4366 # like to wrap large dependency lists on column 80 (with \), and
4367 # we should not choose a depcomp mode which is confused by this.
4368 #
4369 # We need to recreate these files for each test, as the compiler may
4370 # overwrite some of them when testing with obscure command lines.
4371 # This happens at least with the AIX C compiler.
4372 : > sub/conftest.c
4373 for i in 1 2 3 4 5 6; do
4374 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4375 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4376 # Solaris 8's {/usr,}/bin/sh.
4377 touch sub/conftst$i.h
4378 done
4379 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4380
4381 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4382 # mode. It turns out that the SunPro C++ compiler does not properly
4383 # handle `-M -o', and we need to detect this. Also, some Intel
4384 # versions had trouble with output in subdirs
4385 am__obj=sub/conftest.${OBJEXT-o}
4386 am__minus_obj="-o $am__obj"
4387 case $depmode in
4388 gcc)
4389 # This depmode causes a compiler race in universal mode.
4390 test "$am__universal" = false || continue
4391 ;;
4392 nosideeffect)
4393 # after this tag, mechanisms are not by side-effect, so they'll
4394 # only be used when explicitly requested
4395 if test "x$enable_dependency_tracking" = xyes; then
4396 continue
4397 else
4398 break
4399 fi
4400 ;;
4401 msvisualcpp | msvcmsys)
4402 # This compiler won't grok `-c -o', but also, the minuso test has
4403 # not run yet. These depmodes are late enough in the game, and
4404 # so weak that their functioning should not be impacted.
4405 am__obj=conftest.${OBJEXT-o}
4406 am__minus_obj=
4407 ;;
4408 none) break ;;
4409 esac
4410 if depmode=$depmode \
4411 source=sub/conftest.c object=$am__obj \
4412 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4413 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4414 >/dev/null 2>conftest.err &&
4415 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4416 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4417 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4418 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4419 # icc doesn't choke on unknown options, it will just issue warnings
4420 # or remarks (even with -Werror). So we grep stderr for any message
4421 # that says an option was ignored or not supported.
4422 # When given -MP, icc 7.0 and 7.1 complain thusly:
4423 # icc: Command line warning: ignoring option '-M'; no argument required
4424 # The diagnosis changed in icc 8.0:
4425 # icc: Command line remark: option '-MP' not supported
4426 if (grep 'ignoring option' conftest.err ||
4427 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4428 am_cv_CC_dependencies_compiler_type=$depmode
4429 break
4430 fi
4431 fi
4432 done
4433
4434 cd ..
4435 rm -rf conftest.dir
4436else
4437 am_cv_CC_dependencies_compiler_type=none
4438fi
4439
4440fi
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4442$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4443CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4444
4445 if
4446 test "x$enable_dependency_tracking" != xno \
4447 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4448 am__fastdepCC_TRUE=
4449 am__fastdepCC_FALSE='#'
4450else
4451 am__fastdepCC_TRUE='#'
4452 am__fastdepCC_FALSE=
4453fi
4454
4455
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4457$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4458set x ${MAKE-make}
4459ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4460if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4461 $as_echo_n "(cached) " >&6
4462else
4463 cat >conftest.make <<\_ACEOF
4464SHELL = /bin/sh
4465all:
4466 @echo '@@@%%%=$(MAKE)=@@@%%%'
4467_ACEOF
4468# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4469case `${MAKE-make} -f conftest.make 2>/dev/null` in
4470 *@@@%%%=?*=@@@%%%*)
4471 eval ac_cv_prog_make_${ac_make}_set=yes;;
4472 *)
4473 eval ac_cv_prog_make_${ac_make}_set=no;;
4474esac
4475rm -f conftest.make
4476fi
4477if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4479$as_echo "yes" >&6; }
4480 SET_MAKE=
4481else
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483$as_echo "no" >&6; }
4484 SET_MAKE="MAKE=${MAKE-make}"
4485fi
4486
4487ac_ext=c
4488ac_cpp='$CPP $CPPFLAGS'
4489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491ac_compiler_gnu=$ac_cv_c_compiler_gnu
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4493$as_echo_n "checking how to run the C preprocessor... " >&6; }
4494# On Suns, sometimes $CPP names a directory.
4495if test -n "$CPP" && test -d "$CPP"; then
4496 CPP=
4497fi
4498if test -z "$CPP"; then
4499 if test "${ac_cv_prog_CPP+set}" = set; then :
4500 $as_echo_n "(cached) " >&6
4501else
4502 # Double quotes because CPP needs to be expanded
4503 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4504 do
4505 ac_preproc_ok=false
4506for ac_c_preproc_warn_flag in '' yes
4507do
4508 # Use a header file that comes with gcc, so configuring glibc
4509 # with a fresh cross-compiler works.
4510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4511 # <limits.h> exists even on freestanding compilers.
4512 # On the NeXT, cc -E runs the code through the compiler's parser,
4513 # not just through cpp. "Syntax error" is here to catch this case.
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515/* end confdefs.h. */
4516@%:@ifdef __STDC__
4517@%:@ include <limits.h>
4518@%:@else
4519@%:@ include <assert.h>
4520@%:@endif
4521 Syntax error
4522_ACEOF
4523if ac_fn_c_try_cpp "$LINENO"; then :
4524
4525else
4526 # Broken: fails on valid input.
4527continue
4528fi
4529rm -f conftest.err conftest.i conftest.$ac_ext
4530
4531 # OK, works on sane cases. Now check whether nonexistent headers
4532 # can be detected and how.
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534/* end confdefs.h. */
4535@%:@include <ac_nonexistent.h>
4536_ACEOF
4537if ac_fn_c_try_cpp "$LINENO"; then :
4538 # Broken: success on invalid input.
4539continue
4540else
4541 # Passes both tests.
4542ac_preproc_ok=:
4543break
4544fi
4545rm -f conftest.err conftest.i conftest.$ac_ext
4546
4547done
4548# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4549rm -f conftest.i conftest.err conftest.$ac_ext
4550if $ac_preproc_ok; then :
4551 break
4552fi
4553
4554 done
4555 ac_cv_prog_CPP=$CPP
4556
4557fi
4558 CPP=$ac_cv_prog_CPP
4559else
4560 ac_cv_prog_CPP=$CPP
4561fi
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4563$as_echo "$CPP" >&6; }
4564ac_preproc_ok=false
4565for ac_c_preproc_warn_flag in '' yes
4566do
4567 # Use a header file that comes with gcc, so configuring glibc
4568 # with a fresh cross-compiler works.
4569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4570 # <limits.h> exists even on freestanding compilers.
4571 # On the NeXT, cc -E runs the code through the compiler's parser,
4572 # not just through cpp. "Syntax error" is here to catch this case.
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574/* end confdefs.h. */
4575@%:@ifdef __STDC__
4576@%:@ include <limits.h>
4577@%:@else
4578@%:@ include <assert.h>
4579@%:@endif
4580 Syntax error
4581_ACEOF
4582if ac_fn_c_try_cpp "$LINENO"; then :
4583
4584else
4585 # Broken: fails on valid input.
4586continue
4587fi
4588rm -f conftest.err conftest.i conftest.$ac_ext
4589
4590 # OK, works on sane cases. Now check whether nonexistent headers
4591 # can be detected and how.
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593/* end confdefs.h. */
4594@%:@include <ac_nonexistent.h>
4595_ACEOF
4596if ac_fn_c_try_cpp "$LINENO"; then :
4597 # Broken: success on invalid input.
4598continue
4599else
4600 # Passes both tests.
4601ac_preproc_ok=:
4602break
4603fi
4604rm -f conftest.err conftest.i conftest.$ac_ext
4605
4606done
4607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4608rm -f conftest.i conftest.err conftest.$ac_ext
4609if $ac_preproc_ok; then :
4610
4611else
4612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4614as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4615See \`config.log' for more details" "$LINENO" 5 ; }
4616fi
4617
4618ac_ext=c
4619ac_cpp='$CPP $CPPFLAGS'
4620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622ac_compiler_gnu=$ac_cv_c_compiler_gnu
4623
4624@%:@ Check whether --enable-shared was given.
4625if test "${enable_shared+set}" = set; then :
4626 enableval=$enable_shared; p=${PACKAGE-default}
4627 case $enableval in
4628 yes) enable_shared=yes ;;
4629 no) enable_shared=no ;;
4630 *)
4631 enable_shared=no
4632 # Look at the argument we got. We use all the common list separators.
4633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4634 for pkg in $enableval; do
4635 IFS="$lt_save_ifs"
4636 if test "X$pkg" = "X$p"; then
4637 enable_shared=yes
4638 fi
4639 done
4640 IFS="$lt_save_ifs"
4641 ;;
4642 esac
4643else
4644 enable_shared=yes
4645fi
4646
4647
4648@%:@ Check whether --enable-static was given.
4649if test "${enable_static+set}" = set; then :
4650 enableval=$enable_static; p=${PACKAGE-default}
4651 case $enableval in
4652 yes) enable_static=yes ;;
4653 no) enable_static=no ;;
4654 *)
4655 enable_static=no
4656 # Look at the argument we got. We use all the common list separators.
4657 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4658 for pkg in $enableval; do
4659 IFS="$lt_save_ifs"
4660 if test "X$pkg" = "X$p"; then
4661 enable_static=yes
4662 fi
4663 done
4664 IFS="$lt_save_ifs"
4665 ;;
4666 esac
4667else
4668 enable_static=yes
4669fi
4670
4671
4672@%:@ Check whether --enable-fast-install was given.
4673if test "${enable_fast_install+set}" = set; then :
4674 enableval=$enable_fast_install; p=${PACKAGE-default}
4675 case $enableval in
4676 yes) enable_fast_install=yes ;;
4677 no) enable_fast_install=no ;;
4678 *)
4679 enable_fast_install=no
4680 # Look at the argument we got. We use all the common list separators.
4681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4682 for pkg in $enableval; do
4683 IFS="$lt_save_ifs"
4684 if test "X$pkg" = "X$p"; then
4685 enable_fast_install=yes
4686 fi
4687 done
4688 IFS="$lt_save_ifs"
4689 ;;
4690 esac
4691else
4692 enable_fast_install=yes
4693fi
4694
4695
4696# Make sure we can run config.sub.
4697$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4698 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4699
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4701$as_echo_n "checking build system type... " >&6; }
4702if test "${ac_cv_build+set}" = set; then :
4703 $as_echo_n "(cached) " >&6
4704else
4705 ac_build_alias=$build_alias
4706test "x$ac_build_alias" = x &&
4707 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4708test "x$ac_build_alias" = x &&
4709 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4710ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4711 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4712
4713fi
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4715$as_echo "$ac_cv_build" >&6; }
4716case $ac_cv_build in
4717*-*-*) ;;
4718*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4719esac
4720build=$ac_cv_build
4721ac_save_IFS=$IFS; IFS='-'
4722set x $ac_cv_build
4723shift
4724build_cpu=$1
4725build_vendor=$2
4726shift; shift
4727# Remember, the first character of IFS is used to create $*,
4728# except with old shells:
4729build_os=$*
4730IFS=$ac_save_IFS
4731case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4732
4733
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4735$as_echo_n "checking host system type... " >&6; }
4736if test "${ac_cv_host+set}" = set; then :
4737 $as_echo_n "(cached) " >&6
4738else
4739 if test "x$host_alias" = x; then
4740 ac_cv_host=$ac_cv_build
4741else
4742 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4743 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4744fi
4745
4746fi
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4748$as_echo "$ac_cv_host" >&6; }
4749case $ac_cv_host in
4750*-*-*) ;;
4751*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4752esac
4753host=$ac_cv_host
4754ac_save_IFS=$IFS; IFS='-'
4755set x $ac_cv_host
4756shift
4757host_cpu=$1
4758host_vendor=$2
4759shift; shift
4760# Remember, the first character of IFS is used to create $*,
4761# except with old shells:
4762host_os=$*
4763IFS=$ac_save_IFS
4764case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4765
4766
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4768$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4769if test "${lt_cv_path_SED+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4771else
4772 # Loop through the user's path and test for sed and gsed.
4773# Then use that list of sed's as ones to test for truncation.
4774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775for as_dir in $PATH
4776do
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
4779 for lt_ac_prog in sed gsed; do
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4782 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4783 fi
4784 done
4785 done
4786done
4787IFS=$as_save_IFS
4788lt_ac_max=0
4789lt_ac_count=0
4790# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4791# along with /bin/sed that truncates output.
4792for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4793 test ! -f $lt_ac_sed && continue
4794 cat /dev/null > conftest.in
4795 lt_ac_count=0
4796 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4797 # Check for GNU sed and select it if it is found.
4798 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4799 lt_cv_path_SED=$lt_ac_sed
4800 break
4801 fi
4802 while true; do
4803 cat conftest.in conftest.in >conftest.tmp
4804 mv conftest.tmp conftest.in
4805 cp conftest.in conftest.nl
4806 echo >>conftest.nl
4807 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4808 cmp -s conftest.out conftest.nl || break
4809 # 10000 chars as input seems more than enough
4810 test $lt_ac_count -gt 10 && break
4811 lt_ac_count=`expr $lt_ac_count + 1`
4812 if test $lt_ac_count -gt $lt_ac_max; then
4813 lt_ac_max=$lt_ac_count
4814 lt_cv_path_SED=$lt_ac_sed
4815 fi
4816 done
4817done
4818
4819fi
4820
4821SED=$lt_cv_path_SED
4822
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4824$as_echo "$SED" >&6; }
4825
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4827$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4828if test "${ac_cv_path_GREP+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4830else
4831 if test -z "$GREP"; then
4832 ac_path_GREP_found=false
4833 # Loop through the user's path and test for each of PROGNAME-LIST
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4836do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_prog in grep ggrep; do
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4842 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4843# Check for GNU ac_path_GREP and select it if it is found.
4844 # Check for GNU $ac_path_GREP
4845case `"$ac_path_GREP" --version 2>&1` in
4846*GNU*)
4847 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4848*)
4849 ac_count=0
4850 $as_echo_n 0123456789 >"conftest.in"
4851 while :
4852 do
4853 cat "conftest.in" "conftest.in" >"conftest.tmp"
4854 mv "conftest.tmp" "conftest.in"
4855 cp "conftest.in" "conftest.nl"
4856 $as_echo 'GREP' >> "conftest.nl"
4857 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4859 as_fn_arith $ac_count + 1 && ac_count=$as_val
4860 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4861 # Best one so far, save it but keep looking for a better one
4862 ac_cv_path_GREP="$ac_path_GREP"
4863 ac_path_GREP_max=$ac_count
4864 fi
4865 # 10*(2^10) chars as input seems more than enough
4866 test $ac_count -gt 10 && break
4867 done
4868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4869esac
4870
4871 $ac_path_GREP_found && break 3
4872 done
4873 done
4874 done
4875IFS=$as_save_IFS
4876 if test -z "$ac_cv_path_GREP"; then
4877 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4878 fi
4879else
4880 ac_cv_path_GREP=$GREP
4881fi
4882
4883fi
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4885$as_echo "$ac_cv_path_GREP" >&6; }
4886 GREP="$ac_cv_path_GREP"
4887
4888
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4890$as_echo_n "checking for egrep... " >&6; }
4891if test "${ac_cv_path_EGREP+set}" = set; then :
4892 $as_echo_n "(cached) " >&6
4893else
4894 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4895 then ac_cv_path_EGREP="$GREP -E"
4896 else
4897 if test -z "$EGREP"; then
4898 ac_path_EGREP_found=false
4899 # Loop through the user's path and test for each of PROGNAME-LIST
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4902do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_prog in egrep; do
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4908 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4909# Check for GNU ac_path_EGREP and select it if it is found.
4910 # Check for GNU $ac_path_EGREP
4911case `"$ac_path_EGREP" --version 2>&1` in
4912*GNU*)
4913 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4914*)
4915 ac_count=0
4916 $as_echo_n 0123456789 >"conftest.in"
4917 while :
4918 do
4919 cat "conftest.in" "conftest.in" >"conftest.tmp"
4920 mv "conftest.tmp" "conftest.in"
4921 cp "conftest.in" "conftest.nl"
4922 $as_echo 'EGREP' >> "conftest.nl"
4923 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925 as_fn_arith $ac_count + 1 && ac_count=$as_val
4926 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4927 # Best one so far, save it but keep looking for a better one
4928 ac_cv_path_EGREP="$ac_path_EGREP"
4929 ac_path_EGREP_max=$ac_count
4930 fi
4931 # 10*(2^10) chars as input seems more than enough
4932 test $ac_count -gt 10 && break
4933 done
4934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4935esac
4936
4937 $ac_path_EGREP_found && break 3
4938 done
4939 done
4940 done
4941IFS=$as_save_IFS
4942 if test -z "$ac_cv_path_EGREP"; then
4943 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4944 fi
4945else
4946 ac_cv_path_EGREP=$EGREP
4947fi
4948
4949 fi
4950fi
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4952$as_echo "$ac_cv_path_EGREP" >&6; }
4953 EGREP="$ac_cv_path_EGREP"
4954
4955
4956
4957@%:@ Check whether --with-gnu-ld was given.
4958if test "${with_gnu_ld+set}" = set; then :
4959 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4960else
4961 with_gnu_ld=no
4962fi
4963
4964ac_prog=ld
4965if test "$GCC" = yes; then
4966 # Check if gcc -print-prog-name=ld gives a path.
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4968$as_echo_n "checking for ld used by $CC... " >&6; }
4969 case $host in
4970 *-*-mingw*)
4971 # gcc leaves a trailing carriage return which upsets mingw
4972 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4973 *)
4974 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4975 esac
4976 case $ac_prog in
4977 # Accept absolute paths.
4978 [\\/]* | ?:[\\/]*)
4979 re_direlt='/[^/][^/]*/\.\./'
4980 # Canonicalize the pathname of ld
4981 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4982 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4983 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4984 done
4985 test -z "$LD" && LD="$ac_prog"
4986 ;;
4987 "")
4988 # If it fails, then pretend we aren't using GCC.
4989 ac_prog=ld
4990 ;;
4991 *)
4992 # If it is relative, then search for the first ld in PATH.
4993 with_gnu_ld=unknown
4994 ;;
4995 esac
4996elif test "$with_gnu_ld" = yes; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4998$as_echo_n "checking for GNU ld... " >&6; }
4999else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5001$as_echo_n "checking for non-GNU ld... " >&6; }
5002fi
5003if test "${lt_cv_path_LD+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5005else
5006 if test -z "$LD"; then
5007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5008 for ac_dir in $PATH; do
5009 IFS="$lt_save_ifs"
5010 test -z "$ac_dir" && ac_dir=.
5011 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5012 lt_cv_path_LD="$ac_dir/$ac_prog"
5013 # Check to see if the program is GNU ld. I'd rather use --version,
5014 # but apparently some variants of GNU ld only accept -v.
5015 # Break only if it was the GNU/non-GNU ld that we prefer.
5016 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5017 *GNU* | *'with BFD'*)
5018 test "$with_gnu_ld" != no && break
5019 ;;
5020 *)
5021 test "$with_gnu_ld" != yes && break
5022 ;;
5023 esac
5024 fi
5025 done
5026 IFS="$lt_save_ifs"
5027else
5028 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5029fi
5030fi
5031
5032LD="$lt_cv_path_LD"
5033if test -n "$LD"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5035$as_echo "$LD" >&6; }
5036else
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038$as_echo "no" >&6; }
5039fi
5040test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5042$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5043if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5045else
5046 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5047case `$LD -v 2>&1 </dev/null` in
5048*GNU* | *'with BFD'*)
5049 lt_cv_prog_gnu_ld=yes
5050 ;;
5051*)
5052 lt_cv_prog_gnu_ld=no
5053 ;;
5054esac
5055fi
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5057$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5058with_gnu_ld=$lt_cv_prog_gnu_ld
5059
5060
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5062$as_echo_n "checking for $LD option to reload object files... " >&6; }
5063if test "${lt_cv_ld_reload_flag+set}" = set; then :
5064 $as_echo_n "(cached) " >&6
5065else
5066 lt_cv_ld_reload_flag='-r'
5067fi
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5069$as_echo "$lt_cv_ld_reload_flag" >&6; }
5070reload_flag=$lt_cv_ld_reload_flag
5071case $reload_flag in
5072"" | " "*) ;;
5073*) reload_flag=" $reload_flag" ;;
5074esac
5075reload_cmds='$LD$reload_flag -o $output$reload_objs'
5076case $host_os in
5077 darwin*)
5078 if test "$GCC" = yes; then
5079 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5080 else
5081 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5082 fi
5083 ;;
5084esac
5085
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5087$as_echo_n "checking for BSD-compatible nm... " >&6; }
5088if test "${lt_cv_path_NM+set}" = set; then :
5089 $as_echo_n "(cached) " >&6
5090else
5091 if test -n "$NM"; then
5092 # Let the user override the test.
5093 lt_cv_path_NM="$NM"
5094else
5095 lt_nm_to_check="${ac_tool_prefix}nm"
5096 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5097 lt_nm_to_check="$lt_nm_to_check nm"
5098 fi
5099 for lt_tmp_nm in $lt_nm_to_check; do
5100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5101 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5102 IFS="$lt_save_ifs"
5103 test -z "$ac_dir" && ac_dir=.
5104 tmp_nm="$ac_dir/$lt_tmp_nm"
5105 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5106 # Check to see if the nm accepts a BSD-compat flag.
5107 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5108 # nm: unknown option "B" ignored
5109 # Tru64's nm complains that /dev/null is an invalid object file
5110 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5111 */dev/null* | *'Invalid file or object type'*)
5112 lt_cv_path_NM="$tmp_nm -B"
5113 break
5114 ;;
5115 *)
5116 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5117 */dev/null*)
5118 lt_cv_path_NM="$tmp_nm -p"
5119 break
5120 ;;
5121 *)
5122 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5123 continue # so that we can try to find one that supports BSD flags
5124 ;;
5125 esac
5126 ;;
5127 esac
5128 fi
5129 done
5130 IFS="$lt_save_ifs"
5131 done
5132 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5133fi
5134fi
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5136$as_echo "$lt_cv_path_NM" >&6; }
5137NM="$lt_cv_path_NM"
5138
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5140$as_echo_n "checking whether ln -s works... " >&6; }
5141LN_S=$as_ln_s
5142if test "$LN_S" = "ln -s"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5144$as_echo "yes" >&6; }
5145else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5147$as_echo "no, using $LN_S" >&6; }
5148fi
5149
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5151$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5152if test "${lt_cv_deplibs_check_method+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5154else
5155 lt_cv_file_magic_cmd='$MAGIC_CMD'
5156lt_cv_file_magic_test_file=
5157lt_cv_deplibs_check_method='unknown'
5158# Need to set the preceding variable on all platforms that support
5159# interlibrary dependencies.
5160# 'none' -- dependencies not supported.
5161# `unknown' -- same as none, but documents that we really don't know.
5162# 'pass_all' -- all dependencies passed with no checks.
5163# 'test_compile' -- check by making test program.
5164# 'file_magic [[regex]]' -- check by looking for files in library path
5165# which responds to the $file_magic_cmd with a given extended regex.
5166# If you have `file' or equivalent on your system and you're not sure
5167# whether `pass_all' will *always* work, you probably want this one.
5168
5169case $host_os in
5170aix[4-9]*)
5171 lt_cv_deplibs_check_method=pass_all
5172 ;;
5173
5174beos*)
5175 lt_cv_deplibs_check_method=pass_all
5176 ;;
5177
5178bsdi[45]*)
5179 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5180 lt_cv_file_magic_cmd='/usr/bin/file -L'
5181 lt_cv_file_magic_test_file=/shlib/libc.so
5182 ;;
5183
5184cygwin*)
5185 # func_win32_libid is a shell function defined in ltmain.sh
5186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5187 lt_cv_file_magic_cmd='func_win32_libid'
5188 ;;
5189
5190mingw* | pw32*)
5191 # Base MSYS/MinGW do not provide the 'file' command needed by
5192 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5193 # unless we find 'file', for example because we are cross-compiling.
5194 if ( file / ) >/dev/null 2>&1; then
5195 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5196 lt_cv_file_magic_cmd='func_win32_libid'
5197 else
5198 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5199 lt_cv_file_magic_cmd='$OBJDUMP -f'
5200 fi
5201 ;;
5202
5203darwin* | rhapsody*)
5204 lt_cv_deplibs_check_method=pass_all
5205 ;;
5206
5207freebsd* | dragonfly*)
5208 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5209 case $host_cpu in
5210 i*86 )
5211 # Not sure whether the presence of OpenBSD here was a mistake.
5212 # Let's accept both of them until this is cleared up.
5213 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5214 lt_cv_file_magic_cmd=/usr/bin/file
5215 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5216 ;;
5217 esac
5218 else
5219 lt_cv_deplibs_check_method=pass_all
5220 fi
5221 ;;
5222
5223gnu*)
5224 lt_cv_deplibs_check_method=pass_all
5225 ;;
5226
5227hpux10.20* | hpux11*)
5228 lt_cv_file_magic_cmd=/usr/bin/file
5229 case $host_cpu in
5230 ia64*)
5231 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5232 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5233 ;;
5234 hppa*64*)
5235 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]'
5236 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5237 ;;
5238 *)
5239 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5240 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5241 ;;
5242 esac
5243 ;;
5244
5245interix[3-9]*)
5246 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5248 ;;
5249
5250irix5* | irix6* | nonstopux*)
5251 case $LD in
5252 *-32|*"-32 ") libmagic=32-bit;;
5253 *-n32|*"-n32 ") libmagic=N32;;
5254 *-64|*"-64 ") libmagic=64-bit;;
5255 *) libmagic=never-match;;
5256 esac
5257 lt_cv_deplibs_check_method=pass_all
5258 ;;
5259
5260# This must be Linux ELF.
5261linux* | k*bsd*-gnu)
5262 lt_cv_deplibs_check_method=pass_all
5263 ;;
5264
5265netbsd* | netbsdelf*-gnu)
5266 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5268 else
5269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5270 fi
5271 ;;
5272
5273newos6*)
5274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5275 lt_cv_file_magic_cmd=/usr/bin/file
5276 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5277 ;;
5278
5279nto-qnx*)
5280 lt_cv_deplibs_check_method=unknown
5281 ;;
5282
5283openbsd*)
5284 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5286 else
5287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5288 fi
5289 ;;
5290
5291osf3* | osf4* | osf5*)
5292 lt_cv_deplibs_check_method=pass_all
5293 ;;
5294
5295rdos*)
5296 lt_cv_deplibs_check_method=pass_all
5297 ;;
5298
5299solaris*)
5300 lt_cv_deplibs_check_method=pass_all
5301 ;;
5302
5303sysv4 | sysv4.3*)
5304 case $host_vendor in
5305 motorola)
5306 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]'
5307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5308 ;;
5309 ncr)
5310 lt_cv_deplibs_check_method=pass_all
5311 ;;
5312 sequent)
5313 lt_cv_file_magic_cmd='/bin/file'
5314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5315 ;;
5316 sni)
5317 lt_cv_file_magic_cmd='/bin/file'
5318 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5319 lt_cv_file_magic_test_file=/lib/libc.so
5320 ;;
5321 siemens)
5322 lt_cv_deplibs_check_method=pass_all
5323 ;;
5324 pc)
5325 lt_cv_deplibs_check_method=pass_all
5326 ;;
5327 esac
5328 ;;
5329
5330sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5331 lt_cv_deplibs_check_method=pass_all
5332 ;;
5333esac
5334
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5337$as_echo "$lt_cv_deplibs_check_method" >&6; }
5338file_magic_cmd=$lt_cv_file_magic_cmd
5339deplibs_check_method=$lt_cv_deplibs_check_method
5340test -z "$deplibs_check_method" && deplibs_check_method=unknown
5341
5342
5343
5344
5345# If no C compiler was specified, use CC.
5346LTCC=${LTCC-"$CC"}
5347
5348# If no C compiler flags were specified, use CFLAGS.
5349LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5350
5351# Allow CC to be a program name with arguments.
5352compiler=$CC
5353
5354
5355@%:@ Check whether --enable-libtool-lock was given.
5356if test "${enable_libtool_lock+set}" = set; then :
5357 enableval=$enable_libtool_lock;
5358fi
5359
5360test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5361
5362# Some flags need to be propagated to the compiler or linker for good
5363# libtool support.
5364case $host in
5365ia64-*-hpux*)
5366 # Find out which ABI we are using.
5367 echo 'int i;' > conftest.$ac_ext
5368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5369 (eval $ac_compile) 2>&5
5370 ac_status=$?
5371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5372 test $ac_status = 0; }; then
5373 case `/usr/bin/file conftest.$ac_objext` in
5374 *ELF-32*)
5375 HPUX_IA64_MODE="32"
5376 ;;
5377 *ELF-64*)
5378 HPUX_IA64_MODE="64"
5379 ;;
5380 esac
5381 fi
5382 rm -rf conftest*
5383 ;;
5384*-*-irix6*)
5385 # Find out which ABI we are using.
5386 echo '#line __oline__ "configure"' > conftest.$ac_ext
5387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5388 (eval $ac_compile) 2>&5
5389 ac_status=$?
5390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5391 test $ac_status = 0; }; then
5392 if test "$lt_cv_prog_gnu_ld" = yes; then
5393 case `/usr/bin/file conftest.$ac_objext` in
5394 *32-bit*)
5395 LD="${LD-ld} -melf32bsmip"
5396 ;;
5397 *N32*)
5398 LD="${LD-ld} -melf32bmipn32"
5399 ;;
5400 *64-bit*)
5401 LD="${LD-ld} -melf64bmip"
5402 ;;
5403 esac
5404 else
5405 case `/usr/bin/file conftest.$ac_objext` in
5406 *32-bit*)
5407 LD="${LD-ld} -32"
5408 ;;
5409 *N32*)
5410 LD="${LD-ld} -n32"
5411 ;;
5412 *64-bit*)
5413 LD="${LD-ld} -64"
5414 ;;
5415 esac
5416 fi
5417 fi
5418 rm -rf conftest*
5419 ;;
5420
5421x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5422s390*-*linux*|sparc*-*linux*)
5423 # Find out which ABI we are using.
5424 echo 'int i;' > conftest.$ac_ext
5425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5426 (eval $ac_compile) 2>&5
5427 ac_status=$?
5428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5429 test $ac_status = 0; }; then
5430 case `/usr/bin/file conftest.o` in
5431 *32-bit*)
5432 case $host in
5433 x86_64-*kfreebsd*-gnu)
5434 LD="${LD-ld} -m elf_i386_fbsd"
5435 ;;
5436 x86_64-*linux*)
5437 LD="${LD-ld} -m elf_i386"
5438 ;;
5439 ppc64-*linux*|powerpc64-*linux*)
5440 LD="${LD-ld} -m elf32ppclinux"
5441 ;;
5442 s390x-*linux*)
5443 LD="${LD-ld} -m elf_s390"
5444 ;;
5445 sparc64-*linux*)
5446 LD="${LD-ld} -m elf32_sparc"
5447 ;;
5448 esac
5449 ;;
5450 *64-bit*)
5451 case $host in
5452 x86_64-*kfreebsd*-gnu)
5453 LD="${LD-ld} -m elf_x86_64_fbsd"
5454 ;;
5455 x86_64-*linux*)
5456 LD="${LD-ld} -m elf_x86_64"
5457 ;;
5458 ppc*-*linux*|powerpc*-*linux*)
5459 LD="${LD-ld} -m elf64ppc"
5460 ;;
5461 s390*-*linux*)
5462 LD="${LD-ld} -m elf64_s390"
5463 ;;
5464 sparc*-*linux*)
5465 LD="${LD-ld} -m elf64_sparc"
5466 ;;
5467 esac
5468 ;;
5469 esac
5470 fi
5471 rm -rf conftest*
5472 ;;
5473
5474*-*-sco3.2v5*)
5475 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5476 SAVE_CFLAGS="$CFLAGS"
5477 CFLAGS="$CFLAGS -belf"
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5479$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5480if test "${lt_cv_cc_needs_belf+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5482else
5483 ac_ext=c
5484ac_cpp='$CPP $CPPFLAGS'
5485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487ac_compiler_gnu=$ac_cv_c_compiler_gnu
5488
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490/* end confdefs.h. */
5491
5492int
5493main ()
5494{
5495
5496 ;
5497 return 0;
5498}
5499_ACEOF
5500if ac_fn_c_try_link "$LINENO"; then :
5501 lt_cv_cc_needs_belf=yes
5502else
5503 lt_cv_cc_needs_belf=no
5504fi
5505rm -f core conftest.err conftest.$ac_objext \
5506 conftest$ac_exeext conftest.$ac_ext
5507 ac_ext=c
5508ac_cpp='$CPP $CPPFLAGS'
5509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5511ac_compiler_gnu=$ac_cv_c_compiler_gnu
5512
5513fi
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5515$as_echo "$lt_cv_cc_needs_belf" >&6; }
5516 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5517 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5518 CFLAGS="$SAVE_CFLAGS"
5519 fi
5520 ;;
5521sparc*-*solaris*)
5522 # Find out which ABI we are using.
5523 echo 'int i;' > conftest.$ac_ext
5524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5525 (eval $ac_compile) 2>&5
5526 ac_status=$?
5527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5528 test $ac_status = 0; }; then
5529 case `/usr/bin/file conftest.o` in
5530 *64-bit*)
5531 case $lt_cv_prog_gnu_ld in
5532 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5533 *)
5534 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5535 LD="${LD-ld} -64"
5536 fi
5537 ;;
5538 esac
5539 ;;
5540 esac
5541 fi
5542 rm -rf conftest*
5543 ;;
5544
5545
5546esac
5547
5548need_locks="$enable_libtool_lock"
5549
5550
5551
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5553$as_echo_n "checking for ANSI C header files... " >&6; }
5554if test "${ac_cv_header_stdc+set}" = set; then :
5555 $as_echo_n "(cached) " >&6
5556else
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558/* end confdefs.h. */
5559#include <stdlib.h>
5560#include <stdarg.h>
5561#include <string.h>
5562#include <float.h>
5563
5564int
5565main ()
5566{
5567
5568 ;
5569 return 0;
5570}
5571_ACEOF
5572if ac_fn_c_try_compile "$LINENO"; then :
5573 ac_cv_header_stdc=yes
5574else
5575 ac_cv_header_stdc=no
5576fi
5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578
5579if test $ac_cv_header_stdc = yes; then
5580 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582/* end confdefs.h. */
5583#include <string.h>
5584
5585_ACEOF
5586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5587 $EGREP "memchr" >/dev/null 2>&1; then :
5588
5589else
5590 ac_cv_header_stdc=no
5591fi
5592rm -f conftest*
5593
5594fi
5595
5596if test $ac_cv_header_stdc = yes; then
5597 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599/* end confdefs.h. */
5600#include <stdlib.h>
5601
5602_ACEOF
5603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5604 $EGREP "free" >/dev/null 2>&1; then :
5605
5606else
5607 ac_cv_header_stdc=no
5608fi
5609rm -f conftest*
5610
5611fi
5612
5613if test $ac_cv_header_stdc = yes; then
5614 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5615 if test "$cross_compiling" = yes; then :
5616 :
5617else
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619/* end confdefs.h. */
5620#include <ctype.h>
5621#include <stdlib.h>
5622#if ((' ' & 0x0FF) == 0x020)
5623# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5624# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5625#else
5626# define ISLOWER(c) \
5627 (('a' <= (c) && (c) <= 'i') \
5628 || ('j' <= (c) && (c) <= 'r') \
5629 || ('s' <= (c) && (c) <= 'z'))
5630# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5631#endif
5632
5633#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5634int
5635main ()
5636{
5637 int i;
5638 for (i = 0; i < 256; i++)
5639 if (XOR (islower (i), ISLOWER (i))
5640 || toupper (i) != TOUPPER (i))
5641 return 2;
5642 return 0;
5643}
5644_ACEOF
5645if ac_fn_c_try_run "$LINENO"; then :
5646
5647else
5648 ac_cv_header_stdc=no
5649fi
5650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5651 conftest.$ac_objext conftest.beam conftest.$ac_ext
5652fi
5653
5654fi
5655fi
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5657$as_echo "$ac_cv_header_stdc" >&6; }
5658if test $ac_cv_header_stdc = yes; then
5659
5660$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
5661
5662fi
5663
5664# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5665for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5666 inttypes.h stdint.h unistd.h
5667do :
5668 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5669ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5670"
5671if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5672 cat >>confdefs.h <<_ACEOF
5673@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5674_ACEOF
5675
5676fi
5677
5678done
5679
5680
5681for ac_header in dlfcn.h
5682do :
5683 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5684if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5685 cat >>confdefs.h <<_ACEOF
5686@%:@define HAVE_DLFCN_H 1
5687_ACEOF
5688
5689fi
5690
5691done
5692
5693
5694
5695if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5696 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5697 (test "X$CXX" != "Xg++"))) ; then
5698 ac_ext=cpp
5699ac_cpp='$CXXCPP $CPPFLAGS'
5700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5704$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5705if test -z "$CXXCPP"; then
5706 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5707 $as_echo_n "(cached) " >&6
5708else
5709 # Double quotes because CXXCPP needs to be expanded
5710 for CXXCPP in "$CXX -E" "/lib/cpp"
5711 do
5712 ac_preproc_ok=false
5713for ac_cxx_preproc_warn_flag in '' yes
5714do
5715 # Use a header file that comes with gcc, so configuring glibc
5716 # with a fresh cross-compiler works.
5717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5718 # <limits.h> exists even on freestanding compilers.
5719 # On the NeXT, cc -E runs the code through the compiler's parser,
5720 # not just through cpp. "Syntax error" is here to catch this case.
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h. */
5723@%:@ifdef __STDC__
5724@%:@ include <limits.h>
5725@%:@else
5726@%:@ include <assert.h>
5727@%:@endif
5728 Syntax error
5729_ACEOF
5730if ac_fn_cxx_try_cpp "$LINENO"; then :
5731
5732else
5733 # Broken: fails on valid input.
5734continue
5735fi
5736rm -f conftest.err conftest.i conftest.$ac_ext
5737
5738 # OK, works on sane cases. Now check whether nonexistent headers
5739 # can be detected and how.
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741/* end confdefs.h. */
5742@%:@include <ac_nonexistent.h>
5743_ACEOF
5744if ac_fn_cxx_try_cpp "$LINENO"; then :
5745 # Broken: success on invalid input.
5746continue
5747else
5748 # Passes both tests.
5749ac_preproc_ok=:
5750break
5751fi
5752rm -f conftest.err conftest.i conftest.$ac_ext
5753
5754done
5755# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5756rm -f conftest.i conftest.err conftest.$ac_ext
5757if $ac_preproc_ok; then :
5758 break
5759fi
5760
5761 done
5762 ac_cv_prog_CXXCPP=$CXXCPP
5763
5764fi
5765 CXXCPP=$ac_cv_prog_CXXCPP
5766else
5767 ac_cv_prog_CXXCPP=$CXXCPP
5768fi
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5770$as_echo "$CXXCPP" >&6; }
5771ac_preproc_ok=false
5772for ac_cxx_preproc_warn_flag in '' yes
5773do
5774 # Use a header file that comes with gcc, so configuring glibc
5775 # with a fresh cross-compiler works.
5776 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5777 # <limits.h> exists even on freestanding compilers.
5778 # On the NeXT, cc -E runs the code through the compiler's parser,
5779 # not just through cpp. "Syntax error" is here to catch this case.
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781/* end confdefs.h. */
5782@%:@ifdef __STDC__
5783@%:@ include <limits.h>
5784@%:@else
5785@%:@ include <assert.h>
5786@%:@endif
5787 Syntax error
5788_ACEOF
5789if ac_fn_cxx_try_cpp "$LINENO"; then :
5790
5791else
5792 # Broken: fails on valid input.
5793continue
5794fi
5795rm -f conftest.err conftest.i conftest.$ac_ext
5796
5797 # OK, works on sane cases. Now check whether nonexistent headers
5798 # can be detected and how.
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800/* end confdefs.h. */
5801@%:@include <ac_nonexistent.h>
5802_ACEOF
5803if ac_fn_cxx_try_cpp "$LINENO"; then :
5804 # Broken: success on invalid input.
5805continue
5806else
5807 # Passes both tests.
5808ac_preproc_ok=:
5809break
5810fi
5811rm -f conftest.err conftest.i conftest.$ac_ext
5812
5813done
5814# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5815rm -f conftest.i conftest.err conftest.$ac_ext
5816if $ac_preproc_ok; then :
5817
5818else
5819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5821as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5822See \`config.log' for more details" "$LINENO" 5 ; }
5823fi
5824
5825ac_ext=cpp
5826ac_cpp='$CXXCPP $CPPFLAGS'
5827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5830
5831fi
5832
5833
5834ac_ext=f
5835ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5836ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5837ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5838if test -n "$ac_tool_prefix"; then
5839 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 pgfortran pgf95 lf95 ftn
5840 do
5841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5842set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844$as_echo_n "checking for $ac_word... " >&6; }
5845if test "${ac_cv_prog_F77+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5847else
5848 if test -n "$F77"; then
5849 ac_cv_prog_F77="$F77" # Let the user override the test.
5850else
5851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852for as_dir in $PATH
5853do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862done
5863 done
5864IFS=$as_save_IFS
5865
5866fi
5867fi
5868F77=$ac_cv_prog_F77
5869if test -n "$F77"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5871$as_echo "$F77" >&6; }
5872else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874$as_echo "no" >&6; }
5875fi
5876
5877
5878 test -n "$F77" && break
5879 done
5880fi
5881if test -z "$F77"; then
5882 ac_ct_F77=$F77
5883 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 pgfortran pgf95 lf95 ftn
5884do
5885 # Extract the first word of "$ac_prog", so it can be a program name with args.
5886set dummy $ac_prog; ac_word=$2
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888$as_echo_n "checking for $ac_word... " >&6; }
5889if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
5890 $as_echo_n "(cached) " >&6
5891else
5892 if test -n "$ac_ct_F77"; then
5893 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5894else
5895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896for as_dir in $PATH
5897do
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_ac_ct_F77="$ac_prog"
5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 break 2
5905 fi
5906done
5907 done
5908IFS=$as_save_IFS
5909
5910fi
5911fi
5912ac_ct_F77=$ac_cv_prog_ac_ct_F77
5913if test -n "$ac_ct_F77"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5915$as_echo "$ac_ct_F77" >&6; }
5916else
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918$as_echo "no" >&6; }
5919fi
5920
5921
5922 test -n "$ac_ct_F77" && break
5923done
5924
5925 if test "x$ac_ct_F77" = x; then
5926 F77=""
5927 else
5928 case $cross_compiling:$ac_tool_warned in
5929yes:)
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5932ac_tool_warned=yes ;;
5933esac
5934 F77=$ac_ct_F77
5935 fi
5936fi
5937
5938
5939# Provide some information about the compiler.
5940$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5941set X $ac_compile
5942ac_compiler=$2
5943for ac_option in --version -v -V -qversion; do
5944 { { ac_try="$ac_compiler $ac_option >&5"
5945case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948esac
5949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5950$as_echo "$ac_try_echo"; } >&5
5951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5952 ac_status=$?
5953 if test -s conftest.err; then
5954 sed '10a\
5955... rest of stderr output deleted ...
5956 10q' conftest.err >conftest.er1
5957 cat conftest.er1 >&5
5958 fi
5959 rm -f conftest.er1 conftest.err
5960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5961 test $ac_status = 0; }
5962done
5963rm -f a.out
5964
5965# If we don't use `.F' as extension, the preprocessor is not run on the
5966# input file. (Note that this only needs to work for GNU compilers.)
5967ac_save_ext=$ac_ext
5968ac_ext=F
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5970$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5971if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5973else
5974 cat > conftest.$ac_ext <<_ACEOF
5975 program main
5976#ifndef __GNUC__
5977 choke me
5978#endif
5979
5980 end
5981_ACEOF
5982if ac_fn_f77_try_compile "$LINENO"; then :
5983 ac_compiler_gnu=yes
5984else
5985 ac_compiler_gnu=no
5986fi
5987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5989
5990fi
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5992$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5993ac_ext=$ac_save_ext
5994ac_test_FFLAGS=${FFLAGS+set}
5995ac_save_FFLAGS=$FFLAGS
5996FFLAGS=
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5998$as_echo_n "checking whether $F77 accepts -g... " >&6; }
5999if test "${ac_cv_prog_f77_g+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001else
6002 FFLAGS=-g
6003cat > conftest.$ac_ext <<_ACEOF
6004 program main
6005
6006 end
6007_ACEOF
6008if ac_fn_f77_try_compile "$LINENO"; then :
6009 ac_cv_prog_f77_g=yes
6010else
6011 ac_cv_prog_f77_g=no
6012fi
6013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6014
6015fi
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6017$as_echo "$ac_cv_prog_f77_g" >&6; }
6018if test "$ac_test_FFLAGS" = set; then
6019 FFLAGS=$ac_save_FFLAGS
6020elif test $ac_cv_prog_f77_g = yes; then
6021 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6022 FFLAGS="-g -O2"
6023 else
6024 FFLAGS="-g"
6025 fi
6026else
6027 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6028 FFLAGS="-O2"
6029 else
6030 FFLAGS=
6031 fi
6032fi
6033
6034if test $ac_compiler_gnu = yes; then
6035 G77=yes
6036else
6037 G77=
6038fi
6039ac_ext=c
6040ac_cpp='$CPP $CPPFLAGS'
6041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043ac_compiler_gnu=$ac_cv_c_compiler_gnu
6044
6045
6046
6047# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6048# find the maximum length of command line arguments
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6050$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6051if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6052 $as_echo_n "(cached) " >&6
6053else
6054 i=0
6055 teststring="ABCD"
6056
6057 case $build_os in
6058 msdosdjgpp*)
6059 # On DJGPP, this test can blow up pretty badly due to problems in libc
6060 # (any single argument exceeding 2000 bytes causes a buffer overrun
6061 # during glob expansion). Even if it were fixed, the result of this
6062 # check would be larger than it should be.
6063 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6064 ;;
6065
6066 gnu*)
6067 # Under GNU Hurd, this test is not required because there is
6068 # no limit to the length of command line arguments.
6069 # Libtool will interpret -1 as no limit whatsoever
6070 lt_cv_sys_max_cmd_len=-1;
6071 ;;
6072
6073 cygwin* | mingw*)
6074 # On Win9x/ME, this test blows up -- it succeeds, but takes
6075 # about 5 minutes as the teststring grows exponentially.
6076 # Worse, since 9x/ME are not pre-emptively multitasking,
6077 # you end up with a "frozen" computer, even though with patience
6078 # the test eventually succeeds (with a max line length of 256k).
6079 # Instead, let's just punt: use the minimum linelength reported by
6080 # all of the supported platforms: 8192 (on NT/2K/XP).
6081 lt_cv_sys_max_cmd_len=8192;
6082 ;;
6083
6084 amigaos*)
6085 # On AmigaOS with pdksh, this test takes hours, literally.
6086 # So we just punt and use a minimum line length of 8192.
6087 lt_cv_sys_max_cmd_len=8192;
6088 ;;
6089
6090 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6091 # This has been around since 386BSD, at least. Likely further.
6092 if test -x /sbin/sysctl; then
6093 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6094 elif test -x /usr/sbin/sysctl; then
6095 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6096 else
6097 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6098 fi
6099 # And add a safety zone
6100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6102 ;;
6103
6104 interix*)
6105 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6106 lt_cv_sys_max_cmd_len=196608
6107 ;;
6108
6109 osf*)
6110 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6111 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6112 # nice to cause kernel panics so lets avoid the loop below.
6113 # First set a reasonable default.
6114 lt_cv_sys_max_cmd_len=16384
6115 #
6116 if test -x /sbin/sysconfig; then
6117 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6118 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6119 esac
6120 fi
6121 ;;
6122 sco3.2v5*)
6123 lt_cv_sys_max_cmd_len=102400
6124 ;;
6125 sysv5* | sco5v6* | sysv4.2uw2*)
6126 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6127 if test -n "$kargmax"; then
6128 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6129 else
6130 lt_cv_sys_max_cmd_len=32768
6131 fi
6132 ;;
6133 *)
6134 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6135 if test -n "$lt_cv_sys_max_cmd_len"; then
6136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6138 else
6139 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6140 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6141 = "XX$teststring") >/dev/null 2>&1 &&
6142 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6143 lt_cv_sys_max_cmd_len=$new_result &&
6144 test $i != 17 # 1/2 MB should be enough
6145 do
6146 i=`expr $i + 1`
6147 teststring=$teststring$teststring
6148 done
6149 teststring=
6150 # Add a significant safety factor because C++ compilers can tack on massive
6151 # amounts of additional arguments before passing them to the linker.
6152 # It appears as though 1/2 is a usable value.
6153 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6154 fi
6155 ;;
6156 esac
6157
6158fi
6159
6160if test -n $lt_cv_sys_max_cmd_len ; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6162$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6163else
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6165$as_echo "none" >&6; }
6166fi
6167
6168
6169
6170
6171
6172# Check for command to grab the raw symbol name followed by C symbol from nm.
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6174$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6175if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6176 $as_echo_n "(cached) " >&6
6177else
6178
6179# These are sane defaults that work on at least a few old systems.
6180# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6181
6182# Character class describing NM global symbol codes.
6183symcode='[BCDEGRST]'
6184
6185# Regexp to match symbols that can be accessed directly from C.
6186sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6187
6188# Transform an extracted symbol line into a proper C declaration
6189lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6190
6191# Transform an extracted symbol line into symbol name and symbol address
6192lt_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'"
6193
6194# Define system-specific variables.
6195case $host_os in
6196aix*)
6197 symcode='[BCDT]'
6198 ;;
6199cygwin* | mingw* | pw32*)
6200 symcode='[ABCDGISTW]'
6201 ;;
6202hpux*) # Its linker distinguishes data from code symbols
6203 if test "$host_cpu" = ia64; then
6204 symcode='[ABCDEGRST]'
6205 fi
6206 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6207 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'"
6208 ;;
6209linux* | k*bsd*-gnu)
6210 if test "$host_cpu" = ia64; then
6211 symcode='[ABCDGIRSTW]'
6212 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6213 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'"
6214 fi
6215 ;;
6216irix* | nonstopux*)
6217 symcode='[BCDEGRST]'
6218 ;;
6219osf*)
6220 symcode='[BCDEGQRST]'
6221 ;;
6222solaris*)
6223 symcode='[BDRT]'
6224 ;;
6225sco3.2v5*)
6226 symcode='[DT]'
6227 ;;
6228sysv4.2uw2*)
6229 symcode='[DT]'
6230 ;;
6231sysv5* | sco5v6* | unixware* | OpenUNIX*)
6232 symcode='[ABDT]'
6233 ;;
6234sysv4)
6235 symcode='[DFNSTU]'
6236 ;;
6237esac
6238
6239# Handle CRLF in mingw tool chain
6240opt_cr=
6241case $build_os in
6242mingw*)
6243 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6244 ;;
6245esac
6246
6247# If we're using GNU nm, then use its standard symbol codes.
6248case `$NM -V 2>&1` in
6249*GNU* | *'with BFD'*)
6250 symcode='[ABCDGIRSTW]' ;;
6251esac
6252
6253# Try without a prefix undercore, then with it.
6254for ac_symprfx in "" "_"; do
6255
6256 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6257 symxfrm="\\1 $ac_symprfx\\2 \\2"
6258
6259 # Write the raw and C identifiers.
6260 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6261
6262 # Check to see that the pipe works correctly.
6263 pipe_works=no
6264
6265 rm -f conftest*
6266 cat > conftest.$ac_ext <<EOF
6267#ifdef __cplusplus
6268extern "C" {
6269#endif
6270char nm_test_var;
6271void nm_test_func(){}
6272#ifdef __cplusplus
6273}
6274#endif
6275int main(){nm_test_var='a';nm_test_func();return(0);}
6276EOF
6277
6278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6279 (eval $ac_compile) 2>&5
6280 ac_status=$?
6281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6282 test $ac_status = 0; }; then
6283 # Now try to grab the symbols.
6284 nlist=conftest.nm
6285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6286 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6287 ac_status=$?
6288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6289 test $ac_status = 0; } && test -s "$nlist"; then
6290 # Try sorting and uniquifying the output.
6291 if sort "$nlist" | uniq > "$nlist"T; then
6292 mv -f "$nlist"T "$nlist"
6293 else
6294 rm -f "$nlist"T
6295 fi
6296
6297 # Make sure that we snagged all the symbols we need.
6298 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6299 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6300 cat <<EOF > conftest.$ac_ext
6301#ifdef __cplusplus
6302extern "C" {
6303#endif
6304
6305EOF
6306 # Now generate the symbol file.
6307 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6308
6309 cat <<EOF >> conftest.$ac_ext
6310#if defined (__STDC__) && __STDC__
6311# define lt_ptr_t void *
6312#else
6313# define lt_ptr_t char *
6314# define const
6315#endif
6316
6317/* The mapping between symbol names and symbols. */
6318const struct {
6319 const char *name;
6320 lt_ptr_t address;
6321}
6322lt_preloaded_symbols[] =
6323{
6324EOF
6325 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6326 cat <<\EOF >> conftest.$ac_ext
6327 {0, (lt_ptr_t) 0}
6328};
6329
6330#ifdef __cplusplus
6331}
6332#endif
6333EOF
6334 # Now try linking the two files.
6335 mv conftest.$ac_objext conftstm.$ac_objext
6336 lt_save_LIBS="$LIBS"
6337 lt_save_CFLAGS="$CFLAGS"
6338 LIBS="conftstm.$ac_objext"
6339 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6341 (eval $ac_link) 2>&5
6342 ac_status=$?
6343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6344 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6345 pipe_works=yes
6346 fi
6347 LIBS="$lt_save_LIBS"
6348 CFLAGS="$lt_save_CFLAGS"
6349 else
6350 echo "cannot find nm_test_func in $nlist" >&5
6351 fi
6352 else
6353 echo "cannot find nm_test_var in $nlist" >&5
6354 fi
6355 else
6356 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6357 fi
6358 else
6359 echo "$progname: failed program was:" >&5
6360 cat conftest.$ac_ext >&5
6361 fi
6362 rm -rf conftest* conftst*
6363
6364 # Do not use the global_symbol_pipe unless it works.
6365 if test "$pipe_works" = yes; then
6366 break
6367 else
6368 lt_cv_sys_global_symbol_pipe=
6369 fi
6370done
6371
6372fi
6373
6374if test -z "$lt_cv_sys_global_symbol_pipe"; then
6375 lt_cv_sys_global_symbol_to_cdecl=
6376fi
6377if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6379$as_echo "failed" >&6; }
6380else
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6382$as_echo "ok" >&6; }
6383fi
6384
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6386$as_echo_n "checking for objdir... " >&6; }
6387if test "${lt_cv_objdir+set}" = set; then :
6388 $as_echo_n "(cached) " >&6
6389else
6390 rm -f .libs 2>/dev/null
6391mkdir .libs 2>/dev/null
6392if test -d .libs; then
6393 lt_cv_objdir=.libs
6394else
6395 # MS-DOS does not allow filenames that begin with a dot.
6396 lt_cv_objdir=_libs
6397fi
6398rmdir .libs 2>/dev/null
6399fi
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6401$as_echo "$lt_cv_objdir" >&6; }
6402objdir=$lt_cv_objdir
6403
6404
6405
6406
6407
6408case $host_os in
6409aix3*)
6410 # AIX sometimes has problems with the GCC collect2 program. For some
6411 # reason, if we set the COLLECT_NAMES environment variable, the problems
6412 # vanish in a puff of smoke.
6413 if test "X${COLLECT_NAMES+set}" != Xset; then
6414 COLLECT_NAMES=
6415 export COLLECT_NAMES
6416 fi
6417 ;;
6418esac
6419
6420# Sed substitution that helps us do robust quoting. It backslashifies
6421# metacharacters that are still active within double-quoted strings.
6422Xsed='sed -e 1s/^X//'
6423sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6424
6425# Same as above, but do not quote variable references.
6426double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6427
6428# Sed substitution to delay expansion of an escaped shell variable in a
6429# double_quote_subst'ed string.
6430delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6431
6432# Sed substitution to avoid accidental globbing in evaled expressions
6433no_glob_subst='s/\*/\\\*/g'
6434
6435# Constants:
6436rm="rm -f"
6437
6438# Global variables:
6439default_ofile=libtool
6440can_build_shared=yes
6441
6442# All known linkers require a `.a' archive for static linking (except MSVC,
6443# which needs '.lib').
6444libext=a
6445ltmain="$ac_aux_dir/ltmain.sh"
6446ofile="$default_ofile"
6447with_gnu_ld="$lt_cv_prog_gnu_ld"
6448
6449if test -n "$ac_tool_prefix"; then
6450 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6451set dummy ${ac_tool_prefix}ar; ac_word=$2
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453$as_echo_n "checking for $ac_word... " >&6; }
6454if test "${ac_cv_prog_AR+set}" = set; then :
6455 $as_echo_n "(cached) " >&6
6456else
6457 if test -n "$AR"; then
6458 ac_cv_prog_AR="$AR" # Let the user override the test.
6459else
6460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461for as_dir in $PATH
6462do
6463 IFS=$as_save_IFS
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6467 ac_cv_prog_AR="${ac_tool_prefix}ar"
6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 break 2
6470 fi
6471done
6472 done
6473IFS=$as_save_IFS
6474
6475fi
6476fi
6477AR=$ac_cv_prog_AR
6478if test -n "$AR"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6480$as_echo "$AR" >&6; }
6481else
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483$as_echo "no" >&6; }
6484fi
6485
6486
6487fi
6488if test -z "$ac_cv_prog_AR"; then
6489 ac_ct_AR=$AR
6490 # Extract the first word of "ar", so it can be a program name with args.
6491set dummy ar; ac_word=$2
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493$as_echo_n "checking for $ac_word... " >&6; }
6494if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6495 $as_echo_n "(cached) " >&6
6496else
6497 if test -n "$ac_ct_AR"; then
6498 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6499else
6500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501for as_dir in $PATH
6502do
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6507 ac_cv_prog_ac_ct_AR="ar"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6510 fi
6511done
6512 done
6513IFS=$as_save_IFS
6514
6515fi
6516fi
6517ac_ct_AR=$ac_cv_prog_ac_ct_AR
6518if test -n "$ac_ct_AR"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6520$as_echo "$ac_ct_AR" >&6; }
6521else
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523$as_echo "no" >&6; }
6524fi
6525
6526 if test "x$ac_ct_AR" = x; then
6527 AR="false"
6528 else
6529 case $cross_compiling:$ac_tool_warned in
6530yes:)
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6533ac_tool_warned=yes ;;
6534esac
6535 AR=$ac_ct_AR
6536 fi
6537else
6538 AR="$ac_cv_prog_AR"
6539fi
6540
6541if test -n "$ac_tool_prefix"; then
6542 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6543set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545$as_echo_n "checking for $ac_word... " >&6; }
6546if test "${ac_cv_prog_RANLIB+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6548else
6549 if test -n "$RANLIB"; then
6550 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6551else
6552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH
6554do
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563done
6564 done
6565IFS=$as_save_IFS
6566
6567fi
6568fi
6569RANLIB=$ac_cv_prog_RANLIB
6570if test -n "$RANLIB"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6572$as_echo "$RANLIB" >&6; }
6573else
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575$as_echo "no" >&6; }
6576fi
6577
6578
6579fi
6580if test -z "$ac_cv_prog_RANLIB"; then
6581 ac_ct_RANLIB=$RANLIB
6582 # Extract the first word of "ranlib", so it can be a program name with args.
6583set dummy ranlib; ac_word=$2
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585$as_echo_n "checking for $ac_word... " >&6; }
6586if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6588else
6589 if test -n "$ac_ct_RANLIB"; then
6590 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6591else
6592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593for as_dir in $PATH
6594do
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6599 ac_cv_prog_ac_ct_RANLIB="ranlib"
6600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6602 fi
6603done
6604 done
6605IFS=$as_save_IFS
6606
6607fi
6608fi
6609ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6610if test -n "$ac_ct_RANLIB"; then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6612$as_echo "$ac_ct_RANLIB" >&6; }
6613else
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615$as_echo "no" >&6; }
6616fi
6617
6618 if test "x$ac_ct_RANLIB" = x; then
6619 RANLIB=":"
6620 else
6621 case $cross_compiling:$ac_tool_warned in
6622yes:)
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6625ac_tool_warned=yes ;;
6626esac
6627 RANLIB=$ac_ct_RANLIB
6628 fi
6629else
6630 RANLIB="$ac_cv_prog_RANLIB"
6631fi
6632
6633if test -n "$ac_tool_prefix"; then
6634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6635set dummy ${ac_tool_prefix}strip; ac_word=$2
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637$as_echo_n "checking for $ac_word... " >&6; }
6638if test "${ac_cv_prog_STRIP+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
6640else
6641 if test -n "$STRIP"; then
6642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6643else
6644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645for as_dir in $PATH
6646do
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6654 fi
6655done
6656 done
6657IFS=$as_save_IFS
6658
6659fi
6660fi
6661STRIP=$ac_cv_prog_STRIP
6662if test -n "$STRIP"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6664$as_echo "$STRIP" >&6; }
6665else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667$as_echo "no" >&6; }
6668fi
6669
6670
6671fi
6672if test -z "$ac_cv_prog_STRIP"; then
6673 ac_ct_STRIP=$STRIP
6674 # Extract the first word of "strip", so it can be a program name with args.
6675set dummy strip; ac_word=$2
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677$as_echo_n "checking for $ac_word... " >&6; }
6678if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6679 $as_echo_n "(cached) " >&6
6680else
6681 if test -n "$ac_ct_STRIP"; then
6682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6683else
6684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685for as_dir in $PATH
6686do
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6691 ac_cv_prog_ac_ct_STRIP="strip"
6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 break 2
6694 fi
6695done
6696 done
6697IFS=$as_save_IFS
6698
6699fi
6700fi
6701ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6702if test -n "$ac_ct_STRIP"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6704$as_echo "$ac_ct_STRIP" >&6; }
6705else
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707$as_echo "no" >&6; }
6708fi
6709
6710 if test "x$ac_ct_STRIP" = x; then
6711 STRIP=":"
6712 else
6713 case $cross_compiling:$ac_tool_warned in
6714yes:)
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6717ac_tool_warned=yes ;;
6718esac
6719 STRIP=$ac_ct_STRIP
6720 fi
6721else
6722 STRIP="$ac_cv_prog_STRIP"
6723fi
6724
6725
6726old_CC="$CC"
6727old_CFLAGS="$CFLAGS"
6728
6729# Set sane defaults for various variables
6730test -z "$AR" && AR=ar
6731test -z "$AR_FLAGS" && AR_FLAGS=cru
6732test -z "$AS" && AS=as
6733test -z "$CC" && CC=cc
6734test -z "$LTCC" && LTCC=$CC
6735test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6736test -z "$DLLTOOL" && DLLTOOL=dlltool
6737test -z "$LD" && LD=ld
6738test -z "$LN_S" && LN_S="ln -s"
6739test -z "$MAGIC_CMD" && MAGIC_CMD=file
6740test -z "$NM" && NM=nm
6741test -z "$SED" && SED=sed
6742test -z "$OBJDUMP" && OBJDUMP=objdump
6743test -z "$RANLIB" && RANLIB=:
6744test -z "$STRIP" && STRIP=:
6745test -z "$ac_objext" && ac_objext=o
6746
6747# Determine commands to create old-style static archives.
6748old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6749old_postinstall_cmds='chmod 644 $oldlib'
6750old_postuninstall_cmds=
6751
6752if test -n "$RANLIB"; then
6753 case $host_os in
6754 openbsd*)
6755 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6756 ;;
6757 *)
6758 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6759 ;;
6760 esac
6761 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6762fi
6763
6764for cc_temp in $compiler""; do
6765 case $cc_temp in
6766 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6767 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6768 \-*) ;;
6769 *) break;;
6770 esac
6771done
6772cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6773
6774
6775# Only perform the check for file, if the check method requires it
6776case $deplibs_check_method in
6777file_magic*)
6778 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6780$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6781if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6782 $as_echo_n "(cached) " >&6
6783else
6784 case $MAGIC_CMD in
6785[\\/*] | ?:[\\/]*)
6786 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6787 ;;
6788*)
6789 lt_save_MAGIC_CMD="$MAGIC_CMD"
6790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6791 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6792 for ac_dir in $ac_dummy; do
6793 IFS="$lt_save_ifs"
6794 test -z "$ac_dir" && ac_dir=.
6795 if test -f $ac_dir/${ac_tool_prefix}file; then
6796 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6797 if test -n "$file_magic_test_file"; then
6798 case $deplibs_check_method in
6799 "file_magic "*)
6800 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6802 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6803 $EGREP "$file_magic_regex" > /dev/null; then
6804 :
6805 else
6806 cat <<EOF 1>&2
6807
6808*** Warning: the command libtool uses to detect shared libraries,
6809*** $file_magic_cmd, produces output that libtool cannot recognize.
6810*** The result is that libtool may fail to recognize shared libraries
6811*** as such. This will affect the creation of libtool libraries that
6812*** depend on shared libraries, but programs linked with such libtool
6813*** libraries will work regardless of this problem. Nevertheless, you
6814*** may want to report the problem to your system manager and/or to
6815*** bug-libtool@gnu.org
6816
6817EOF
6818 fi ;;
6819 esac
6820 fi
6821 break
6822 fi
6823 done
6824 IFS="$lt_save_ifs"
6825 MAGIC_CMD="$lt_save_MAGIC_CMD"
6826 ;;
6827esac
6828fi
6829
6830MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6831if test -n "$MAGIC_CMD"; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6833$as_echo "$MAGIC_CMD" >&6; }
6834else
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836$as_echo "no" >&6; }
6837fi
6838
6839if test -z "$lt_cv_path_MAGIC_CMD"; then
6840 if test -n "$ac_tool_prefix"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6842$as_echo_n "checking for file... " >&6; }
6843if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6844 $as_echo_n "(cached) " >&6
6845else
6846 case $MAGIC_CMD in
6847[\\/*] | ?:[\\/]*)
6848 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6849 ;;
6850*)
6851 lt_save_MAGIC_CMD="$MAGIC_CMD"
6852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6853 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6854 for ac_dir in $ac_dummy; do
6855 IFS="$lt_save_ifs"
6856 test -z "$ac_dir" && ac_dir=.
6857 if test -f $ac_dir/file; then
6858 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6859 if test -n "$file_magic_test_file"; then
6860 case $deplibs_check_method in
6861 "file_magic "*)
6862 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6863 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6864 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6865 $EGREP "$file_magic_regex" > /dev/null; then
6866 :
6867 else
6868 cat <<EOF 1>&2
6869
6870*** Warning: the command libtool uses to detect shared libraries,
6871*** $file_magic_cmd, produces output that libtool cannot recognize.
6872*** The result is that libtool may fail to recognize shared libraries
6873*** as such. This will affect the creation of libtool libraries that
6874*** depend on shared libraries, but programs linked with such libtool
6875*** libraries will work regardless of this problem. Nevertheless, you
6876*** may want to report the problem to your system manager and/or to
6877*** bug-libtool@gnu.org
6878
6879EOF
6880 fi ;;
6881 esac
6882 fi
6883 break
6884 fi
6885 done
6886 IFS="$lt_save_ifs"
6887 MAGIC_CMD="$lt_save_MAGIC_CMD"
6888 ;;
6889esac
6890fi
6891
6892MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6893if test -n "$MAGIC_CMD"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6895$as_echo "$MAGIC_CMD" >&6; }
6896else
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898$as_echo "no" >&6; }
6899fi
6900
6901 else
6902 MAGIC_CMD=:
6903 fi
6904fi
6905
6906 fi
6907 ;;
6908esac
6909
6910
6911 case $host_os in
6912 rhapsody* | darwin*)
6913 if test -n "$ac_tool_prefix"; then
6914 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6915set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917$as_echo_n "checking for $ac_word... " >&6; }
6918if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6920else
6921 if test -n "$DSYMUTIL"; then
6922 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6923else
6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925for as_dir in $PATH
6926do
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6931 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6934 fi
6935done
6936 done
6937IFS=$as_save_IFS
6938
6939fi
6940fi
6941DSYMUTIL=$ac_cv_prog_DSYMUTIL
6942if test -n "$DSYMUTIL"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6944$as_echo "$DSYMUTIL" >&6; }
6945else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947$as_echo "no" >&6; }
6948fi
6949
6950
6951fi
6952if test -z "$ac_cv_prog_DSYMUTIL"; then
6953 ac_ct_DSYMUTIL=$DSYMUTIL
6954 # Extract the first word of "dsymutil", so it can be a program name with args.
6955set dummy dsymutil; ac_word=$2
6956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957$as_echo_n "checking for $ac_word... " >&6; }
6958if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6960else
6961 if test -n "$ac_ct_DSYMUTIL"; then
6962 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6963else
6964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6971 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6974 fi
6975done
6976 done
6977IFS=$as_save_IFS
6978
6979fi
6980fi
6981ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6982if test -n "$ac_ct_DSYMUTIL"; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6984$as_echo "$ac_ct_DSYMUTIL" >&6; }
6985else
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987$as_echo "no" >&6; }
6988fi
6989
6990 if test "x$ac_ct_DSYMUTIL" = x; then
6991 DSYMUTIL=":"
6992 else
6993 case $cross_compiling:$ac_tool_warned in
6994yes:)
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6997ac_tool_warned=yes ;;
6998esac
6999 DSYMUTIL=$ac_ct_DSYMUTIL
7000 fi
7001else
7002 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7003fi
7004
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7007set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009$as_echo_n "checking for $ac_word... " >&6; }
7010if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7011 $as_echo_n "(cached) " >&6
7012else
7013 if test -n "$NMEDIT"; then
7014 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7015else
7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017for as_dir in $PATH
7018do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027done
7028 done
7029IFS=$as_save_IFS
7030
7031fi
7032fi
7033NMEDIT=$ac_cv_prog_NMEDIT
7034if test -n "$NMEDIT"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7036$as_echo "$NMEDIT" >&6; }
7037else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039$as_echo "no" >&6; }
7040fi
7041
7042
7043fi
7044if test -z "$ac_cv_prog_NMEDIT"; then
7045 ac_ct_NMEDIT=$NMEDIT
7046 # Extract the first word of "nmedit", so it can be a program name with args.
7047set dummy nmedit; ac_word=$2
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049$as_echo_n "checking for $ac_word... " >&6; }
7050if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7051 $as_echo_n "(cached) " >&6
7052else
7053 if test -n "$ac_ct_NMEDIT"; then
7054 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7055else
7056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057for as_dir in $PATH
7058do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067done
7068 done
7069IFS=$as_save_IFS
7070
7071fi
7072fi
7073ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7074if test -n "$ac_ct_NMEDIT"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7076$as_echo "$ac_ct_NMEDIT" >&6; }
7077else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079$as_echo "no" >&6; }
7080fi
7081
7082 if test "x$ac_ct_NMEDIT" = x; then
7083 NMEDIT=":"
7084 else
7085 case $cross_compiling:$ac_tool_warned in
7086yes:)
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089ac_tool_warned=yes ;;
7090esac
7091 NMEDIT=$ac_ct_NMEDIT
7092 fi
7093else
7094 NMEDIT="$ac_cv_prog_NMEDIT"
7095fi
7096
7097
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7099$as_echo_n "checking for -single_module linker flag... " >&6; }
7100if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7101 $as_echo_n "(cached) " >&6
7102else
7103 lt_cv_apple_cc_single_mod=no
7104 if test -z "${LT_MULTI_MODULE}"; then
7105 # By default we will add the -single_module flag. You can override
7106 # by either setting the environment variable LT_MULTI_MODULE
7107 # non-empty at configure time, or by adding -multi_module to the
7108 # link flags.
7109 echo "int foo(void){return 1;}" > conftest.c
7110 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7111 -dynamiclib ${wl}-single_module conftest.c
7112 if test -f libconftest.dylib; then
7113 lt_cv_apple_cc_single_mod=yes
7114 rm -rf libconftest.dylib*
7115 fi
7116 rm conftest.c
7117 fi
7118fi
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7120$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7122$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7123if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7125else
7126 lt_cv_ld_exported_symbols_list=no
7127 save_LDFLAGS=$LDFLAGS
7128 echo "_main" > conftest.sym
7129 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131/* end confdefs.h. */
7132
7133int
7134main ()
7135{
7136
7137 ;
7138 return 0;
7139}
7140_ACEOF
7141if ac_fn_c_try_link "$LINENO"; then :
7142 lt_cv_ld_exported_symbols_list=yes
7143else
7144 lt_cv_ld_exported_symbols_list=no
7145fi
7146rm -f core conftest.err conftest.$ac_objext \
7147 conftest$ac_exeext conftest.$ac_ext
7148 LDFLAGS="$save_LDFLAGS"
7149
7150fi
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7152$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7153 case $host_os in
7154 rhapsody* | darwin1.[0123])
7155 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7156 darwin1.*)
7157 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7158 darwin*)
7159 # if running on 10.5 or later, the deployment target defaults
7160 # to the OS version, if on x86, and 10.4, the deployment
7161 # target defaults to 10.4. Don't you love it?
7162 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7163 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7164 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7165 10.[012]*)
7166 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7167 10.*)
7168 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7169 esac
7170 ;;
7171 esac
7172 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7173 _lt_dar_single_mod='$single_module'
7174 fi
7175 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7176 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7177 else
7178 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7179 fi
7180 if test "$DSYMUTIL" != ":"; then
7181 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7182 else
7183 _lt_dsymutil=
7184 fi
7185 ;;
7186 esac
7187
7188
7189enable_dlopen=no
7190enable_win32_dll=no
7191
7192@%:@ Check whether --enable-libtool-lock was given.
7193if test "${enable_libtool_lock+set}" = set; then :
7194 enableval=$enable_libtool_lock;
7195fi
7196
7197test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7198
7199
7200@%:@ Check whether --with-pic was given.
7201if test "${with_pic+set}" = set; then :
7202 withval=$with_pic; pic_mode="$withval"
7203else
7204 pic_mode=default
7205fi
7206
7207test -z "$pic_mode" && pic_mode=default
7208
7209# Use C for the default configuration in the libtool script
7210tagname=
7211lt_save_CC="$CC"
7212ac_ext=c
7213ac_cpp='$CPP $CPPFLAGS'
7214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7216ac_compiler_gnu=$ac_cv_c_compiler_gnu
7217
7218
7219# Source file extension for C test sources.
7220ac_ext=c
7221
7222# Object file extension for compiled C test sources.
7223objext=o
7224objext=$objext
7225
7226# Code to be used in simple compile tests
7227lt_simple_compile_test_code="int some_variable = 0;"
7228
7229# Code to be used in simple link tests
7230lt_simple_link_test_code='int main(){return(0);}'
7231
7232
7233# If no C compiler was specified, use CC.
7234LTCC=${LTCC-"$CC"}
7235
7236# If no C compiler flags were specified, use CFLAGS.
7237LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7238
7239# Allow CC to be a program name with arguments.
7240compiler=$CC
7241
7242
7243# save warnings/boilerplate of simple test code
7244ac_outfile=conftest.$ac_objext
7245echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7246eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7247_lt_compiler_boilerplate=`cat conftest.err`
7248$rm conftest*
7249
7250ac_outfile=conftest.$ac_objext
7251echo "$lt_simple_link_test_code" >conftest.$ac_ext
7252eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7253_lt_linker_boilerplate=`cat conftest.err`
7254$rm -r conftest*
7255
7256
7257
7258lt_prog_compiler_no_builtin_flag=
7259
7260if test "$GCC" = yes; then
7261 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7262
7263
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7265$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7266if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7267 $as_echo_n "(cached) " >&6
7268else
7269 lt_cv_prog_compiler_rtti_exceptions=no
7270 ac_outfile=conftest.$ac_objext
7271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7272 lt_compiler_flag="-fno-rtti -fno-exceptions"
7273 # Insert the option either (1) after the last *FLAGS variable, or
7274 # (2) before a word containing "conftest.", or (3) at the end.
7275 # Note that $ac_compile itself does not contain backslashes and begins
7276 # with a dollar sign (not a hyphen), so the echo should work correctly.
7277 # The option is referenced via a variable to avoid confusing sed.
7278 lt_compile=`echo "$ac_compile" | $SED \
7279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7281 -e 's:$: $lt_compiler_flag:'`
7282 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7283 (eval "$lt_compile" 2>conftest.err)
7284 ac_status=$?
7285 cat conftest.err >&5
7286 echo "$as_me:__oline__: \$? = $ac_status" >&5
7287 if (exit $ac_status) && test -s "$ac_outfile"; then
7288 # The compiler can only warn and ignore the option if not recognized
7289 # So say no if there are warnings other than the usual output.
7290 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7291 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7292 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7293 lt_cv_prog_compiler_rtti_exceptions=yes
7294 fi
7295 fi
7296 $rm conftest*
7297
7298fi
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7300$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7301
7302if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7303 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7304else
7305 :
7306fi
7307
7308fi
7309
7310lt_prog_compiler_wl=
7311lt_prog_compiler_pic=
7312lt_prog_compiler_static=
7313
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7315$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7316
7317 if test "$GCC" = yes; then
7318 lt_prog_compiler_wl='-Wl,'
7319 lt_prog_compiler_static='-static'
7320
7321 case $host_os in
7322 aix*)
7323 # All AIX code is PIC.
7324 if test "$host_cpu" = ia64; then
7325 # AIX 5 now supports IA64 processor
7326 lt_prog_compiler_static='-Bstatic'
7327 fi
7328 ;;
7329
7330 amigaos*)
7331 # FIXME: we need at least 68020 code to build shared libraries, but
7332 # adding the `-m68020' flag to GCC prevents building anything better,
7333 # like `-m68040'.
7334 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7335 ;;
7336
7337 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7338 # PIC is the default for these OSes.
7339 ;;
7340
7341 mingw* | cygwin* | pw32* | os2*)
7342 # This hack is so that the source file can tell whether it is being
7343 # built for inclusion in a dll (and should export symbols for example).
7344 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7345 # (--disable-auto-import) libraries
7346 lt_prog_compiler_pic='-DDLL_EXPORT'
7347 ;;
7348
7349 darwin* | rhapsody*)
7350 # PIC is the default on this platform
7351 # Common symbols not allowed in MH_DYLIB files
7352 lt_prog_compiler_pic='-fno-common'
7353 ;;
7354
7355 interix[3-9]*)
7356 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7357 # Instead, we relocate shared libraries at runtime.
7358 ;;
7359
7360 msdosdjgpp*)
7361 # Just because we use GCC doesn't mean we suddenly get shared libraries
7362 # on systems that don't support them.
7363 lt_prog_compiler_can_build_shared=no
7364 enable_shared=no
7365 ;;
7366
7367 sysv4*MP*)
7368 if test -d /usr/nec; then
7369 lt_prog_compiler_pic=-Kconform_pic
7370 fi
7371 ;;
7372
7373 hpux*)
7374 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7375 # not for PA HP-UX.
7376 case $host_cpu in
7377 hppa*64*|ia64*)
7378 # +Z the default
7379 ;;
7380 *)
7381 lt_prog_compiler_pic='-fPIC'
7382 ;;
7383 esac
7384 ;;
7385
7386 *)
7387 lt_prog_compiler_pic='-fPIC'
7388 ;;
7389 esac
7390 else
7391 # PORTME Check for flag to pass linker flags through the system compiler.
7392 case $host_os in
7393 aix*)
7394 lt_prog_compiler_wl='-Wl,'
7395 if test "$host_cpu" = ia64; then
7396 # AIX 5 now supports IA64 processor
7397 lt_prog_compiler_static='-Bstatic'
7398 else
7399 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7400 fi
7401 ;;
7402 darwin*)
7403 # PIC is the default on this platform
7404 # Common symbols not allowed in MH_DYLIB files
7405 case $cc_basename in
7406 xlc*)
7407 lt_prog_compiler_pic='-qnocommon'
7408 lt_prog_compiler_wl='-Wl,'
7409 ;;
7410 esac
7411 ;;
7412
7413 mingw* | cygwin* | pw32* | os2*)
7414 # This hack is so that the source file can tell whether it is being
7415 # built for inclusion in a dll (and should export symbols for example).
7416 lt_prog_compiler_pic='-DDLL_EXPORT'
7417 ;;
7418
7419 hpux9* | hpux10* | hpux11*)
7420 lt_prog_compiler_wl='-Wl,'
7421 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7422 # not for PA HP-UX.
7423 case $host_cpu in
7424 hppa*64*|ia64*)
7425 # +Z the default
7426 ;;
7427 *)
7428 lt_prog_compiler_pic='+Z'
7429 ;;
7430 esac
7431 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7432 lt_prog_compiler_static='${wl}-a ${wl}archive'
7433 ;;
7434
7435 irix5* | irix6* | nonstopux*)
7436 lt_prog_compiler_wl='-Wl,'
7437 # PIC (with -KPIC) is the default.
7438 lt_prog_compiler_static='-non_shared'
7439 ;;
7440
7441 newsos6)
7442 lt_prog_compiler_pic='-KPIC'
7443 lt_prog_compiler_static='-Bstatic'
7444 ;;
7445
7446 linux* | k*bsd*-gnu)
7447 case $cc_basename in
7448 icc* | ecc*)
7449 lt_prog_compiler_wl='-Wl,'
7450 lt_prog_compiler_pic='-KPIC'
7451 lt_prog_compiler_static='-static'
7452 ;;
7453 pgcc* | pgf77* | pgf90* | pgf95*)
7454 # Portland Group compilers (*not* the Pentium gcc compiler,
7455 # which looks to be a dead project)
7456 lt_prog_compiler_wl='-Wl,'
7457 lt_prog_compiler_pic='-fpic'
7458 lt_prog_compiler_static='-Bstatic'
7459 ;;
7460 ccc*)
7461 lt_prog_compiler_wl='-Wl,'
7462 # All Alpha code is PIC.
7463 lt_prog_compiler_static='-non_shared'
7464 ;;
7465 *)
7466 case `$CC -V 2>&1 | sed 5q` in
7467 *Sun\ C*)
7468 # Sun C 5.9
7469 lt_prog_compiler_pic='-KPIC'
7470 lt_prog_compiler_static='-Bstatic'
7471 lt_prog_compiler_wl='-Wl,'
7472 ;;
7473 *Sun\ F*)
7474 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7475 lt_prog_compiler_pic='-KPIC'
7476 lt_prog_compiler_static='-Bstatic'
7477 lt_prog_compiler_wl=''
7478 ;;
7479 esac
7480 ;;
7481 esac
7482 ;;
7483
7484 osf3* | osf4* | osf5*)
7485 lt_prog_compiler_wl='-Wl,'
7486 # All OSF/1 code is PIC.
7487 lt_prog_compiler_static='-non_shared'
7488 ;;
7489
7490 rdos*)
7491 lt_prog_compiler_static='-non_shared'
7492 ;;
7493
7494 solaris*)
7495 lt_prog_compiler_pic='-KPIC'
7496 lt_prog_compiler_static='-Bstatic'
7497 case $cc_basename in
7498 f77* | f90* | f95*)
7499 lt_prog_compiler_wl='-Qoption ld ';;
7500 *)
7501 lt_prog_compiler_wl='-Wl,';;
7502 esac
7503 ;;
7504
7505 sunos4*)
7506 lt_prog_compiler_wl='-Qoption ld '
7507 lt_prog_compiler_pic='-PIC'
7508 lt_prog_compiler_static='-Bstatic'
7509 ;;
7510
7511 sysv4 | sysv4.2uw2* | sysv4.3*)
7512 lt_prog_compiler_wl='-Wl,'
7513 lt_prog_compiler_pic='-KPIC'
7514 lt_prog_compiler_static='-Bstatic'
7515 ;;
7516
7517 sysv4*MP*)
7518 if test -d /usr/nec ;then
7519 lt_prog_compiler_pic='-Kconform_pic'
7520 lt_prog_compiler_static='-Bstatic'
7521 fi
7522 ;;
7523
7524 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7525 lt_prog_compiler_wl='-Wl,'
7526 lt_prog_compiler_pic='-KPIC'
7527 lt_prog_compiler_static='-Bstatic'
7528 ;;
7529
7530 unicos*)
7531 lt_prog_compiler_wl='-Wl,'
7532 lt_prog_compiler_can_build_shared=no
7533 ;;
7534
7535 uts4*)
7536 lt_prog_compiler_pic='-pic'
7537 lt_prog_compiler_static='-Bstatic'
7538 ;;
7539
7540 *)
7541 lt_prog_compiler_can_build_shared=no
7542 ;;
7543 esac
7544 fi
7545
7546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7547$as_echo "$lt_prog_compiler_pic" >&6; }
7548
7549#
7550# Check to make sure the PIC flag actually works.
7551#
7552if test -n "$lt_prog_compiler_pic"; then
7553
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7555$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7556if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7558else
7559 lt_cv_prog_compiler_pic_works=no
7560 ac_outfile=conftest.$ac_objext
7561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7562 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7563 # Insert the option either (1) after the last *FLAGS variable, or
7564 # (2) before a word containing "conftest.", or (3) at the end.
7565 # Note that $ac_compile itself does not contain backslashes and begins
7566 # with a dollar sign (not a hyphen), so the echo should work correctly.
7567 # The option is referenced via a variable to avoid confusing sed.
7568 lt_compile=`echo "$ac_compile" | $SED \
7569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7571 -e 's:$: $lt_compiler_flag:'`
7572 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7573 (eval "$lt_compile" 2>conftest.err)
7574 ac_status=$?
7575 cat conftest.err >&5
7576 echo "$as_me:__oline__: \$? = $ac_status" >&5
7577 if (exit $ac_status) && test -s "$ac_outfile"; then
7578 # The compiler can only warn and ignore the option if not recognized
7579 # So say no if there are warnings other than the usual output.
7580 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7582 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7583 lt_cv_prog_compiler_pic_works=yes
7584 fi
7585 fi
7586 $rm conftest*
7587
7588fi
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7590$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7591
7592if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7593 case $lt_prog_compiler_pic in
7594 "" | " "*) ;;
7595 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7596 esac
7597else
7598 lt_prog_compiler_pic=
7599 lt_prog_compiler_can_build_shared=no
7600fi
7601
7602fi
7603case $host_os in
7604 # For platforms which do not support PIC, -DPIC is meaningless:
7605 *djgpp*)
7606 lt_prog_compiler_pic=
7607 ;;
7608 *)
7609 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7610 ;;
7611esac
7612
7613#
7614# Check to make sure the static flag actually works.
7615#
7616wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7618$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7619if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7620 $as_echo_n "(cached) " >&6
7621else
7622 lt_cv_prog_compiler_static_works=no
7623 save_LDFLAGS="$LDFLAGS"
7624 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7625 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7626 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7627 # The linker can only warn and ignore the option if not recognized
7628 # So say no if there are warnings
7629 if test -s conftest.err; then
7630 # Append any errors to the config.log.
7631 cat conftest.err 1>&5
7632 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7634 if diff conftest.exp conftest.er2 >/dev/null; then
7635 lt_cv_prog_compiler_static_works=yes
7636 fi
7637 else
7638 lt_cv_prog_compiler_static_works=yes
7639 fi
7640 fi
7641 $rm -r conftest*
7642 LDFLAGS="$save_LDFLAGS"
7643
7644fi
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7646$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7647
7648if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7649 :
7650else
7651 lt_prog_compiler_static=
7652fi
7653
7654
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7656$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7657if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7658 $as_echo_n "(cached) " >&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
7665 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 \
7673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7675 -e 's:$: $lt_compiler_flag:'`
7676 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7677 (eval "$lt_compile" 2>out/conftest.err)
7678 ac_status=$?
7679 cat out/conftest.err >&5
7680 echo "$as_me:__oline__: \$? = $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
7685 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7686 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7687 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
7691 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{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7703$as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7710$as_echo_n "checking if we can lock with hard links... " >&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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7718$as_echo "$hard_links" >&6; }
7719 if test "$hard_links" = no; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7721$as_echo "$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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7729$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&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'.
7760 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.
7766 # Exclude shared library initialization/finalization symbols.
7767 extract_expsyms_cmds=
7768 # Just being paranoid about ensuring that cc_basename is set.
7769 for cc_temp in $compiler""; do
7770 case $cc_temp in
7771 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7772 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7773 \-*) ;;
7774 *) break;;
7775 esac
7776done
7777cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7778
7779 case $host_os in
7780 cygwin* | mingw* | pw32*)
7781 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7782 # When not using gcc, we currently assume that we are using
7783 # Microsoft Visual C++.
7784 if test "$GCC" != yes; then
7785 with_gnu_ld=no
7786 fi
7787 ;;
7788 interix*)
7789 # we just hope/assume this is gcc and not c89 (= MSVC++)
7790 with_gnu_ld=yes
7791 ;;
7792 openbsd*)
7793 with_gnu_ld=no
7794 ;;
7795 esac
7796
7797 ld_shlibs=yes
7798 if test "$with_gnu_ld" = yes; then
7799 # If archive_cmds runs LD, not CC, wlarc should be empty
7800 wlarc='${wl}'
7801
7802 # Set some defaults for GNU ld with shared library support. These
7803 # are reset later if shared libraries are not supported. Putting them
7804 # here allows them to be overridden if necessary.
7805 runpath_var=LD_RUN_PATH
7806 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7807 export_dynamic_flag_spec='${wl}--export-dynamic'
7808 # ancient GNU ld didn't support --whole-archive et. al.
7809 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7810 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7811 else
7812 whole_archive_flag_spec=
7813 fi
7814 supports_anon_versioning=no
7815 case `$LD -v 2>/dev/null` in
7816 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7817 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7818 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7819 *\ 2.11.*) ;; # other 2.11 versions
7820 *) supports_anon_versioning=yes ;;
7821 esac
7822
7823 # See if GNU ld supports shared libraries.
7824 case $host_os in
7825 aix[3-9]*)
7826 # On AIX/PPC, the GNU linker is very broken
7827 if test "$host_cpu" != ia64; then
7828 ld_shlibs=no
7829 cat <<EOF 1>&2
7830
7831*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7832*** to be unable to reliably create shared libraries on AIX.
7833*** Therefore, libtool is disabling shared libraries support. If you
7834*** really care for shared libraries, you may want to modify your PATH
7835*** so that a non-GNU linker is found, and then restart.
7836
7837EOF
7838 fi
7839 ;;
7840
7841 amigaos*)
7842 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)'
7843 hardcode_libdir_flag_spec='-L$libdir'
7844 hardcode_minus_L=yes
7845
7846 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7847 # that the semantics of dynamic libraries on AmigaOS, at least up
7848 # to version 4, is to share data among multiple programs linked
7849 # with the same dynamic library. Since this doesn't match the
7850 # behavior of shared libraries on other platforms, we can't use
7851 # them.
7852 ld_shlibs=no
7853 ;;
7854
7855 beos*)
7856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7857 allow_undefined_flag=unsupported
7858 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7859 # support --undefined. This deserves some investigation. FIXME
7860 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7861 else
7862 ld_shlibs=no
7863 fi
7864 ;;
7865
7866 cygwin* | mingw* | pw32*)
7867 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7868 # as there is no search path for DLLs.
7869 hardcode_libdir_flag_spec='-L$libdir'
7870 allow_undefined_flag=unsupported
7871 always_export_symbols=no
7872 enable_shared_with_static_runtimes=yes
7873 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7874
7875 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7877 # If the export-symbols file already is a .def file (1st line
7878 # is EXPORTS), use it as is; otherwise, prepend...
7879 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7880 cp $export_symbols $output_objdir/$soname.def;
7881 else
7882 echo EXPORTS > $output_objdir/$soname.def;
7883 cat $export_symbols >> $output_objdir/$soname.def;
7884 fi~
7885 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7886 else
7887 ld_shlibs=no
7888 fi
7889 ;;
7890
7891 interix[3-9]*)
7892 hardcode_direct=no
7893 hardcode_shlibpath_var=no
7894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7895 export_dynamic_flag_spec='${wl}-E'
7896 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7897 # Instead, shared libraries are loaded at an image base (0x10000000 by
7898 # default) and relocated if they conflict, which is a slow very memory
7899 # consuming and fragmenting process. To avoid this, we pick a random,
7900 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7901 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7903 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'
7904 ;;
7905
7906 gnu* | linux* | k*bsd*-gnu)
7907 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7908 tmp_addflag=
7909 case $cc_basename,$host_cpu in
7910 pgcc*) # Portland Group C compiler
7911 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'
7912 tmp_addflag=' $pic_flag'
7913 ;;
7914 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7915 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'
7916 tmp_addflag=' $pic_flag -Mnomain' ;;
7917 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7918 tmp_addflag=' -i_dynamic' ;;
7919 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7920 tmp_addflag=' -i_dynamic -nofor_main' ;;
7921 ifc* | ifort*) # Intel Fortran compiler
7922 tmp_addflag=' -nofor_main' ;;
7923 esac
7924 case `$CC -V 2>&1 | sed 5q` in
7925 *Sun\ C*) # Sun C 5.9
7926 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'
7927 tmp_sharedflag='-G' ;;
7928 *Sun\ F*) # Sun Fortran 8.3
7929 tmp_sharedflag='-G' ;;
7930 *)
7931 tmp_sharedflag='-shared' ;;
7932 esac
7933 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7934
7935 if test $supports_anon_versioning = yes; then
7936 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7938 $echo "local: *; };" >> $output_objdir/$libname.ver~
7939 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7940 fi
7941 link_all_deplibs=no
7942 else
7943 ld_shlibs=no
7944 fi
7945 ;;
7946
7947 netbsd* | netbsdelf*-gnu)
7948 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7949 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7950 wlarc=
7951 else
7952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7954 fi
7955 ;;
7956
7957 solaris*)
7958 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7959 ld_shlibs=no
7960 cat <<EOF 1>&2
7961
7962*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7963*** create shared libraries on Solaris systems. Therefore, libtool
7964*** is disabling shared libraries support. We urge you to upgrade GNU
7965*** binutils to release 2.9.1 or newer. Another option is to modify
7966*** your PATH or compiler configuration so that the native linker is
7967*** used, and then restart.
7968
7969EOF
7970 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7972 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7973 else
7974 ld_shlibs=no
7975 fi
7976 ;;
7977
7978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7979 case `$LD -v 2>&1` in
7980 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7981 ld_shlibs=no
7982 cat <<_LT_EOF 1>&2
7983
7984*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7985*** reliably create shared libraries on SCO systems. Therefore, libtool
7986*** is disabling shared libraries support. We urge you to upgrade GNU
7987*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7988*** your PATH or compiler configuration so that the native linker is
7989*** used, and then restart.
7990
7991_LT_EOF
7992 ;;
7993 *)
7994 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7995 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7998 else
7999 ld_shlibs=no
8000 fi
8001 ;;
8002 esac
8003 ;;
8004
8005 sunos4*)
8006 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8007 wlarc=
8008 hardcode_direct=yes
8009 hardcode_shlibpath_var=no
8010 ;;
8011
8012 *)
8013 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8015 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8016 else
8017 ld_shlibs=no
8018 fi
8019 ;;
8020 esac
8021
8022 if test "$ld_shlibs" = no; then
8023 runpath_var=
8024 hardcode_libdir_flag_spec=
8025 export_dynamic_flag_spec=
8026 whole_archive_flag_spec=
8027 fi
8028 else
8029 # PORTME fill in a description of your system's linker (not GNU ld)
8030 case $host_os in
8031 aix3*)
8032 allow_undefined_flag=unsupported
8033 always_export_symbols=yes
8034 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'
8035 # Note: this linker hardcodes the directories in LIBPATH if there
8036 # are no directories specified by -L.
8037 hardcode_minus_L=yes
8038 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8039 # Neither direct hardcoding nor static linking is supported with a
8040 # broken collect2.
8041 hardcode_direct=unsupported
8042 fi
8043 ;;
8044
8045 aix[4-9]*)
8046 if test "$host_cpu" = ia64; then
8047 # On IA64, the linker does run time linking by default, so we don't
8048 # have to do anything special.
8049 aix_use_runtimelinking=no
8050 exp_sym_flag='-Bexport'
8051 no_entry_flag=""
8052 else
8053 # If we're using GNU nm, then we don't want the "-C" option.
8054 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8055 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8056 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'
8057 else
8058 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'
8059 fi
8060 aix_use_runtimelinking=no
8061
8062 # Test if we are trying to use run time linking or normal
8063 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8064 # need to do runtime linking.
8065 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8066 for ld_flag in $LDFLAGS; do
8067 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8068 aix_use_runtimelinking=yes
8069 break
8070 fi
8071 done
8072 ;;
8073 esac
8074
8075 exp_sym_flag='-bexport'
8076 no_entry_flag='-bnoentry'
8077 fi
8078
8079 # When large executables or shared objects are built, AIX ld can
8080 # have problems creating the table of contents. If linking a library
8081 # or program results in "error TOC overflow" add -mminimal-toc to
8082 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8083 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8084
8085 archive_cmds=''
8086 hardcode_direct=yes
8087 hardcode_libdir_separator=':'
8088 link_all_deplibs=yes
8089
8090 if test "$GCC" = yes; then
8091 case $host_os in aix4.[012]|aix4.[012].*)
8092 # We only want to do this on AIX 4.2 and lower, the check
8093 # below for broken collect2 doesn't work under 4.3+
8094 collect2name=`${CC} -print-prog-name=collect2`
8095 if test -f "$collect2name" && \
8096 strings "$collect2name" | grep resolve_lib_name >/dev/null
8097 then
8098 # We have reworked collect2
8099 :
8100 else
8101 # We have old collect2
8102 hardcode_direct=unsupported
8103 # It fails to find uninstalled libraries when the uninstalled
8104 # path is not listed in the libpath. Setting hardcode_minus_L
8105 # to unsupported forces relinking
8106 hardcode_minus_L=yes
8107 hardcode_libdir_flag_spec='-L$libdir'
8108 hardcode_libdir_separator=
8109 fi
8110 ;;
8111 esac
8112 shared_flag='-shared'
8113 if test "$aix_use_runtimelinking" = yes; then
8114 shared_flag="$shared_flag "'${wl}-G'
8115 fi
8116 else
8117 # not using gcc
8118 if test "$host_cpu" = ia64; then
8119 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8120 # chokes on -Wl,-G. The following line is correct:
8121 shared_flag='-G'
8122 else
8123 if test "$aix_use_runtimelinking" = yes; then
8124 shared_flag='${wl}-G'
8125 else
8126 shared_flag='${wl}-bM:SRE'
8127 fi
8128 fi
8129 fi
8130
8131 # It seems that -bexpall does not export symbols beginning with
8132 # underscore (_), so it is better to generate a list of symbols to export.
8133 always_export_symbols=yes
8134 if test "$aix_use_runtimelinking" = yes; then
8135 # Warning - without using the other runtime loading flags (-brtl),
8136 # -berok will link without error, but may produce a broken library.
8137 allow_undefined_flag='-berok'
8138 # Determine the default libpath from the value encoded in an empty executable.
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140/* end confdefs.h. */
8141
8142int
8143main ()
8144{
8145
8146 ;
8147 return 0;
8148}
8149_ACEOF
8150if ac_fn_c_try_link "$LINENO"; then :
8151
8152lt_aix_libpath_sed='
8153 /Import File Strings/,/^$/ {
8154 /^0/ {
8155 s/^0 *\(.*\)$/\1/
8156 p
8157 }
8158 }'
8159aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8160# Check for a 64-bit object if we didn't find anything.
8161if test -z "$aix_libpath"; then
8162 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8163fi
8164fi
8165rm -f core conftest.err conftest.$ac_objext \
8166 conftest$ac_exeext conftest.$ac_ext
8167if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8168
8169 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8170 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"
8171 else
8172 if test "$host_cpu" = ia64; then
8173 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8174 allow_undefined_flag="-z nodefs"
8175 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"
8176 else
8177 # Determine the default libpath from the value encoded in an empty executable.
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179/* end confdefs.h. */
8180
8181int
8182main ()
8183{
8184
8185 ;
8186 return 0;
8187}
8188_ACEOF
8189if ac_fn_c_try_link "$LINENO"; then :
8190
8191lt_aix_libpath_sed='
8192 /Import File Strings/,/^$/ {
8193 /^0/ {
8194 s/^0 *\(.*\)$/\1/
8195 p
8196 }
8197 }'
8198aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8199# Check for a 64-bit object if we didn't find anything.
8200if test -z "$aix_libpath"; then
8201 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8202fi
8203fi
8204rm -f core conftest.err conftest.$ac_objext \
8205 conftest$ac_exeext conftest.$ac_ext
8206if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8207
8208 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8209 # Warning - without using the other run time loading flags,
8210 # -berok will link without error, but may produce a broken library.
8211 no_undefined_flag=' ${wl}-bernotok'
8212 allow_undefined_flag=' ${wl}-berok'
8213 # Exported symbols can be pulled into shared objects from archives
8214 whole_archive_flag_spec='$convenience'
8215 archive_cmds_need_lc=yes
8216 # This is similar to how AIX traditionally builds its shared libraries.
8217 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'
8218 fi
8219 fi
8220 ;;
8221
8222 amigaos*)
8223 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)'
8224 hardcode_libdir_flag_spec='-L$libdir'
8225 hardcode_minus_L=yes
8226 # see comment about different semantics on the GNU ld section
8227 ld_shlibs=no
8228 ;;
8229
8230 bsdi[45]*)
8231 export_dynamic_flag_spec=-rdynamic
8232 ;;
8233
8234 cygwin* | mingw* | pw32*)
8235 # When not using gcc, we currently assume that we are using
8236 # Microsoft Visual C++.
8237 # hardcode_libdir_flag_spec is actually meaningless, as there is
8238 # no search path for DLLs.
8239 hardcode_libdir_flag_spec=' '
8240 allow_undefined_flag=unsupported
8241 # Tell ltmain to make .lib files, not .a files.
8242 libext=lib
8243 # Tell ltmain to make .dll files, not .so files.
8244 shrext_cmds=".dll"
8245 # FIXME: Setting linknames here is a bad hack.
8246 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8247 # The linker will automatically build a .lib file if we build a DLL.
8248 old_archive_From_new_cmds='true'
8249 # FIXME: Should let the user specify the lib program.
8250 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8251 fix_srcfile_path='`cygpath -w "$srcfile"`'
8252 enable_shared_with_static_runtimes=yes
8253 ;;
8254
8255 darwin* | rhapsody*)
8256 case $host_os in
8257 rhapsody* | darwin1.[012])
8258 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8259 ;;
8260 *) # Darwin 1.3 on
8261 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8262 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8263 else
8264 case ${MACOSX_DEPLOYMENT_TARGET} in
8265 10.[012])
8266 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8267 ;;
8268 10.*)
8269 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8270 ;;
8271 esac
8272 fi
8273 ;;
8274 esac
8275 archive_cmds_need_lc=no
8276 hardcode_direct=no
8277 hardcode_automatic=yes
8278 hardcode_shlibpath_var=unsupported
8279 whole_archive_flag_spec=''
8280 link_all_deplibs=yes
8281 if test "$GCC" = yes ; then
8282 output_verbose_link_cmd='echo'
8283 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8284 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8285 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}"
8286 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}"
8287 else
8288 case $cc_basename in
8289 xlc*)
8290 output_verbose_link_cmd='echo'
8291 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8292 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8293 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8294 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}'
8295 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}'
8296 ;;
8297 *)
8298 ld_shlibs=no
8299 ;;
8300 esac
8301 fi
8302 ;;
8303
8304 dgux*)
8305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8306 hardcode_libdir_flag_spec='-L$libdir'
8307 hardcode_shlibpath_var=no
8308 ;;
8309
8310 freebsd1*)
8311 ld_shlibs=no
8312 ;;
8313
8314 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8315 # support. Future versions do this automatically, but an explicit c++rt0.o
8316 # does not break anything, and helps significantly (at the cost of a little
8317 # extra space).
8318 freebsd2.2*)
8319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8320 hardcode_libdir_flag_spec='-R$libdir'
8321 hardcode_direct=yes
8322 hardcode_shlibpath_var=no
8323 ;;
8324
8325 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8326 freebsd2*)
8327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8328 hardcode_direct=yes
8329 hardcode_minus_L=yes
8330 hardcode_shlibpath_var=no
8331 ;;
8332
8333 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8334 freebsd* | dragonfly*)
8335 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8336 hardcode_libdir_flag_spec='-R$libdir'
8337 hardcode_direct=yes
8338 hardcode_shlibpath_var=no
8339 ;;
8340
8341 hpux9*)
8342 if test "$GCC" = yes; then
8343 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'
8344 else
8345 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'
8346 fi
8347 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8348 hardcode_libdir_separator=:
8349 hardcode_direct=yes
8350
8351 # hardcode_minus_L: Not really in the search PATH,
8352 # but as the default location of the library.
8353 hardcode_minus_L=yes
8354 export_dynamic_flag_spec='${wl}-E'
8355 ;;
8356
8357 hpux10*)
8358 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8359 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8360 else
8361 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8362 fi
8363 if test "$with_gnu_ld" = no; then
8364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8365 hardcode_libdir_separator=:
8366
8367 hardcode_direct=yes
8368 export_dynamic_flag_spec='${wl}-E'
8369
8370 # hardcode_minus_L: Not really in the search PATH,
8371 # but as the default location of the library.
8372 hardcode_minus_L=yes
8373 fi
8374 ;;
8375
8376 hpux11*)
8377 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8378 case $host_cpu in
8379 hppa*64*)
8380 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8381 ;;
8382 ia64*)
8383 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8384 ;;
8385 *)
8386 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8387 ;;
8388 esac
8389 else
8390 case $host_cpu in
8391 hppa*64*)
8392 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8393 ;;
8394 ia64*)
8395 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8396 ;;
8397 *)
8398 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8399 ;;
8400 esac
8401 fi
8402 if test "$with_gnu_ld" = no; then
8403 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8404 hardcode_libdir_separator=:
8405
8406 case $host_cpu in
8407 hppa*64*|ia64*)
8408 hardcode_libdir_flag_spec_ld='+b $libdir'
8409 hardcode_direct=no
8410 hardcode_shlibpath_var=no
8411 ;;
8412 *)
8413 hardcode_direct=yes
8414 export_dynamic_flag_spec='${wl}-E'
8415
8416 # hardcode_minus_L: Not really in the search PATH,
8417 # but as the default location of the library.
8418 hardcode_minus_L=yes
8419 ;;
8420 esac
8421 fi
8422 ;;
8423
8424 irix5* | irix6* | nonstopux*)
8425 if test "$GCC" = yes; then
8426 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'
8427 else
8428 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'
8429 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8430 fi
8431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8432 hardcode_libdir_separator=:
8433 link_all_deplibs=yes
8434 ;;
8435
8436 netbsd* | netbsdelf*-gnu)
8437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8438 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8439 else
8440 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8441 fi
8442 hardcode_libdir_flag_spec='-R$libdir'
8443 hardcode_direct=yes
8444 hardcode_shlibpath_var=no
8445 ;;
8446
8447 newsos6)
8448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8449 hardcode_direct=yes
8450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8451 hardcode_libdir_separator=:
8452 hardcode_shlibpath_var=no
8453 ;;
8454
8455 openbsd*)
8456 if test -f /usr/libexec/ld.so; then
8457 hardcode_direct=yes
8458 hardcode_shlibpath_var=no
8459 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8460 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8461 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8462 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8463 export_dynamic_flag_spec='${wl}-E'
8464 else
8465 case $host_os in
8466 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8467 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8468 hardcode_libdir_flag_spec='-R$libdir'
8469 ;;
8470 *)
8471 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8472 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8473 ;;
8474 esac
8475 fi
8476 else
8477 ld_shlibs=no
8478 fi
8479 ;;
8480
8481 os2*)
8482 hardcode_libdir_flag_spec='-L$libdir'
8483 hardcode_minus_L=yes
8484 allow_undefined_flag=unsupported
8485 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'
8486 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8487 ;;
8488
8489 osf3*)
8490 if test "$GCC" = yes; then
8491 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8492 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'
8493 else
8494 allow_undefined_flag=' -expect_unresolved \*'
8495 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'
8496 fi
8497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8498 hardcode_libdir_separator=:
8499 ;;
8500
8501 osf4* | osf5*) # as osf3* with the addition of -msym flag
8502 if test "$GCC" = yes; then
8503 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8504 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'
8505 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8506 else
8507 allow_undefined_flag=' -expect_unresolved \*'
8508 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'
8509 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8510 $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'
8511
8512 # Both c and cxx compiler support -rpath directly
8513 hardcode_libdir_flag_spec='-rpath $libdir'
8514 fi
8515 hardcode_libdir_separator=:
8516 ;;
8517
8518 solaris*)
8519 no_undefined_flag=' -z text'
8520 if test "$GCC" = yes; then
8521 wlarc='${wl}'
8522 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8523 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8524 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8525 else
8526 wlarc=''
8527 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8528 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8529 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8530 fi
8531 hardcode_libdir_flag_spec='-R$libdir'
8532 hardcode_shlibpath_var=no
8533 case $host_os in
8534 solaris2.[0-5] | solaris2.[0-5].*) ;;
8535 *)
8536 # The compiler driver will combine and reorder linker options,
8537 # but understands `-z linker_flag'. GCC discards it without `$wl',
8538 # but is careful enough not to reorder.
8539 # Supported since Solaris 2.6 (maybe 2.5.1?)
8540 if test "$GCC" = yes; then
8541 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8542 else
8543 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8544 fi
8545 ;;
8546 esac
8547 link_all_deplibs=yes
8548 ;;
8549
8550 sunos4*)
8551 if test "x$host_vendor" = xsequent; then
8552 # Use $CC to link under sequent, because it throws in some extra .o
8553 # files that make .init and .fini sections work.
8554 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8555 else
8556 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8557 fi
8558 hardcode_libdir_flag_spec='-L$libdir'
8559 hardcode_direct=yes
8560 hardcode_minus_L=yes
8561 hardcode_shlibpath_var=no
8562 ;;
8563
8564 sysv4)
8565 case $host_vendor in
8566 sni)
8567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8568 hardcode_direct=yes # is this really true???
8569 ;;
8570 siemens)
8571 ## LD is ld it makes a PLAMLIB
8572 ## CC just makes a GrossModule.
8573 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8574 reload_cmds='$CC -r -o $output$reload_objs'
8575 hardcode_direct=no
8576 ;;
8577 motorola)
8578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8579 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8580 ;;
8581 esac
8582 runpath_var='LD_RUN_PATH'
8583 hardcode_shlibpath_var=no
8584 ;;
8585
8586 sysv4.3*)
8587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8588 hardcode_shlibpath_var=no
8589 export_dynamic_flag_spec='-Bexport'
8590 ;;
8591
8592 sysv4*MP*)
8593 if test -d /usr/nec; then
8594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8595 hardcode_shlibpath_var=no
8596 runpath_var=LD_RUN_PATH
8597 hardcode_runpath_var=yes
8598 ld_shlibs=yes
8599 fi
8600 ;;
8601
8602 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8603 no_undefined_flag='${wl}-z,text'
8604 archive_cmds_need_lc=no
8605 hardcode_shlibpath_var=no
8606 runpath_var='LD_RUN_PATH'
8607
8608 if test "$GCC" = yes; then
8609 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8610 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8611 else
8612 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8613 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8614 fi
8615 ;;
8616
8617 sysv5* | sco3.2v5* | sco5v6*)
8618 # Note: We can NOT use -z defs as we might desire, because we do not
8619 # link with -lc, and that would cause any symbols used from libc to
8620 # always be unresolved, which means just about no library would
8621 # ever link correctly. If we're not using GNU ld we use -z text
8622 # though, which does catch some bad symbols but isn't as heavy-handed
8623 # as -z defs.
8624 no_undefined_flag='${wl}-z,text'
8625 allow_undefined_flag='${wl}-z,nodefs'
8626 archive_cmds_need_lc=no
8627 hardcode_shlibpath_var=no
8628 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8629 hardcode_libdir_separator=':'
8630 link_all_deplibs=yes
8631 export_dynamic_flag_spec='${wl}-Bexport'
8632 runpath_var='LD_RUN_PATH'
8633
8634 if test "$GCC" = yes; then
8635 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8636 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8637 else
8638 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8639 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8640 fi
8641 ;;
8642
8643 uts4*)
8644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8645 hardcode_libdir_flag_spec='-L$libdir'
8646 hardcode_shlibpath_var=no
8647 ;;
8648
8649 *)
8650 ld_shlibs=no
8651 ;;
8652 esac
8653 fi
8654
8655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8656$as_echo "$ld_shlibs" >&6; }
8657test "$ld_shlibs" = no && can_build_shared=no
8658
8659#
8660# Do we need to explicitly link libc?
8661#
8662case "x$archive_cmds_need_lc" in
8663x|xyes)
8664 # Assume -lc should be added
8665 archive_cmds_need_lc=yes
8666
8667 if test "$enable_shared" = yes && test "$GCC" = yes; then
8668 case $archive_cmds in
8669 *'~'*)
8670 # FIXME: we may have to deal with multi-command sequences.
8671 ;;
8672 '$CC '*)
8673 # Test whether the compiler implicitly links with -lc since on some
8674 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8675 # to ld, don't add -lc before -lgcc.
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8677$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8678 $rm conftest*
8679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8680
8681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8682 (eval $ac_compile) 2>&5
8683 ac_status=$?
8684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8685 test $ac_status = 0; } 2>conftest.err; then
8686 soname=conftest
8687 lib=conftest
8688 libobjs=conftest.$ac_objext
8689 deplibs=
8690 wl=$lt_prog_compiler_wl
8691 pic_flag=$lt_prog_compiler_pic
8692 compiler_flags=-v
8693 linker_flags=-v
8694 verstring=
8695 output_objdir=.
8696 libname=conftest
8697 lt_save_allow_undefined_flag=$allow_undefined_flag
8698 allow_undefined_flag=
8699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8700 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8701 ac_status=$?
8702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8703 test $ac_status = 0; }
8704 then
8705 archive_cmds_need_lc=no
8706 else
8707 archive_cmds_need_lc=yes
8708 fi
8709 allow_undefined_flag=$lt_save_allow_undefined_flag
8710 else
8711 cat conftest.err 1>&5
8712 fi
8713 $rm conftest*
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8715$as_echo "$archive_cmds_need_lc" >&6; }
8716 ;;
8717 esac
8718 fi
8719 ;;
8720esac
8721
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8723$as_echo_n "checking dynamic linker characteristics... " >&6; }
8724library_names_spec=
8725libname_spec='lib$name'
8726soname_spec=
8727shrext_cmds=".so"
8728postinstall_cmds=
8729postuninstall_cmds=
8730finish_cmds=
8731finish_eval=
8732shlibpath_var=
8733shlibpath_overrides_runpath=unknown
8734version_type=none
8735dynamic_linker="$host_os ld.so"
8736sys_lib_dlsearch_path_spec="/lib /usr/lib"
8737
8738if test "$GCC" = yes; then
8739 case $host_os in
8740 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8741 *) lt_awk_arg="/^libraries:/" ;;
8742 esac
8743 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8744 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8745 # if the path contains ";" then we assume it to be the separator
8746 # otherwise default to the standard path separator (i.e. ":") - it is
8747 # assumed that no part of a normal pathname contains ";" but that should
8748 # okay in the real world where ";" in dirpaths is itself problematic.
8749 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8750 else
8751 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8752 fi
8753 # Ok, now we have the path, separated by spaces, we can step through it
8754 # and add multilib dir if necessary.
8755 lt_tmp_lt_search_path_spec=
8756 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8757 for lt_sys_path in $lt_search_path_spec; do
8758 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8759 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8760 else
8761 test -d "$lt_sys_path" && \
8762 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8763 fi
8764 done
8765 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8766BEGIN {RS=" "; FS="/|\n";} {
8767 lt_foo="";
8768 lt_count=0;
8769 for (lt_i = NF; lt_i > 0; lt_i--) {
8770 if ($lt_i != "" && $lt_i != ".") {
8771 if ($lt_i == "..") {
8772 lt_count++;
8773 } else {
8774 if (lt_count == 0) {
8775 lt_foo="/" $lt_i lt_foo;
8776 } else {
8777 lt_count--;
8778 }
8779 }
8780 }
8781 }
8782 if (lt_foo != "") { lt_freq[lt_foo]++; }
8783 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8784}'`
8785 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8786else
8787 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8788fi
8789need_lib_prefix=unknown
8790hardcode_into_libs=no
8791
8792# when you set need_version to no, make sure it does not cause -set_version
8793# flags to be left without arguments
8794need_version=unknown
8795
8796case $host_os in
8797aix3*)
8798 version_type=linux
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8800 shlibpath_var=LIBPATH
8801
8802 # AIX 3 has no versioning support, so we append a major version to the name.
8803 soname_spec='${libname}${release}${shared_ext}$major'
8804 ;;
8805
8806aix[4-9]*)
8807 version_type=linux
8808 need_lib_prefix=no
8809 need_version=no
8810 hardcode_into_libs=yes
8811 if test "$host_cpu" = ia64; then
8812 # AIX 5 supports IA64
8813 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8814 shlibpath_var=LD_LIBRARY_PATH
8815 else
8816 # With GCC up to 2.95.x, collect2 would create an import file
8817 # for dependence libraries. The import file would start with
8818 # the line `#! .'. This would cause the generated library to
8819 # depend on `.', always an invalid library. This was fixed in
8820 # development snapshots of GCC prior to 3.0.
8821 case $host_os in
8822 aix4 | aix4.[01] | aix4.[01].*)
8823 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8824 echo ' yes '
8825 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8826 :
8827 else
8828 can_build_shared=no
8829 fi
8830 ;;
8831 esac
8832 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8833 # soname into executable. Probably we can add versioning support to
8834 # collect2, so additional links can be useful in future.
8835 if test "$aix_use_runtimelinking" = yes; then
8836 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8837 # instead of lib<name>.a to let people know that these are not
8838 # typical AIX shared libraries.
8839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8840 else
8841 # We preserve .a as extension for shared libraries through AIX4.2
8842 # and later when we are not doing run time linking.
8843 library_names_spec='${libname}${release}.a $libname.a'
8844 soname_spec='${libname}${release}${shared_ext}$major'
8845 fi
8846 shlibpath_var=LIBPATH
8847 fi
8848 ;;
8849
8850amigaos*)
8851 library_names_spec='$libname.ixlibrary $libname.a'
8852 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8853 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'
8854 ;;
8855
8856beos*)
8857 library_names_spec='${libname}${shared_ext}'
8858 dynamic_linker="$host_os ld.so"
8859 shlibpath_var=LIBRARY_PATH
8860 ;;
8861
8862bsdi[45]*)
8863 version_type=linux
8864 need_version=no
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8866 soname_spec='${libname}${release}${shared_ext}$major'
8867 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8868 shlibpath_var=LD_LIBRARY_PATH
8869 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8870 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8871 # the default ld.so.conf also contains /usr/contrib/lib and
8872 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8873 # libtool to hard-code these into programs
8874 ;;
8875
8876cygwin* | mingw* | pw32*)
8877 version_type=windows
8878 shrext_cmds=".dll"
8879 need_version=no
8880 need_lib_prefix=no
8881
8882 case $GCC,$host_os in
8883 yes,cygwin* | yes,mingw* | yes,pw32*)
8884 library_names_spec='$libname.dll.a'
8885 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8886 postinstall_cmds='base_file=`basename \${file}`~
8887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8888 dldir=$destdir/`dirname \$dlpath`~
8889 test -d \$dldir || mkdir -p \$dldir~
8890 $install_prog $dir/$dlname \$dldir/$dlname~
8891 chmod a+x \$dldir/$dlname'
8892 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8893 dlpath=$dir/\$dldll~
8894 $rm \$dlpath'
8895 shlibpath_overrides_runpath=yes
8896
8897 case $host_os in
8898 cygwin*)
8899 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8900 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8901 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8902 ;;
8903 mingw*)
8904 # MinGW DLLs use traditional 'lib' prefix
8905 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8906 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8907 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8908 # It is most probably a Windows format PATH printed by
8909 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8910 # path with ; separators, and with drive letters. We can handle the
8911 # drive letters (cygwin fileutils understands them), so leave them,
8912 # especially as we might pass files found there to a mingw objdump,
8913 # which wouldn't understand a cygwinified path. Ahh.
8914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8915 else
8916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8917 fi
8918 ;;
8919 pw32*)
8920 # pw32 DLLs use 'pw' prefix rather than 'lib'
8921 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8922 ;;
8923 esac
8924 ;;
8925
8926 *)
8927 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8928 ;;
8929 esac
8930 dynamic_linker='Win32 ld.exe'
8931 # FIXME: first we should search . and the directory the executable is in
8932 shlibpath_var=PATH
8933 ;;
8934
8935darwin* | rhapsody*)
8936 dynamic_linker="$host_os dyld"
8937 version_type=darwin
8938 need_lib_prefix=no
8939 need_version=no
8940 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8941 soname_spec='${libname}${release}${major}$shared_ext'
8942 shlibpath_overrides_runpath=yes
8943 shlibpath_var=DYLD_LIBRARY_PATH
8944 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8945
8946 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8947 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8948 ;;
8949
8950dgux*)
8951 version_type=linux
8952 need_lib_prefix=no
8953 need_version=no
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8955 soname_spec='${libname}${release}${shared_ext}$major'
8956 shlibpath_var=LD_LIBRARY_PATH
8957 ;;
8958
8959freebsd1*)
8960 dynamic_linker=no
8961 ;;
8962
8963freebsd* | dragonfly*)
8964 # DragonFly does not have aout. When/if they implement a new
8965 # versioning mechanism, adjust this.
8966 if test -x /usr/bin/objformat; then
8967 objformat=`/usr/bin/objformat`
8968 else
8969 case $host_os in
8970 freebsd[123]*) objformat=aout ;;
8971 *) objformat=elf ;;
8972 esac
8973 fi
8974 version_type=freebsd-$objformat
8975 case $version_type in
8976 freebsd-elf*)
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8978 need_version=no
8979 need_lib_prefix=no
8980 ;;
8981 freebsd-*)
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8983 need_version=yes
8984 ;;
8985 esac
8986 shlibpath_var=LD_LIBRARY_PATH
8987 case $host_os in
8988 freebsd2*)
8989 shlibpath_overrides_runpath=yes
8990 ;;
8991 freebsd3.[01]* | freebsdelf3.[01]*)
8992 shlibpath_overrides_runpath=yes
8993 hardcode_into_libs=yes
8994 ;;
8995 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8996 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8997 shlibpath_overrides_runpath=no
8998 hardcode_into_libs=yes
8999 ;;
9000 *) # from 4.6 on, and DragonFly
9001 shlibpath_overrides_runpath=yes
9002 hardcode_into_libs=yes
9003 ;;
9004 esac
9005 ;;
9006
9007gnu*)
9008 version_type=linux
9009 need_lib_prefix=no
9010 need_version=no
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9012 soname_spec='${libname}${release}${shared_ext}$major'
9013 shlibpath_var=LD_LIBRARY_PATH
9014 hardcode_into_libs=yes
9015 ;;
9016
9017hpux9* | hpux10* | hpux11*)
9018 # Give a soname corresponding to the major version so that dld.sl refuses to
9019 # link against other versions.
9020 version_type=sunos
9021 need_lib_prefix=no
9022 need_version=no
9023 case $host_cpu in
9024 ia64*)
9025 shrext_cmds='.so'
9026 hardcode_into_libs=yes
9027 dynamic_linker="$host_os dld.so"
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9031 soname_spec='${libname}${release}${shared_ext}$major'
9032 if test "X$HPUX_IA64_MODE" = X32; then
9033 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9034 else
9035 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9036 fi
9037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9038 ;;
9039 hppa*64*)
9040 shrext_cmds='.sl'
9041 hardcode_into_libs=yes
9042 dynamic_linker="$host_os dld.sl"
9043 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9049 ;;
9050 *)
9051 shrext_cmds='.sl'
9052 dynamic_linker="$host_os dld.sl"
9053 shlibpath_var=SHLIB_PATH
9054 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 ;;
9058 esac
9059 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9060 postinstall_cmds='chmod 555 $lib'
9061 ;;
9062
9063interix[3-9]*)
9064 version_type=linux
9065 need_lib_prefix=no
9066 need_version=no
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 shlibpath_overrides_runpath=no
9072 hardcode_into_libs=yes
9073 ;;
9074
9075irix5* | irix6* | nonstopux*)
9076 case $host_os in
9077 nonstopux*) version_type=nonstopux ;;
9078 *)
9079 if test "$lt_cv_prog_gnu_ld" = yes; then
9080 version_type=linux
9081 else
9082 version_type=irix
9083 fi ;;
9084 esac
9085 need_lib_prefix=no
9086 need_version=no
9087 soname_spec='${libname}${release}${shared_ext}$major'
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9089 case $host_os in
9090 irix5* | nonstopux*)
9091 libsuff= shlibsuff=
9092 ;;
9093 *)
9094 case $LD in # libtool.m4 will add one of these switches to LD
9095 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9096 libsuff= shlibsuff= libmagic=32-bit;;
9097 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9098 libsuff=32 shlibsuff=N32 libmagic=N32;;
9099 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9100 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9101 *) libsuff= shlibsuff= libmagic=never-match;;
9102 esac
9103 ;;
9104 esac
9105 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9106 shlibpath_overrides_runpath=no
9107 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9108 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9109 hardcode_into_libs=yes
9110 ;;
9111
9112# No shared lib support for Linux oldld, aout, or coff.
9113linux*oldld* | linux*aout* | linux*coff*)
9114 dynamic_linker=no
9115 ;;
9116
9117# This must be Linux ELF.
9118linux* | k*bsd*-gnu)
9119 version_type=linux
9120 need_lib_prefix=no
9121 need_version=no
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9125 shlibpath_var=LD_LIBRARY_PATH
9126 shlibpath_overrides_runpath=no
9127 # This implies no fast_install, which is unacceptable.
9128 # Some rework will be needed to allow for fast_install
9129 # before this can be enabled.
9130 hardcode_into_libs=yes
9131
9132 # Append ld.so.conf contents to the search path
9133 if test -f /etc/ld.so.conf; then
9134 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' ' '`
9135 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9136 fi
9137
9138 # We used to test for /lib/ld.so.1 and disable shared libraries on
9139 # powerpc, because MkLinux only supported shared libraries with the
9140 # GNU dynamic linker. Since this was broken with cross compilers,
9141 # most powerpc-linux boxes support dynamic linking these days and
9142 # people can always --disable-shared, the test was removed, and we
9143 # assume the GNU/Linux dynamic linker is in use.
9144 dynamic_linker='GNU/Linux ld.so'
9145 ;;
9146
9147netbsdelf*-gnu)
9148 version_type=linux
9149 need_lib_prefix=no
9150 need_version=no
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 shlibpath_overrides_runpath=no
9155 hardcode_into_libs=yes
9156 dynamic_linker='NetBSD ld.elf_so'
9157 ;;
9158
9159netbsd*)
9160 version_type=sunos
9161 need_lib_prefix=no
9162 need_version=no
9163 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9166 dynamic_linker='NetBSD (a.out) ld.so'
9167 else
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 dynamic_linker='NetBSD ld.elf_so'
9171 fi
9172 shlibpath_var=LD_LIBRARY_PATH
9173 shlibpath_overrides_runpath=yes
9174 hardcode_into_libs=yes
9175 ;;
9176
9177newsos6)
9178 version_type=linux
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=yes
9182 ;;
9183
9184nto-qnx*)
9185 version_type=linux
9186 need_lib_prefix=no
9187 need_version=no
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9189 soname_spec='${libname}${release}${shared_ext}$major'
9190 shlibpath_var=LD_LIBRARY_PATH
9191 shlibpath_overrides_runpath=yes
9192 ;;
9193
9194openbsd*)
9195 version_type=sunos
9196 sys_lib_dlsearch_path_spec="/usr/lib"
9197 need_lib_prefix=no
9198 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9199 case $host_os in
9200 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9201 *) need_version=no ;;
9202 esac
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9207 case $host_os in
9208 openbsd2.[89] | openbsd2.[89].*)
9209 shlibpath_overrides_runpath=no
9210 ;;
9211 *)
9212 shlibpath_overrides_runpath=yes
9213 ;;
9214 esac
9215 else
9216 shlibpath_overrides_runpath=yes
9217 fi
9218 ;;
9219
9220os2*)
9221 libname_spec='$name'
9222 shrext_cmds=".dll"
9223 need_lib_prefix=no
9224 library_names_spec='$libname${shared_ext} $libname.a'
9225 dynamic_linker='OS/2 ld.exe'
9226 shlibpath_var=LIBPATH
9227 ;;
9228
9229osf3* | osf4* | osf5*)
9230 version_type=osf
9231 need_lib_prefix=no
9232 need_version=no
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 shlibpath_var=LD_LIBRARY_PATH
9236 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9237 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9238 ;;
9239
9240rdos*)
9241 dynamic_linker=no
9242 ;;
9243
9244solaris*)
9245 version_type=linux
9246 need_lib_prefix=no
9247 need_version=no
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9249 soname_spec='${libname}${release}${shared_ext}$major'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 shlibpath_overrides_runpath=yes
9252 hardcode_into_libs=yes
9253 # ldd complains unless libraries are executable
9254 postinstall_cmds='chmod +x $lib'
9255 ;;
9256
9257sunos4*)
9258 version_type=sunos
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9260 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 shlibpath_overrides_runpath=yes
9263 if test "$with_gnu_ld" = yes; then
9264 need_lib_prefix=no
9265 fi
9266 need_version=yes
9267 ;;
9268
9269sysv4 | sysv4.3*)
9270 version_type=linux
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272 soname_spec='${libname}${release}${shared_ext}$major'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 case $host_vendor in
9275 sni)
9276 shlibpath_overrides_runpath=no
9277 need_lib_prefix=no
9278 export_dynamic_flag_spec='${wl}-Blargedynsym'
9279 runpath_var=LD_RUN_PATH
9280 ;;
9281 siemens)
9282 need_lib_prefix=no
9283 ;;
9284 motorola)
9285 need_lib_prefix=no
9286 need_version=no
9287 shlibpath_overrides_runpath=no
9288 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9289 ;;
9290 esac
9291 ;;
9292
9293sysv4*MP*)
9294 if test -d /usr/nec ;then
9295 version_type=linux
9296 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9297 soname_spec='$libname${shared_ext}.$major'
9298 shlibpath_var=LD_LIBRARY_PATH
9299 fi
9300 ;;
9301
9302sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9303 version_type=freebsd-elf
9304 need_lib_prefix=no
9305 need_version=no
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9307 soname_spec='${libname}${release}${shared_ext}$major'
9308 shlibpath_var=LD_LIBRARY_PATH
9309 hardcode_into_libs=yes
9310 if test "$with_gnu_ld" = yes; then
9311 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9312 shlibpath_overrides_runpath=no
9313 else
9314 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9315 shlibpath_overrides_runpath=yes
9316 case $host_os in
9317 sco3.2v5*)
9318 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9319 ;;
9320 esac
9321 fi
9322 sys_lib_dlsearch_path_spec='/usr/lib'
9323 ;;
9324
9325uts4*)
9326 version_type=linux
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328 soname_spec='${libname}${release}${shared_ext}$major'
9329 shlibpath_var=LD_LIBRARY_PATH
9330 ;;
9331
9332*)
9333 dynamic_linker=no
9334 ;;
9335esac
9336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9337$as_echo "$dynamic_linker" >&6; }
9338test "$dynamic_linker" = no && can_build_shared=no
9339
9340if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
9341 $as_echo_n "(cached) " >&6
9342else
9343 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9344fi
9345
9346sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9347if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
9348 $as_echo_n "(cached) " >&6
9349else
9350 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9351fi
9352
9353sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9354
9355variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9356if test "$GCC" = yes; then
9357 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9358fi
9359
9360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9361$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9362hardcode_action=
9363if test -n "$hardcode_libdir_flag_spec" || \
9364 test -n "$runpath_var" || \
9365 test "X$hardcode_automatic" = "Xyes" ; then
9366
9367 # We can hardcode non-existant directories.
9368 if test "$hardcode_direct" != no &&
9369 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9370 # have to relink, otherwise we might link with an installed library
9371 # when we should be linking with a yet-to-be-installed one
9372 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9373 test "$hardcode_minus_L" != no; then
9374 # Linking always hardcodes the temporary library directory.
9375 hardcode_action=relink
9376 else
9377 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9378 hardcode_action=immediate
9379 fi
9380else
9381 # We cannot hardcode anything, or else we can only hardcode existing
9382 # directories.
9383 hardcode_action=unsupported
9384fi
9385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9386$as_echo "$hardcode_action" >&6; }
9387
9388if test "$hardcode_action" = relink; then
9389 # Fast installation is not supported
9390 enable_fast_install=no
9391elif test "$shlibpath_overrides_runpath" = yes ||
9392 test "$enable_shared" = no; then
9393 # Fast installation is not necessary
9394 enable_fast_install=needless
9395fi
9396
9397striplib=
9398old_striplib=
9399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9400$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9401if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9402 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9403 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9405$as_echo "yes" >&6; }
9406else
9407# FIXME - insert some real tests, host_os isn't really good enough
9408 case $host_os in
9409 darwin*)
9410 if test -n "$STRIP" ; then
9411 striplib="$STRIP -x"
9412 old_striplib="$STRIP -S"
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9414$as_echo "yes" >&6; }
9415 else
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9417$as_echo "no" >&6; }
9418fi
9419 ;;
9420 *)
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422$as_echo "no" >&6; }
9423 ;;
9424 esac
9425fi
9426
9427if test "x$enable_dlopen" != xyes; then
9428 enable_dlopen=unknown
9429 enable_dlopen_self=unknown
9430 enable_dlopen_self_static=unknown
9431else
9432 lt_cv_dlopen=no
9433 lt_cv_dlopen_libs=
9434
9435 case $host_os in
9436 beos*)
9437 lt_cv_dlopen="load_add_on"
9438 lt_cv_dlopen_libs=
9439 lt_cv_dlopen_self=yes
9440 ;;
9441
9442 mingw* | pw32*)
9443 lt_cv_dlopen="LoadLibrary"
9444 lt_cv_dlopen_libs=
9445 ;;
9446
9447 cygwin*)
9448 lt_cv_dlopen="dlopen"
9449 lt_cv_dlopen_libs=
9450 ;;
9451
9452 darwin*)
9453 # if libdl is installed we need to link against it
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9455$as_echo_n "checking for dlopen in -ldl... " >&6; }
9456if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9457 $as_echo_n "(cached) " >&6
9458else
9459 ac_check_lib_save_LIBS=$LIBS
9460LIBS="-ldl $LIBS"
9461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462/* end confdefs.h. */
9463
9464/* Override any GCC internal prototype to avoid an error.
9465 Use char because int might match the return type of a GCC
9466 builtin and then its argument prototype would still apply. */
9467#ifdef __cplusplus
9468extern "C"
9469#endif
9470char dlopen ();
9471int
9472main ()
9473{
9474return dlopen ();
9475 ;
9476 return 0;
9477}
9478_ACEOF
9479if ac_fn_c_try_link "$LINENO"; then :
9480 ac_cv_lib_dl_dlopen=yes
9481else
9482 ac_cv_lib_dl_dlopen=no
9483fi
9484rm -f core conftest.err conftest.$ac_objext \
9485 conftest$ac_exeext conftest.$ac_ext
9486LIBS=$ac_check_lib_save_LIBS
9487fi
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9489$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9490if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9491 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9492else
9493
9494 lt_cv_dlopen="dyld"
9495 lt_cv_dlopen_libs=
9496 lt_cv_dlopen_self=yes
9497
9498fi
9499
9500 ;;
9501
9502 *)
9503 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9504if test "x$ac_cv_func_shl_load" = x""yes; then :
9505 lt_cv_dlopen="shl_load"
9506else
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9508$as_echo_n "checking for shl_load in -ldld... " >&6; }
9509if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9510 $as_echo_n "(cached) " >&6
9511else
9512 ac_check_lib_save_LIBS=$LIBS
9513LIBS="-ldld $LIBS"
9514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515/* end confdefs.h. */
9516
9517/* Override any GCC internal prototype to avoid an error.
9518 Use char because int might match the return type of a GCC
9519 builtin and then its argument prototype would still apply. */
9520#ifdef __cplusplus
9521extern "C"
9522#endif
9523char shl_load ();
9524int
9525main ()
9526{
9527return shl_load ();
9528 ;
9529 return 0;
9530}
9531_ACEOF
9532if ac_fn_c_try_link "$LINENO"; then :
9533 ac_cv_lib_dld_shl_load=yes
9534else
9535 ac_cv_lib_dld_shl_load=no
9536fi
9537rm -f core conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
9539LIBS=$ac_check_lib_save_LIBS
9540fi
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9542$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9543if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9544 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9545else
9546 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9547if test "x$ac_cv_func_dlopen" = x""yes; then :
9548 lt_cv_dlopen="dlopen"
9549else
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9551$as_echo_n "checking for dlopen in -ldl... " >&6; }
9552if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9553 $as_echo_n "(cached) " >&6
9554else
9555 ac_check_lib_save_LIBS=$LIBS
9556LIBS="-ldl $LIBS"
9557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558/* end confdefs.h. */
9559
9560/* Override any GCC internal prototype to avoid an error.
9561 Use char because int might match the return type of a GCC
9562 builtin and then its argument prototype would still apply. */
9563#ifdef __cplusplus
9564extern "C"
9565#endif
9566char dlopen ();
9567int
9568main ()
9569{
9570return dlopen ();
9571 ;
9572 return 0;
9573}
9574_ACEOF
9575if ac_fn_c_try_link "$LINENO"; then :
9576 ac_cv_lib_dl_dlopen=yes
9577else
9578 ac_cv_lib_dl_dlopen=no
9579fi
9580rm -f core conftest.err conftest.$ac_objext \
9581 conftest$ac_exeext conftest.$ac_ext
9582LIBS=$ac_check_lib_save_LIBS
9583fi
9584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9585$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9586if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9587 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9588else
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9590$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9591if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9592 $as_echo_n "(cached) " >&6
9593else
9594 ac_check_lib_save_LIBS=$LIBS
9595LIBS="-lsvld $LIBS"
9596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597/* end confdefs.h. */
9598
9599/* Override any GCC internal prototype to avoid an error.
9600 Use char because int might match the return type of a GCC
9601 builtin and then its argument prototype would still apply. */
9602#ifdef __cplusplus
9603extern "C"
9604#endif
9605char dlopen ();
9606int
9607main ()
9608{
9609return dlopen ();
9610 ;
9611 return 0;
9612}
9613_ACEOF
9614if ac_fn_c_try_link "$LINENO"; then :
9615 ac_cv_lib_svld_dlopen=yes
9616else
9617 ac_cv_lib_svld_dlopen=no
9618fi
9619rm -f core conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
9621LIBS=$ac_check_lib_save_LIBS
9622fi
9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9624$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9625if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9626 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9627else
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9629$as_echo_n "checking for dld_link in -ldld... " >&6; }
9630if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9632else
9633 ac_check_lib_save_LIBS=$LIBS
9634LIBS="-ldld $LIBS"
9635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636/* end confdefs.h. */
9637
9638/* Override any GCC internal prototype to avoid an error.
9639 Use char because int might match the return type of a GCC
9640 builtin and then its argument prototype would still apply. */
9641#ifdef __cplusplus
9642extern "C"
9643#endif
9644char dld_link ();
9645int
9646main ()
9647{
9648return dld_link ();
9649 ;
9650 return 0;
9651}
9652_ACEOF
9653if ac_fn_c_try_link "$LINENO"; then :
9654 ac_cv_lib_dld_dld_link=yes
9655else
9656 ac_cv_lib_dld_dld_link=no
9657fi
9658rm -f core conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660LIBS=$ac_check_lib_save_LIBS
9661fi
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9663$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9664if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9665 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9666fi
9667
9668
9669fi
9670
9671
9672fi
9673
9674
9675fi
9676
9677
9678fi
9679
9680
9681fi
9682
9683 ;;
9684 esac
9685
9686 if test "x$lt_cv_dlopen" != xno; then
9687 enable_dlopen=yes
9688 else
9689 enable_dlopen=no
9690 fi
9691
9692 case $lt_cv_dlopen in
9693 dlopen)
9694 save_CPPFLAGS="$CPPFLAGS"
9695 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9696
9697 save_LDFLAGS="$LDFLAGS"
9698 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9699
9700 save_LIBS="$LIBS"
9701 LIBS="$lt_cv_dlopen_libs $LIBS"
9702
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9704$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9705if test "${lt_cv_dlopen_self+set}" = set; then :
9706 $as_echo_n "(cached) " >&6
9707else
9708 if test "$cross_compiling" = yes; then :
9709 lt_cv_dlopen_self=cross
9710else
9711 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9712 lt_status=$lt_dlunknown
9713 cat > conftest.$ac_ext <<EOF
9714#line __oline__ "configure"
9715#include "confdefs.h"
9716
9717#if HAVE_DLFCN_H
9718#include <dlfcn.h>
9719#endif
9720
9721#include <stdio.h>
9722
9723#ifdef RTLD_GLOBAL
9724# define LT_DLGLOBAL RTLD_GLOBAL
9725#else
9726# ifdef DL_GLOBAL
9727# define LT_DLGLOBAL DL_GLOBAL
9728# else
9729# define LT_DLGLOBAL 0
9730# endif
9731#endif
9732
9733/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9734 find out it does not work in some platform. */
9735#ifndef LT_DLLAZY_OR_NOW
9736# ifdef RTLD_LAZY
9737# define LT_DLLAZY_OR_NOW RTLD_LAZY
9738# else
9739# ifdef DL_LAZY
9740# define LT_DLLAZY_OR_NOW DL_LAZY
9741# else
9742# ifdef RTLD_NOW
9743# define LT_DLLAZY_OR_NOW RTLD_NOW
9744# else
9745# ifdef DL_NOW
9746# define LT_DLLAZY_OR_NOW DL_NOW
9747# else
9748# define LT_DLLAZY_OR_NOW 0
9749# endif
9750# endif
9751# endif
9752# endif
9753#endif
9754
9755#ifdef __cplusplus
9756extern "C" void exit (int);
9757#endif
9758
9759void fnord() { int i=42;}
9760int main ()
9761{
9762 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9763 int status = $lt_dlunknown;
9764
9765 if (self)
9766 {
9767 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9768 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9769 /* dlclose (self); */
9770 }
9771 else
9772 puts (dlerror ());
9773
9774 exit (status);
9775}
9776EOF
9777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9778 (eval $ac_link) 2>&5
9779 ac_status=$?
9780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9781 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9782 (./conftest; exit; ) >&5 2>/dev/null
9783 lt_status=$?
9784 case x$lt_status in
9785 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9786 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9787 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9788 esac
9789 else :
9790 # compilation failed
9791 lt_cv_dlopen_self=no
9792 fi
9793fi
9794rm -fr conftest*
9795
9796
9797fi
9798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9799$as_echo "$lt_cv_dlopen_self" >&6; }
9800
9801 if test "x$lt_cv_dlopen_self" = xyes; then
9802 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9804$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9805if test "${lt_cv_dlopen_self_static+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9807else
9808 if test "$cross_compiling" = yes; then :
9809 lt_cv_dlopen_self_static=cross
9810else
9811 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9812 lt_status=$lt_dlunknown
9813 cat > conftest.$ac_ext <<EOF
9814#line __oline__ "configure"
9815#include "confdefs.h"
9816
9817#if HAVE_DLFCN_H
9818#include <dlfcn.h>
9819#endif
9820
9821#include <stdio.h>
9822
9823#ifdef RTLD_GLOBAL
9824# define LT_DLGLOBAL RTLD_GLOBAL
9825#else
9826# ifdef DL_GLOBAL
9827# define LT_DLGLOBAL DL_GLOBAL
9828# else
9829# define LT_DLGLOBAL 0
9830# endif
9831#endif
9832
9833/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9834 find out it does not work in some platform. */
9835#ifndef LT_DLLAZY_OR_NOW
9836# ifdef RTLD_LAZY
9837# define LT_DLLAZY_OR_NOW RTLD_LAZY
9838# else
9839# ifdef DL_LAZY
9840# define LT_DLLAZY_OR_NOW DL_LAZY
9841# else
9842# ifdef RTLD_NOW
9843# define LT_DLLAZY_OR_NOW RTLD_NOW
9844# else
9845# ifdef DL_NOW
9846# define LT_DLLAZY_OR_NOW DL_NOW
9847# else
9848# define LT_DLLAZY_OR_NOW 0
9849# endif
9850# endif
9851# endif
9852# endif
9853#endif
9854
9855#ifdef __cplusplus
9856extern "C" void exit (int);
9857#endif
9858
9859void fnord() { int i=42;}
9860int main ()
9861{
9862 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9863 int status = $lt_dlunknown;
9864
9865 if (self)
9866 {
9867 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9868 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9869 /* dlclose (self); */
9870 }
9871 else
9872 puts (dlerror ());
9873
9874 exit (status);
9875}
9876EOF
9877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9878 (eval $ac_link) 2>&5
9879 ac_status=$?
9880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9881 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9882 (./conftest; exit; ) >&5 2>/dev/null
9883 lt_status=$?
9884 case x$lt_status in
9885 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9886 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9887 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9888 esac
9889 else :
9890 # compilation failed
9891 lt_cv_dlopen_self_static=no
9892 fi
9893fi
9894rm -fr conftest*
9895
9896
9897fi
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9899$as_echo "$lt_cv_dlopen_self_static" >&6; }
9900 fi
9901
9902 CPPFLAGS="$save_CPPFLAGS"
9903 LDFLAGS="$save_LDFLAGS"
9904 LIBS="$save_LIBS"
9905 ;;
9906 esac
9907
9908 case $lt_cv_dlopen_self in
9909 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9910 *) enable_dlopen_self=unknown ;;
9911 esac
9912
9913 case $lt_cv_dlopen_self_static in
9914 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9915 *) enable_dlopen_self_static=unknown ;;
9916 esac
9917fi
9918
9919
9920# Report which library types will actually be built
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9922$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9924$as_echo "$can_build_shared" >&6; }
9925
9926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9927$as_echo_n "checking whether to build shared libraries... " >&6; }
9928test "$can_build_shared" = "no" && enable_shared=no
9929
9930# On AIX, shared libraries and static libraries use the same namespace, and
9931# are all built from PIC.
9932case $host_os in
9933aix3*)
9934 test "$enable_shared" = yes && enable_static=no
9935 if test -n "$RANLIB"; then
9936 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9937 postinstall_cmds='$RANLIB $lib'
9938 fi
9939 ;;
9940
9941aix[4-9]*)
9942 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9943 test "$enable_shared" = yes && enable_static=no
9944 fi
9945 ;;
9946esac
9947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9948$as_echo "$enable_shared" >&6; }
9949
9950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9951$as_echo_n "checking whether to build static libraries... " >&6; }
9952# Make sure either enable_shared or enable_static is yes.
9953test "$enable_shared" = yes || enable_static=yes
9954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9955$as_echo "$enable_static" >&6; }
9956
9957# The else clause should only fire when bootstrapping the
9958# libtool distribution, otherwise you forgot to ship ltmain.sh
9959# with your package, and you will get complaints that there are
9960# no rules to generate ltmain.sh.
9961if test -f "$ltmain"; then
9962 # See if we are running on zsh, and set the options which allow our commands through
9963 # without removal of \ escapes.
9964 if test -n "${ZSH_VERSION+set}" ; then
9965 setopt NO_GLOB_SUBST
9966 fi
9967 # Now quote all the things that may contain metacharacters while being
9968 # careful not to overquote the AC_SUBSTed values. We take copies of the
9969 # variables and quote the copies for generation of the libtool script.
9970 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9971 SED SHELL STRIP \
9972 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9973 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9974 deplibs_check_method reload_flag reload_cmds need_locks \
9975 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9976 lt_cv_sys_global_symbol_to_c_name_address \
9977 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9978 old_postinstall_cmds old_postuninstall_cmds \
9979 compiler \
9980 CC \
9981 LD \
9982 lt_prog_compiler_wl \
9983 lt_prog_compiler_pic \
9984 lt_prog_compiler_static \
9985 lt_prog_compiler_no_builtin_flag \
9986 export_dynamic_flag_spec \
9987 thread_safe_flag_spec \
9988 whole_archive_flag_spec \
9989 enable_shared_with_static_runtimes \
9990 old_archive_cmds \
9991 old_archive_from_new_cmds \
9992 predep_objects \
9993 postdep_objects \
9994 predeps \
9995 postdeps \
9996 compiler_lib_search_path \
9997 compiler_lib_search_dirs \
9998 archive_cmds \
9999 archive_expsym_cmds \
10000 postinstall_cmds \
10001 postuninstall_cmds \
10002 old_archive_from_expsyms_cmds \
10003 allow_undefined_flag \
10004 no_undefined_flag \
10005 export_symbols_cmds \
10006 hardcode_libdir_flag_spec \
10007 hardcode_libdir_flag_spec_ld \
10008 hardcode_libdir_separator \
10009 hardcode_automatic \
10010 module_cmds \
10011 module_expsym_cmds \
10012 lt_cv_prog_compiler_c_o \
10013 fix_srcfile_path \
10014 exclude_expsyms \
10015 include_expsyms; do
10016
10017 case $var in
10018 old_archive_cmds | \
10019 old_archive_from_new_cmds | \
10020 archive_cmds | \
10021 archive_expsym_cmds | \
10022 module_cmds | \
10023 module_expsym_cmds | \
10024 old_archive_from_expsyms_cmds | \
10025 export_symbols_cmds | \
10026 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10027 postinstall_cmds | postuninstall_cmds | \
10028 old_postinstall_cmds | old_postuninstall_cmds | \
10029 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10030 # Double-quote double-evaled strings.
10031 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10032 ;;
10033 *)
10034 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10035 ;;
10036 esac
10037 done
10038
10039 case $lt_echo in
10040 *'\$0 --fallback-echo"')
10041 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10042 ;;
10043 esac
10044
10045cfgfile="${ofile}T"
10046 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10047 $rm -f "$cfgfile"
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10049$as_echo "$as_me: creating $ofile" >&6;}
10050
10051 cat <<__EOF__ >> "$cfgfile"
10052#! $SHELL
10053
10054# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10055# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10056# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10057#
10058# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10059# Free Software Foundation, Inc.
10060#
10061# This file is part of GNU Libtool:
10062# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10063#
10064# This program is free software; you can redistribute it and/or modify
10065# it under the terms of the GNU General Public License as published by
10066# the Free Software Foundation; either version 2 of the License, or
10067# (at your option) any later version.
10068#
10069# This program is distributed in the hope that it will be useful, but
10070# WITHOUT ANY WARRANTY; without even the implied warranty of
10071# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10072# General Public License for more details.
10073#
10074# You should have received a copy of the GNU General Public License
10075# along with this program; if not, write to the Free Software
10076# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10077#
10078# As a special exception to the GNU General Public License, if you
10079# distribute this file as part of a program that contains a
10080# configuration script generated by Autoconf, you may include it under
10081# the same distribution terms that you use for the rest of that program.
10082
10083# A sed program that does not truncate output.
10084SED=$lt_SED
10085
10086# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10087Xsed="$SED -e 1s/^X//"
10088
10089# The HP-UX ksh and POSIX shell print the target directory to stdout
10090# if CDPATH is set.
10091(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10092
10093# The names of the tagged configurations supported by this script.
10094available_tags=
10095
10096# ### BEGIN LIBTOOL CONFIG
10097
10098# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10099
10100# Shell to use when invoking shell scripts.
10101SHELL=$lt_SHELL
10102
10103# Whether or not to build shared libraries.
10104build_libtool_libs=$enable_shared
10105
10106# Whether or not to build static libraries.
10107build_old_libs=$enable_static
10108
10109# Whether or not to add -lc for building shared libraries.
10110build_libtool_need_lc=$archive_cmds_need_lc
10111
10112# Whether or not to disallow shared libs when runtime libs are static
10113allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10114
10115# Whether or not to optimize for fast installation.
10116fast_install=$enable_fast_install
10117
10118# The host system.
10119host_alias=$host_alias
10120host=$host
10121host_os=$host_os
10122
10123# The build system.
10124build_alias=$build_alias
10125build=$build
10126build_os=$build_os
10127
10128# An echo program that does not interpret backslashes.
10129echo=$lt_echo
10130
10131# The archiver.
10132AR=$lt_AR
10133AR_FLAGS=$lt_AR_FLAGS
10134
10135# A C compiler.
10136LTCC=$lt_LTCC
10137
10138# LTCC compiler flags.
10139LTCFLAGS=$lt_LTCFLAGS
10140
10141# A language-specific compiler.
10142CC=$lt_compiler
10143
10144# Is the compiler the GNU C compiler?
10145with_gcc=$GCC
10146
10147# An ERE matcher.
10148EGREP=$lt_EGREP
10149
10150# The linker used to build libraries.
10151LD=$lt_LD
10152
10153# Whether we need hard or soft links.
10154LN_S=$lt_LN_S
10155
10156# A BSD-compatible nm program.
10157NM=$lt_NM
10158
10159# A symbol stripping program
10160STRIP=$lt_STRIP
10161
10162# Used to examine libraries when file_magic_cmd begins "file"
10163MAGIC_CMD=$MAGIC_CMD
10164
10165# Used on cygwin: DLL creation program.
10166DLLTOOL="$DLLTOOL"
10167
10168# Used on cygwin: object dumper.
10169OBJDUMP="$OBJDUMP"
10170
10171# Used on cygwin: assembler.
10172AS="$AS"
10173
10174# The name of the directory that contains temporary libtool files.
10175objdir=$objdir
10176
10177# How to create reloadable object files.
10178reload_flag=$lt_reload_flag
10179reload_cmds=$lt_reload_cmds
10180
10181# How to pass a linker flag through the compiler.
10182wl=$lt_lt_prog_compiler_wl
10183
10184# Object file suffix (normally "o").
10185objext="$ac_objext"
10186
10187# Old archive suffix (normally "a").
10188libext="$libext"
10189
10190# Shared library suffix (normally ".so").
10191shrext_cmds='$shrext_cmds'
10192
10193# Executable file suffix (normally "").
10194exeext="$exeext"
10195
10196# Additional compiler flags for building library objects.
10197pic_flag=$lt_lt_prog_compiler_pic
10198pic_mode=$pic_mode
10199
10200# What is the maximum length of a command?
10201max_cmd_len=$lt_cv_sys_max_cmd_len
10202
10203# Does compiler simultaneously support -c and -o options?
10204compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10205
10206# Must we lock files when doing compilation?
10207need_locks=$lt_need_locks
10208
10209# Do we need the lib prefix for modules?
10210need_lib_prefix=$need_lib_prefix
10211
10212# Do we need a version for libraries?
10213need_version=$need_version
10214
10215# Whether dlopen is supported.
10216dlopen_support=$enable_dlopen
10217
10218# Whether dlopen of programs is supported.
10219dlopen_self=$enable_dlopen_self
10220
10221# Whether dlopen of statically linked programs is supported.
10222dlopen_self_static=$enable_dlopen_self_static
10223
10224# Compiler flag to prevent dynamic linking.
10225link_static_flag=$lt_lt_prog_compiler_static
10226
10227# Compiler flag to turn off builtin functions.
10228no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10229
10230# Compiler flag to allow reflexive dlopens.
10231export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10232
10233# Compiler flag to generate shared objects directly from archives.
10234whole_archive_flag_spec=$lt_whole_archive_flag_spec
10235
10236# Compiler flag to generate thread-safe objects.
10237thread_safe_flag_spec=$lt_thread_safe_flag_spec
10238
10239# Library versioning type.
10240version_type=$version_type
10241
10242# Format of library name prefix.
10243libname_spec=$lt_libname_spec
10244
10245# List of archive names. First name is the real one, the rest are links.
10246# The last name is the one that the linker finds with -lNAME.
10247library_names_spec=$lt_library_names_spec
10248
10249# The coded name of the library, if different from the real name.
10250soname_spec=$lt_soname_spec
10251
10252# Commands used to build and install an old-style archive.
10253RANLIB=$lt_RANLIB
10254old_archive_cmds=$lt_old_archive_cmds
10255old_postinstall_cmds=$lt_old_postinstall_cmds
10256old_postuninstall_cmds=$lt_old_postuninstall_cmds
10257
10258# Create an old-style archive from a shared archive.
10259old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10260
10261# Create a temporary old-style archive to link instead of a shared archive.
10262old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10263
10264# Commands used to build and install a shared archive.
10265archive_cmds=$lt_archive_cmds
10266archive_expsym_cmds=$lt_archive_expsym_cmds
10267postinstall_cmds=$lt_postinstall_cmds
10268postuninstall_cmds=$lt_postuninstall_cmds
10269
10270# Commands used to build a loadable module (assumed same as above if empty)
10271module_cmds=$lt_module_cmds
10272module_expsym_cmds=$lt_module_expsym_cmds
10273
10274# Commands to strip libraries.
10275old_striplib=$lt_old_striplib
10276striplib=$lt_striplib
10277
10278# Dependencies to place before the objects being linked to create a
10279# shared library.
10280predep_objects=$lt_predep_objects
10281
10282# Dependencies to place after the objects being linked to create a
10283# shared library.
10284postdep_objects=$lt_postdep_objects
10285
10286# Dependencies to place before the objects being linked to create a
10287# shared library.
10288predeps=$lt_predeps
10289
10290# Dependencies to place after the objects being linked to create a
10291# shared library.
10292postdeps=$lt_postdeps
10293
10294# The directories searched by this compiler when creating a shared
10295# library
10296compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10297
10298# The library search path used internally by the compiler when linking
10299# a shared library.
10300compiler_lib_search_path=$lt_compiler_lib_search_path
10301
10302# Method to check whether dependent libraries are shared objects.
10303deplibs_check_method=$lt_deplibs_check_method
10304
10305# Command to use when deplibs_check_method == file_magic.
10306file_magic_cmd=$lt_file_magic_cmd
10307
10308# Flag that allows shared libraries with undefined symbols to be built.
10309allow_undefined_flag=$lt_allow_undefined_flag
10310
10311# Flag that forces no undefined symbols.
10312no_undefined_flag=$lt_no_undefined_flag
10313
10314# Commands used to finish a libtool library installation in a directory.
10315finish_cmds=$lt_finish_cmds
10316
10317# Same as above, but a single script fragment to be evaled but not shown.
10318finish_eval=$lt_finish_eval
10319
10320# Take the output of nm and produce a listing of raw symbols and C names.
10321global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10322
10323# Transform the output of nm in a proper C declaration
10324global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10325
10326# Transform the output of nm in a C name address pair
10327global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10328
10329# This is the shared library runtime path variable.
10330runpath_var=$runpath_var
10331
10332# This is the shared library path variable.
10333shlibpath_var=$shlibpath_var
10334
10335# Is shlibpath searched before the hard-coded library search path?
10336shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10337
10338# How to hardcode a shared library path into an executable.
10339hardcode_action=$hardcode_action
10340
10341# Whether we should hardcode library paths into libraries.
10342hardcode_into_libs=$hardcode_into_libs
10343
10344# Flag to hardcode \$libdir into a binary during linking.
10345# This must work even if \$libdir does not exist.
10346hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10347
10348# If ld is used when linking, flag to hardcode \$libdir into
10349# a binary during linking. This must work even if \$libdir does
10350# not exist.
10351hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10352
10353# Whether we need a single -rpath flag with a separated argument.
10354hardcode_libdir_separator=$lt_hardcode_libdir_separator
10355
10356# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10357# resulting binary.
10358hardcode_direct=$hardcode_direct
10359
10360# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10361# resulting binary.
10362hardcode_minus_L=$hardcode_minus_L
10363
10364# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10365# the resulting binary.
10366hardcode_shlibpath_var=$hardcode_shlibpath_var
10367
10368# Set to yes if building a shared library automatically hardcodes DIR into the library
10369# and all subsequent libraries and executables linked against it.
10370hardcode_automatic=$hardcode_automatic
10371
10372# Variables whose values should be saved in libtool wrapper scripts and
10373# restored at relink time.
10374variables_saved_for_relink="$variables_saved_for_relink"
10375
10376# Whether libtool must link a program against all its dependency libraries.
10377link_all_deplibs=$link_all_deplibs
10378
10379# Compile-time system search path for libraries
10380sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10381
10382# Run-time system search path for libraries
10383sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10384
10385# Fix the shell variable \$srcfile for the compiler.
10386fix_srcfile_path=$lt_fix_srcfile_path
10387
10388# Set to yes if exported symbols are required.
10389always_export_symbols=$always_export_symbols
10390
10391# The commands to list exported symbols.
10392export_symbols_cmds=$lt_export_symbols_cmds
10393
10394# The commands to extract the exported symbol list from a shared archive.
10395extract_expsyms_cmds=$lt_extract_expsyms_cmds
10396
10397# Symbols that should not be listed in the preloaded symbols.
10398exclude_expsyms=$lt_exclude_expsyms
10399
10400# Symbols that must always be exported.
10401include_expsyms=$lt_include_expsyms
10402
10403# ### END LIBTOOL CONFIG
10404
10405__EOF__
10406
10407
10408 case $host_os in
10409 aix3*)
10410 cat <<\EOF >> "$cfgfile"
10411
10412# AIX sometimes has problems with the GCC collect2 program. For some
10413# reason, if we set the COLLECT_NAMES environment variable, the problems
10414# vanish in a puff of smoke.
10415if test "X${COLLECT_NAMES+set}" != Xset; then
10416 COLLECT_NAMES=
10417 export COLLECT_NAMES
10418fi
10419EOF
10420 ;;
10421 esac
10422
10423 # We use sed instead of cat because bash on DJGPP gets confused if
10424 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10425 # text mode, it properly converts lines to CR/LF. This bash problem
10426 # is reportedly fixed, but why not run on old versions too?
10427 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10428
10429 mv -f "$cfgfile" "$ofile" || \
10430 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10431 chmod +x "$ofile"
10432
10433else
10434 # If there is no Makefile yet, we rely on a make rule to execute
10435 # `config.status --recheck' to rerun these tests and create the
10436 # libtool script then.
10437 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10438 if test -f "$ltmain_in"; then
10439 test -f Makefile && make "$ltmain"
10440 fi
10441fi
10442
10443
10444ac_ext=c
10445ac_cpp='$CPP $CPPFLAGS'
10446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10448ac_compiler_gnu=$ac_cv_c_compiler_gnu
10449
10450CC="$lt_save_CC"
10451
10452
10453@%:@ Check whether --with-tags was given.
10454if test "${with_tags+set}" = set; then :
10455 withval=$with_tags; tagnames="$withval"
10456fi
10457
10458
10459if test -f "$ltmain" && test -n "$tagnames"; then
10460 if test ! -f "${ofile}"; then
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10462$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10463 fi
10464
10465 if test -z "$LTCC"; then
10466 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10467 if test -z "$LTCC"; then
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10469$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10470 else
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10472$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10473 fi
10474 fi
10475 if test -z "$LTCFLAGS"; then
10476 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10477 fi
10478
10479 # Extract list of available tagged configurations in $ofile.
10480 # Note that this assumes the entire list is on one line.
10481 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10482
10483 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10484 for tagname in $tagnames; do
10485 IFS="$lt_save_ifs"
10486 # Check whether tagname contains only valid characters
10487 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10488 "") ;;
10489 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10490 ;;
10491 esac
10492
10493 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10494 then
10495 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10496 fi
10497
10498 # Update the list of available tags.
10499 if test -n "$tagname"; then
10500 echo appending configuration tag \"$tagname\" to $ofile
10501
10502 case $tagname in
10503 CXX)
10504 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10505 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10506 (test "X$CXX" != "Xg++"))) ; then
10507 ac_ext=cpp
10508ac_cpp='$CXXCPP $CPPFLAGS'
10509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10512
10513
10514
10515
10516archive_cmds_need_lc_CXX=no
10517allow_undefined_flag_CXX=
10518always_export_symbols_CXX=no
10519archive_expsym_cmds_CXX=
10520export_dynamic_flag_spec_CXX=
10521hardcode_direct_CXX=no
10522hardcode_libdir_flag_spec_CXX=
10523hardcode_libdir_flag_spec_ld_CXX=
10524hardcode_libdir_separator_CXX=
10525hardcode_minus_L_CXX=no
10526hardcode_shlibpath_var_CXX=unsupported
10527hardcode_automatic_CXX=no
10528module_cmds_CXX=
10529module_expsym_cmds_CXX=
10530link_all_deplibs_CXX=unknown
10531old_archive_cmds_CXX=$old_archive_cmds
10532no_undefined_flag_CXX=
10533whole_archive_flag_spec_CXX=
10534enable_shared_with_static_runtimes_CXX=no
10535
10536# Dependencies to place before and after the object being linked:
10537predep_objects_CXX=
10538postdep_objects_CXX=
10539predeps_CXX=
10540postdeps_CXX=
10541compiler_lib_search_path_CXX=
10542compiler_lib_search_dirs_CXX=
10543
10544# Source file extension for C++ test sources.
10545ac_ext=cpp
10546
10547# Object file extension for compiled C++ test sources.
10548objext=o
10549objext_CXX=$objext
10550
10551# Code to be used in simple compile tests
10552lt_simple_compile_test_code="int some_variable = 0;"
10553
10554# Code to be used in simple link tests
10555lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10556
10557# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10558
10559# If no C compiler was specified, use CC.
10560LTCC=${LTCC-"$CC"}
10561
10562# If no C compiler flags were specified, use CFLAGS.
10563LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10564
10565# Allow CC to be a program name with arguments.
10566compiler=$CC
10567
10568
10569# save warnings/boilerplate of simple test code
10570ac_outfile=conftest.$ac_objext
10571echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10572eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10573_lt_compiler_boilerplate=`cat conftest.err`
10574$rm conftest*
10575
10576ac_outfile=conftest.$ac_objext
10577echo "$lt_simple_link_test_code" >conftest.$ac_ext
10578eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10579_lt_linker_boilerplate=`cat conftest.err`
10580$rm -r conftest*
10581
10582
10583# Allow CC to be a program name with arguments.
10584lt_save_CC=$CC
10585lt_save_LD=$LD
10586lt_save_GCC=$GCC
10587GCC=$GXX
10588lt_save_with_gnu_ld=$with_gnu_ld
10589lt_save_path_LD=$lt_cv_path_LD
10590if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10591 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10592else
10593 $as_unset lt_cv_prog_gnu_ld
10594fi
10595if test -n "${lt_cv_path_LDCXX+set}"; then
10596 lt_cv_path_LD=$lt_cv_path_LDCXX
10597else
10598 $as_unset lt_cv_path_LD
10599fi
10600test -z "${LDCXX+set}" || LD=$LDCXX
10601CC=${CXX-"c++"}
10602compiler=$CC
10603compiler_CXX=$CC
10604for cc_temp in $compiler""; do
10605 case $cc_temp in
10606 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10607 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10608 \-*) ;;
10609 *) break;;
10610 esac
10611done
10612cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10613
10614
10615# We don't want -fno-exception wen compiling C++ code, so set the
10616# no_builtin_flag separately
10617if test "$GXX" = yes; then
10618 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10619else
10620 lt_prog_compiler_no_builtin_flag_CXX=
10621fi
10622
10623if test "$GXX" = yes; then
10624 # Set up default GNU C++ configuration
10625
10626
10627@%:@ Check whether --with-gnu-ld was given.
10628if test "${with_gnu_ld+set}" = set; then :
10629 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10630else
10631 with_gnu_ld=no
10632fi
10633
10634ac_prog=ld
10635if test "$GCC" = yes; then
10636 # Check if gcc -print-prog-name=ld gives a path.
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10638$as_echo_n "checking for ld used by $CC... " >&6; }
10639 case $host in
10640 *-*-mingw*)
10641 # gcc leaves a trailing carriage return which upsets mingw
10642 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10643 *)
10644 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10645 esac
10646 case $ac_prog in
10647 # Accept absolute paths.
10648 [\\/]* | ?:[\\/]*)
10649 re_direlt='/[^/][^/]*/\.\./'
10650 # Canonicalize the pathname of ld
10651 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10652 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10653 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10654 done
10655 test -z "$LD" && LD="$ac_prog"
10656 ;;
10657 "")
10658 # If it fails, then pretend we aren't using GCC.
10659 ac_prog=ld
10660 ;;
10661 *)
10662 # If it is relative, then search for the first ld in PATH.
10663 with_gnu_ld=unknown
10664 ;;
10665 esac
10666elif test "$with_gnu_ld" = yes; then
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10668$as_echo_n "checking for GNU ld... " >&6; }
10669else
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10671$as_echo_n "checking for non-GNU ld... " >&6; }
10672fi
10673if test "${lt_cv_path_LD+set}" = set; then :
10674 $as_echo_n "(cached) " >&6
10675else
10676 if test -z "$LD"; then
10677 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10678 for ac_dir in $PATH; do
10679 IFS="$lt_save_ifs"
10680 test -z "$ac_dir" && ac_dir=.
10681 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10682 lt_cv_path_LD="$ac_dir/$ac_prog"
10683 # Check to see if the program is GNU ld. I'd rather use --version,
10684 # but apparently some variants of GNU ld only accept -v.
10685 # Break only if it was the GNU/non-GNU ld that we prefer.
10686 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10687 *GNU* | *'with BFD'*)
10688 test "$with_gnu_ld" != no && break
10689 ;;
10690 *)
10691 test "$with_gnu_ld" != yes && break
10692 ;;
10693 esac
10694 fi
10695 done
10696 IFS="$lt_save_ifs"
10697else
10698 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10699fi
10700fi
10701
10702LD="$lt_cv_path_LD"
10703if test -n "$LD"; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10705$as_echo "$LD" >&6; }
10706else
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708$as_echo "no" >&6; }
10709fi
10710test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10712$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10713if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10714 $as_echo_n "(cached) " >&6
10715else
10716 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10717case `$LD -v 2>&1 </dev/null` in
10718*GNU* | *'with BFD'*)
10719 lt_cv_prog_gnu_ld=yes
10720 ;;
10721*)
10722 lt_cv_prog_gnu_ld=no
10723 ;;
10724esac
10725fi
10726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10727$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10728with_gnu_ld=$lt_cv_prog_gnu_ld
10729
10730
10731
10732 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10733 # archiving commands below assume that GNU ld is being used.
10734 if test "$with_gnu_ld" = yes; then
10735 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10736 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'
10737
10738 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10739 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10740
10741 # If archive_cmds runs LD, not CC, wlarc should be empty
10742 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10743 # investigate it a little bit more. (MM)
10744 wlarc='${wl}'
10745
10746 # ancient GNU ld didn't support --whole-archive et. al.
10747 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10748 grep 'no-whole-archive' > /dev/null; then
10749 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10750 else
10751 whole_archive_flag_spec_CXX=
10752 fi
10753 else
10754 with_gnu_ld=no
10755 wlarc=
10756
10757 # A generic and very simple default shared library creation
10758 # command for GNU C++ for the case where it uses the native
10759 # linker, instead of GNU ld. If possible, this setting should
10760 # overridden to take advantage of the native linker features on
10761 # the platform it is being used on.
10762 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10763 fi
10764
10765 # Commands to make compiler produce verbose output that lists
10766 # what "hidden" libraries, object files and flags are used when
10767 # linking a shared library.
10768 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10769
10770else
10771 GXX=no
10772 with_gnu_ld=no
10773 wlarc=
10774fi
10775
10776# PORTME: fill in a description of your system's C++ link characteristics
10777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10778$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10779ld_shlibs_CXX=yes
10780case $host_os in
10781 aix3*)
10782 # FIXME: insert proper C++ library support
10783 ld_shlibs_CXX=no
10784 ;;
10785 aix[4-9]*)
10786 if test "$host_cpu" = ia64; then
10787 # On IA64, the linker does run time linking by default, so we don't
10788 # have to do anything special.
10789 aix_use_runtimelinking=no
10790 exp_sym_flag='-Bexport'
10791 no_entry_flag=""
10792 else
10793 aix_use_runtimelinking=no
10794
10795 # Test if we are trying to use run time linking or normal
10796 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10797 # need to do runtime linking.
10798 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10799 for ld_flag in $LDFLAGS; do
10800 case $ld_flag in
10801 *-brtl*)
10802 aix_use_runtimelinking=yes
10803 break
10804 ;;
10805 esac
10806 done
10807 ;;
10808 esac
10809
10810 exp_sym_flag='-bexport'
10811 no_entry_flag='-bnoentry'
10812 fi
10813
10814 # When large executables or shared objects are built, AIX ld can
10815 # have problems creating the table of contents. If linking a library
10816 # or program results in "error TOC overflow" add -mminimal-toc to
10817 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10818 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10819
10820 archive_cmds_CXX=''
10821 hardcode_direct_CXX=yes
10822 hardcode_libdir_separator_CXX=':'
10823 link_all_deplibs_CXX=yes
10824
10825 if test "$GXX" = yes; then
10826 case $host_os in aix4.[012]|aix4.[012].*)
10827 # We only want to do this on AIX 4.2 and lower, the check
10828 # below for broken collect2 doesn't work under 4.3+
10829 collect2name=`${CC} -print-prog-name=collect2`
10830 if test -f "$collect2name" && \
10831 strings "$collect2name" | grep resolve_lib_name >/dev/null
10832 then
10833 # We have reworked collect2
10834 :
10835 else
10836 # We have old collect2
10837 hardcode_direct_CXX=unsupported
10838 # It fails to find uninstalled libraries when the uninstalled
10839 # path is not listed in the libpath. Setting hardcode_minus_L
10840 # to unsupported forces relinking
10841 hardcode_minus_L_CXX=yes
10842 hardcode_libdir_flag_spec_CXX='-L$libdir'
10843 hardcode_libdir_separator_CXX=
10844 fi
10845 ;;
10846 esac
10847 shared_flag='-shared'
10848 if test "$aix_use_runtimelinking" = yes; then
10849 shared_flag="$shared_flag "'${wl}-G'
10850 fi
10851 else
10852 # not using gcc
10853 if test "$host_cpu" = ia64; then
10854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10855 # chokes on -Wl,-G. The following line is correct:
10856 shared_flag='-G'
10857 else
10858 if test "$aix_use_runtimelinking" = yes; then
10859 shared_flag='${wl}-G'
10860 else
10861 shared_flag='${wl}-bM:SRE'
10862 fi
10863 fi
10864 fi
10865
10866 # It seems that -bexpall does not export symbols beginning with
10867 # underscore (_), so it is better to generate a list of symbols to export.
10868 always_export_symbols_CXX=yes
10869 if test "$aix_use_runtimelinking" = yes; then
10870 # Warning - without using the other runtime loading flags (-brtl),
10871 # -berok will link without error, but may produce a broken library.
10872 allow_undefined_flag_CXX='-berok'
10873 # Determine the default libpath from the value encoded in an empty executable.
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875/* end confdefs.h. */
10876
10877int
10878main ()
10879{
10880
10881 ;
10882 return 0;
10883}
10884_ACEOF
10885if ac_fn_cxx_try_link "$LINENO"; then :
10886
10887lt_aix_libpath_sed='
10888 /Import File Strings/,/^$/ {
10889 /^0/ {
10890 s/^0 *\(.*\)$/\1/
10891 p
10892 }
10893 }'
10894aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10895# Check for a 64-bit object if we didn't find anything.
10896if test -z "$aix_libpath"; then
10897 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10898fi
10899fi
10900rm -f core conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10902if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10903
10904 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10905
10906 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"
10907 else
10908 if test "$host_cpu" = ia64; then
10909 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10910 allow_undefined_flag_CXX="-z nodefs"
10911 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"
10912 else
10913 # Determine the default libpath from the value encoded in an empty executable.
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915/* end confdefs.h. */
10916
10917int
10918main ()
10919{
10920
10921 ;
10922 return 0;
10923}
10924_ACEOF
10925if ac_fn_cxx_try_link "$LINENO"; then :
10926
10927lt_aix_libpath_sed='
10928 /Import File Strings/,/^$/ {
10929 /^0/ {
10930 s/^0 *\(.*\)$/\1/
10931 p
10932 }
10933 }'
10934aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10935# Check for a 64-bit object if we didn't find anything.
10936if test -z "$aix_libpath"; then
10937 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10938fi
10939fi
10940rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
10942if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10943
10944 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10945 # Warning - without using the other run time loading flags,
10946 # -berok will link without error, but may produce a broken library.
10947 no_undefined_flag_CXX=' ${wl}-bernotok'
10948 allow_undefined_flag_CXX=' ${wl}-berok'
10949 # Exported symbols can be pulled into shared objects from archives
10950 whole_archive_flag_spec_CXX='$convenience'
10951 archive_cmds_need_lc_CXX=yes
10952 # This is similar to how AIX traditionally builds its shared libraries.
10953 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'
10954 fi
10955 fi
10956 ;;
10957
10958 beos*)
10959 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10960 allow_undefined_flag_CXX=unsupported
10961 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10962 # support --undefined. This deserves some investigation. FIXME
10963 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10964 else
10965 ld_shlibs_CXX=no
10966 fi
10967 ;;
10968
10969 chorus*)
10970 case $cc_basename in
10971 *)
10972 # FIXME: insert proper C++ library support
10973 ld_shlibs_CXX=no
10974 ;;
10975 esac
10976 ;;
10977
10978 cygwin* | mingw* | pw32*)
10979 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10980 # as there is no search path for DLLs.
10981 hardcode_libdir_flag_spec_CXX='-L$libdir'
10982 allow_undefined_flag_CXX=unsupported
10983 always_export_symbols_CXX=no
10984 enable_shared_with_static_runtimes_CXX=yes
10985
10986 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10987 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'
10988 # If the export-symbols file already is a .def file (1st line
10989 # is EXPORTS), use it as is; otherwise, prepend...
10990 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10991 cp $export_symbols $output_objdir/$soname.def;
10992 else
10993 echo EXPORTS > $output_objdir/$soname.def;
10994 cat $export_symbols >> $output_objdir/$soname.def;
10995 fi~
10996 $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'
10997 else
10998 ld_shlibs_CXX=no
10999 fi
11000 ;;
11001 darwin* | rhapsody*)
11002 archive_cmds_need_lc_CXX=no
11003 hardcode_direct_CXX=no
11004 hardcode_automatic_CXX=yes
11005 hardcode_shlibpath_var_CXX=unsupported
11006 whole_archive_flag_spec_CXX=''
11007 link_all_deplibs_CXX=yes
11008 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11009 if test "$GXX" = yes ; then
11010 output_verbose_link_cmd='echo'
11011 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}"
11012 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11013 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}"
11014 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}"
11015 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11016 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}"
11017 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}"
11018 fi
11019 else
11020 case $cc_basename in
11021 xlc*)
11022 output_verbose_link_cmd='echo'
11023 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'
11024 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11025 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11026 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}'
11027 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}'
11028 ;;
11029 *)
11030 ld_shlibs_CXX=no
11031 ;;
11032 esac
11033 fi
11034 ;;
11035
11036 dgux*)
11037 case $cc_basename in
11038 ec++*)
11039 # FIXME: insert proper C++ library support
11040 ld_shlibs_CXX=no
11041 ;;
11042 ghcx*)
11043 # Green Hills C++ Compiler
11044 # FIXME: insert proper C++ library support
11045 ld_shlibs_CXX=no
11046 ;;
11047 *)
11048 # FIXME: insert proper C++ library support
11049 ld_shlibs_CXX=no
11050 ;;
11051 esac
11052 ;;
11053 freebsd[12]*)
11054 # C++ shared libraries reported to be fairly broken before switch to ELF
11055 ld_shlibs_CXX=no
11056 ;;
11057 freebsd-elf*)
11058 archive_cmds_need_lc_CXX=no
11059 ;;
11060 freebsd* | dragonfly*)
11061 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11062 # conventions
11063 ld_shlibs_CXX=yes
11064 ;;
11065 gnu*)
11066 ;;
11067 hpux9*)
11068 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11069 hardcode_libdir_separator_CXX=:
11070 export_dynamic_flag_spec_CXX='${wl}-E'
11071 hardcode_direct_CXX=yes
11072 hardcode_minus_L_CXX=yes # Not in the search PATH,
11073 # but as the default
11074 # location of the library.
11075
11076 case $cc_basename in
11077 CC*)
11078 # FIXME: insert proper C++ library support
11079 ld_shlibs_CXX=no
11080 ;;
11081 aCC*)
11082 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'
11083 # Commands to make compiler produce verbose output that lists
11084 # what "hidden" libraries, object files and flags are used when
11085 # linking a shared library.
11086 #
11087 # There doesn't appear to be a way to prevent this compiler from
11088 # explicitly linking system object files so we need to strip them
11089 # from the output so that they don't get included in the library
11090 # dependencies.
11091 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'
11092 ;;
11093 *)
11094 if test "$GXX" = yes; then
11095 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'
11096 else
11097 # FIXME: insert proper C++ library support
11098 ld_shlibs_CXX=no
11099 fi
11100 ;;
11101 esac
11102 ;;
11103 hpux10*|hpux11*)
11104 if test $with_gnu_ld = no; then
11105 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11106 hardcode_libdir_separator_CXX=:
11107
11108 case $host_cpu in
11109 hppa*64*|ia64*) ;;
11110 *)
11111 export_dynamic_flag_spec_CXX='${wl}-E'
11112 ;;
11113 esac
11114 fi
11115 case $host_cpu in
11116 hppa*64*|ia64*)
11117 hardcode_direct_CXX=no
11118 hardcode_shlibpath_var_CXX=no
11119 ;;
11120 *)
11121 hardcode_direct_CXX=yes
11122 hardcode_minus_L_CXX=yes # Not in the search PATH,
11123 # but as the default
11124 # location of the library.
11125 ;;
11126 esac
11127
11128 case $cc_basename in
11129 CC*)
11130 # FIXME: insert proper C++ library support
11131 ld_shlibs_CXX=no
11132 ;;
11133 aCC*)
11134 case $host_cpu in
11135 hppa*64*)
11136 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11137 ;;
11138 ia64*)
11139 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11140 ;;
11141 *)
11142 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11143 ;;
11144 esac
11145 # Commands to make compiler produce verbose output that lists
11146 # what "hidden" libraries, object files and flags are used when
11147 # linking a shared library.
11148 #
11149 # There doesn't appear to be a way to prevent this compiler from
11150 # explicitly linking system object files so we need to strip them
11151 # from the output so that they don't get included in the library
11152 # dependencies.
11153 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'
11154 ;;
11155 *)
11156 if test "$GXX" = yes; then
11157 if test $with_gnu_ld = no; then
11158 case $host_cpu in
11159 hppa*64*)
11160 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11161 ;;
11162 ia64*)
11163 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11164 ;;
11165 *)
11166 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'
11167 ;;
11168 esac
11169 fi
11170 else
11171 # FIXME: insert proper C++ library support
11172 ld_shlibs_CXX=no
11173 fi
11174 ;;
11175 esac
11176 ;;
11177 interix[3-9]*)
11178 hardcode_direct_CXX=no
11179 hardcode_shlibpath_var_CXX=no
11180 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11181 export_dynamic_flag_spec_CXX='${wl}-E'
11182 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11183 # Instead, shared libraries are loaded at an image base (0x10000000 by
11184 # default) and relocated if they conflict, which is a slow very memory
11185 # consuming and fragmenting process. To avoid this, we pick a random,
11186 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11187 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11188 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'
11189 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'
11190 ;;
11191 irix5* | irix6*)
11192 case $cc_basename in
11193 CC*)
11194 # SGI C++
11195 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'
11196
11197 # Archives containing C++ object files must be created using
11198 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11199 # necessary to make sure instantiated templates are included
11200 # in the archive.
11201 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11202 ;;
11203 *)
11204 if test "$GXX" = yes; then
11205 if test "$with_gnu_ld" = no; then
11206 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'
11207 else
11208 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'
11209 fi
11210 fi
11211 link_all_deplibs_CXX=yes
11212 ;;
11213 esac
11214 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11215 hardcode_libdir_separator_CXX=:
11216 ;;
11217 linux* | k*bsd*-gnu)
11218 case $cc_basename in
11219 KCC*)
11220 # Kuck and Associates, Inc. (KAI) C++ Compiler
11221
11222 # KCC will only create a shared library if the output file
11223 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11224 # to its proper name (with version) after linking.
11225 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'
11226 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'
11227 # Commands to make compiler produce verbose output that lists
11228 # what "hidden" libraries, object files and flags are used when
11229 # linking a shared library.
11230 #
11231 # There doesn't appear to be a way to prevent this compiler from
11232 # explicitly linking system object files so we need to strip them
11233 # from the output so that they don't get included in the library
11234 # dependencies.
11235 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'
11236
11237 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11238 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11239
11240 # Archives containing C++ object files must be created using
11241 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11242 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11243 ;;
11244 icpc*)
11245 # Intel C++
11246 with_gnu_ld=yes
11247 # version 8.0 and above of icpc choke on multiply defined symbols
11248 # if we add $predep_objects and $postdep_objects, however 7.1 and
11249 # earlier do not add the objects themselves.
11250 case `$CC -V 2>&1` in
11251 *"Version 7."*)
11252 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11253 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'
11254 ;;
11255 *) # Version 8.0 or newer
11256 tmp_idyn=
11257 case $host_cpu in
11258 ia64*) tmp_idyn=' -i_dynamic';;
11259 esac
11260 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11261 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'
11262 ;;
11263 esac
11264 archive_cmds_need_lc_CXX=no
11265 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11266 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11267 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11268 ;;
11269 pgCC* | pgcpp*)
11270 # Portland Group C++ compiler
11271 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11272 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'
11273
11274 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11275 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11276 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'
11277 ;;
11278 cxx*)
11279 # Compaq C++
11280 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11281 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'
11282
11283 runpath_var=LD_RUN_PATH
11284 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11285 hardcode_libdir_separator_CXX=:
11286
11287 # Commands to make compiler produce verbose output that lists
11288 # what "hidden" libraries, object files and flags are used when
11289 # linking a shared library.
11290 #
11291 # There doesn't appear to be a way to prevent this compiler from
11292 # explicitly linking system object files so we need to strip them
11293 # from the output so that they don't get included in the library
11294 # dependencies.
11295 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'
11296 ;;
11297 *)
11298 case `$CC -V 2>&1 | sed 5q` in
11299 *Sun\ C*)
11300 # Sun C++ 5.9
11301 no_undefined_flag_CXX=' -zdefs'
11302 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11303 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'
11304 hardcode_libdir_flag_spec_CXX='-R$libdir'
11305 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'
11306
11307 # Not sure whether something based on
11308 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11309 # would be better.
11310 output_verbose_link_cmd='echo'
11311
11312 # Archives containing C++ object files must be created using
11313 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11314 # necessary to make sure instantiated templates are included
11315 # in the archive.
11316 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11317 ;;
11318 esac
11319 ;;
11320 esac
11321 ;;
11322 lynxos*)
11323 # FIXME: insert proper C++ library support
11324 ld_shlibs_CXX=no
11325 ;;
11326 m88k*)
11327 # FIXME: insert proper C++ library support
11328 ld_shlibs_CXX=no
11329 ;;
11330 mvs*)
11331 case $cc_basename in
11332 cxx*)
11333 # FIXME: insert proper C++ library support
11334 ld_shlibs_CXX=no
11335 ;;
11336 *)
11337 # FIXME: insert proper C++ library support
11338 ld_shlibs_CXX=no
11339 ;;
11340 esac
11341 ;;
11342 netbsd* | netbsdelf*-gnu)
11343 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11344 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11345 wlarc=
11346 hardcode_libdir_flag_spec_CXX='-R$libdir'
11347 hardcode_direct_CXX=yes
11348 hardcode_shlibpath_var_CXX=no
11349 fi
11350 # Workaround some broken pre-1.5 toolchains
11351 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11352 ;;
11353 openbsd2*)
11354 # C++ shared libraries are fairly broken
11355 ld_shlibs_CXX=no
11356 ;;
11357 openbsd*)
11358 if test -f /usr/libexec/ld.so; then
11359 hardcode_direct_CXX=yes
11360 hardcode_shlibpath_var_CXX=no
11361 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11362 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11363 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11364 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11365 export_dynamic_flag_spec_CXX='${wl}-E'
11366 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11367 fi
11368 output_verbose_link_cmd='echo'
11369 else
11370 ld_shlibs_CXX=no
11371 fi
11372 ;;
11373 osf3*)
11374 case $cc_basename in
11375 KCC*)
11376 # Kuck and Associates, Inc. (KAI) C++ Compiler
11377
11378 # KCC will only create a shared library if the output file
11379 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11380 # to its proper name (with version) after linking.
11381 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'
11382
11383 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11384 hardcode_libdir_separator_CXX=:
11385
11386 # Archives containing C++ object files must be created using
11387 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11388 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11389
11390 ;;
11391 RCC*)
11392 # Rational C++ 2.4.1
11393 # FIXME: insert proper C++ library support
11394 ld_shlibs_CXX=no
11395 ;;
11396 cxx*)
11397 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11398 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'
11399
11400 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11401 hardcode_libdir_separator_CXX=:
11402
11403 # Commands to make compiler produce verbose output that lists
11404 # what "hidden" libraries, object files and flags are used when
11405 # linking a shared library.
11406 #
11407 # There doesn't appear to be a way to prevent this compiler from
11408 # explicitly linking system object files so we need to strip them
11409 # from the output so that they don't get included in the library
11410 # dependencies.
11411 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'
11412 ;;
11413 *)
11414 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11415 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11416 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'
11417
11418 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11419 hardcode_libdir_separator_CXX=:
11420
11421 # Commands to make compiler produce verbose output that lists
11422 # what "hidden" libraries, object files and flags are used when
11423 # linking a shared library.
11424 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11425
11426 else
11427 # FIXME: insert proper C++ library support
11428 ld_shlibs_CXX=no
11429 fi
11430 ;;
11431 esac
11432 ;;
11433 osf4* | osf5*)
11434 case $cc_basename in
11435 KCC*)
11436 # Kuck and Associates, Inc. (KAI) C++ Compiler
11437
11438 # KCC will only create a shared library if the output file
11439 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11440 # to its proper name (with version) after linking.
11441 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'
11442
11443 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11444 hardcode_libdir_separator_CXX=:
11445
11446 # Archives containing C++ object files must be created using
11447 # the KAI C++ compiler.
11448 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11449 ;;
11450 RCC*)
11451 # Rational C++ 2.4.1
11452 # FIXME: insert proper C++ library support
11453 ld_shlibs_CXX=no
11454 ;;
11455 cxx*)
11456 allow_undefined_flag_CXX=' -expect_unresolved \*'
11457 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'
11458 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11459 echo "-hidden">> $lib.exp~
11460 $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~
11461 $rm $lib.exp'
11462
11463 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11464 hardcode_libdir_separator_CXX=:
11465
11466 # Commands to make compiler produce verbose output that lists
11467 # what "hidden" libraries, object files and flags are used when
11468 # linking a shared library.
11469 #
11470 # There doesn't appear to be a way to prevent this compiler from
11471 # explicitly linking system object files so we need to strip them
11472 # from the output so that they don't get included in the library
11473 # dependencies.
11474 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'
11475 ;;
11476 *)
11477 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11478 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11479 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'
11480
11481 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11482 hardcode_libdir_separator_CXX=:
11483
11484 # Commands to make compiler produce verbose output that lists
11485 # what "hidden" libraries, object files and flags are used when
11486 # linking a shared library.
11487 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11488
11489 else
11490 # FIXME: insert proper C++ library support
11491 ld_shlibs_CXX=no
11492 fi
11493 ;;
11494 esac
11495 ;;
11496 psos*)
11497 # FIXME: insert proper C++ library support
11498 ld_shlibs_CXX=no
11499 ;;
11500 sunos4*)
11501 case $cc_basename in
11502 CC*)
11503 # Sun C++ 4.x
11504 # FIXME: insert proper C++ library support
11505 ld_shlibs_CXX=no
11506 ;;
11507 lcc*)
11508 # Lucid
11509 # FIXME: insert proper C++ library support
11510 ld_shlibs_CXX=no
11511 ;;
11512 *)
11513 # FIXME: insert proper C++ library support
11514 ld_shlibs_CXX=no
11515 ;;
11516 esac
11517 ;;
11518 solaris*)
11519 case $cc_basename in
11520 CC*)
11521 # Sun C++ 4.2, 5.x and Centerline C++
11522 archive_cmds_need_lc_CXX=yes
11523 no_undefined_flag_CXX=' -zdefs'
11524 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11525 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11526 $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'
11527
11528 hardcode_libdir_flag_spec_CXX='-R$libdir'
11529 hardcode_shlibpath_var_CXX=no
11530 case $host_os in
11531 solaris2.[0-5] | solaris2.[0-5].*) ;;
11532 *)
11533 # The compiler driver will combine and reorder linker options,
11534 # but understands `-z linker_flag'.
11535 # Supported since Solaris 2.6 (maybe 2.5.1?)
11536 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11537 ;;
11538 esac
11539 link_all_deplibs_CXX=yes
11540
11541 output_verbose_link_cmd='echo'
11542
11543 # Archives containing C++ object files must be created using
11544 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11545 # necessary to make sure instantiated templates are included
11546 # in the archive.
11547 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11548 ;;
11549 gcx*)
11550 # Green Hills C++ Compiler
11551 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11552
11553 # The C++ compiler must be used to create the archive.
11554 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11555 ;;
11556 *)
11557 # GNU C++ compiler with Solaris linker
11558 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11559 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11560 if $CC --version | grep -v '^2\.7' > /dev/null; then
11561 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11562 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11563 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11564
11565 # Commands to make compiler produce verbose output that lists
11566 # what "hidden" libraries, object files and flags are used when
11567 # linking a shared library.
11568 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11569 else
11570 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11571 # platform.
11572 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11573 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11574 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
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 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11580 fi
11581
11582 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11583 case $host_os in
11584 solaris2.[0-5] | solaris2.[0-5].*) ;;
11585 *)
11586 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11587 ;;
11588 esac
11589 fi
11590 ;;
11591 esac
11592 ;;
11593 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11594 no_undefined_flag_CXX='${wl}-z,text'
11595 archive_cmds_need_lc_CXX=no
11596 hardcode_shlibpath_var_CXX=no
11597 runpath_var='LD_RUN_PATH'
11598
11599 case $cc_basename in
11600 CC*)
11601 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11602 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11603 ;;
11604 *)
11605 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11606 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11607 ;;
11608 esac
11609 ;;
11610 sysv5* | sco3.2v5* | sco5v6*)
11611 # Note: We can NOT use -z defs as we might desire, because we do not
11612 # link with -lc, and that would cause any symbols used from libc to
11613 # always be unresolved, which means just about no library would
11614 # ever link correctly. If we're not using GNU ld we use -z text
11615 # though, which does catch some bad symbols but isn't as heavy-handed
11616 # as -z defs.
11617 # For security reasons, it is highly recommended that you always
11618 # use absolute paths for naming shared libraries, and exclude the
11619 # DT_RUNPATH tag from executables and libraries. But doing so
11620 # requires that you compile everything twice, which is a pain.
11621 # So that behaviour is only enabled if SCOABSPATH is set to a
11622 # non-empty value in the environment. Most likely only useful for
11623 # creating official distributions of packages.
11624 # This is a hack until libtool officially supports absolute path
11625 # names for shared libraries.
11626 no_undefined_flag_CXX='${wl}-z,text'
11627 allow_undefined_flag_CXX='${wl}-z,nodefs'
11628 archive_cmds_need_lc_CXX=no
11629 hardcode_shlibpath_var_CXX=no
11630 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11631 hardcode_libdir_separator_CXX=':'
11632 link_all_deplibs_CXX=yes
11633 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11634 runpath_var='LD_RUN_PATH'
11635
11636 case $cc_basename in
11637 CC*)
11638 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11639 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11640 ;;
11641 *)
11642 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11643 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11644 ;;
11645 esac
11646 ;;
11647 tandem*)
11648 case $cc_basename in
11649 NCC*)
11650 # NonStop-UX NCC 3.20
11651 # FIXME: insert proper C++ library support
11652 ld_shlibs_CXX=no
11653 ;;
11654 *)
11655 # FIXME: insert proper C++ library support
11656 ld_shlibs_CXX=no
11657 ;;
11658 esac
11659 ;;
11660 vxworks*)
11661 # FIXME: insert proper C++ library support
11662 ld_shlibs_CXX=no
11663 ;;
11664 *)
11665 # FIXME: insert proper C++ library support
11666 ld_shlibs_CXX=no
11667 ;;
11668esac
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11670$as_echo "$ld_shlibs_CXX" >&6; }
11671test "$ld_shlibs_CXX" = no && can_build_shared=no
11672
11673GCC_CXX="$GXX"
11674LD_CXX="$LD"
11675
11676cat > conftest.$ac_ext <<EOF
11677class Foo
11678{
11679public:
11680 Foo (void) { a = 0; }
11681private:
11682 int a;
11683};
11684EOF
11685
11686if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11687 (eval $ac_compile) 2>&5
11688 ac_status=$?
11689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11690 test $ac_status = 0; }; then
11691 # Parse the compiler output and extract the necessary
11692 # objects, libraries and library flags.
11693
11694 # Sentinel used to keep track of whether or not we are before
11695 # the conftest object file.
11696 pre_test_object_deps_done=no
11697
11698 # The `*' in the case matches for architectures that use `case' in
11699 # $output_verbose_cmd can trigger glob expansion during the loop
11700 # eval without this substitution.
11701 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11702
11703 for p in `eval $output_verbose_link_cmd`; do
11704 case $p in
11705
11706 -L* | -R* | -l*)
11707 # Some compilers place space between "-{L,R}" and the path.
11708 # Remove the space.
11709 if test $p = "-L" \
11710 || test $p = "-R"; then
11711 prev=$p
11712 continue
11713 else
11714 prev=
11715 fi
11716
11717 if test "$pre_test_object_deps_done" = no; then
11718 case $p in
11719 -L* | -R*)
11720 # Internal compiler library paths should come after those
11721 # provided the user. The postdeps already come after the
11722 # user supplied libs so there is no need to process them.
11723 if test -z "$compiler_lib_search_path_CXX"; then
11724 compiler_lib_search_path_CXX="${prev}${p}"
11725 else
11726 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11727 fi
11728 ;;
11729 # The "-l" case would never come before the object being
11730 # linked, so don't bother handling this case.
11731 esac
11732 else
11733 if test -z "$postdeps_CXX"; then
11734 postdeps_CXX="${prev}${p}"
11735 else
11736 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11737 fi
11738 fi
11739 ;;
11740
11741 *.$objext)
11742 # This assumes that the test object file only shows up
11743 # once in the compiler output.
11744 if test "$p" = "conftest.$objext"; then
11745 pre_test_object_deps_done=yes
11746 continue
11747 fi
11748
11749 if test "$pre_test_object_deps_done" = no; then
11750 if test -z "$predep_objects_CXX"; then
11751 predep_objects_CXX="$p"
11752 else
11753 predep_objects_CXX="$predep_objects_CXX $p"
11754 fi
11755 else
11756 if test -z "$postdep_objects_CXX"; then
11757 postdep_objects_CXX="$p"
11758 else
11759 postdep_objects_CXX="$postdep_objects_CXX $p"
11760 fi
11761 fi
11762 ;;
11763
11764 *) ;; # Ignore the rest.
11765
11766 esac
11767 done
11768
11769 # Clean up.
11770 rm -f a.out a.exe
11771else
11772 echo "libtool.m4: error: problem compiling CXX test program"
11773fi
11774
11775$rm -f confest.$objext
11776
11777compiler_lib_search_dirs_CXX=
11778if test -n "$compiler_lib_search_path_CXX"; then
11779 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11780fi
11781
11782# PORTME: override above test on systems where it is broken
11783case $host_os in
11784interix[3-9]*)
11785 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11786 # hack all around it, let's just trust "g++" to DTRT.
11787 predep_objects_CXX=
11788 postdep_objects_CXX=
11789 postdeps_CXX=
11790 ;;
11791
11792linux*)
11793 case `$CC -V 2>&1 | sed 5q` in
11794 *Sun\ C*)
11795 # Sun C++ 5.9
11796 #
11797 # The more standards-conforming stlport4 library is
11798 # incompatible with the Cstd library. Avoid specifying
11799 # it if it's in CXXFLAGS. Ignore libCrun as
11800 # -library=stlport4 depends on it.
11801 case " $CXX $CXXFLAGS " in
11802 *" -library=stlport4 "*)
11803 solaris_use_stlport4=yes
11804 ;;
11805 esac
11806 if test "$solaris_use_stlport4" != yes; then
11807 postdeps_CXX='-library=Cstd -library=Crun'
11808 fi
11809 ;;
11810 esac
11811 ;;
11812
11813solaris*)
11814 case $cc_basename in
11815 CC*)
11816 # The more standards-conforming stlport4 library is
11817 # incompatible with the Cstd library. Avoid specifying
11818 # it if it's in CXXFLAGS. Ignore libCrun as
11819 # -library=stlport4 depends on it.
11820 case " $CXX $CXXFLAGS " in
11821 *" -library=stlport4 "*)
11822 solaris_use_stlport4=yes
11823 ;;
11824 esac
11825
11826 # Adding this requires a known-good setup of shared libraries for
11827 # Sun compiler versions before 5.6, else PIC objects from an old
11828 # archive will be linked into the output, leading to subtle bugs.
11829 if test "$solaris_use_stlport4" != yes; then
11830 postdeps_CXX='-library=Cstd -library=Crun'
11831 fi
11832 ;;
11833 esac
11834 ;;
11835esac
11836
11837case " $postdeps_CXX " in
11838*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11839esac
11840
11841lt_prog_compiler_wl_CXX=
11842lt_prog_compiler_pic_CXX=
11843lt_prog_compiler_static_CXX=
11844
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11846$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11847
11848 # C++ specific cases for pic, static, wl, etc.
11849 if test "$GXX" = yes; then
11850 lt_prog_compiler_wl_CXX='-Wl,'
11851 lt_prog_compiler_static_CXX='-static'
11852
11853 case $host_os in
11854 aix*)
11855 # All AIX code is PIC.
11856 if test "$host_cpu" = ia64; then
11857 # AIX 5 now supports IA64 processor
11858 lt_prog_compiler_static_CXX='-Bstatic'
11859 fi
11860 ;;
11861 amigaos*)
11862 # FIXME: we need at least 68020 code to build shared libraries, but
11863 # adding the `-m68020' flag to GCC prevents building anything better,
11864 # like `-m68040'.
11865 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11866 ;;
11867 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11868 # PIC is the default for these OSes.
11869 ;;
11870 mingw* | cygwin* | os2* | pw32*)
11871 # This hack is so that the source file can tell whether it is being
11872 # built for inclusion in a dll (and should export symbols for example).
11873 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11874 # (--disable-auto-import) libraries
11875 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11876 ;;
11877 darwin* | rhapsody*)
11878 # PIC is the default on this platform
11879 # Common symbols not allowed in MH_DYLIB files
11880 lt_prog_compiler_pic_CXX='-fno-common'
11881 ;;
11882 *djgpp*)
11883 # DJGPP does not support shared libraries at all
11884 lt_prog_compiler_pic_CXX=
11885 ;;
11886 interix[3-9]*)
11887 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11888 # Instead, we relocate shared libraries at runtime.
11889 ;;
11890 sysv4*MP*)
11891 if test -d /usr/nec; then
11892 lt_prog_compiler_pic_CXX=-Kconform_pic
11893 fi
11894 ;;
11895 hpux*)
11896 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11897 # not for PA HP-UX.
11898 case $host_cpu in
11899 hppa*64*|ia64*)
11900 ;;
11901 *)
11902 lt_prog_compiler_pic_CXX='-fPIC'
11903 ;;
11904 esac
11905 ;;
11906 *)
11907 lt_prog_compiler_pic_CXX='-fPIC'
11908 ;;
11909 esac
11910 else
11911 case $host_os in
11912 aix[4-9]*)
11913 # All AIX code is PIC.
11914 if test "$host_cpu" = ia64; then
11915 # AIX 5 now supports IA64 processor
11916 lt_prog_compiler_static_CXX='-Bstatic'
11917 else
11918 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11919 fi
11920 ;;
11921 chorus*)
11922 case $cc_basename in
11923 cxch68*)
11924 # Green Hills C++ Compiler
11925 # _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"
11926 ;;
11927 esac
11928 ;;
11929 darwin*)
11930 # PIC is the default on this platform
11931 # Common symbols not allowed in MH_DYLIB files
11932 case $cc_basename in
11933 xlc*)
11934 lt_prog_compiler_pic_CXX='-qnocommon'
11935 lt_prog_compiler_wl_CXX='-Wl,'
11936 ;;
11937 esac
11938 ;;
11939 dgux*)
11940 case $cc_basename in
11941 ec++*)
11942 lt_prog_compiler_pic_CXX='-KPIC'
11943 ;;
11944 ghcx*)
11945 # Green Hills C++ Compiler
11946 lt_prog_compiler_pic_CXX='-pic'
11947 ;;
11948 *)
11949 ;;
11950 esac
11951 ;;
11952 freebsd* | dragonfly*)
11953 # FreeBSD uses GNU C++
11954 ;;
11955 hpux9* | hpux10* | hpux11*)
11956 case $cc_basename in
11957 CC*)
11958 lt_prog_compiler_wl_CXX='-Wl,'
11959 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11960 if test "$host_cpu" != ia64; then
11961 lt_prog_compiler_pic_CXX='+Z'
11962 fi
11963 ;;
11964 aCC*)
11965 lt_prog_compiler_wl_CXX='-Wl,'
11966 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11967 case $host_cpu in
11968 hppa*64*|ia64*)
11969 # +Z the default
11970 ;;
11971 *)
11972 lt_prog_compiler_pic_CXX='+Z'
11973 ;;
11974 esac
11975 ;;
11976 *)
11977 ;;
11978 esac
11979 ;;
11980 interix*)
11981 # This is c89, which is MS Visual C++ (no shared libs)
11982 # Anyone wants to do a port?
11983 ;;
11984 irix5* | irix6* | nonstopux*)
11985 case $cc_basename in
11986 CC*)
11987 lt_prog_compiler_wl_CXX='-Wl,'
11988 lt_prog_compiler_static_CXX='-non_shared'
11989 # CC pic flag -KPIC is the default.
11990 ;;
11991 *)
11992 ;;
11993 esac
11994 ;;
11995 linux* | k*bsd*-gnu)
11996 case $cc_basename in
11997 KCC*)
11998 # KAI C++ Compiler
11999 lt_prog_compiler_wl_CXX='--backend -Wl,'
12000 lt_prog_compiler_pic_CXX='-fPIC'
12001 ;;
12002 icpc* | ecpc*)
12003 # Intel C++
12004 lt_prog_compiler_wl_CXX='-Wl,'
12005 lt_prog_compiler_pic_CXX='-KPIC'
12006 lt_prog_compiler_static_CXX='-static'
12007 ;;
12008 pgCC* | pgcpp*)
12009 # Portland Group C++ compiler.
12010 lt_prog_compiler_wl_CXX='-Wl,'
12011 lt_prog_compiler_pic_CXX='-fpic'
12012 lt_prog_compiler_static_CXX='-Bstatic'
12013 ;;
12014 cxx*)
12015 # Compaq C++
12016 # Make sure the PIC flag is empty. It appears that all Alpha
12017 # Linux and Compaq Tru64 Unix objects are PIC.
12018 lt_prog_compiler_pic_CXX=
12019 lt_prog_compiler_static_CXX='-non_shared'
12020 ;;
12021 *)
12022 case `$CC -V 2>&1 | sed 5q` in
12023 *Sun\ C*)
12024 # Sun C++ 5.9
12025 lt_prog_compiler_pic_CXX='-KPIC'
12026 lt_prog_compiler_static_CXX='-Bstatic'
12027 lt_prog_compiler_wl_CXX='-Qoption ld '
12028 ;;
12029 esac
12030 ;;
12031 esac
12032 ;;
12033 lynxos*)
12034 ;;
12035 m88k*)
12036 ;;
12037 mvs*)
12038 case $cc_basename in
12039 cxx*)
12040 lt_prog_compiler_pic_CXX='-W c,exportall'
12041 ;;
12042 *)
12043 ;;
12044 esac
12045 ;;
12046 netbsd* | netbsdelf*-gnu)
12047 ;;
12048 osf3* | osf4* | osf5*)
12049 case $cc_basename in
12050 KCC*)
12051 lt_prog_compiler_wl_CXX='--backend -Wl,'
12052 ;;
12053 RCC*)
12054 # Rational C++ 2.4.1
12055 lt_prog_compiler_pic_CXX='-pic'
12056 ;;
12057 cxx*)
12058 # Digital/Compaq C++
12059 lt_prog_compiler_wl_CXX='-Wl,'
12060 # Make sure the PIC flag is empty. It appears that all Alpha
12061 # Linux and Compaq Tru64 Unix objects are PIC.
12062 lt_prog_compiler_pic_CXX=
12063 lt_prog_compiler_static_CXX='-non_shared'
12064 ;;
12065 *)
12066 ;;
12067 esac
12068 ;;
12069 psos*)
12070 ;;
12071 solaris*)
12072 case $cc_basename in
12073 CC*)
12074 # Sun C++ 4.2, 5.x and Centerline C++
12075 lt_prog_compiler_pic_CXX='-KPIC'
12076 lt_prog_compiler_static_CXX='-Bstatic'
12077 lt_prog_compiler_wl_CXX='-Qoption ld '
12078 ;;
12079 gcx*)
12080 # Green Hills C++ Compiler
12081 lt_prog_compiler_pic_CXX='-PIC'
12082 ;;
12083 *)
12084 ;;
12085 esac
12086 ;;
12087 sunos4*)
12088 case $cc_basename in
12089 CC*)
12090 # Sun C++ 4.x
12091 lt_prog_compiler_pic_CXX='-pic'
12092 lt_prog_compiler_static_CXX='-Bstatic'
12093 ;;
12094 lcc*)
12095 # Lucid
12096 lt_prog_compiler_pic_CXX='-pic'
12097 ;;
12098 *)
12099 ;;
12100 esac
12101 ;;
12102 tandem*)
12103 case $cc_basename in
12104 NCC*)
12105 # NonStop-UX NCC 3.20
12106 lt_prog_compiler_pic_CXX='-KPIC'
12107 ;;
12108 *)
12109 ;;
12110 esac
12111 ;;
12112 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12113 case $cc_basename in
12114 CC*)
12115 lt_prog_compiler_wl_CXX='-Wl,'
12116 lt_prog_compiler_pic_CXX='-KPIC'
12117 lt_prog_compiler_static_CXX='-Bstatic'
12118 ;;
12119 esac
12120 ;;
12121 vxworks*)
12122 ;;
12123 *)
12124 lt_prog_compiler_can_build_shared_CXX=no
12125 ;;
12126 esac
12127 fi
12128
12129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12130$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12131
12132#
12133# Check to make sure the PIC flag actually works.
12134#
12135if test -n "$lt_prog_compiler_pic_CXX"; then
12136
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12138$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12139if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12140 $as_echo_n "(cached) " >&6
12141else
12142 lt_cv_prog_compiler_pic_works_CXX=no
12143 ac_outfile=conftest.$ac_objext
12144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12145 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12146 # Insert the option either (1) after the last *FLAGS variable, or
12147 # (2) before a word containing "conftest.", or (3) at the end.
12148 # Note that $ac_compile itself does not contain backslashes and begins
12149 # with a dollar sign (not a hyphen), so the echo should work correctly.
12150 # The option is referenced via a variable to avoid confusing sed.
12151 lt_compile=`echo "$ac_compile" | $SED \
12152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12154 -e 's:$: $lt_compiler_flag:'`
12155 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12156 (eval "$lt_compile" 2>conftest.err)
12157 ac_status=$?
12158 cat conftest.err >&5
12159 echo "$as_me:__oline__: \$? = $ac_status" >&5
12160 if (exit $ac_status) && test -s "$ac_outfile"; then
12161 # The compiler can only warn and ignore the option if not recognized
12162 # So say no if there are warnings other than the usual output.
12163 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12164 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12165 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12166 lt_cv_prog_compiler_pic_works_CXX=yes
12167 fi
12168 fi
12169 $rm conftest*
12170
12171fi
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12173$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12174
12175if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12176 case $lt_prog_compiler_pic_CXX in
12177 "" | " "*) ;;
12178 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12179 esac
12180else
12181 lt_prog_compiler_pic_CXX=
12182 lt_prog_compiler_can_build_shared_CXX=no
12183fi
12184
12185fi
12186case $host_os in
12187 # For platforms which do not support PIC, -DPIC is meaningless:
12188 *djgpp*)
12189 lt_prog_compiler_pic_CXX=
12190 ;;
12191 *)
12192 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12193 ;;
12194esac
12195
12196#
12197# Check to make sure the static flag actually works.
12198#
12199wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12201$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12202if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12203 $as_echo_n "(cached) " >&6
12204else
12205 lt_cv_prog_compiler_static_works_CXX=no
12206 save_LDFLAGS="$LDFLAGS"
12207 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12208 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12209 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12210 # The linker can only warn and ignore the option if not recognized
12211 # So say no if there are warnings
12212 if test -s conftest.err; then
12213 # Append any errors to the config.log.
12214 cat conftest.err 1>&5
12215 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12217 if diff conftest.exp conftest.er2 >/dev/null; then
12218 lt_cv_prog_compiler_static_works_CXX=yes
12219 fi
12220 else
12221 lt_cv_prog_compiler_static_works_CXX=yes
12222 fi
12223 fi
12224 $rm -r conftest*
12225 LDFLAGS="$save_LDFLAGS"
12226
12227fi
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12229$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12230
12231if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12232 :
12233else
12234 lt_prog_compiler_static_CXX=
12235fi
12236
12237
12238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12239$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12240if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12241 $as_echo_n "(cached) " >&6
12242else
12243 lt_cv_prog_compiler_c_o_CXX=no
12244 $rm -r conftest 2>/dev/null
12245 mkdir conftest
12246 cd conftest
12247 mkdir out
12248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12249
12250 lt_compiler_flag="-o out/conftest2.$ac_objext"
12251 # Insert the option either (1) after the last *FLAGS variable, or
12252 # (2) before a word containing "conftest.", or (3) at the end.
12253 # Note that $ac_compile itself does not contain backslashes and begins
12254 # with a dollar sign (not a hyphen), so the echo should work correctly.
12255 lt_compile=`echo "$ac_compile" | $SED \
12256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12258 -e 's:$: $lt_compiler_flag:'`
12259 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12260 (eval "$lt_compile" 2>out/conftest.err)
12261 ac_status=$?
12262 cat out/conftest.err >&5
12263 echo "$as_me:__oline__: \$? = $ac_status" >&5
12264 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12265 then
12266 # The compiler can only warn and ignore the option if not recognized
12267 # So say no if there are warnings
12268 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12269 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12270 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12271 lt_cv_prog_compiler_c_o_CXX=yes
12272 fi
12273 fi
12274 chmod u+w . 2>&5
12275 $rm conftest*
12276 # SGI C++ compiler will create directory out/ii_files/ for
12277 # template instantiation
12278 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12279 $rm out/* && rmdir out
12280 cd ..
12281 rmdir conftest
12282 $rm conftest*
12283
12284fi
12285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12286$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12287
12288
12289hard_links="nottested"
12290if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12291 # do not overwrite the value of need_locks provided by the user
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12293$as_echo_n "checking if we can lock with hard links... " >&6; }
12294 hard_links=yes
12295 $rm conftest*
12296 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12297 touch conftest.a
12298 ln conftest.a conftest.b 2>&5 || hard_links=no
12299 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12301$as_echo "$hard_links" >&6; }
12302 if test "$hard_links" = no; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12304$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12305 need_locks=warn
12306 fi
12307else
12308 need_locks=no
12309fi
12310
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12312$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12313
12314 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12315 case $host_os in
12316 aix[4-9]*)
12317 # If we're using GNU nm, then we don't want the "-C" option.
12318 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12319 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12320 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'
12321 else
12322 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'
12323 fi
12324 ;;
12325 pw32*)
12326 export_symbols_cmds_CXX="$ltdll_cmds"
12327 ;;
12328 cygwin* | mingw*)
12329 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'
12330 ;;
12331 linux* | k*bsd*-gnu)
12332 link_all_deplibs_CXX=no
12333 ;;
12334 *)
12335 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12336 ;;
12337 esac
12338 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12339
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12341$as_echo "$ld_shlibs_CXX" >&6; }
12342test "$ld_shlibs_CXX" = no && can_build_shared=no
12343
12344#
12345# Do we need to explicitly link libc?
12346#
12347case "x$archive_cmds_need_lc_CXX" in
12348x|xyes)
12349 # Assume -lc should be added
12350 archive_cmds_need_lc_CXX=yes
12351
12352 if test "$enable_shared" = yes && test "$GCC" = yes; then
12353 case $archive_cmds_CXX in
12354 *'~'*)
12355 # FIXME: we may have to deal with multi-command sequences.
12356 ;;
12357 '$CC '*)
12358 # Test whether the compiler implicitly links with -lc since on some
12359 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12360 # to ld, don't add -lc before -lgcc.
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12362$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12363 $rm conftest*
12364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12365
12366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12367 (eval $ac_compile) 2>&5
12368 ac_status=$?
12369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12370 test $ac_status = 0; } 2>conftest.err; then
12371 soname=conftest
12372 lib=conftest
12373 libobjs=conftest.$ac_objext
12374 deplibs=
12375 wl=$lt_prog_compiler_wl_CXX
12376 pic_flag=$lt_prog_compiler_pic_CXX
12377 compiler_flags=-v
12378 linker_flags=-v
12379 verstring=
12380 output_objdir=.
12381 libname=conftest
12382 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12383 allow_undefined_flag_CXX=
12384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12385 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12386 ac_status=$?
12387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12388 test $ac_status = 0; }
12389 then
12390 archive_cmds_need_lc_CXX=no
12391 else
12392 archive_cmds_need_lc_CXX=yes
12393 fi
12394 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12395 else
12396 cat conftest.err 1>&5
12397 fi
12398 $rm conftest*
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12400$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12401 ;;
12402 esac
12403 fi
12404 ;;
12405esac
12406
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12408$as_echo_n "checking dynamic linker characteristics... " >&6; }
12409library_names_spec=
12410libname_spec='lib$name'
12411soname_spec=
12412shrext_cmds=".so"
12413postinstall_cmds=
12414postuninstall_cmds=
12415finish_cmds=
12416finish_eval=
12417shlibpath_var=
12418shlibpath_overrides_runpath=unknown
12419version_type=none
12420dynamic_linker="$host_os ld.so"
12421sys_lib_dlsearch_path_spec="/lib /usr/lib"
12422
12423need_lib_prefix=unknown
12424hardcode_into_libs=no
12425
12426# when you set need_version to no, make sure it does not cause -set_version
12427# flags to be left without arguments
12428need_version=unknown
12429
12430case $host_os in
12431aix3*)
12432 version_type=linux
12433 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12434 shlibpath_var=LIBPATH
12435
12436 # AIX 3 has no versioning support, so we append a major version to the name.
12437 soname_spec='${libname}${release}${shared_ext}$major'
12438 ;;
12439
12440aix[4-9]*)
12441 version_type=linux
12442 need_lib_prefix=no
12443 need_version=no
12444 hardcode_into_libs=yes
12445 if test "$host_cpu" = ia64; then
12446 # AIX 5 supports IA64
12447 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12448 shlibpath_var=LD_LIBRARY_PATH
12449 else
12450 # With GCC up to 2.95.x, collect2 would create an import file
12451 # for dependence libraries. The import file would start with
12452 # the line `#! .'. This would cause the generated library to
12453 # depend on `.', always an invalid library. This was fixed in
12454 # development snapshots of GCC prior to 3.0.
12455 case $host_os in
12456 aix4 | aix4.[01] | aix4.[01].*)
12457 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12458 echo ' yes '
12459 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12460 :
12461 else
12462 can_build_shared=no
12463 fi
12464 ;;
12465 esac
12466 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12467 # soname into executable. Probably we can add versioning support to
12468 # collect2, so additional links can be useful in future.
12469 if test "$aix_use_runtimelinking" = yes; then
12470 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12471 # instead of lib<name>.a to let people know that these are not
12472 # typical AIX shared libraries.
12473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12474 else
12475 # We preserve .a as extension for shared libraries through AIX4.2
12476 # and later when we are not doing run time linking.
12477 library_names_spec='${libname}${release}.a $libname.a'
12478 soname_spec='${libname}${release}${shared_ext}$major'
12479 fi
12480 shlibpath_var=LIBPATH
12481 fi
12482 ;;
12483
12484amigaos*)
12485 library_names_spec='$libname.ixlibrary $libname.a'
12486 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12487 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'
12488 ;;
12489
12490beos*)
12491 library_names_spec='${libname}${shared_ext}'
12492 dynamic_linker="$host_os ld.so"
12493 shlibpath_var=LIBRARY_PATH
12494 ;;
12495
12496bsdi[45]*)
12497 version_type=linux
12498 need_version=no
12499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12500 soname_spec='${libname}${release}${shared_ext}$major'
12501 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12502 shlibpath_var=LD_LIBRARY_PATH
12503 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12504 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12505 # the default ld.so.conf also contains /usr/contrib/lib and
12506 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12507 # libtool to hard-code these into programs
12508 ;;
12509
12510cygwin* | mingw* | pw32*)
12511 version_type=windows
12512 shrext_cmds=".dll"
12513 need_version=no
12514 need_lib_prefix=no
12515
12516 case $GCC,$host_os in
12517 yes,cygwin* | yes,mingw* | yes,pw32*)
12518 library_names_spec='$libname.dll.a'
12519 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12520 postinstall_cmds='base_file=`basename \${file}`~
12521 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12522 dldir=$destdir/`dirname \$dlpath`~
12523 test -d \$dldir || mkdir -p \$dldir~
12524 $install_prog $dir/$dlname \$dldir/$dlname~
12525 chmod a+x \$dldir/$dlname'
12526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12527 dlpath=$dir/\$dldll~
12528 $rm \$dlpath'
12529 shlibpath_overrides_runpath=yes
12530
12531 case $host_os in
12532 cygwin*)
12533 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12534 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12535 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12536 ;;
12537 mingw*)
12538 # MinGW DLLs use traditional 'lib' prefix
12539 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12540 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12541 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12542 # It is most probably a Windows format PATH printed by
12543 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12544 # path with ; separators, and with drive letters. We can handle the
12545 # drive letters (cygwin fileutils understands them), so leave them,
12546 # especially as we might pass files found there to a mingw objdump,
12547 # which wouldn't understand a cygwinified path. Ahh.
12548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12549 else
12550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12551 fi
12552 ;;
12553 pw32*)
12554 # pw32 DLLs use 'pw' prefix rather than 'lib'
12555 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12556 ;;
12557 esac
12558 ;;
12559
12560 *)
12561 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12562 ;;
12563 esac
12564 dynamic_linker='Win32 ld.exe'
12565 # FIXME: first we should search . and the directory the executable is in
12566 shlibpath_var=PATH
12567 ;;
12568
12569darwin* | rhapsody*)
12570 dynamic_linker="$host_os dyld"
12571 version_type=darwin
12572 need_lib_prefix=no
12573 need_version=no
12574 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12575 soname_spec='${libname}${release}${major}$shared_ext'
12576 shlibpath_overrides_runpath=yes
12577 shlibpath_var=DYLD_LIBRARY_PATH
12578 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12579
12580 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12581 ;;
12582
12583dgux*)
12584 version_type=linux
12585 need_lib_prefix=no
12586 need_version=no
12587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12588 soname_spec='${libname}${release}${shared_ext}$major'
12589 shlibpath_var=LD_LIBRARY_PATH
12590 ;;
12591
12592freebsd1*)
12593 dynamic_linker=no
12594 ;;
12595
12596freebsd* | dragonfly*)
12597 # DragonFly does not have aout. When/if they implement a new
12598 # versioning mechanism, adjust this.
12599 if test -x /usr/bin/objformat; then
12600 objformat=`/usr/bin/objformat`
12601 else
12602 case $host_os in
12603 freebsd[123]*) objformat=aout ;;
12604 *) objformat=elf ;;
12605 esac
12606 fi
12607 version_type=freebsd-$objformat
12608 case $version_type in
12609 freebsd-elf*)
12610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12611 need_version=no
12612 need_lib_prefix=no
12613 ;;
12614 freebsd-*)
12615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12616 need_version=yes
12617 ;;
12618 esac
12619 shlibpath_var=LD_LIBRARY_PATH
12620 case $host_os in
12621 freebsd2*)
12622 shlibpath_overrides_runpath=yes
12623 ;;
12624 freebsd3.[01]* | freebsdelf3.[01]*)
12625 shlibpath_overrides_runpath=yes
12626 hardcode_into_libs=yes
12627 ;;
12628 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12629 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12630 shlibpath_overrides_runpath=no
12631 hardcode_into_libs=yes
12632 ;;
12633 *) # from 4.6 on, and DragonFly
12634 shlibpath_overrides_runpath=yes
12635 hardcode_into_libs=yes
12636 ;;
12637 esac
12638 ;;
12639
12640gnu*)
12641 version_type=linux
12642 need_lib_prefix=no
12643 need_version=no
12644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12645 soname_spec='${libname}${release}${shared_ext}$major'
12646 shlibpath_var=LD_LIBRARY_PATH
12647 hardcode_into_libs=yes
12648 ;;
12649
12650hpux9* | hpux10* | hpux11*)
12651 # Give a soname corresponding to the major version so that dld.sl refuses to
12652 # link against other versions.
12653 version_type=sunos
12654 need_lib_prefix=no
12655 need_version=no
12656 case $host_cpu in
12657 ia64*)
12658 shrext_cmds='.so'
12659 hardcode_into_libs=yes
12660 dynamic_linker="$host_os dld.so"
12661 shlibpath_var=LD_LIBRARY_PATH
12662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12664 soname_spec='${libname}${release}${shared_ext}$major'
12665 if test "X$HPUX_IA64_MODE" = X32; then
12666 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12667 else
12668 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12669 fi
12670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12671 ;;
12672 hppa*64*)
12673 shrext_cmds='.sl'
12674 hardcode_into_libs=yes
12675 dynamic_linker="$host_os dld.sl"
12676 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12679 soname_spec='${libname}${release}${shared_ext}$major'
12680 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12682 ;;
12683 *)
12684 shrext_cmds='.sl'
12685 dynamic_linker="$host_os dld.sl"
12686 shlibpath_var=SHLIB_PATH
12687 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12689 soname_spec='${libname}${release}${shared_ext}$major'
12690 ;;
12691 esac
12692 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12693 postinstall_cmds='chmod 555 $lib'
12694 ;;
12695
12696interix[3-9]*)
12697 version_type=linux
12698 need_lib_prefix=no
12699 need_version=no
12700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12701 soname_spec='${libname}${release}${shared_ext}$major'
12702 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12703 shlibpath_var=LD_LIBRARY_PATH
12704 shlibpath_overrides_runpath=no
12705 hardcode_into_libs=yes
12706 ;;
12707
12708irix5* | irix6* | nonstopux*)
12709 case $host_os in
12710 nonstopux*) version_type=nonstopux ;;
12711 *)
12712 if test "$lt_cv_prog_gnu_ld" = yes; then
12713 version_type=linux
12714 else
12715 version_type=irix
12716 fi ;;
12717 esac
12718 need_lib_prefix=no
12719 need_version=no
12720 soname_spec='${libname}${release}${shared_ext}$major'
12721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12722 case $host_os in
12723 irix5* | nonstopux*)
12724 libsuff= shlibsuff=
12725 ;;
12726 *)
12727 case $LD in # libtool.m4 will add one of these switches to LD
12728 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12729 libsuff= shlibsuff= libmagic=32-bit;;
12730 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12731 libsuff=32 shlibsuff=N32 libmagic=N32;;
12732 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12733 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12734 *) libsuff= shlibsuff= libmagic=never-match;;
12735 esac
12736 ;;
12737 esac
12738 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12739 shlibpath_overrides_runpath=no
12740 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12741 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12742 hardcode_into_libs=yes
12743 ;;
12744
12745# No shared lib support for Linux oldld, aout, or coff.
12746linux*oldld* | linux*aout* | linux*coff*)
12747 dynamic_linker=no
12748 ;;
12749
12750# This must be Linux ELF.
12751linux* | k*bsd*-gnu)
12752 version_type=linux
12753 need_lib_prefix=no
12754 need_version=no
12755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12756 soname_spec='${libname}${release}${shared_ext}$major'
12757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12758 shlibpath_var=LD_LIBRARY_PATH
12759 shlibpath_overrides_runpath=no
12760 # This implies no fast_install, which is unacceptable.
12761 # Some rework will be needed to allow for fast_install
12762 # before this can be enabled.
12763 hardcode_into_libs=yes
12764
12765 # Append ld.so.conf contents to the search path
12766 if test -f /etc/ld.so.conf; then
12767 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' ' '`
12768 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12769 fi
12770
12771 # We used to test for /lib/ld.so.1 and disable shared libraries on
12772 # powerpc, because MkLinux only supported shared libraries with the
12773 # GNU dynamic linker. Since this was broken with cross compilers,
12774 # most powerpc-linux boxes support dynamic linking these days and
12775 # people can always --disable-shared, the test was removed, and we
12776 # assume the GNU/Linux dynamic linker is in use.
12777 dynamic_linker='GNU/Linux ld.so'
12778 ;;
12779
12780netbsdelf*-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 shlibpath_var=LD_LIBRARY_PATH
12787 shlibpath_overrides_runpath=no
12788 hardcode_into_libs=yes
12789 dynamic_linker='NetBSD ld.elf_so'
12790 ;;
12791
12792netbsd*)
12793 version_type=sunos
12794 need_lib_prefix=no
12795 need_version=no
12796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12799 dynamic_linker='NetBSD (a.out) ld.so'
12800 else
12801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12802 soname_spec='${libname}${release}${shared_ext}$major'
12803 dynamic_linker='NetBSD ld.elf_so'
12804 fi
12805 shlibpath_var=LD_LIBRARY_PATH
12806 shlibpath_overrides_runpath=yes
12807 hardcode_into_libs=yes
12808 ;;
12809
12810newsos6)
12811 version_type=linux
12812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12813 shlibpath_var=LD_LIBRARY_PATH
12814 shlibpath_overrides_runpath=yes
12815 ;;
12816
12817nto-qnx*)
12818 version_type=linux
12819 need_lib_prefix=no
12820 need_version=no
12821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12822 soname_spec='${libname}${release}${shared_ext}$major'
12823 shlibpath_var=LD_LIBRARY_PATH
12824 shlibpath_overrides_runpath=yes
12825 ;;
12826
12827openbsd*)
12828 version_type=sunos
12829 sys_lib_dlsearch_path_spec="/usr/lib"
12830 need_lib_prefix=no
12831 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12832 case $host_os in
12833 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12834 *) need_version=no ;;
12835 esac
12836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12838 shlibpath_var=LD_LIBRARY_PATH
12839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12840 case $host_os in
12841 openbsd2.[89] | openbsd2.[89].*)
12842 shlibpath_overrides_runpath=no
12843 ;;
12844 *)
12845 shlibpath_overrides_runpath=yes
12846 ;;
12847 esac
12848 else
12849 shlibpath_overrides_runpath=yes
12850 fi
12851 ;;
12852
12853os2*)
12854 libname_spec='$name'
12855 shrext_cmds=".dll"
12856 need_lib_prefix=no
12857 library_names_spec='$libname${shared_ext} $libname.a'
12858 dynamic_linker='OS/2 ld.exe'
12859 shlibpath_var=LIBPATH
12860 ;;
12861
12862osf3* | osf4* | osf5*)
12863 version_type=osf
12864 need_lib_prefix=no
12865 need_version=no
12866 soname_spec='${libname}${release}${shared_ext}$major'
12867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12868 shlibpath_var=LD_LIBRARY_PATH
12869 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12870 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12871 ;;
12872
12873rdos*)
12874 dynamic_linker=no
12875 ;;
12876
12877solaris*)
12878 version_type=linux
12879 need_lib_prefix=no
12880 need_version=no
12881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12882 soname_spec='${libname}${release}${shared_ext}$major'
12883 shlibpath_var=LD_LIBRARY_PATH
12884 shlibpath_overrides_runpath=yes
12885 hardcode_into_libs=yes
12886 # ldd complains unless libraries are executable
12887 postinstall_cmds='chmod +x $lib'
12888 ;;
12889
12890sunos4*)
12891 version_type=sunos
12892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12893 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12894 shlibpath_var=LD_LIBRARY_PATH
12895 shlibpath_overrides_runpath=yes
12896 if test "$with_gnu_ld" = yes; then
12897 need_lib_prefix=no
12898 fi
12899 need_version=yes
12900 ;;
12901
12902sysv4 | sysv4.3*)
12903 version_type=linux
12904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12905 soname_spec='${libname}${release}${shared_ext}$major'
12906 shlibpath_var=LD_LIBRARY_PATH
12907 case $host_vendor in
12908 sni)
12909 shlibpath_overrides_runpath=no
12910 need_lib_prefix=no
12911 export_dynamic_flag_spec='${wl}-Blargedynsym'
12912 runpath_var=LD_RUN_PATH
12913 ;;
12914 siemens)
12915 need_lib_prefix=no
12916 ;;
12917 motorola)
12918 need_lib_prefix=no
12919 need_version=no
12920 shlibpath_overrides_runpath=no
12921 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12922 ;;
12923 esac
12924 ;;
12925
12926sysv4*MP*)
12927 if test -d /usr/nec ;then
12928 version_type=linux
12929 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12930 soname_spec='$libname${shared_ext}.$major'
12931 shlibpath_var=LD_LIBRARY_PATH
12932 fi
12933 ;;
12934
12935sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12936 version_type=freebsd-elf
12937 need_lib_prefix=no
12938 need_version=no
12939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12940 soname_spec='${libname}${release}${shared_ext}$major'
12941 shlibpath_var=LD_LIBRARY_PATH
12942 hardcode_into_libs=yes
12943 if test "$with_gnu_ld" = yes; then
12944 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12945 shlibpath_overrides_runpath=no
12946 else
12947 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12948 shlibpath_overrides_runpath=yes
12949 case $host_os in
12950 sco3.2v5*)
12951 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12952 ;;
12953 esac
12954 fi
12955 sys_lib_dlsearch_path_spec='/usr/lib'
12956 ;;
12957
12958uts4*)
12959 version_type=linux
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12961 soname_spec='${libname}${release}${shared_ext}$major'
12962 shlibpath_var=LD_LIBRARY_PATH
12963 ;;
12964
12965*)
12966 dynamic_linker=no
12967 ;;
12968esac
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12970$as_echo "$dynamic_linker" >&6; }
12971test "$dynamic_linker" = no && can_build_shared=no
12972
12973if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
12974 $as_echo_n "(cached) " >&6
12975else
12976 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12977fi
12978
12979sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12980if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
12981 $as_echo_n "(cached) " >&6
12982else
12983 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12984fi
12985
12986sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12987
12988variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12989if test "$GCC" = yes; then
12990 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12991fi
12992
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12994$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12995hardcode_action_CXX=
12996if test -n "$hardcode_libdir_flag_spec_CXX" || \
12997 test -n "$runpath_var_CXX" || \
12998 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12999
13000 # We can hardcode non-existant directories.
13001 if test "$hardcode_direct_CXX" != no &&
13002 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13003 # have to relink, otherwise we might link with an installed library
13004 # when we should be linking with a yet-to-be-installed one
13005 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13006 test "$hardcode_minus_L_CXX" != no; then
13007 # Linking always hardcodes the temporary library directory.
13008 hardcode_action_CXX=relink
13009 else
13010 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13011 hardcode_action_CXX=immediate
13012 fi
13013else
13014 # We cannot hardcode anything, or else we can only hardcode existing
13015 # directories.
13016 hardcode_action_CXX=unsupported
13017fi
13018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13019$as_echo "$hardcode_action_CXX" >&6; }
13020
13021if test "$hardcode_action_CXX" = relink; then
13022 # Fast installation is not supported
13023 enable_fast_install=no
13024elif test "$shlibpath_overrides_runpath" = yes ||
13025 test "$enable_shared" = no; then
13026 # Fast installation is not necessary
13027 enable_fast_install=needless
13028fi
13029
13030
13031# The else clause should only fire when bootstrapping the
13032# libtool distribution, otherwise you forgot to ship ltmain.sh
13033# with your package, and you will get complaints that there are
13034# no rules to generate ltmain.sh.
13035if test -f "$ltmain"; then
13036 # See if we are running on zsh, and set the options which allow our commands through
13037 # without removal of \ escapes.
13038 if test -n "${ZSH_VERSION+set}" ; then
13039 setopt NO_GLOB_SUBST
13040 fi
13041 # Now quote all the things that may contain metacharacters while being
13042 # careful not to overquote the AC_SUBSTed values. We take copies of the
13043 # variables and quote the copies for generation of the libtool script.
13044 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13045 SED SHELL STRIP \
13046 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13047 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13048 deplibs_check_method reload_flag reload_cmds need_locks \
13049 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13050 lt_cv_sys_global_symbol_to_c_name_address \
13051 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13052 old_postinstall_cmds old_postuninstall_cmds \
13053 compiler_CXX \
13054 CC_CXX \
13055 LD_CXX \
13056 lt_prog_compiler_wl_CXX \
13057 lt_prog_compiler_pic_CXX \
13058 lt_prog_compiler_static_CXX \
13059 lt_prog_compiler_no_builtin_flag_CXX \
13060 export_dynamic_flag_spec_CXX \
13061 thread_safe_flag_spec_CXX \
13062 whole_archive_flag_spec_CXX \
13063 enable_shared_with_static_runtimes_CXX \
13064 old_archive_cmds_CXX \
13065 old_archive_from_new_cmds_CXX \
13066 predep_objects_CXX \
13067 postdep_objects_CXX \
13068 predeps_CXX \
13069 postdeps_CXX \
13070 compiler_lib_search_path_CXX \
13071 compiler_lib_search_dirs_CXX \
13072 archive_cmds_CXX \
13073 archive_expsym_cmds_CXX \
13074 postinstall_cmds_CXX \
13075 postuninstall_cmds_CXX \
13076 old_archive_from_expsyms_cmds_CXX \
13077 allow_undefined_flag_CXX \
13078 no_undefined_flag_CXX \
13079 export_symbols_cmds_CXX \
13080 hardcode_libdir_flag_spec_CXX \
13081 hardcode_libdir_flag_spec_ld_CXX \
13082 hardcode_libdir_separator_CXX \
13083 hardcode_automatic_CXX \
13084 module_cmds_CXX \
13085 module_expsym_cmds_CXX \
13086 lt_cv_prog_compiler_c_o_CXX \
13087 fix_srcfile_path_CXX \
13088 exclude_expsyms_CXX \
13089 include_expsyms_CXX; do
13090
13091 case $var in
13092 old_archive_cmds_CXX | \
13093 old_archive_from_new_cmds_CXX | \
13094 archive_cmds_CXX | \
13095 archive_expsym_cmds_CXX | \
13096 module_cmds_CXX | \
13097 module_expsym_cmds_CXX | \
13098 old_archive_from_expsyms_cmds_CXX | \
13099 export_symbols_cmds_CXX | \
13100 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13101 postinstall_cmds | postuninstall_cmds | \
13102 old_postinstall_cmds | old_postuninstall_cmds | \
13103 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13104 # Double-quote double-evaled strings.
13105 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13106 ;;
13107 *)
13108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13109 ;;
13110 esac
13111 done
13112
13113 case $lt_echo in
13114 *'\$0 --fallback-echo"')
13115 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13116 ;;
13117 esac
13118
13119cfgfile="$ofile"
13120
13121 cat <<__EOF__ >> "$cfgfile"
13122# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13123
13124# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13125
13126# Shell to use when invoking shell scripts.
13127SHELL=$lt_SHELL
13128
13129# Whether or not to build shared libraries.
13130build_libtool_libs=$enable_shared
13131
13132# Whether or not to build static libraries.
13133build_old_libs=$enable_static
13134
13135# Whether or not to add -lc for building shared libraries.
13136build_libtool_need_lc=$archive_cmds_need_lc_CXX
13137
13138# Whether or not to disallow shared libs when runtime libs are static
13139allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13140
13141# Whether or not to optimize for fast installation.
13142fast_install=$enable_fast_install
13143
13144# The host system.
13145host_alias=$host_alias
13146host=$host
13147host_os=$host_os
13148
13149# The build system.
13150build_alias=$build_alias
13151build=$build
13152build_os=$build_os
13153
13154# An echo program that does not interpret backslashes.
13155echo=$lt_echo
13156
13157# The archiver.
13158AR=$lt_AR
13159AR_FLAGS=$lt_AR_FLAGS
13160
13161# A C compiler.
13162LTCC=$lt_LTCC
13163
13164# LTCC compiler flags.
13165LTCFLAGS=$lt_LTCFLAGS
13166
13167# A language-specific compiler.
13168CC=$lt_compiler_CXX
13169
13170# Is the compiler the GNU C compiler?
13171with_gcc=$GCC_CXX
13172
13173# An ERE matcher.
13174EGREP=$lt_EGREP
13175
13176# The linker used to build libraries.
13177LD=$lt_LD_CXX
13178
13179# Whether we need hard or soft links.
13180LN_S=$lt_LN_S
13181
13182# A BSD-compatible nm program.
13183NM=$lt_NM
13184
13185# A symbol stripping program
13186STRIP=$lt_STRIP
13187
13188# Used to examine libraries when file_magic_cmd begins "file"
13189MAGIC_CMD=$MAGIC_CMD
13190
13191# Used on cygwin: DLL creation program.
13192DLLTOOL="$DLLTOOL"
13193
13194# Used on cygwin: object dumper.
13195OBJDUMP="$OBJDUMP"
13196
13197# Used on cygwin: assembler.
13198AS="$AS"
13199
13200# The name of the directory that contains temporary libtool files.
13201objdir=$objdir
13202
13203# How to create reloadable object files.
13204reload_flag=$lt_reload_flag
13205reload_cmds=$lt_reload_cmds
13206
13207# How to pass a linker flag through the compiler.
13208wl=$lt_lt_prog_compiler_wl_CXX
13209
13210# Object file suffix (normally "o").
13211objext="$ac_objext"
13212
13213# Old archive suffix (normally "a").
13214libext="$libext"
13215
13216# Shared library suffix (normally ".so").
13217shrext_cmds='$shrext_cmds'
13218
13219# Executable file suffix (normally "").
13220exeext="$exeext"
13221
13222# Additional compiler flags for building library objects.
13223pic_flag=$lt_lt_prog_compiler_pic_CXX
13224pic_mode=$pic_mode
13225
13226# What is the maximum length of a command?
13227max_cmd_len=$lt_cv_sys_max_cmd_len
13228
13229# Does compiler simultaneously support -c and -o options?
13230compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13231
13232# Must we lock files when doing compilation?
13233need_locks=$lt_need_locks
13234
13235# Do we need the lib prefix for modules?
13236need_lib_prefix=$need_lib_prefix
13237
13238# Do we need a version for libraries?
13239need_version=$need_version
13240
13241# Whether dlopen is supported.
13242dlopen_support=$enable_dlopen
13243
13244# Whether dlopen of programs is supported.
13245dlopen_self=$enable_dlopen_self
13246
13247# Whether dlopen of statically linked programs is supported.
13248dlopen_self_static=$enable_dlopen_self_static
13249
13250# Compiler flag to prevent dynamic linking.
13251link_static_flag=$lt_lt_prog_compiler_static_CXX
13252
13253# Compiler flag to turn off builtin functions.
13254no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13255
13256# Compiler flag to allow reflexive dlopens.
13257export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13258
13259# Compiler flag to generate shared objects directly from archives.
13260whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13261
13262# Compiler flag to generate thread-safe objects.
13263thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13264
13265# Library versioning type.
13266version_type=$version_type
13267
13268# Format of library name prefix.
13269libname_spec=$lt_libname_spec
13270
13271# List of archive names. First name is the real one, the rest are links.
13272# The last name is the one that the linker finds with -lNAME.
13273library_names_spec=$lt_library_names_spec
13274
13275# The coded name of the library, if different from the real name.
13276soname_spec=$lt_soname_spec
13277
13278# Commands used to build and install an old-style archive.
13279RANLIB=$lt_RANLIB
13280old_archive_cmds=$lt_old_archive_cmds_CXX
13281old_postinstall_cmds=$lt_old_postinstall_cmds
13282old_postuninstall_cmds=$lt_old_postuninstall_cmds
13283
13284# Create an old-style archive from a shared archive.
13285old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13286
13287# Create a temporary old-style archive to link instead of a shared archive.
13288old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13289
13290# Commands used to build and install a shared archive.
13291archive_cmds=$lt_archive_cmds_CXX
13292archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13293postinstall_cmds=$lt_postinstall_cmds
13294postuninstall_cmds=$lt_postuninstall_cmds
13295
13296# Commands used to build a loadable module (assumed same as above if empty)
13297module_cmds=$lt_module_cmds_CXX
13298module_expsym_cmds=$lt_module_expsym_cmds_CXX
13299
13300# Commands to strip libraries.
13301old_striplib=$lt_old_striplib
13302striplib=$lt_striplib
13303
13304# Dependencies to place before the objects being linked to create a
13305# shared library.
13306predep_objects=$lt_predep_objects_CXX
13307
13308# Dependencies to place after the objects being linked to create a
13309# shared library.
13310postdep_objects=$lt_postdep_objects_CXX
13311
13312# Dependencies to place before the objects being linked to create a
13313# shared library.
13314predeps=$lt_predeps_CXX
13315
13316# Dependencies to place after the objects being linked to create a
13317# shared library.
13318postdeps=$lt_postdeps_CXX
13319
13320# The directories searched by this compiler when creating a shared
13321# library
13322compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13323
13324# The library search path used internally by the compiler when linking
13325# a shared library.
13326compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13327
13328# Method to check whether dependent libraries are shared objects.
13329deplibs_check_method=$lt_deplibs_check_method
13330
13331# Command to use when deplibs_check_method == file_magic.
13332file_magic_cmd=$lt_file_magic_cmd
13333
13334# Flag that allows shared libraries with undefined symbols to be built.
13335allow_undefined_flag=$lt_allow_undefined_flag_CXX
13336
13337# Flag that forces no undefined symbols.
13338no_undefined_flag=$lt_no_undefined_flag_CXX
13339
13340# Commands used to finish a libtool library installation in a directory.
13341finish_cmds=$lt_finish_cmds
13342
13343# Same as above, but a single script fragment to be evaled but not shown.
13344finish_eval=$lt_finish_eval
13345
13346# Take the output of nm and produce a listing of raw symbols and C names.
13347global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13348
13349# Transform the output of nm in a proper C declaration
13350global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13351
13352# Transform the output of nm in a C name address pair
13353global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13354
13355# This is the shared library runtime path variable.
13356runpath_var=$runpath_var
13357
13358# This is the shared library path variable.
13359shlibpath_var=$shlibpath_var
13360
13361# Is shlibpath searched before the hard-coded library search path?
13362shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13363
13364# How to hardcode a shared library path into an executable.
13365hardcode_action=$hardcode_action_CXX
13366
13367# Whether we should hardcode library paths into libraries.
13368hardcode_into_libs=$hardcode_into_libs
13369
13370# Flag to hardcode \$libdir into a binary during linking.
13371# This must work even if \$libdir does not exist.
13372hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13373
13374# If ld is used when linking, flag to hardcode \$libdir into
13375# a binary during linking. This must work even if \$libdir does
13376# not exist.
13377hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13378
13379# Whether we need a single -rpath flag with a separated argument.
13380hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13381
13382# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13383# resulting binary.
13384hardcode_direct=$hardcode_direct_CXX
13385
13386# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13387# resulting binary.
13388hardcode_minus_L=$hardcode_minus_L_CXX
13389
13390# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13391# the resulting binary.
13392hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13393
13394# Set to yes if building a shared library automatically hardcodes DIR into the library
13395# and all subsequent libraries and executables linked against it.
13396hardcode_automatic=$hardcode_automatic_CXX
13397
13398# Variables whose values should be saved in libtool wrapper scripts and
13399# restored at relink time.
13400variables_saved_for_relink="$variables_saved_for_relink"
13401
13402# Whether libtool must link a program against all its dependency libraries.
13403link_all_deplibs=$link_all_deplibs_CXX
13404
13405# Compile-time system search path for libraries
13406sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13407
13408# Run-time system search path for libraries
13409sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13410
13411# Fix the shell variable \$srcfile for the compiler.
13412fix_srcfile_path=$lt_fix_srcfile_path
13413
13414# Set to yes if exported symbols are required.
13415always_export_symbols=$always_export_symbols_CXX
13416
13417# The commands to list exported symbols.
13418export_symbols_cmds=$lt_export_symbols_cmds_CXX
13419
13420# The commands to extract the exported symbol list from a shared archive.
13421extract_expsyms_cmds=$lt_extract_expsyms_cmds
13422
13423# Symbols that should not be listed in the preloaded symbols.
13424exclude_expsyms=$lt_exclude_expsyms_CXX
13425
13426# Symbols that must always be exported.
13427include_expsyms=$lt_include_expsyms_CXX
13428
13429# ### END LIBTOOL TAG CONFIG: $tagname
13430
13431__EOF__
13432
13433
13434else
13435 # If there is no Makefile yet, we rely on a make rule to execute
13436 # `config.status --recheck' to rerun these tests and create the
13437 # libtool script then.
13438 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13439 if test -f "$ltmain_in"; then
13440 test -f Makefile && make "$ltmain"
13441 fi
13442fi
13443
13444
13445ac_ext=c
13446ac_cpp='$CPP $CPPFLAGS'
13447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13449ac_compiler_gnu=$ac_cv_c_compiler_gnu
13450
13451CC=$lt_save_CC
13452LDCXX=$LD
13453LD=$lt_save_LD
13454GCC=$lt_save_GCC
13455with_gnu_ldcxx=$with_gnu_ld
13456with_gnu_ld=$lt_save_with_gnu_ld
13457lt_cv_path_LDCXX=$lt_cv_path_LD
13458lt_cv_path_LD=$lt_save_path_LD
13459lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13460lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13461
13462 else
13463 tagname=""
13464 fi
13465 ;;
13466
13467 F77)
13468 if test -n "$F77" && test "X$F77" != "Xno"; then
13469
13470ac_ext=f
13471ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13472ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13473ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13474
13475
13476archive_cmds_need_lc_F77=no
13477allow_undefined_flag_F77=
13478always_export_symbols_F77=no
13479archive_expsym_cmds_F77=
13480export_dynamic_flag_spec_F77=
13481hardcode_direct_F77=no
13482hardcode_libdir_flag_spec_F77=
13483hardcode_libdir_flag_spec_ld_F77=
13484hardcode_libdir_separator_F77=
13485hardcode_minus_L_F77=no
13486hardcode_automatic_F77=no
13487module_cmds_F77=
13488module_expsym_cmds_F77=
13489link_all_deplibs_F77=unknown
13490old_archive_cmds_F77=$old_archive_cmds
13491no_undefined_flag_F77=
13492whole_archive_flag_spec_F77=
13493enable_shared_with_static_runtimes_F77=no
13494
13495# Source file extension for f77 test sources.
13496ac_ext=f
13497
13498# Object file extension for compiled f77 test sources.
13499objext=o
13500objext_F77=$objext
13501
13502# Code to be used in simple compile tests
13503lt_simple_compile_test_code="\
13504 subroutine t
13505 return
13506 end
13507"
13508
13509# Code to be used in simple link tests
13510lt_simple_link_test_code="\
13511 program t
13512 end
13513"
13514
13515# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13516
13517# If no C compiler was specified, use CC.
13518LTCC=${LTCC-"$CC"}
13519
13520# If no C compiler flags were specified, use CFLAGS.
13521LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13522
13523# Allow CC to be a program name with arguments.
13524compiler=$CC
13525
13526
13527# save warnings/boilerplate of simple test code
13528ac_outfile=conftest.$ac_objext
13529echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13530eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13531_lt_compiler_boilerplate=`cat conftest.err`
13532$rm conftest*
13533
13534ac_outfile=conftest.$ac_objext
13535echo "$lt_simple_link_test_code" >conftest.$ac_ext
13536eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13537_lt_linker_boilerplate=`cat conftest.err`
13538$rm -r conftest*
13539
13540
13541# Allow CC to be a program name with arguments.
13542lt_save_CC="$CC"
13543CC=${F77-"f77"}
13544compiler=$CC
13545compiler_F77=$CC
13546for cc_temp in $compiler""; do
13547 case $cc_temp in
13548 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13549 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13550 \-*) ;;
13551 *) break;;
13552 esac
13553done
13554cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13555
13556
13557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13558$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13560$as_echo "$can_build_shared" >&6; }
13561
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13563$as_echo_n "checking whether to build shared libraries... " >&6; }
13564test "$can_build_shared" = "no" && enable_shared=no
13565
13566# On AIX, shared libraries and static libraries use the same namespace, and
13567# are all built from PIC.
13568case $host_os in
13569aix3*)
13570 test "$enable_shared" = yes && enable_static=no
13571 if test -n "$RANLIB"; then
13572 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13573 postinstall_cmds='$RANLIB $lib'
13574 fi
13575 ;;
13576aix[4-9]*)
13577 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13578 test "$enable_shared" = yes && enable_static=no
13579 fi
13580 ;;
13581esac
13582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13583$as_echo "$enable_shared" >&6; }
13584
13585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13586$as_echo_n "checking whether to build static libraries... " >&6; }
13587# Make sure either enable_shared or enable_static is yes.
13588test "$enable_shared" = yes || enable_static=yes
13589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13590$as_echo "$enable_static" >&6; }
13591
13592GCC_F77="$G77"
13593LD_F77="$LD"
13594
13595lt_prog_compiler_wl_F77=
13596lt_prog_compiler_pic_F77=
13597lt_prog_compiler_static_F77=
13598
13599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13600$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13601
13602 if test "$GCC" = yes; then
13603 lt_prog_compiler_wl_F77='-Wl,'
13604 lt_prog_compiler_static_F77='-static'
13605
13606 case $host_os in
13607 aix*)
13608 # All AIX code is PIC.
13609 if test "$host_cpu" = ia64; then
13610 # AIX 5 now supports IA64 processor
13611 lt_prog_compiler_static_F77='-Bstatic'
13612 fi
13613 ;;
13614
13615 amigaos*)
13616 # FIXME: we need at least 68020 code to build shared libraries, but
13617 # adding the `-m68020' flag to GCC prevents building anything better,
13618 # like `-m68040'.
13619 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13620 ;;
13621
13622 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13623 # PIC is the default for these OSes.
13624 ;;
13625
13626 mingw* | cygwin* | pw32* | os2*)
13627 # This hack is so that the source file can tell whether it is being
13628 # built for inclusion in a dll (and should export symbols for example).
13629 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13630 # (--disable-auto-import) libraries
13631 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13632 ;;
13633
13634 darwin* | rhapsody*)
13635 # PIC is the default on this platform
13636 # Common symbols not allowed in MH_DYLIB files
13637 lt_prog_compiler_pic_F77='-fno-common'
13638 ;;
13639
13640 interix[3-9]*)
13641 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13642 # Instead, we relocate shared libraries at runtime.
13643 ;;
13644
13645 msdosdjgpp*)
13646 # Just because we use GCC doesn't mean we suddenly get shared libraries
13647 # on systems that don't support them.
13648 lt_prog_compiler_can_build_shared_F77=no
13649 enable_shared=no
13650 ;;
13651
13652 sysv4*MP*)
13653 if test -d /usr/nec; then
13654 lt_prog_compiler_pic_F77=-Kconform_pic
13655 fi
13656 ;;
13657
13658 hpux*)
13659 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13660 # not for PA HP-UX.
13661 case $host_cpu in
13662 hppa*64*|ia64*)
13663 # +Z the default
13664 ;;
13665 *)
13666 lt_prog_compiler_pic_F77='-fPIC'
13667 ;;
13668 esac
13669 ;;
13670
13671 *)
13672 lt_prog_compiler_pic_F77='-fPIC'
13673 ;;
13674 esac
13675 else
13676 # PORTME Check for flag to pass linker flags through the system compiler.
13677 case $host_os in
13678 aix*)
13679 lt_prog_compiler_wl_F77='-Wl,'
13680 if test "$host_cpu" = ia64; then
13681 # AIX 5 now supports IA64 processor
13682 lt_prog_compiler_static_F77='-Bstatic'
13683 else
13684 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13685 fi
13686 ;;
13687 darwin*)
13688 # PIC is the default on this platform
13689 # Common symbols not allowed in MH_DYLIB files
13690 case $cc_basename in
13691 xlc*)
13692 lt_prog_compiler_pic_F77='-qnocommon'
13693 lt_prog_compiler_wl_F77='-Wl,'
13694 ;;
13695 esac
13696 ;;
13697
13698 mingw* | cygwin* | pw32* | os2*)
13699 # This hack is so that the source file can tell whether it is being
13700 # built for inclusion in a dll (and should export symbols for example).
13701 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13702 ;;
13703
13704 hpux9* | hpux10* | hpux11*)
13705 lt_prog_compiler_wl_F77='-Wl,'
13706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13707 # not for PA HP-UX.
13708 case $host_cpu in
13709 hppa*64*|ia64*)
13710 # +Z the default
13711 ;;
13712 *)
13713 lt_prog_compiler_pic_F77='+Z'
13714 ;;
13715 esac
13716 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13717 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13718 ;;
13719
13720 irix5* | irix6* | nonstopux*)
13721 lt_prog_compiler_wl_F77='-Wl,'
13722 # PIC (with -KPIC) is the default.
13723 lt_prog_compiler_static_F77='-non_shared'
13724 ;;
13725
13726 newsos6)
13727 lt_prog_compiler_pic_F77='-KPIC'
13728 lt_prog_compiler_static_F77='-Bstatic'
13729 ;;
13730
13731 linux* | k*bsd*-gnu)
13732 case $cc_basename in
13733 icc* | ecc*)
13734 lt_prog_compiler_wl_F77='-Wl,'
13735 lt_prog_compiler_pic_F77='-KPIC'
13736 lt_prog_compiler_static_F77='-static'
13737 ;;
13738 pgcc* | pgf77* | pgf90* | pgf95*)
13739 # Portland Group compilers (*not* the Pentium gcc compiler,
13740 # which looks to be a dead project)
13741 lt_prog_compiler_wl_F77='-Wl,'
13742 lt_prog_compiler_pic_F77='-fpic'
13743 lt_prog_compiler_static_F77='-Bstatic'
13744 ;;
13745 ccc*)
13746 lt_prog_compiler_wl_F77='-Wl,'
13747 # All Alpha code is PIC.
13748 lt_prog_compiler_static_F77='-non_shared'
13749 ;;
13750 *)
13751 case `$CC -V 2>&1 | sed 5q` in
13752 *Sun\ C*)
13753 # Sun C 5.9
13754 lt_prog_compiler_pic_F77='-KPIC'
13755 lt_prog_compiler_static_F77='-Bstatic'
13756 lt_prog_compiler_wl_F77='-Wl,'
13757 ;;
13758 *Sun\ F*)
13759 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13760 lt_prog_compiler_pic_F77='-KPIC'
13761 lt_prog_compiler_static_F77='-Bstatic'
13762 lt_prog_compiler_wl_F77=''
13763 ;;
13764 esac
13765 ;;
13766 esac
13767 ;;
13768
13769 osf3* | osf4* | osf5*)
13770 lt_prog_compiler_wl_F77='-Wl,'
13771 # All OSF/1 code is PIC.
13772 lt_prog_compiler_static_F77='-non_shared'
13773 ;;
13774
13775 rdos*)
13776 lt_prog_compiler_static_F77='-non_shared'
13777 ;;
13778
13779 solaris*)
13780 lt_prog_compiler_pic_F77='-KPIC'
13781 lt_prog_compiler_static_F77='-Bstatic'
13782 case $cc_basename in
13783 f77* | f90* | f95*)
13784 lt_prog_compiler_wl_F77='-Qoption ld ';;
13785 *)
13786 lt_prog_compiler_wl_F77='-Wl,';;
13787 esac
13788 ;;
13789
13790 sunos4*)
13791 lt_prog_compiler_wl_F77='-Qoption ld '
13792 lt_prog_compiler_pic_F77='-PIC'
13793 lt_prog_compiler_static_F77='-Bstatic'
13794 ;;
13795
13796 sysv4 | sysv4.2uw2* | sysv4.3*)
13797 lt_prog_compiler_wl_F77='-Wl,'
13798 lt_prog_compiler_pic_F77='-KPIC'
13799 lt_prog_compiler_static_F77='-Bstatic'
13800 ;;
13801
13802 sysv4*MP*)
13803 if test -d /usr/nec ;then
13804 lt_prog_compiler_pic_F77='-Kconform_pic'
13805 lt_prog_compiler_static_F77='-Bstatic'
13806 fi
13807 ;;
13808
13809 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13810 lt_prog_compiler_wl_F77='-Wl,'
13811 lt_prog_compiler_pic_F77='-KPIC'
13812 lt_prog_compiler_static_F77='-Bstatic'
13813 ;;
13814
13815 unicos*)
13816 lt_prog_compiler_wl_F77='-Wl,'
13817 lt_prog_compiler_can_build_shared_F77=no
13818 ;;
13819
13820 uts4*)
13821 lt_prog_compiler_pic_F77='-pic'
13822 lt_prog_compiler_static_F77='-Bstatic'
13823 ;;
13824
13825 *)
13826 lt_prog_compiler_can_build_shared_F77=no
13827 ;;
13828 esac
13829 fi
13830
13831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13832$as_echo "$lt_prog_compiler_pic_F77" >&6; }
13833
13834#
13835# Check to make sure the PIC flag actually works.
13836#
13837if test -n "$lt_prog_compiler_pic_F77"; then
13838
13839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13840$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13841if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
13842 $as_echo_n "(cached) " >&6
13843else
13844 lt_cv_prog_compiler_pic_works_F77=no
13845 ac_outfile=conftest.$ac_objext
13846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13847 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13848 # Insert the option either (1) after the last *FLAGS variable, or
13849 # (2) before a word containing "conftest.", or (3) at the end.
13850 # Note that $ac_compile itself does not contain backslashes and begins
13851 # with a dollar sign (not a hyphen), so the echo should work correctly.
13852 # The option is referenced via a variable to avoid confusing sed.
13853 lt_compile=`echo "$ac_compile" | $SED \
13854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13856 -e 's:$: $lt_compiler_flag:'`
13857 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13858 (eval "$lt_compile" 2>conftest.err)
13859 ac_status=$?
13860 cat conftest.err >&5
13861 echo "$as_me:__oline__: \$? = $ac_status" >&5
13862 if (exit $ac_status) && test -s "$ac_outfile"; then
13863 # The compiler can only warn and ignore the option if not recognized
13864 # So say no if there are warnings other than the usual output.
13865 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13867 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13868 lt_cv_prog_compiler_pic_works_F77=yes
13869 fi
13870 fi
13871 $rm conftest*
13872
13873fi
13874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13875$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13876
13877if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13878 case $lt_prog_compiler_pic_F77 in
13879 "" | " "*) ;;
13880 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13881 esac
13882else
13883 lt_prog_compiler_pic_F77=
13884 lt_prog_compiler_can_build_shared_F77=no
13885fi
13886
13887fi
13888case $host_os in
13889 # For platforms which do not support PIC, -DPIC is meaningless:
13890 *djgpp*)
13891 lt_prog_compiler_pic_F77=
13892 ;;
13893 *)
13894 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13895 ;;
13896esac
13897
13898#
13899# Check to make sure the static flag actually works.
13900#
13901wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13903$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13904if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
13905 $as_echo_n "(cached) " >&6
13906else
13907 lt_cv_prog_compiler_static_works_F77=no
13908 save_LDFLAGS="$LDFLAGS"
13909 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13910 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13911 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13912 # The linker can only warn and ignore the option if not recognized
13913 # So say no if there are warnings
13914 if test -s conftest.err; then
13915 # Append any errors to the config.log.
13916 cat conftest.err 1>&5
13917 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13918 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13919 if diff conftest.exp conftest.er2 >/dev/null; then
13920 lt_cv_prog_compiler_static_works_F77=yes
13921 fi
13922 else
13923 lt_cv_prog_compiler_static_works_F77=yes
13924 fi
13925 fi
13926 $rm -r conftest*
13927 LDFLAGS="$save_LDFLAGS"
13928
13929fi
13930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
13931$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
13932
13933if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13934 :
13935else
13936 lt_prog_compiler_static_F77=
13937fi
13938
13939
13940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13941$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13942if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
13943 $as_echo_n "(cached) " >&6
13944else
13945 lt_cv_prog_compiler_c_o_F77=no
13946 $rm -r conftest 2>/dev/null
13947 mkdir conftest
13948 cd conftest
13949 mkdir out
13950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13951
13952 lt_compiler_flag="-o out/conftest2.$ac_objext"
13953 # Insert the option either (1) after the last *FLAGS variable, or
13954 # (2) before a word containing "conftest.", or (3) at the end.
13955 # Note that $ac_compile itself does not contain backslashes and begins
13956 # with a dollar sign (not a hyphen), so the echo should work correctly.
13957 lt_compile=`echo "$ac_compile" | $SED \
13958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13960 -e 's:$: $lt_compiler_flag:'`
13961 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13962 (eval "$lt_compile" 2>out/conftest.err)
13963 ac_status=$?
13964 cat out/conftest.err >&5
13965 echo "$as_me:__oline__: \$? = $ac_status" >&5
13966 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13967 then
13968 # The compiler can only warn and ignore the option if not recognized
13969 # So say no if there are warnings
13970 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13971 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13972 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13973 lt_cv_prog_compiler_c_o_F77=yes
13974 fi
13975 fi
13976 chmod u+w . 2>&5
13977 $rm conftest*
13978 # SGI C++ compiler will create directory out/ii_files/ for
13979 # template instantiation
13980 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13981 $rm out/* && rmdir out
13982 cd ..
13983 rmdir conftest
13984 $rm conftest*
13985
13986fi
13987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13988$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13989
13990
13991hard_links="nottested"
13992if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13993 # do not overwrite the value of need_locks provided by the user
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13995$as_echo_n "checking if we can lock with hard links... " >&6; }
13996 hard_links=yes
13997 $rm conftest*
13998 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13999 touch conftest.a
14000 ln conftest.a conftest.b 2>&5 || hard_links=no
14001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14003$as_echo "$hard_links" >&6; }
14004 if test "$hard_links" = no; then
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14006$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14007 need_locks=warn
14008 fi
14009else
14010 need_locks=no
14011fi
14012
14013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14014$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14015
14016 runpath_var=
14017 allow_undefined_flag_F77=
14018 enable_shared_with_static_runtimes_F77=no
14019 archive_cmds_F77=
14020 archive_expsym_cmds_F77=
14021 old_archive_From_new_cmds_F77=
14022 old_archive_from_expsyms_cmds_F77=
14023 export_dynamic_flag_spec_F77=
14024 whole_archive_flag_spec_F77=
14025 thread_safe_flag_spec_F77=
14026 hardcode_libdir_flag_spec_F77=
14027 hardcode_libdir_flag_spec_ld_F77=
14028 hardcode_libdir_separator_F77=
14029 hardcode_direct_F77=no
14030 hardcode_minus_L_F77=no
14031 hardcode_shlibpath_var_F77=unsupported
14032 link_all_deplibs_F77=unknown
14033 hardcode_automatic_F77=no
14034 module_cmds_F77=
14035 module_expsym_cmds_F77=
14036 always_export_symbols_F77=no
14037 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14038 # include_expsyms should be a list of space-separated symbols to be *always*
14039 # included in the symbol list
14040 include_expsyms_F77=
14041 # exclude_expsyms can be an extended regexp of symbols to exclude
14042 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14043 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14044 # as well as any symbol that contains `d'.
14045 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14046 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14047 # platforms (ab)use it in PIC code, but their linkers get confused if
14048 # the symbol is explicitly referenced. Since portable code cannot
14049 # rely on this symbol name, it's probably fine to never include it in
14050 # preloaded symbol tables.
14051 # Exclude shared library initialization/finalization symbols.
14052 extract_expsyms_cmds=
14053 # Just being paranoid about ensuring that cc_basename is set.
14054 for cc_temp in $compiler""; do
14055 case $cc_temp in
14056 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14057 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14058 \-*) ;;
14059 *) break;;
14060 esac
14061done
14062cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14063
14064 case $host_os in
14065 cygwin* | mingw* | pw32*)
14066 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14067 # When not using gcc, we currently assume that we are using
14068 # Microsoft Visual C++.
14069 if test "$GCC" != yes; then
14070 with_gnu_ld=no
14071 fi
14072 ;;
14073 interix*)
14074 # we just hope/assume this is gcc and not c89 (= MSVC++)
14075 with_gnu_ld=yes
14076 ;;
14077 openbsd*)
14078 with_gnu_ld=no
14079 ;;
14080 esac
14081
14082 ld_shlibs_F77=yes
14083 if test "$with_gnu_ld" = yes; then
14084 # If archive_cmds runs LD, not CC, wlarc should be empty
14085 wlarc='${wl}'
14086
14087 # Set some defaults for GNU ld with shared library support. These
14088 # are reset later if shared libraries are not supported. Putting them
14089 # here allows them to be overridden if necessary.
14090 runpath_var=LD_RUN_PATH
14091 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14092 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14093 # ancient GNU ld didn't support --whole-archive et. al.
14094 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14095 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14096 else
14097 whole_archive_flag_spec_F77=
14098 fi
14099 supports_anon_versioning=no
14100 case `$LD -v 2>/dev/null` in
14101 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14102 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14103 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14104 *\ 2.11.*) ;; # other 2.11 versions
14105 *) supports_anon_versioning=yes ;;
14106 esac
14107
14108 # See if GNU ld supports shared libraries.
14109 case $host_os in
14110 aix[3-9]*)
14111 # On AIX/PPC, the GNU linker is very broken
14112 if test "$host_cpu" != ia64; then
14113 ld_shlibs_F77=no
14114 cat <<EOF 1>&2
14115
14116*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14117*** to be unable to reliably create shared libraries on AIX.
14118*** Therefore, libtool is disabling shared libraries support. If you
14119*** really care for shared libraries, you may want to modify your PATH
14120*** so that a non-GNU linker is found, and then restart.
14121
14122EOF
14123 fi
14124 ;;
14125
14126 amigaos*)
14127 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)'
14128 hardcode_libdir_flag_spec_F77='-L$libdir'
14129 hardcode_minus_L_F77=yes
14130
14131 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14132 # that the semantics of dynamic libraries on AmigaOS, at least up
14133 # to version 4, is to share data among multiple programs linked
14134 # with the same dynamic library. Since this doesn't match the
14135 # behavior of shared libraries on other platforms, we can't use
14136 # them.
14137 ld_shlibs_F77=no
14138 ;;
14139
14140 beos*)
14141 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14142 allow_undefined_flag_F77=unsupported
14143 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14144 # support --undefined. This deserves some investigation. FIXME
14145 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14146 else
14147 ld_shlibs_F77=no
14148 fi
14149 ;;
14150
14151 cygwin* | mingw* | pw32*)
14152 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14153 # as there is no search path for DLLs.
14154 hardcode_libdir_flag_spec_F77='-L$libdir'
14155 allow_undefined_flag_F77=unsupported
14156 always_export_symbols_F77=no
14157 enable_shared_with_static_runtimes_F77=yes
14158 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14159
14160 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14161 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14162 # If the export-symbols file already is a .def file (1st line
14163 # is EXPORTS), use it as is; otherwise, prepend...
14164 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14165 cp $export_symbols $output_objdir/$soname.def;
14166 else
14167 echo EXPORTS > $output_objdir/$soname.def;
14168 cat $export_symbols >> $output_objdir/$soname.def;
14169 fi~
14170 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14171 else
14172 ld_shlibs_F77=no
14173 fi
14174 ;;
14175
14176 interix[3-9]*)
14177 hardcode_direct_F77=no
14178 hardcode_shlibpath_var_F77=no
14179 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14180 export_dynamic_flag_spec_F77='${wl}-E'
14181 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14182 # Instead, shared libraries are loaded at an image base (0x10000000 by
14183 # default) and relocated if they conflict, which is a slow very memory
14184 # consuming and fragmenting process. To avoid this, we pick a random,
14185 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14186 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14187 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'
14188 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'
14189 ;;
14190
14191 gnu* | linux* | k*bsd*-gnu)
14192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14193 tmp_addflag=
14194 case $cc_basename,$host_cpu in
14195 pgcc*) # Portland Group C compiler
14196 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'
14197 tmp_addflag=' $pic_flag'
14198 ;;
14199 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14200 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'
14201 tmp_addflag=' $pic_flag -Mnomain' ;;
14202 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14203 tmp_addflag=' -i_dynamic' ;;
14204 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14205 tmp_addflag=' -i_dynamic -nofor_main' ;;
14206 ifc* | ifort*) # Intel Fortran compiler
14207 tmp_addflag=' -nofor_main' ;;
14208 esac
14209 case `$CC -V 2>&1 | sed 5q` in
14210 *Sun\ C*) # Sun C 5.9
14211 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'
14212 tmp_sharedflag='-G' ;;
14213 *Sun\ F*) # Sun Fortran 8.3
14214 tmp_sharedflag='-G' ;;
14215 *)
14216 tmp_sharedflag='-shared' ;;
14217 esac
14218 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14219
14220 if test $supports_anon_versioning = yes; then
14221 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14223 $echo "local: *; };" >> $output_objdir/$libname.ver~
14224 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14225 fi
14226 link_all_deplibs_F77=no
14227 else
14228 ld_shlibs_F77=no
14229 fi
14230 ;;
14231
14232 netbsd* | netbsdelf*-gnu)
14233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14234 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14235 wlarc=
14236 else
14237 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14238 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14239 fi
14240 ;;
14241
14242 solaris*)
14243 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14244 ld_shlibs_F77=no
14245 cat <<EOF 1>&2
14246
14247*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14248*** create shared libraries on Solaris systems. Therefore, libtool
14249*** is disabling shared libraries support. We urge you to upgrade GNU
14250*** binutils to release 2.9.1 or newer. Another option is to modify
14251*** your PATH or compiler configuration so that the native linker is
14252*** used, and then restart.
14253
14254EOF
14255 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14256 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14257 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14258 else
14259 ld_shlibs_F77=no
14260 fi
14261 ;;
14262
14263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14264 case `$LD -v 2>&1` in
14265 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14266 ld_shlibs_F77=no
14267 cat <<_LT_EOF 1>&2
14268
14269*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14270*** reliably create shared libraries on SCO systems. Therefore, libtool
14271*** is disabling shared libraries support. We urge you to upgrade GNU
14272*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14273*** your PATH or compiler configuration so that the native linker is
14274*** used, and then restart.
14275
14276_LT_EOF
14277 ;;
14278 *)
14279 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14280 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14281 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14282 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14283 else
14284 ld_shlibs_F77=no
14285 fi
14286 ;;
14287 esac
14288 ;;
14289
14290 sunos4*)
14291 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14292 wlarc=
14293 hardcode_direct_F77=yes
14294 hardcode_shlibpath_var_F77=no
14295 ;;
14296
14297 *)
14298 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14299 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14300 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14301 else
14302 ld_shlibs_F77=no
14303 fi
14304 ;;
14305 esac
14306
14307 if test "$ld_shlibs_F77" = no; then
14308 runpath_var=
14309 hardcode_libdir_flag_spec_F77=
14310 export_dynamic_flag_spec_F77=
14311 whole_archive_flag_spec_F77=
14312 fi
14313 else
14314 # PORTME fill in a description of your system's linker (not GNU ld)
14315 case $host_os in
14316 aix3*)
14317 allow_undefined_flag_F77=unsupported
14318 always_export_symbols_F77=yes
14319 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'
14320 # Note: this linker hardcodes the directories in LIBPATH if there
14321 # are no directories specified by -L.
14322 hardcode_minus_L_F77=yes
14323 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14324 # Neither direct hardcoding nor static linking is supported with a
14325 # broken collect2.
14326 hardcode_direct_F77=unsupported
14327 fi
14328 ;;
14329
14330 aix[4-9]*)
14331 if test "$host_cpu" = ia64; then
14332 # On IA64, the linker does run time linking by default, so we don't
14333 # have to do anything special.
14334 aix_use_runtimelinking=no
14335 exp_sym_flag='-Bexport'
14336 no_entry_flag=""
14337 else
14338 # If we're using GNU nm, then we don't want the "-C" option.
14339 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14340 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14341 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'
14342 else
14343 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'
14344 fi
14345 aix_use_runtimelinking=no
14346
14347 # Test if we are trying to use run time linking or normal
14348 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14349 # need to do runtime linking.
14350 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14351 for ld_flag in $LDFLAGS; do
14352 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14353 aix_use_runtimelinking=yes
14354 break
14355 fi
14356 done
14357 ;;
14358 esac
14359
14360 exp_sym_flag='-bexport'
14361 no_entry_flag='-bnoentry'
14362 fi
14363
14364 # When large executables or shared objects are built, AIX ld can
14365 # have problems creating the table of contents. If linking a library
14366 # or program results in "error TOC overflow" add -mminimal-toc to
14367 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14368 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14369
14370 archive_cmds_F77=''
14371 hardcode_direct_F77=yes
14372 hardcode_libdir_separator_F77=':'
14373 link_all_deplibs_F77=yes
14374
14375 if test "$GCC" = yes; then
14376 case $host_os in aix4.[012]|aix4.[012].*)
14377 # We only want to do this on AIX 4.2 and lower, the check
14378 # below for broken collect2 doesn't work under 4.3+
14379 collect2name=`${CC} -print-prog-name=collect2`
14380 if test -f "$collect2name" && \
14381 strings "$collect2name" | grep resolve_lib_name >/dev/null
14382 then
14383 # We have reworked collect2
14384 :
14385 else
14386 # We have old collect2
14387 hardcode_direct_F77=unsupported
14388 # It fails to find uninstalled libraries when the uninstalled
14389 # path is not listed in the libpath. Setting hardcode_minus_L
14390 # to unsupported forces relinking
14391 hardcode_minus_L_F77=yes
14392 hardcode_libdir_flag_spec_F77='-L$libdir'
14393 hardcode_libdir_separator_F77=
14394 fi
14395 ;;
14396 esac
14397 shared_flag='-shared'
14398 if test "$aix_use_runtimelinking" = yes; then
14399 shared_flag="$shared_flag "'${wl}-G'
14400 fi
14401 else
14402 # not using gcc
14403 if test "$host_cpu" = ia64; then
14404 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14405 # chokes on -Wl,-G. The following line is correct:
14406 shared_flag='-G'
14407 else
14408 if test "$aix_use_runtimelinking" = yes; then
14409 shared_flag='${wl}-G'
14410 else
14411 shared_flag='${wl}-bM:SRE'
14412 fi
14413 fi
14414 fi
14415
14416 # It seems that -bexpall does not export symbols beginning with
14417 # underscore (_), so it is better to generate a list of symbols to export.
14418 always_export_symbols_F77=yes
14419 if test "$aix_use_runtimelinking" = yes; then
14420 # Warning - without using the other runtime loading flags (-brtl),
14421 # -berok will link without error, but may produce a broken library.
14422 allow_undefined_flag_F77='-berok'
14423 # Determine the default libpath from the value encoded in an empty executable.
14424 cat > conftest.$ac_ext <<_ACEOF
14425 program main
14426
14427 end
14428_ACEOF
14429if ac_fn_f77_try_link "$LINENO"; then :
14430
14431lt_aix_libpath_sed='
14432 /Import File Strings/,/^$/ {
14433 /^0/ {
14434 s/^0 *\(.*\)$/\1/
14435 p
14436 }
14437 }'
14438aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14439# Check for a 64-bit object if we didn't find anything.
14440if test -z "$aix_libpath"; then
14441 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14442fi
14443fi
14444rm -f core conftest.err conftest.$ac_objext \
14445 conftest$ac_exeext conftest.$ac_ext
14446if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14447
14448 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14449 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"
14450 else
14451 if test "$host_cpu" = ia64; then
14452 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14453 allow_undefined_flag_F77="-z nodefs"
14454 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"
14455 else
14456 # Determine the default libpath from the value encoded in an empty executable.
14457 cat > conftest.$ac_ext <<_ACEOF
14458 program main
14459
14460 end
14461_ACEOF
14462if ac_fn_f77_try_link "$LINENO"; then :
14463
14464lt_aix_libpath_sed='
14465 /Import File Strings/,/^$/ {
14466 /^0/ {
14467 s/^0 *\(.*\)$/\1/
14468 p
14469 }
14470 }'
14471aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14472# Check for a 64-bit object if we didn't find anything.
14473if test -z "$aix_libpath"; then
14474 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14475fi
14476fi
14477rm -f core conftest.err conftest.$ac_objext \
14478 conftest$ac_exeext conftest.$ac_ext
14479if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14480
14481 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14482 # Warning - without using the other run time loading flags,
14483 # -berok will link without error, but may produce a broken library.
14484 no_undefined_flag_F77=' ${wl}-bernotok'
14485 allow_undefined_flag_F77=' ${wl}-berok'
14486 # Exported symbols can be pulled into shared objects from archives
14487 whole_archive_flag_spec_F77='$convenience'
14488 archive_cmds_need_lc_F77=yes
14489 # This is similar to how AIX traditionally builds its shared libraries.
14490 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'
14491 fi
14492 fi
14493 ;;
14494
14495 amigaos*)
14496 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)'
14497 hardcode_libdir_flag_spec_F77='-L$libdir'
14498 hardcode_minus_L_F77=yes
14499 # see comment about different semantics on the GNU ld section
14500 ld_shlibs_F77=no
14501 ;;
14502
14503 bsdi[45]*)
14504 export_dynamic_flag_spec_F77=-rdynamic
14505 ;;
14506
14507 cygwin* | mingw* | pw32*)
14508 # When not using gcc, we currently assume that we are using
14509 # Microsoft Visual C++.
14510 # hardcode_libdir_flag_spec is actually meaningless, as there is
14511 # no search path for DLLs.
14512 hardcode_libdir_flag_spec_F77=' '
14513 allow_undefined_flag_F77=unsupported
14514 # Tell ltmain to make .lib files, not .a files.
14515 libext=lib
14516 # Tell ltmain to make .dll files, not .so files.
14517 shrext_cmds=".dll"
14518 # FIXME: Setting linknames here is a bad hack.
14519 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14520 # The linker will automatically build a .lib file if we build a DLL.
14521 old_archive_From_new_cmds_F77='true'
14522 # FIXME: Should let the user specify the lib program.
14523 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14524 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14525 enable_shared_with_static_runtimes_F77=yes
14526 ;;
14527
14528 darwin* | rhapsody*)
14529 case $host_os in
14530 rhapsody* | darwin1.[012])
14531 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14532 ;;
14533 *) # Darwin 1.3 on
14534 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14535 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14536 else
14537 case ${MACOSX_DEPLOYMENT_TARGET} in
14538 10.[012])
14539 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14540 ;;
14541 10.*)
14542 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14543 ;;
14544 esac
14545 fi
14546 ;;
14547 esac
14548 archive_cmds_need_lc_F77=no
14549 hardcode_direct_F77=no
14550 hardcode_automatic_F77=yes
14551 hardcode_shlibpath_var_F77=unsupported
14552 whole_archive_flag_spec_F77=''
14553 link_all_deplibs_F77=yes
14554 if test "$GCC" = yes ; then
14555 output_verbose_link_cmd='echo'
14556 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}"
14557 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14558 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}"
14559 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}"
14560 else
14561 case $cc_basename in
14562 xlc*)
14563 output_verbose_link_cmd='echo'
14564 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14565 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14566 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14567 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}'
14568 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}'
14569 ;;
14570 *)
14571 ld_shlibs_F77=no
14572 ;;
14573 esac
14574 fi
14575 ;;
14576
14577 dgux*)
14578 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14579 hardcode_libdir_flag_spec_F77='-L$libdir'
14580 hardcode_shlibpath_var_F77=no
14581 ;;
14582
14583 freebsd1*)
14584 ld_shlibs_F77=no
14585 ;;
14586
14587 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14588 # support. Future versions do this automatically, but an explicit c++rt0.o
14589 # does not break anything, and helps significantly (at the cost of a little
14590 # extra space).
14591 freebsd2.2*)
14592 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14593 hardcode_libdir_flag_spec_F77='-R$libdir'
14594 hardcode_direct_F77=yes
14595 hardcode_shlibpath_var_F77=no
14596 ;;
14597
14598 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14599 freebsd2*)
14600 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14601 hardcode_direct_F77=yes
14602 hardcode_minus_L_F77=yes
14603 hardcode_shlibpath_var_F77=no
14604 ;;
14605
14606 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14607 freebsd* | dragonfly*)
14608 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14609 hardcode_libdir_flag_spec_F77='-R$libdir'
14610 hardcode_direct_F77=yes
14611 hardcode_shlibpath_var_F77=no
14612 ;;
14613
14614 hpux9*)
14615 if test "$GCC" = yes; then
14616 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'
14617 else
14618 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'
14619 fi
14620 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14621 hardcode_libdir_separator_F77=:
14622 hardcode_direct_F77=yes
14623
14624 # hardcode_minus_L: Not really in the search PATH,
14625 # but as the default location of the library.
14626 hardcode_minus_L_F77=yes
14627 export_dynamic_flag_spec_F77='${wl}-E'
14628 ;;
14629
14630 hpux10*)
14631 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14632 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14633 else
14634 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14635 fi
14636 if test "$with_gnu_ld" = no; then
14637 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14638 hardcode_libdir_separator_F77=:
14639
14640 hardcode_direct_F77=yes
14641 export_dynamic_flag_spec_F77='${wl}-E'
14642
14643 # hardcode_minus_L: Not really in the search PATH,
14644 # but as the default location of the library.
14645 hardcode_minus_L_F77=yes
14646 fi
14647 ;;
14648
14649 hpux11*)
14650 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14651 case $host_cpu in
14652 hppa*64*)
14653 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14654 ;;
14655 ia64*)
14656 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14657 ;;
14658 *)
14659 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14660 ;;
14661 esac
14662 else
14663 case $host_cpu in
14664 hppa*64*)
14665 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14666 ;;
14667 ia64*)
14668 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14669 ;;
14670 *)
14671 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14672 ;;
14673 esac
14674 fi
14675 if test "$with_gnu_ld" = no; then
14676 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14677 hardcode_libdir_separator_F77=:
14678
14679 case $host_cpu in
14680 hppa*64*|ia64*)
14681 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14682 hardcode_direct_F77=no
14683 hardcode_shlibpath_var_F77=no
14684 ;;
14685 *)
14686 hardcode_direct_F77=yes
14687 export_dynamic_flag_spec_F77='${wl}-E'
14688
14689 # hardcode_minus_L: Not really in the search PATH,
14690 # but as the default location of the library.
14691 hardcode_minus_L_F77=yes
14692 ;;
14693 esac
14694 fi
14695 ;;
14696
14697 irix5* | irix6* | nonstopux*)
14698 if test "$GCC" = yes; then
14699 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'
14700 else
14701 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'
14702 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14703 fi
14704 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14705 hardcode_libdir_separator_F77=:
14706 link_all_deplibs_F77=yes
14707 ;;
14708
14709 netbsd* | netbsdelf*-gnu)
14710 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14711 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14712 else
14713 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14714 fi
14715 hardcode_libdir_flag_spec_F77='-R$libdir'
14716 hardcode_direct_F77=yes
14717 hardcode_shlibpath_var_F77=no
14718 ;;
14719
14720 newsos6)
14721 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14722 hardcode_direct_F77=yes
14723 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14724 hardcode_libdir_separator_F77=:
14725 hardcode_shlibpath_var_F77=no
14726 ;;
14727
14728 openbsd*)
14729 if test -f /usr/libexec/ld.so; then
14730 hardcode_direct_F77=yes
14731 hardcode_shlibpath_var_F77=no
14732 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14733 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14734 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14735 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14736 export_dynamic_flag_spec_F77='${wl}-E'
14737 else
14738 case $host_os in
14739 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14740 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14741 hardcode_libdir_flag_spec_F77='-R$libdir'
14742 ;;
14743 *)
14744 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14745 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14746 ;;
14747 esac
14748 fi
14749 else
14750 ld_shlibs_F77=no
14751 fi
14752 ;;
14753
14754 os2*)
14755 hardcode_libdir_flag_spec_F77='-L$libdir'
14756 hardcode_minus_L_F77=yes
14757 allow_undefined_flag_F77=unsupported
14758 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'
14759 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14760 ;;
14761
14762 osf3*)
14763 if test "$GCC" = yes; then
14764 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14765 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'
14766 else
14767 allow_undefined_flag_F77=' -expect_unresolved \*'
14768 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'
14769 fi
14770 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14771 hardcode_libdir_separator_F77=:
14772 ;;
14773
14774 osf4* | osf5*) # as osf3* with the addition of -msym flag
14775 if test "$GCC" = yes; then
14776 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14777 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'
14778 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14779 else
14780 allow_undefined_flag_F77=' -expect_unresolved \*'
14781 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'
14782 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~
14783 $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'
14784
14785 # Both c and cxx compiler support -rpath directly
14786 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14787 fi
14788 hardcode_libdir_separator_F77=:
14789 ;;
14790
14791 solaris*)
14792 no_undefined_flag_F77=' -z text'
14793 if test "$GCC" = yes; then
14794 wlarc='${wl}'
14795 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14796 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14797 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14798 else
14799 wlarc=''
14800 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14801 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14802 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14803 fi
14804 hardcode_libdir_flag_spec_F77='-R$libdir'
14805 hardcode_shlibpath_var_F77=no
14806 case $host_os in
14807 solaris2.[0-5] | solaris2.[0-5].*) ;;
14808 *)
14809 # The compiler driver will combine and reorder linker options,
14810 # but understands `-z linker_flag'. GCC discards it without `$wl',
14811 # but is careful enough not to reorder.
14812 # Supported since Solaris 2.6 (maybe 2.5.1?)
14813 if test "$GCC" = yes; then
14814 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14815 else
14816 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14817 fi
14818 ;;
14819 esac
14820 link_all_deplibs_F77=yes
14821 ;;
14822
14823 sunos4*)
14824 if test "x$host_vendor" = xsequent; then
14825 # Use $CC to link under sequent, because it throws in some extra .o
14826 # files that make .init and .fini sections work.
14827 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14828 else
14829 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14830 fi
14831 hardcode_libdir_flag_spec_F77='-L$libdir'
14832 hardcode_direct_F77=yes
14833 hardcode_minus_L_F77=yes
14834 hardcode_shlibpath_var_F77=no
14835 ;;
14836
14837 sysv4)
14838 case $host_vendor in
14839 sni)
14840 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14841 hardcode_direct_F77=yes # is this really true???
14842 ;;
14843 siemens)
14844 ## LD is ld it makes a PLAMLIB
14845 ## CC just makes a GrossModule.
14846 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14847 reload_cmds_F77='$CC -r -o $output$reload_objs'
14848 hardcode_direct_F77=no
14849 ;;
14850 motorola)
14851 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14852 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14853 ;;
14854 esac
14855 runpath_var='LD_RUN_PATH'
14856 hardcode_shlibpath_var_F77=no
14857 ;;
14858
14859 sysv4.3*)
14860 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14861 hardcode_shlibpath_var_F77=no
14862 export_dynamic_flag_spec_F77='-Bexport'
14863 ;;
14864
14865 sysv4*MP*)
14866 if test -d /usr/nec; then
14867 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14868 hardcode_shlibpath_var_F77=no
14869 runpath_var=LD_RUN_PATH
14870 hardcode_runpath_var=yes
14871 ld_shlibs_F77=yes
14872 fi
14873 ;;
14874
14875 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14876 no_undefined_flag_F77='${wl}-z,text'
14877 archive_cmds_need_lc_F77=no
14878 hardcode_shlibpath_var_F77=no
14879 runpath_var='LD_RUN_PATH'
14880
14881 if test "$GCC" = yes; then
14882 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14883 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14884 else
14885 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14886 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14887 fi
14888 ;;
14889
14890 sysv5* | sco3.2v5* | sco5v6*)
14891 # Note: We can NOT use -z defs as we might desire, because we do not
14892 # link with -lc, and that would cause any symbols used from libc to
14893 # always be unresolved, which means just about no library would
14894 # ever link correctly. If we're not using GNU ld we use -z text
14895 # though, which does catch some bad symbols but isn't as heavy-handed
14896 # as -z defs.
14897 no_undefined_flag_F77='${wl}-z,text'
14898 allow_undefined_flag_F77='${wl}-z,nodefs'
14899 archive_cmds_need_lc_F77=no
14900 hardcode_shlibpath_var_F77=no
14901 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14902 hardcode_libdir_separator_F77=':'
14903 link_all_deplibs_F77=yes
14904 export_dynamic_flag_spec_F77='${wl}-Bexport'
14905 runpath_var='LD_RUN_PATH'
14906
14907 if test "$GCC" = yes; then
14908 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14909 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14910 else
14911 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14912 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14913 fi
14914 ;;
14915
14916 uts4*)
14917 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14918 hardcode_libdir_flag_spec_F77='-L$libdir'
14919 hardcode_shlibpath_var_F77=no
14920 ;;
14921
14922 *)
14923 ld_shlibs_F77=no
14924 ;;
14925 esac
14926 fi
14927
14928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14929$as_echo "$ld_shlibs_F77" >&6; }
14930test "$ld_shlibs_F77" = no && can_build_shared=no
14931
14932#
14933# Do we need to explicitly link libc?
14934#
14935case "x$archive_cmds_need_lc_F77" in
14936x|xyes)
14937 # Assume -lc should be added
14938 archive_cmds_need_lc_F77=yes
14939
14940 if test "$enable_shared" = yes && test "$GCC" = yes; then
14941 case $archive_cmds_F77 in
14942 *'~'*)
14943 # FIXME: we may have to deal with multi-command sequences.
14944 ;;
14945 '$CC '*)
14946 # Test whether the compiler implicitly links with -lc since on some
14947 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14948 # to ld, don't add -lc before -lgcc.
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14950$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14951 $rm conftest*
14952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14953
14954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14955 (eval $ac_compile) 2>&5
14956 ac_status=$?
14957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14958 test $ac_status = 0; } 2>conftest.err; then
14959 soname=conftest
14960 lib=conftest
14961 libobjs=conftest.$ac_objext
14962 deplibs=
14963 wl=$lt_prog_compiler_wl_F77
14964 pic_flag=$lt_prog_compiler_pic_F77
14965 compiler_flags=-v
14966 linker_flags=-v
14967 verstring=
14968 output_objdir=.
14969 libname=conftest
14970 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14971 allow_undefined_flag_F77=
14972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14973 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14974 ac_status=$?
14975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14976 test $ac_status = 0; }
14977 then
14978 archive_cmds_need_lc_F77=no
14979 else
14980 archive_cmds_need_lc_F77=yes
14981 fi
14982 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14983 else
14984 cat conftest.err 1>&5
14985 fi
14986 $rm conftest*
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14988$as_echo "$archive_cmds_need_lc_F77" >&6; }
14989 ;;
14990 esac
14991 fi
14992 ;;
14993esac
14994
14995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14996$as_echo_n "checking dynamic linker characteristics... " >&6; }
14997library_names_spec=
14998libname_spec='lib$name'
14999soname_spec=
15000shrext_cmds=".so"
15001postinstall_cmds=
15002postuninstall_cmds=
15003finish_cmds=
15004finish_eval=
15005shlibpath_var=
15006shlibpath_overrides_runpath=unknown
15007version_type=none
15008dynamic_linker="$host_os ld.so"
15009sys_lib_dlsearch_path_spec="/lib /usr/lib"
15010
15011need_lib_prefix=unknown
15012hardcode_into_libs=no
15013
15014# when you set need_version to no, make sure it does not cause -set_version
15015# flags to be left without arguments
15016need_version=unknown
15017
15018case $host_os in
15019aix3*)
15020 version_type=linux
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15022 shlibpath_var=LIBPATH
15023
15024 # AIX 3 has no versioning support, so we append a major version to the name.
15025 soname_spec='${libname}${release}${shared_ext}$major'
15026 ;;
15027
15028aix[4-9]*)
15029 version_type=linux
15030 need_lib_prefix=no
15031 need_version=no
15032 hardcode_into_libs=yes
15033 if test "$host_cpu" = ia64; then
15034 # AIX 5 supports IA64
15035 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15036 shlibpath_var=LD_LIBRARY_PATH
15037 else
15038 # With GCC up to 2.95.x, collect2 would create an import file
15039 # for dependence libraries. The import file would start with
15040 # the line `#! .'. This would cause the generated library to
15041 # depend on `.', always an invalid library. This was fixed in
15042 # development snapshots of GCC prior to 3.0.
15043 case $host_os in
15044 aix4 | aix4.[01] | aix4.[01].*)
15045 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15046 echo ' yes '
15047 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15048 :
15049 else
15050 can_build_shared=no
15051 fi
15052 ;;
15053 esac
15054 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15055 # soname into executable. Probably we can add versioning support to
15056 # collect2, so additional links can be useful in future.
15057 if test "$aix_use_runtimelinking" = yes; then
15058 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15059 # instead of lib<name>.a to let people know that these are not
15060 # typical AIX shared libraries.
15061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15062 else
15063 # We preserve .a as extension for shared libraries through AIX4.2
15064 # and later when we are not doing run time linking.
15065 library_names_spec='${libname}${release}.a $libname.a'
15066 soname_spec='${libname}${release}${shared_ext}$major'
15067 fi
15068 shlibpath_var=LIBPATH
15069 fi
15070 ;;
15071
15072amigaos*)
15073 library_names_spec='$libname.ixlibrary $libname.a'
15074 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15075 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'
15076 ;;
15077
15078beos*)
15079 library_names_spec='${libname}${shared_ext}'
15080 dynamic_linker="$host_os ld.so"
15081 shlibpath_var=LIBRARY_PATH
15082 ;;
15083
15084bsdi[45]*)
15085 version_type=linux
15086 need_version=no
15087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088 soname_spec='${libname}${release}${shared_ext}$major'
15089 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15090 shlibpath_var=LD_LIBRARY_PATH
15091 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15092 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15093 # the default ld.so.conf also contains /usr/contrib/lib and
15094 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15095 # libtool to hard-code these into programs
15096 ;;
15097
15098cygwin* | mingw* | pw32*)
15099 version_type=windows
15100 shrext_cmds=".dll"
15101 need_version=no
15102 need_lib_prefix=no
15103
15104 case $GCC,$host_os in
15105 yes,cygwin* | yes,mingw* | yes,pw32*)
15106 library_names_spec='$libname.dll.a'
15107 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15108 postinstall_cmds='base_file=`basename \${file}`~
15109 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15110 dldir=$destdir/`dirname \$dlpath`~
15111 test -d \$dldir || mkdir -p \$dldir~
15112 $install_prog $dir/$dlname \$dldir/$dlname~
15113 chmod a+x \$dldir/$dlname'
15114 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15115 dlpath=$dir/\$dldll~
15116 $rm \$dlpath'
15117 shlibpath_overrides_runpath=yes
15118
15119 case $host_os in
15120 cygwin*)
15121 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15122 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15123 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15124 ;;
15125 mingw*)
15126 # MinGW DLLs use traditional 'lib' prefix
15127 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15128 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15129 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15130 # It is most probably a Windows format PATH printed by
15131 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15132 # path with ; separators, and with drive letters. We can handle the
15133 # drive letters (cygwin fileutils understands them), so leave them,
15134 # especially as we might pass files found there to a mingw objdump,
15135 # which wouldn't understand a cygwinified path. Ahh.
15136 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15137 else
15138 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15139 fi
15140 ;;
15141 pw32*)
15142 # pw32 DLLs use 'pw' prefix rather than 'lib'
15143 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15144 ;;
15145 esac
15146 ;;
15147
15148 *)
15149 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15150 ;;
15151 esac
15152 dynamic_linker='Win32 ld.exe'
15153 # FIXME: first we should search . and the directory the executable is in
15154 shlibpath_var=PATH
15155 ;;
15156
15157darwin* | rhapsody*)
15158 dynamic_linker="$host_os dyld"
15159 version_type=darwin
15160 need_lib_prefix=no
15161 need_version=no
15162 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15163 soname_spec='${libname}${release}${major}$shared_ext'
15164 shlibpath_overrides_runpath=yes
15165 shlibpath_var=DYLD_LIBRARY_PATH
15166 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15167
15168 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15169 ;;
15170
15171dgux*)
15172 version_type=linux
15173 need_lib_prefix=no
15174 need_version=no
15175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15176 soname_spec='${libname}${release}${shared_ext}$major'
15177 shlibpath_var=LD_LIBRARY_PATH
15178 ;;
15179
15180freebsd1*)
15181 dynamic_linker=no
15182 ;;
15183
15184freebsd* | dragonfly*)
15185 # DragonFly does not have aout. When/if they implement a new
15186 # versioning mechanism, adjust this.
15187 if test -x /usr/bin/objformat; then
15188 objformat=`/usr/bin/objformat`
15189 else
15190 case $host_os in
15191 freebsd[123]*) objformat=aout ;;
15192 *) objformat=elf ;;
15193 esac
15194 fi
15195 version_type=freebsd-$objformat
15196 case $version_type in
15197 freebsd-elf*)
15198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15199 need_version=no
15200 need_lib_prefix=no
15201 ;;
15202 freebsd-*)
15203 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15204 need_version=yes
15205 ;;
15206 esac
15207 shlibpath_var=LD_LIBRARY_PATH
15208 case $host_os in
15209 freebsd2*)
15210 shlibpath_overrides_runpath=yes
15211 ;;
15212 freebsd3.[01]* | freebsdelf3.[01]*)
15213 shlibpath_overrides_runpath=yes
15214 hardcode_into_libs=yes
15215 ;;
15216 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15217 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15218 shlibpath_overrides_runpath=no
15219 hardcode_into_libs=yes
15220 ;;
15221 *) # from 4.6 on, and DragonFly
15222 shlibpath_overrides_runpath=yes
15223 hardcode_into_libs=yes
15224 ;;
15225 esac
15226 ;;
15227
15228gnu*)
15229 version_type=linux
15230 need_lib_prefix=no
15231 need_version=no
15232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15233 soname_spec='${libname}${release}${shared_ext}$major'
15234 shlibpath_var=LD_LIBRARY_PATH
15235 hardcode_into_libs=yes
15236 ;;
15237
15238hpux9* | hpux10* | hpux11*)
15239 # Give a soname corresponding to the major version so that dld.sl refuses to
15240 # link against other versions.
15241 version_type=sunos
15242 need_lib_prefix=no
15243 need_version=no
15244 case $host_cpu in
15245 ia64*)
15246 shrext_cmds='.so'
15247 hardcode_into_libs=yes
15248 dynamic_linker="$host_os dld.so"
15249 shlibpath_var=LD_LIBRARY_PATH
15250 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15252 soname_spec='${libname}${release}${shared_ext}$major'
15253 if test "X$HPUX_IA64_MODE" = X32; then
15254 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15255 else
15256 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15257 fi
15258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15259 ;;
15260 hppa*64*)
15261 shrext_cmds='.sl'
15262 hardcode_into_libs=yes
15263 dynamic_linker="$host_os dld.sl"
15264 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 soname_spec='${libname}${release}${shared_ext}$major'
15268 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15270 ;;
15271 *)
15272 shrext_cmds='.sl'
15273 dynamic_linker="$host_os dld.sl"
15274 shlibpath_var=SHLIB_PATH
15275 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15277 soname_spec='${libname}${release}${shared_ext}$major'
15278 ;;
15279 esac
15280 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15281 postinstall_cmds='chmod 555 $lib'
15282 ;;
15283
15284interix[3-9]*)
15285 version_type=linux
15286 need_lib_prefix=no
15287 need_version=no
15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15289 soname_spec='${libname}${release}${shared_ext}$major'
15290 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15291 shlibpath_var=LD_LIBRARY_PATH
15292 shlibpath_overrides_runpath=no
15293 hardcode_into_libs=yes
15294 ;;
15295
15296irix5* | irix6* | nonstopux*)
15297 case $host_os in
15298 nonstopux*) version_type=nonstopux ;;
15299 *)
15300 if test "$lt_cv_prog_gnu_ld" = yes; then
15301 version_type=linux
15302 else
15303 version_type=irix
15304 fi ;;
15305 esac
15306 need_lib_prefix=no
15307 need_version=no
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15310 case $host_os in
15311 irix5* | nonstopux*)
15312 libsuff= shlibsuff=
15313 ;;
15314 *)
15315 case $LD in # libtool.m4 will add one of these switches to LD
15316 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15317 libsuff= shlibsuff= libmagic=32-bit;;
15318 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15319 libsuff=32 shlibsuff=N32 libmagic=N32;;
15320 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15321 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15322 *) libsuff= shlibsuff= libmagic=never-match;;
15323 esac
15324 ;;
15325 esac
15326 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15327 shlibpath_overrides_runpath=no
15328 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15329 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15330 hardcode_into_libs=yes
15331 ;;
15332
15333# No shared lib support for Linux oldld, aout, or coff.
15334linux*oldld* | linux*aout* | linux*coff*)
15335 dynamic_linker=no
15336 ;;
15337
15338# This must be Linux ELF.
15339linux* | k*bsd*-gnu)
15340 version_type=linux
15341 need_lib_prefix=no
15342 need_version=no
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344 soname_spec='${libname}${release}${shared_ext}$major'
15345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15346 shlibpath_var=LD_LIBRARY_PATH
15347 shlibpath_overrides_runpath=no
15348 # This implies no fast_install, which is unacceptable.
15349 # Some rework will be needed to allow for fast_install
15350 # before this can be enabled.
15351 hardcode_into_libs=yes
15352
15353 # Append ld.so.conf contents to the search path
15354 if test -f /etc/ld.so.conf; then
15355 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' ' '`
15356 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15357 fi
15358
15359 # We used to test for /lib/ld.so.1 and disable shared libraries on
15360 # powerpc, because MkLinux only supported shared libraries with the
15361 # GNU dynamic linker. Since this was broken with cross compilers,
15362 # most powerpc-linux boxes support dynamic linking these days and
15363 # people can always --disable-shared, the test was removed, and we
15364 # assume the GNU/Linux dynamic linker is in use.
15365 dynamic_linker='GNU/Linux ld.so'
15366 ;;
15367
15368netbsdelf*-gnu)
15369 version_type=linux
15370 need_lib_prefix=no
15371 need_version=no
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 shlibpath_var=LD_LIBRARY_PATH
15375 shlibpath_overrides_runpath=no
15376 hardcode_into_libs=yes
15377 dynamic_linker='NetBSD ld.elf_so'
15378 ;;
15379
15380netbsd*)
15381 version_type=sunos
15382 need_lib_prefix=no
15383 need_version=no
15384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15387 dynamic_linker='NetBSD (a.out) ld.so'
15388 else
15389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15390 soname_spec='${libname}${release}${shared_ext}$major'
15391 dynamic_linker='NetBSD ld.elf_so'
15392 fi
15393 shlibpath_var=LD_LIBRARY_PATH
15394 shlibpath_overrides_runpath=yes
15395 hardcode_into_libs=yes
15396 ;;
15397
15398newsos6)
15399 version_type=linux
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401 shlibpath_var=LD_LIBRARY_PATH
15402 shlibpath_overrides_runpath=yes
15403 ;;
15404
15405nto-qnx*)
15406 version_type=linux
15407 need_lib_prefix=no
15408 need_version=no
15409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15410 soname_spec='${libname}${release}${shared_ext}$major'
15411 shlibpath_var=LD_LIBRARY_PATH
15412 shlibpath_overrides_runpath=yes
15413 ;;
15414
15415openbsd*)
15416 version_type=sunos
15417 sys_lib_dlsearch_path_spec="/usr/lib"
15418 need_lib_prefix=no
15419 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15420 case $host_os in
15421 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15422 *) need_version=no ;;
15423 esac
15424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15426 shlibpath_var=LD_LIBRARY_PATH
15427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15428 case $host_os in
15429 openbsd2.[89] | openbsd2.[89].*)
15430 shlibpath_overrides_runpath=no
15431 ;;
15432 *)
15433 shlibpath_overrides_runpath=yes
15434 ;;
15435 esac
15436 else
15437 shlibpath_overrides_runpath=yes
15438 fi
15439 ;;
15440
15441os2*)
15442 libname_spec='$name'
15443 shrext_cmds=".dll"
15444 need_lib_prefix=no
15445 library_names_spec='$libname${shared_ext} $libname.a'
15446 dynamic_linker='OS/2 ld.exe'
15447 shlibpath_var=LIBPATH
15448 ;;
15449
15450osf3* | osf4* | osf5*)
15451 version_type=osf
15452 need_lib_prefix=no
15453 need_version=no
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456 shlibpath_var=LD_LIBRARY_PATH
15457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15458 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15459 ;;
15460
15461rdos*)
15462 dynamic_linker=no
15463 ;;
15464
15465solaris*)
15466 version_type=linux
15467 need_lib_prefix=no
15468 need_version=no
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470 soname_spec='${libname}${release}${shared_ext}$major'
15471 shlibpath_var=LD_LIBRARY_PATH
15472 shlibpath_overrides_runpath=yes
15473 hardcode_into_libs=yes
15474 # ldd complains unless libraries are executable
15475 postinstall_cmds='chmod +x $lib'
15476 ;;
15477
15478sunos4*)
15479 version_type=sunos
15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15481 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15482 shlibpath_var=LD_LIBRARY_PATH
15483 shlibpath_overrides_runpath=yes
15484 if test "$with_gnu_ld" = yes; then
15485 need_lib_prefix=no
15486 fi
15487 need_version=yes
15488 ;;
15489
15490sysv4 | sysv4.3*)
15491 version_type=linux
15492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15493 soname_spec='${libname}${release}${shared_ext}$major'
15494 shlibpath_var=LD_LIBRARY_PATH
15495 case $host_vendor in
15496 sni)
15497 shlibpath_overrides_runpath=no
15498 need_lib_prefix=no
15499 export_dynamic_flag_spec='${wl}-Blargedynsym'
15500 runpath_var=LD_RUN_PATH
15501 ;;
15502 siemens)
15503 need_lib_prefix=no
15504 ;;
15505 motorola)
15506 need_lib_prefix=no
15507 need_version=no
15508 shlibpath_overrides_runpath=no
15509 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15510 ;;
15511 esac
15512 ;;
15513
15514sysv4*MP*)
15515 if test -d /usr/nec ;then
15516 version_type=linux
15517 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15518 soname_spec='$libname${shared_ext}.$major'
15519 shlibpath_var=LD_LIBRARY_PATH
15520 fi
15521 ;;
15522
15523sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15524 version_type=freebsd-elf
15525 need_lib_prefix=no
15526 need_version=no
15527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15528 soname_spec='${libname}${release}${shared_ext}$major'
15529 shlibpath_var=LD_LIBRARY_PATH
15530 hardcode_into_libs=yes
15531 if test "$with_gnu_ld" = yes; then
15532 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15533 shlibpath_overrides_runpath=no
15534 else
15535 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15536 shlibpath_overrides_runpath=yes
15537 case $host_os in
15538 sco3.2v5*)
15539 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15540 ;;
15541 esac
15542 fi
15543 sys_lib_dlsearch_path_spec='/usr/lib'
15544 ;;
15545
15546uts4*)
15547 version_type=linux
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15549 soname_spec='${libname}${release}${shared_ext}$major'
15550 shlibpath_var=LD_LIBRARY_PATH
15551 ;;
15552
15553*)
15554 dynamic_linker=no
15555 ;;
15556esac
15557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15558$as_echo "$dynamic_linker" >&6; }
15559test "$dynamic_linker" = no && can_build_shared=no
15560
15561if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
15562 $as_echo_n "(cached) " >&6
15563else
15564 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15565fi
15566
15567sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15568if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
15569 $as_echo_n "(cached) " >&6
15570else
15571 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15572fi
15573
15574sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15575
15576variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15577if test "$GCC" = yes; then
15578 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15579fi
15580
15581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15582$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15583hardcode_action_F77=
15584if test -n "$hardcode_libdir_flag_spec_F77" || \
15585 test -n "$runpath_var_F77" || \
15586 test "X$hardcode_automatic_F77" = "Xyes" ; then
15587
15588 # We can hardcode non-existant directories.
15589 if test "$hardcode_direct_F77" != no &&
15590 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15591 # have to relink, otherwise we might link with an installed library
15592 # when we should be linking with a yet-to-be-installed one
15593 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15594 test "$hardcode_minus_L_F77" != no; then
15595 # Linking always hardcodes the temporary library directory.
15596 hardcode_action_F77=relink
15597 else
15598 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15599 hardcode_action_F77=immediate
15600 fi
15601else
15602 # We cannot hardcode anything, or else we can only hardcode existing
15603 # directories.
15604 hardcode_action_F77=unsupported
15605fi
15606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15607$as_echo "$hardcode_action_F77" >&6; }
15608
15609if test "$hardcode_action_F77" = relink; then
15610 # Fast installation is not supported
15611 enable_fast_install=no
15612elif test "$shlibpath_overrides_runpath" = yes ||
15613 test "$enable_shared" = no; then
15614 # Fast installation is not necessary
15615 enable_fast_install=needless
15616fi
15617
15618
15619# The else clause should only fire when bootstrapping the
15620# libtool distribution, otherwise you forgot to ship ltmain.sh
15621# with your package, and you will get complaints that there are
15622# no rules to generate ltmain.sh.
15623if test -f "$ltmain"; then
15624 # See if we are running on zsh, and set the options which allow our commands through
15625 # without removal of \ escapes.
15626 if test -n "${ZSH_VERSION+set}" ; then
15627 setopt NO_GLOB_SUBST
15628 fi
15629 # Now quote all the things that may contain metacharacters while being
15630 # careful not to overquote the AC_SUBSTed values. We take copies of the
15631 # variables and quote the copies for generation of the libtool script.
15632 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15633 SED SHELL STRIP \
15634 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15635 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15636 deplibs_check_method reload_flag reload_cmds need_locks \
15637 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15638 lt_cv_sys_global_symbol_to_c_name_address \
15639 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15640 old_postinstall_cmds old_postuninstall_cmds \
15641 compiler_F77 \
15642 CC_F77 \
15643 LD_F77 \
15644 lt_prog_compiler_wl_F77 \
15645 lt_prog_compiler_pic_F77 \
15646 lt_prog_compiler_static_F77 \
15647 lt_prog_compiler_no_builtin_flag_F77 \
15648 export_dynamic_flag_spec_F77 \
15649 thread_safe_flag_spec_F77 \
15650 whole_archive_flag_spec_F77 \
15651 enable_shared_with_static_runtimes_F77 \
15652 old_archive_cmds_F77 \
15653 old_archive_from_new_cmds_F77 \
15654 predep_objects_F77 \
15655 postdep_objects_F77 \
15656 predeps_F77 \
15657 postdeps_F77 \
15658 compiler_lib_search_path_F77 \
15659 compiler_lib_search_dirs_F77 \
15660 archive_cmds_F77 \
15661 archive_expsym_cmds_F77 \
15662 postinstall_cmds_F77 \
15663 postuninstall_cmds_F77 \
15664 old_archive_from_expsyms_cmds_F77 \
15665 allow_undefined_flag_F77 \
15666 no_undefined_flag_F77 \
15667 export_symbols_cmds_F77 \
15668 hardcode_libdir_flag_spec_F77 \
15669 hardcode_libdir_flag_spec_ld_F77 \
15670 hardcode_libdir_separator_F77 \
15671 hardcode_automatic_F77 \
15672 module_cmds_F77 \
15673 module_expsym_cmds_F77 \
15674 lt_cv_prog_compiler_c_o_F77 \
15675 fix_srcfile_path_F77 \
15676 exclude_expsyms_F77 \
15677 include_expsyms_F77; do
15678
15679 case $var in
15680 old_archive_cmds_F77 | \
15681 old_archive_from_new_cmds_F77 | \
15682 archive_cmds_F77 | \
15683 archive_expsym_cmds_F77 | \
15684 module_cmds_F77 | \
15685 module_expsym_cmds_F77 | \
15686 old_archive_from_expsyms_cmds_F77 | \
15687 export_symbols_cmds_F77 | \
15688 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15689 postinstall_cmds | postuninstall_cmds | \
15690 old_postinstall_cmds | old_postuninstall_cmds | \
15691 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15692 # Double-quote double-evaled strings.
15693 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15694 ;;
15695 *)
15696 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15697 ;;
15698 esac
15699 done
15700
15701 case $lt_echo in
15702 *'\$0 --fallback-echo"')
15703 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15704 ;;
15705 esac
15706
15707cfgfile="$ofile"
15708
15709 cat <<__EOF__ >> "$cfgfile"
15710# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15711
15712# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15713
15714# Shell to use when invoking shell scripts.
15715SHELL=$lt_SHELL
15716
15717# Whether or not to build shared libraries.
15718build_libtool_libs=$enable_shared
15719
15720# Whether or not to build static libraries.
15721build_old_libs=$enable_static
15722
15723# Whether or not to add -lc for building shared libraries.
15724build_libtool_need_lc=$archive_cmds_need_lc_F77
15725
15726# Whether or not to disallow shared libs when runtime libs are static
15727allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15728
15729# Whether or not to optimize for fast installation.
15730fast_install=$enable_fast_install
15731
15732# The host system.
15733host_alias=$host_alias
15734host=$host
15735host_os=$host_os
15736
15737# The build system.
15738build_alias=$build_alias
15739build=$build
15740build_os=$build_os
15741
15742# An echo program that does not interpret backslashes.
15743echo=$lt_echo
15744
15745# The archiver.
15746AR=$lt_AR
15747AR_FLAGS=$lt_AR_FLAGS
15748
15749# A C compiler.
15750LTCC=$lt_LTCC
15751
15752# LTCC compiler flags.
15753LTCFLAGS=$lt_LTCFLAGS
15754
15755# A language-specific compiler.
15756CC=$lt_compiler_F77
15757
15758# Is the compiler the GNU C compiler?
15759with_gcc=$GCC_F77
15760
15761# An ERE matcher.
15762EGREP=$lt_EGREP
15763
15764# The linker used to build libraries.
15765LD=$lt_LD_F77
15766
15767# Whether we need hard or soft links.
15768LN_S=$lt_LN_S
15769
15770# A BSD-compatible nm program.
15771NM=$lt_NM
15772
15773# A symbol stripping program
15774STRIP=$lt_STRIP
15775
15776# Used to examine libraries when file_magic_cmd begins "file"
15777MAGIC_CMD=$MAGIC_CMD
15778
15779# Used on cygwin: DLL creation program.
15780DLLTOOL="$DLLTOOL"
15781
15782# Used on cygwin: object dumper.
15783OBJDUMP="$OBJDUMP"
15784
15785# Used on cygwin: assembler.
15786AS="$AS"
15787
15788# The name of the directory that contains temporary libtool files.
15789objdir=$objdir
15790
15791# How to create reloadable object files.
15792reload_flag=$lt_reload_flag
15793reload_cmds=$lt_reload_cmds
15794
15795# How to pass a linker flag through the compiler.
15796wl=$lt_lt_prog_compiler_wl_F77
15797
15798# Object file suffix (normally "o").
15799objext="$ac_objext"
15800
15801# Old archive suffix (normally "a").
15802libext="$libext"
15803
15804# Shared library suffix (normally ".so").
15805shrext_cmds='$shrext_cmds'
15806
15807# Executable file suffix (normally "").
15808exeext="$exeext"
15809
15810# Additional compiler flags for building library objects.
15811pic_flag=$lt_lt_prog_compiler_pic_F77
15812pic_mode=$pic_mode
15813
15814# What is the maximum length of a command?
15815max_cmd_len=$lt_cv_sys_max_cmd_len
15816
15817# Does compiler simultaneously support -c and -o options?
15818compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15819
15820# Must we lock files when doing compilation?
15821need_locks=$lt_need_locks
15822
15823# Do we need the lib prefix for modules?
15824need_lib_prefix=$need_lib_prefix
15825
15826# Do we need a version for libraries?
15827need_version=$need_version
15828
15829# Whether dlopen is supported.
15830dlopen_support=$enable_dlopen
15831
15832# Whether dlopen of programs is supported.
15833dlopen_self=$enable_dlopen_self
15834
15835# Whether dlopen of statically linked programs is supported.
15836dlopen_self_static=$enable_dlopen_self_static
15837
15838# Compiler flag to prevent dynamic linking.
15839link_static_flag=$lt_lt_prog_compiler_static_F77
15840
15841# Compiler flag to turn off builtin functions.
15842no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15843
15844# Compiler flag to allow reflexive dlopens.
15845export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15846
15847# Compiler flag to generate shared objects directly from archives.
15848whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15849
15850# Compiler flag to generate thread-safe objects.
15851thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15852
15853# Library versioning type.
15854version_type=$version_type
15855
15856# Format of library name prefix.
15857libname_spec=$lt_libname_spec
15858
15859# List of archive names. First name is the real one, the rest are links.
15860# The last name is the one that the linker finds with -lNAME.
15861library_names_spec=$lt_library_names_spec
15862
15863# The coded name of the library, if different from the real name.
15864soname_spec=$lt_soname_spec
15865
15866# Commands used to build and install an old-style archive.
15867RANLIB=$lt_RANLIB
15868old_archive_cmds=$lt_old_archive_cmds_F77
15869old_postinstall_cmds=$lt_old_postinstall_cmds
15870old_postuninstall_cmds=$lt_old_postuninstall_cmds
15871
15872# Create an old-style archive from a shared archive.
15873old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15874
15875# Create a temporary old-style archive to link instead of a shared archive.
15876old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15877
15878# Commands used to build and install a shared archive.
15879archive_cmds=$lt_archive_cmds_F77
15880archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15881postinstall_cmds=$lt_postinstall_cmds
15882postuninstall_cmds=$lt_postuninstall_cmds
15883
15884# Commands used to build a loadable module (assumed same as above if empty)
15885module_cmds=$lt_module_cmds_F77
15886module_expsym_cmds=$lt_module_expsym_cmds_F77
15887
15888# Commands to strip libraries.
15889old_striplib=$lt_old_striplib
15890striplib=$lt_striplib
15891
15892# Dependencies to place before the objects being linked to create a
15893# shared library.
15894predep_objects=$lt_predep_objects_F77
15895
15896# Dependencies to place after the objects being linked to create a
15897# shared library.
15898postdep_objects=$lt_postdep_objects_F77
15899
15900# Dependencies to place before the objects being linked to create a
15901# shared library.
15902predeps=$lt_predeps_F77
15903
15904# Dependencies to place after the objects being linked to create a
15905# shared library.
15906postdeps=$lt_postdeps_F77
15907
15908# The directories searched by this compiler when creating a shared
15909# library
15910compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15911
15912# The library search path used internally by the compiler when linking
15913# a shared library.
15914compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15915
15916# Method to check whether dependent libraries are shared objects.
15917deplibs_check_method=$lt_deplibs_check_method
15918
15919# Command to use when deplibs_check_method == file_magic.
15920file_magic_cmd=$lt_file_magic_cmd
15921
15922# Flag that allows shared libraries with undefined symbols to be built.
15923allow_undefined_flag=$lt_allow_undefined_flag_F77
15924
15925# Flag that forces no undefined symbols.
15926no_undefined_flag=$lt_no_undefined_flag_F77
15927
15928# Commands used to finish a libtool library installation in a directory.
15929finish_cmds=$lt_finish_cmds
15930
15931# Same as above, but a single script fragment to be evaled but not shown.
15932finish_eval=$lt_finish_eval
15933
15934# Take the output of nm and produce a listing of raw symbols and C names.
15935global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15936
15937# Transform the output of nm in a proper C declaration
15938global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15939
15940# Transform the output of nm in a C name address pair
15941global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15942
15943# This is the shared library runtime path variable.
15944runpath_var=$runpath_var
15945
15946# This is the shared library path variable.
15947shlibpath_var=$shlibpath_var
15948
15949# Is shlibpath searched before the hard-coded library search path?
15950shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15951
15952# How to hardcode a shared library path into an executable.
15953hardcode_action=$hardcode_action_F77
15954
15955# Whether we should hardcode library paths into libraries.
15956hardcode_into_libs=$hardcode_into_libs
15957
15958# Flag to hardcode \$libdir into a binary during linking.
15959# This must work even if \$libdir does not exist.
15960hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15961
15962# If ld is used when linking, flag to hardcode \$libdir into
15963# a binary during linking. This must work even if \$libdir does
15964# not exist.
15965hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15966
15967# Whether we need a single -rpath flag with a separated argument.
15968hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15969
15970# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15971# resulting binary.
15972hardcode_direct=$hardcode_direct_F77
15973
15974# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15975# resulting binary.
15976hardcode_minus_L=$hardcode_minus_L_F77
15977
15978# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15979# the resulting binary.
15980hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15981
15982# Set to yes if building a shared library automatically hardcodes DIR into the library
15983# and all subsequent libraries and executables linked against it.
15984hardcode_automatic=$hardcode_automatic_F77
15985
15986# Variables whose values should be saved in libtool wrapper scripts and
15987# restored at relink time.
15988variables_saved_for_relink="$variables_saved_for_relink"
15989
15990# Whether libtool must link a program against all its dependency libraries.
15991link_all_deplibs=$link_all_deplibs_F77
15992
15993# Compile-time system search path for libraries
15994sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15995
15996# Run-time system search path for libraries
15997sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15998
15999# Fix the shell variable \$srcfile for the compiler.
16000fix_srcfile_path=$lt_fix_srcfile_path
16001
16002# Set to yes if exported symbols are required.
16003always_export_symbols=$always_export_symbols_F77
16004
16005# The commands to list exported symbols.
16006export_symbols_cmds=$lt_export_symbols_cmds_F77
16007
16008# The commands to extract the exported symbol list from a shared archive.
16009extract_expsyms_cmds=$lt_extract_expsyms_cmds
16010
16011# Symbols that should not be listed in the preloaded symbols.
16012exclude_expsyms=$lt_exclude_expsyms_F77
16013
16014# Symbols that must always be exported.
16015include_expsyms=$lt_include_expsyms_F77
16016
16017# ### END LIBTOOL TAG CONFIG: $tagname
16018
16019__EOF__
16020
16021
16022else
16023 # If there is no Makefile yet, we rely on a make rule to execute
16024 # `config.status --recheck' to rerun these tests and create the
16025 # libtool script then.
16026 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16027 if test -f "$ltmain_in"; then
16028 test -f Makefile && make "$ltmain"
16029 fi
16030fi
16031
16032
16033ac_ext=c
16034ac_cpp='$CPP $CPPFLAGS'
16035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16037ac_compiler_gnu=$ac_cv_c_compiler_gnu
16038
16039CC="$lt_save_CC"
16040
16041 else
16042 tagname=""
16043 fi
16044 ;;
16045
16046 GCJ)
16047 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16048
16049
16050# Source file extension for Java test sources.
16051ac_ext=java
16052
16053# Object file extension for compiled Java test sources.
16054objext=o
16055objext_GCJ=$objext
16056
16057# Code to be used in simple compile tests
16058lt_simple_compile_test_code="class foo {}"
16059
16060# Code to be used in simple link tests
16061lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16062
16063# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16064
16065# If no C compiler was specified, use CC.
16066LTCC=${LTCC-"$CC"}
16067
16068# If no C compiler flags were specified, use CFLAGS.
16069LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16070
16071# Allow CC to be a program name with arguments.
16072compiler=$CC
16073
16074
16075# save warnings/boilerplate of simple test code
16076ac_outfile=conftest.$ac_objext
16077echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16078eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16079_lt_compiler_boilerplate=`cat conftest.err`
16080$rm conftest*
16081
16082ac_outfile=conftest.$ac_objext
16083echo "$lt_simple_link_test_code" >conftest.$ac_ext
16084eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16085_lt_linker_boilerplate=`cat conftest.err`
16086$rm -r conftest*
16087
16088
16089# Allow CC to be a program name with arguments.
16090lt_save_CC="$CC"
16091CC=${GCJ-"gcj"}
16092compiler=$CC
16093compiler_GCJ=$CC
16094for cc_temp in $compiler""; do
16095 case $cc_temp in
16096 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16097 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16098 \-*) ;;
16099 *) break;;
16100 esac
16101done
16102cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16103
16104
16105# GCJ did not exist at the time GCC didn't implicitly link libc in.
16106archive_cmds_need_lc_GCJ=no
16107
16108old_archive_cmds_GCJ=$old_archive_cmds
16109
16110
16111lt_prog_compiler_no_builtin_flag_GCJ=
16112
16113if test "$GCC" = yes; then
16114 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16115
16116
16117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16118$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16119if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
16120 $as_echo_n "(cached) " >&6
16121else
16122 lt_cv_prog_compiler_rtti_exceptions=no
16123 ac_outfile=conftest.$ac_objext
16124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16125 lt_compiler_flag="-fno-rtti -fno-exceptions"
16126 # Insert the option either (1) after the last *FLAGS variable, or
16127 # (2) before a word containing "conftest.", or (3) at the end.
16128 # Note that $ac_compile itself does not contain backslashes and begins
16129 # with a dollar sign (not a hyphen), so the echo should work correctly.
16130 # The option is referenced via a variable to avoid confusing sed.
16131 lt_compile=`echo "$ac_compile" | $SED \
16132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16134 -e 's:$: $lt_compiler_flag:'`
16135 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16136 (eval "$lt_compile" 2>conftest.err)
16137 ac_status=$?
16138 cat conftest.err >&5
16139 echo "$as_me:__oline__: \$? = $ac_status" >&5
16140 if (exit $ac_status) && test -s "$ac_outfile"; then
16141 # The compiler can only warn and ignore the option if not recognized
16142 # So say no if there are warnings other than the usual output.
16143 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16146 lt_cv_prog_compiler_rtti_exceptions=yes
16147 fi
16148 fi
16149 $rm conftest*
16150
16151fi
16152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16153$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16154
16155if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16156 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16157else
16158 :
16159fi
16160
16161fi
16162
16163lt_prog_compiler_wl_GCJ=
16164lt_prog_compiler_pic_GCJ=
16165lt_prog_compiler_static_GCJ=
16166
16167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16168$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16169
16170 if test "$GCC" = yes; then
16171 lt_prog_compiler_wl_GCJ='-Wl,'
16172 lt_prog_compiler_static_GCJ='-static'
16173
16174 case $host_os in
16175 aix*)
16176 # All AIX code is PIC.
16177 if test "$host_cpu" = ia64; then
16178 # AIX 5 now supports IA64 processor
16179 lt_prog_compiler_static_GCJ='-Bstatic'
16180 fi
16181 ;;
16182
16183 amigaos*)
16184 # FIXME: we need at least 68020 code to build shared libraries, but
16185 # adding the `-m68020' flag to GCC prevents building anything better,
16186 # like `-m68040'.
16187 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16188 ;;
16189
16190 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16191 # PIC is the default for these OSes.
16192 ;;
16193
16194 mingw* | cygwin* | pw32* | os2*)
16195 # This hack is so that the source file can tell whether it is being
16196 # built for inclusion in a dll (and should export symbols for example).
16197 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16198 # (--disable-auto-import) libraries
16199
16200 ;;
16201
16202 darwin* | rhapsody*)
16203 # PIC is the default on this platform
16204 # Common symbols not allowed in MH_DYLIB files
16205 lt_prog_compiler_pic_GCJ='-fno-common'
16206 ;;
16207
16208 interix[3-9]*)
16209 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16210 # Instead, we relocate shared libraries at runtime.
16211 ;;
16212
16213 msdosdjgpp*)
16214 # Just because we use GCC doesn't mean we suddenly get shared libraries
16215 # on systems that don't support them.
16216 lt_prog_compiler_can_build_shared_GCJ=no
16217 enable_shared=no
16218 ;;
16219
16220 sysv4*MP*)
16221 if test -d /usr/nec; then
16222 lt_prog_compiler_pic_GCJ=-Kconform_pic
16223 fi
16224 ;;
16225
16226 hpux*)
16227 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16228 # not for PA HP-UX.
16229 case $host_cpu in
16230 hppa*64*|ia64*)
16231 # +Z the default
16232 ;;
16233 *)
16234 lt_prog_compiler_pic_GCJ='-fPIC'
16235 ;;
16236 esac
16237 ;;
16238
16239 *)
16240 lt_prog_compiler_pic_GCJ='-fPIC'
16241 ;;
16242 esac
16243 else
16244 # PORTME Check for flag to pass linker flags through the system compiler.
16245 case $host_os in
16246 aix*)
16247 lt_prog_compiler_wl_GCJ='-Wl,'
16248 if test "$host_cpu" = ia64; then
16249 # AIX 5 now supports IA64 processor
16250 lt_prog_compiler_static_GCJ='-Bstatic'
16251 else
16252 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16253 fi
16254 ;;
16255 darwin*)
16256 # PIC is the default on this platform
16257 # Common symbols not allowed in MH_DYLIB files
16258 case $cc_basename in
16259 xlc*)
16260 lt_prog_compiler_pic_GCJ='-qnocommon'
16261 lt_prog_compiler_wl_GCJ='-Wl,'
16262 ;;
16263 esac
16264 ;;
16265
16266 mingw* | cygwin* | pw32* | os2*)
16267 # This hack is so that the source file can tell whether it is being
16268 # built for inclusion in a dll (and should export symbols for example).
16269
16270 ;;
16271
16272 hpux9* | hpux10* | hpux11*)
16273 lt_prog_compiler_wl_GCJ='-Wl,'
16274 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16275 # not for PA HP-UX.
16276 case $host_cpu in
16277 hppa*64*|ia64*)
16278 # +Z the default
16279 ;;
16280 *)
16281 lt_prog_compiler_pic_GCJ='+Z'
16282 ;;
16283 esac
16284 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16285 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16286 ;;
16287
16288 irix5* | irix6* | nonstopux*)
16289 lt_prog_compiler_wl_GCJ='-Wl,'
16290 # PIC (with -KPIC) is the default.
16291 lt_prog_compiler_static_GCJ='-non_shared'
16292 ;;
16293
16294 newsos6)
16295 lt_prog_compiler_pic_GCJ='-KPIC'
16296 lt_prog_compiler_static_GCJ='-Bstatic'
16297 ;;
16298
16299 linux* | k*bsd*-gnu)
16300 case $cc_basename in
16301 icc* | ecc*)
16302 lt_prog_compiler_wl_GCJ='-Wl,'
16303 lt_prog_compiler_pic_GCJ='-KPIC'
16304 lt_prog_compiler_static_GCJ='-static'
16305 ;;
16306 pgcc* | pgf77* | pgf90* | pgf95*)
16307 # Portland Group compilers (*not* the Pentium gcc compiler,
16308 # which looks to be a dead project)
16309 lt_prog_compiler_wl_GCJ='-Wl,'
16310 lt_prog_compiler_pic_GCJ='-fpic'
16311 lt_prog_compiler_static_GCJ='-Bstatic'
16312 ;;
16313 ccc*)
16314 lt_prog_compiler_wl_GCJ='-Wl,'
16315 # All Alpha code is PIC.
16316 lt_prog_compiler_static_GCJ='-non_shared'
16317 ;;
16318 *)
16319 case `$CC -V 2>&1 | sed 5q` in
16320 *Sun\ C*)
16321 # Sun C 5.9
16322 lt_prog_compiler_pic_GCJ='-KPIC'
16323 lt_prog_compiler_static_GCJ='-Bstatic'
16324 lt_prog_compiler_wl_GCJ='-Wl,'
16325 ;;
16326 *Sun\ F*)
16327 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16328 lt_prog_compiler_pic_GCJ='-KPIC'
16329 lt_prog_compiler_static_GCJ='-Bstatic'
16330 lt_prog_compiler_wl_GCJ=''
16331 ;;
16332 esac
16333 ;;
16334 esac
16335 ;;
16336
16337 osf3* | osf4* | osf5*)
16338 lt_prog_compiler_wl_GCJ='-Wl,'
16339 # All OSF/1 code is PIC.
16340 lt_prog_compiler_static_GCJ='-non_shared'
16341 ;;
16342
16343 rdos*)
16344 lt_prog_compiler_static_GCJ='-non_shared'
16345 ;;
16346
16347 solaris*)
16348 lt_prog_compiler_pic_GCJ='-KPIC'
16349 lt_prog_compiler_static_GCJ='-Bstatic'
16350 case $cc_basename in
16351 f77* | f90* | f95*)
16352 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16353 *)
16354 lt_prog_compiler_wl_GCJ='-Wl,';;
16355 esac
16356 ;;
16357
16358 sunos4*)
16359 lt_prog_compiler_wl_GCJ='-Qoption ld '
16360 lt_prog_compiler_pic_GCJ='-PIC'
16361 lt_prog_compiler_static_GCJ='-Bstatic'
16362 ;;
16363
16364 sysv4 | sysv4.2uw2* | sysv4.3*)
16365 lt_prog_compiler_wl_GCJ='-Wl,'
16366 lt_prog_compiler_pic_GCJ='-KPIC'
16367 lt_prog_compiler_static_GCJ='-Bstatic'
16368 ;;
16369
16370 sysv4*MP*)
16371 if test -d /usr/nec ;then
16372 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16373 lt_prog_compiler_static_GCJ='-Bstatic'
16374 fi
16375 ;;
16376
16377 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16378 lt_prog_compiler_wl_GCJ='-Wl,'
16379 lt_prog_compiler_pic_GCJ='-KPIC'
16380 lt_prog_compiler_static_GCJ='-Bstatic'
16381 ;;
16382
16383 unicos*)
16384 lt_prog_compiler_wl_GCJ='-Wl,'
16385 lt_prog_compiler_can_build_shared_GCJ=no
16386 ;;
16387
16388 uts4*)
16389 lt_prog_compiler_pic_GCJ='-pic'
16390 lt_prog_compiler_static_GCJ='-Bstatic'
16391 ;;
16392
16393 *)
16394 lt_prog_compiler_can_build_shared_GCJ=no
16395 ;;
16396 esac
16397 fi
16398
16399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16400$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16401
16402#
16403# Check to make sure the PIC flag actually works.
16404#
16405if test -n "$lt_prog_compiler_pic_GCJ"; then
16406
16407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16408$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16409if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
16410 $as_echo_n "(cached) " >&6
16411else
16412 lt_cv_prog_compiler_pic_works_GCJ=no
16413 ac_outfile=conftest.$ac_objext
16414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16415 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16416 # Insert the option either (1) after the last *FLAGS variable, or
16417 # (2) before a word containing "conftest.", or (3) at the end.
16418 # Note that $ac_compile itself does not contain backslashes and begins
16419 # with a dollar sign (not a hyphen), so the echo should work correctly.
16420 # The option is referenced via a variable to avoid confusing sed.
16421 lt_compile=`echo "$ac_compile" | $SED \
16422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16424 -e 's:$: $lt_compiler_flag:'`
16425 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16426 (eval "$lt_compile" 2>conftest.err)
16427 ac_status=$?
16428 cat conftest.err >&5
16429 echo "$as_me:__oline__: \$? = $ac_status" >&5
16430 if (exit $ac_status) && test -s "$ac_outfile"; then
16431 # The compiler can only warn and ignore the option if not recognized
16432 # So say no if there are warnings other than the usual output.
16433 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16436 lt_cv_prog_compiler_pic_works_GCJ=yes
16437 fi
16438 fi
16439 $rm conftest*
16440
16441fi
16442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16443$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16444
16445if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16446 case $lt_prog_compiler_pic_GCJ in
16447 "" | " "*) ;;
16448 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16449 esac
16450else
16451 lt_prog_compiler_pic_GCJ=
16452 lt_prog_compiler_can_build_shared_GCJ=no
16453fi
16454
16455fi
16456case $host_os in
16457 # For platforms which do not support PIC, -DPIC is meaningless:
16458 *djgpp*)
16459 lt_prog_compiler_pic_GCJ=
16460 ;;
16461 *)
16462 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16463 ;;
16464esac
16465
16466#
16467# Check to make sure the static flag actually works.
16468#
16469wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16471$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16472if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
16473 $as_echo_n "(cached) " >&6
16474else
16475 lt_cv_prog_compiler_static_works_GCJ=no
16476 save_LDFLAGS="$LDFLAGS"
16477 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16478 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16479 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16480 # The linker can only warn and ignore the option if not recognized
16481 # So say no if there are warnings
16482 if test -s conftest.err; then
16483 # Append any errors to the config.log.
16484 cat conftest.err 1>&5
16485 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16487 if diff conftest.exp conftest.er2 >/dev/null; then
16488 lt_cv_prog_compiler_static_works_GCJ=yes
16489 fi
16490 else
16491 lt_cv_prog_compiler_static_works_GCJ=yes
16492 fi
16493 fi
16494 $rm -r conftest*
16495 LDFLAGS="$save_LDFLAGS"
16496
16497fi
16498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16499$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16500
16501if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16502 :
16503else
16504 lt_prog_compiler_static_GCJ=
16505fi
16506
16507
16508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16509$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16510if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
16511 $as_echo_n "(cached) " >&6
16512else
16513 lt_cv_prog_compiler_c_o_GCJ=no
16514 $rm -r conftest 2>/dev/null
16515 mkdir conftest
16516 cd conftest
16517 mkdir out
16518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16519
16520 lt_compiler_flag="-o out/conftest2.$ac_objext"
16521 # Insert the option either (1) after the last *FLAGS variable, or
16522 # (2) before a word containing "conftest.", or (3) at the end.
16523 # Note that $ac_compile itself does not contain backslashes and begins
16524 # with a dollar sign (not a hyphen), so the echo should work correctly.
16525 lt_compile=`echo "$ac_compile" | $SED \
16526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16528 -e 's:$: $lt_compiler_flag:'`
16529 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16530 (eval "$lt_compile" 2>out/conftest.err)
16531 ac_status=$?
16532 cat out/conftest.err >&5
16533 echo "$as_me:__oline__: \$? = $ac_status" >&5
16534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16535 then
16536 # The compiler can only warn and ignore the option if not recognized
16537 # So say no if there are warnings
16538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16541 lt_cv_prog_compiler_c_o_GCJ=yes
16542 fi
16543 fi
16544 chmod u+w . 2>&5
16545 $rm conftest*
16546 # SGI C++ compiler will create directory out/ii_files/ for
16547 # template instantiation
16548 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16549 $rm out/* && rmdir out
16550 cd ..
16551 rmdir conftest
16552 $rm conftest*
16553
16554fi
16555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16556$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16557
16558
16559hard_links="nottested"
16560if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16561 # do not overwrite the value of need_locks provided by the user
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16563$as_echo_n "checking if we can lock with hard links... " >&6; }
16564 hard_links=yes
16565 $rm conftest*
16566 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16567 touch conftest.a
16568 ln conftest.a conftest.b 2>&5 || hard_links=no
16569 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16571$as_echo "$hard_links" >&6; }
16572 if test "$hard_links" = no; then
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16574$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16575 need_locks=warn
16576 fi
16577else
16578 need_locks=no
16579fi
16580
16581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16582$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16583
16584 runpath_var=
16585 allow_undefined_flag_GCJ=
16586 enable_shared_with_static_runtimes_GCJ=no
16587 archive_cmds_GCJ=
16588 archive_expsym_cmds_GCJ=
16589 old_archive_From_new_cmds_GCJ=
16590 old_archive_from_expsyms_cmds_GCJ=
16591 export_dynamic_flag_spec_GCJ=
16592 whole_archive_flag_spec_GCJ=
16593 thread_safe_flag_spec_GCJ=
16594 hardcode_libdir_flag_spec_GCJ=
16595 hardcode_libdir_flag_spec_ld_GCJ=
16596 hardcode_libdir_separator_GCJ=
16597 hardcode_direct_GCJ=no
16598 hardcode_minus_L_GCJ=no
16599 hardcode_shlibpath_var_GCJ=unsupported
16600 link_all_deplibs_GCJ=unknown
16601 hardcode_automatic_GCJ=no
16602 module_cmds_GCJ=
16603 module_expsym_cmds_GCJ=
16604 always_export_symbols_GCJ=no
16605 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16606 # include_expsyms should be a list of space-separated symbols to be *always*
16607 # included in the symbol list
16608 include_expsyms_GCJ=
16609 # exclude_expsyms can be an extended regexp of symbols to exclude
16610 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16611 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16612 # as well as any symbol that contains `d'.
16613 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16614 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16615 # platforms (ab)use it in PIC code, but their linkers get confused if
16616 # the symbol is explicitly referenced. Since portable code cannot
16617 # rely on this symbol name, it's probably fine to never include it in
16618 # preloaded symbol tables.
16619 # Exclude shared library initialization/finalization symbols.
16620 extract_expsyms_cmds=
16621 # Just being paranoid about ensuring that cc_basename is set.
16622 for cc_temp in $compiler""; do
16623 case $cc_temp in
16624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16626 \-*) ;;
16627 *) break;;
16628 esac
16629done
16630cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16631
16632 case $host_os in
16633 cygwin* | mingw* | pw32*)
16634 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16635 # When not using gcc, we currently assume that we are using
16636 # Microsoft Visual C++.
16637 if test "$GCC" != yes; then
16638 with_gnu_ld=no
16639 fi
16640 ;;
16641 interix*)
16642 # we just hope/assume this is gcc and not c89 (= MSVC++)
16643 with_gnu_ld=yes
16644 ;;
16645 openbsd*)
16646 with_gnu_ld=no
16647 ;;
16648 esac
16649
16650 ld_shlibs_GCJ=yes
16651 if test "$with_gnu_ld" = yes; then
16652 # If archive_cmds runs LD, not CC, wlarc should be empty
16653 wlarc='${wl}'
16654
16655 # Set some defaults for GNU ld with shared library support. These
16656 # are reset later if shared libraries are not supported. Putting them
16657 # here allows them to be overridden if necessary.
16658 runpath_var=LD_RUN_PATH
16659 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16660 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16661 # ancient GNU ld didn't support --whole-archive et. al.
16662 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16663 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16664 else
16665 whole_archive_flag_spec_GCJ=
16666 fi
16667 supports_anon_versioning=no
16668 case `$LD -v 2>/dev/null` in
16669 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16670 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16671 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16672 *\ 2.11.*) ;; # other 2.11 versions
16673 *) supports_anon_versioning=yes ;;
16674 esac
16675
16676 # See if GNU ld supports shared libraries.
16677 case $host_os in
16678 aix[3-9]*)
16679 # On AIX/PPC, the GNU linker is very broken
16680 if test "$host_cpu" != ia64; then
16681 ld_shlibs_GCJ=no
16682 cat <<EOF 1>&2
16683
16684*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16685*** to be unable to reliably create shared libraries on AIX.
16686*** Therefore, libtool is disabling shared libraries support. If you
16687*** really care for shared libraries, you may want to modify your PATH
16688*** so that a non-GNU linker is found, and then restart.
16689
16690EOF
16691 fi
16692 ;;
16693
16694 amigaos*)
16695 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)'
16696 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16697 hardcode_minus_L_GCJ=yes
16698
16699 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16700 # that the semantics of dynamic libraries on AmigaOS, at least up
16701 # to version 4, is to share data among multiple programs linked
16702 # with the same dynamic library. Since this doesn't match the
16703 # behavior of shared libraries on other platforms, we can't use
16704 # them.
16705 ld_shlibs_GCJ=no
16706 ;;
16707
16708 beos*)
16709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16710 allow_undefined_flag_GCJ=unsupported
16711 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16712 # support --undefined. This deserves some investigation. FIXME
16713 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16714 else
16715 ld_shlibs_GCJ=no
16716 fi
16717 ;;
16718
16719 cygwin* | mingw* | pw32*)
16720 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16721 # as there is no search path for DLLs.
16722 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16723 allow_undefined_flag_GCJ=unsupported
16724 always_export_symbols_GCJ=no
16725 enable_shared_with_static_runtimes_GCJ=yes
16726 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16727
16728 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16729 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16730 # If the export-symbols file already is a .def file (1st line
16731 # is EXPORTS), use it as is; otherwise, prepend...
16732 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16733 cp $export_symbols $output_objdir/$soname.def;
16734 else
16735 echo EXPORTS > $output_objdir/$soname.def;
16736 cat $export_symbols >> $output_objdir/$soname.def;
16737 fi~
16738 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16739 else
16740 ld_shlibs_GCJ=no
16741 fi
16742 ;;
16743
16744 interix[3-9]*)
16745 hardcode_direct_GCJ=no
16746 hardcode_shlibpath_var_GCJ=no
16747 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16748 export_dynamic_flag_spec_GCJ='${wl}-E'
16749 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16750 # Instead, shared libraries are loaded at an image base (0x10000000 by
16751 # default) and relocated if they conflict, which is a slow very memory
16752 # consuming and fragmenting process. To avoid this, we pick a random,
16753 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16754 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16755 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'
16756 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'
16757 ;;
16758
16759 gnu* | linux* | k*bsd*-gnu)
16760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16761 tmp_addflag=
16762 case $cc_basename,$host_cpu in
16763 pgcc*) # Portland Group C compiler
16764 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'
16765 tmp_addflag=' $pic_flag'
16766 ;;
16767 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16768 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'
16769 tmp_addflag=' $pic_flag -Mnomain' ;;
16770 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16771 tmp_addflag=' -i_dynamic' ;;
16772 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16773 tmp_addflag=' -i_dynamic -nofor_main' ;;
16774 ifc* | ifort*) # Intel Fortran compiler
16775 tmp_addflag=' -nofor_main' ;;
16776 esac
16777 case `$CC -V 2>&1 | sed 5q` in
16778 *Sun\ C*) # Sun C 5.9
16779 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'
16780 tmp_sharedflag='-G' ;;
16781 *Sun\ F*) # Sun Fortran 8.3
16782 tmp_sharedflag='-G' ;;
16783 *)
16784 tmp_sharedflag='-shared' ;;
16785 esac
16786 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16787
16788 if test $supports_anon_versioning = yes; then
16789 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16790 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16791 $echo "local: *; };" >> $output_objdir/$libname.ver~
16792 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16793 fi
16794 link_all_deplibs_GCJ=no
16795 else
16796 ld_shlibs_GCJ=no
16797 fi
16798 ;;
16799
16800 netbsd* | netbsdelf*-gnu)
16801 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16802 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16803 wlarc=
16804 else
16805 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16806 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16807 fi
16808 ;;
16809
16810 solaris*)
16811 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16812 ld_shlibs_GCJ=no
16813 cat <<EOF 1>&2
16814
16815*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16816*** create shared libraries on Solaris systems. Therefore, libtool
16817*** is disabling shared libraries support. We urge you to upgrade GNU
16818*** binutils to release 2.9.1 or newer. Another option is to modify
16819*** your PATH or compiler configuration so that the native linker is
16820*** used, and then restart.
16821
16822EOF
16823 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16824 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16825 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16826 else
16827 ld_shlibs_GCJ=no
16828 fi
16829 ;;
16830
16831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16832 case `$LD -v 2>&1` in
16833 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16834 ld_shlibs_GCJ=no
16835 cat <<_LT_EOF 1>&2
16836
16837*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16838*** reliably create shared libraries on SCO systems. Therefore, libtool
16839*** is disabling shared libraries support. We urge you to upgrade GNU
16840*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16841*** your PATH or compiler configuration so that the native linker is
16842*** used, and then restart.
16843
16844_LT_EOF
16845 ;;
16846 *)
16847 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16848 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16849 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16850 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16851 else
16852 ld_shlibs_GCJ=no
16853 fi
16854 ;;
16855 esac
16856 ;;
16857
16858 sunos4*)
16859 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16860 wlarc=
16861 hardcode_direct_GCJ=yes
16862 hardcode_shlibpath_var_GCJ=no
16863 ;;
16864
16865 *)
16866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16867 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16868 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16869 else
16870 ld_shlibs_GCJ=no
16871 fi
16872 ;;
16873 esac
16874
16875 if test "$ld_shlibs_GCJ" = no; then
16876 runpath_var=
16877 hardcode_libdir_flag_spec_GCJ=
16878 export_dynamic_flag_spec_GCJ=
16879 whole_archive_flag_spec_GCJ=
16880 fi
16881 else
16882 # PORTME fill in a description of your system's linker (not GNU ld)
16883 case $host_os in
16884 aix3*)
16885 allow_undefined_flag_GCJ=unsupported
16886 always_export_symbols_GCJ=yes
16887 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'
16888 # Note: this linker hardcodes the directories in LIBPATH if there
16889 # are no directories specified by -L.
16890 hardcode_minus_L_GCJ=yes
16891 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16892 # Neither direct hardcoding nor static linking is supported with a
16893 # broken collect2.
16894 hardcode_direct_GCJ=unsupported
16895 fi
16896 ;;
16897
16898 aix[4-9]*)
16899 if test "$host_cpu" = ia64; then
16900 # On IA64, the linker does run time linking by default, so we don't
16901 # have to do anything special.
16902 aix_use_runtimelinking=no
16903 exp_sym_flag='-Bexport'
16904 no_entry_flag=""
16905 else
16906 # If we're using GNU nm, then we don't want the "-C" option.
16907 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16908 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16909 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'
16910 else
16911 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'
16912 fi
16913 aix_use_runtimelinking=no
16914
16915 # Test if we are trying to use run time linking or normal
16916 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16917 # need to do runtime linking.
16918 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16919 for ld_flag in $LDFLAGS; do
16920 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16921 aix_use_runtimelinking=yes
16922 break
16923 fi
16924 done
16925 ;;
16926 esac
16927
16928 exp_sym_flag='-bexport'
16929 no_entry_flag='-bnoentry'
16930 fi
16931
16932 # When large executables or shared objects are built, AIX ld can
16933 # have problems creating the table of contents. If linking a library
16934 # or program results in "error TOC overflow" add -mminimal-toc to
16935 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16936 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16937
16938 archive_cmds_GCJ=''
16939 hardcode_direct_GCJ=yes
16940 hardcode_libdir_separator_GCJ=':'
16941 link_all_deplibs_GCJ=yes
16942
16943 if test "$GCC" = yes; then
16944 case $host_os in aix4.[012]|aix4.[012].*)
16945 # We only want to do this on AIX 4.2 and lower, the check
16946 # below for broken collect2 doesn't work under 4.3+
16947 collect2name=`${CC} -print-prog-name=collect2`
16948 if test -f "$collect2name" && \
16949 strings "$collect2name" | grep resolve_lib_name >/dev/null
16950 then
16951 # We have reworked collect2
16952 :
16953 else
16954 # We have old collect2
16955 hardcode_direct_GCJ=unsupported
16956 # It fails to find uninstalled libraries when the uninstalled
16957 # path is not listed in the libpath. Setting hardcode_minus_L
16958 # to unsupported forces relinking
16959 hardcode_minus_L_GCJ=yes
16960 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16961 hardcode_libdir_separator_GCJ=
16962 fi
16963 ;;
16964 esac
16965 shared_flag='-shared'
16966 if test "$aix_use_runtimelinking" = yes; then
16967 shared_flag="$shared_flag "'${wl}-G'
16968 fi
16969 else
16970 # not using gcc
16971 if test "$host_cpu" = ia64; then
16972 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16973 # chokes on -Wl,-G. The following line is correct:
16974 shared_flag='-G'
16975 else
16976 if test "$aix_use_runtimelinking" = yes; then
16977 shared_flag='${wl}-G'
16978 else
16979 shared_flag='${wl}-bM:SRE'
16980 fi
16981 fi
16982 fi
16983
16984 # It seems that -bexpall does not export symbols beginning with
16985 # underscore (_), so it is better to generate a list of symbols to export.
16986 always_export_symbols_GCJ=yes
16987 if test "$aix_use_runtimelinking" = yes; then
16988 # Warning - without using the other runtime loading flags (-brtl),
16989 # -berok will link without error, but may produce a broken library.
16990 allow_undefined_flag_GCJ='-berok'
16991 # Determine the default libpath from the value encoded in an empty executable.
16992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16993/* end confdefs.h. */
16994
16995int
16996main ()
16997{
16998
16999 ;
17000 return 0;
17001}
17002_ACEOF
17003if ac_fn_c_try_link "$LINENO"; then :
17004
17005lt_aix_libpath_sed='
17006 /Import File Strings/,/^$/ {
17007 /^0/ {
17008 s/^0 *\(.*\)$/\1/
17009 p
17010 }
17011 }'
17012aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17013# Check for a 64-bit object if we didn't find anything.
17014if test -z "$aix_libpath"; then
17015 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17016fi
17017fi
17018rm -f core conftest.err conftest.$ac_objext \
17019 conftest$ac_exeext conftest.$ac_ext
17020if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17021
17022 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17023 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"
17024 else
17025 if test "$host_cpu" = ia64; then
17026 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17027 allow_undefined_flag_GCJ="-z nodefs"
17028 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"
17029 else
17030 # Determine the default libpath from the value encoded in an empty executable.
17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032/* end confdefs.h. */
17033
17034int
17035main ()
17036{
17037
17038 ;
17039 return 0;
17040}
17041_ACEOF
17042if ac_fn_c_try_link "$LINENO"; then :
17043
17044lt_aix_libpath_sed='
17045 /Import File Strings/,/^$/ {
17046 /^0/ {
17047 s/^0 *\(.*\)$/\1/
17048 p
17049 }
17050 }'
17051aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17052# Check for a 64-bit object if we didn't find anything.
17053if test -z "$aix_libpath"; then
17054 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17055fi
17056fi
17057rm -f core conftest.err conftest.$ac_objext \
17058 conftest$ac_exeext conftest.$ac_ext
17059if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17060
17061 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17062 # Warning - without using the other run time loading flags,
17063 # -berok will link without error, but may produce a broken library.
17064 no_undefined_flag_GCJ=' ${wl}-bernotok'
17065 allow_undefined_flag_GCJ=' ${wl}-berok'
17066 # Exported symbols can be pulled into shared objects from archives
17067 whole_archive_flag_spec_GCJ='$convenience'
17068 archive_cmds_need_lc_GCJ=yes
17069 # This is similar to how AIX traditionally builds its shared libraries.
17070 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'
17071 fi
17072 fi
17073 ;;
17074
17075 amigaos*)
17076 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)'
17077 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17078 hardcode_minus_L_GCJ=yes
17079 # see comment about different semantics on the GNU ld section
17080 ld_shlibs_GCJ=no
17081 ;;
17082
17083 bsdi[45]*)
17084 export_dynamic_flag_spec_GCJ=-rdynamic
17085 ;;
17086
17087 cygwin* | mingw* | pw32*)
17088 # When not using gcc, we currently assume that we are using
17089 # Microsoft Visual C++.
17090 # hardcode_libdir_flag_spec is actually meaningless, as there is
17091 # no search path for DLLs.
17092 hardcode_libdir_flag_spec_GCJ=' '
17093 allow_undefined_flag_GCJ=unsupported
17094 # Tell ltmain to make .lib files, not .a files.
17095 libext=lib
17096 # Tell ltmain to make .dll files, not .so files.
17097 shrext_cmds=".dll"
17098 # FIXME: Setting linknames here is a bad hack.
17099 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17100 # The linker will automatically build a .lib file if we build a DLL.
17101 old_archive_From_new_cmds_GCJ='true'
17102 # FIXME: Should let the user specify the lib program.
17103 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17104 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17105 enable_shared_with_static_runtimes_GCJ=yes
17106 ;;
17107
17108 darwin* | rhapsody*)
17109 case $host_os in
17110 rhapsody* | darwin1.[012])
17111 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17112 ;;
17113 *) # Darwin 1.3 on
17114 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17115 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17116 else
17117 case ${MACOSX_DEPLOYMENT_TARGET} in
17118 10.[012])
17119 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17120 ;;
17121 10.*)
17122 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17123 ;;
17124 esac
17125 fi
17126 ;;
17127 esac
17128 archive_cmds_need_lc_GCJ=no
17129 hardcode_direct_GCJ=no
17130 hardcode_automatic_GCJ=yes
17131 hardcode_shlibpath_var_GCJ=unsupported
17132 whole_archive_flag_spec_GCJ=''
17133 link_all_deplibs_GCJ=yes
17134 if test "$GCC" = yes ; then
17135 output_verbose_link_cmd='echo'
17136 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}"
17137 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17138 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}"
17139 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}"
17140 else
17141 case $cc_basename in
17142 xlc*)
17143 output_verbose_link_cmd='echo'
17144 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17145 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17146 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17147 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}'
17148 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}'
17149 ;;
17150 *)
17151 ld_shlibs_GCJ=no
17152 ;;
17153 esac
17154 fi
17155 ;;
17156
17157 dgux*)
17158 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17159 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17160 hardcode_shlibpath_var_GCJ=no
17161 ;;
17162
17163 freebsd1*)
17164 ld_shlibs_GCJ=no
17165 ;;
17166
17167 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17168 # support. Future versions do this automatically, but an explicit c++rt0.o
17169 # does not break anything, and helps significantly (at the cost of a little
17170 # extra space).
17171 freebsd2.2*)
17172 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17173 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17174 hardcode_direct_GCJ=yes
17175 hardcode_shlibpath_var_GCJ=no
17176 ;;
17177
17178 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17179 freebsd2*)
17180 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17181 hardcode_direct_GCJ=yes
17182 hardcode_minus_L_GCJ=yes
17183 hardcode_shlibpath_var_GCJ=no
17184 ;;
17185
17186 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17187 freebsd* | dragonfly*)
17188 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17189 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17190 hardcode_direct_GCJ=yes
17191 hardcode_shlibpath_var_GCJ=no
17192 ;;
17193
17194 hpux9*)
17195 if test "$GCC" = yes; then
17196 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'
17197 else
17198 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'
17199 fi
17200 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17201 hardcode_libdir_separator_GCJ=:
17202 hardcode_direct_GCJ=yes
17203
17204 # hardcode_minus_L: Not really in the search PATH,
17205 # but as the default location of the library.
17206 hardcode_minus_L_GCJ=yes
17207 export_dynamic_flag_spec_GCJ='${wl}-E'
17208 ;;
17209
17210 hpux10*)
17211 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17212 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17213 else
17214 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17215 fi
17216 if test "$with_gnu_ld" = no; then
17217 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17218 hardcode_libdir_separator_GCJ=:
17219
17220 hardcode_direct_GCJ=yes
17221 export_dynamic_flag_spec_GCJ='${wl}-E'
17222
17223 # hardcode_minus_L: Not really in the search PATH,
17224 # but as the default location of the library.
17225 hardcode_minus_L_GCJ=yes
17226 fi
17227 ;;
17228
17229 hpux11*)
17230 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17231 case $host_cpu in
17232 hppa*64*)
17233 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17234 ;;
17235 ia64*)
17236 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17237 ;;
17238 *)
17239 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17240 ;;
17241 esac
17242 else
17243 case $host_cpu in
17244 hppa*64*)
17245 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17246 ;;
17247 ia64*)
17248 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17249 ;;
17250 *)
17251 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17252 ;;
17253 esac
17254 fi
17255 if test "$with_gnu_ld" = no; then
17256 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17257 hardcode_libdir_separator_GCJ=:
17258
17259 case $host_cpu in
17260 hppa*64*|ia64*)
17261 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17262 hardcode_direct_GCJ=no
17263 hardcode_shlibpath_var_GCJ=no
17264 ;;
17265 *)
17266 hardcode_direct_GCJ=yes
17267 export_dynamic_flag_spec_GCJ='${wl}-E'
17268
17269 # hardcode_minus_L: Not really in the search PATH,
17270 # but as the default location of the library.
17271 hardcode_minus_L_GCJ=yes
17272 ;;
17273 esac
17274 fi
17275 ;;
17276
17277 irix5* | irix6* | nonstopux*)
17278 if test "$GCC" = yes; then
17279 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'
17280 else
17281 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'
17282 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17283 fi
17284 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17285 hardcode_libdir_separator_GCJ=:
17286 link_all_deplibs_GCJ=yes
17287 ;;
17288
17289 netbsd* | netbsdelf*-gnu)
17290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17291 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17292 else
17293 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17294 fi
17295 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17296 hardcode_direct_GCJ=yes
17297 hardcode_shlibpath_var_GCJ=no
17298 ;;
17299
17300 newsos6)
17301 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17302 hardcode_direct_GCJ=yes
17303 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17304 hardcode_libdir_separator_GCJ=:
17305 hardcode_shlibpath_var_GCJ=no
17306 ;;
17307
17308 openbsd*)
17309 if test -f /usr/libexec/ld.so; then
17310 hardcode_direct_GCJ=yes
17311 hardcode_shlibpath_var_GCJ=no
17312 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17313 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17314 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17315 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17316 export_dynamic_flag_spec_GCJ='${wl}-E'
17317 else
17318 case $host_os in
17319 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17320 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17321 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17322 ;;
17323 *)
17324 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17325 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17326 ;;
17327 esac
17328 fi
17329 else
17330 ld_shlibs_GCJ=no
17331 fi
17332 ;;
17333
17334 os2*)
17335 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17336 hardcode_minus_L_GCJ=yes
17337 allow_undefined_flag_GCJ=unsupported
17338 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'
17339 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17340 ;;
17341
17342 osf3*)
17343 if test "$GCC" = yes; then
17344 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17345 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'
17346 else
17347 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17348 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'
17349 fi
17350 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17351 hardcode_libdir_separator_GCJ=:
17352 ;;
17353
17354 osf4* | osf5*) # as osf3* with the addition of -msym flag
17355 if test "$GCC" = yes; then
17356 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17357 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'
17358 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17359 else
17360 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17361 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'
17362 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~
17363 $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'
17364
17365 # Both c and cxx compiler support -rpath directly
17366 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17367 fi
17368 hardcode_libdir_separator_GCJ=:
17369 ;;
17370
17371 solaris*)
17372 no_undefined_flag_GCJ=' -z text'
17373 if test "$GCC" = yes; then
17374 wlarc='${wl}'
17375 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17376 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17377 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17378 else
17379 wlarc=''
17380 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17381 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17382 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17383 fi
17384 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17385 hardcode_shlibpath_var_GCJ=no
17386 case $host_os in
17387 solaris2.[0-5] | solaris2.[0-5].*) ;;
17388 *)
17389 # The compiler driver will combine and reorder linker options,
17390 # but understands `-z linker_flag'. GCC discards it without `$wl',
17391 # but is careful enough not to reorder.
17392 # Supported since Solaris 2.6 (maybe 2.5.1?)
17393 if test "$GCC" = yes; then
17394 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17395 else
17396 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17397 fi
17398 ;;
17399 esac
17400 link_all_deplibs_GCJ=yes
17401 ;;
17402
17403 sunos4*)
17404 if test "x$host_vendor" = xsequent; then
17405 # Use $CC to link under sequent, because it throws in some extra .o
17406 # files that make .init and .fini sections work.
17407 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17408 else
17409 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17410 fi
17411 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17412 hardcode_direct_GCJ=yes
17413 hardcode_minus_L_GCJ=yes
17414 hardcode_shlibpath_var_GCJ=no
17415 ;;
17416
17417 sysv4)
17418 case $host_vendor in
17419 sni)
17420 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17421 hardcode_direct_GCJ=yes # is this really true???
17422 ;;
17423 siemens)
17424 ## LD is ld it makes a PLAMLIB
17425 ## CC just makes a GrossModule.
17426 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17427 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17428 hardcode_direct_GCJ=no
17429 ;;
17430 motorola)
17431 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17432 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17433 ;;
17434 esac
17435 runpath_var='LD_RUN_PATH'
17436 hardcode_shlibpath_var_GCJ=no
17437 ;;
17438
17439 sysv4.3*)
17440 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17441 hardcode_shlibpath_var_GCJ=no
17442 export_dynamic_flag_spec_GCJ='-Bexport'
17443 ;;
17444
17445 sysv4*MP*)
17446 if test -d /usr/nec; then
17447 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17448 hardcode_shlibpath_var_GCJ=no
17449 runpath_var=LD_RUN_PATH
17450 hardcode_runpath_var=yes
17451 ld_shlibs_GCJ=yes
17452 fi
17453 ;;
17454
17455 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17456 no_undefined_flag_GCJ='${wl}-z,text'
17457 archive_cmds_need_lc_GCJ=no
17458 hardcode_shlibpath_var_GCJ=no
17459 runpath_var='LD_RUN_PATH'
17460
17461 if test "$GCC" = yes; then
17462 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17463 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17464 else
17465 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17466 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17467 fi
17468 ;;
17469
17470 sysv5* | sco3.2v5* | sco5v6*)
17471 # Note: We can NOT use -z defs as we might desire, because we do not
17472 # link with -lc, and that would cause any symbols used from libc to
17473 # always be unresolved, which means just about no library would
17474 # ever link correctly. If we're not using GNU ld we use -z text
17475 # though, which does catch some bad symbols but isn't as heavy-handed
17476 # as -z defs.
17477 no_undefined_flag_GCJ='${wl}-z,text'
17478 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17479 archive_cmds_need_lc_GCJ=no
17480 hardcode_shlibpath_var_GCJ=no
17481 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17482 hardcode_libdir_separator_GCJ=':'
17483 link_all_deplibs_GCJ=yes
17484 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17485 runpath_var='LD_RUN_PATH'
17486
17487 if test "$GCC" = yes; then
17488 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17489 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17490 else
17491 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17492 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17493 fi
17494 ;;
17495
17496 uts4*)
17497 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17498 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17499 hardcode_shlibpath_var_GCJ=no
17500 ;;
17501
17502 *)
17503 ld_shlibs_GCJ=no
17504 ;;
17505 esac
17506 fi
17507
17508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17509$as_echo "$ld_shlibs_GCJ" >&6; }
17510test "$ld_shlibs_GCJ" = no && can_build_shared=no
17511
17512#
17513# Do we need to explicitly link libc?
17514#
17515case "x$archive_cmds_need_lc_GCJ" in
17516x|xyes)
17517 # Assume -lc should be added
17518 archive_cmds_need_lc_GCJ=yes
17519
17520 if test "$enable_shared" = yes && test "$GCC" = yes; then
17521 case $archive_cmds_GCJ in
17522 *'~'*)
17523 # FIXME: we may have to deal with multi-command sequences.
17524 ;;
17525 '$CC '*)
17526 # Test whether the compiler implicitly links with -lc since on some
17527 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17528 # to ld, don't add -lc before -lgcc.
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17530$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17531 $rm conftest*
17532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17533
17534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17535 (eval $ac_compile) 2>&5
17536 ac_status=$?
17537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17538 test $ac_status = 0; } 2>conftest.err; then
17539 soname=conftest
17540 lib=conftest
17541 libobjs=conftest.$ac_objext
17542 deplibs=
17543 wl=$lt_prog_compiler_wl_GCJ
17544 pic_flag=$lt_prog_compiler_pic_GCJ
17545 compiler_flags=-v
17546 linker_flags=-v
17547 verstring=
17548 output_objdir=.
17549 libname=conftest
17550 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17551 allow_undefined_flag_GCJ=
17552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17553 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17554 ac_status=$?
17555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17556 test $ac_status = 0; }
17557 then
17558 archive_cmds_need_lc_GCJ=no
17559 else
17560 archive_cmds_need_lc_GCJ=yes
17561 fi
17562 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17563 else
17564 cat conftest.err 1>&5
17565 fi
17566 $rm conftest*
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17568$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17569 ;;
17570 esac
17571 fi
17572 ;;
17573esac
17574
17575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17576$as_echo_n "checking dynamic linker characteristics... " >&6; }
17577library_names_spec=
17578libname_spec='lib$name'
17579soname_spec=
17580shrext_cmds=".so"
17581postinstall_cmds=
17582postuninstall_cmds=
17583finish_cmds=
17584finish_eval=
17585shlibpath_var=
17586shlibpath_overrides_runpath=unknown
17587version_type=none
17588dynamic_linker="$host_os ld.so"
17589sys_lib_dlsearch_path_spec="/lib /usr/lib"
17590
17591need_lib_prefix=unknown
17592hardcode_into_libs=no
17593
17594# when you set need_version to no, make sure it does not cause -set_version
17595# flags to be left without arguments
17596need_version=unknown
17597
17598case $host_os in
17599aix3*)
17600 version_type=linux
17601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17602 shlibpath_var=LIBPATH
17603
17604 # AIX 3 has no versioning support, so we append a major version to the name.
17605 soname_spec='${libname}${release}${shared_ext}$major'
17606 ;;
17607
17608aix[4-9]*)
17609 version_type=linux
17610 need_lib_prefix=no
17611 need_version=no
17612 hardcode_into_libs=yes
17613 if test "$host_cpu" = ia64; then
17614 # AIX 5 supports IA64
17615 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17616 shlibpath_var=LD_LIBRARY_PATH
17617 else
17618 # With GCC up to 2.95.x, collect2 would create an import file
17619 # for dependence libraries. The import file would start with
17620 # the line `#! .'. This would cause the generated library to
17621 # depend on `.', always an invalid library. This was fixed in
17622 # development snapshots of GCC prior to 3.0.
17623 case $host_os in
17624 aix4 | aix4.[01] | aix4.[01].*)
17625 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17626 echo ' yes '
17627 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17628 :
17629 else
17630 can_build_shared=no
17631 fi
17632 ;;
17633 esac
17634 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17635 # soname into executable. Probably we can add versioning support to
17636 # collect2, so additional links can be useful in future.
17637 if test "$aix_use_runtimelinking" = yes; then
17638 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17639 # instead of lib<name>.a to let people know that these are not
17640 # typical AIX shared libraries.
17641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17642 else
17643 # We preserve .a as extension for shared libraries through AIX4.2
17644 # and later when we are not doing run time linking.
17645 library_names_spec='${libname}${release}.a $libname.a'
17646 soname_spec='${libname}${release}${shared_ext}$major'
17647 fi
17648 shlibpath_var=LIBPATH
17649 fi
17650 ;;
17651
17652amigaos*)
17653 library_names_spec='$libname.ixlibrary $libname.a'
17654 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17655 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'
17656 ;;
17657
17658beos*)
17659 library_names_spec='${libname}${shared_ext}'
17660 dynamic_linker="$host_os ld.so"
17661 shlibpath_var=LIBRARY_PATH
17662 ;;
17663
17664bsdi[45]*)
17665 version_type=linux
17666 need_version=no
17667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17668 soname_spec='${libname}${release}${shared_ext}$major'
17669 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17670 shlibpath_var=LD_LIBRARY_PATH
17671 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17672 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17673 # the default ld.so.conf also contains /usr/contrib/lib and
17674 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17675 # libtool to hard-code these into programs
17676 ;;
17677
17678cygwin* | mingw* | pw32*)
17679 version_type=windows
17680 shrext_cmds=".dll"
17681 need_version=no
17682 need_lib_prefix=no
17683
17684 case $GCC,$host_os in
17685 yes,cygwin* | yes,mingw* | yes,pw32*)
17686 library_names_spec='$libname.dll.a'
17687 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17688 postinstall_cmds='base_file=`basename \${file}`~
17689 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17690 dldir=$destdir/`dirname \$dlpath`~
17691 test -d \$dldir || mkdir -p \$dldir~
17692 $install_prog $dir/$dlname \$dldir/$dlname~
17693 chmod a+x \$dldir/$dlname'
17694 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17695 dlpath=$dir/\$dldll~
17696 $rm \$dlpath'
17697 shlibpath_overrides_runpath=yes
17698
17699 case $host_os in
17700 cygwin*)
17701 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17702 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17703 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17704 ;;
17705 mingw*)
17706 # MinGW DLLs use traditional 'lib' prefix
17707 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17708 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17709 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17710 # It is most probably a Windows format PATH printed by
17711 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17712 # path with ; separators, and with drive letters. We can handle the
17713 # drive letters (cygwin fileutils understands them), so leave them,
17714 # especially as we might pass files found there to a mingw objdump,
17715 # which wouldn't understand a cygwinified path. Ahh.
17716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17717 else
17718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17719 fi
17720 ;;
17721 pw32*)
17722 # pw32 DLLs use 'pw' prefix rather than 'lib'
17723 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17724 ;;
17725 esac
17726 ;;
17727
17728 *)
17729 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17730 ;;
17731 esac
17732 dynamic_linker='Win32 ld.exe'
17733 # FIXME: first we should search . and the directory the executable is in
17734 shlibpath_var=PATH
17735 ;;
17736
17737darwin* | rhapsody*)
17738 dynamic_linker="$host_os dyld"
17739 version_type=darwin
17740 need_lib_prefix=no
17741 need_version=no
17742 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17743 soname_spec='${libname}${release}${major}$shared_ext'
17744 shlibpath_overrides_runpath=yes
17745 shlibpath_var=DYLD_LIBRARY_PATH
17746 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17747
17748 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17749 ;;
17750
17751dgux*)
17752 version_type=linux
17753 need_lib_prefix=no
17754 need_version=no
17755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17756 soname_spec='${libname}${release}${shared_ext}$major'
17757 shlibpath_var=LD_LIBRARY_PATH
17758 ;;
17759
17760freebsd1*)
17761 dynamic_linker=no
17762 ;;
17763
17764freebsd* | dragonfly*)
17765 # DragonFly does not have aout. When/if they implement a new
17766 # versioning mechanism, adjust this.
17767 if test -x /usr/bin/objformat; then
17768 objformat=`/usr/bin/objformat`
17769 else
17770 case $host_os in
17771 freebsd[123]*) objformat=aout ;;
17772 *) objformat=elf ;;
17773 esac
17774 fi
17775 version_type=freebsd-$objformat
17776 case $version_type in
17777 freebsd-elf*)
17778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17779 need_version=no
17780 need_lib_prefix=no
17781 ;;
17782 freebsd-*)
17783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17784 need_version=yes
17785 ;;
17786 esac
17787 shlibpath_var=LD_LIBRARY_PATH
17788 case $host_os in
17789 freebsd2*)
17790 shlibpath_overrides_runpath=yes
17791 ;;
17792 freebsd3.[01]* | freebsdelf3.[01]*)
17793 shlibpath_overrides_runpath=yes
17794 hardcode_into_libs=yes
17795 ;;
17796 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17797 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17798 shlibpath_overrides_runpath=no
17799 hardcode_into_libs=yes
17800 ;;
17801 *) # from 4.6 on, and DragonFly
17802 shlibpath_overrides_runpath=yes
17803 hardcode_into_libs=yes
17804 ;;
17805 esac
17806 ;;
17807
17808gnu*)
17809 version_type=linux
17810 need_lib_prefix=no
17811 need_version=no
17812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17813 soname_spec='${libname}${release}${shared_ext}$major'
17814 shlibpath_var=LD_LIBRARY_PATH
17815 hardcode_into_libs=yes
17816 ;;
17817
17818hpux9* | hpux10* | hpux11*)
17819 # Give a soname corresponding to the major version so that dld.sl refuses to
17820 # link against other versions.
17821 version_type=sunos
17822 need_lib_prefix=no
17823 need_version=no
17824 case $host_cpu in
17825 ia64*)
17826 shrext_cmds='.so'
17827 hardcode_into_libs=yes
17828 dynamic_linker="$host_os dld.so"
17829 shlibpath_var=LD_LIBRARY_PATH
17830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17832 soname_spec='${libname}${release}${shared_ext}$major'
17833 if test "X$HPUX_IA64_MODE" = X32; then
17834 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17835 else
17836 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17837 fi
17838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17839 ;;
17840 hppa*64*)
17841 shrext_cmds='.sl'
17842 hardcode_into_libs=yes
17843 dynamic_linker="$host_os dld.sl"
17844 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17847 soname_spec='${libname}${release}${shared_ext}$major'
17848 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17850 ;;
17851 *)
17852 shrext_cmds='.sl'
17853 dynamic_linker="$host_os dld.sl"
17854 shlibpath_var=SHLIB_PATH
17855 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857 soname_spec='${libname}${release}${shared_ext}$major'
17858 ;;
17859 esac
17860 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17861 postinstall_cmds='chmod 555 $lib'
17862 ;;
17863
17864interix[3-9]*)
17865 version_type=linux
17866 need_lib_prefix=no
17867 need_version=no
17868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17869 soname_spec='${libname}${release}${shared_ext}$major'
17870 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17871 shlibpath_var=LD_LIBRARY_PATH
17872 shlibpath_overrides_runpath=no
17873 hardcode_into_libs=yes
17874 ;;
17875
17876irix5* | irix6* | nonstopux*)
17877 case $host_os in
17878 nonstopux*) version_type=nonstopux ;;
17879 *)
17880 if test "$lt_cv_prog_gnu_ld" = yes; then
17881 version_type=linux
17882 else
17883 version_type=irix
17884 fi ;;
17885 esac
17886 need_lib_prefix=no
17887 need_version=no
17888 soname_spec='${libname}${release}${shared_ext}$major'
17889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17890 case $host_os in
17891 irix5* | nonstopux*)
17892 libsuff= shlibsuff=
17893 ;;
17894 *)
17895 case $LD in # libtool.m4 will add one of these switches to LD
17896 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17897 libsuff= shlibsuff= libmagic=32-bit;;
17898 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17899 libsuff=32 shlibsuff=N32 libmagic=N32;;
17900 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17901 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17902 *) libsuff= shlibsuff= libmagic=never-match;;
17903 esac
17904 ;;
17905 esac
17906 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17907 shlibpath_overrides_runpath=no
17908 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17909 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17910 hardcode_into_libs=yes
17911 ;;
17912
17913# No shared lib support for Linux oldld, aout, or coff.
17914linux*oldld* | linux*aout* | linux*coff*)
17915 dynamic_linker=no
17916 ;;
17917
17918# This must be Linux ELF.
17919linux* | k*bsd*-gnu)
17920 version_type=linux
17921 need_lib_prefix=no
17922 need_version=no
17923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17924 soname_spec='${libname}${release}${shared_ext}$major'
17925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17926 shlibpath_var=LD_LIBRARY_PATH
17927 shlibpath_overrides_runpath=no
17928 # This implies no fast_install, which is unacceptable.
17929 # Some rework will be needed to allow for fast_install
17930 # before this can be enabled.
17931 hardcode_into_libs=yes
17932
17933 # Append ld.so.conf contents to the search path
17934 if test -f /etc/ld.so.conf; then
17935 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' ' '`
17936 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17937 fi
17938
17939 # We used to test for /lib/ld.so.1 and disable shared libraries on
17940 # powerpc, because MkLinux only supported shared libraries with the
17941 # GNU dynamic linker. Since this was broken with cross compilers,
17942 # most powerpc-linux boxes support dynamic linking these days and
17943 # people can always --disable-shared, the test was removed, and we
17944 # assume the GNU/Linux dynamic linker is in use.
17945 dynamic_linker='GNU/Linux ld.so'
17946 ;;
17947
17948netbsdelf*-gnu)
17949 version_type=linux
17950 need_lib_prefix=no
17951 need_version=no
17952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17953 soname_spec='${libname}${release}${shared_ext}$major'
17954 shlibpath_var=LD_LIBRARY_PATH
17955 shlibpath_overrides_runpath=no
17956 hardcode_into_libs=yes
17957 dynamic_linker='NetBSD ld.elf_so'
17958 ;;
17959
17960netbsd*)
17961 version_type=sunos
17962 need_lib_prefix=no
17963 need_version=no
17964 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17967 dynamic_linker='NetBSD (a.out) ld.so'
17968 else
17969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17970 soname_spec='${libname}${release}${shared_ext}$major'
17971 dynamic_linker='NetBSD ld.elf_so'
17972 fi
17973 shlibpath_var=LD_LIBRARY_PATH
17974 shlibpath_overrides_runpath=yes
17975 hardcode_into_libs=yes
17976 ;;
17977
17978newsos6)
17979 version_type=linux
17980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17981 shlibpath_var=LD_LIBRARY_PATH
17982 shlibpath_overrides_runpath=yes
17983 ;;
17984
17985nto-qnx*)
17986 version_type=linux
17987 need_lib_prefix=no
17988 need_version=no
17989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17990 soname_spec='${libname}${release}${shared_ext}$major'
17991 shlibpath_var=LD_LIBRARY_PATH
17992 shlibpath_overrides_runpath=yes
17993 ;;
17994
17995openbsd*)
17996 version_type=sunos
17997 sys_lib_dlsearch_path_spec="/usr/lib"
17998 need_lib_prefix=no
17999 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18000 case $host_os in
18001 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18002 *) need_version=no ;;
18003 esac
18004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18006 shlibpath_var=LD_LIBRARY_PATH
18007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18008 case $host_os in
18009 openbsd2.[89] | openbsd2.[89].*)
18010 shlibpath_overrides_runpath=no
18011 ;;
18012 *)
18013 shlibpath_overrides_runpath=yes
18014 ;;
18015 esac
18016 else
18017 shlibpath_overrides_runpath=yes
18018 fi
18019 ;;
18020
18021os2*)
18022 libname_spec='$name'
18023 shrext_cmds=".dll"
18024 need_lib_prefix=no
18025 library_names_spec='$libname${shared_ext} $libname.a'
18026 dynamic_linker='OS/2 ld.exe'
18027 shlibpath_var=LIBPATH
18028 ;;
18029
18030osf3* | osf4* | osf5*)
18031 version_type=osf
18032 need_lib_prefix=no
18033 need_version=no
18034 soname_spec='${libname}${release}${shared_ext}$major'
18035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18036 shlibpath_var=LD_LIBRARY_PATH
18037 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18038 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18039 ;;
18040
18041rdos*)
18042 dynamic_linker=no
18043 ;;
18044
18045solaris*)
18046 version_type=linux
18047 need_lib_prefix=no
18048 need_version=no
18049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18050 soname_spec='${libname}${release}${shared_ext}$major'
18051 shlibpath_var=LD_LIBRARY_PATH
18052 shlibpath_overrides_runpath=yes
18053 hardcode_into_libs=yes
18054 # ldd complains unless libraries are executable
18055 postinstall_cmds='chmod +x $lib'
18056 ;;
18057
18058sunos4*)
18059 version_type=sunos
18060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18061 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18062 shlibpath_var=LD_LIBRARY_PATH
18063 shlibpath_overrides_runpath=yes
18064 if test "$with_gnu_ld" = yes; then
18065 need_lib_prefix=no
18066 fi
18067 need_version=yes
18068 ;;
18069
18070sysv4 | sysv4.3*)
18071 version_type=linux
18072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18073 soname_spec='${libname}${release}${shared_ext}$major'
18074 shlibpath_var=LD_LIBRARY_PATH
18075 case $host_vendor in
18076 sni)
18077 shlibpath_overrides_runpath=no
18078 need_lib_prefix=no
18079 export_dynamic_flag_spec='${wl}-Blargedynsym'
18080 runpath_var=LD_RUN_PATH
18081 ;;
18082 siemens)
18083 need_lib_prefix=no
18084 ;;
18085 motorola)
18086 need_lib_prefix=no
18087 need_version=no
18088 shlibpath_overrides_runpath=no
18089 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18090 ;;
18091 esac
18092 ;;
18093
18094sysv4*MP*)
18095 if test -d /usr/nec ;then
18096 version_type=linux
18097 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18098 soname_spec='$libname${shared_ext}.$major'
18099 shlibpath_var=LD_LIBRARY_PATH
18100 fi
18101 ;;
18102
18103sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18104 version_type=freebsd-elf
18105 need_lib_prefix=no
18106 need_version=no
18107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18108 soname_spec='${libname}${release}${shared_ext}$major'
18109 shlibpath_var=LD_LIBRARY_PATH
18110 hardcode_into_libs=yes
18111 if test "$with_gnu_ld" = yes; then
18112 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18113 shlibpath_overrides_runpath=no
18114 else
18115 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18116 shlibpath_overrides_runpath=yes
18117 case $host_os in
18118 sco3.2v5*)
18119 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18120 ;;
18121 esac
18122 fi
18123 sys_lib_dlsearch_path_spec='/usr/lib'
18124 ;;
18125
18126uts4*)
18127 version_type=linux
18128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18129 soname_spec='${libname}${release}${shared_ext}$major'
18130 shlibpath_var=LD_LIBRARY_PATH
18131 ;;
18132
18133*)
18134 dynamic_linker=no
18135 ;;
18136esac
18137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18138$as_echo "$dynamic_linker" >&6; }
18139test "$dynamic_linker" = no && can_build_shared=no
18140
18141if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
18142 $as_echo_n "(cached) " >&6
18143else
18144 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18145fi
18146
18147sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18148if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
18149 $as_echo_n "(cached) " >&6
18150else
18151 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18152fi
18153
18154sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18155
18156variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18157if test "$GCC" = yes; then
18158 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18159fi
18160
18161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18162$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18163hardcode_action_GCJ=
18164if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18165 test -n "$runpath_var_GCJ" || \
18166 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18167
18168 # We can hardcode non-existant directories.
18169 if test "$hardcode_direct_GCJ" != no &&
18170 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18171 # have to relink, otherwise we might link with an installed library
18172 # when we should be linking with a yet-to-be-installed one
18173 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18174 test "$hardcode_minus_L_GCJ" != no; then
18175 # Linking always hardcodes the temporary library directory.
18176 hardcode_action_GCJ=relink
18177 else
18178 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18179 hardcode_action_GCJ=immediate
18180 fi
18181else
18182 # We cannot hardcode anything, or else we can only hardcode existing
18183 # directories.
18184 hardcode_action_GCJ=unsupported
18185fi
18186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18187$as_echo "$hardcode_action_GCJ" >&6; }
18188
18189if test "$hardcode_action_GCJ" = relink; then
18190 # Fast installation is not supported
18191 enable_fast_install=no
18192elif test "$shlibpath_overrides_runpath" = yes ||
18193 test "$enable_shared" = no; then
18194 # Fast installation is not necessary
18195 enable_fast_install=needless
18196fi
18197
18198
18199# The else clause should only fire when bootstrapping the
18200# libtool distribution, otherwise you forgot to ship ltmain.sh
18201# with your package, and you will get complaints that there are
18202# no rules to generate ltmain.sh.
18203if test -f "$ltmain"; then
18204 # See if we are running on zsh, and set the options which allow our commands through
18205 # without removal of \ escapes.
18206 if test -n "${ZSH_VERSION+set}" ; then
18207 setopt NO_GLOB_SUBST
18208 fi
18209 # Now quote all the things that may contain metacharacters while being
18210 # careful not to overquote the AC_SUBSTed values. We take copies of the
18211 # variables and quote the copies for generation of the libtool script.
18212 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18213 SED SHELL STRIP \
18214 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18215 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18216 deplibs_check_method reload_flag reload_cmds need_locks \
18217 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18218 lt_cv_sys_global_symbol_to_c_name_address \
18219 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18220 old_postinstall_cmds old_postuninstall_cmds \
18221 compiler_GCJ \
18222 CC_GCJ \
18223 LD_GCJ \
18224 lt_prog_compiler_wl_GCJ \
18225 lt_prog_compiler_pic_GCJ \
18226 lt_prog_compiler_static_GCJ \
18227 lt_prog_compiler_no_builtin_flag_GCJ \
18228 export_dynamic_flag_spec_GCJ \
18229 thread_safe_flag_spec_GCJ \
18230 whole_archive_flag_spec_GCJ \
18231 enable_shared_with_static_runtimes_GCJ \
18232 old_archive_cmds_GCJ \
18233 old_archive_from_new_cmds_GCJ \
18234 predep_objects_GCJ \
18235 postdep_objects_GCJ \
18236 predeps_GCJ \
18237 postdeps_GCJ \
18238 compiler_lib_search_path_GCJ \
18239 compiler_lib_search_dirs_GCJ \
18240 archive_cmds_GCJ \
18241 archive_expsym_cmds_GCJ \
18242 postinstall_cmds_GCJ \
18243 postuninstall_cmds_GCJ \
18244 old_archive_from_expsyms_cmds_GCJ \
18245 allow_undefined_flag_GCJ \
18246 no_undefined_flag_GCJ \
18247 export_symbols_cmds_GCJ \
18248 hardcode_libdir_flag_spec_GCJ \
18249 hardcode_libdir_flag_spec_ld_GCJ \
18250 hardcode_libdir_separator_GCJ \
18251 hardcode_automatic_GCJ \
18252 module_cmds_GCJ \
18253 module_expsym_cmds_GCJ \
18254 lt_cv_prog_compiler_c_o_GCJ \
18255 fix_srcfile_path_GCJ \
18256 exclude_expsyms_GCJ \
18257 include_expsyms_GCJ; do
18258
18259 case $var in
18260 old_archive_cmds_GCJ | \
18261 old_archive_from_new_cmds_GCJ | \
18262 archive_cmds_GCJ | \
18263 archive_expsym_cmds_GCJ | \
18264 module_cmds_GCJ | \
18265 module_expsym_cmds_GCJ | \
18266 old_archive_from_expsyms_cmds_GCJ | \
18267 export_symbols_cmds_GCJ | \
18268 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18269 postinstall_cmds | postuninstall_cmds | \
18270 old_postinstall_cmds | old_postuninstall_cmds | \
18271 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18272 # Double-quote double-evaled strings.
18273 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18274 ;;
18275 *)
18276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18277 ;;
18278 esac
18279 done
18280
18281 case $lt_echo in
18282 *'\$0 --fallback-echo"')
18283 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18284 ;;
18285 esac
18286
18287cfgfile="$ofile"
18288
18289 cat <<__EOF__ >> "$cfgfile"
18290# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18291
18292# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18293
18294# Shell to use when invoking shell scripts.
18295SHELL=$lt_SHELL
18296
18297# Whether or not to build shared libraries.
18298build_libtool_libs=$enable_shared
18299
18300# Whether or not to build static libraries.
18301build_old_libs=$enable_static
18302
18303# Whether or not to add -lc for building shared libraries.
18304build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18305
18306# Whether or not to disallow shared libs when runtime libs are static
18307allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18308
18309# Whether or not to optimize for fast installation.
18310fast_install=$enable_fast_install
18311
18312# The host system.
18313host_alias=$host_alias
18314host=$host
18315host_os=$host_os
18316
18317# The build system.
18318build_alias=$build_alias
18319build=$build
18320build_os=$build_os
18321
18322# An echo program that does not interpret backslashes.
18323echo=$lt_echo
18324
18325# The archiver.
18326AR=$lt_AR
18327AR_FLAGS=$lt_AR_FLAGS
18328
18329# A C compiler.
18330LTCC=$lt_LTCC
18331
18332# LTCC compiler flags.
18333LTCFLAGS=$lt_LTCFLAGS
18334
18335# A language-specific compiler.
18336CC=$lt_compiler_GCJ
18337
18338# Is the compiler the GNU C compiler?
18339with_gcc=$GCC_GCJ
18340
18341# An ERE matcher.
18342EGREP=$lt_EGREP
18343
18344# The linker used to build libraries.
18345LD=$lt_LD_GCJ
18346
18347# Whether we need hard or soft links.
18348LN_S=$lt_LN_S
18349
18350# A BSD-compatible nm program.
18351NM=$lt_NM
18352
18353# A symbol stripping program
18354STRIP=$lt_STRIP
18355
18356# Used to examine libraries when file_magic_cmd begins "file"
18357MAGIC_CMD=$MAGIC_CMD
18358
18359# Used on cygwin: DLL creation program.
18360DLLTOOL="$DLLTOOL"
18361
18362# Used on cygwin: object dumper.
18363OBJDUMP="$OBJDUMP"
18364
18365# Used on cygwin: assembler.
18366AS="$AS"
18367
18368# The name of the directory that contains temporary libtool files.
18369objdir=$objdir
18370
18371# How to create reloadable object files.
18372reload_flag=$lt_reload_flag
18373reload_cmds=$lt_reload_cmds
18374
18375# How to pass a linker flag through the compiler.
18376wl=$lt_lt_prog_compiler_wl_GCJ
18377
18378# Object file suffix (normally "o").
18379objext="$ac_objext"
18380
18381# Old archive suffix (normally "a").
18382libext="$libext"
18383
18384# Shared library suffix (normally ".so").
18385shrext_cmds='$shrext_cmds'
18386
18387# Executable file suffix (normally "").
18388exeext="$exeext"
18389
18390# Additional compiler flags for building library objects.
18391pic_flag=$lt_lt_prog_compiler_pic_GCJ
18392pic_mode=$pic_mode
18393
18394# What is the maximum length of a command?
18395max_cmd_len=$lt_cv_sys_max_cmd_len
18396
18397# Does compiler simultaneously support -c and -o options?
18398compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18399
18400# Must we lock files when doing compilation?
18401need_locks=$lt_need_locks
18402
18403# Do we need the lib prefix for modules?
18404need_lib_prefix=$need_lib_prefix
18405
18406# Do we need a version for libraries?
18407need_version=$need_version
18408
18409# Whether dlopen is supported.
18410dlopen_support=$enable_dlopen
18411
18412# Whether dlopen of programs is supported.
18413dlopen_self=$enable_dlopen_self
18414
18415# Whether dlopen of statically linked programs is supported.
18416dlopen_self_static=$enable_dlopen_self_static
18417
18418# Compiler flag to prevent dynamic linking.
18419link_static_flag=$lt_lt_prog_compiler_static_GCJ
18420
18421# Compiler flag to turn off builtin functions.
18422no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18423
18424# Compiler flag to allow reflexive dlopens.
18425export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18426
18427# Compiler flag to generate shared objects directly from archives.
18428whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18429
18430# Compiler flag to generate thread-safe objects.
18431thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18432
18433# Library versioning type.
18434version_type=$version_type
18435
18436# Format of library name prefix.
18437libname_spec=$lt_libname_spec
18438
18439# List of archive names. First name is the real one, the rest are links.
18440# The last name is the one that the linker finds with -lNAME.
18441library_names_spec=$lt_library_names_spec
18442
18443# The coded name of the library, if different from the real name.
18444soname_spec=$lt_soname_spec
18445
18446# Commands used to build and install an old-style archive.
18447RANLIB=$lt_RANLIB
18448old_archive_cmds=$lt_old_archive_cmds_GCJ
18449old_postinstall_cmds=$lt_old_postinstall_cmds
18450old_postuninstall_cmds=$lt_old_postuninstall_cmds
18451
18452# Create an old-style archive from a shared archive.
18453old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18454
18455# Create a temporary old-style archive to link instead of a shared archive.
18456old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18457
18458# Commands used to build and install a shared archive.
18459archive_cmds=$lt_archive_cmds_GCJ
18460archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18461postinstall_cmds=$lt_postinstall_cmds
18462postuninstall_cmds=$lt_postuninstall_cmds
18463
18464# Commands used to build a loadable module (assumed same as above if empty)
18465module_cmds=$lt_module_cmds_GCJ
18466module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18467
18468# Commands to strip libraries.
18469old_striplib=$lt_old_striplib
18470striplib=$lt_striplib
18471
18472# Dependencies to place before the objects being linked to create a
18473# shared library.
18474predep_objects=$lt_predep_objects_GCJ
18475
18476# Dependencies to place after the objects being linked to create a
18477# shared library.
18478postdep_objects=$lt_postdep_objects_GCJ
18479
18480# Dependencies to place before the objects being linked to create a
18481# shared library.
18482predeps=$lt_predeps_GCJ
18483
18484# Dependencies to place after the objects being linked to create a
18485# shared library.
18486postdeps=$lt_postdeps_GCJ
18487
18488# The directories searched by this compiler when creating a shared
18489# library
18490compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18491
18492# The library search path used internally by the compiler when linking
18493# a shared library.
18494compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18495
18496# Method to check whether dependent libraries are shared objects.
18497deplibs_check_method=$lt_deplibs_check_method
18498
18499# Command to use when deplibs_check_method == file_magic.
18500file_magic_cmd=$lt_file_magic_cmd
18501
18502# Flag that allows shared libraries with undefined symbols to be built.
18503allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18504
18505# Flag that forces no undefined symbols.
18506no_undefined_flag=$lt_no_undefined_flag_GCJ
18507
18508# Commands used to finish a libtool library installation in a directory.
18509finish_cmds=$lt_finish_cmds
18510
18511# Same as above, but a single script fragment to be evaled but not shown.
18512finish_eval=$lt_finish_eval
18513
18514# Take the output of nm and produce a listing of raw symbols and C names.
18515global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18516
18517# Transform the output of nm in a proper C declaration
18518global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18519
18520# Transform the output of nm in a C name address pair
18521global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18522
18523# This is the shared library runtime path variable.
18524runpath_var=$runpath_var
18525
18526# This is the shared library path variable.
18527shlibpath_var=$shlibpath_var
18528
18529# Is shlibpath searched before the hard-coded library search path?
18530shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18531
18532# How to hardcode a shared library path into an executable.
18533hardcode_action=$hardcode_action_GCJ
18534
18535# Whether we should hardcode library paths into libraries.
18536hardcode_into_libs=$hardcode_into_libs
18537
18538# Flag to hardcode \$libdir into a binary during linking.
18539# This must work even if \$libdir does not exist.
18540hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18541
18542# If ld is used when linking, flag to hardcode \$libdir into
18543# a binary during linking. This must work even if \$libdir does
18544# not exist.
18545hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18546
18547# Whether we need a single -rpath flag with a separated argument.
18548hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18549
18550# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18551# resulting binary.
18552hardcode_direct=$hardcode_direct_GCJ
18553
18554# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18555# resulting binary.
18556hardcode_minus_L=$hardcode_minus_L_GCJ
18557
18558# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18559# the resulting binary.
18560hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18561
18562# Set to yes if building a shared library automatically hardcodes DIR into the library
18563# and all subsequent libraries and executables linked against it.
18564hardcode_automatic=$hardcode_automatic_GCJ
18565
18566# Variables whose values should be saved in libtool wrapper scripts and
18567# restored at relink time.
18568variables_saved_for_relink="$variables_saved_for_relink"
18569
18570# Whether libtool must link a program against all its dependency libraries.
18571link_all_deplibs=$link_all_deplibs_GCJ
18572
18573# Compile-time system search path for libraries
18574sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18575
18576# Run-time system search path for libraries
18577sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18578
18579# Fix the shell variable \$srcfile for the compiler.
18580fix_srcfile_path=$lt_fix_srcfile_path
18581
18582# Set to yes if exported symbols are required.
18583always_export_symbols=$always_export_symbols_GCJ
18584
18585# The commands to list exported symbols.
18586export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18587
18588# The commands to extract the exported symbol list from a shared archive.
18589extract_expsyms_cmds=$lt_extract_expsyms_cmds
18590
18591# Symbols that should not be listed in the preloaded symbols.
18592exclude_expsyms=$lt_exclude_expsyms_GCJ
18593
18594# Symbols that must always be exported.
18595include_expsyms=$lt_include_expsyms_GCJ
18596
18597# ### END LIBTOOL TAG CONFIG: $tagname
18598
18599__EOF__
18600
18601
18602else
18603 # If there is no Makefile yet, we rely on a make rule to execute
18604 # `config.status --recheck' to rerun these tests and create the
18605 # libtool script then.
18606 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18607 if test -f "$ltmain_in"; then
18608 test -f Makefile && make "$ltmain"
18609 fi
18610fi
18611
18612
18613ac_ext=c
18614ac_cpp='$CPP $CPPFLAGS'
18615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18617ac_compiler_gnu=$ac_cv_c_compiler_gnu
18618
18619CC="$lt_save_CC"
18620
18621 else
18622 tagname=""
18623 fi
18624 ;;
18625
18626 RC)
18627
18628
18629# Source file extension for RC test sources.
18630ac_ext=rc
18631
18632# Object file extension for compiled RC test sources.
18633objext=o
18634objext_RC=$objext
18635
18636# Code to be used in simple compile tests
18637lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18638
18639# Code to be used in simple link tests
18640lt_simple_link_test_code="$lt_simple_compile_test_code"
18641
18642# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18643
18644# If no C compiler was specified, use CC.
18645LTCC=${LTCC-"$CC"}
18646
18647# If no C compiler flags were specified, use CFLAGS.
18648LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18649
18650# Allow CC to be a program name with arguments.
18651compiler=$CC
18652
18653
18654# save warnings/boilerplate of simple test code
18655ac_outfile=conftest.$ac_objext
18656echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18657eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18658_lt_compiler_boilerplate=`cat conftest.err`
18659$rm conftest*
18660
18661ac_outfile=conftest.$ac_objext
18662echo "$lt_simple_link_test_code" >conftest.$ac_ext
18663eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18664_lt_linker_boilerplate=`cat conftest.err`
18665$rm -r conftest*
18666
18667
18668# Allow CC to be a program name with arguments.
18669lt_save_CC="$CC"
18670CC=${RC-"windres"}
18671compiler=$CC
18672compiler_RC=$CC
18673for cc_temp in $compiler""; do
18674 case $cc_temp in
18675 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18676 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18677 \-*) ;;
18678 *) break;;
18679 esac
18680done
18681cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18682
18683lt_cv_prog_compiler_c_o_RC=yes
18684
18685# The else clause should only fire when bootstrapping the
18686# libtool distribution, otherwise you forgot to ship ltmain.sh
18687# with your package, and you will get complaints that there are
18688# no rules to generate ltmain.sh.
18689if test -f "$ltmain"; then
18690 # See if we are running on zsh, and set the options which allow our commands through
18691 # without removal of \ escapes.
18692 if test -n "${ZSH_VERSION+set}" ; then
18693 setopt NO_GLOB_SUBST
18694 fi
18695 # Now quote all the things that may contain metacharacters while being
18696 # careful not to overquote the AC_SUBSTed values. We take copies of the
18697 # variables and quote the copies for generation of the libtool script.
18698 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18699 SED SHELL STRIP \
18700 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18701 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18702 deplibs_check_method reload_flag reload_cmds need_locks \
18703 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18704 lt_cv_sys_global_symbol_to_c_name_address \
18705 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18706 old_postinstall_cmds old_postuninstall_cmds \
18707 compiler_RC \
18708 CC_RC \
18709 LD_RC \
18710 lt_prog_compiler_wl_RC \
18711 lt_prog_compiler_pic_RC \
18712 lt_prog_compiler_static_RC \
18713 lt_prog_compiler_no_builtin_flag_RC \
18714 export_dynamic_flag_spec_RC \
18715 thread_safe_flag_spec_RC \
18716 whole_archive_flag_spec_RC \
18717 enable_shared_with_static_runtimes_RC \
18718 old_archive_cmds_RC \
18719 old_archive_from_new_cmds_RC \
18720 predep_objects_RC \
18721 postdep_objects_RC \
18722 predeps_RC \
18723 postdeps_RC \
18724 compiler_lib_search_path_RC \
18725 compiler_lib_search_dirs_RC \
18726 archive_cmds_RC \
18727 archive_expsym_cmds_RC \
18728 postinstall_cmds_RC \
18729 postuninstall_cmds_RC \
18730 old_archive_from_expsyms_cmds_RC \
18731 allow_undefined_flag_RC \
18732 no_undefined_flag_RC \
18733 export_symbols_cmds_RC \
18734 hardcode_libdir_flag_spec_RC \
18735 hardcode_libdir_flag_spec_ld_RC \
18736 hardcode_libdir_separator_RC \
18737 hardcode_automatic_RC \
18738 module_cmds_RC \
18739 module_expsym_cmds_RC \
18740 lt_cv_prog_compiler_c_o_RC \
18741 fix_srcfile_path_RC \
18742 exclude_expsyms_RC \
18743 include_expsyms_RC; do
18744
18745 case $var in
18746 old_archive_cmds_RC | \
18747 old_archive_from_new_cmds_RC | \
18748 archive_cmds_RC | \
18749 archive_expsym_cmds_RC | \
18750 module_cmds_RC | \
18751 module_expsym_cmds_RC | \
18752 old_archive_from_expsyms_cmds_RC | \
18753 export_symbols_cmds_RC | \
18754 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18755 postinstall_cmds | postuninstall_cmds | \
18756 old_postinstall_cmds | old_postuninstall_cmds | \
18757 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18758 # Double-quote double-evaled strings.
18759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18760 ;;
18761 *)
18762 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18763 ;;
18764 esac
18765 done
18766
18767 case $lt_echo in
18768 *'\$0 --fallback-echo"')
18769 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18770 ;;
18771 esac
18772
18773cfgfile="$ofile"
18774
18775 cat <<__EOF__ >> "$cfgfile"
18776# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18777
18778# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18779
18780# Shell to use when invoking shell scripts.
18781SHELL=$lt_SHELL
18782
18783# Whether or not to build shared libraries.
18784build_libtool_libs=$enable_shared
18785
18786# Whether or not to build static libraries.
18787build_old_libs=$enable_static
18788
18789# Whether or not to add -lc for building shared libraries.
18790build_libtool_need_lc=$archive_cmds_need_lc_RC
18791
18792# Whether or not to disallow shared libs when runtime libs are static
18793allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18794
18795# Whether or not to optimize for fast installation.
18796fast_install=$enable_fast_install
18797
18798# The host system.
18799host_alias=$host_alias
18800host=$host
18801host_os=$host_os
18802
18803# The build system.
18804build_alias=$build_alias
18805build=$build
18806build_os=$build_os
18807
18808# An echo program that does not interpret backslashes.
18809echo=$lt_echo
18810
18811# The archiver.
18812AR=$lt_AR
18813AR_FLAGS=$lt_AR_FLAGS
18814
18815# A C compiler.
18816LTCC=$lt_LTCC
18817
18818# LTCC compiler flags.
18819LTCFLAGS=$lt_LTCFLAGS
18820
18821# A language-specific compiler.
18822CC=$lt_compiler_RC
18823
18824# Is the compiler the GNU C compiler?
18825with_gcc=$GCC_RC
18826
18827# An ERE matcher.
18828EGREP=$lt_EGREP
18829
18830# The linker used to build libraries.
18831LD=$lt_LD_RC
18832
18833# Whether we need hard or soft links.
18834LN_S=$lt_LN_S
18835
18836# A BSD-compatible nm program.
18837NM=$lt_NM
18838
18839# A symbol stripping program
18840STRIP=$lt_STRIP
18841
18842# Used to examine libraries when file_magic_cmd begins "file"
18843MAGIC_CMD=$MAGIC_CMD
18844
18845# Used on cygwin: DLL creation program.
18846DLLTOOL="$DLLTOOL"
18847
18848# Used on cygwin: object dumper.
18849OBJDUMP="$OBJDUMP"
18850
18851# Used on cygwin: assembler.
18852AS="$AS"
18853
18854# The name of the directory that contains temporary libtool files.
18855objdir=$objdir
18856
18857# How to create reloadable object files.
18858reload_flag=$lt_reload_flag
18859reload_cmds=$lt_reload_cmds
18860
18861# How to pass a linker flag through the compiler.
18862wl=$lt_lt_prog_compiler_wl_RC
18863
18864# Object file suffix (normally "o").
18865objext="$ac_objext"
18866
18867# Old archive suffix (normally "a").
18868libext="$libext"
18869
18870# Shared library suffix (normally ".so").
18871shrext_cmds='$shrext_cmds'
18872
18873# Executable file suffix (normally "").
18874exeext="$exeext"
18875
18876# Additional compiler flags for building library objects.
18877pic_flag=$lt_lt_prog_compiler_pic_RC
18878pic_mode=$pic_mode
18879
18880# What is the maximum length of a command?
18881max_cmd_len=$lt_cv_sys_max_cmd_len
18882
18883# Does compiler simultaneously support -c and -o options?
18884compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18885
18886# Must we lock files when doing compilation?
18887need_locks=$lt_need_locks
18888
18889# Do we need the lib prefix for modules?
18890need_lib_prefix=$need_lib_prefix
18891
18892# Do we need a version for libraries?
18893need_version=$need_version
18894
18895# Whether dlopen is supported.
18896dlopen_support=$enable_dlopen
18897
18898# Whether dlopen of programs is supported.
18899dlopen_self=$enable_dlopen_self
18900
18901# Whether dlopen of statically linked programs is supported.
18902dlopen_self_static=$enable_dlopen_self_static
18903
18904# Compiler flag to prevent dynamic linking.
18905link_static_flag=$lt_lt_prog_compiler_static_RC
18906
18907# Compiler flag to turn off builtin functions.
18908no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18909
18910# Compiler flag to allow reflexive dlopens.
18911export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18912
18913# Compiler flag to generate shared objects directly from archives.
18914whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18915
18916# Compiler flag to generate thread-safe objects.
18917thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18918
18919# Library versioning type.
18920version_type=$version_type
18921
18922# Format of library name prefix.
18923libname_spec=$lt_libname_spec
18924
18925# List of archive names. First name is the real one, the rest are links.
18926# The last name is the one that the linker finds with -lNAME.
18927library_names_spec=$lt_library_names_spec
18928
18929# The coded name of the library, if different from the real name.
18930soname_spec=$lt_soname_spec
18931
18932# Commands used to build and install an old-style archive.
18933RANLIB=$lt_RANLIB
18934old_archive_cmds=$lt_old_archive_cmds_RC
18935old_postinstall_cmds=$lt_old_postinstall_cmds
18936old_postuninstall_cmds=$lt_old_postuninstall_cmds
18937
18938# Create an old-style archive from a shared archive.
18939old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18940
18941# Create a temporary old-style archive to link instead of a shared archive.
18942old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18943
18944# Commands used to build and install a shared archive.
18945archive_cmds=$lt_archive_cmds_RC
18946archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18947postinstall_cmds=$lt_postinstall_cmds
18948postuninstall_cmds=$lt_postuninstall_cmds
18949
18950# Commands used to build a loadable module (assumed same as above if empty)
18951module_cmds=$lt_module_cmds_RC
18952module_expsym_cmds=$lt_module_expsym_cmds_RC
18953
18954# Commands to strip libraries.
18955old_striplib=$lt_old_striplib
18956striplib=$lt_striplib
18957
18958# Dependencies to place before the objects being linked to create a
18959# shared library.
18960predep_objects=$lt_predep_objects_RC
18961
18962# Dependencies to place after the objects being linked to create a
18963# shared library.
18964postdep_objects=$lt_postdep_objects_RC
18965
18966# Dependencies to place before the objects being linked to create a
18967# shared library.
18968predeps=$lt_predeps_RC
18969
18970# Dependencies to place after the objects being linked to create a
18971# shared library.
18972postdeps=$lt_postdeps_RC
18973
18974# The directories searched by this compiler when creating a shared
18975# library
18976compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
18977
18978# The library search path used internally by the compiler when linking
18979# a shared library.
18980compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18981
18982# Method to check whether dependent libraries are shared objects.
18983deplibs_check_method=$lt_deplibs_check_method
18984
18985# Command to use when deplibs_check_method == file_magic.
18986file_magic_cmd=$lt_file_magic_cmd
18987
18988# Flag that allows shared libraries with undefined symbols to be built.
18989allow_undefined_flag=$lt_allow_undefined_flag_RC
18990
18991# Flag that forces no undefined symbols.
18992no_undefined_flag=$lt_no_undefined_flag_RC
18993
18994# Commands used to finish a libtool library installation in a directory.
18995finish_cmds=$lt_finish_cmds
18996
18997# Same as above, but a single script fragment to be evaled but not shown.
18998finish_eval=$lt_finish_eval
18999
19000# Take the output of nm and produce a listing of raw symbols and C names.
19001global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19002
19003# Transform the output of nm in a proper C declaration
19004global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19005
19006# Transform the output of nm in a C name address pair
19007global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19008
19009# This is the shared library runtime path variable.
19010runpath_var=$runpath_var
19011
19012# This is the shared library path variable.
19013shlibpath_var=$shlibpath_var
19014
19015# Is shlibpath searched before the hard-coded library search path?
19016shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19017
19018# How to hardcode a shared library path into an executable.
19019hardcode_action=$hardcode_action_RC
19020
19021# Whether we should hardcode library paths into libraries.
19022hardcode_into_libs=$hardcode_into_libs
19023
19024# Flag to hardcode \$libdir into a binary during linking.
19025# This must work even if \$libdir does not exist.
19026hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19027
19028# If ld is used when linking, flag to hardcode \$libdir into
19029# a binary during linking. This must work even if \$libdir does
19030# not exist.
19031hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19032
19033# Whether we need a single -rpath flag with a separated argument.
19034hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19035
19036# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19037# resulting binary.
19038hardcode_direct=$hardcode_direct_RC
19039
19040# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19041# resulting binary.
19042hardcode_minus_L=$hardcode_minus_L_RC
19043
19044# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19045# the resulting binary.
19046hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19047
19048# Set to yes if building a shared library automatically hardcodes DIR into the library
19049# and all subsequent libraries and executables linked against it.
19050hardcode_automatic=$hardcode_automatic_RC
19051
19052# Variables whose values should be saved in libtool wrapper scripts and
19053# restored at relink time.
19054variables_saved_for_relink="$variables_saved_for_relink"
19055
19056# Whether libtool must link a program against all its dependency libraries.
19057link_all_deplibs=$link_all_deplibs_RC
19058
19059# Compile-time system search path for libraries
19060sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19061
19062# Run-time system search path for libraries
19063sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19064
19065# Fix the shell variable \$srcfile for the compiler.
19066fix_srcfile_path=$lt_fix_srcfile_path
19067
19068# Set to yes if exported symbols are required.
19069always_export_symbols=$always_export_symbols_RC
19070
19071# The commands to list exported symbols.
19072export_symbols_cmds=$lt_export_symbols_cmds_RC
19073
19074# The commands to extract the exported symbol list from a shared archive.
19075extract_expsyms_cmds=$lt_extract_expsyms_cmds
19076
19077# Symbols that should not be listed in the preloaded symbols.
19078exclude_expsyms=$lt_exclude_expsyms_RC
19079
19080# Symbols that must always be exported.
19081include_expsyms=$lt_include_expsyms_RC
19082
19083# ### END LIBTOOL TAG CONFIG: $tagname
19084
19085__EOF__
19086
19087
19088else
19089 # If there is no Makefile yet, we rely on a make rule to execute
19090 # `config.status --recheck' to rerun these tests and create the
19091 # libtool script then.
19092 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19093 if test -f "$ltmain_in"; then
19094 test -f Makefile && make "$ltmain"
19095 fi
19096fi
19097
19098
19099ac_ext=c
19100ac_cpp='$CPP $CPPFLAGS'
19101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19103ac_compiler_gnu=$ac_cv_c_compiler_gnu
19104
19105CC="$lt_save_CC"
19106
19107 ;;
19108
19109 *)
19110 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19111 ;;
19112 esac
19113
19114 # Append the new tag name to the list of available tags.
19115 if test -n "$tagname" ; then
19116 available_tags="$available_tags $tagname"
19117 fi
19118 fi
19119 done
19120 IFS="$lt_save_ifs"
19121
19122 # Now substitute the updated list of available tags.
19123 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19124 mv "${ofile}T" "$ofile"
19125 chmod +x "$ofile"
19126 else
19127 rm -f "${ofile}T"
19128 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19129 fi
19130fi
19131
19132
19133
19134# This can be used to rebuild libtool when needed
19135LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19136
19137# Always use our own libtool.
19138LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19139
19140# Prevent multiple expansion
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161if test -n "$ac_tool_prefix"; then
19162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19163set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19165$as_echo_n "checking for $ac_word... " >&6; }
19166if test "${ac_cv_prog_RANLIB+set}" = set; then :
19167 $as_echo_n "(cached) " >&6
19168else
19169 if test -n "$RANLIB"; then
19170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19171else
19172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19173for as_dir in $PATH
19174do
19175 IFS=$as_save_IFS
19176 test -z "$as_dir" && as_dir=.
19177 for ac_exec_ext in '' $ac_executable_extensions; do
19178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19181 break 2
19182 fi
19183done
19184 done
19185IFS=$as_save_IFS
19186
19187fi
19188fi
19189RANLIB=$ac_cv_prog_RANLIB
19190if test -n "$RANLIB"; then
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19192$as_echo "$RANLIB" >&6; }
19193else
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19195$as_echo "no" >&6; }
19196fi
19197
19198
19199fi
19200if test -z "$ac_cv_prog_RANLIB"; then
19201 ac_ct_RANLIB=$RANLIB
19202 # Extract the first word of "ranlib", so it can be a program name with args.
19203set dummy ranlib; ac_word=$2
19204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19205$as_echo_n "checking for $ac_word... " >&6; }
19206if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
19207 $as_echo_n "(cached) " >&6
19208else
19209 if test -n "$ac_ct_RANLIB"; then
19210 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19211else
19212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19213for as_dir in $PATH
19214do
19215 IFS=$as_save_IFS
19216 test -z "$as_dir" && as_dir=.
19217 for ac_exec_ext in '' $ac_executable_extensions; do
19218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19219 ac_cv_prog_ac_ct_RANLIB="ranlib"
19220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19221 break 2
19222 fi
19223done
19224 done
19225IFS=$as_save_IFS
19226
19227fi
19228fi
19229ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19230if test -n "$ac_ct_RANLIB"; then
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19232$as_echo "$ac_ct_RANLIB" >&6; }
19233else
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19235$as_echo "no" >&6; }
19236fi
19237
19238 if test "x$ac_ct_RANLIB" = x; then
19239 RANLIB=":"
19240 else
19241 case $cross_compiling:$ac_tool_warned in
19242yes:)
19243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19245ac_tool_warned=yes ;;
19246esac
19247 RANLIB=$ac_ct_RANLIB
19248 fi
19249else
19250 RANLIB="$ac_cv_prog_RANLIB"
19251fi
19252
19253
19254# Checks for libraries.
19255#AC_CHECK_LIB([rt], [mq_open])
19256
19257# Checks for header files.
19258ac_header_dirent=no
19259for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19260 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19262$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19263if eval "test \"\${$as_ac_Header+set}\"" = set; then :
19264 $as_echo_n "(cached) " >&6
19265else
19266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19267/* end confdefs.h. */
19268#include <sys/types.h>
19269#include <$ac_hdr>
19270
19271int
19272main ()
19273{
19274if ((DIR *) 0)
19275return 0;
19276 ;
19277 return 0;
19278}
19279_ACEOF
19280if ac_fn_c_try_compile "$LINENO"; then :
19281 eval "$as_ac_Header=yes"
19282else
19283 eval "$as_ac_Header=no"
19284fi
19285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19286fi
19287eval ac_res=\$$as_ac_Header
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19289$as_echo "$ac_res" >&6; }
19290if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19291 cat >>confdefs.h <<_ACEOF
19292@%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19293_ACEOF
19294
19295ac_header_dirent=$ac_hdr; break
19296fi
19297
19298done
19299# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19300if test $ac_header_dirent = dirent.h; then
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19302$as_echo_n "checking for library containing opendir... " >&6; }
19303if test "${ac_cv_search_opendir+set}" = set; then :
19304 $as_echo_n "(cached) " >&6
19305else
19306 ac_func_search_save_LIBS=$LIBS
19307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19308/* end confdefs.h. */
19309
19310/* Override any GCC internal prototype to avoid an error.
19311 Use char because int might match the return type of a GCC
19312 builtin and then its argument prototype would still apply. */
19313#ifdef __cplusplus
19314extern "C"
19315#endif
19316char opendir ();
19317int
19318main ()
19319{
19320return opendir ();
19321 ;
19322 return 0;
19323}
19324_ACEOF
19325for ac_lib in '' dir; do
19326 if test -z "$ac_lib"; then
19327 ac_res="none required"
19328 else
19329 ac_res=-l$ac_lib
19330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19331 fi
19332 if ac_fn_c_try_link "$LINENO"; then :
19333 ac_cv_search_opendir=$ac_res
19334fi
19335rm -f core conftest.err conftest.$ac_objext \
19336 conftest$ac_exeext
19337 if test "${ac_cv_search_opendir+set}" = set; then :
19338 break
19339fi
19340done
19341if test "${ac_cv_search_opendir+set}" = set; then :
19342
19343else
19344 ac_cv_search_opendir=no
19345fi
19346rm conftest.$ac_ext
19347LIBS=$ac_func_search_save_LIBS
19348fi
19349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19350$as_echo "$ac_cv_search_opendir" >&6; }
19351ac_res=$ac_cv_search_opendir
19352if test "$ac_res" != no; then :
19353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19354
19355fi
19356
19357else
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19359$as_echo_n "checking for library containing opendir... " >&6; }
19360if test "${ac_cv_search_opendir+set}" = set; then :
19361 $as_echo_n "(cached) " >&6
19362else
19363 ac_func_search_save_LIBS=$LIBS
19364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19365/* end confdefs.h. */
19366
19367/* Override any GCC internal prototype to avoid an error.
19368 Use char because int might match the return type of a GCC
19369 builtin and then its argument prototype would still apply. */
19370#ifdef __cplusplus
19371extern "C"
19372#endif
19373char opendir ();
19374int
19375main ()
19376{
19377return opendir ();
19378 ;
19379 return 0;
19380}
19381_ACEOF
19382for ac_lib in '' x; do
19383 if test -z "$ac_lib"; then
19384 ac_res="none required"
19385 else
19386 ac_res=-l$ac_lib
19387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19388 fi
19389 if ac_fn_c_try_link "$LINENO"; then :
19390 ac_cv_search_opendir=$ac_res
19391fi
19392rm -f core conftest.err conftest.$ac_objext \
19393 conftest$ac_exeext
19394 if test "${ac_cv_search_opendir+set}" = set; then :
19395 break
19396fi
19397done
19398if test "${ac_cv_search_opendir+set}" = set; then :
19399
19400else
19401 ac_cv_search_opendir=no
19402fi
19403rm conftest.$ac_ext
19404LIBS=$ac_func_search_save_LIBS
19405fi
19406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19407$as_echo "$ac_cv_search_opendir" >&6; }
19408ac_res=$ac_cv_search_opendir
19409if test "$ac_res" != no; then :
19410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19411
19412fi
19413
19414fi
19415
19416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19417$as_echo_n "checking for ANSI C header files... " >&6; }
19418if test "${ac_cv_header_stdc+set}" = set; then :
19419 $as_echo_n "(cached) " >&6
19420else
19421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19422/* end confdefs.h. */
19423#include <stdlib.h>
19424#include <stdarg.h>
19425#include <string.h>
19426#include <float.h>
19427
19428int
19429main ()
19430{
19431
19432 ;
19433 return 0;
19434}
19435_ACEOF
19436if ac_fn_c_try_compile "$LINENO"; then :
19437 ac_cv_header_stdc=yes
19438else
19439 ac_cv_header_stdc=no
19440fi
19441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19442
19443if test $ac_cv_header_stdc = yes; then
19444 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19446/* end confdefs.h. */
19447#include <string.h>
19448
19449_ACEOF
19450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19451 $EGREP "memchr" >/dev/null 2>&1; then :
19452
19453else
19454 ac_cv_header_stdc=no
19455fi
19456rm -f conftest*
19457
19458fi
19459
19460if test $ac_cv_header_stdc = yes; then
19461 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463/* end confdefs.h. */
19464#include <stdlib.h>
19465
19466_ACEOF
19467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19468 $EGREP "free" >/dev/null 2>&1; then :
19469
19470else
19471 ac_cv_header_stdc=no
19472fi
19473rm -f conftest*
19474
19475fi
19476
19477if test $ac_cv_header_stdc = yes; then
19478 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19479 if test "$cross_compiling" = yes; then :
19480 :
19481else
19482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19483/* end confdefs.h. */
19484#include <ctype.h>
19485#include <stdlib.h>
19486#if ((' ' & 0x0FF) == 0x020)
19487# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19488# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19489#else
19490# define ISLOWER(c) \
19491 (('a' <= (c) && (c) <= 'i') \
19492 || ('j' <= (c) && (c) <= 'r') \
19493 || ('s' <= (c) && (c) <= 'z'))
19494# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19495#endif
19496
19497#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19498int
19499main ()
19500{
19501 int i;
19502 for (i = 0; i < 256; i++)
19503 if (XOR (islower (i), ISLOWER (i))
19504 || toupper (i) != TOUPPER (i))
19505 return 2;
19506 return 0;
19507}
19508_ACEOF
19509if ac_fn_c_try_run "$LINENO"; then :
19510
19511else
19512 ac_cv_header_stdc=no
19513fi
19514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19515 conftest.$ac_objext conftest.beam conftest.$ac_ext
19516fi
19517
19518fi
19519fi
19520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19521$as_echo "$ac_cv_header_stdc" >&6; }
19522if test $ac_cv_header_stdc = yes; then
19523
19524$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
19525
19526fi
19527
19528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
19529$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
19530if test "${ac_cv_header_sys_wait_h+set}" = set; then :
19531 $as_echo_n "(cached) " >&6
19532else
19533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19534/* end confdefs.h. */
19535#include <sys/types.h>
19536#include <sys/wait.h>
19537#ifndef WEXITSTATUS
19538# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19539#endif
19540#ifndef WIFEXITED
19541# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19542#endif
19543
19544int
19545main ()
19546{
19547 int s;
19548 wait (&s);
19549 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19550 ;
19551 return 0;
19552}
19553_ACEOF
19554if ac_fn_c_try_compile "$LINENO"; then :
19555 ac_cv_header_sys_wait_h=yes
19556else
19557 ac_cv_header_sys_wait_h=no
19558fi
19559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19560fi
19561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
19562$as_echo "$ac_cv_header_sys_wait_h" >&6; }
19563if test $ac_cv_header_sys_wait_h = yes; then
19564
19565$as_echo "@%:@define HAVE_SYS_WAIT_H 1" >>confdefs.h
19566
19567fi
19568
19569for ac_header in arpa/inet.h fcntl.h inttypes.h malloc.h netdb.h netinet/in.h stdint.h stdlib.h string.h strings.h sys/ioctl.h sys/socket.h sys/time.h syslog.h unistd.h
19570do :
19571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19572ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19573if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19574 cat >>confdefs.h <<_ACEOF
19575@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19576_ACEOF
19577
19578fi
19579
19580done
19581
19582
19583
19584# Checks for typedefs, structures, and compiler characteristics.
19585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19586$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19587if test "${ac_cv_header_stdbool_h+set}" = set; then :
19588 $as_echo_n "(cached) " >&6
19589else
19590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19591/* end confdefs.h. */
19592
19593#include <stdbool.h>
19594#ifndef bool
19595 "error: bool is not defined"
19596#endif
19597#ifndef false
19598 "error: false is not defined"
19599#endif
19600#if false
19601 "error: false is not 0"
19602#endif
19603#ifndef true
19604 "error: true is not defined"
19605#endif
19606#if true != 1
19607 "error: true is not 1"
19608#endif
19609#ifndef __bool_true_false_are_defined
19610 "error: __bool_true_false_are_defined is not defined"
19611#endif
19612
19613 struct s { _Bool s: 1; _Bool t; } s;
19614
19615 char a[true == 1 ? 1 : -1];
19616 char b[false == 0 ? 1 : -1];
19617 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19618 char d[(bool) 0.5 == true ? 1 : -1];
19619 bool e = &s;
19620 char f[(_Bool) 0.0 == false ? 1 : -1];
19621 char g[true];
19622 char h[sizeof (_Bool)];
19623 char i[sizeof s.t];
19624 enum { j = false, k = true, l = false * true, m = true * 256 };
19625 /* The following fails for
19626 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19627 _Bool n[m];
19628 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19629 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19630# if defined __xlc__ || defined __GNUC__
19631 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19632 reported by James Lemley on 2005-10-05; see
19633 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19634 This test is not quite right, since xlc is allowed to
19635 reject this program, as the initializer for xlcbug is
19636 not one of the forms that C requires support for.
19637 However, doing the test right would require a runtime
19638 test, and that would make cross-compilation harder.
19639 Let us hope that IBM fixes the xlc bug, and also adds
19640 support for this kind of constant expression. In the
19641 meantime, this test will reject xlc, which is OK, since
19642 our stdbool.h substitute should suffice. We also test
19643 this with GCC, where it should work, to detect more
19644 quickly whether someone messes up the test in the
19645 future. */
19646 char digs[] = "0123456789";
19647 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19648# endif
19649 /* Catch a bug in an HP-UX C compiler. See
19650 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19651 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19652 */
19653 _Bool q = true;
19654 _Bool *pq = &q;
19655
19656int
19657main ()
19658{
19659
19660 *pq |= q;
19661 *pq |= ! q;
19662 /* Refer to every declared value, to avoid compiler optimizations. */
19663 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19664 + !m + !n + !o + !p + !q + !pq);
19665
19666 ;
19667 return 0;
19668}
19669_ACEOF
19670if ac_fn_c_try_compile "$LINENO"; then :
19671 ac_cv_header_stdbool_h=yes
19672else
19673 ac_cv_header_stdbool_h=no
19674fi
19675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19676fi
19677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19678$as_echo "$ac_cv_header_stdbool_h" >&6; }
19679ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19680if test "x$ac_cv_type__Bool" = x""yes; then :
19681
19682cat >>confdefs.h <<_ACEOF
19683@%:@define HAVE__BOOL 1
19684_ACEOF
19685
19686
19687fi
19688
19689if test $ac_cv_header_stdbool_h = yes; then
19690
19691$as_echo "@%:@define HAVE_STDBOOL_H 1" >>confdefs.h
19692
19693fi
19694
19695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19696$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19697if test "${ac_cv_c_const+set}" = set; then :
19698 $as_echo_n "(cached) " >&6
19699else
19700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19701/* end confdefs.h. */
19702
19703int
19704main ()
19705{
19706/* FIXME: Include the comments suggested by Paul. */
19707#ifndef __cplusplus
19708 /* Ultrix mips cc rejects this. */
19709 typedef int charset[2];
19710 const charset cs;
19711 /* SunOS 4.1.1 cc rejects this. */
19712 char const *const *pcpcc;
19713 char **ppc;
19714 /* NEC SVR4.0.2 mips cc rejects this. */
19715 struct point {int x, y;};
19716 static struct point const zero = {0,0};
19717 /* AIX XL C 1.02.0.0 rejects this.
19718 It does not let you subtract one const X* pointer from another in
19719 an arm of an if-expression whose if-part is not a constant
19720 expression */
19721 const char *g = "string";
19722 pcpcc = &g + (g ? g-g : 0);
19723 /* HPUX 7.0 cc rejects these. */
19724 ++pcpcc;
19725 ppc = (char**) pcpcc;
19726 pcpcc = (char const *const *) ppc;
19727 { /* SCO 3.2v4 cc rejects this. */
19728 char *t;
19729 char const *s = 0 ? (char *) 0 : (char const *) 0;
19730
19731 *t++ = 0;
19732 if (s) return 0;
19733 }
19734 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19735 int x[] = {25, 17};
19736 const int *foo = &x[0];
19737 ++foo;
19738 }
19739 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19740 typedef const int *iptr;
19741 iptr p = 0;
19742 ++p;
19743 }
19744 { /* AIX XL C 1.02.0.0 rejects this saying
19745 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19746 struct s { int j; const int *ap[3]; };
19747 struct s *b; b->j = 5;
19748 }
19749 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19750 const int foo = 10;
19751 if (!foo) return 0;
19752 }
19753 return !cs[0] && !zero.x;
19754#endif
19755
19756 ;
19757 return 0;
19758}
19759_ACEOF
19760if ac_fn_c_try_compile "$LINENO"; then :
19761 ac_cv_c_const=yes
19762else
19763 ac_cv_c_const=no
19764fi
19765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19766fi
19767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19768$as_echo "$ac_cv_c_const" >&6; }
19769if test $ac_cv_c_const = no; then
19770
19771$as_echo "@%:@define const /**/" >>confdefs.h
19772
19773fi
19774
19775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19776$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19777if test "${ac_cv_type_uid_t+set}" = set; then :
19778 $as_echo_n "(cached) " >&6
19779else
19780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19781/* end confdefs.h. */
19782#include <sys/types.h>
19783
19784_ACEOF
19785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19786 $EGREP "uid_t" >/dev/null 2>&1; then :
19787 ac_cv_type_uid_t=yes
19788else
19789 ac_cv_type_uid_t=no
19790fi
19791rm -f conftest*
19792
19793fi
19794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19795$as_echo "$ac_cv_type_uid_t" >&6; }
19796if test $ac_cv_type_uid_t = no; then
19797
19798$as_echo "@%:@define uid_t int" >>confdefs.h
19799
19800
19801$as_echo "@%:@define gid_t int" >>confdefs.h
19802
19803fi
19804
19805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19806$as_echo_n "checking for inline... " >&6; }
19807if test "${ac_cv_c_inline+set}" = set; then :
19808 $as_echo_n "(cached) " >&6
19809else
19810 ac_cv_c_inline=no
19811for ac_kw in inline __inline__ __inline; do
19812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19813/* end confdefs.h. */
19814#ifndef __cplusplus
19815typedef int foo_t;
19816static $ac_kw foo_t static_foo () {return 0; }
19817$ac_kw foo_t foo () {return 0; }
19818#endif
19819
19820_ACEOF
19821if ac_fn_c_try_compile "$LINENO"; then :
19822 ac_cv_c_inline=$ac_kw
19823fi
19824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825 test "$ac_cv_c_inline" != no && break
19826done
19827
19828fi
19829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19830$as_echo "$ac_cv_c_inline" >&6; }
19831
19832case $ac_cv_c_inline in
19833 inline | yes) ;;
19834 *)
19835 case $ac_cv_c_inline in
19836 no) ac_val=;;
19837 *) ac_val=$ac_cv_c_inline;;
19838 esac
19839 cat >>confdefs.h <<_ACEOF
19840#ifndef __cplusplus
19841#define inline $ac_val
19842#endif
19843_ACEOF
19844 ;;
19845esac
19846
19847ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19848if test "x$ac_cv_type_pid_t" = x""yes; then :
19849
19850else
19851
19852cat >>confdefs.h <<_ACEOF
19853@%:@define pid_t int
19854_ACEOF
19855
19856fi
19857
19858ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19859if test "x$ac_cv_type_size_t" = x""yes; then :
19860
19861else
19862
19863cat >>confdefs.h <<_ACEOF
19864@%:@define size_t unsigned int
19865_ACEOF
19866
19867fi
19868
19869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19870$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19871if test "${ac_cv_struct_tm+set}" = set; then :
19872 $as_echo_n "(cached) " >&6
19873else
19874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19875/* end confdefs.h. */
19876#include <sys/types.h>
19877#include <time.h>
19878
19879int
19880main ()
19881{
19882struct tm tm;
19883 int *p = &tm.tm_sec;
19884 return !p;
19885 ;
19886 return 0;
19887}
19888_ACEOF
19889if ac_fn_c_try_compile "$LINENO"; then :
19890 ac_cv_struct_tm=time.h
19891else
19892 ac_cv_struct_tm=sys/time.h
19893fi
19894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19895fi
19896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19897$as_echo "$ac_cv_struct_tm" >&6; }
19898if test $ac_cv_struct_tm = sys/time.h; then
19899
19900$as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h
19901
19902fi
19903
19904
19905# Checks for library functions.
19906# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19907# for constant arguments. Useless!
19908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19909$as_echo_n "checking for working alloca.h... " >&6; }
19910if test "${ac_cv_working_alloca_h+set}" = set; then :
19911 $as_echo_n "(cached) " >&6
19912else
19913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19914/* end confdefs.h. */
19915@%:@include <alloca.h>
19916int
19917main ()
19918{
19919char *p = (char *) alloca (2 * sizeof (int));
19920 if (p) return 0;
19921 ;
19922 return 0;
19923}
19924_ACEOF
19925if ac_fn_c_try_link "$LINENO"; then :
19926 ac_cv_working_alloca_h=yes
19927else
19928 ac_cv_working_alloca_h=no
19929fi
19930rm -f core conftest.err conftest.$ac_objext \
19931 conftest$ac_exeext conftest.$ac_ext
19932fi
19933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19934$as_echo "$ac_cv_working_alloca_h" >&6; }
19935if test $ac_cv_working_alloca_h = yes; then
19936
19937$as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
19938
19939fi
19940
19941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19942$as_echo_n "checking for alloca... " >&6; }
19943if test "${ac_cv_func_alloca_works+set}" = set; then :
19944 $as_echo_n "(cached) " >&6
19945else
19946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19947/* end confdefs.h. */
19948#ifdef __GNUC__
19949# define alloca __builtin_alloca
19950#else
19951# ifdef _MSC_VER
19952# include <malloc.h>
19953# define alloca _alloca
19954# else
19955# ifdef HAVE_ALLOCA_H
19956# include <alloca.h>
19957# else
19958# ifdef _AIX
19959 #pragma alloca
19960# else
19961# ifndef alloca /* predefined by HP cc +Olibcalls */
19962char *alloca ();
19963# endif
19964# endif
19965# endif
19966# endif
19967#endif
19968
19969int
19970main ()
19971{
19972char *p = (char *) alloca (1);
19973 if (p) return 0;
19974 ;
19975 return 0;
19976}
19977_ACEOF
19978if ac_fn_c_try_link "$LINENO"; then :
19979 ac_cv_func_alloca_works=yes
19980else
19981 ac_cv_func_alloca_works=no
19982fi
19983rm -f core conftest.err conftest.$ac_objext \
19984 conftest$ac_exeext conftest.$ac_ext
19985fi
19986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19987$as_echo "$ac_cv_func_alloca_works" >&6; }
19988
19989if test $ac_cv_func_alloca_works = yes; then
19990
19991$as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
19992
19993else
19994 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19995# that cause trouble. Some versions do not even contain alloca or
19996# contain a buggy version. If you still want to use their alloca,
19997# use ar to extract alloca.o from them instead of compiling alloca.c.
19998
19999ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20000
20001$as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
20002
20003
20004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
20005$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20006if test "${ac_cv_os_cray+set}" = set; then :
20007 $as_echo_n "(cached) " >&6
20008else
20009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20010/* end confdefs.h. */
20011#if defined CRAY && ! defined CRAY2
20012webecray
20013#else
20014wenotbecray
20015#endif
20016
20017_ACEOF
20018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20019 $EGREP "webecray" >/dev/null 2>&1; then :
20020 ac_cv_os_cray=yes
20021else
20022 ac_cv_os_cray=no
20023fi
20024rm -f conftest*
20025
20026fi
20027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
20028$as_echo "$ac_cv_os_cray" >&6; }
20029if test $ac_cv_os_cray = yes; then
20030 for ac_func in _getb67 GETB67 getb67; do
20031 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20032ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20033if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20034
20035cat >>confdefs.h <<_ACEOF
20036@%:@define CRAY_STACKSEG_END $ac_func
20037_ACEOF
20038
20039 break
20040fi
20041
20042 done
20043fi
20044
20045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
20046$as_echo_n "checking stack direction for C alloca... " >&6; }
20047if test "${ac_cv_c_stack_direction+set}" = set; then :
20048 $as_echo_n "(cached) " >&6
20049else
20050 if test "$cross_compiling" = yes; then :
20051 ac_cv_c_stack_direction=0
20052else
20053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20054/* end confdefs.h. */
20055$ac_includes_default
20056int
20057find_stack_direction ()
20058{
20059 static char *addr = 0;
20060 auto char dummy;
20061 if (addr == 0)
20062 {
20063 addr = &dummy;
20064 return find_stack_direction ();
20065 }
20066 else
20067 return (&dummy > addr) ? 1 : -1;
20068}
20069
20070int
20071main ()
20072{
20073 return find_stack_direction () < 0;
20074}
20075_ACEOF
20076if ac_fn_c_try_run "$LINENO"; then :
20077 ac_cv_c_stack_direction=1
20078else
20079 ac_cv_c_stack_direction=-1
20080fi
20081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20082 conftest.$ac_objext conftest.beam conftest.$ac_ext
20083fi
20084
20085fi
20086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
20087$as_echo "$ac_cv_c_stack_direction" >&6; }
20088cat >>confdefs.h <<_ACEOF
20089@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
20090_ACEOF
20091
20092
20093fi
20094
20095for ac_header in unistd.h
20096do :
20097 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
20098if test "x$ac_cv_header_unistd_h" = x""yes; then :
20099 cat >>confdefs.h <<_ACEOF
20100@%:@define HAVE_UNISTD_H 1
20101_ACEOF
20102
20103fi
20104
20105done
20106
20107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
20108$as_echo_n "checking for working chown... " >&6; }
20109if test "${ac_cv_func_chown_works+set}" = set; then :
20110 $as_echo_n "(cached) " >&6
20111else
20112 if test "$cross_compiling" = yes; then :
20113 ac_cv_func_chown_works=no
20114else
20115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20116/* end confdefs.h. */
20117$ac_includes_default
20118#include <fcntl.h>
20119
20120int
20121main ()
20122{
20123 char *f = "conftest.chown";
20124 struct stat before, after;
20125
20126 if (creat (f, 0600) < 0)
20127 return 1;
20128 if (stat (f, &before) < 0)
20129 return 1;
20130 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
20131 return 1;
20132 if (stat (f, &after) < 0)
20133 return 1;
20134 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
20135
20136 ;
20137 return 0;
20138}
20139_ACEOF
20140if ac_fn_c_try_run "$LINENO"; then :
20141 ac_cv_func_chown_works=yes
20142else
20143 ac_cv_func_chown_works=no
20144fi
20145rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20146 conftest.$ac_objext conftest.beam conftest.$ac_ext
20147fi
20148
20149rm -f conftest.chown
20150
20151fi
20152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
20153$as_echo "$ac_cv_func_chown_works" >&6; }
20154if test $ac_cv_func_chown_works = yes; then
20155
20156$as_echo "@%:@define HAVE_CHOWN 1" >>confdefs.h
20157
20158fi
20159
20160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
20161$as_echo_n "checking whether closedir returns void... " >&6; }
20162if test "${ac_cv_func_closedir_void+set}" = set; then :
20163 $as_echo_n "(cached) " >&6
20164else
20165 if test "$cross_compiling" = yes; then :
20166 ac_cv_func_closedir_void=yes
20167else
20168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20169/* end confdefs.h. */
20170$ac_includes_default
20171#include <$ac_header_dirent>
20172#ifndef __cplusplus
20173int closedir ();
20174#endif
20175
20176int
20177main ()
20178{
20179return closedir (opendir (".")) != 0;
20180 ;
20181 return 0;
20182}
20183_ACEOF
20184if ac_fn_c_try_run "$LINENO"; then :
20185 ac_cv_func_closedir_void=no
20186else
20187 ac_cv_func_closedir_void=yes
20188fi
20189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20190 conftest.$ac_objext conftest.beam conftest.$ac_ext
20191fi
20192
20193fi
20194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
20195$as_echo "$ac_cv_func_closedir_void" >&6; }
20196if test $ac_cv_func_closedir_void = yes; then
20197
20198$as_echo "@%:@define CLOSEDIR_VOID 1" >>confdefs.h
20199
20200fi
20201
20202for ac_header in vfork.h
20203do :
20204 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20205if test "x$ac_cv_header_vfork_h" = x""yes; then :
20206 cat >>confdefs.h <<_ACEOF
20207@%:@define HAVE_VFORK_H 1
20208_ACEOF
20209
20210fi
20211
20212done
20213
20214for ac_func in fork vfork
20215do :
20216 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20217ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20218if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20219 cat >>confdefs.h <<_ACEOF
20220@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20221_ACEOF
20222
20223fi
20224done
20225
20226if test "x$ac_cv_func_fork" = xyes; then
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20228$as_echo_n "checking for working fork... " >&6; }
20229if test "${ac_cv_func_fork_works+set}" = set; then :
20230 $as_echo_n "(cached) " >&6
20231else
20232 if test "$cross_compiling" = yes; then :
20233 ac_cv_func_fork_works=cross
20234else
20235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20236/* end confdefs.h. */
20237$ac_includes_default
20238int
20239main ()
20240{
20241
20242 /* By Ruediger Kuhlmann. */
20243 return fork () < 0;
20244
20245 ;
20246 return 0;
20247}
20248_ACEOF
20249if ac_fn_c_try_run "$LINENO"; then :
20250 ac_cv_func_fork_works=yes
20251else
20252 ac_cv_func_fork_works=no
20253fi
20254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20255 conftest.$ac_objext conftest.beam conftest.$ac_ext
20256fi
20257
20258fi
20259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20260$as_echo "$ac_cv_func_fork_works" >&6; }
20261
20262else
20263 ac_cv_func_fork_works=$ac_cv_func_fork
20264fi
20265if test "x$ac_cv_func_fork_works" = xcross; then
20266 case $host in
20267 *-*-amigaos* | *-*-msdosdjgpp*)
20268 # Override, as these systems have only a dummy fork() stub
20269 ac_cv_func_fork_works=no
20270 ;;
20271 *)
20272 ac_cv_func_fork_works=yes
20273 ;;
20274 esac
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20276$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20277fi
20278ac_cv_func_vfork_works=$ac_cv_func_vfork
20279if test "x$ac_cv_func_vfork" = xyes; then
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20281$as_echo_n "checking for working vfork... " >&6; }
20282if test "${ac_cv_func_vfork_works+set}" = set; then :
20283 $as_echo_n "(cached) " >&6
20284else
20285 if test "$cross_compiling" = yes; then :
20286 ac_cv_func_vfork_works=cross
20287else
20288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20289/* end confdefs.h. */
20290/* Thanks to Paul Eggert for this test. */
20291$ac_includes_default
20292#include <sys/wait.h>
20293#ifdef HAVE_VFORK_H
20294# include <vfork.h>
20295#endif
20296/* On some sparc systems, changes by the child to local and incoming
20297 argument registers are propagated back to the parent. The compiler
20298 is told about this with #include <vfork.h>, but some compilers
20299 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20300 static variable whose address is put into a register that is
20301 clobbered by the vfork. */
20302static void
20303#ifdef __cplusplus
20304sparc_address_test (int arg)
20305# else
20306sparc_address_test (arg) int arg;
20307#endif
20308{
20309 static pid_t child;
20310 if (!child) {
20311 child = vfork ();
20312 if (child < 0) {
20313 perror ("vfork");
20314 _exit(2);
20315 }
20316 if (!child) {
20317 arg = getpid();
20318 write(-1, "", 0);
20319 _exit (arg);
20320 }
20321 }
20322}
20323
20324int
20325main ()
20326{
20327 pid_t parent = getpid ();
20328 pid_t child;
20329
20330 sparc_address_test (0);
20331
20332 child = vfork ();
20333
20334 if (child == 0) {
20335 /* Here is another test for sparc vfork register problems. This
20336 test uses lots of local variables, at least as many local
20337 variables as main has allocated so far including compiler
20338 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20339 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20340 reuse the register of parent for one of the local variables,
20341 since it will think that parent can't possibly be used any more
20342 in this routine. Assigning to the local variable will thus
20343 munge parent in the parent process. */
20344 pid_t
20345 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20346 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20347 /* Convince the compiler that p..p7 are live; otherwise, it might
20348 use the same hardware register for all 8 local variables. */
20349 if (p != p1 || p != p2 || p != p3 || p != p4
20350 || p != p5 || p != p6 || p != p7)
20351 _exit(1);
20352
20353 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20354 from child file descriptors. If the child closes a descriptor
20355 before it execs or exits, this munges the parent's descriptor
20356 as well. Test for this by closing stdout in the child. */
20357 _exit(close(fileno(stdout)) != 0);
20358 } else {
20359 int status;
20360 struct stat st;
20361
20362 while (wait(&status) != child)
20363 ;
20364 return (
20365 /* Was there some problem with vforking? */
20366 child < 0
20367
20368 /* Did the child fail? (This shouldn't happen.) */
20369 || status
20370
20371 /* Did the vfork/compiler bug occur? */
20372 || parent != getpid()
20373
20374 /* Did the file descriptor bug occur? */
20375 || fstat(fileno(stdout), &st) != 0
20376 );
20377 }
20378}
20379_ACEOF
20380if ac_fn_c_try_run "$LINENO"; then :
20381 ac_cv_func_vfork_works=yes
20382else
20383 ac_cv_func_vfork_works=no
20384fi
20385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20386 conftest.$ac_objext conftest.beam conftest.$ac_ext
20387fi
20388
20389fi
20390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20391$as_echo "$ac_cv_func_vfork_works" >&6; }
20392
20393fi;
20394if test "x$ac_cv_func_fork_works" = xcross; then
20395 ac_cv_func_vfork_works=$ac_cv_func_vfork
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20397$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20398fi
20399
20400if test "x$ac_cv_func_vfork_works" = xyes; then
20401
20402$as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h
20403
20404else
20405
20406$as_echo "@%:@define vfork fork" >>confdefs.h
20407
20408fi
20409if test "x$ac_cv_func_fork_works" = xyes; then
20410
20411$as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h
20412
20413fi
20414
20415if test $ac_cv_c_compiler_gnu = yes; then
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20417$as_echo_n "checking whether $CC needs -traditional... " >&6; }
20418if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
20419 $as_echo_n "(cached) " >&6
20420else
20421 ac_pattern="Autoconf.*'x'"
20422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20423/* end confdefs.h. */
20424#include <sgtty.h>
20425Autoconf TIOCGETP
20426_ACEOF
20427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20428 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20429 ac_cv_prog_gcc_traditional=yes
20430else
20431 ac_cv_prog_gcc_traditional=no
20432fi
20433rm -f conftest*
20434
20435
20436 if test $ac_cv_prog_gcc_traditional = no; then
20437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20438/* end confdefs.h. */
20439#include <termio.h>
20440Autoconf TCGETA
20441_ACEOF
20442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20443 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20444 ac_cv_prog_gcc_traditional=yes
20445fi
20446rm -f conftest*
20447
20448 fi
20449fi
20450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20451$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20452 if test $ac_cv_prog_gcc_traditional = yes; then
20453 CC="$CC -traditional"
20454 fi
20455fi
20456
20457#comment it to prevent autoconf #define HAVE_MALLOC to 0 and #define malloc to rpl_malloc
20458#AC_FUNC_MALLOC
20459#AC_FUNC_MKTIME
20460#AC_FUNC_REALLOC
20461for ac_header in sys/select.h sys/socket.h
20462do :
20463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20464ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20465if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20466 cat >>confdefs.h <<_ACEOF
20467@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20468_ACEOF
20469
20470fi
20471
20472done
20473
20474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
20475$as_echo_n "checking types of arguments for select... " >&6; }
20476if test "${ac_cv_func_select_args+set}" = set; then :
20477 $as_echo_n "(cached) " >&6
20478else
20479 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
20480 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
20481 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
20482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20483/* end confdefs.h. */
20484$ac_includes_default
20485#ifdef HAVE_SYS_SELECT_H
20486# include <sys/select.h>
20487#endif
20488#ifdef HAVE_SYS_SOCKET_H
20489# include <sys/socket.h>
20490#endif
20491
20492int
20493main ()
20494{
20495extern int select ($ac_arg1,
20496 $ac_arg234, $ac_arg234, $ac_arg234,
20497 $ac_arg5);
20498 ;
20499 return 0;
20500}
20501_ACEOF
20502if ac_fn_c_try_compile "$LINENO"; then :
20503 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
20504fi
20505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20506 done
20507 done
20508done
20509# Provide a safe default value.
20510: ${ac_cv_func_select_args='int,int *,struct timeval *'}
20511
20512fi
20513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
20514$as_echo "$ac_cv_func_select_args" >&6; }
20515ac_save_IFS=$IFS; IFS=','
20516set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
20517IFS=$ac_save_IFS
20518shift
20519
20520cat >>confdefs.h <<_ACEOF
20521@%:@define SELECT_TYPE_ARG1 $1
20522_ACEOF
20523
20524
20525cat >>confdefs.h <<_ACEOF
20526@%:@define SELECT_TYPE_ARG234 ($2)
20527_ACEOF
20528
20529
20530cat >>confdefs.h <<_ACEOF
20531@%:@define SELECT_TYPE_ARG5 ($3)
20532_ACEOF
20533
20534rm -f conftest*
20535
20536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20537$as_echo_n "checking return type of signal handlers... " >&6; }
20538if test "${ac_cv_type_signal+set}" = set; then :
20539 $as_echo_n "(cached) " >&6
20540else
20541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20542/* end confdefs.h. */
20543#include <sys/types.h>
20544#include <signal.h>
20545
20546int
20547main ()
20548{
20549return *(signal (0, 0)) (0) == 1;
20550 ;
20551 return 0;
20552}
20553_ACEOF
20554if ac_fn_c_try_compile "$LINENO"; then :
20555 ac_cv_type_signal=int
20556else
20557 ac_cv_type_signal=void
20558fi
20559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20560fi
20561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20562$as_echo "$ac_cv_type_signal" >&6; }
20563
20564cat >>confdefs.h <<_ACEOF
20565@%:@define RETSIGTYPE $ac_cv_type_signal
20566_ACEOF
20567
20568
20569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
20570$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
20571if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
20572 $as_echo_n "(cached) " >&6
20573else
20574 rm -f conftest.sym conftest.file
20575echo >conftest.file
20576if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20577 if test "$cross_compiling" = yes; then :
20578 ac_cv_func_lstat_dereferences_slashed_symlink=no
20579else
20580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20581/* end confdefs.h. */
20582$ac_includes_default
20583int
20584main ()
20585{
20586struct stat sbuf;
20587 /* Linux will dereference the symlink and fail, as required by POSIX.
20588 That is better in the sense that it means we will not
20589 have to compile and use the lstat wrapper. */
20590 return lstat ("conftest.sym/", &sbuf) == 0;
20591 ;
20592 return 0;
20593}
20594_ACEOF
20595if ac_fn_c_try_run "$LINENO"; then :
20596 ac_cv_func_lstat_dereferences_slashed_symlink=yes
20597else
20598 ac_cv_func_lstat_dereferences_slashed_symlink=no
20599fi
20600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20601 conftest.$ac_objext conftest.beam conftest.$ac_ext
20602fi
20603
20604else
20605 # If the `ln -s' command failed, then we probably don't even
20606 # have an lstat function.
20607 ac_cv_func_lstat_dereferences_slashed_symlink=no
20608fi
20609rm -f conftest.sym conftest.file
20610
20611fi
20612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20613$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20614
20615test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20616
20617cat >>confdefs.h <<_ACEOF
20618@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20619_ACEOF
20620
20621
20622if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
20623 case " $LIB@&t@OBJS " in
20624 *" lstat.$ac_objext "* ) ;;
20625 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
20626 ;;
20627esac
20628
20629fi
20630
20631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
20632$as_echo_n "checking whether stat accepts an empty string... " >&6; }
20633if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
20634 $as_echo_n "(cached) " >&6
20635else
20636 if test "$cross_compiling" = yes; then :
20637 ac_cv_func_stat_empty_string_bug=yes
20638else
20639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20640/* end confdefs.h. */
20641$ac_includes_default
20642int
20643main ()
20644{
20645struct stat sbuf;
20646 return stat ("", &sbuf) == 0;
20647 ;
20648 return 0;
20649}
20650_ACEOF
20651if ac_fn_c_try_run "$LINENO"; then :
20652 ac_cv_func_stat_empty_string_bug=no
20653else
20654 ac_cv_func_stat_empty_string_bug=yes
20655fi
20656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20657 conftest.$ac_objext conftest.beam conftest.$ac_ext
20658fi
20659
20660fi
20661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
20662$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
20663if test $ac_cv_func_stat_empty_string_bug = yes; then
20664 case " $LIB@&t@OBJS " in
20665 *" stat.$ac_objext "* ) ;;
20666 *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
20667 ;;
20668esac
20669
20670
20671cat >>confdefs.h <<_ACEOF
20672@%:@define HAVE_STAT_EMPTY_STRING_BUG 1
20673_ACEOF
20674
20675fi
20676
20677for ac_func in strftime
20678do :
20679 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
20680if test "x$ac_cv_func_strftime" = x""yes; then :
20681 cat >>confdefs.h <<_ACEOF
20682@%:@define HAVE_STRFTIME 1
20683_ACEOF
20684
20685else
20686 # strftime is in -lintl on SCO UNIX.
20687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
20688$as_echo_n "checking for strftime in -lintl... " >&6; }
20689if test "${ac_cv_lib_intl_strftime+set}" = set; then :
20690 $as_echo_n "(cached) " >&6
20691else
20692 ac_check_lib_save_LIBS=$LIBS
20693LIBS="-lintl $LIBS"
20694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20695/* end confdefs.h. */
20696
20697/* Override any GCC internal prototype to avoid an error.
20698 Use char because int might match the return type of a GCC
20699 builtin and then its argument prototype would still apply. */
20700#ifdef __cplusplus
20701extern "C"
20702#endif
20703char strftime ();
20704int
20705main ()
20706{
20707return strftime ();
20708 ;
20709 return 0;
20710}
20711_ACEOF
20712if ac_fn_c_try_link "$LINENO"; then :
20713 ac_cv_lib_intl_strftime=yes
20714else
20715 ac_cv_lib_intl_strftime=no
20716fi
20717rm -f core conftest.err conftest.$ac_objext \
20718 conftest$ac_exeext conftest.$ac_ext
20719LIBS=$ac_check_lib_save_LIBS
20720fi
20721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
20722$as_echo "$ac_cv_lib_intl_strftime" >&6; }
20723if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
20724 $as_echo "@%:@define HAVE_STRFTIME 1" >>confdefs.h
20725
20726LIBS="-lintl $LIBS"
20727fi
20728
20729fi
20730done
20731
20732#check machine endian
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20734$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
20735if test "${ac_cv_c_bigendian+set}" = set; then :
20736 $as_echo_n "(cached) " >&6
20737else
20738 ac_cv_c_bigendian=unknown
20739 # See if we're dealing with a universal compiler.
20740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20741/* end confdefs.h. */
20742#ifndef __APPLE_CC__
20743 not a universal capable compiler
20744 #endif
20745 typedef int dummy;
20746
20747_ACEOF
20748if ac_fn_c_try_compile "$LINENO"; then :
20749
20750 # Check for potential -arch flags. It is not universal unless
20751 # there are at least two -arch flags with different values.
20752 ac_arch=
20753 ac_prev=
20754 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20755 if test -n "$ac_prev"; then
20756 case $ac_word in
20757 i?86 | x86_64 | ppc | ppc64)
20758 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20759 ac_arch=$ac_word
20760 else
20761 ac_cv_c_bigendian=universal
20762 break
20763 fi
20764 ;;
20765 esac
20766 ac_prev=
20767 elif test "x$ac_word" = "x-arch"; then
20768 ac_prev=arch
20769 fi
20770 done
20771fi
20772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20773 if test $ac_cv_c_bigendian = unknown; then
20774 # See if sys/param.h defines the BYTE_ORDER macro.
20775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20776/* end confdefs.h. */
20777#include <sys/types.h>
20778 #include <sys/param.h>
20779
20780int
20781main ()
20782{
20783#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20784 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20785 && LITTLE_ENDIAN)
20786 bogus endian macros
20787 #endif
20788
20789 ;
20790 return 0;
20791}
20792_ACEOF
20793if ac_fn_c_try_compile "$LINENO"; then :
20794 # It does; now see whether it defined to BIG_ENDIAN or not.
20795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20796/* end confdefs.h. */
20797#include <sys/types.h>
20798 #include <sys/param.h>
20799
20800int
20801main ()
20802{
20803#if BYTE_ORDER != BIG_ENDIAN
20804 not big endian
20805 #endif
20806
20807 ;
20808 return 0;
20809}
20810_ACEOF
20811if ac_fn_c_try_compile "$LINENO"; then :
20812 ac_cv_c_bigendian=yes
20813else
20814 ac_cv_c_bigendian=no
20815fi
20816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20817fi
20818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20819 fi
20820 if test $ac_cv_c_bigendian = unknown; then
20821 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20823/* end confdefs.h. */
20824#include <limits.h>
20825
20826int
20827main ()
20828{
20829#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20830 bogus endian macros
20831 #endif
20832
20833 ;
20834 return 0;
20835}
20836_ACEOF
20837if ac_fn_c_try_compile "$LINENO"; then :
20838 # It does; now see whether it defined to _BIG_ENDIAN or not.
20839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20840/* end confdefs.h. */
20841#include <limits.h>
20842
20843int
20844main ()
20845{
20846#ifndef _BIG_ENDIAN
20847 not big endian
20848 #endif
20849
20850 ;
20851 return 0;
20852}
20853_ACEOF
20854if ac_fn_c_try_compile "$LINENO"; then :
20855 ac_cv_c_bigendian=yes
20856else
20857 ac_cv_c_bigendian=no
20858fi
20859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20860fi
20861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20862 fi
20863 if test $ac_cv_c_bigendian = unknown; then
20864 # Compile a test program.
20865 if test "$cross_compiling" = yes; then :
20866 # Try to guess by grepping values from an object file.
20867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20868/* end confdefs.h. */
20869short int ascii_mm[] =
20870 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20871 short int ascii_ii[] =
20872 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20873 int use_ascii (int i) {
20874 return ascii_mm[i] + ascii_ii[i];
20875 }
20876 short int ebcdic_ii[] =
20877 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20878 short int ebcdic_mm[] =
20879 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20880 int use_ebcdic (int i) {
20881 return ebcdic_mm[i] + ebcdic_ii[i];
20882 }
20883 extern int foo;
20884
20885int
20886main ()
20887{
20888return use_ascii (foo) == use_ebcdic (foo);
20889 ;
20890 return 0;
20891}
20892_ACEOF
20893if ac_fn_c_try_compile "$LINENO"; then :
20894 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20895 ac_cv_c_bigendian=yes
20896 fi
20897 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20898 if test "$ac_cv_c_bigendian" = unknown; then
20899 ac_cv_c_bigendian=no
20900 else
20901 # finding both strings is unlikely to happen, but who knows?
20902 ac_cv_c_bigendian=unknown
20903 fi
20904 fi
20905fi
20906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20907else
20908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20909/* end confdefs.h. */
20910$ac_includes_default
20911int
20912main ()
20913{
20914
20915 /* Are we little or big endian? From Harbison&Steele. */
20916 union
20917 {
20918 long int l;
20919 char c[sizeof (long int)];
20920 } u;
20921 u.l = 1;
20922 return u.c[sizeof (long int) - 1] == 1;
20923
20924 ;
20925 return 0;
20926}
20927_ACEOF
20928if ac_fn_c_try_run "$LINENO"; then :
20929 ac_cv_c_bigendian=no
20930else
20931 ac_cv_c_bigendian=yes
20932fi
20933rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20934 conftest.$ac_objext conftest.beam conftest.$ac_ext
20935fi
20936
20937 fi
20938fi
20939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20940$as_echo "$ac_cv_c_bigendian" >&6; }
20941 case $ac_cv_c_bigendian in #(
20942 yes)
20943 $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
20944;; #(
20945 no)
20946 ;; #(
20947 universal)
20948
20949$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20950
20951 ;; #(
20952 *)
20953 as_fn_error $? "unknown endianness
20954 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20955 esac
20956
20957
20958# The cast to long int works around a bug in the HP C Compiler
20959# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20960# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20961# This bug is HP SR number 8606223364.
20962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20963$as_echo_n "checking size of int... " >&6; }
20964if test "${ac_cv_sizeof_int+set}" = set; then :
20965 $as_echo_n "(cached) " >&6
20966else
20967 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
20968
20969else
20970 if test "$ac_cv_type_int" = yes; then
20971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20973as_fn_error 77 "cannot compute sizeof (int)
20974See \`config.log' for more details" "$LINENO" 5 ; }
20975 else
20976 ac_cv_sizeof_int=0
20977 fi
20978fi
20979
20980fi
20981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
20982$as_echo "$ac_cv_sizeof_int" >&6; }
20983
20984
20985
20986cat >>confdefs.h <<_ACEOF
20987@%:@define SIZEOF_INT $ac_cv_sizeof_int
20988_ACEOF
20989
20990
20991# The cast to long int works around a bug in the HP C Compiler
20992# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20993# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20994# This bug is HP SR number 8606223364.
20995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
20996$as_echo_n "checking size of short... " >&6; }
20997if test "${ac_cv_sizeof_short+set}" = set; then :
20998 $as_echo_n "(cached) " >&6
20999else
21000 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
21001
21002else
21003 if test "$ac_cv_type_short" = yes; then
21004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21006as_fn_error 77 "cannot compute sizeof (short)
21007See \`config.log' for more details" "$LINENO" 5 ; }
21008 else
21009 ac_cv_sizeof_short=0
21010 fi
21011fi
21012
21013fi
21014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
21015$as_echo "$ac_cv_sizeof_short" >&6; }
21016
21017
21018
21019cat >>confdefs.h <<_ACEOF
21020@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
21021_ACEOF
21022
21023
21024# The cast to long int works around a bug in the HP C Compiler
21025# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21026# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21027# This bug is HP SR number 8606223364.
21028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21029$as_echo_n "checking size of long... " >&6; }
21030if test "${ac_cv_sizeof_long+set}" = set; then :
21031 $as_echo_n "(cached) " >&6
21032else
21033 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
21034
21035else
21036 if test "$ac_cv_type_long" = yes; then
21037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21039as_fn_error 77 "cannot compute sizeof (long)
21040See \`config.log' for more details" "$LINENO" 5 ; }
21041 else
21042 ac_cv_sizeof_long=0
21043 fi
21044fi
21045
21046fi
21047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21048$as_echo "$ac_cv_sizeof_long" >&6; }
21049
21050
21051
21052cat >>confdefs.h <<_ACEOF
21053@%:@define SIZEOF_LONG $ac_cv_sizeof_long
21054_ACEOF
21055
21056
21057# The cast to long int works around a bug in the HP C Compiler
21058# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21059# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21060# This bug is HP SR number 8606223364.
21061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
21062$as_echo_n "checking size of float... " >&6; }
21063if test "${ac_cv_sizeof_float+set}" = set; then :
21064 $as_echo_n "(cached) " >&6
21065else
21066 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
21067
21068else
21069 if test "$ac_cv_type_float" = yes; then
21070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21072as_fn_error 77 "cannot compute sizeof (float)
21073See \`config.log' for more details" "$LINENO" 5 ; }
21074 else
21075 ac_cv_sizeof_float=0
21076 fi
21077fi
21078
21079fi
21080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
21081$as_echo "$ac_cv_sizeof_float" >&6; }
21082
21083
21084
21085cat >>confdefs.h <<_ACEOF
21086@%:@define SIZEOF_FLOAT $ac_cv_sizeof_float
21087_ACEOF
21088
21089
21090# The cast to long int works around a bug in the HP C Compiler
21091# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21092# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21093# This bug is HP SR number 8606223364.
21094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
21095$as_echo_n "checking size of double... " >&6; }
21096if test "${ac_cv_sizeof_double+set}" = set; then :
21097 $as_echo_n "(cached) " >&6
21098else
21099 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
21100
21101else
21102 if test "$ac_cv_type_double" = yes; then
21103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21105as_fn_error 77 "cannot compute sizeof (double)
21106See \`config.log' for more details" "$LINENO" 5 ; }
21107 else
21108 ac_cv_sizeof_double=0
21109 fi
21110fi
21111
21112fi
21113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
21114$as_echo "$ac_cv_sizeof_double" >&6; }
21115
21116
21117
21118cat >>confdefs.h <<_ACEOF
21119@%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double
21120_ACEOF
21121
21122
21123
21124ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21125if test "x$ac_cv_type_pid_t" = x""yes; then :
21126
21127else
21128
21129cat >>confdefs.h <<_ACEOF
21130@%:@define pid_t int
21131_ACEOF
21132
21133fi
21134
21135ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21136if test "x$ac_cv_type_size_t" = x""yes; then :
21137
21138else
21139
21140cat >>confdefs.h <<_ACEOF
21141@%:@define size_t unsigned int
21142_ACEOF
21143
21144fi
21145
21146
21147for ac_func in alarm bzero endgrent endpwent getcwd gethostbyname inet_ntoa isascii localtime_r memmove memset mkdir regcomp select socket strcasecmp strchr strcspn strdup strerror strncasecmp strrchr strspn strstr
21148do :
21149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21150ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21151if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21152 cat >>confdefs.h <<_ACEOF
21153@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21154_ACEOF
21155
21156fi
21157done
21158
21159
21160ac_config_files="$ac_config_files Makefile libpool/src/Makefile libxmlet/src/Makefile libcwmp/src/Makefile cwmpd/src/Makefile tests/src/Makefile"
21161
21162
21163
21164
21165#save user-provided flags
21166save_CXXFLAGS="$CXXFLAGS"
21167save_CFLAGS="-Wall -g"
21168save_LDFALGS="$LDFLAGS"
21169save_CPPFLAGS="-Wall -g"
21170
21171#restore user-provided flags
21172CXXFLAGS="$save_CXXFLAGS"
21173CFLAGS="$save_CFLAGS "
21174#Note that sysconfdir is expaned in Makefile other than here, check generated configure script, u can see
21175#sysconfdir is surrounded by single quotas to prevent expansion.
21176CPPFLAGS="-D_GNU_SOURCE $save_CPPFLAGS"
21177
21178LDFLAGS="$save_LDFALGS"
21179
21180#CPPFLAGS="$CPPFLAGS -DUSE_CWMP_OPENSSL"
21181OPENSSL_DIR=no
21182
21183
21184@%:@ Check whether --with-openssl was given.
21185if test "${with_openssl+set}" = set; then :
21186 withval=$with_openssl; OPENSSL_DIR=$withval
21187else
21188 OPENSSL_DIR=no
21189fi
21190
21191
21192if test x"$OPENSSL_DIR" != "xno"; then
21193 CPPFLAGS="$CPPFLAGS -DUSE_CWMP_OPENSSL -I$OPENSSL_DIR/include"
21194 LDFLAGS="$LDFLAGS -L$OPENSSL_DIR/lib -lssl"
21195fi
21196
21197
21198#LIBS will be appended to gcc command, so it must be cleared to prevent unnecessary linking
21199#LIBS=""
21200
21201
21202
21203
21204#AC_CANONICAL_BUILD
21205#AC_CANONICAL_HOST
21206
21207
21208if test "x$build_cpu" != "x"; then
21209 BUILD_CPU="$build_cpu"
21210
21211 cat >>confdefs.h <<_ACEOF
21212@%:@define BUILD_CPU $build_cpu
21213_ACEOF
21214
21215fi
21216
21217if test "x$build_vendor" != "x"; then
21218 BUILD_VENDOR="$build_vendor"
21219
21220 cat >>confdefs.h <<_ACEOF
21221@%:@define BUILD_VENDOR $build_vendor
21222_ACEOF
21223
21224fi
21225
21226if test "x$build_os" != "x"; then
21227 BUILD_OS="$build_os"
21228
21229 cat >>confdefs.h <<_ACEOF
21230@%:@define BUILD_OS $build_os
21231_ACEOF
21232
21233fi
21234
21235
21236if test "x$host_cpu" != "x"; then
21237 HOST_CPU="$host_cpu"
21238
21239 cat >>confdefs.h <<_ACEOF
21240@%:@define HOST_CPU $host_cpu
21241_ACEOF
21242
21243fi
21244
21245if test "x$host_vendor" != "x"; then
21246 HOST_VENDOR="$host_vendor"
21247
21248 cat >>confdefs.h <<_ACEOF
21249@%:@define HOST_VENDOR $host_vendor
21250_ACEOF
21251
21252fi
21253
21254if test "x$host_os" != "x"; then
21255 HOST_OS="$host_os"
21256
21257 cat >>confdefs.h <<_ACEOF
21258@%:@define HOST_OS $host_os
21259_ACEOF
21260
21261fi
21262
21263 if test "$target" = "mips64-octeon-linux-gnu" ; then
21264 COMPILE_FOR_MIPS_TRUE=
21265 COMPILE_FOR_MIPS_FALSE='#'
21266else
21267 COMPILE_FOR_MIPS_TRUE='#'
21268 COMPILE_FOR_MIPS_FALSE=
21269fi
21270
21271cat >confcache <<\_ACEOF
21272# This file is a shell script that caches the results of configure
21273# tests run on this system so they can be shared between configure
21274# scripts and configure runs, see configure's option --config-cache.
21275# It is not useful on other systems. If it contains results you don't
21276# want to keep, you may remove or edit it.
21277#
21278# config.status only pays attention to the cache file if you give it
21279# the --recheck option to rerun configure.
21280#
21281# `ac_cv_env_foo' variables (set or unset) will be overridden when
21282# loading this file, other *unset* `ac_cv_foo' will be assigned the
21283# following values.
21284
21285_ACEOF
21286
21287# The following way of writing the cache mishandles newlines in values,
21288# but we know of no workaround that is simple, portable, and efficient.
21289# So, we kill variables containing newlines.
21290# Ultrix sh set writes to stderr and can't be redirected directly,
21291# and sets the high bit in the cache file unless we assign to the vars.
21292(
21293 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21294 eval ac_val=\$$ac_var
21295 case $ac_val in #(
21296 *${as_nl}*)
21297 case $ac_var in #(
21298 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21299$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21300 esac
21301 case $ac_var in #(
21302 _ | IFS | as_nl) ;; #(
21303 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21304 *) { eval $ac_var=; unset $ac_var;} ;;
21305 esac ;;
21306 esac
21307 done
21308
21309 (set) 2>&1 |
21310 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21311 *${as_nl}ac_space=\ *)
21312 # `set' does not quote correctly, so add quotes: double-quote
21313 # substitution turns \\\\ into \\, and sed turns \\ into \.
21314 sed -n \
21315 "s/'/'\\\\''/g;
21316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21317 ;; #(
21318 *)
21319 # `set' quotes correctly as required by POSIX, so do not add quotes.
21320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21321 ;;
21322 esac |
21323 sort
21324) |
21325 sed '
21326 /^ac_cv_env_/b end
21327 t clear
21328 :clear
21329 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21330 t end
21331 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21332 :end' >>confcache
21333if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21334 if test -w "$cache_file"; then
21335 test "x$cache_file" != "x/dev/null" &&
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21337$as_echo "$as_me: updating cache $cache_file" >&6;}
21338 cat confcache >$cache_file
21339 else
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21341$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21342 fi
21343fi
21344rm -f confcache
21345
21346test "x$prefix" = xNONE && prefix=$ac_default_prefix
21347# Let make expand exec_prefix.
21348test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21349
21350DEFS=-DHAVE_CONFIG_H
21351
21352ac_libobjs=
21353ac_ltlibobjs=
21354U=
21355for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21356 # 1. Remove the extension, and $U if already installed.
21357 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21358 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21359 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21360 # will be set to the directory where LIBOBJS objects are built.
21361 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21362 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21363done
21364LIB@&t@OBJS=$ac_libobjs
21365
21366LTLIBOBJS=$ac_ltlibobjs
21367
21368
21369 if test -n "$EXEEXT"; then
21370 am__EXEEXT_TRUE=
21371 am__EXEEXT_FALSE='#'
21372else
21373 am__EXEEXT_TRUE='#'
21374 am__EXEEXT_FALSE=
21375fi
21376
21377if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21378 as_fn_error $? "conditional \"AMDEP\" was never defined.
21379Usually this means the macro was only invoked conditionally." "$LINENO" 5
21380fi
21381if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21382 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21383Usually this means the macro was only invoked conditionally." "$LINENO" 5
21384fi
21385if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21386 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21387Usually this means the macro was only invoked conditionally." "$LINENO" 5
21388fi
21389
21390if test -z "${COMPILE_FOR_MIPS_TRUE}" && test -z "${COMPILE_FOR_MIPS_FALSE}"; then
21391 as_fn_error $? "conditional \"COMPILE_FOR_MIPS\" was never defined.
21392Usually this means the macro was only invoked conditionally." "$LINENO" 5
21393fi
21394
21395: ${CONFIG_STATUS=./config.status}
21396ac_write_fail=0
21397ac_clean_files_save=$ac_clean_files
21398ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21399{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21400$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21401as_write_fail=0
21402cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21403#! $SHELL
21404# Generated by $as_me.
21405# Run this file to recreate the current configuration.
21406# Compiler output produced by configure, useful for debugging
21407# configure, is in config.log if it exists.
21408
21409debug=false
21410ac_cs_recheck=false
21411ac_cs_silent=false
21412
21413SHELL=\${CONFIG_SHELL-$SHELL}
21414export SHELL
21415_ASEOF
21416cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21417## -------------------- ##
21418## M4sh Initialization. ##
21419## -------------------- ##
21420
21421# Be more Bourne compatible
21422DUALCASE=1; export DUALCASE # for MKS sh
21423if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21424 emulate sh
21425 NULLCMD=:
21426 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21427 # is contrary to our usage. Disable this feature.
21428 alias -g '${1+"$@"}'='"$@"'
21429 setopt NO_GLOB_SUBST
21430else
21431 case `(set -o) 2>/dev/null` in @%:@(
21432 *posix*) :
21433 set -o posix ;; @%:@(
21434 *) :
21435 ;;
21436esac
21437fi
21438
21439
21440as_nl='
21441'
21442export as_nl
21443# Printing a long string crashes Solaris 7 /usr/bin/printf.
21444as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21445as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21446as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21447# Prefer a ksh shell builtin over an external printf program on Solaris,
21448# but without wasting forks for bash or zsh.
21449if test -z "$BASH_VERSION$ZSH_VERSION" \
21450 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21451 as_echo='print -r --'
21452 as_echo_n='print -rn --'
21453elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21454 as_echo='printf %s\n'
21455 as_echo_n='printf %s'
21456else
21457 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21458 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21459 as_echo_n='/usr/ucb/echo -n'
21460 else
21461 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21462 as_echo_n_body='eval
21463 arg=$1;
21464 case $arg in @%:@(
21465 *"$as_nl"*)
21466 expr "X$arg" : "X\\(.*\\)$as_nl";
21467 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21468 esac;
21469 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21470 '
21471 export as_echo_n_body
21472 as_echo_n='sh -c $as_echo_n_body as_echo'
21473 fi
21474 export as_echo_body
21475 as_echo='sh -c $as_echo_body as_echo'
21476fi
21477
21478# The user is always right.
21479if test "${PATH_SEPARATOR+set}" != set; then
21480 PATH_SEPARATOR=:
21481 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21482 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21483 PATH_SEPARATOR=';'
21484 }
21485fi
21486
21487
21488# IFS
21489# We need space, tab and new line, in precisely that order. Quoting is
21490# there to prevent editors from complaining about space-tab.
21491# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21492# splitting by setting IFS to empty value.)
21493IFS=" "" $as_nl"
21494
21495# Find who we are. Look in the path if we contain no directory separator.
21496case $0 in @%:@((
21497 *[\\/]* ) as_myself=$0 ;;
21498 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21499for as_dir in $PATH
21500do
21501 IFS=$as_save_IFS
21502 test -z "$as_dir" && as_dir=.
21503 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21504 done
21505IFS=$as_save_IFS
21506
21507 ;;
21508esac
21509# We did not find ourselves, most probably we were run as `sh COMMAND'
21510# in which case we are not to be found in the path.
21511if test "x$as_myself" = x; then
21512 as_myself=$0
21513fi
21514if test ! -f "$as_myself"; then
21515 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21516 exit 1
21517fi
21518
21519# Unset variables that we do not need and which cause bugs (e.g. in
21520# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21521# suppresses any "Segmentation fault" message there. '((' could
21522# trigger a bug in pdksh 5.2.14.
21523for as_var in BASH_ENV ENV MAIL MAILPATH
21524do eval test x\${$as_var+set} = xset \
21525 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21526done
21527PS1='$ '
21528PS2='> '
21529PS4='+ '
21530
21531# NLS nuisances.
21532LC_ALL=C
21533export LC_ALL
21534LANGUAGE=C
21535export LANGUAGE
21536
21537# CDPATH.
21538(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21539
21540
21541@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
21542@%:@ ----------------------------------------
21543@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21544@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21545@%:@ script with STATUS, using 1 if that was 0.
21546as_fn_error ()
21547{
21548 as_status=$1; test $as_status -eq 0 && as_status=1
21549 if test "$4"; then
21550 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21551 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21552 fi
21553 $as_echo "$as_me: error: $2" >&2
21554 as_fn_exit $as_status
21555} @%:@ as_fn_error
21556
21557
21558@%:@ as_fn_set_status STATUS
21559@%:@ -----------------------
21560@%:@ Set @S|@? to STATUS, without forking.
21561as_fn_set_status ()
21562{
21563 return $1
21564} @%:@ as_fn_set_status
21565
21566@%:@ as_fn_exit STATUS
21567@%:@ -----------------
21568@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21569as_fn_exit ()
21570{
21571 set +e
21572 as_fn_set_status $1
21573 exit $1
21574} @%:@ as_fn_exit
21575
21576@%:@ as_fn_unset VAR
21577@%:@ ---------------
21578@%:@ Portably unset VAR.
21579as_fn_unset ()
21580{
21581 { eval $1=; unset $1;}
21582}
21583as_unset=as_fn_unset
21584@%:@ as_fn_append VAR VALUE
21585@%:@ ----------------------
21586@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
21587@%:@ advantage of any shell optimizations that allow amortized linear growth over
21588@%:@ repeated appends, instead of the typical quadratic growth present in naive
21589@%:@ implementations.
21590if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21591 eval 'as_fn_append ()
21592 {
21593 eval $1+=\$2
21594 }'
21595else
21596 as_fn_append ()
21597 {
21598 eval $1=\$$1\$2
21599 }
21600fi # as_fn_append
21601
21602@%:@ as_fn_arith ARG...
21603@%:@ ------------------
21604@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
21605@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
21606@%:@ must be portable across @S|@(()) and expr.
21607if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21608 eval 'as_fn_arith ()
21609 {
21610 as_val=$(( $* ))
21611 }'
21612else
21613 as_fn_arith ()
21614 {
21615 as_val=`expr "$@" || test $? -eq 1`
21616 }
21617fi # as_fn_arith
21618
21619
21620if expr a : '\(a\)' >/dev/null 2>&1 &&
21621 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21622 as_expr=expr
21623else
21624 as_expr=false
21625fi
21626
21627if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21628 as_basename=basename
21629else
21630 as_basename=false
21631fi
21632
21633if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21634 as_dirname=dirname
21635else
21636 as_dirname=false
21637fi
21638
21639as_me=`$as_basename -- "$0" ||
21640$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21641 X"$0" : 'X\(//\)$' \| \
21642 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21643$as_echo X/"$0" |
21644 sed '/^.*\/\([^/][^/]*\)\/*$/{
21645 s//\1/
21646 q
21647 }
21648 /^X\/\(\/\/\)$/{
21649 s//\1/
21650 q
21651 }
21652 /^X\/\(\/\).*/{
21653 s//\1/
21654 q
21655 }
21656 s/.*/./; q'`
21657
21658# Avoid depending upon Character Ranges.
21659as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21660as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21661as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21662as_cr_digits='0123456789'
21663as_cr_alnum=$as_cr_Letters$as_cr_digits
21664
21665ECHO_C= ECHO_N= ECHO_T=
21666case `echo -n x` in @%:@(((((
21667-n*)
21668 case `echo 'xy\c'` in
21669 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21670 xy) ECHO_C='\c';;
21671 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21672 ECHO_T=' ';;
21673 esac;;
21674*)
21675 ECHO_N='-n';;
21676esac
21677
21678rm -f conf$$ conf$$.exe conf$$.file
21679if test -d conf$$.dir; then
21680 rm -f conf$$.dir/conf$$.file
21681else
21682 rm -f conf$$.dir
21683 mkdir conf$$.dir 2>/dev/null
21684fi
21685if (echo >conf$$.file) 2>/dev/null; then
21686 if ln -s conf$$.file conf$$ 2>/dev/null; then
21687 as_ln_s='ln -s'
21688 # ... but there are two gotchas:
21689 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21690 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21691 # In both cases, we have to default to `cp -p'.
21692 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21693 as_ln_s='cp -p'
21694 elif ln conf$$.file conf$$ 2>/dev/null; then
21695 as_ln_s=ln
21696 else
21697 as_ln_s='cp -p'
21698 fi
21699else
21700 as_ln_s='cp -p'
21701fi
21702rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21703rmdir conf$$.dir 2>/dev/null
21704
21705
21706@%:@ as_fn_mkdir_p
21707@%:@ -------------
21708@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
21709as_fn_mkdir_p ()
21710{
21711
21712 case $as_dir in #(
21713 -*) as_dir=./$as_dir;;
21714 esac
21715 test -d "$as_dir" || eval $as_mkdir_p || {
21716 as_dirs=
21717 while :; do
21718 case $as_dir in #(
21719 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21720 *) as_qdir=$as_dir;;
21721 esac
21722 as_dirs="'$as_qdir' $as_dirs"
21723 as_dir=`$as_dirname -- "$as_dir" ||
21724$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21725 X"$as_dir" : 'X\(//\)[^/]' \| \
21726 X"$as_dir" : 'X\(//\)$' \| \
21727 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21728$as_echo X"$as_dir" |
21729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21730 s//\1/
21731 q
21732 }
21733 /^X\(\/\/\)[^/].*/{
21734 s//\1/
21735 q
21736 }
21737 /^X\(\/\/\)$/{
21738 s//\1/
21739 q
21740 }
21741 /^X\(\/\).*/{
21742 s//\1/
21743 q
21744 }
21745 s/.*/./; q'`
21746 test -d "$as_dir" && break
21747 done
21748 test -z "$as_dirs" || eval "mkdir $as_dirs"
21749 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21750
21751
21752} @%:@ as_fn_mkdir_p
21753if mkdir -p . 2>/dev/null; then
21754 as_mkdir_p='mkdir -p "$as_dir"'
21755else
21756 test -d ./-p && rmdir ./-p
21757 as_mkdir_p=false
21758fi
21759
21760if test -x / >/dev/null 2>&1; then
21761 as_test_x='test -x'
21762else
21763 if ls -dL / >/dev/null 2>&1; then
21764 as_ls_L_option=L
21765 else
21766 as_ls_L_option=
21767 fi
21768 as_test_x='
21769 eval sh -c '\''
21770 if test -d "$1"; then
21771 test -d "$1/.";
21772 else
21773 case $1 in @%:@(
21774 -*)set "./$1";;
21775 esac;
21776 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
21777 ???[sx]*):;;*)false;;esac;fi
21778 '\'' sh
21779 '
21780fi
21781as_executable_p=$as_test_x
21782
21783# Sed expression to map a string onto a valid CPP name.
21784as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21785
21786# Sed expression to map a string onto a valid variable name.
21787as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21788
21789
21790exec 6>&1
21791## ----------------------------------- ##
21792## Main body of $CONFIG_STATUS script. ##
21793## ----------------------------------- ##
21794_ASEOF
21795test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21796
21797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21798# Save the log message, to keep $0 and so on meaningful, and to
21799# report actual input values of CONFIG_FILES etc. instead of their
21800# values after options handling.
21801ac_log="
21802This file was extended by library $as_me 1.0, which was
21803generated by GNU Autoconf 2.67. Invocation command line was
21804
21805 CONFIG_FILES = $CONFIG_FILES
21806 CONFIG_HEADERS = $CONFIG_HEADERS
21807 CONFIG_LINKS = $CONFIG_LINKS
21808 CONFIG_COMMANDS = $CONFIG_COMMANDS
21809 $ $0 $@
21810
21811on `(hostname || uname -n) 2>/dev/null | sed 1q`
21812"
21813
21814_ACEOF
21815
21816case $ac_config_files in *"
21817"*) set x $ac_config_files; shift; ac_config_files=$*;;
21818esac
21819
21820case $ac_config_headers in *"
21821"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21822esac
21823
21824
21825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21826# Files that config.status was made for.
21827config_files="$ac_config_files"
21828config_headers="$ac_config_headers"
21829config_commands="$ac_config_commands"
21830
21831_ACEOF
21832
21833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21834ac_cs_usage="\
21835\`$as_me' instantiates files and other configuration actions
21836from templates according to the current configuration. Unless the files
21837and actions are specified as TAGs, all are instantiated by default.
21838
21839Usage: $0 [OPTION]... [TAG]...
21840
21841 -h, --help print this help, then exit
21842 -V, --version print version number and configuration settings, then exit
21843 --config print configuration, then exit
21844 -q, --quiet, --silent
21845 do not print progress messages
21846 -d, --debug don't remove temporary files
21847 --recheck update $as_me by reconfiguring in the same conditions
21848 --file=FILE[:TEMPLATE]
21849 instantiate the configuration file FILE
21850 --header=FILE[:TEMPLATE]
21851 instantiate the configuration header FILE
21852
21853Configuration files:
21854$config_files
21855
21856Configuration headers:
21857$config_headers
21858
21859Configuration commands:
21860$config_commands
21861
21862Report bugs to <support@itibia.com>."
21863
21864_ACEOF
21865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21866ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21867ac_cs_version="\\
21868library config.status 1.0
21869configured by $0, generated by GNU Autoconf 2.67,
21870 with options \\"\$ac_cs_config\\"
21871
21872Copyright (C) 2010 Free Software Foundation, Inc.
21873This config.status script is free software; the Free Software Foundation
21874gives unlimited permission to copy, distribute and modify it."
21875
21876ac_pwd='$ac_pwd'
21877srcdir='$srcdir'
21878INSTALL='$INSTALL'
21879MKDIR_P='$MKDIR_P'
21880AWK='$AWK'
21881test -n "\$AWK" || AWK=awk
21882_ACEOF
21883
21884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21885# The default lists apply if the user does not specify any file.
21886ac_need_defaults=:
21887while test $# != 0
21888do
21889 case $1 in
21890 --*=?*)
21891 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21892 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21893 ac_shift=:
21894 ;;
21895 --*=)
21896 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21897 ac_optarg=
21898 ac_shift=:
21899 ;;
21900 *)
21901 ac_option=$1
21902 ac_optarg=$2
21903 ac_shift=shift
21904 ;;
21905 esac
21906
21907 case $ac_option in
21908 # Handling of the options.
21909 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21910 ac_cs_recheck=: ;;
21911 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21912 $as_echo "$ac_cs_version"; exit ;;
21913 --config | --confi | --conf | --con | --co | --c )
21914 $as_echo "$ac_cs_config"; exit ;;
21915 --debug | --debu | --deb | --de | --d | -d )
21916 debug=: ;;
21917 --file | --fil | --fi | --f )
21918 $ac_shift
21919 case $ac_optarg in
21920 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21921 '') as_fn_error $? "missing file argument" ;;
21922 esac
21923 as_fn_append CONFIG_FILES " '$ac_optarg'"
21924 ac_need_defaults=false;;
21925 --header | --heade | --head | --hea )
21926 $ac_shift
21927 case $ac_optarg in
21928 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21929 esac
21930 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21931 ac_need_defaults=false;;
21932 --he | --h)
21933 # Conflict between --help and --header
21934 as_fn_error $? "ambiguous option: \`$1'
21935Try \`$0 --help' for more information.";;
21936 --help | --hel | -h )
21937 $as_echo "$ac_cs_usage"; exit ;;
21938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21939 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21940 ac_cs_silent=: ;;
21941
21942 # This is an error.
21943 -*) as_fn_error $? "unrecognized option: \`$1'
21944Try \`$0 --help' for more information." ;;
21945
21946 *) as_fn_append ac_config_targets " $1"
21947 ac_need_defaults=false ;;
21948
21949 esac
21950 shift
21951done
21952
21953ac_configure_extra_args=
21954
21955if $ac_cs_silent; then
21956 exec 6>/dev/null
21957 ac_configure_extra_args="$ac_configure_extra_args --silent"
21958fi
21959
21960_ACEOF
21961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21962if \$ac_cs_recheck; then
21963 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21964 shift
21965 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21966 CONFIG_SHELL='$SHELL'
21967 export CONFIG_SHELL
21968 exec "\$@"
21969fi
21970
21971_ACEOF
21972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21973exec 5>>config.log
21974{
21975 echo
21976 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21977@%:@@%:@ Running $as_me. @%:@@%:@
21978_ASBOX
21979 $as_echo "$ac_log"
21980} >&5
21981
21982_ACEOF
21983cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21984#
21985# INIT-COMMANDS
21986#
21987AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21988
21989_ACEOF
21990
21991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21992
21993# Handling of arguments.
21994for ac_config_target in $ac_config_targets
21995do
21996 case $ac_config_target in
21997 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21998 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21999 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22000 "libpool/src/Makefile") CONFIG_FILES="$CONFIG_FILES libpool/src/Makefile" ;;
22001 "libxmlet/src/Makefile") CONFIG_FILES="$CONFIG_FILES libxmlet/src/Makefile" ;;
22002 "libcwmp/src/Makefile") CONFIG_FILES="$CONFIG_FILES libcwmp/src/Makefile" ;;
22003 "cwmpd/src/Makefile") CONFIG_FILES="$CONFIG_FILES cwmpd/src/Makefile" ;;
22004 "tests/src/Makefile") CONFIG_FILES="$CONFIG_FILES tests/src/Makefile" ;;
22005
22006 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
22007 esac
22008done
22009
22010
22011# If the user did not use the arguments to specify the items to instantiate,
22012# then the envvar interface is used. Set only those that are not.
22013# We use the long form for the default assignment because of an extremely
22014# bizarre bug on SunOS 4.1.3.
22015if $ac_need_defaults; then
22016 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22017 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22018 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22019fi
22020
22021# Have a temporary directory for convenience. Make it in the build tree
22022# simply because there is no reason against having it here, and in addition,
22023# creating and moving files from /tmp can sometimes cause problems.
22024# Hook for its removal unless debugging.
22025# Note that there is a small window in which the directory will not be cleaned:
22026# after its creation but before its name has been assigned to `$tmp'.
22027$debug ||
22028{
22029 tmp=
22030 trap 'exit_status=$?
22031 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22032' 0
22033 trap 'as_fn_exit 1' 1 2 13 15
22034}
22035# Create a (secure) tmp directory for tmp files.
22036
22037{
22038 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22039 test -n "$tmp" && test -d "$tmp"
22040} ||
22041{
22042 tmp=./conf$$-$RANDOM
22043 (umask 077 && mkdir "$tmp")
22044} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22045
22046# Set up the scripts for CONFIG_FILES section.
22047# No need to generate them if there are no CONFIG_FILES.
22048# This happens for instance with `./config.status config.h'.
22049if test -n "$CONFIG_FILES"; then
22050
22051
22052ac_cr=`echo X | tr X '\015'`
22053# On cygwin, bash can eat \r inside `` if the user requested igncr.
22054# But we know of no other shell where ac_cr would be empty at this
22055# point, so we can use a bashism as a fallback.
22056if test "x$ac_cr" = x; then
22057 eval ac_cr=\$\'\\r\'
22058fi
22059ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22060if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22061 ac_cs_awk_cr='\\r'
22062else
22063 ac_cs_awk_cr=$ac_cr
22064fi
22065
22066echo 'BEGIN {' >"$tmp/subs1.awk" &&
22067_ACEOF
22068
22069
22070{
22071 echo "cat >conf$$subs.awk <<_ACEOF" &&
22072 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22073 echo "_ACEOF"
22074} >conf$$subs.sh ||
22075 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22076ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22077ac_delim='%!_!# '
22078for ac_last_try in false false false false false :; do
22079 . ./conf$$subs.sh ||
22080 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22081
22082 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22083 if test $ac_delim_n = $ac_delim_num; then
22084 break
22085 elif $ac_last_try; then
22086 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22087 else
22088 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22089 fi
22090done
22091rm -f conf$$subs.sh
22092
22093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22094cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22095_ACEOF
22096sed -n '
22097h
22098s/^/S["/; s/!.*/"]=/
22099p
22100g
22101s/^[^!]*!//
22102:repl
22103t repl
22104s/'"$ac_delim"'$//
22105t delim
22106:nl
22107h
22108s/\(.\{148\}\)..*/\1/
22109t more1
22110s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22111p
22112n
22113b repl
22114:more1
22115s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22116p
22117g
22118s/.\{148\}//
22119t nl
22120:delim
22121h
22122s/\(.\{148\}\)..*/\1/
22123t more2
22124s/["\\]/\\&/g; s/^/"/; s/$/"/
22125p
22126b
22127:more2
22128s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22129p
22130g
22131s/.\{148\}//
22132t delim
22133' <conf$$subs.awk | sed '
22134/^[^""]/{
22135 N
22136 s/\n//
22137}
22138' >>$CONFIG_STATUS || ac_write_fail=1
22139rm -f conf$$subs.awk
22140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22141_ACAWK
22142cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22143 for (key in S) S_is_set[key] = 1
22144 FS = ""
22145
22146}
22147{
22148 line = $ 0
22149 nfields = split(line, field, "@")
22150 substed = 0
22151 len = length(field[1])
22152 for (i = 2; i < nfields; i++) {
22153 key = field[i]
22154 keylen = length(key)
22155 if (S_is_set[key]) {
22156 value = S[key]
22157 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22158 len += length(value) + length(field[++i])
22159 substed = 1
22160 } else
22161 len += 1 + keylen
22162 }
22163
22164 print line
22165}
22166
22167_ACAWK
22168_ACEOF
22169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22170if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22171 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22172else
22173 cat
22174fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22175 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22176_ACEOF
22177
22178# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22179# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22180# trailing colons and then remove the whole line if VPATH becomes empty
22181# (actually we leave an empty line to preserve line numbers).
22182if test "x$srcdir" = x.; then
22183 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22184h
22185s///
22186s/^/:/
22187s/[ ]*$/:/
22188s/:\$(srcdir):/:/g
22189s/:\${srcdir}:/:/g
22190s/:@srcdir@:/:/g
22191s/^:*//
22192s/:*$//
22193x
22194s/\(=[ ]*\).*/\1/
22195G
22196s/\n//
22197s/^[^=]*=[ ]*$//
22198}'
22199fi
22200
22201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22202fi # test -n "$CONFIG_FILES"
22203
22204# Set up the scripts for CONFIG_HEADERS section.
22205# No need to generate them if there are no CONFIG_HEADERS.
22206# This happens for instance with `./config.status Makefile'.
22207if test -n "$CONFIG_HEADERS"; then
22208cat >"$tmp/defines.awk" <<\_ACAWK ||
22209BEGIN {
22210_ACEOF
22211
22212# Transform confdefs.h into an awk script `defines.awk', embedded as
22213# here-document in config.status, that substitutes the proper values into
22214# config.h.in to produce config.h.
22215
22216# Create a delimiter string that does not exist in confdefs.h, to ease
22217# handling of long lines.
22218ac_delim='%!_!# '
22219for ac_last_try in false false :; do
22220 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22221 if test -z "$ac_t"; then
22222 break
22223 elif $ac_last_try; then
22224 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22225 else
22226 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22227 fi
22228done
22229
22230# For the awk script, D is an array of macro values keyed by name,
22231# likewise P contains macro parameters if any. Preserve backslash
22232# newline sequences.
22233
22234ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22235sed -n '
22236s/.\{148\}/&'"$ac_delim"'/g
22237t rset
22238:rset
22239s/^[ ]*#[ ]*define[ ][ ]*/ /
22240t def
22241d
22242:def
22243s/\\$//
22244t bsnl
22245s/["\\]/\\&/g
22246s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22247D["\1"]=" \3"/p
22248s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22249d
22250:bsnl
22251s/["\\]/\\&/g
22252s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22253D["\1"]=" \3\\\\\\n"\\/p
22254t cont
22255s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22256t cont
22257d
22258:cont
22259n
22260s/.\{148\}/&'"$ac_delim"'/g
22261t clear
22262:clear
22263s/\\$//
22264t bsnlc
22265s/["\\]/\\&/g; s/^/"/; s/$/"/p
22266d
22267:bsnlc
22268s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22269b cont
22270' <confdefs.h | sed '
22271s/'"$ac_delim"'/"\\\
22272"/g' >>$CONFIG_STATUS || ac_write_fail=1
22273
22274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22275 for (key in D) D_is_set[key] = 1
22276 FS = ""
22277}
22278/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22279 line = \$ 0
22280 split(line, arg, " ")
22281 if (arg[1] == "#") {
22282 defundef = arg[2]
22283 mac1 = arg[3]
22284 } else {
22285 defundef = substr(arg[1], 2)
22286 mac1 = arg[2]
22287 }
22288 split(mac1, mac2, "(") #)
22289 macro = mac2[1]
22290 prefix = substr(line, 1, index(line, defundef) - 1)
22291 if (D_is_set[macro]) {
22292 # Preserve the white space surrounding the "#".
22293 print prefix "define", macro P[macro] D[macro]
22294 next
22295 } else {
22296 # Replace #undef with comments. This is necessary, for example,
22297 # in the case of _POSIX_SOURCE, which is predefined and required
22298 # on some systems where configure will not decide to define it.
22299 if (defundef == "undef") {
22300 print "/*", prefix defundef, macro, "*/"
22301 next
22302 }
22303 }
22304}
22305{ print }
22306_ACAWK
22307_ACEOF
22308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22309 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22310fi # test -n "$CONFIG_HEADERS"
22311
22312
22313eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22314shift
22315for ac_tag
22316do
22317 case $ac_tag in
22318 :[FHLC]) ac_mode=$ac_tag; continue;;
22319 esac
22320 case $ac_mode$ac_tag in
22321 :[FHL]*:*);;
22322 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
22323 :[FH]-) ac_tag=-:-;;
22324 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22325 esac
22326 ac_save_IFS=$IFS
22327 IFS=:
22328 set x $ac_tag
22329 IFS=$ac_save_IFS
22330 shift
22331 ac_file=$1
22332 shift
22333
22334 case $ac_mode in
22335 :L) ac_source=$1;;
22336 :[FH])
22337 ac_file_inputs=
22338 for ac_f
22339 do
22340 case $ac_f in
22341 -) ac_f="$tmp/stdin";;
22342 *) # Look for the file first in the build tree, then in the source tree
22343 # (if the path is not absolute). The absolute path cannot be DOS-style,
22344 # because $ac_f cannot contain `:'.
22345 test -f "$ac_f" ||
22346 case $ac_f in
22347 [\\/$]*) false;;
22348 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22349 esac ||
22350 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
22351 esac
22352 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22353 as_fn_append ac_file_inputs " '$ac_f'"
22354 done
22355
22356 # Let's still pretend it is `configure' which instantiates (i.e., don't
22357 # use $as_me), people would be surprised to read:
22358 # /* config.h. Generated by config.status. */
22359 configure_input='Generated from '`
22360 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22361 `' by configure.'
22362 if test x"$ac_file" != x-; then
22363 configure_input="$ac_file. $configure_input"
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22365$as_echo "$as_me: creating $ac_file" >&6;}
22366 fi
22367 # Neutralize special characters interpreted by sed in replacement strings.
22368 case $configure_input in #(
22369 *\&* | *\|* | *\\* )
22370 ac_sed_conf_input=`$as_echo "$configure_input" |
22371 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22372 *) ac_sed_conf_input=$configure_input;;
22373 esac
22374
22375 case $ac_tag in
22376 *:-:* | *:-) cat >"$tmp/stdin" \
22377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22378 esac
22379 ;;
22380 esac
22381
22382 ac_dir=`$as_dirname -- "$ac_file" ||
22383$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22384 X"$ac_file" : 'X\(//\)[^/]' \| \
22385 X"$ac_file" : 'X\(//\)$' \| \
22386 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22387$as_echo X"$ac_file" |
22388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22389 s//\1/
22390 q
22391 }
22392 /^X\(\/\/\)[^/].*/{
22393 s//\1/
22394 q
22395 }
22396 /^X\(\/\/\)$/{
22397 s//\1/
22398 q
22399 }
22400 /^X\(\/\).*/{
22401 s//\1/
22402 q
22403 }
22404 s/.*/./; q'`
22405 as_dir="$ac_dir"; as_fn_mkdir_p
22406 ac_builddir=.
22407
22408case "$ac_dir" in
22409.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22410*)
22411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22412 # A ".." for each directory in $ac_dir_suffix.
22413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22414 case $ac_top_builddir_sub in
22415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22417 esac ;;
22418esac
22419ac_abs_top_builddir=$ac_pwd
22420ac_abs_builddir=$ac_pwd$ac_dir_suffix
22421# for backward compatibility:
22422ac_top_builddir=$ac_top_build_prefix
22423
22424case $srcdir in
22425 .) # We are building in place.
22426 ac_srcdir=.
22427 ac_top_srcdir=$ac_top_builddir_sub
22428 ac_abs_top_srcdir=$ac_pwd ;;
22429 [\\/]* | ?:[\\/]* ) # Absolute name.
22430 ac_srcdir=$srcdir$ac_dir_suffix;
22431 ac_top_srcdir=$srcdir
22432 ac_abs_top_srcdir=$srcdir ;;
22433 *) # Relative name.
22434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22435 ac_top_srcdir=$ac_top_build_prefix$srcdir
22436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22437esac
22438ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22439
22440
22441 case $ac_mode in
22442 :F)
22443 #
22444 # CONFIG_FILE
22445 #
22446
22447 case $INSTALL in
22448 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22449 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22450 esac
22451 ac_MKDIR_P=$MKDIR_P
22452 case $MKDIR_P in
22453 [\\/$]* | ?:[\\/]* ) ;;
22454 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22455 esac
22456_ACEOF
22457
22458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22459# If the template does not know about datarootdir, expand it.
22460# FIXME: This hack should be removed a few years after 2.60.
22461ac_datarootdir_hack=; ac_datarootdir_seen=
22462ac_sed_dataroot='
22463/datarootdir/ {
22464 p
22465 q
22466}
22467/@datadir@/p
22468/@docdir@/p
22469/@infodir@/p
22470/@localedir@/p
22471/@mandir@/p'
22472case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22473*datarootdir*) ac_datarootdir_seen=yes;;
22474*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22476$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22477_ACEOF
22478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22479 ac_datarootdir_hack='
22480 s&@datadir@&$datadir&g
22481 s&@docdir@&$docdir&g
22482 s&@infodir@&$infodir&g
22483 s&@localedir@&$localedir&g
22484 s&@mandir@&$mandir&g
22485 s&\\\${datarootdir}&$datarootdir&g' ;;
22486esac
22487_ACEOF
22488
22489# Neutralize VPATH when `$srcdir' = `.'.
22490# Shell code in configure.ac might set extrasub.
22491# FIXME: do we really want to maintain this feature?
22492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22493ac_sed_extra="$ac_vpsub
22494$extrasub
22495_ACEOF
22496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22497:t
22498/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22499s|@configure_input@|$ac_sed_conf_input|;t t
22500s&@top_builddir@&$ac_top_builddir_sub&;t t
22501s&@top_build_prefix@&$ac_top_build_prefix&;t t
22502s&@srcdir@&$ac_srcdir&;t t
22503s&@abs_srcdir@&$ac_abs_srcdir&;t t
22504s&@top_srcdir@&$ac_top_srcdir&;t t
22505s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22506s&@builddir@&$ac_builddir&;t t
22507s&@abs_builddir@&$ac_abs_builddir&;t t
22508s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22509s&@INSTALL@&$ac_INSTALL&;t t
22510s&@MKDIR_P@&$ac_MKDIR_P&;t t
22511$ac_datarootdir_hack
22512"
22513eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22514 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22515
22516test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22517 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22520which seems to be undefined. Please make sure it is defined" >&5
22521$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22522which seems to be undefined. Please make sure it is defined" >&2;}
22523
22524 rm -f "$tmp/stdin"
22525 case $ac_file in
22526 -) cat "$tmp/out" && rm -f "$tmp/out";;
22527 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22528 esac \
22529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22530 ;;
22531 :H)
22532 #
22533 # CONFIG_HEADER
22534 #
22535 if test x"$ac_file" != x-; then
22536 {
22537 $as_echo "/* $configure_input */" \
22538 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22539 } >"$tmp/config.h" \
22540 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22541 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22543$as_echo "$as_me: $ac_file is unchanged" >&6;}
22544 else
22545 rm -f "$ac_file"
22546 mv "$tmp/config.h" "$ac_file" \
22547 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22548 fi
22549 else
22550 $as_echo "/* $configure_input */" \
22551 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22552 || as_fn_error $? "could not create -" "$LINENO" 5
22553 fi
22554# Compute "$ac_file"'s index in $config_headers.
22555_am_arg="$ac_file"
22556_am_stamp_count=1
22557for _am_header in $config_headers :; do
22558 case $_am_header in
22559 $_am_arg | $_am_arg:* )
22560 break ;;
22561 * )
22562 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22563 esac
22564done
22565echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22566$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22567 X"$_am_arg" : 'X\(//\)[^/]' \| \
22568 X"$_am_arg" : 'X\(//\)$' \| \
22569 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22570$as_echo X"$_am_arg" |
22571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22572 s//\1/
22573 q
22574 }
22575 /^X\(\/\/\)[^/].*/{
22576 s//\1/
22577 q
22578 }
22579 /^X\(\/\/\)$/{
22580 s//\1/
22581 q
22582 }
22583 /^X\(\/\).*/{
22584 s//\1/
22585 q
22586 }
22587 s/.*/./; q'`/stamp-h$_am_stamp_count
22588 ;;
22589
22590 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22591$as_echo "$as_me: executing $ac_file commands" >&6;}
22592 ;;
22593 esac
22594
22595
22596 case $ac_file$ac_mode in
22597 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22598 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22599 # are listed without --file. Let's play safe and only enable the eval
22600 # if we detect the quoting.
22601 case $CONFIG_FILES in
22602 *\'*) eval set x "$CONFIG_FILES" ;;
22603 *) set x $CONFIG_FILES ;;
22604 esac
22605 shift
22606 for mf
22607 do
22608 # Strip MF so we end up with the name of the file.
22609 mf=`echo "$mf" | sed -e 's/:.*$//'`
22610 # Check whether this is an Automake generated Makefile or not.
22611 # We used to match only the files named `Makefile.in', but
22612 # some people rename them; so instead we look at the file content.
22613 # Grep'ing the first line is not enough: some people post-process
22614 # each Makefile.in and add a new line on top of each file to say so.
22615 # Grep'ing the whole file is not good either: AIX grep has a line
22616 # limit of 2048, but all sed's we know have understand at least 4000.
22617 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22618 dirpart=`$as_dirname -- "$mf" ||
22619$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22620 X"$mf" : 'X\(//\)[^/]' \| \
22621 X"$mf" : 'X\(//\)$' \| \
22622 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22623$as_echo X"$mf" |
22624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22625 s//\1/
22626 q
22627 }
22628 /^X\(\/\/\)[^/].*/{
22629 s//\1/
22630 q
22631 }
22632 /^X\(\/\/\)$/{
22633 s//\1/
22634 q
22635 }
22636 /^X\(\/\).*/{
22637 s//\1/
22638 q
22639 }
22640 s/.*/./; q'`
22641 else
22642 continue
22643 fi
22644 # Extract the definition of DEPDIR, am__include, and am__quote
22645 # from the Makefile without running `make'.
22646 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22647 test -z "$DEPDIR" && continue
22648 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22649 test -z "am__include" && continue
22650 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22651 # When using ansi2knr, U may be empty or an underscore; expand it
22652 U=`sed -n 's/^U = //p' < "$mf"`
22653 # Find all dependency output files, they are included files with
22654 # $(DEPDIR) in their names. We invoke sed twice because it is the
22655 # simplest approach to changing $(DEPDIR) to its actual value in the
22656 # expansion.
22657 for file in `sed -n "
22658 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22659 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22660 # Make sure the directory exists.
22661 test -f "$dirpart/$file" && continue
22662 fdir=`$as_dirname -- "$file" ||
22663$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22664 X"$file" : 'X\(//\)[^/]' \| \
22665 X"$file" : 'X\(//\)$' \| \
22666 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22667$as_echo X"$file" |
22668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22669 s//\1/
22670 q
22671 }
22672 /^X\(\/\/\)[^/].*/{
22673 s//\1/
22674 q
22675 }
22676 /^X\(\/\/\)$/{
22677 s//\1/
22678 q
22679 }
22680 /^X\(\/\).*/{
22681 s//\1/
22682 q
22683 }
22684 s/.*/./; q'`
22685 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22686 # echo "creating $dirpart/$file"
22687 echo '# dummy' > "$dirpart/$file"
22688 done
22689 done
22690}
22691 ;;
22692
22693 esac
22694done # for ac_tag
22695
22696
22697as_fn_exit 0
22698_ACEOF
22699ac_clean_files=$ac_clean_files_save
22700
22701test $ac_write_fail = 0 ||
22702 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22703
22704
22705# configure is writing to config.log, and then calls config.status.
22706# config.status does its own redirection, appending to config.log.
22707# Unfortunately, on DOS this fails, as config.log is still kept open
22708# by configure, so config.status won't be able to write to it; its
22709# output is simply discarded. So we exec the FD to /dev/null,
22710# effectively closing config.log, so it can be properly (re)opened and
22711# appended to by config.status. When coming back to configure, we
22712# need to make the FD available again.
22713if test "$no_create" != yes; then
22714 ac_cs_success=:
22715 ac_config_status_args=
22716 test "$silent" = yes &&
22717 ac_config_status_args="$ac_config_status_args --quiet"
22718 exec 5>/dev/null
22719 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22720 exec 5>>config.log
22721 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22722 # would make configure fail if this is the last instruction.
22723 $ac_cs_success || as_fn_exit 1
22724fi
22725if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22727$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22728fi
22729