Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for libdivsufsort 2.0.1.
4 #
5 # Report bugs to <[email protected]>.
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
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if 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
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_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.
47 if 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 --'
51 elif (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'
54 else
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'
74 fi
75
76 # The user is always right.
77 if 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 }
83 fi
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.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
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
103 IFS=$as_save_IFS
104
105 ;;
106 esac
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.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
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.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if 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
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test 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
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
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
202 fi
203 fi
204 done;;
205 esac
206 as_found=false
207 done
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
211 fi; }
212 IFS=$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+"$@"}
224 fi
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 [email protected] and [email protected]
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
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257 { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_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.
272 as_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 "$as_dir" as a directory, including parents if necessary.
282 as_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.
332 if (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 }'
337 else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342 fi # 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 $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354 else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $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.
367 as_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
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
395 fi
396
397 as_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.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_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
455 ECHO_C= ECHO_N= ECHO_T=
456 case `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';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474 fi
475 if (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
489 else
490 as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
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 '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_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.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553 else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562 $*
563 _LT_EOF
564 exit 0
565 fi
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
571 if test -z "$lt_ECHO"; then
572 if 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 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='libdivsufsort'
703 PACKAGE_TARNAME='libdivsufsort'
704 PACKAGE_VERSION='2.0.1'
705 PACKAGE_STRING='libdivsufsort 2.0.1'
706 PACKAGE_BUGREPORT='[email protected]'
707 PACKAGE_URL=''
708
709 ac_unique_file="include/divsufsort.h.cmake"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
712 #include <stdio.h>
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
715 #endif
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
718 #endif
719 #ifdef STDC_HEADERS
720 # include <stdlib.h>
721 # include <stddef.h>
722 #else
723 # ifdef HAVE_STDLIB_H
724 # include <stdlib.h>
725 # endif
726 #endif
727 #ifdef HAVE_STRING_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 # include <memory.h>
730 # endif
731 # include <string.h>
732 #endif
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
735 #endif
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
738 #endif
739 #ifdef HAVE_STDINT_H
740 # include <stdint.h>
741 #endif
742 #ifdef HAVE_UNISTD_H
743 # include <unistd.h>
744 #endif"
745
746 ac_subst_vars='am__EXEEXT_FALSE
747 am__EXEEXT_TRUE
748 LTLIBOBJS
749 LIBOBJS
750 LFS_PRID
751 LFS_FSEEK
752 LFS_FTELL
753 LFS_FOPEN
754 LFS_OFF_T
755 DIVSUFSORT_IMPORT
756 DIVSUFSORT_EXPORT
757 W64BIT
758 SAINDEX_PRId
759 SAINDEX_TYPE
760 DIVSUFSORT64_FALSE
761 DIVSUFSORT64_TRUE
762 SAINT64_PRId
763 SAINT64_TYPE
764 SAINT_PRId
765 SAINT32_TYPE
766 SAUCHAR_TYPE
767 INCFILE
768 LIBTOOL_DEPS
769 CPP
770 OTOOL64
771 OTOOL
772 LIPO
773 NMEDIT
774 DSYMUTIL
775 lt_ECHO
776 RANLIB
777 AR
778 OBJDUMP
779 LN_S
780 NM
781 ac_ct_DUMPBIN
782 DUMPBIN
783 LD
784 FGREP
785 EGREP
786 GREP
787 SED
788 LIBTOOL
789 am__fastdepCC_FALSE
790 am__fastdepCC_TRUE
791 CCDEPMODE
792 AMDEPBACKSLASH
793 AMDEP_FALSE
794 AMDEP_TRUE
795 am__quote
796 am__include
797 DEPDIR
798 OBJEXT
799 EXEEXT
800 ac_ct_CC
801 CPPFLAGS
802 LDFLAGS
803 CFLAGS
804 CC
805 PROJECT_URL
806 PROJECT_VERSION_FULL
807 PROJECT_DESCRIPTION
808 PROJECT_NAME
809 LT_REVISION
810 LT_AGE
811 LT_CURRENT
812 MAINT
813 MAINTAINER_MODE_FALSE
814 MAINTAINER_MODE_TRUE
815 am__untar
816 am__tar
817 AMTAR
818 am__leading_dot
819 SET_MAKE
820 AWK
821 mkdir_p
822 MKDIR_P
823 INSTALL_STRIP_PROGRAM
824 STRIP
825 install_sh
826 MAKEINFO
827 AUTOHEADER
828 AUTOMAKE
829 AUTOCONF
830 ACLOCAL
831 VERSION
832 PACKAGE
833 CYGPATH_W
834 am__isrc
835 INSTALL_DATA
836 INSTALL_SCRIPT
837 INSTALL_PROGRAM
838 target_os
839 target_vendor
840 target_cpu
841 target
842 host_os
843 host_vendor
844 host_cpu
845 host
846 build_os
847 build_vendor
848 build_cpu
849 build
850 target_alias
851 host_alias
852 build_alias
853 LIBS
854 ECHO_T
855 ECHO_N
856 ECHO_C
857 DEFS
858 mandir
859 localedir
860 libdir
861 psdir
862 pdfdir
863 dvidir
864 htmldir
865 infodir
866 docdir
867 oldincludedir
868 includedir
869 localstatedir
870 sharedstatedir
871 sysconfdir
872 datadir
873 datarootdir
874 libexecdir
875 sbindir
876 bindir
877 program_transform_name
878 prefix
879 exec_prefix
880 PACKAGE_URL
881 PACKAGE_BUGREPORT
882 PACKAGE_STRING
883 PACKAGE_VERSION
884 PACKAGE_TARNAME
885 PACKAGE_NAME
886 PATH_SEPARATOR
887 SHELL'
888 ac_subst_files=''
889 ac_user_opts='
890 enable_option_checking
891 enable_maintainer_mode
892 enable_dependency_tracking
893 enable_shared
894 enable_static
895 with_pic
896 enable_fast_install
897 with_gnu_ld
898 enable_libtool_lock
899 enable_divsufsort64
900 '
901 ac_precious_vars='build_alias
902 host_alias
903 target_alias
904 CC
905 CFLAGS
906 LDFLAGS
907 LIBS
908 CPPFLAGS
909 CPP'
910
911
912 # Initialize some variables set by options.
913 ac_init_help=
914 ac_init_version=false
915 ac_unrecognized_opts=
916 ac_unrecognized_sep=
917 # The variables have the same names as the options, with
918 # dashes changed to underlines.
919 cache_file=/dev/null
920 exec_prefix=NONE
921 no_create=
922 no_recursion=
923 prefix=NONE
924 program_prefix=NONE
925 program_suffix=NONE
926 program_transform_name=s,x,x,
927 silent=
928 site=
929 srcdir=
930 verbose=
931 x_includes=NONE
932 x_libraries=NONE
933
934 # Installation directory options.
935 # These are left unexpanded so users can "make install exec_prefix=/foo"
936 # and all the variables that are supposed to be based on exec_prefix
937 # by default will actually change.
938 # Use braces instead of parens because sh, perl, etc. also accept them.
939 # (The list follows the same order as the GNU Coding Standards.)
940 bindir='${exec_prefix}/bin'
941 sbindir='${exec_prefix}/sbin'
942 libexecdir='${exec_prefix}/libexec'
943 datarootdir='${prefix}/share'
944 datadir='${datarootdir}'
945 sysconfdir='${prefix}/etc'
946 sharedstatedir='${prefix}/com'
947 localstatedir='${prefix}/var'
948 includedir='${prefix}/include'
949 oldincludedir='/usr/include'
950 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
951 infodir='${datarootdir}/info'
952 htmldir='${docdir}'
953 dvidir='${docdir}'
954 pdfdir='${docdir}'
955 psdir='${docdir}'
956 libdir='${exec_prefix}/lib'
957 localedir='${datarootdir}/locale'
958 mandir='${datarootdir}/man'
959
960 ac_prev=
961 ac_dashdash=
962 for ac_option
963 do
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\$ac_option
967 ac_prev=
968 continue
969 fi
970
971 case $ac_option in
972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 *=) ac_optarg= ;;
974 *) ac_optarg=yes ;;
975 esac
976
977 # Accept the important Cygnus configure options, so we can diagnose typos.
978
979 case $ac_dashdash$ac_option in
980 --)
981 ac_dashdash=yes ;;
982
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 ac_prev=bindir ;;
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986 bindir=$ac_optarg ;;
987
988 -build | --build | --buil | --bui | --bu)
989 ac_prev=build_alias ;;
990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991 build_alias=$ac_optarg ;;
992
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998 cache_file=$ac_optarg ;;
999
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
1002
1003 -datadir | --datadir | --datadi | --datad)
1004 ac_prev=datadir ;;
1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006 datadir=$ac_optarg ;;
1007
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1014
1015 -disable-* | --disable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid feature name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=no ;;
1030
1031 -docdir | --docdir | --docdi | --doc | --do)
1032 ac_prev=docdir ;;
1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034 docdir=$ac_optarg ;;
1035
1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037 ac_prev=dvidir ;;
1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039 dvidir=$ac_optarg ;;
1040
1041 -enable-* | --enable-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error $? "invalid feature name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1049 *"
1050 "enable_$ac_useropt"
1051 "*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval enable_$ac_useropt=\$ac_optarg ;;
1056
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
1064 exec_prefix=$ac_optarg ;;
1065
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1068 with_gas=yes ;;
1069
1070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
1076
1077 -host | --host | --hos | --ho)
1078 ac_prev=host_alias ;;
1079 -host=* | --host=* | --hos=* | --ho=*)
1080 host_alias=$ac_optarg ;;
1081
1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083 ac_prev=htmldir ;;
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085 | --ht=*)
1086 htmldir=$ac_optarg ;;
1087
1088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
1093 includedir=$ac_optarg ;;
1094
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1096 ac_prev=infodir ;;
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098 infodir=$ac_optarg ;;
1099
1100 -libdir | --libdir | --libdi | --libd)
1101 ac_prev=libdir ;;
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103 libdir=$ac_optarg ;;
1104
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
1110 libexecdir=$ac_optarg ;;
1111
1112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1116
1117 -localstatedir | --localstatedir | --localstatedi | --localstated \
1118 | --localstate | --localstat | --localsta | --localst | --locals)
1119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122 localstatedir=$ac_optarg ;;
1123
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125 ac_prev=mandir ;;
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127 mandir=$ac_optarg ;;
1128
1129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1131 with_fp=no ;;
1132
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134 | --no-cr | --no-c | -n)
1135 no_create=yes ;;
1136
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 no_recursion=yes ;;
1140
1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148 oldincludedir=$ac_optarg ;;
1149
1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151 ac_prev=prefix ;;
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153 prefix=$ac_optarg ;;
1154
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160 program_prefix=$ac_optarg ;;
1161
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167 program_suffix=$ac_optarg ;;
1168
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
1184 program_transform_name=$ac_optarg ;;
1185
1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187 ac_prev=pdfdir ;;
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1190
1191 -psdir | --psdir | --psdi | --psd | --ps)
1192 ac_prev=psdir ;;
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 psdir=$ac_optarg ;;
1195
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1198 silent=yes ;;
1199
1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201 ac_prev=sbindir ;;
1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203 | --sbi=* | --sb=*)
1204 sbindir=$ac_optarg ;;
1205
1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208 | --sharedst | --shareds | --shared | --share | --shar \
1209 | --sha | --sh)
1210 ac_prev=sharedstatedir ;;
1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214 | --sha=* | --sh=*)
1215 sharedstatedir=$ac_optarg ;;
1216
1217 -site | --site | --sit)
1218 ac_prev=site ;;
1219 -site=* | --site=* | --sit=*)
1220 site=$ac_optarg ;;
1221
1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223 ac_prev=srcdir ;;
1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225 srcdir=$ac_optarg ;;
1226
1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228 | --syscon | --sysco | --sysc | --sys | --sy)
1229 ac_prev=sysconfdir ;;
1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232 sysconfdir=$ac_optarg ;;
1233
1234 -target | --target | --targe | --targ | --tar | --ta | --t)
1235 ac_prev=target_alias ;;
1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237 target_alias=$ac_optarg ;;
1238
1239 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240 verbose=yes ;;
1241
1242 -version | --version | --versio | --versi | --vers | -V)
1243 ac_init_version=: ;;
1244
1245 -with-* | --with-*)
1246 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249 as_fn_error $? "invalid package name: $ac_useropt"
1250 ac_useropt_orig=$ac_useropt
1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1253 *"
1254 "with_$ac_useropt"
1255 "*) ;;
1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1257 ac_unrecognized_sep=', ';;
1258 esac
1259 eval with_$ac_useropt=\$ac_optarg ;;
1260
1261 -without-* | --without-*)
1262 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265 as_fn_error $? "invalid package name: $ac_useropt"
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1269 *"
1270 "with_$ac_useropt"
1271 "*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval with_$ac_useropt=no ;;
1276
1277 --x)
1278 # Obsolete; use --with-x.
1279 with_x=yes ;;
1280
1281 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282 | --x-incl | --x-inc | --x-in | --x-i)
1283 ac_prev=x_includes ;;
1284 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1286 x_includes=$ac_optarg ;;
1287
1288 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290 ac_prev=x_libraries ;;
1291 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1293 x_libraries=$ac_optarg ;;
1294
1295 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1296 Try \`$0 --help' for more information"
1297 ;;
1298
1299 *=*)
1300 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1301 # Reject names that are not valid shell variable names.
1302 case $ac_envvar in #(
1303 '' | [0-9]* | *[!_$as_cr_alnum]* )
1304 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1305 esac
1306 eval $ac_envvar=\$ac_optarg
1307 export $ac_envvar ;;
1308
1309 *)
1310 # FIXME: should be removed in autoconf 3.0.
1311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1315 ;;
1316
1317 esac
1318 done
1319
1320 if test -n "$ac_prev"; then
1321 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1322 as_fn_error $? "missing argument to $ac_option"
1323 fi
1324
1325 if test -n "$ac_unrecognized_opts"; then
1326 case $enable_option_checking in
1327 no) ;;
1328 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1329 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1330 esac
1331 fi
1332
1333 # Check all directory arguments for consistency.
1334 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
1338 do
1339 eval ac_val=\$$ac_var
1340 # Remove trailing slashes.
1341 case $ac_val in
1342 */ )
1343 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344 eval $ac_var=\$ac_val;;
1345 esac
1346 # Be sure to have absolute directory names.
1347 case $ac_val in
1348 [\\/$]* | ?:[\\/]* ) continue;;
1349 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1350 esac
1351 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1352 done
1353
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1357 build=$build_alias
1358 host=$host_alias
1359 target=$target_alias
1360
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x; then
1363 if test "x$build_alias" = x; then
1364 cross_compiling=maybe
1365 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1366 If a cross compiler is detected then cross compile mode will be used" >&2
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370 fi
1371
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375 test "$silent" = yes && exec 6>/dev/null
1376
1377
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $? "working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $? "pwd does not report name of working directory"
1384
1385
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 $as_echo X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)[^/].*/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)$/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\).*/{
1409 s//\1/
1410 q
1411 }
1412 s/.*/./; q'`
1413 srcdir=$ac_confdir
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 srcdir=..
1416 fi
1417 else
1418 ac_srcdir_defaulted=no
1419 fi
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1423 fi
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427 pwd)`
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1431 fi
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1435 case $srcdir in
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 esac
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 done
1444
1445 #
1446 # Report the --help message.
1447 #
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
1452 \`configure' configures libdivsufsort 2.0.1 to adapt to many kinds of systems.
1453
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1458
1459 Defaults for the options are specified in brackets.
1460
1461 Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 [PREFIX]
1477
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1482
1483 For better control, use the options below.
1484
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/libdivsufsort]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1505 _ACEOF
1506
1507 cat <<\_ACEOF
1508
1509 Program names:
1510 --program-prefix=PREFIX prepend PREFIX to installed program names
1511 --program-suffix=SUFFIX append SUFFIX to installed program names
1512 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1513
1514 System types:
1515 --build=BUILD configure for building on BUILD [guessed]
1516 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1517 --target=TARGET configure for building compilers for TARGET [HOST]
1518 _ACEOF
1519 fi
1520
1521 if test -n "$ac_init_help"; then
1522 case $ac_init_help in
1523 short | recursive ) echo "Configuration of libdivsufsort 2.0.1:";;
1524 esac
1525 cat <<\_ACEOF
1526
1527 Optional Features:
1528 --disable-option-checking ignore unrecognized --enable/--with options
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1531 --enable-maintainer-mode enable make rules and dependencies not useful
1532 (and sometimes confusing) to the casual installer
1533 --disable-dependency-tracking speeds up one-time build
1534 --enable-dependency-tracking do not reject slow dependency extractors
1535 --enable-shared[=PKGS] build shared libraries [default=no]
1536 --enable-static[=PKGS] build static libraries [default=yes]
1537 --enable-fast-install[=PKGS]
1538 optimize for fast installation [default=yes]
1539 --disable-libtool-lock avoid locking (might break parallel builds)
1540 --enable-divsufsort64 build libdivsufsort64
1541
1542 Optional Packages:
1543 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1544 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1545 --with-pic try to use only PIC/non-PIC objects [default=use
1546 both]
1547 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1548
1549 Some influential environment variables:
1550 CC C compiler command
1551 CFLAGS C compiler flags
1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
1554 LIBS libraries to pass to the linker, e.g. -l<library>
1555 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
1557 CPP C preprocessor
1558
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1561
1562 Report bugs to <[email protected]>.
1563 _ACEOF
1564 ac_status=$?
1565 fi
1566
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" ||
1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572 continue
1573 ac_builddir=.
1574
1575 case "$ac_dir" in
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *)
1578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579 # A ".." for each directory in $ac_dir_suffix.
1580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581 case $ac_top_builddir_sub in
1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584 esac ;;
1585 esac
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1590
1591 case $srcdir in
1592 .) # We are building in place.
1593 ac_srcdir=.
1594 ac_top_srcdir=$ac_top_builddir_sub
1595 ac_abs_top_srcdir=$ac_pwd ;;
1596 [\\/]* | ?:[\\/]* ) # Absolute name.
1597 ac_srcdir=$srcdir$ac_dir_suffix;
1598 ac_top_srcdir=$srcdir
1599 ac_abs_top_srcdir=$srcdir ;;
1600 *) # Relative name.
1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602 ac_top_srcdir=$ac_top_build_prefix$srcdir
1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 esac
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606
1607 cd "$ac_dir" || { ac_status=$?; continue; }
1608 # Check for guested configure.
1609 if test -f "$ac_srcdir/configure.gnu"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612 elif test -f "$ac_srcdir/configure"; then
1613 echo &&
1614 $SHELL "$ac_srcdir/configure" --help=recursive
1615 else
1616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617 fi || ac_status=$?
1618 cd "$ac_pwd" || { ac_status=$?; break; }
1619 done
1620 fi
1621
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1624 cat <<\_ACEOF
1625 libdivsufsort configure 2.0.1
1626 generated by GNU Autoconf 2.67
1627
1628 Copyright (C) 2010 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1631 _ACEOF
1632 exit
1633 fi
1634
1635 ## ------------------------ ##
1636 ## Autoconf initialization. ##
1637 ## ------------------------ ##
1638
1639 # ac_fn_c_try_compile LINENO
1640 # --------------------------
1641 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_compile ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 rm -f conftest.$ac_objext
1646 if { { ac_try="$ac_compile"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_compile") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1659 fi
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && {
1662 test -z "$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 } && test -s conftest.$ac_objext; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=1
1671 fi
1672 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673 as_fn_set_status $ac_retval
1674
1675 } # ac_fn_c_try_compile
1676
1677 # ac_fn_c_try_link LINENO
1678 # -----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_link ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext conftest$ac_exeext
1684 if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest$ac_exeext && {
1703 test "$cross_compiling" = yes ||
1704 $as_test_x conftest$ac_exeext
1705 }; then :
1706 ac_retval=0
1707 else
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1
1712 fi
1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715 # interfere with the next link command; also delete a directory that is
1716 # left behind by Apple's compiler. We do this before executing the actions.
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719 as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_link
1722
1723 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724 # -------------------------------------------------------
1725 # Tests whether HEADER exists and can be compiled using the include files in
1726 # INCLUDES, setting the cache variable VAR accordingly.
1727 ac_fn_c_check_header_compile ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if eval "test \"\${$3+set}\"" = set; then :
1733 $as_echo_n "(cached) " >&6
1734 else
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 $4
1738 #include <$2>
1739 _ACEOF
1740 if ac_fn_c_try_compile "$LINENO"; then :
1741 eval "$3=yes"
1742 else
1743 eval "$3=no"
1744 fi
1745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746 fi
1747 eval ac_res=\$$3
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751
1752 } # ac_fn_c_check_header_compile
1753
1754 # ac_fn_c_try_cpp LINENO
1755 # ----------------------
1756 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_cpp ()
1758 {
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { { ac_try="$ac_cpp conftest.$ac_ext"
1761 case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1773 fi
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } > conftest.i && {
1776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 }; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785 fi
1786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787 as_fn_set_status $ac_retval
1788
1789 } # ac_fn_c_try_cpp
1790
1791 # ac_fn_c_try_run LINENO
1792 # ----------------------
1793 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1794 # that executables *can* be run.
1795 ac_fn_c_try_run ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 if { { ac_try="$ac_link"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_link") 2>&5
1806 ac_status=$?
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1809 { { case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_try") 2>&5
1816 ac_status=$?
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; }; }; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: program exited with status $ac_status" >&5
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=$ac_status
1826 fi
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 as_fn_set_status $ac_retval
1830
1831 } # ac_fn_c_try_run
1832
1833 # ac_fn_c_check_func LINENO FUNC VAR
1834 # ----------------------------------
1835 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1836 ac_fn_c_check_func ()
1837 {
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval "test \"\${$3+set}\"" = set; then :
1842 $as_echo_n "(cached) " >&6
1843 else
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1846 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1848 #define $2 innocuous_$2
1849
1850 /* System header to define __stub macros and hopefully few prototypes,
1851 which can conflict with char $2 (); below.
1852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1853 <limits.h> exists even on freestanding compilers. */
1854
1855 #ifdef __STDC__
1856 # include <limits.h>
1857 #else
1858 # include <assert.h>
1859 #endif
1860
1861 #undef $2
1862
1863 /* Override any GCC internal prototype to avoid an error.
1864 Use char because int might match the return type of a GCC
1865 builtin and then its argument prototype would still apply. */
1866 #ifdef __cplusplus
1867 extern "C"
1868 #endif
1869 char $2 ();
1870 /* The GNU C library defines this for functions which it implements
1871 to always fail with ENOSYS. Some functions are actually named
1872 something starting with __ and the normal name is an alias. */
1873 #if defined __stub_$2 || defined __stub___$2
1874 choke me
1875 #endif
1876
1877 int
1878 main ()
1879 {
1880 return $2 ();
1881 ;
1882 return 0;
1883 }
1884 _ACEOF
1885 if ac_fn_c_try_link "$LINENO"; then :
1886 eval "$3=yes"
1887 else
1888 eval "$3=no"
1889 fi
1890 rm -f core conftest.err conftest.$ac_objext \
1891 conftest$ac_exeext conftest.$ac_ext
1892 fi
1893 eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897
1898 } # ac_fn_c_check_func
1899
1900 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1901 # -------------------------------------------------------
1902 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1903 # the include files in INCLUDES and setting the cache variable VAR
1904 # accordingly.
1905 ac_fn_c_check_header_mongrel ()
1906 {
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if eval "test \"\${$3+set}\"" = set; then :
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval "test \"\${$3+set}\"" = set; then :
1912 $as_echo_n "(cached) " >&6
1913 fi
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 else
1918 # Is the header compilable?
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1920 $as_echo_n "checking $2 usability... " >&6; }
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1923 $4
1924 #include <$2>
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 ac_header_compiler=yes
1928 else
1929 ac_header_compiler=no
1930 fi
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1933 $as_echo "$ac_header_compiler" >&6; }
1934
1935 # Is the header present?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1937 $as_echo_n "checking $2 presence... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_c_try_cpp "$LINENO"; then :
1943 ac_header_preproc=yes
1944 else
1945 ac_header_preproc=no
1946 fi
1947 rm -f conftest.err conftest.i conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1949 $as_echo "$ac_header_preproc" >&6; }
1950
1951 # So? What about this header?
1952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1953 yes:no: )
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1955 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958 ;;
1959 no:yes:* )
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1961 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1963 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1965 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1967 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1970 ( $as_echo "## --------------------------------- ##
1971 ## Report this to [email protected] ##
1972 ## --------------------------------- ##"
1973 ) | sed "s/^/$as_me: WARNING: /" >&2
1974 ;;
1975 esac
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval "test \"\${$3+set}\"" = set; then :
1979 $as_echo_n "(cached) " >&6
1980 else
1981 eval "$3=\$ac_header_compiler"
1982 fi
1983 eval ac_res=\$$3
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986 fi
1987 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988
1989 } # ac_fn_c_check_header_mongrel
1990
1991 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1992 # -------------------------------------------
1993 # Tests whether TYPE exists after having included INCLUDES, setting cache
1994 # variable VAR accordingly.
1995 ac_fn_c_check_type ()
1996 {
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if eval "test \"\${$3+set}\"" = set; then :
2001 $as_echo_n "(cached) " >&6
2002 else
2003 eval "$3=no"
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 $4
2007 int
2008 main ()
2009 {
2010 if (sizeof ($2))
2011 return 0;
2012 ;
2013 return 0;
2014 }
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 $4
2020 int
2021 main ()
2022 {
2023 if (sizeof (($2)))
2024 return 0;
2025 ;
2026 return 0;
2027 }
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030
2031 else
2032 eval "$3=yes"
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 fi
2038 eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042
2043 } # ac_fn_c_check_type
2044
2045 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2046 # --------------------------------------------
2047 # Tries to find the compile-time value of EXPR in a program that includes
2048 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2049 # computed
2050 ac_fn_c_compute_int ()
2051 {
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 if test "$cross_compiling" = yes; then
2054 # Depending upon the size, compute the lo and hi bounds.
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2057 $4
2058 int
2059 main ()
2060 {
2061 static int test_array [1 - 2 * !(($2) >= 0)];
2062 test_array [0] = 0
2063
2064 ;
2065 return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 ac_lo=0 ac_mid=0
2070 while :; do
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 $4
2074 int
2075 main ()
2076 {
2077 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2078 test_array [0] = 0
2079
2080 ;
2081 return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 ac_hi=$ac_mid; break
2086 else
2087 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2088 if test $ac_lo -le $ac_mid; then
2089 ac_lo= ac_hi=
2090 break
2091 fi
2092 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 done
2096 else
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2099 $4
2100 int
2101 main ()
2102 {
2103 static int test_array [1 - 2 * !(($2) < 0)];
2104 test_array [0] = 0
2105
2106 ;
2107 return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111 ac_hi=-1 ac_mid=-1
2112 while :; do
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2115 $4
2116 int
2117 main ()
2118 {
2119 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2120 test_array [0] = 0
2121
2122 ;
2123 return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_lo=$ac_mid; break
2128 else
2129 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2130 if test $ac_mid -le $ac_hi; then
2131 ac_lo= ac_hi=
2132 break
2133 fi
2134 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2135 fi
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 done
2138 else
2139 ac_lo= ac_hi=
2140 fi
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 # Binary search between lo and hi bounds.
2145 while test "x$ac_lo" != "x$ac_hi"; do
2146 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2149 $4
2150 int
2151 main ()
2152 {
2153 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2154 test_array [0] = 0
2155
2156 ;
2157 return 0;
2158 }
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 ac_hi=$ac_mid
2162 else
2163 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2164 fi
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 done
2167 case $ac_lo in #((
2168 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2169 '') ac_retval=1 ;;
2170 esac
2171 else
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2174 $4
2175 static long int longval () { return $2; }
2176 static unsigned long int ulongval () { return $2; }
2177 #include <stdio.h>
2178 #include <stdlib.h>
2179 int
2180 main ()
2181 {
2182
2183 FILE *f = fopen ("conftest.val", "w");
2184 if (! f)
2185 return 1;
2186 if (($2) < 0)
2187 {
2188 long int i = longval ();
2189 if (i != ($2))
2190 return 1;
2191 fprintf (f, "%ld", i);
2192 }
2193 else
2194 {
2195 unsigned long int i = ulongval ();
2196 if (i != ($2))
2197 return 1;
2198 fprintf (f, "%lu", i);
2199 }
2200 /* Do not output a trailing newline, as this causes \r\n confusion
2201 on some platforms. */
2202 return ferror (f) || fclose (f) != 0;
2203
2204 ;
2205 return 0;
2206 }
2207 _ACEOF
2208 if ac_fn_c_try_run "$LINENO"; then :
2209 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2210 else
2211 ac_retval=1
2212 fi
2213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2214 conftest.$ac_objext conftest.beam conftest.$ac_ext
2215 rm -f conftest.val
2216
2217 fi
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2219 as_fn_set_status $ac_retval
2220
2221 } # ac_fn_c_compute_int
2222 cat >config.log <<_ACEOF
2223 This file contains any messages produced by compilers while
2224 running configure, to aid debugging if configure makes a mistake.
2225
2226 It was created by libdivsufsort $as_me 2.0.1, which was
2227 generated by GNU Autoconf 2.67. Invocation command line was
2228
2229 $ $0 $@
2230
2231 _ACEOF
2232 exec 5>>config.log
2233 {
2234 cat <<_ASUNAME
2235 ## --------- ##
2236 ## Platform. ##
2237 ## --------- ##
2238
2239 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2240 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2241 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2242 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2243 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2244
2245 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2246 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2247
2248 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2249 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2250 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2251 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2252 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2253 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2254 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2255
2256 _ASUNAME
2257
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 for as_dir in $PATH
2260 do
2261 IFS=$as_save_IFS
2262 test -z "$as_dir" && as_dir=.
2263 $as_echo "PATH: $as_dir"
2264 done
2265 IFS=$as_save_IFS
2266
2267 } >&5
2268
2269 cat >&5 <<_ACEOF
2270
2271
2272 ## ----------- ##
2273 ## Core tests. ##
2274 ## ----------- ##
2275
2276 _ACEOF
2277
2278
2279 # Keep a trace of the command line.
2280 # Strip out --no-create and --no-recursion so they do not pile up.
2281 # Strip out --silent because we don't want to record it for future runs.
2282 # Also quote any args containing shell meta-characters.
2283 # Make two passes to allow for proper duplicate-argument suppression.
2284 ac_configure_args=
2285 ac_configure_args0=
2286 ac_configure_args1=
2287 ac_must_keep_next=false
2288 for ac_pass in 1 2
2289 do
2290 for ac_arg
2291 do
2292 case $ac_arg in
2293 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2295 | -silent | --silent | --silen | --sile | --sil)
2296 continue ;;
2297 *\'*)
2298 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2299 esac
2300 case $ac_pass in
2301 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2302 2)
2303 as_fn_append ac_configure_args1 " '$ac_arg'"
2304 if test $ac_must_keep_next = true; then
2305 ac_must_keep_next=false # Got value, back to normal.
2306 else
2307 case $ac_arg in
2308 *=* | --config-cache | -C | -disable-* | --disable-* \
2309 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2310 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2311 | -with-* | --with-* | -without-* | --without-* | --x)
2312 case "$ac_configure_args0 " in
2313 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2314 esac
2315 ;;
2316 -* ) ac_must_keep_next=true ;;
2317 esac
2318 fi
2319 as_fn_append ac_configure_args " '$ac_arg'"
2320 ;;
2321 esac
2322 done
2323 done
2324 { ac_configure_args0=; unset ac_configure_args0;}
2325 { ac_configure_args1=; unset ac_configure_args1;}
2326
2327 # When interrupted or exit'd, cleanup temporary files, and complete
2328 # config.log. We remove comments because anyway the quotes in there
2329 # would cause problems or look ugly.
2330 # WARNING: Use '\'' to represent an apostrophe within the trap.
2331 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2332 trap 'exit_status=$?
2333 # Save into config.log some information that might help in debugging.
2334 {
2335 echo
2336
2337 $as_echo "## ---------------- ##
2338 ## Cache variables. ##
2339 ## ---------------- ##"
2340 echo
2341 # The following way of writing the cache mishandles newlines in values,
2342 (
2343 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2344 eval ac_val=\$$ac_var
2345 case $ac_val in #(
2346 *${as_nl}*)
2347 case $ac_var in #(
2348 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2349 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2350 esac
2351 case $ac_var in #(
2352 _ | IFS | as_nl) ;; #(
2353 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2354 *) { eval $ac_var=; unset $ac_var;} ;;
2355 esac ;;
2356 esac
2357 done
2358 (set) 2>&1 |
2359 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2360 *${as_nl}ac_space=\ *)
2361 sed -n \
2362 "s/'\''/'\''\\\\'\'''\''/g;
2363 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2364 ;; #(
2365 *)
2366 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2367 ;;
2368 esac |
2369 sort
2370 )
2371 echo
2372
2373 $as_echo "## ----------------- ##
2374 ## Output variables. ##
2375 ## ----------------- ##"
2376 echo
2377 for ac_var in $ac_subst_vars
2378 do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in
2381 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2382 esac
2383 $as_echo "$ac_var='\''$ac_val'\''"
2384 done | sort
2385 echo
2386
2387 if test -n "$ac_subst_files"; then
2388 $as_echo "## ------------------- ##
2389 ## File substitutions. ##
2390 ## ------------------- ##"
2391 echo
2392 for ac_var in $ac_subst_files
2393 do
2394 eval ac_val=\$$ac_var
2395 case $ac_val in
2396 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2397 esac
2398 $as_echo "$ac_var='\''$ac_val'\''"
2399 done | sort
2400 echo
2401 fi
2402
2403 if test -s confdefs.h; then
2404 $as_echo "## ----------- ##
2405 ## confdefs.h. ##
2406 ## ----------- ##"
2407 echo
2408 cat confdefs.h
2409 echo
2410 fi
2411 test "$ac_signal" != 0 &&
2412 $as_echo "$as_me: caught signal $ac_signal"
2413 $as_echo "$as_me: exit $exit_status"
2414 } >&5
2415 rm -f core *.core core.conftest.* &&
2416 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2417 exit $exit_status
2418 ' 0
2419 for ac_signal in 1 2 13 15; do
2420 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2421 done
2422 ac_signal=0
2423
2424 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2425 rm -f -r conftest* confdefs.h
2426
2427 $as_echo "/* confdefs.h */" > confdefs.h
2428
2429 # Predefined preprocessor variables.
2430
2431 cat >>confdefs.h <<_ACEOF
2432 #define PACKAGE_NAME "$PACKAGE_NAME"
2433 _ACEOF
2434
2435 cat >>confdefs.h <<_ACEOF
2436 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2437 _ACEOF
2438
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2441 _ACEOF
2442
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_STRING "$PACKAGE_STRING"
2445 _ACEOF
2446
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2449 _ACEOF
2450
2451 cat >>confdefs.h <<_ACEOF
2452 #define PACKAGE_URL "$PACKAGE_URL"
2453 _ACEOF
2454
2455
2456 # Let the site file select an alternate cache file if it wants to.
2457 # Prefer an explicitly selected file to automatically selected ones.
2458 ac_site_file1=NONE
2459 ac_site_file2=NONE
2460 if test -n "$CONFIG_SITE"; then
2461 # We do not want a PATH search for config.site.
2462 case $CONFIG_SITE in #((
2463 -*) ac_site_file1=./$CONFIG_SITE;;
2464 */*) ac_site_file1=$CONFIG_SITE;;
2465 *) ac_site_file1=./$CONFIG_SITE;;
2466 esac
2467 elif test "x$prefix" != xNONE; then
2468 ac_site_file1=$prefix/share/config.site
2469 ac_site_file2=$prefix/etc/config.site
2470 else
2471 ac_site_file1=$ac_default_prefix/share/config.site
2472 ac_site_file2=$ac_default_prefix/etc/config.site
2473 fi
2474 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2475 do
2476 test "x$ac_site_file" = xNONE && continue
2477 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2479 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2480 sed 's/^/| /' "$ac_site_file" >&5
2481 . "$ac_site_file" \
2482 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484 as_fn_error $? "failed to load site script $ac_site_file
2485 See \`config.log' for more details" "$LINENO" 5 ; }
2486 fi
2487 done
2488
2489 if test -r "$cache_file"; then
2490 # Some versions of bash will fail to source /dev/null (special files
2491 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2492 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2494 $as_echo "$as_me: loading cache $cache_file" >&6;}
2495 case $cache_file in
2496 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2497 *) . "./$cache_file";;
2498 esac
2499 fi
2500 else
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2502 $as_echo "$as_me: creating cache $cache_file" >&6;}
2503 >$cache_file
2504 fi
2505
2506 # Check that the precious variables saved in the cache have kept the same
2507 # value.
2508 ac_cache_corrupted=false
2509 for ac_var in $ac_precious_vars; do
2510 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2511 eval ac_new_set=\$ac_env_${ac_var}_set
2512 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2513 eval ac_new_val=\$ac_env_${ac_var}_value
2514 case $ac_old_set,$ac_new_set in
2515 set,)
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2517 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2518 ac_cache_corrupted=: ;;
2519 ,set)
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2521 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2522 ac_cache_corrupted=: ;;
2523 ,);;
2524 *)
2525 if test "x$ac_old_val" != "x$ac_new_val"; then
2526 # differences in whitespace do not lead to failure.
2527 ac_old_val_w=`echo x $ac_old_val`
2528 ac_new_val_w=`echo x $ac_new_val`
2529 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2531 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2532 ac_cache_corrupted=:
2533 else
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2535 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2536 eval $ac_var=\$ac_old_val
2537 fi
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2539 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2541 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2542 fi;;
2543 esac
2544 # Pass precious variables to config.status.
2545 if test "$ac_new_set" = set; then
2546 case $ac_new_val in
2547 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2548 *) ac_arg=$ac_var=$ac_new_val ;;
2549 esac
2550 case " $ac_configure_args " in
2551 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2552 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2553 esac
2554 fi
2555 done
2556 if $ac_cache_corrupted; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2560 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2561 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2562 fi
2563 ## -------------------- ##
2564 ## Main body of script. ##
2565 ## -------------------- ##
2566
2567 ac_ext=c
2568 ac_cpp='$CPP $CPPFLAGS'
2569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2572
2573
2574
2575 ac_config_headers="$ac_config_headers include/config.h"
2576
2577 ac_aux_dir=
2578 for ac_dir in config "$srcdir"/config; do
2579 if test -f "$ac_dir/install-sh"; then
2580 ac_aux_dir=$ac_dir
2581 ac_install_sh="$ac_aux_dir/install-sh -c"
2582 break
2583 elif test -f "$ac_dir/install.sh"; then
2584 ac_aux_dir=$ac_dir
2585 ac_install_sh="$ac_aux_dir/install.sh -c"
2586 break
2587 elif test -f "$ac_dir/shtool"; then
2588 ac_aux_dir=$ac_dir
2589 ac_install_sh="$ac_aux_dir/shtool install -c"
2590 break
2591 fi
2592 done
2593 if test -z "$ac_aux_dir"; then
2594 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2595 fi
2596
2597 # These three variables are undocumented and unsupported,
2598 # and are intended to be withdrawn in a future Autoconf release.
2599 # They can cause serious problems if a builder's source tree is in a directory
2600 # whose full name contains unusual characters.
2601 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2602 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2603 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2604
2605
2606
2607 # Make sure we can run config.sub.
2608 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2609 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2610
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2612 $as_echo_n "checking build system type... " >&6; }
2613 if test "${ac_cv_build+set}" = set; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 ac_build_alias=$build_alias
2617 test "x$ac_build_alias" = x &&
2618 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2619 test "x$ac_build_alias" = x &&
2620 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2621 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2622 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2623
2624 fi
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2626 $as_echo "$ac_cv_build" >&6; }
2627 case $ac_cv_build in
2628 *-*-*) ;;
2629 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2630 esac
2631 build=$ac_cv_build
2632 ac_save_IFS=$IFS; IFS='-'
2633 set x $ac_cv_build
2634 shift
2635 build_cpu=$1
2636 build_vendor=$2
2637 shift; shift
2638 # Remember, the first character of IFS is used to create $*,
2639 # except with old shells:
2640 build_os=$*
2641 IFS=$ac_save_IFS
2642 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2643
2644
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2646 $as_echo_n "checking host system type... " >&6; }
2647 if test "${ac_cv_host+set}" = set; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 if test "x$host_alias" = x; then
2651 ac_cv_host=$ac_cv_build
2652 else
2653 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2654 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2655 fi
2656
2657 fi
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2659 $as_echo "$ac_cv_host" >&6; }
2660 case $ac_cv_host in
2661 *-*-*) ;;
2662 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2663 esac
2664 host=$ac_cv_host
2665 ac_save_IFS=$IFS; IFS='-'
2666 set x $ac_cv_host
2667 shift
2668 host_cpu=$1
2669 host_vendor=$2
2670 shift; shift
2671 # Remember, the first character of IFS is used to create $*,
2672 # except with old shells:
2673 host_os=$*
2674 IFS=$ac_save_IFS
2675 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2676
2677
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2679 $as_echo_n "checking target system type... " >&6; }
2680 if test "${ac_cv_target+set}" = set; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 if test "x$target_alias" = x; then
2684 ac_cv_target=$ac_cv_host
2685 else
2686 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2687 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2688 fi
2689
2690 fi
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2692 $as_echo "$ac_cv_target" >&6; }
2693 case $ac_cv_target in
2694 *-*-*) ;;
2695 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2696 esac
2697 target=$ac_cv_target
2698 ac_save_IFS=$IFS; IFS='-'
2699 set x $ac_cv_target
2700 shift
2701 target_cpu=$1
2702 target_vendor=$2
2703 shift; shift
2704 # Remember, the first character of IFS is used to create $*,
2705 # except with old shells:
2706 target_os=$*
2707 IFS=$ac_save_IFS
2708 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2709
2710
2711 # The aliases save the names the user supplied, while $host etc.
2712 # will get canonicalized.
2713 test -n "$target_alias" &&
2714 test "$program_prefix$program_suffix$program_transform_name" = \
2715 NONENONEs,x,x, &&
2716 program_prefix=${target_alias}-
2717 am__api_version='1.11'
2718
2719 # Find a good install program. We prefer a C program (faster),
2720 # so one script is as good as another. But avoid the broken or
2721 # incompatible versions:
2722 # SysV /etc/install, /usr/sbin/install
2723 # SunOS /usr/etc/install
2724 # IRIX /sbin/install
2725 # AIX /bin/install
2726 # AmigaOS /C/install, which installs bootblocks on floppy discs
2727 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2728 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2729 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2730 # OS/2's system install, which has a completely different semantic
2731 # ./install, which can be erroneously created by make from ./install.sh.
2732 # Reject install programs that cannot install multiple files.
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2734 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2735 if test -z "$INSTALL"; then
2736 if test "${ac_cv_path_install+set}" = set; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 # Account for people who put trailing slashes in PATH elements.
2745 case $as_dir/ in #((
2746 ./ | .// | /[cC]/* | \
2747 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2748 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2749 /usr/ucb/* ) ;;
2750 *)
2751 # OSF1 and SCO ODT 3.0 have their own names for install.
2752 # Don't use installbsd from OSF since it installs stuff as root
2753 # by default.
2754 for ac_prog in ginstall scoinst install; do
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2757 if test $ac_prog = install &&
2758 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2759 # AIX install. It has an incompatible calling convention.
2760 :
2761 elif test $ac_prog = install &&
2762 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2763 # program-specific install script used by HP pwplus--don't use.
2764 :
2765 else
2766 rm -rf conftest.one conftest.two conftest.dir
2767 echo one > conftest.one
2768 echo two > conftest.two
2769 mkdir conftest.dir
2770 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2771 test -s conftest.one && test -s conftest.two &&
2772 test -s conftest.dir/conftest.one &&
2773 test -s conftest.dir/conftest.two
2774 then
2775 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2776 break 3
2777 fi
2778 fi
2779 fi
2780 done
2781 done
2782 ;;
2783 esac
2784
2785 done
2786 IFS=$as_save_IFS
2787
2788 rm -rf conftest.one conftest.two conftest.dir
2789
2790 fi
2791 if test "${ac_cv_path_install+set}" = set; then
2792 INSTALL=$ac_cv_path_install
2793 else
2794 # As a last resort, use the slow shell script. Don't cache a
2795 # value for INSTALL within a source directory, because that will
2796 # break other packages using the cache if that directory is
2797 # removed, or if the value is a relative name.
2798 INSTALL=$ac_install_sh
2799 fi
2800 fi
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2802 $as_echo "$INSTALL" >&6; }
2803
2804 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2805 # It thinks the first close brace ends the variable substitution.
2806 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2807
2808 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2809
2810 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2811
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2813 $as_echo_n "checking whether build environment is sane... " >&6; }
2814 # Just in case
2815 sleep 1
2816 echo timestamp > conftest.file
2817 # Reject unsafe characters in $srcdir or the absolute working directory
2818 # name. Accept space and tab only in the latter.
2819 am_lf='
2820 '
2821 case `pwd` in
2822 *[\\\"\#\$\&\'\`$am_lf]*)
2823 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2824 esac
2825 case $srcdir in
2826 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2827 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2828 esac
2829
2830 # Do `set' in a subshell so we don't clobber the current shell's
2831 # arguments. Must try -L first in case configure is actually a
2832 # symlink; some systems play weird games with the mod time of symlinks
2833 # (eg FreeBSD returns the mod time of the symlink's containing
2834 # directory).
2835 if (
2836 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2837 if test "$*" = "X"; then
2838 # -L didn't work.
2839 set X `ls -t "$srcdir/configure" conftest.file`
2840 fi
2841 rm -f conftest.file
2842 if test "$*" != "X $srcdir/configure conftest.file" \
2843 && test "$*" != "X conftest.file $srcdir/configure"; then
2844
2845 # If neither matched, then we have a broken ls. This can happen
2846 # if, for instance, CONFIG_SHELL is bash and it inherits a
2847 # broken ls alias from the environment. This has actually
2848 # happened. Such a system could not be considered "sane".
2849 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2850 alias in your environment" "$LINENO" 5
2851 fi
2852
2853 test "$2" = conftest.file
2854 )
2855 then
2856 # Ok.
2857 :
2858 else
2859 as_fn_error $? "newly created file is older than distributed files!
2860 Check your system clock" "$LINENO" 5
2861 fi
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2863 $as_echo "yes" >&6; }
2864 test "$program_prefix" != NONE &&
2865 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2866 # Use a double $ so make ignores it.
2867 test "$program_suffix" != NONE &&
2868 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2869 # Double any \ or $.
2870 # By default was `s,x,x', remove it if useless.
2871 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2872 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2873
2874 # expand $ac_aux_dir to an absolute path
2875 am_aux_dir=`cd $ac_aux_dir && pwd`
2876
2877 if test x"${MISSING+set}" != xset; then
2878 case $am_aux_dir in
2879 *\ * | *\ *)
2880 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2881 *)
2882 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2883 esac
2884 fi
2885 # Use eval to expand $SHELL
2886 if eval "$MISSING --run true"; then
2887 am_missing_run="$MISSING --run "
2888 else
2889 am_missing_run=
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2891 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2892 fi
2893
2894 if test x"${install_sh}" != xset; then
2895 case $am_aux_dir in
2896 *\ * | *\ *)
2897 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2898 *)
2899 install_sh="\${SHELL} $am_aux_dir/install-sh"
2900 esac
2901 fi
2902
2903 # Installed binaries are usually stripped using `strip' when the user
2904 # run `make install-strip'. However `strip' might not be the right
2905 # tool to use in cross-compilation environments, therefore Automake
2906 # will honor the `STRIP' environment variable to overrule this program.
2907 if test "$cross_compiling" != no; then
2908 if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2910 set dummy ${ac_tool_prefix}strip; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if test "${ac_cv_prog_STRIP+set}" = set; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$STRIP"; then
2917 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 STRIP=$ac_cv_prog_STRIP
2937 if test -n "$STRIP"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2939 $as_echo "$STRIP" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945
2946 fi
2947 if test -z "$ac_cv_prog_STRIP"; then
2948 ac_ct_STRIP=$STRIP
2949 # Extract the first word of "strip", so it can be a program name with args.
2950 set dummy strip; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 if test -n "$ac_ct_STRIP"; then
2957 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_ac_ct_STRIP="strip"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2969 fi
2970 done
2971 done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2977 if test -n "$ac_ct_STRIP"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2979 $as_echo "$ac_ct_STRIP" >&6; }
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2983 fi
2984
2985 if test "x$ac_ct_STRIP" = x; then
2986 STRIP=":"
2987 else
2988 case $cross_compiling:$ac_tool_warned in
2989 yes:)
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992 ac_tool_warned=yes ;;
2993 esac
2994 STRIP=$ac_ct_STRIP
2995 fi
2996 else
2997 STRIP="$ac_cv_prog_STRIP"
2998 fi
2999
3000 fi
3001 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3002
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3004 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3005 if test -z "$MKDIR_P"; then
3006 if test "${ac_cv_path_mkdir+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3011 do
3012 IFS=$as_save_IFS
3013 test -z "$as_dir" && as_dir=.
3014 for ac_prog in mkdir gmkdir; do
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3017 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3018 'mkdir (GNU coreutils) '* | \
3019 'mkdir (coreutils) '* | \
3020 'mkdir (fileutils) '4.1*)
3021 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3022 break 3;;
3023 esac
3024 done
3025 done
3026 done
3027 IFS=$as_save_IFS
3028
3029 fi
3030
3031 test -d ./--version && rmdir ./--version
3032 if test "${ac_cv_path_mkdir+set}" = set; then
3033 MKDIR_P="$ac_cv_path_mkdir -p"
3034 else
3035 # As a last resort, use the slow shell script. Don't cache a
3036 # value for MKDIR_P within a source directory, because that will
3037 # break other packages using the cache if that directory is
3038 # removed, or if the value is a relative name.
3039 MKDIR_P="$ac_install_sh -d"
3040 fi
3041 fi
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3043 $as_echo "$MKDIR_P" >&6; }
3044
3045 mkdir_p="$MKDIR_P"
3046 case $mkdir_p in
3047 [\\/$]* | ?:[\\/]*) ;;
3048 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3049 esac
3050
3051 for ac_prog in gawk mawk nawk awk
3052 do
3053 # Extract the first word of "$ac_prog", so it can be a program name with args.
3054 set dummy $ac_prog; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_AWK+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 if test -n "$AWK"; then
3061 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3065 do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_AWK="$ac_prog"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074 done
3075 done
3076 IFS=$as_save_IFS
3077
3078 fi
3079 fi
3080 AWK=$ac_cv_prog_AWK
3081 if test -n "$AWK"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3083 $as_echo "$AWK" >&6; }
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3087 fi
3088
3089
3090 test -n "$AWK" && break
3091 done
3092
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3094 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3095 set x ${MAKE-make}
3096 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3097 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 cat >conftest.make <<\_ACEOF
3101 SHELL = /bin/sh
3102 all:
3103 @echo '@@@%%%=$(MAKE)=@@@%%%'
3104 _ACEOF
3105 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3106 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3107 *@@@%%%=?*=@@@%%%*)
3108 eval ac_cv_prog_make_${ac_make}_set=yes;;
3109 *)
3110 eval ac_cv_prog_make_${ac_make}_set=no;;
3111 esac
3112 rm -f conftest.make
3113 fi
3114 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3116 $as_echo "yes" >&6; }
3117 SET_MAKE=
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3121 SET_MAKE="MAKE=${MAKE-make}"
3122 fi
3123
3124 rm -rf .tst 2>/dev/null
3125 mkdir .tst 2>/dev/null
3126 if test -d .tst; then
3127 am__leading_dot=.
3128 else
3129 am__leading_dot=_
3130 fi
3131 rmdir .tst 2>/dev/null
3132
3133 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3134 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3135 # is not polluted with repeated "-I."
3136 am__isrc=' -I$(srcdir)'
3137 # test to see if srcdir already configured
3138 if test -f $srcdir/config.status; then
3139 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3140 fi
3141 fi
3142
3143 # test whether we have cygpath
3144 if test -z "$CYGPATH_W"; then
3145 if (cygpath --version) >/dev/null 2>/dev/null; then
3146 CYGPATH_W='cygpath -w'
3147 else
3148 CYGPATH_W=echo
3149 fi
3150 fi
3151
3152
3153 # Define the identity of the package.
3154 PACKAGE='libdivsufsort'
3155 VERSION='2.0.1'
3156
3157
3158 # Some tools Automake needs.
3159
3160 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3161
3162
3163 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3164
3165
3166 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3167
3168
3169 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3170
3171
3172 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3173
3174 # We need awk for the "check" target. The system "awk" is bad on
3175 # some platforms.
3176 # Always define AMTAR for backward compatibility.
3177
3178 AMTAR=${AMTAR-"${am_missing_run}tar"}
3179
3180 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3181
3182
3183
3184
3185
3186
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3188 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3189 # Check whether --enable-maintainer-mode was given.
3190 if test "${enable_maintainer_mode+set}" = set; then :
3191 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3192 else
3193 USE_MAINTAINER_MODE=no
3194 fi
3195
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3197 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3198 if test $USE_MAINTAINER_MODE = yes; then
3199 MAINTAINER_MODE_TRUE=
3200 MAINTAINER_MODE_FALSE='#'
3201 else
3202 MAINTAINER_MODE_TRUE='#'
3203 MAINTAINER_MODE_FALSE=
3204 fi
3205
3206 MAINT=$MAINTAINER_MODE_TRUE
3207
3208
3209
3210 # LT_CURRENT = PROJECT_VERSION_MAJOR + PROJECT_VERSION_MINOR + 1
3211 # LT_AGE = PROJECT_VERSION_MINOR
3212 # LT_REVISION = PROJECT_VERSION_PATCH
3213 LT_CURRENT=3
3214
3215 LT_AGE=0
3216
3217 LT_REVISION=1
3218
3219 PROJECT_NAME=libdivsufsort
3220
3221 PROJECT_DESCRIPTION="A lightweight suffix sorting library"
3222
3223 PROJECT_VERSION_FULL=2.0.0
3224
3225 PROJECT_URL="http://libdivsufsort.googlecode.com/"
3226
3227
3228 ## Checks for programs.
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3236 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if test "${ac_cv_prog_CC+set}" = set; then :
3240 $as_echo_n "(cached) " >&6
3241 else
3242 if test -n "$CC"; then
3243 ac_cv_prog_CC="$CC" # Let the user override the test.
3244 else
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 for as_dir in $PATH
3247 do
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3252 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 break 2
3255 fi
3256 done
3257 done
3258 IFS=$as_save_IFS
3259
3260 fi
3261 fi
3262 CC=$ac_cv_prog_CC
3263 if test -n "$CC"; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3265 $as_echo "$CC" >&6; }
3266 else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3269 fi
3270
3271
3272 fi
3273 if test -z "$ac_cv_prog_CC"; then
3274 ac_ct_CC=$CC
3275 # Extract the first word of "gcc", so it can be a program name with args.
3276 set dummy gcc; ac_word=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 if test -n "$ac_ct_CC"; then
3283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3284 else
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3287 do
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3292 ac_cv_prog_ac_ct_CC="gcc"
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 break 2
3295 fi
3296 done
3297 done
3298 IFS=$as_save_IFS
3299
3300 fi
3301 fi
3302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3303 if test -n "$ac_ct_CC"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3305 $as_echo "$ac_ct_CC" >&6; }
3306 else
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3309 fi
3310
3311 if test "x$ac_ct_CC" = x; then
3312 CC=""
3313 else
3314 case $cross_compiling:$ac_tool_warned in
3315 yes:)
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3318 ac_tool_warned=yes ;;
3319 esac
3320 CC=$ac_ct_CC
3321 fi
3322 else
3323 CC="$ac_cv_prog_CC"
3324 fi
3325
3326 if test -z "$CC"; then
3327 if test -n "$ac_tool_prefix"; then
3328 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3329 set dummy ${ac_tool_prefix}cc; ac_word=$2
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331 $as_echo_n "checking for $ac_word... " >&6; }
3332 if test "${ac_cv_prog_CC+set}" = set; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 if test -n "$CC"; then
3336 ac_cv_prog_CC="$CC" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345 ac_cv_prog_CC="${ac_tool_prefix}cc"
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3348 fi
3349 done
3350 done
3351 IFS=$as_save_IFS
3352
3353 fi
3354 fi
3355 CC=$ac_cv_prog_CC
3356 if test -n "$CC"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3358 $as_echo "$CC" >&6; }
3359 else
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3362 fi
3363
3364
3365 fi
3366 fi
3367 if test -z "$CC"; then
3368 # Extract the first word of "cc", so it can be a program name with args.
3369 set dummy cc; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if test "${ac_cv_prog_CC+set}" = set; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC="$CC" # Let the user override the test.
3377 else
3378 ac_prog_rejected=no
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3387 ac_prog_rejected=yes
3388 continue
3389 fi
3390 ac_cv_prog_CC="cc"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3393 fi
3394 done
3395 done
3396 IFS=$as_save_IFS
3397
3398 if test $ac_prog_rejected = yes; then
3399 # We found a bogon in the path, so make sure we never use it.
3400 set dummy $ac_cv_prog_CC
3401 shift
3402 if test $# != 0; then
3403 # We chose a different compiler from the bogus one.
3404 # However, it has the same basename, so the bogon will be chosen
3405 # first if we set CC to just the basename; use the full file name.
3406 shift
3407 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3408 fi
3409 fi
3410 fi
3411 fi
3412 CC=$ac_cv_prog_CC
3413 if test -n "$CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415 $as_echo "$CC" >&6; }
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420
3421
3422 fi
3423 if test -z "$CC"; then
3424 if test -n "$ac_tool_prefix"; then
3425 for ac_prog in cl.exe
3426 do
3427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if test "${ac_cv_prog_CC+set}" = set; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 if test -n "$CC"; then
3435 ac_cv_prog_CC="$CC" # Let the user override the test.
3436 else
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3444 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 break 2
3447 fi
3448 done
3449 done
3450 IFS=$as_save_IFS
3451
3452 fi
3453 fi
3454 CC=$ac_cv_prog_CC
3455 if test -n "$CC"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 $as_echo "$CC" >&6; }
3458 else
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3461 fi
3462
3463
3464 test -n "$CC" && break
3465 done
3466 fi
3467 if test -z "$CC"; then
3468 ac_ct_CC=$CC
3469 for ac_prog in cl.exe
3470 do
3471 # Extract the first word of "$ac_prog", so it can be a program name with args.
3472 set dummy $ac_prog; ac_word=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 if test -n "$ac_ct_CC"; then
3479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3483 do
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488 ac_cv_prog_ac_ct_CC="$ac_prog"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 break 2
3491 fi
3492 done
3493 done
3494 IFS=$as_save_IFS
3495
3496 fi
3497 fi
3498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3499 if test -n "$ac_ct_CC"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3501 $as_echo "$ac_ct_CC" >&6; }
3502 else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3505 fi
3506
3507
3508 test -n "$ac_ct_CC" && break
3509 done
3510
3511 if test "x$ac_ct_CC" = x; then
3512 CC=""
3513 else
3514 case $cross_compiling:$ac_tool_warned in
3515 yes:)
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3518 ac_tool_warned=yes ;;
3519 esac
3520 CC=$ac_ct_CC
3521 fi
3522 fi
3523
3524 fi
3525
3526
3527 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error $? "no acceptable C compiler found in \$PATH
3530 See \`config.log' for more details" "$LINENO" 5 ; }
3531
3532 # Provide some information about the compiler.
3533 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3534 set X $ac_compile
3535 ac_compiler=$2
3536 for ac_option in --version -v -V -qversion; do
3537 { { ac_try="$ac_compiler $ac_option >&5"
3538 case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541 esac
3542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 $as_echo "$ac_try_echo"; } >&5
3544 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3545 ac_status=$?
3546 if test -s conftest.err; then
3547 sed '10a\
3548 ... rest of stderr output deleted ...
3549 10q' conftest.err >conftest.er1
3550 cat conftest.er1 >&5
3551 fi
3552 rm -f conftest.er1 conftest.err
3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554 test $ac_status = 0; }
3555 done
3556
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559
3560 int
3561 main ()
3562 {
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 ac_clean_files_save=$ac_clean_files
3569 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3570 # Try to create an executable without -o first, disregard a.out.
3571 # It will help us diagnose broken compilers, and finding out an intuition
3572 # of exeext.
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3574 $as_echo_n "checking whether the C compiler works... " >&6; }
3575 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3576
3577 # The possible output files:
3578 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3579
3580 ac_rmfiles=
3581 for ac_file in $ac_files
3582 do
3583 case $ac_file in
3584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3585 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3586 esac
3587 done
3588 rm -f $ac_rmfiles
3589
3590 if { { ac_try="$ac_link_default"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3596 $as_echo "$ac_try_echo"; } >&5
3597 (eval "$ac_link_default") 2>&5
3598 ac_status=$?
3599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600 test $ac_status = 0; }; then :
3601 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3602 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3603 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3604 # so that the user can short-circuit this test for compilers unknown to
3605 # Autoconf.
3606 for ac_file in $ac_files ''
3607 do
3608 test -f "$ac_file" || continue
3609 case $ac_file in
3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3611 ;;
3612 [ab].out )
3613 # We found the default executable, but exeext='' is most
3614 # certainly right.
3615 break;;
3616 *.* )
3617 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3618 then :; else
3619 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3620 fi
3621 # We set ac_cv_exeext here because the later test for it is not
3622 # safe: cross compilers may not add the suffix if given an `-o'
3623 # argument, so we may need to know it at that point already.
3624 # Even if this section looks crufty: it has the advantage of
3625 # actually working.
3626 break;;
3627 * )
3628 break;;
3629 esac
3630 done
3631 test "$ac_cv_exeext" = no && ac_cv_exeext=
3632
3633 else
3634 ac_file=''
3635 fi
3636 if test -z "$ac_file"; then :
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3639 $as_echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error 77 "C compiler cannot create executables
3645 See \`config.log' for more details" "$LINENO" 5 ; }
3646 else
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3648 $as_echo "yes" >&6; }
3649 fi
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3651 $as_echo_n "checking for C compiler default output file name... " >&6; }
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3653 $as_echo "$ac_file" >&6; }
3654 ac_exeext=$ac_cv_exeext
3655
3656 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3657 ac_clean_files=$ac_clean_files_save
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3659 $as_echo_n "checking for suffix of executables... " >&6; }
3660 if { { ac_try="$ac_link"
3661 case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664 esac
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_link") 2>&5
3668 ac_status=$?
3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670 test $ac_status = 0; }; then :
3671 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3672 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3673 # work properly (i.e., refer to `conftest.exe'), while it won't with
3674 # `rm'.
3675 for ac_file in conftest.exe conftest conftest.*; do
3676 test -f "$ac_file" || continue
3677 case $ac_file in
3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3679 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3680 break;;
3681 * ) break;;
3682 esac
3683 done
3684 else
3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3688 See \`config.log' for more details" "$LINENO" 5 ; }
3689 fi
3690 rm -f conftest conftest$ac_cv_exeext
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3692 $as_echo "$ac_cv_exeext" >&6; }
3693
3694 rm -f conftest.$ac_ext
3695 EXEEXT=$ac_cv_exeext
3696 ac_exeext=$EXEEXT
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3699 #include <stdio.h>
3700 int
3701 main ()
3702 {
3703 FILE *f = fopen ("conftest.out", "w");
3704 return ferror (f) || fclose (f) != 0;
3705
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 ac_clean_files="$ac_clean_files conftest.out"
3711 # Check that the compiler produces executables we can run. If not, either
3712 # the compiler is broken, or we cross compile.
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3714 $as_echo_n "checking whether we are cross compiling... " >&6; }
3715 if test "$cross_compiling" != yes; then
3716 { { ac_try="$ac_link"
3717 case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720 esac
3721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722 $as_echo "$ac_try_echo"; } >&5
3723 (eval "$ac_link") 2>&5
3724 ac_status=$?
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }
3727 if { ac_try='./conftest$ac_cv_exeext'
3728 { { case "(($ac_try" in
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3731 esac
3732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3733 $as_echo "$ac_try_echo"; } >&5
3734 (eval "$ac_try") 2>&5
3735 ac_status=$?
3736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3737 test $ac_status = 0; }; }; then
3738 cross_compiling=no
3739 else
3740 if test "$cross_compiling" = maybe; then
3741 cross_compiling=yes
3742 else
3743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745 as_fn_error $? "cannot run C compiled programs.
3746 If you meant to cross compile, use \`--host'.
3747 See \`config.log' for more details" "$LINENO" 5 ; }
3748 fi
3749 fi
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3752 $as_echo "$cross_compiling" >&6; }
3753
3754 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3755 ac_clean_files=$ac_clean_files_save
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3757 $as_echo_n "checking for suffix of object files... " >&6; }
3758 if test "${ac_cv_objext+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763
3764 int
3765 main ()
3766 {
3767
3768 ;
3769 return 0;
3770 }
3771 _ACEOF
3772 rm -f conftest.o conftest.obj
3773 if { { ac_try="$ac_compile"
3774 case "(($ac_try" in
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3777 esac
3778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3779 $as_echo "$ac_try_echo"; } >&5
3780 (eval "$ac_compile") 2>&5
3781 ac_status=$?
3782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3783 test $ac_status = 0; }; then :
3784 for ac_file in conftest.o conftest.obj conftest.*; do
3785 test -f "$ac_file" || continue;
3786 case $ac_file in
3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3788 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3789 break;;
3790 esac
3791 done
3792 else
3793 $as_echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3795
3796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798 as_fn_error $? "cannot compute suffix of object files: cannot compile
3799 See \`config.log' for more details" "$LINENO" 5 ; }
3800 fi
3801 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3802 fi
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3804 $as_echo "$ac_cv_objext" >&6; }
3805 OBJEXT=$ac_cv_objext
3806 ac_objext=$OBJEXT
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3808 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3809 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3810 $as_echo_n "(cached) " >&6
3811 else
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814
3815 int
3816 main ()
3817 {
3818 #ifndef __GNUC__
3819 choke me
3820 #endif
3821
3822 ;
3823 return 0;
3824 }
3825 _ACEOF
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827 ac_compiler_gnu=yes
3828 else
3829 ac_compiler_gnu=no
3830 fi
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3833
3834 fi
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3836 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3837 if test $ac_compiler_gnu = yes; then
3838 GCC=yes
3839 else
3840 GCC=
3841 fi
3842 ac_test_CFLAGS=${CFLAGS+set}
3843 ac_save_CFLAGS=$CFLAGS
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3845 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3846 if test "${ac_cv_prog_cc_g+set}" = set; then :
3847 $as_echo_n "(cached) " >&6
3848 else
3849 ac_save_c_werror_flag=$ac_c_werror_flag
3850 ac_c_werror_flag=yes
3851 ac_cv_prog_cc_g=no
3852 CFLAGS="-g"
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3855
3856 int
3857 main ()
3858 {
3859
3860 ;
3861 return 0;
3862 }
3863 _ACEOF
3864 if ac_fn_c_try_compile "$LINENO"; then :
3865 ac_cv_prog_cc_g=yes
3866 else
3867 CFLAGS=""
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3870
3871 int
3872 main ()
3873 {
3874
3875 ;
3876 return 0;
3877 }
3878 _ACEOF
3879 if ac_fn_c_try_compile "$LINENO"; then :
3880
3881 else
3882 ac_c_werror_flag=$ac_save_c_werror_flag
3883 CFLAGS="-g"
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886
3887 int
3888 main ()
3889 {
3890
3891 ;
3892 return 0;
3893 }
3894 _ACEOF
3895 if ac_fn_c_try_compile "$LINENO"; then :
3896 ac_cv_prog_cc_g=yes
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 fi
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 fi
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 ac_c_werror_flag=$ac_save_c_werror_flag
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3906 $as_echo "$ac_cv_prog_cc_g" >&6; }
3907 if test "$ac_test_CFLAGS" = set; then
3908 CFLAGS=$ac_save_CFLAGS
3909 elif test $ac_cv_prog_cc_g = yes; then
3910 if test "$GCC" = yes; then
3911 CFLAGS="-g -O2"
3912 else
3913 CFLAGS="-g"
3914 fi
3915 else
3916 if test "$GCC" = yes; then
3917 CFLAGS="-O2"
3918 else
3919 CFLAGS=
3920 fi
3921 fi
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3923 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3924 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3926 else
3927 ac_cv_prog_cc_c89=no
3928 ac_save_CC=$CC
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3931 #include <stdarg.h>
3932 #include <stdio.h>
3933 #include <sys/types.h>
3934 #include <sys/stat.h>
3935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3936 struct buf { int x; };
3937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3938 static char *e (p, i)
3939 char **p;
3940 int i;
3941 {
3942 return p[i];
3943 }
3944 static char *f (char * (*g) (char **, int), char **p, ...)
3945 {
3946 char *s;
3947 va_list v;
3948 va_start (v,p);
3949 s = g (p, va_arg (v,int));
3950 va_end (v);
3951 return s;
3952 }
3953
3954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3955 function prototypes and stuff, but not '\xHH' hex character constants.
3956 These don't provoke an error unfortunately, instead are silently treated
3957 as 'x'. The following induces an error, until -std is added to get
3958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3959 array size at least. It's necessary to write '\x00'==0 to get something
3960 that's true only with -std. */
3961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3962
3963 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3964 inside strings and character constants. */
3965 #define FOO(x) 'x'
3966 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3967
3968 int test (int i, double x);
3969 struct s1 {int (*f) (int a);};
3970 struct s2 {int (*f) (double a);};
3971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3972 int argc;
3973 char **argv;
3974 int
3975 main ()
3976 {
3977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3978 ;
3979 return 0;
3980 }
3981 _ACEOF
3982 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3983 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3984 do
3985 CC="$ac_save_CC $ac_arg"
3986 if ac_fn_c_try_compile "$LINENO"; then :
3987 ac_cv_prog_cc_c89=$ac_arg
3988 fi
3989 rm -f core conftest.err conftest.$ac_objext
3990 test "x$ac_cv_prog_cc_c89" != "xno" && break
3991 done
3992 rm -f conftest.$ac_ext
3993 CC=$ac_save_CC
3994
3995 fi
3996 # AC_CACHE_VAL
3997 case "x$ac_cv_prog_cc_c89" in
3998 x)
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4000 $as_echo "none needed" >&6; } ;;
4001 xno)
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4003 $as_echo "unsupported" >&6; } ;;
4004 *)
4005 CC="$CC $ac_cv_prog_cc_c89"
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4007 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4008 esac
4009 if test "x$ac_cv_prog_cc_c89" != xno; then :
4010
4011 fi
4012
4013 ac_ext=c
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018 DEPDIR="${am__leading_dot}deps"
4019
4020 ac_config_commands="$ac_config_commands depfiles"
4021
4022
4023 am_make=${MAKE-make}
4024 cat > confinc << 'END'
4025 am__doit:
4026 @echo this is the am__doit target
4027 .PHONY: am__doit
4028 END
4029 # If we don't find an include directive, just comment out the code.
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4031 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4032 am__include="#"
4033 am__quote=
4034 _am_result=none
4035 # First try GNU make style include.
4036 echo "include confinc" > confmf
4037 # Ignore all kinds of additional output from `make'.
4038 case `$am_make -s -f confmf 2> /dev/null` in #(
4039 *the\ am__doit\ target*)
4040 am__include=include
4041 am__quote=
4042 _am_result=GNU
4043 ;;
4044 esac
4045 # Now try BSD make style include.
4046 if test "$am__include" = "#"; then
4047 echo '.include "confinc"' > confmf
4048 case `$am_make -s -f confmf 2> /dev/null` in #(
4049 *the\ am__doit\ target*)
4050 am__include=.include
4051 am__quote="\""
4052 _am_result=BSD
4053 ;;
4054 esac
4055 fi
4056
4057
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4059 $as_echo "$_am_result" >&6; }
4060 rm -f confinc confmf
4061
4062 # Check whether --enable-dependency-tracking was given.
4063 if test "${enable_dependency_tracking+set}" = set; then :
4064 enableval=$enable_dependency_tracking;
4065 fi
4066
4067 if test "x$enable_dependency_tracking" != xno; then
4068 am_depcomp="$ac_aux_dir/depcomp"
4069 AMDEPBACKSLASH='\'
4070 fi
4071 if test "x$enable_dependency_tracking" != xno; then
4072 AMDEP_TRUE=
4073 AMDEP_FALSE='#'
4074 else
4075 AMDEP_TRUE='#'
4076 AMDEP_FALSE=
4077 fi
4078
4079
4080
4081 depcc="$CC" am_compiler_list=
4082
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4084 $as_echo_n "checking dependency style of $depcc... " >&6; }
4085 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4086 $as_echo_n "(cached) " >&6
4087 else
4088 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4089 # We make a subdir and do the tests there. Otherwise we can end up
4090 # making bogus files that we don't know about and never remove. For
4091 # instance it was reported that on HP-UX the gcc test will end up
4092 # making a dummy file named `D' -- because `-MD' means `put the output
4093 # in D'.
4094 mkdir conftest.dir
4095 # Copy depcomp to subdir because otherwise we won't find it if we're
4096 # using a relative directory.
4097 cp "$am_depcomp" conftest.dir
4098 cd conftest.dir
4099 # We will build objects and dependencies in a subdirectory because
4100 # it helps to detect inapplicable dependency modes. For instance
4101 # both Tru64's cc and ICC support -MD to output dependencies as a
4102 # side effect of compilation, but ICC will put the dependencies in
4103 # the current directory while Tru64 will put them in the object
4104 # directory.
4105 mkdir sub
4106
4107 am_cv_CC_dependencies_compiler_type=none
4108 if test "$am_compiler_list" = ""; then
4109 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4110 fi
4111 am__universal=false
4112 case " $depcc " in #(
4113 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4114 esac
4115
4116 for depmode in $am_compiler_list; do
4117 # Setup a source with many dependencies, because some compilers
4118 # like to wrap large dependency lists on column 80 (with \), and
4119 # we should not choose a depcomp mode which is confused by this.
4120 #
4121 # We need to recreate these files for each test, as the compiler may
4122 # overwrite some of them when testing with obscure command lines.
4123 # This happens at least with the AIX C compiler.
4124 : > sub/conftest.c
4125 for i in 1 2 3 4 5 6; do
4126 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4127 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4128 # Solaris 8's {/usr,}/bin/sh.
4129 touch sub/conftst$i.h
4130 done
4131 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4132
4133 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4134 # mode. It turns out that the SunPro C++ compiler does not properly
4135 # handle `-M -o', and we need to detect this. Also, some Intel
4136 # versions had trouble with output in subdirs
4137 am__obj=sub/conftest.${OBJEXT-o}
4138 am__minus_obj="-o $am__obj"
4139 case $depmode in
4140 gcc)
4141 # This depmode causes a compiler race in universal mode.
4142 test "$am__universal" = false || continue
4143 ;;
4144 nosideeffect)
4145 # after this tag, mechanisms are not by side-effect, so they'll
4146 # only be used when explicitly requested
4147 if test "x$enable_dependency_tracking" = xyes; then
4148 continue
4149 else
4150 break
4151 fi
4152 ;;
4153 msvisualcpp | msvcmsys)
4154 # This compiler won't grok `-c -o', but also, the minuso test has
4155 # not run yet. These depmodes are late enough in the game, and
4156 # so weak that their functioning should not be impacted.
4157 am__obj=conftest.${OBJEXT-o}
4158 am__minus_obj=
4159 ;;
4160 none) break ;;
4161 esac
4162 if depmode=$depmode \
4163 source=sub/conftest.c object=$am__obj \
4164 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4165 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4166 >/dev/null 2>conftest.err &&
4167 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4168 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4169 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4170 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4171 # icc doesn't choke on unknown options, it will just issue warnings
4172 # or remarks (even with -Werror). So we grep stderr for any message
4173 # that says an option was ignored or not supported.
4174 # When given -MP, icc 7.0 and 7.1 complain thusly:
4175 # icc: Command line warning: ignoring option '-M'; no argument required
4176 # The diagnosis changed in icc 8.0:
4177 # icc: Command line remark: option '-MP' not supported
4178 if (grep 'ignoring option' conftest.err ||
4179 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4180 am_cv_CC_dependencies_compiler_type=$depmode
4181 break
4182 fi
4183 fi
4184 done
4185
4186 cd ..
4187 rm -rf conftest.dir
4188 else
4189 am_cv_CC_dependencies_compiler_type=none
4190 fi
4191
4192 fi
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4194 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4195 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4196
4197 if
4198 test "x$enable_dependency_tracking" != xno \
4199 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4200 am__fastdepCC_TRUE=
4201 am__fastdepCC_FALSE='#'
4202 else
4203 am__fastdepCC_TRUE='#'
4204 am__fastdepCC_FALSE=
4205 fi
4206
4207
4208
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4210 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4211 set x ${MAKE-make}
4212 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4213 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 cat >conftest.make <<\_ACEOF
4217 SHELL = /bin/sh
4218 all:
4219 @echo '@@@%%%=$(MAKE)=@@@%%%'
4220 _ACEOF
4221 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4222 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4223 *@@@%%%=?*=@@@%%%*)
4224 eval ac_cv_prog_make_${ac_make}_set=yes;;
4225 *)
4226 eval ac_cv_prog_make_${ac_make}_set=no;;
4227 esac
4228 rm -f conftest.make
4229 fi
4230 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4232 $as_echo "yes" >&6; }
4233 SET_MAKE=
4234 else
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4237 SET_MAKE="MAKE=${MAKE-make}"
4238 fi
4239
4240
4241 ## Checks for compiler output filename suffixes.
4242
4243
4244
4245 ## Check for build configuration.
4246 #AM_DISABLE_STATIC
4247 # Check whether --enable-shared was given.
4248 if test "${enable_shared+set}" = set; then :
4249 enableval=$enable_shared; p=${PACKAGE-default}
4250 case $enableval in
4251 yes) enable_shared=yes ;;
4252 no) enable_shared=no ;;
4253 *)
4254 enable_shared=no
4255 # Look at the argument we got. We use all the common list separators.
4256 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4257 for pkg in $enableval; do
4258 IFS="$lt_save_ifs"
4259 if test "X$pkg" = "X$p"; then
4260 enable_shared=yes
4261 fi
4262 done
4263 IFS="$lt_save_ifs"
4264 ;;
4265 esac
4266 else
4267 enable_shared=no
4268 fi
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278 #AC_LIBTOOL_WIN32_DLL
4279 case `pwd` in
4280 *\ * | *\ *)
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4282 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4283 esac
4284
4285
4286
4287 macro_version='2.2.6b'
4288 macro_revision='1.3017'
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302 ltmain="$ac_aux_dir/ltmain.sh"
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4305 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4306 if test "${ac_cv_path_SED+set}" = set; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4310 for ac_i in 1 2 3 4 5 6 7; do
4311 ac_script="$ac_script$as_nl$ac_script"
4312 done
4313 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4314 { ac_script=; unset ac_script;}
4315 if test -z "$SED"; then
4316 ac_path_SED_found=false
4317 # Loop through the user's path and test for each of PROGNAME-LIST
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4320 do
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_prog in sed gsed; do
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4326 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4327 # Check for GNU ac_path_SED and select it if it is found.
4328 # Check for GNU $ac_path_SED
4329 case `"$ac_path_SED" --version 2>&1` in
4330 *GNU*)
4331 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4332 *)
4333 ac_count=0
4334 $as_echo_n 0123456789 >"conftest.in"
4335 while :
4336 do
4337 cat "conftest.in" "conftest.in" >"conftest.tmp"
4338 mv "conftest.tmp" "conftest.in"
4339 cp "conftest.in" "conftest.nl"
4340 $as_echo '' >> "conftest.nl"
4341 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4343 as_fn_arith $ac_count + 1 && ac_count=$as_val
4344 if test $ac_count -gt ${ac_path_SED_max-0}; then
4345 # Best one so far, save it but keep looking for a better one
4346 ac_cv_path_SED="$ac_path_SED"
4347 ac_path_SED_max=$ac_count
4348 fi
4349 # 10*(2^10) chars as input seems more than enough
4350 test $ac_count -gt 10 && break
4351 done
4352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4353 esac
4354
4355 $ac_path_SED_found && break 3
4356 done
4357 done
4358 done
4359 IFS=$as_save_IFS
4360 if test -z "$ac_cv_path_SED"; then
4361 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4362 fi
4363 else
4364 ac_cv_path_SED=$SED
4365 fi
4366
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4369 $as_echo "$ac_cv_path_SED" >&6; }
4370 SED="$ac_cv_path_SED"
4371 rm -f conftest.sed
4372
4373 test -z "$SED" && SED=sed
4374 Xsed="$SED -e 1s/^X//"
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4387 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4388 if test "${ac_cv_path_GREP+set}" = set; then :
4389 $as_echo_n "(cached) " >&6
4390 else
4391 if test -z "$GREP"; then
4392 ac_path_GREP_found=false
4393 # Loop through the user's path and test for each of PROGNAME-LIST
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4396 do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_prog in grep ggrep; do
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4402 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4403 # Check for GNU ac_path_GREP and select it if it is found.
4404 # Check for GNU $ac_path_GREP
4405 case `"$ac_path_GREP" --version 2>&1` in
4406 *GNU*)
4407 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4408 *)
4409 ac_count=0
4410 $as_echo_n 0123456789 >"conftest.in"
4411 while :
4412 do
4413 cat "conftest.in" "conftest.in" >"conftest.tmp"
4414 mv "conftest.tmp" "conftest.in"
4415 cp "conftest.in" "conftest.nl"
4416 $as_echo 'GREP' >> "conftest.nl"
4417 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4419 as_fn_arith $ac_count + 1 && ac_count=$as_val
4420 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4421 # Best one so far, save it but keep looking for a better one
4422 ac_cv_path_GREP="$ac_path_GREP"
4423 ac_path_GREP_max=$ac_count
4424 fi
4425 # 10*(2^10) chars as input seems more than enough
4426 test $ac_count -gt 10 && break
4427 done
4428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4429 esac
4430
4431 $ac_path_GREP_found && break 3
4432 done
4433 done
4434 done
4435 IFS=$as_save_IFS
4436 if test -z "$ac_cv_path_GREP"; then
4437 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4438 fi
4439 else
4440 ac_cv_path_GREP=$GREP
4441 fi
4442
4443 fi
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4445 $as_echo "$ac_cv_path_GREP" >&6; }
4446 GREP="$ac_cv_path_GREP"
4447
4448
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4450 $as_echo_n "checking for egrep... " >&6; }
4451 if test "${ac_cv_path_EGREP+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4455 then ac_cv_path_EGREP="$GREP -E"
4456 else
4457 if test -z "$EGREP"; then
4458 ac_path_EGREP_found=false
4459 # Loop through the user's path and test for each of PROGNAME-LIST
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4462 do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_prog in egrep; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4468 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4469 # Check for GNU ac_path_EGREP and select it if it is found.
4470 # Check for GNU $ac_path_EGREP
4471 case `"$ac_path_EGREP" --version 2>&1` in
4472 *GNU*)
4473 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4474 *)
4475 ac_count=0
4476 $as_echo_n 0123456789 >"conftest.in"
4477 while :
4478 do
4479 cat "conftest.in" "conftest.in" >"conftest.tmp"
4480 mv "conftest.tmp" "conftest.in"
4481 cp "conftest.in" "conftest.nl"
4482 $as_echo 'EGREP' >> "conftest.nl"
4483 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485 as_fn_arith $ac_count + 1 && ac_count=$as_val
4486 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4487 # Best one so far, save it but keep looking for a better one
4488 ac_cv_path_EGREP="$ac_path_EGREP"
4489 ac_path_EGREP_max=$ac_count
4490 fi
4491 # 10*(2^10) chars as input seems more than enough
4492 test $ac_count -gt 10 && break
4493 done
4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4495 esac
4496
4497 $ac_path_EGREP_found && break 3
4498 done
4499 done
4500 done
4501 IFS=$as_save_IFS
4502 if test -z "$ac_cv_path_EGREP"; then
4503 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4504 fi
4505 else
4506 ac_cv_path_EGREP=$EGREP
4507 fi
4508
4509 fi
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4512 $as_echo "$ac_cv_path_EGREP" >&6; }
4513 EGREP="$ac_cv_path_EGREP"
4514
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4517 $as_echo_n "checking for fgrep... " >&6; }
4518 if test "${ac_cv_path_FGREP+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4522 then ac_cv_path_FGREP="$GREP -F"
4523 else
4524 if test -z "$FGREP"; then
4525 ac_path_FGREP_found=false
4526 # Loop through the user's path and test for each of PROGNAME-LIST
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4529 do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_prog in fgrep; do
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4535 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4536 # Check for GNU ac_path_FGREP and select it if it is found.
4537 # Check for GNU $ac_path_FGREP
4538 case `"$ac_path_FGREP" --version 2>&1` in
4539 *GNU*)
4540 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4541 *)
4542 ac_count=0
4543 $as_echo_n 0123456789 >"conftest.in"
4544 while :
4545 do
4546 cat "conftest.in" "conftest.in" >"conftest.tmp"
4547 mv "conftest.tmp" "conftest.in"
4548 cp "conftest.in" "conftest.nl"
4549 $as_echo 'FGREP' >> "conftest.nl"
4550 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4552 as_fn_arith $ac_count + 1 && ac_count=$as_val
4553 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4554 # Best one so far, save it but keep looking for a better one
4555 ac_cv_path_FGREP="$ac_path_FGREP"
4556 ac_path_FGREP_max=$ac_count
4557 fi
4558 # 10*(2^10) chars as input seems more than enough
4559 test $ac_count -gt 10 && break
4560 done
4561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4562 esac
4563
4564 $ac_path_FGREP_found && break 3
4565 done
4566 done
4567 done
4568 IFS=$as_save_IFS
4569 if test -z "$ac_cv_path_FGREP"; then
4570 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4571 fi
4572 else
4573 ac_cv_path_FGREP=$FGREP
4574 fi
4575
4576 fi
4577 fi
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4579 $as_echo "$ac_cv_path_FGREP" >&6; }
4580 FGREP="$ac_cv_path_FGREP"
4581
4582
4583 test -z "$GREP" && GREP=grep
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603 # Check whether --with-gnu-ld was given.
4604 if test "${with_gnu_ld+set}" = set; then :
4605 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4606 else
4607 with_gnu_ld=no
4608 fi
4609
4610 ac_prog=ld
4611 if test "$GCC" = yes; then
4612 # Check if gcc -print-prog-name=ld gives a path.
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4614 $as_echo_n "checking for ld used by $CC... " >&6; }
4615 case $host in
4616 *-*-mingw*)
4617 # gcc leaves a trailing carriage return which upsets mingw
4618 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4619 *)
4620 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4621 esac
4622 case $ac_prog in
4623 # Accept absolute paths.
4624 [\\/]* | ?:[\\/]*)
4625 re_direlt='/[^/][^/]*/\.\./'
4626 # Canonicalize the pathname of ld
4627 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4628 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4629 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4630 done
4631 test -z "$LD" && LD="$ac_prog"
4632 ;;
4633 "")
4634 # If it fails, then pretend we aren't using GCC.
4635 ac_prog=ld
4636 ;;
4637 *)
4638 # If it is relative, then search for the first ld in PATH.
4639 with_gnu_ld=unknown
4640 ;;
4641 esac
4642 elif test "$with_gnu_ld" = yes; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4644 $as_echo_n "checking for GNU ld... " >&6; }
4645 else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4647 $as_echo_n "checking for non-GNU ld... " >&6; }
4648 fi
4649 if test "${lt_cv_path_LD+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -z "$LD"; then
4653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4654 for ac_dir in $PATH; do
4655 IFS="$lt_save_ifs"
4656 test -z "$ac_dir" && ac_dir=.
4657 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4658 lt_cv_path_LD="$ac_dir/$ac_prog"
4659 # Check to see if the program is GNU ld. I'd rather use --version,
4660 # but apparently some variants of GNU ld only accept -v.
4661 # Break only if it was the GNU/non-GNU ld that we prefer.
4662 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4663 *GNU* | *'with BFD'*)
4664 test "$with_gnu_ld" != no && break
4665 ;;
4666 *)
4667 test "$with_gnu_ld" != yes && break
4668 ;;
4669 esac
4670 fi
4671 done
4672 IFS="$lt_save_ifs"
4673 else
4674 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4675 fi
4676 fi
4677
4678 LD="$lt_cv_path_LD"
4679 if test -n "$LD"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4681 $as_echo "$LD" >&6; }
4682 else
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4685 fi
4686 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4688 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4689 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4693 case `$LD -v 2>&1 </dev/null` in
4694 *GNU* | *'with BFD'*)
4695 lt_cv_prog_gnu_ld=yes
4696 ;;
4697 *)
4698 lt_cv_prog_gnu_ld=no
4699 ;;
4700 esac
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4703 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4704 with_gnu_ld=$lt_cv_prog_gnu_ld
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4715 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4716 if test "${lt_cv_path_NM+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 if test -n "$NM"; then
4720 # Let the user override the test.
4721 lt_cv_path_NM="$NM"
4722 else
4723 lt_nm_to_check="${ac_tool_prefix}nm"
4724 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4725 lt_nm_to_check="$lt_nm_to_check nm"
4726 fi
4727 for lt_tmp_nm in $lt_nm_to_check; do
4728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4729 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4730 IFS="$lt_save_ifs"
4731 test -z "$ac_dir" && ac_dir=.
4732 tmp_nm="$ac_dir/$lt_tmp_nm"
4733 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4734 # Check to see if the nm accepts a BSD-compat flag.
4735 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4736 # nm: unknown option "B" ignored
4737 # Tru64's nm complains that /dev/null is an invalid object file
4738 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4739 */dev/null* | *'Invalid file or object type'*)
4740 lt_cv_path_NM="$tmp_nm -B"
4741 break
4742 ;;
4743 *)
4744 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4745 */dev/null*)
4746 lt_cv_path_NM="$tmp_nm -p"
4747 break
4748 ;;
4749 *)
4750 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4751 continue # so that we can try to find one that supports BSD flags
4752 ;;
4753 esac
4754 ;;
4755 esac
4756 fi
4757 done
4758 IFS="$lt_save_ifs"
4759 done
4760 : ${lt_cv_path_NM=no}
4761 fi
4762 fi
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4764 $as_echo "$lt_cv_path_NM" >&6; }
4765 if test "$lt_cv_path_NM" != "no"; then
4766 NM="$lt_cv_path_NM"
4767 else
4768 # Didn't find any BSD compatible name lister, look for dumpbin.
4769 if test -n "$ac_tool_prefix"; then
4770 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4771 do
4772 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4773 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775 $as_echo_n "checking for $ac_word... " >&6; }
4776 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 if test -n "$DUMPBIN"; then
4780 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4781 else
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4792 fi
4793 done
4794 done
4795 IFS=$as_save_IFS
4796
4797 fi
4798 fi
4799 DUMPBIN=$ac_cv_prog_DUMPBIN
4800 if test -n "$DUMPBIN"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4802 $as_echo "$DUMPBIN" >&6; }
4803 else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4806 fi
4807
4808
4809 test -n "$DUMPBIN" && break
4810 done
4811 fi
4812 if test -z "$DUMPBIN"; then
4813 ac_ct_DUMPBIN=$DUMPBIN
4814 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4815 do
4816 # Extract the first word of "$ac_prog", so it can be a program name with args.
4817 set dummy $ac_prog; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 if test -n "$ac_ct_DUMPBIN"; then
4824 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4836 fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841 fi
4842 fi
4843 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4844 if test -n "$ac_ct_DUMPBIN"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4846 $as_echo "$ac_ct_DUMPBIN" >&6; }
4847 else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4850 fi
4851
4852
4853 test -n "$ac_ct_DUMPBIN" && break
4854 done
4855
4856 if test "x$ac_ct_DUMPBIN" = x; then
4857 DUMPBIN=":"
4858 else
4859 case $cross_compiling:$ac_tool_warned in
4860 yes:)
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4863 ac_tool_warned=yes ;;
4864 esac
4865 DUMPBIN=$ac_ct_DUMPBIN
4866 fi
4867 fi
4868
4869
4870 if test "$DUMPBIN" != ":"; then
4871 NM="$DUMPBIN"
4872 fi
4873 fi
4874 test -z "$NM" && NM=nm
4875
4876
4877
4878
4879
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4882 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4883 if test "${lt_cv_nm_interface+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 lt_cv_nm_interface="BSD nm"
4887 echo "int some_variable = 0;" > conftest.$ac_ext
4888 (eval echo "\"\$as_me:4888: $ac_compile\"" >&5)
4889 (eval "$ac_compile" 2>conftest.err)
4890 cat conftest.err >&5
4891 (eval echo "\"\$as_me:4891: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4892 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4893 cat conftest.err >&5
4894 (eval echo "\"\$as_me:4894: output\"" >&5)
4895 cat conftest.out >&5
4896 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4897 lt_cv_nm_interface="MS dumpbin"
4898 fi
4899 rm -f conftest*
4900 fi
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4902 $as_echo "$lt_cv_nm_interface" >&6; }
4903
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4905 $as_echo_n "checking whether ln -s works... " >&6; }
4906 LN_S=$as_ln_s
4907 if test "$LN_S" = "ln -s"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4909 $as_echo "yes" >&6; }
4910 else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4912 $as_echo "no, using $LN_S" >&6; }
4913 fi
4914
4915 # find the maximum length of command line arguments
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4917 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4918 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 i=0
4922 teststring="ABCD"
4923
4924 case $build_os in
4925 msdosdjgpp*)
4926 # On DJGPP, this test can blow up pretty badly due to problems in libc
4927 # (any single argument exceeding 2000 bytes causes a buffer overrun
4928 # during glob expansion). Even if it were fixed, the result of this
4929 # check would be larger than it should be.
4930 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4931 ;;
4932
4933 gnu*)
4934 # Under GNU Hurd, this test is not required because there is
4935 # no limit to the length of command line arguments.
4936 # Libtool will interpret -1 as no limit whatsoever
4937 lt_cv_sys_max_cmd_len=-1;
4938 ;;
4939
4940 cygwin* | mingw* | cegcc*)
4941 # On Win9x/ME, this test blows up -- it succeeds, but takes
4942 # about 5 minutes as the teststring grows exponentially.
4943 # Worse, since 9x/ME are not pre-emptively multitasking,
4944 # you end up with a "frozen" computer, even though with patience
4945 # the test eventually succeeds (with a max line length of 256k).
4946 # Instead, let's just punt: use the minimum linelength reported by
4947 # all of the supported platforms: 8192 (on NT/2K/XP).
4948 lt_cv_sys_max_cmd_len=8192;
4949 ;;
4950
4951 amigaos*)
4952 # On AmigaOS with pdksh, this test takes hours, literally.
4953 # So we just punt and use a minimum line length of 8192.
4954 lt_cv_sys_max_cmd_len=8192;
4955 ;;
4956
4957 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4958 # This has been around since 386BSD, at least. Likely further.
4959 if test -x /sbin/sysctl; then
4960 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4961 elif test -x /usr/sbin/sysctl; then
4962 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4963 else
4964 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4965 fi
4966 # And add a safety zone
4967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4969 ;;
4970
4971 interix*)
4972 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4973 lt_cv_sys_max_cmd_len=196608
4974 ;;
4975
4976 osf*)
4977 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4978 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4979 # nice to cause kernel panics so lets avoid the loop below.
4980 # First set a reasonable default.
4981 lt_cv_sys_max_cmd_len=16384
4982 #
4983 if test -x /sbin/sysconfig; then
4984 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4985 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4986 esac
4987 fi
4988 ;;
4989 sco3.2v5*)
4990 lt_cv_sys_max_cmd_len=102400
4991 ;;
4992 sysv5* | sco5v6* | sysv4.2uw2*)
4993 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4994 if test -n "$kargmax"; then
4995 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4996 else
4997 lt_cv_sys_max_cmd_len=32768
4998 fi
4999 ;;
5000 *)
5001 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5002 if test -n "$lt_cv_sys_max_cmd_len"; then
5003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5005 else
5006 # Make teststring a little bigger before we do anything with it.
5007 # a 1K string should be a reasonable start.
5008 for i in 1 2 3 4 5 6 7 8 ; do
5009 teststring=$teststring$teststring
5010 done
5011 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5012 # If test is not a shell built-in, we'll probably end up computing a
5013 # maximum length that is only half of the actual maximum length, but
5014 # we can't tell.
5015 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5016 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5017 test $i != 17 # 1/2 MB should be enough
5018 do
5019 i=`expr $i + 1`
5020 teststring=$teststring$teststring
5021 done
5022 # Only check the string length outside the loop.
5023 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5024 teststring=
5025 # Add a significant safety factor because C++ compilers can tack on
5026 # massive amounts of additional arguments before passing them to the
5027 # linker. It appears as though 1/2 is a usable value.
5028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5029 fi
5030 ;;
5031 esac
5032
5033 fi
5034
5035 if test -n $lt_cv_sys_max_cmd_len ; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5037 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5038 else
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5040 $as_echo "none" >&6; }
5041 fi
5042 max_cmd_len=$lt_cv_sys_max_cmd_len
5043
5044
5045
5046
5047
5048
5049 : ${CP="cp -f"}
5050 : ${MV="mv -f"}
5051 : ${RM="rm -f"}
5052
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5054 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5055 # Try some XSI features
5056 xsi_shell=no
5057 ( _lt_dummy="a/b/c"
5058 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5059 = c,a/b,, \
5060 && eval 'test $(( 1 + 1 )) -eq 2 \
5061 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5062 && xsi_shell=yes
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5064 $as_echo "$xsi_shell" >&6; }
5065
5066
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5068 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5069 lt_shell_append=no
5070 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5071 >/dev/null 2>&1 \
5072 && lt_shell_append=yes
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5074 $as_echo "$lt_shell_append" >&6; }
5075
5076
5077 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5078 lt_unset=unset
5079 else
5080 lt_unset=false
5081 fi
5082
5083
5084
5085
5086
5087 # test EBCDIC or ASCII
5088 case `echo X|tr X '\101'` in
5089 A) # ASCII based system
5090 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5091 lt_SP2NL='tr \040 \012'
5092 lt_NL2SP='tr \015\012 \040\040'
5093 ;;
5094 *) # EBCDIC based system
5095 lt_SP2NL='tr \100 \n'
5096 lt_NL2SP='tr \r\n \100\100'
5097 ;;
5098 esac
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5109 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5110 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 lt_cv_ld_reload_flag='-r'
5114 fi
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5116 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5117 reload_flag=$lt_cv_ld_reload_flag
5118 case $reload_flag in
5119 "" | " "*) ;;
5120 *) reload_flag=" $reload_flag" ;;
5121 esac
5122 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5123 case $host_os in
5124 darwin*)
5125 if test "$GCC" = yes; then
5126 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5127 else
5128 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5129 fi
5130 ;;
5131 esac
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141 if test -n "$ac_tool_prefix"; then
5142 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5143 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 if test -n "$OBJDUMP"; then
5150 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5154 do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5159 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5162 fi
5163 done
5164 done
5165 IFS=$as_save_IFS
5166
5167 fi
5168 fi
5169 OBJDUMP=$ac_cv_prog_OBJDUMP
5170 if test -n "$OBJDUMP"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5172 $as_echo "$OBJDUMP" >&6; }
5173 else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5176 fi
5177
5178
5179 fi
5180 if test -z "$ac_cv_prog_OBJDUMP"; then
5181 ac_ct_OBJDUMP=$OBJDUMP
5182 # Extract the first word of "objdump", so it can be a program name with args.
5183 set dummy objdump; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 if test -n "$ac_ct_OBJDUMP"; then
5190 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203 done
5204 done
5205 IFS=$as_save_IFS
5206
5207 fi
5208 fi
5209 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5210 if test -n "$ac_ct_OBJDUMP"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5212 $as_echo "$ac_ct_OBJDUMP" >&6; }
5213 else
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216 fi
5217
5218 if test "x$ac_ct_OBJDUMP" = x; then
5219 OBJDUMP="false"
5220 else
5221 case $cross_compiling:$ac_tool_warned in
5222 yes:)
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225 ac_tool_warned=yes ;;
5226 esac
5227 OBJDUMP=$ac_ct_OBJDUMP
5228 fi
5229 else
5230 OBJDUMP="$ac_cv_prog_OBJDUMP"
5231 fi
5232
5233 test -z "$OBJDUMP" && OBJDUMP=objdump
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5244 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5245 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 lt_cv_file_magic_cmd='$MAGIC_CMD'
5249 lt_cv_file_magic_test_file=
5250 lt_cv_deplibs_check_method='unknown'
5251 # Need to set the preceding variable on all platforms that support
5252 # interlibrary dependencies.
5253 # 'none' -- dependencies not supported.
5254 # `unknown' -- same as none, but documents that we really don't know.
5255 # 'pass_all' -- all dependencies passed with no checks.
5256 # 'test_compile' -- check by making test program.
5257 # 'file_magic [[regex]]' -- check by looking for files in library path
5258 # which responds to the $file_magic_cmd with a given extended regex.
5259 # If you have `file' or equivalent on your system and you're not sure
5260 # whether `pass_all' will *always* work, you probably want this one.
5261
5262 case $host_os in
5263 aix[4-9]*)
5264 lt_cv_deplibs_check_method=pass_all
5265 ;;
5266
5267 beos*)
5268 lt_cv_deplibs_check_method=pass_all
5269 ;;
5270
5271 bsdi[45]*)
5272 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5273 lt_cv_file_magic_cmd='/usr/bin/file -L'
5274 lt_cv_file_magic_test_file=/shlib/libc.so
5275 ;;
5276
5277 cygwin*)
5278 # func_win32_libid is a shell function defined in ltmain.sh
5279 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5280 lt_cv_file_magic_cmd='func_win32_libid'
5281 ;;
5282
5283 mingw* | pw32*)
5284 # Base MSYS/MinGW do not provide the 'file' command needed by
5285 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5286 # unless we find 'file', for example because we are cross-compiling.
5287 if ( file / ) >/dev/null 2>&1; then
5288 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5289 lt_cv_file_magic_cmd='func_win32_libid'
5290 else
5291 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5292 lt_cv_file_magic_cmd='$OBJDUMP -f'
5293 fi
5294 ;;
5295
5296 cegcc)
5297 # use the weaker test based on 'objdump'. See mingw*.
5298 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5299 lt_cv_file_magic_cmd='$OBJDUMP -f'
5300 ;;
5301
5302 darwin* | rhapsody*)
5303 lt_cv_deplibs_check_method=pass_all
5304 ;;
5305
5306 freebsd* | dragonfly*)
5307 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5308 case $host_cpu in
5309 i*86 )
5310 # Not sure whether the presence of OpenBSD here was a mistake.
5311 # Let's accept both of them until this is cleared up.
5312 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5313 lt_cv_file_magic_cmd=/usr/bin/file
5314 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5315 ;;
5316 esac
5317 else
5318 lt_cv_deplibs_check_method=pass_all
5319 fi
5320 ;;
5321
5322 gnu*)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325
5326 hpux10.20* | hpux11*)
5327 lt_cv_file_magic_cmd=/usr/bin/file
5328 case $host_cpu in
5329 ia64*)
5330 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5331 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5332 ;;
5333 hppa*64*)
5334 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]'
5335 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5336 ;;
5337 *)
5338 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5339 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5340 ;;
5341 esac
5342 ;;
5343
5344 interix[3-9]*)
5345 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5347 ;;
5348
5349 irix5* | irix6* | nonstopux*)
5350 case $LD in
5351 *-32|*"-32 ") libmagic=32-bit;;
5352 *-n32|*"-n32 ") libmagic=N32;;
5353 *-64|*"-64 ") libmagic=64-bit;;
5354 *) libmagic=never-match;;
5355 esac
5356 lt_cv_deplibs_check_method=pass_all
5357 ;;
5358
5359 # This must be Linux ELF.
5360 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5361 lt_cv_deplibs_check_method=pass_all
5362 ;;
5363
5364 netbsd* | netbsdelf*-gnu)
5365 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5367 else
5368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5369 fi
5370 ;;
5371
5372 newos6*)
5373 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5374 lt_cv_file_magic_cmd=/usr/bin/file
5375 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5376 ;;
5377
5378 *nto* | *qnx*)
5379 lt_cv_deplibs_check_method=pass_all
5380 ;;
5381
5382 openbsd*)
5383 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5385 else
5386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5387 fi
5388 ;;
5389
5390 osf3* | osf4* | osf5*)
5391 lt_cv_deplibs_check_method=pass_all
5392 ;;
5393
5394 rdos*)
5395 lt_cv_deplibs_check_method=pass_all
5396 ;;
5397
5398 solaris*)
5399 lt_cv_deplibs_check_method=pass_all
5400 ;;
5401
5402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5403 lt_cv_deplibs_check_method=pass_all
5404 ;;
5405
5406 sysv4 | sysv4.3*)
5407 case $host_vendor in
5408 motorola)
5409 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]'
5410 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5411 ;;
5412 ncr)
5413 lt_cv_deplibs_check_method=pass_all
5414 ;;
5415 sequent)
5416 lt_cv_file_magic_cmd='/bin/file'
5417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5418 ;;
5419 sni)
5420 lt_cv_file_magic_cmd='/bin/file'
5421 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5422 lt_cv_file_magic_test_file=/lib/libc.so
5423 ;;
5424 siemens)
5425 lt_cv_deplibs_check_method=pass_all
5426 ;;
5427 pc)
5428 lt_cv_deplibs_check_method=pass_all
5429 ;;
5430 esac
5431 ;;
5432
5433 tpf*)
5434 lt_cv_deplibs_check_method=pass_all
5435 ;;
5436 esac
5437
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5440 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5441 file_magic_cmd=$lt_cv_file_magic_cmd
5442 deplibs_check_method=$lt_cv_deplibs_check_method
5443 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456 if test -n "$ac_tool_prefix"; then
5457 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5458 set dummy ${ac_tool_prefix}ar; ac_word=$2
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460 $as_echo_n "checking for $ac_word... " >&6; }
5461 if test "${ac_cv_prog_AR+set}" = set; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 if test -n "$AR"; then
5465 ac_cv_prog_AR="$AR" # Let the user override the test.
5466 else
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5469 do
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5474 ac_cv_prog_AR="${ac_tool_prefix}ar"
5475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 break 2
5477 fi
5478 done
5479 done
5480 IFS=$as_save_IFS
5481
5482 fi
5483 fi
5484 AR=$ac_cv_prog_AR
5485 if test -n "$AR"; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5487 $as_echo "$AR" >&6; }
5488 else
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 $as_echo "no" >&6; }
5491 fi
5492
5493
5494 fi
5495 if test -z "$ac_cv_prog_AR"; then
5496 ac_ct_AR=$AR
5497 # Extract the first word of "ar", so it can be a program name with args.
5498 set dummy ar; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 if test -n "$ac_ct_AR"; then
5505 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5509 do
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514 ac_cv_prog_ac_ct_AR="ar"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5517 fi
5518 done
5519 done
5520 IFS=$as_save_IFS
5521
5522 fi
5523 fi
5524 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5525 if test -n "$ac_ct_AR"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5527 $as_echo "$ac_ct_AR" >&6; }
5528 else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5531 fi
5532
5533 if test "x$ac_ct_AR" = x; then
5534 AR="false"
5535 else
5536 case $cross_compiling:$ac_tool_warned in
5537 yes:)
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5540 ac_tool_warned=yes ;;
5541 esac
5542 AR=$ac_ct_AR
5543 fi
5544 else
5545 AR="$ac_cv_prog_AR"
5546 fi
5547
5548 test -z "$AR" && AR=ar
5549 test -z "$AR_FLAGS" && AR_FLAGS=cru
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561 if test -n "$ac_tool_prefix"; then
5562 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5563 set dummy ${ac_tool_prefix}strip; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if test "${ac_cv_prog_STRIP+set}" = set; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 if test -n "$STRIP"; then
5570 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5571 else
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 break 2
5582 fi
5583 done
5584 done
5585 IFS=$as_save_IFS
5586
5587 fi
5588 fi
5589 STRIP=$ac_cv_prog_STRIP
5590 if test -n "$STRIP"; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5592 $as_echo "$STRIP" >&6; }
5593 else
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5596 fi
5597
5598
5599 fi
5600 if test -z "$ac_cv_prog_STRIP"; then
5601 ac_ct_STRIP=$STRIP
5602 # Extract the first word of "strip", so it can be a program name with args.
5603 set dummy strip; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 if test -n "$ac_ct_STRIP"; then
5610 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619 ac_cv_prog_ac_ct_STRIP="strip"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623 done
5624 done
5625 IFS=$as_save_IFS
5626
5627 fi
5628 fi
5629 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5630 if test -n "$ac_ct_STRIP"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5632 $as_echo "$ac_ct_STRIP" >&6; }
5633 else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5636 fi
5637
5638 if test "x$ac_ct_STRIP" = x; then
5639 STRIP=":"
5640 else
5641 case $cross_compiling:$ac_tool_warned in
5642 yes:)
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5645 ac_tool_warned=yes ;;
5646 esac
5647 STRIP=$ac_ct_STRIP
5648 fi
5649 else
5650 STRIP="$ac_cv_prog_STRIP"
5651 fi
5652
5653 test -z "$STRIP" && STRIP=:
5654
5655
5656
5657
5658
5659
5660 if test -n "$ac_tool_prefix"; then
5661 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5662 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5666 $as_echo_n "(cached) " >&6
5667 else
5668 if test -n "$RANLIB"; then
5669 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5670 else
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5678 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 break 2
5681 fi
5682 done
5683 done
5684 IFS=$as_save_IFS
5685
5686 fi
5687 fi
5688 RANLIB=$ac_cv_prog_RANLIB
5689 if test -n "$RANLIB"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5691 $as_echo "$RANLIB" >&6; }
5692 else
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5695 fi
5696
5697
5698 fi
5699 if test -z "$ac_cv_prog_RANLIB"; then
5700 ac_ct_RANLIB=$RANLIB
5701 # Extract the first word of "ranlib", so it can be a program name with args.
5702 set dummy ranlib; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 if test -n "$ac_ct_RANLIB"; then
5709 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5718 ac_cv_prog_ac_ct_RANLIB="ranlib"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722 done
5723 done
5724 IFS=$as_save_IFS
5725
5726 fi
5727 fi
5728 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5729 if test -n "$ac_ct_RANLIB"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5731 $as_echo "$ac_ct_RANLIB" >&6; }
5732 else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736
5737 if test "x$ac_ct_RANLIB" = x; then
5738 RANLIB=":"
5739 else
5740 case $cross_compiling:$ac_tool_warned in
5741 yes:)
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5744 ac_tool_warned=yes ;;
5745 esac
5746 RANLIB=$ac_ct_RANLIB
5747 fi
5748 else
5749 RANLIB="$ac_cv_prog_RANLIB"
5750 fi
5751
5752 test -z "$RANLIB" && RANLIB=:
5753
5754
5755
5756
5757
5758
5759 # Determine commands to create old-style static archives.
5760 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5761 old_postinstall_cmds='chmod 644 $oldlib'
5762 old_postuninstall_cmds=
5763
5764 if test -n "$RANLIB"; then
5765 case $host_os in
5766 openbsd*)
5767 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5768 ;;
5769 *)
5770 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5771 ;;
5772 esac
5773 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5774 fi
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809 # If no C compiler was specified, use CC.
5810 LTCC=${LTCC-"$CC"}
5811
5812 # If no C compiler flags were specified, use CFLAGS.
5813 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5814
5815 # Allow CC to be a program name with arguments.
5816 compiler=$CC
5817
5818
5819 # Check for command to grab the raw symbol name followed by C symbol from nm.
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5821 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5822 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825
5826 # These are sane defaults that work on at least a few old systems.
5827 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5828
5829 # Character class describing NM global symbol codes.
5830 symcode='[BCDEGRST]'
5831
5832 # Regexp to match symbols that can be accessed directly from C.
5833 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5834
5835 # Define system-specific variables.
5836 case $host_os in
5837 aix*)
5838 symcode='[BCDT]'
5839 ;;
5840 cygwin* | mingw* | pw32* | cegcc*)
5841 symcode='[ABCDGISTW]'
5842 ;;
5843 hpux*)
5844 if test "$host_cpu" = ia64; then
5845 symcode='[ABCDEGRST]'
5846 fi
5847 ;;
5848 irix* | nonstopux*)
5849 symcode='[BCDEGRST]'
5850 ;;
5851 osf*)
5852 symcode='[BCDEGQRST]'
5853 ;;
5854 solaris*)
5855 symcode='[BDRT]'
5856 ;;
5857 sco3.2v5*)
5858 symcode='[DT]'
5859 ;;
5860 sysv4.2uw2*)
5861 symcode='[DT]'
5862 ;;
5863 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5864 symcode='[ABDT]'
5865 ;;
5866 sysv4)
5867 symcode='[DFNSTU]'
5868 ;;
5869 esac
5870
5871 # If we're using GNU nm, then use its standard symbol codes.
5872 case `$NM -V 2>&1` in
5873 *GNU* | *'with BFD'*)
5874 symcode='[ABCDGIRSTW]' ;;
5875 esac
5876
5877 # Transform an extracted symbol line into a proper C declaration.
5878 # Some systems (esp. on ia64) link data and code symbols differently,
5879 # so use this general approach.
5880 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5881
5882 # Transform an extracted symbol line into symbol name and symbol address
5883 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5884 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5885
5886 # Handle CRLF in mingw tool chain
5887 opt_cr=
5888 case $build_os in
5889 mingw*)
5890 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5891 ;;
5892 esac
5893
5894 # Try without a prefix underscore, then with it.
5895 for ac_symprfx in "" "_"; do
5896
5897 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5898 symxfrm="\\1 $ac_symprfx\\2 \\2"
5899
5900 # Write the raw and C identifiers.
5901 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5902 # Fake it for dumpbin and say T for any non-static function
5903 # and D for any global variable.
5904 # Also find C++ and __fastcall symbols from MSVC++,
5905 # which start with @ or ?.
5906 lt_cv_sys_global_symbol_pipe="$AWK '"\
5907 " {last_section=section; section=\$ 3};"\
5908 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5909 " \$ 0!~/External *\|/{next};"\
5910 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5911 " {if(hide[section]) next};"\
5912 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5913 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5914 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5915 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5916 " ' prfx=^$ac_symprfx"
5917 else
5918 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5919 fi
5920
5921 # Check to see that the pipe works correctly.
5922 pipe_works=no
5923
5924 rm -f conftest*
5925 cat > conftest.$ac_ext <<_LT_EOF
5926 #ifdef __cplusplus
5927 extern "C" {
5928 #endif
5929 char nm_test_var;
5930 void nm_test_func(void);
5931 void nm_test_func(void){}
5932 #ifdef __cplusplus
5933 }
5934 #endif
5935 int main(){nm_test_var='a';nm_test_func();return(0);}
5936 _LT_EOF
5937
5938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5939 (eval $ac_compile) 2>&5
5940 ac_status=$?
5941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5942 test $ac_status = 0; }; then
5943 # Now try to grab the symbols.
5944 nlist=conftest.nm
5945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5946 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5947 ac_status=$?
5948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5949 test $ac_status = 0; } && test -s "$nlist"; then
5950 # Try sorting and uniquifying the output.
5951 if sort "$nlist" | uniq > "$nlist"T; then
5952 mv -f "$nlist"T "$nlist"
5953 else
5954 rm -f "$nlist"T
5955 fi
5956
5957 # Make sure that we snagged all the symbols we need.
5958 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5959 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5960 cat <<_LT_EOF > conftest.$ac_ext
5961 #ifdef __cplusplus
5962 extern "C" {
5963 #endif
5964
5965 _LT_EOF
5966 # Now generate the symbol file.
5967 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5968
5969 cat <<_LT_EOF >> conftest.$ac_ext
5970
5971 /* The mapping between symbol names and symbols. */
5972 const struct {
5973 const char *name;
5974 void *address;
5975 }
5976 lt__PROGRAM__LTX_preloaded_symbols[] =
5977 {
5978 { "@PROGRAM@", (void *) 0 },
5979 _LT_EOF
5980 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5981 cat <<\_LT_EOF >> conftest.$ac_ext
5982 {0, (void *) 0}
5983 };
5984
5985 /* This works around a problem in FreeBSD linker */
5986 #ifdef FREEBSD_WORKAROUND
5987 static const void *lt_preloaded_setup() {
5988 return lt__PROGRAM__LTX_preloaded_symbols;
5989 }
5990 #endif
5991
5992 #ifdef __cplusplus
5993 }
5994 #endif
5995 _LT_EOF
5996 # Now try linking the two files.
5997 mv conftest.$ac_objext conftstm.$ac_objext
5998 lt_save_LIBS="$LIBS"
5999 lt_save_CFLAGS="$CFLAGS"
6000 LIBS="conftstm.$ac_objext"
6001 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6003 (eval $ac_link) 2>&5
6004 ac_status=$?
6005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6006 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6007 pipe_works=yes
6008 fi
6009 LIBS="$lt_save_LIBS"
6010 CFLAGS="$lt_save_CFLAGS"
6011 else
6012 echo "cannot find nm_test_func in $nlist" >&5
6013 fi
6014 else
6015 echo "cannot find nm_test_var in $nlist" >&5
6016 fi
6017 else
6018 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6019 fi
6020 else
6021 echo "$progname: failed program was:" >&5
6022 cat conftest.$ac_ext >&5
6023 fi
6024 rm -rf conftest* conftst*
6025
6026 # Do not use the global_symbol_pipe unless it works.
6027 if test "$pipe_works" = yes; then
6028 break
6029 else
6030 lt_cv_sys_global_symbol_pipe=
6031 fi
6032 done
6033
6034 fi
6035
6036 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6037 lt_cv_sys_global_symbol_to_cdecl=
6038 fi
6039 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6041 $as_echo "failed" >&6; }
6042 else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6044 $as_echo "ok" >&6; }
6045 fi
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069 # Check whether --enable-libtool-lock was given.
6070 if test "${enable_libtool_lock+set}" = set; then :
6071 enableval=$enable_libtool_lock;
6072 fi
6073
6074 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6075
6076 # Some flags need to be propagated to the compiler or linker for good
6077 # libtool support.
6078 case $host in
6079 ia64-*-hpux*)
6080 # Find out which ABI we are using.
6081 echo 'int i;' > conftest.$ac_ext
6082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6083 (eval $ac_compile) 2>&5
6084 ac_status=$?
6085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6086 test $ac_status = 0; }; then
6087 case `/usr/bin/file conftest.$ac_objext` in
6088 *ELF-32*)
6089 HPUX_IA64_MODE="32"
6090 ;;
6091 *ELF-64*)
6092 HPUX_IA64_MODE="64"
6093 ;;
6094 esac
6095 fi
6096 rm -rf conftest*
6097 ;;
6098 *-*-irix6*)
6099 # Find out which ABI we are using.
6100 echo '#line 6100 "configure"' > conftest.$ac_ext
6101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6102 (eval $ac_compile) 2>&5
6103 ac_status=$?
6104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6105 test $ac_status = 0; }; then
6106 if test "$lt_cv_prog_gnu_ld" = yes; then
6107 case `/usr/bin/file conftest.$ac_objext` in
6108 *32-bit*)
6109 LD="${LD-ld} -melf32bsmip"
6110 ;;
6111 *N32*)
6112 LD="${LD-ld} -melf32bmipn32"
6113 ;;
6114 *64-bit*)
6115 LD="${LD-ld} -melf64bmip"
6116 ;;
6117 esac
6118 else
6119 case `/usr/bin/file conftest.$ac_objext` in
6120 *32-bit*)
6121 LD="${LD-ld} -32"
6122 ;;
6123 *N32*)
6124 LD="${LD-ld} -n32"
6125 ;;
6126 *64-bit*)
6127 LD="${LD-ld} -64"
6128 ;;
6129 esac
6130 fi
6131 fi
6132 rm -rf conftest*
6133 ;;
6134
6135 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6136 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6137 # Find out which ABI we are using.
6138 echo 'int i;' > conftest.$ac_ext
6139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6140 (eval $ac_compile) 2>&5
6141 ac_status=$?
6142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6143 test $ac_status = 0; }; then
6144 case `/usr/bin/file conftest.o` in
6145 *32-bit*)
6146 case $host in
6147 x86_64-*kfreebsd*-gnu)
6148 LD="${LD-ld} -m elf_i386_fbsd"
6149 ;;
6150 x86_64-*linux*)
6151 LD="${LD-ld} -m elf_i386"
6152 ;;
6153 ppc64-*linux*|powerpc64-*linux*)
6154 LD="${LD-ld} -m elf32ppclinux"
6155 ;;
6156 s390x-*linux*)
6157 LD="${LD-ld} -m elf_s390"
6158 ;;
6159 sparc64-*linux*)
6160 LD="${LD-ld} -m elf32_sparc"
6161 ;;
6162 esac
6163 ;;
6164 *64-bit*)
6165 case $host in
6166 x86_64-*kfreebsd*-gnu)
6167 LD="${LD-ld} -m elf_x86_64_fbsd"
6168 ;;
6169 x86_64-*linux*)
6170 LD="${LD-ld} -m elf_x86_64"
6171 ;;
6172 ppc*-*linux*|powerpc*-*linux*)
6173 LD="${LD-ld} -m elf64ppc"
6174 ;;
6175 s390*-*linux*|s390*-*tpf*)
6176 LD="${LD-ld} -m elf64_s390"
6177 ;;
6178 sparc*-*linux*)
6179 LD="${LD-ld} -m elf64_sparc"
6180 ;;
6181 esac
6182 ;;
6183 esac
6184 fi
6185 rm -rf conftest*
6186 ;;
6187
6188 *-*-sco3.2v5*)
6189 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6190 SAVE_CFLAGS="$CFLAGS"
6191 CFLAGS="$CFLAGS -belf"
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6193 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6194 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197 ac_ext=c
6198 ac_cpp='$CPP $CPPFLAGS'
6199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6202
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6205
6206 int
6207 main ()
6208 {
6209
6210 ;
6211 return 0;
6212 }
6213 _ACEOF
6214 if ac_fn_c_try_link "$LINENO"; then :
6215 lt_cv_cc_needs_belf=yes
6216 else
6217 lt_cv_cc_needs_belf=no
6218 fi
6219 rm -f core conftest.err conftest.$ac_objext \
6220 conftest$ac_exeext conftest.$ac_ext
6221 ac_ext=c
6222 ac_cpp='$CPP $CPPFLAGS'
6223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6226
6227 fi
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6229 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6230 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6231 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6232 CFLAGS="$SAVE_CFLAGS"
6233 fi
6234 ;;
6235 sparc*-*solaris*)
6236 # Find out which ABI we are using.
6237 echo 'int i;' > conftest.$ac_ext
6238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6239 (eval $ac_compile) 2>&5
6240 ac_status=$?
6241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6242 test $ac_status = 0; }; then
6243 case `/usr/bin/file conftest.o` in
6244 *64-bit*)
6245 case $lt_cv_prog_gnu_ld in
6246 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6247 *)
6248 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6249 LD="${LD-ld} -64"
6250 fi
6251 ;;
6252 esac
6253 ;;
6254 esac
6255 fi
6256 rm -rf conftest*
6257 ;;
6258 esac
6259
6260 need_locks="$enable_libtool_lock"
6261
6262
6263 case $host_os in
6264 rhapsody* | darwin*)
6265 if test -n "$ac_tool_prefix"; then
6266 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6267 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269 $as_echo_n "checking for $ac_word... " >&6; }
6270 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6271 $as_echo_n "(cached) " >&6
6272 else
6273 if test -n "$DSYMUTIL"; then
6274 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6275 else
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 for as_dir in $PATH
6278 do
6279 IFS=$as_save_IFS
6280 test -z "$as_dir" && as_dir=.
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6283 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6285 break 2
6286 fi
6287 done
6288 done
6289 IFS=$as_save_IFS
6290
6291 fi
6292 fi
6293 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6294 if test -n "$DSYMUTIL"; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6296 $as_echo "$DSYMUTIL" >&6; }
6297 else
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299 $as_echo "no" >&6; }
6300 fi
6301
6302
6303 fi
6304 if test -z "$ac_cv_prog_DSYMUTIL"; then
6305 ac_ct_DSYMUTIL=$DSYMUTIL
6306 # Extract the first word of "dsymutil", so it can be a program name with args.
6307 set dummy dsymutil; ac_word=$2
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309 $as_echo_n "checking for $ac_word... " >&6; }
6310 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 if test -n "$ac_ct_DSYMUTIL"; then
6314 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6318 do
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 break 2
6326 fi
6327 done
6328 done
6329 IFS=$as_save_IFS
6330
6331 fi
6332 fi
6333 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6334 if test -n "$ac_ct_DSYMUTIL"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6336 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6337 else
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6340 fi
6341
6342 if test "x$ac_ct_DSYMUTIL" = x; then
6343 DSYMUTIL=":"
6344 else
6345 case $cross_compiling:$ac_tool_warned in
6346 yes:)
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6349 ac_tool_warned=yes ;;
6350 esac
6351 DSYMUTIL=$ac_ct_DSYMUTIL
6352 fi
6353 else
6354 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6355 fi
6356
6357 if test -n "$ac_tool_prefix"; then
6358 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6359 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361 $as_echo_n "checking for $ac_word... " >&6; }
6362 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 if test -n "$NMEDIT"; then
6366 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379 done
6380 done
6381 IFS=$as_save_IFS
6382
6383 fi
6384 fi
6385 NMEDIT=$ac_cv_prog_NMEDIT
6386 if test -n "$NMEDIT"; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6388 $as_echo "$NMEDIT" >&6; }
6389 else
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6392 fi
6393
6394
6395 fi
6396 if test -z "$ac_cv_prog_NMEDIT"; then
6397 ac_ct_NMEDIT=$NMEDIT
6398 # Extract the first word of "nmedit", so it can be a program name with args.
6399 set dummy nmedit; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 if test -n "$ac_ct_NMEDIT"; then
6406 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 break 2
6418 fi
6419 done
6420 done
6421 IFS=$as_save_IFS
6422
6423 fi
6424 fi
6425 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6426 if test -n "$ac_ct_NMEDIT"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6428 $as_echo "$ac_ct_NMEDIT" >&6; }
6429 else
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434 if test "x$ac_ct_NMEDIT" = x; then
6435 NMEDIT=":"
6436 else
6437 case $cross_compiling:$ac_tool_warned in
6438 yes:)
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6441 ac_tool_warned=yes ;;
6442 esac
6443 NMEDIT=$ac_ct_NMEDIT
6444 fi
6445 else
6446 NMEDIT="$ac_cv_prog_NMEDIT"
6447 fi
6448
6449 if test -n "$ac_tool_prefix"; then
6450 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6451 set dummy ${ac_tool_prefix}lipo; 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; }
6454 if test "${ac_cv_prog_LIPO+set}" = set; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 if test -n "$LIPO"; then
6458 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6459 else
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 for as_dir in $PATH
6462 do
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_LIPO="${ac_tool_prefix}lipo"
6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 break 2
6470 fi
6471 done
6472 done
6473 IFS=$as_save_IFS
6474
6475 fi
6476 fi
6477 LIPO=$ac_cv_prog_LIPO
6478 if test -n "$LIPO"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6480 $as_echo "$LIPO" >&6; }
6481 else
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 $as_echo "no" >&6; }
6484 fi
6485
6486
6487 fi
6488 if test -z "$ac_cv_prog_LIPO"; then
6489 ac_ct_LIPO=$LIPO
6490 # Extract the first word of "lipo", so it can be a program name with args.
6491 set dummy lipo; 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; }
6494 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 if test -n "$ac_ct_LIPO"; then
6498 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6499 else
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 for as_dir in $PATH
6502 do
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_LIPO="lipo"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6510 fi
6511 done
6512 done
6513 IFS=$as_save_IFS
6514
6515 fi
6516 fi
6517 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6518 if test -n "$ac_ct_LIPO"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6520 $as_echo "$ac_ct_LIPO" >&6; }
6521 else
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6524 fi
6525
6526 if test "x$ac_ct_LIPO" = x; then
6527 LIPO=":"
6528 else
6529 case $cross_compiling:$ac_tool_warned in
6530 yes:)
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;}
6533 ac_tool_warned=yes ;;
6534 esac
6535 LIPO=$ac_ct_LIPO
6536 fi
6537 else
6538 LIPO="$ac_cv_prog_LIPO"
6539 fi
6540
6541 if test -n "$ac_tool_prefix"; then
6542 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6543 set dummy ${ac_tool_prefix}otool; 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; }
6546 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 if test -n "$OTOOL"; then
6550 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
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_OTOOL="${ac_tool_prefix}otool"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563 done
6564 done
6565 IFS=$as_save_IFS
6566
6567 fi
6568 fi
6569 OTOOL=$ac_cv_prog_OTOOL
6570 if test -n "$OTOOL"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6572 $as_echo "$OTOOL" >&6; }
6573 else
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6576 fi
6577
6578
6579 fi
6580 if test -z "$ac_cv_prog_OTOOL"; then
6581 ac_ct_OTOOL=$OTOOL
6582 # Extract the first word of "otool", so it can be a program name with args.
6583 set dummy otool; 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; }
6586 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589 if test -n "$ac_ct_OTOOL"; then
6590 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6591 else
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
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_OTOOL="otool"
6600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6602 fi
6603 done
6604 done
6605 IFS=$as_save_IFS
6606
6607 fi
6608 fi
6609 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6610 if test -n "$ac_ct_OTOOL"; then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6612 $as_echo "$ac_ct_OTOOL" >&6; }
6613 else
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615 $as_echo "no" >&6; }
6616 fi
6617
6618 if test "x$ac_ct_OTOOL" = x; then
6619 OTOOL=":"
6620 else
6621 case $cross_compiling:$ac_tool_warned in
6622 yes:)
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;}
6625 ac_tool_warned=yes ;;
6626 esac
6627 OTOOL=$ac_ct_OTOOL
6628 fi
6629 else
6630 OTOOL="$ac_cv_prog_OTOOL"
6631 fi
6632
6633 if test -n "$ac_tool_prefix"; then
6634 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6635 set dummy ${ac_tool_prefix}otool64; 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; }
6638 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 if test -n "$OTOOL64"; then
6642 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
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_OTOOL64="${ac_tool_prefix}otool64"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6654 fi
6655 done
6656 done
6657 IFS=$as_save_IFS
6658
6659 fi
6660 fi
6661 OTOOL64=$ac_cv_prog_OTOOL64
6662 if test -n "$OTOOL64"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6664 $as_echo "$OTOOL64" >&6; }
6665 else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6668 fi
6669
6670
6671 fi
6672 if test -z "$ac_cv_prog_OTOOL64"; then
6673 ac_ct_OTOOL64=$OTOOL64
6674 # Extract the first word of "otool64", so it can be a program name with args.
6675 set dummy otool64; 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; }
6678 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 if test -n "$ac_ct_OTOOL64"; then
6682 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6683 else
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
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_OTOOL64="otool64"
6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 break 2
6694 fi
6695 done
6696 done
6697 IFS=$as_save_IFS
6698
6699 fi
6700 fi
6701 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6702 if test -n "$ac_ct_OTOOL64"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6704 $as_echo "$ac_ct_OTOOL64" >&6; }
6705 else
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6708 fi
6709
6710 if test "x$ac_ct_OTOOL64" = x; then
6711 OTOOL64=":"
6712 else
6713 case $cross_compiling:$ac_tool_warned in
6714 yes:)
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;}
6717 ac_tool_warned=yes ;;
6718 esac
6719 OTOOL64=$ac_ct_OTOOL64
6720 fi
6721 else
6722 OTOOL64="$ac_cv_prog_OTOOL64"
6723 fi
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6752 $as_echo_n "checking for -single_module linker flag... " >&6; }
6753 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6754 $as_echo_n "(cached) " >&6
6755 else
6756 lt_cv_apple_cc_single_mod=no
6757 if test -z "${LT_MULTI_MODULE}"; then
6758 # By default we will add the -single_module flag. You can override
6759 # by either setting the environment variable LT_MULTI_MODULE
6760 # non-empty at configure time, or by adding -multi_module to the
6761 # link flags.
6762 rm -rf libconftest.dylib*
6763 echo "int foo(void){return 1;}" > conftest.c
6764 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6765 -dynamiclib -Wl,-single_module conftest.c" >&5
6766 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6767 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6768 _lt_result=$?
6769 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6770 lt_cv_apple_cc_single_mod=yes
6771 else
6772 cat conftest.err >&5
6773 fi
6774 rm -rf libconftest.dylib*
6775 rm -f conftest.*
6776 fi
6777 fi
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6779 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6781 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6782 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6783 $as_echo_n "(cached) " >&6
6784 else
6785 lt_cv_ld_exported_symbols_list=no
6786 save_LDFLAGS=$LDFLAGS
6787 echo "_main" > conftest.sym
6788 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791
6792 int
6793 main ()
6794 {
6795
6796 ;
6797 return 0;
6798 }
6799 _ACEOF
6800 if ac_fn_c_try_link "$LINENO"; then :
6801 lt_cv_ld_exported_symbols_list=yes
6802 else
6803 lt_cv_ld_exported_symbols_list=no
6804 fi
6805 rm -f core conftest.err conftest.$ac_objext \
6806 conftest$ac_exeext conftest.$ac_ext
6807 LDFLAGS="$save_LDFLAGS"
6808
6809 fi
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6811 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6812 case $host_os in
6813 rhapsody* | darwin1.[012])
6814 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6815 darwin1.*)
6816 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6817 darwin*) # darwin 5.x on
6818 # if running on 10.5 or later, the deployment target defaults
6819 # to the OS version, if on x86, and 10.4, the deployment
6820 # target defaults to 10.4. Don't you love it?
6821 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6822 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6823 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6824 10.[012]*)
6825 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6826 10.*)
6827 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6828 esac
6829 ;;
6830 esac
6831 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6832 _lt_dar_single_mod='$single_module'
6833 fi
6834 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6835 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6836 else
6837 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6838 fi
6839 if test "$DSYMUTIL" != ":"; then
6840 _lt_dsymutil='~$DSYMUTIL $lib || :'
6841 else
6842 _lt_dsymutil=
6843 fi
6844 ;;
6845 esac
6846
6847 ac_ext=c
6848 ac_cpp='$CPP $CPPFLAGS'
6849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6853 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6854 # On Suns, sometimes $CPP names a directory.
6855 if test -n "$CPP" && test -d "$CPP"; then
6856 CPP=
6857 fi
6858 if test -z "$CPP"; then
6859 if test "${ac_cv_prog_CPP+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 # Double quotes because CPP needs to be expanded
6863 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6864 do
6865 ac_preproc_ok=false
6866 for ac_c_preproc_warn_flag in '' yes
6867 do
6868 # Use a header file that comes with gcc, so configuring glibc
6869 # with a fresh cross-compiler works.
6870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6871 # <limits.h> exists even on freestanding compilers.
6872 # On the NeXT, cc -E runs the code through the compiler's parser,
6873 # not just through cpp. "Syntax error" is here to catch this case.
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876 #ifdef __STDC__
6877 # include <limits.h>
6878 #else
6879 # include <assert.h>
6880 #endif
6881 Syntax error
6882 _ACEOF
6883 if ac_fn_c_try_cpp "$LINENO"; then :
6884
6885 else
6886 # Broken: fails on valid input.
6887 continue
6888 fi
6889 rm -f conftest.err conftest.i conftest.$ac_ext
6890
6891 # OK, works on sane cases. Now check whether nonexistent headers
6892 # can be detected and how.
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6895 #include <ac_nonexistent.h>
6896 _ACEOF
6897 if ac_fn_c_try_cpp "$LINENO"; then :
6898 # Broken: success on invalid input.
6899 continue
6900 else
6901 # Passes both tests.
6902 ac_preproc_ok=:
6903 break
6904 fi
6905 rm -f conftest.err conftest.i conftest.$ac_ext
6906
6907 done
6908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6909 rm -f conftest.i conftest.err conftest.$ac_ext
6910 if $ac_preproc_ok; then :
6911 break
6912 fi
6913
6914 done
6915 ac_cv_prog_CPP=$CPP
6916
6917 fi
6918 CPP=$ac_cv_prog_CPP
6919 else
6920 ac_cv_prog_CPP=$CPP
6921 fi
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6923 $as_echo "$CPP" >&6; }
6924 ac_preproc_ok=false
6925 for ac_c_preproc_warn_flag in '' yes
6926 do
6927 # Use a header file that comes with gcc, so configuring glibc
6928 # with a fresh cross-compiler works.
6929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6930 # <limits.h> exists even on freestanding compilers.
6931 # On the NeXT, cc -E runs the code through the compiler's parser,
6932 # not just through cpp. "Syntax error" is here to catch this case.
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6935 #ifdef __STDC__
6936 # include <limits.h>
6937 #else
6938 # include <assert.h>
6939 #endif
6940 Syntax error
6941 _ACEOF
6942 if ac_fn_c_try_cpp "$LINENO"; then :
6943
6944 else
6945 # Broken: fails on valid input.
6946 continue
6947 fi
6948 rm -f conftest.err conftest.i conftest.$ac_ext
6949
6950 # OK, works on sane cases. Now check whether nonexistent headers
6951 # can be detected and how.
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6954 #include <ac_nonexistent.h>
6955 _ACEOF
6956 if ac_fn_c_try_cpp "$LINENO"; then :
6957 # Broken: success on invalid input.
6958 continue
6959 else
6960 # Passes both tests.
6961 ac_preproc_ok=:
6962 break
6963 fi
6964 rm -f conftest.err conftest.i conftest.$ac_ext
6965
6966 done
6967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6968 rm -f conftest.i conftest.err conftest.$ac_ext
6969 if $ac_preproc_ok; then :
6970
6971 else
6972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6974 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6975 See \`config.log' for more details" "$LINENO" 5 ; }
6976 fi
6977
6978 ac_ext=c
6979 ac_cpp='$CPP $CPPFLAGS'
6980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6983
6984
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6986 $as_echo_n "checking for ANSI C header files... " >&6; }
6987 if test "${ac_cv_header_stdc+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6992 #include <stdlib.h>
6993 #include <stdarg.h>
6994 #include <string.h>
6995 #include <float.h>
6996
6997 int
6998 main ()
6999 {
7000
7001 ;
7002 return 0;
7003 }
7004 _ACEOF
7005 if ac_fn_c_try_compile "$LINENO"; then :
7006 ac_cv_header_stdc=yes
7007 else
7008 ac_cv_header_stdc=no
7009 fi
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011
7012 if test $ac_cv_header_stdc = yes; then
7013 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7016 #include <string.h>
7017
7018 _ACEOF
7019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7020 $EGREP "memchr" >/dev/null 2>&1; then :
7021
7022 else
7023 ac_cv_header_stdc=no
7024 fi
7025 rm -f conftest*
7026
7027 fi
7028
7029 if test $ac_cv_header_stdc = yes; then
7030 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7033 #include <stdlib.h>
7034
7035 _ACEOF
7036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7037 $EGREP "free" >/dev/null 2>&1; then :
7038
7039 else
7040 ac_cv_header_stdc=no
7041 fi
7042 rm -f conftest*
7043
7044 fi
7045
7046 if test $ac_cv_header_stdc = yes; then
7047 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7048 if test "$cross_compiling" = yes; then :
7049 :
7050 else
7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7053 #include <ctype.h>
7054 #include <stdlib.h>
7055 #if ((' ' & 0x0FF) == 0x020)
7056 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7057 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7058 #else
7059 # define ISLOWER(c) \
7060 (('a' <= (c) && (c) <= 'i') \
7061 || ('j' <= (c) && (c) <= 'r') \
7062 || ('s' <= (c) && (c) <= 'z'))
7063 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7064 #endif
7065
7066 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7067 int
7068 main ()
7069 {
7070 int i;
7071 for (i = 0; i < 256; i++)
7072 if (XOR (islower (i), ISLOWER (i))
7073 || toupper (i) != TOUPPER (i))
7074 return 2;
7075 return 0;
7076 }
7077 _ACEOF
7078 if ac_fn_c_try_run "$LINENO"; then :
7079
7080 else
7081 ac_cv_header_stdc=no
7082 fi
7083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7084 conftest.$ac_objext conftest.beam conftest.$ac_ext
7085 fi
7086
7087 fi
7088 fi
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7090 $as_echo "$ac_cv_header_stdc" >&6; }
7091 if test $ac_cv_header_stdc = yes; then
7092
7093 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7094
7095 fi
7096
7097 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7098 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7099 inttypes.h stdint.h unistd.h
7100 do :
7101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7102 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7103 "
7104 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7105 cat >>confdefs.h <<_ACEOF
7106 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7107 _ACEOF
7108
7109 fi
7110
7111 done
7112
7113
7114 for ac_header in dlfcn.h
7115 do :
7116 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7117 "
7118 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7119 cat >>confdefs.h <<_ACEOF
7120 #define HAVE_DLFCN_H 1
7121 _ACEOF
7122
7123 fi
7124
7125 done
7126
7127
7128
7129 # Set options
7130
7131
7132
7133 enable_dlopen=no
7134
7135
7136 enable_win32_dll=no
7137
7138
7139
7140 # Check whether --enable-static was given.
7141 if test "${enable_static+set}" = set; then :
7142 enableval=$enable_static; p=${PACKAGE-default}
7143 case $enableval in
7144 yes) enable_static=yes ;;
7145 no) enable_static=no ;;
7146 *)
7147 enable_static=no
7148 # Look at the argument we got. We use all the common list separators.
7149 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7150 for pkg in $enableval; do
7151 IFS="$lt_save_ifs"
7152 if test "X$pkg" = "X$p"; then
7153 enable_static=yes
7154 fi
7155 done
7156 IFS="$lt_save_ifs"
7157 ;;
7158 esac
7159 else
7160 enable_static=yes
7161 fi
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172 # Check whether --with-pic was given.
7173 if test "${with_pic+set}" = set; then :
7174 withval=$with_pic; pic_mode="$withval"
7175 else
7176 pic_mode=default
7177 fi
7178
7179
7180 test -z "$pic_mode" && pic_mode=default
7181
7182
7183
7184
7185
7186
7187
7188 # Check whether --enable-fast-install was given.
7189 if test "${enable_fast_install+set}" = set; then :
7190 enableval=$enable_fast_install; p=${PACKAGE-default}
7191 case $enableval in
7192 yes) enable_fast_install=yes ;;
7193 no) enable_fast_install=no ;;
7194 *)
7195 enable_fast_install=no
7196 # Look at the argument we got. We use all the common list separators.
7197 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7198 for pkg in $enableval; do
7199 IFS="$lt_save_ifs"
7200 if test "X$pkg" = "X$p"; then
7201 enable_fast_install=yes
7202 fi
7203 done
7204 IFS="$lt_save_ifs"
7205 ;;
7206 esac
7207 else
7208 enable_fast_install=yes
7209 fi
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221 # This can be used to rebuild libtool when needed
7222 LIBTOOL_DEPS="$ltmain"
7223
7224 # Always use our own libtool.
7225 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251 test -z "$LN_S" && LN_S="ln -s"
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266 if test -n "${ZSH_VERSION+set}" ; then
7267 setopt NO_GLOB_SUBST
7268 fi
7269
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7271 $as_echo_n "checking for objdir... " >&6; }
7272 if test "${lt_cv_objdir+set}" = set; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 rm -f .libs 2>/dev/null
7276 mkdir .libs 2>/dev/null
7277 if test -d .libs; then
7278 lt_cv_objdir=.libs
7279 else
7280 # MS-DOS does not allow filenames that begin with a dot.
7281 lt_cv_objdir=_libs
7282 fi
7283 rmdir .libs 2>/dev/null
7284 fi
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7286 $as_echo "$lt_cv_objdir" >&6; }
7287 objdir=$lt_cv_objdir
7288
7289
7290
7291
7292
7293 cat >>confdefs.h <<_ACEOF
7294 #define LT_OBJDIR "$lt_cv_objdir/"
7295 _ACEOF
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313 case $host_os in
7314 aix3*)
7315 # AIX sometimes has problems with the GCC collect2 program. For some
7316 # reason, if we set the COLLECT_NAMES environment variable, the problems
7317 # vanish in a puff of smoke.
7318 if test "X${COLLECT_NAMES+set}" != Xset; then
7319 COLLECT_NAMES=
7320 export COLLECT_NAMES
7321 fi
7322 ;;
7323 esac
7324
7325 # Sed substitution that helps us do robust quoting. It backslashifies
7326 # metacharacters that are still active within double-quoted strings.
7327 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7328
7329 # Same as above, but do not quote variable references.
7330 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7331
7332 # Sed substitution to delay expansion of an escaped shell variable in a
7333 # double_quote_subst'ed string.
7334 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7335
7336 # Sed substitution to delay expansion of an escaped single quote.
7337 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7338
7339 # Sed substitution to avoid accidental globbing in evaled expressions
7340 no_glob_subst='s/\*/\\\*/g'
7341
7342 # Global variables:
7343 ofile=libtool
7344 can_build_shared=yes
7345
7346 # All known linkers require a `.a' archive for static linking (except MSVC,
7347 # which needs '.lib').
7348 libext=a
7349
7350 with_gnu_ld="$lt_cv_prog_gnu_ld"
7351
7352 old_CC="$CC"
7353 old_CFLAGS="$CFLAGS"
7354
7355 # Set sane defaults for various variables
7356 test -z "$CC" && CC=cc
7357 test -z "$LTCC" && LTCC=$CC
7358 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7359 test -z "$LD" && LD=ld
7360 test -z "$ac_objext" && ac_objext=o
7361
7362 for cc_temp in $compiler""; do
7363 case $cc_temp in
7364 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7365 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7366 \-*) ;;
7367 *) break;;
7368 esac
7369 done
7370 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7371
7372
7373 # Only perform the check for file, if the check method requires it
7374 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7375 case $deplibs_check_method in
7376 file_magic*)
7377 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7379 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7380 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 case $MAGIC_CMD in
7384 [\\/*] | ?:[\\/]*)
7385 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7386 ;;
7387 *)
7388 lt_save_MAGIC_CMD="$MAGIC_CMD"
7389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7390 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7391 for ac_dir in $ac_dummy; do
7392 IFS="$lt_save_ifs"
7393 test -z "$ac_dir" && ac_dir=.
7394 if test -f $ac_dir/${ac_tool_prefix}file; then
7395 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7396 if test -n "$file_magic_test_file"; then
7397 case $deplibs_check_method in
7398 "file_magic "*)
7399 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7400 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7401 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7402 $EGREP "$file_magic_regex" > /dev/null; then
7403 :
7404 else
7405 cat <<_LT_EOF 1>&2
7406
7407 *** Warning: the command libtool uses to detect shared libraries,
7408 *** $file_magic_cmd, produces output that libtool cannot recognize.
7409 *** The result is that libtool may fail to recognize shared libraries
7410 *** as such. This will affect the creation of libtool libraries that
7411 *** depend on shared libraries, but programs linked with such libtool
7412 *** libraries will work regardless of this problem. Nevertheless, you
7413 *** may want to report the problem to your system manager and/or to
7414 *** [email protected]
7415
7416 _LT_EOF
7417 fi ;;
7418 esac
7419 fi
7420 break
7421 fi
7422 done
7423 IFS="$lt_save_ifs"
7424 MAGIC_CMD="$lt_save_MAGIC_CMD"
7425 ;;
7426 esac
7427 fi
7428
7429 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7430 if test -n "$MAGIC_CMD"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7432 $as_echo "$MAGIC_CMD" >&6; }
7433 else
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7436 fi
7437
7438
7439
7440
7441
7442 if test -z "$lt_cv_path_MAGIC_CMD"; then
7443 if test -n "$ac_tool_prefix"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7445 $as_echo_n "checking for file... " >&6; }
7446 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 case $MAGIC_CMD in
7450 [\\/*] | ?:[\\/]*)
7451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7452 ;;
7453 *)
7454 lt_save_MAGIC_CMD="$MAGIC_CMD"
7455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7456 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7457 for ac_dir in $ac_dummy; do
7458 IFS="$lt_save_ifs"
7459 test -z "$ac_dir" && ac_dir=.
7460 if test -f $ac_dir/file; then
7461 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7462 if test -n "$file_magic_test_file"; then
7463 case $deplibs_check_method in
7464 "file_magic "*)
7465 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7468 $EGREP "$file_magic_regex" > /dev/null; then
7469 :
7470 else
7471 cat <<_LT_EOF 1>&2
7472
7473 *** Warning: the command libtool uses to detect shared libraries,
7474 *** $file_magic_cmd, produces output that libtool cannot recognize.
7475 *** The result is that libtool may fail to recognize shared libraries
7476 *** as such. This will affect the creation of libtool libraries that
7477 *** depend on shared libraries, but programs linked with such libtool
7478 *** libraries will work regardless of this problem. Nevertheless, you
7479 *** may want to report the problem to your system manager and/or to
7480 *** [email protected]
7481
7482 _LT_EOF
7483 fi ;;
7484 esac
7485 fi
7486 break
7487 fi
7488 done
7489 IFS="$lt_save_ifs"
7490 MAGIC_CMD="$lt_save_MAGIC_CMD"
7491 ;;
7492 esac
7493 fi
7494
7495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7496 if test -n "$MAGIC_CMD"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7498 $as_echo "$MAGIC_CMD" >&6; }
7499 else
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7502 fi
7503
7504
7505 else
7506 MAGIC_CMD=:
7507 fi
7508 fi
7509
7510 fi
7511 ;;
7512 esac
7513
7514 # Use C for the default configuration in the libtool script
7515
7516 lt_save_CC="$CC"
7517 ac_ext=c
7518 ac_cpp='$CPP $CPPFLAGS'
7519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7522
7523
7524 # Source file extension for C test sources.
7525 ac_ext=c
7526
7527 # Object file extension for compiled C test sources.
7528 objext=o
7529 objext=$objext
7530
7531 # Code to be used in simple compile tests
7532 lt_simple_compile_test_code="int some_variable = 0;"
7533
7534 # Code to be used in simple link tests
7535 lt_simple_link_test_code='int main(){return(0);}'
7536
7537
7538
7539
7540
7541
7542
7543 # If no C compiler was specified, use CC.
7544 LTCC=${LTCC-"$CC"}
7545
7546 # If no C compiler flags were specified, use CFLAGS.
7547 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7548
7549 # Allow CC to be a program name with arguments.
7550 compiler=$CC
7551
7552 # Save the default compiler, since it gets overwritten when the other
7553 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7554 compiler_DEFAULT=$CC
7555
7556 # save warnings/boilerplate of simple test code
7557 ac_outfile=conftest.$ac_objext
7558 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7559 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7560 _lt_compiler_boilerplate=`cat conftest.err`
7561 $RM conftest*
7562
7563 ac_outfile=conftest.$ac_objext
7564 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7565 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7566 _lt_linker_boilerplate=`cat conftest.err`
7567 $RM -r conftest*
7568
7569
7570 ## CAVEAT EMPTOR:
7571 ## There is no encapsulation within the following macros, do not change
7572 ## the running order or otherwise move them around unless you know exactly
7573 ## what you are doing...
7574 if test -n "$compiler"; then
7575
7576 lt_prog_compiler_no_builtin_flag=
7577
7578 if test "$GCC" = yes; then
7579 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7580
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7582 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7583 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7584 $as_echo_n "(cached) " >&6
7585 else
7586 lt_cv_prog_compiler_rtti_exceptions=no
7587 ac_outfile=conftest.$ac_objext
7588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7589 lt_compiler_flag="-fno-rtti -fno-exceptions"
7590 # Insert the option either (1) after the last *FLAGS variable, or
7591 # (2) before a word containing "conftest.", or (3) at the end.
7592 # Note that $ac_compile itself does not contain backslashes and begins
7593 # with a dollar sign (not a hyphen), so the echo should work correctly.
7594 # The option is referenced via a variable to avoid confusing sed.
7595 lt_compile=`echo "$ac_compile" | $SED \
7596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7598 -e 's:$: $lt_compiler_flag:'`
7599 (eval echo "\"\$as_me:7599: $lt_compile\"" >&5)
7600 (eval "$lt_compile" 2>conftest.err)
7601 ac_status=$?
7602 cat conftest.err >&5
7603 echo "$as_me:7603: \$? = $ac_status" >&5
7604 if (exit $ac_status) && test -s "$ac_outfile"; then
7605 # The compiler can only warn and ignore the option if not recognized
7606 # So say no if there are warnings other than the usual output.
7607 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7609 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7610 lt_cv_prog_compiler_rtti_exceptions=yes
7611 fi
7612 fi
7613 $RM conftest*
7614
7615 fi
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7617 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7618
7619 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7620 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7621 else
7622 :
7623 fi
7624
7625 fi
7626
7627
7628
7629
7630
7631
7632 lt_prog_compiler_wl=
7633 lt_prog_compiler_pic=
7634 lt_prog_compiler_static=
7635
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7637 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7638
7639 if test "$GCC" = yes; then
7640 lt_prog_compiler_wl='-Wl,'
7641 lt_prog_compiler_static='-static'
7642
7643 case $host_os in
7644 aix*)
7645 # All AIX code is PIC.
7646 if test "$host_cpu" = ia64; then
7647 # AIX 5 now supports IA64 processor
7648 lt_prog_compiler_static='-Bstatic'
7649 fi
7650 ;;
7651
7652 amigaos*)
7653 case $host_cpu in
7654 powerpc)
7655 # see comment about AmigaOS4 .so support
7656 lt_prog_compiler_pic='-fPIC'
7657 ;;
7658 m68k)
7659 # FIXME: we need at least 68020 code to build shared libraries, but
7660 # adding the `-m68020' flag to GCC prevents building anything better,
7661 # like `-m68040'.
7662 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7663 ;;
7664 esac
7665 ;;
7666
7667 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7668 # PIC is the default for these OSes.
7669 ;;
7670
7671 mingw* | cygwin* | pw32* | os2* | cegcc*)
7672 # This hack is so that the source file can tell whether it is being
7673 # built for inclusion in a dll (and should export symbols for example).
7674 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7675 # (--disable-auto-import) libraries
7676 lt_prog_compiler_pic='-DDLL_EXPORT'
7677 ;;
7678
7679 darwin* | rhapsody*)
7680 # PIC is the default on this platform
7681 # Common symbols not allowed in MH_DYLIB files
7682 lt_prog_compiler_pic='-fno-common'
7683 ;;
7684
7685 hpux*)
7686 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7687 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7688 # sets the default TLS model and affects inlining.
7689 case $host_cpu in
7690 hppa*64*)
7691 # +Z the default
7692 ;;
7693 *)
7694 lt_prog_compiler_pic='-fPIC'
7695 ;;
7696 esac
7697 ;;
7698
7699 interix[3-9]*)
7700 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7701 # Instead, we relocate shared libraries at runtime.
7702 ;;
7703
7704 msdosdjgpp*)
7705 # Just because we use GCC doesn't mean we suddenly get shared libraries
7706 # on systems that don't support them.
7707 lt_prog_compiler_can_build_shared=no
7708 enable_shared=no
7709 ;;
7710
7711 *nto* | *qnx*)
7712 # QNX uses GNU C++, but need to define -shared option too, otherwise
7713 # it will coredump.
7714 lt_prog_compiler_pic='-fPIC -shared'
7715 ;;
7716
7717 sysv4*MP*)
7718 if test -d /usr/nec; then
7719 lt_prog_compiler_pic=-Kconform_pic
7720 fi
7721 ;;
7722
7723 *)
7724 lt_prog_compiler_pic='-fPIC'
7725 ;;
7726 esac
7727 else
7728 # PORTME Check for flag to pass linker flags through the system compiler.
7729 case $host_os in
7730 aix*)
7731 lt_prog_compiler_wl='-Wl,'
7732 if test "$host_cpu" = ia64; then
7733 # AIX 5 now supports IA64 processor
7734 lt_prog_compiler_static='-Bstatic'
7735 else
7736 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7737 fi
7738 ;;
7739
7740 mingw* | cygwin* | pw32* | os2* | cegcc*)
7741 # This hack is so that the source file can tell whether it is being
7742 # built for inclusion in a dll (and should export symbols for example).
7743 lt_prog_compiler_pic='-DDLL_EXPORT'
7744 ;;
7745
7746 hpux9* | hpux10* | hpux11*)
7747 lt_prog_compiler_wl='-Wl,'
7748 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7749 # not for PA HP-UX.
7750 case $host_cpu in
7751 hppa*64*|ia64*)
7752 # +Z the default
7753 ;;
7754 *)
7755 lt_prog_compiler_pic='+Z'
7756 ;;
7757 esac
7758 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7759 lt_prog_compiler_static='${wl}-a ${wl}archive'
7760 ;;
7761
7762 irix5* | irix6* | nonstopux*)
7763 lt_prog_compiler_wl='-Wl,'
7764 # PIC (with -KPIC) is the default.
7765 lt_prog_compiler_static='-non_shared'
7766 ;;
7767
7768 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7769 case $cc_basename in
7770 # old Intel for x86_64 which still supported -KPIC.
7771 ecc*)
7772 lt_prog_compiler_wl='-Wl,'
7773 lt_prog_compiler_pic='-KPIC'
7774 lt_prog_compiler_static='-static'
7775 ;;
7776 # icc used to be incompatible with GCC.
7777 # ICC 10 doesn't accept -KPIC any more.
7778 icc* | ifort*)
7779 lt_prog_compiler_wl='-Wl,'
7780 lt_prog_compiler_pic='-fPIC'
7781 lt_prog_compiler_static='-static'
7782 ;;
7783 # Lahey Fortran 8.1.
7784 lf95*)
7785 lt_prog_compiler_wl='-Wl,'
7786 lt_prog_compiler_pic='--shared'
7787 lt_prog_compiler_static='--static'
7788 ;;
7789 pgcc* | pgf77* | pgf90* | pgf95*)
7790 # Portland Group compilers (*not* the Pentium gcc compiler,
7791 # which looks to be a dead project)
7792 lt_prog_compiler_wl='-Wl,'
7793 lt_prog_compiler_pic='-fpic'
7794 lt_prog_compiler_static='-Bstatic'
7795 ;;
7796 ccc*)
7797 lt_prog_compiler_wl='-Wl,'
7798 # All Alpha code is PIC.
7799 lt_prog_compiler_static='-non_shared'
7800 ;;
7801 xl*)
7802 # IBM XL C 8.0/Fortran 10.1 on PPC
7803 lt_prog_compiler_wl='-Wl,'
7804 lt_prog_compiler_pic='-qpic'
7805 lt_prog_compiler_static='-qstaticlink'
7806 ;;
7807 *)
7808 case `$CC -V 2>&1 | sed 5q` in
7809 *Sun\ C*)
7810 # Sun C 5.9
7811 lt_prog_compiler_pic='-KPIC'
7812 lt_prog_compiler_static='-Bstatic'
7813 lt_prog_compiler_wl='-Wl,'
7814 ;;
7815 *Sun\ F*)
7816 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7817 lt_prog_compiler_pic='-KPIC'
7818 lt_prog_compiler_static='-Bstatic'
7819 lt_prog_compiler_wl=''
7820 ;;
7821 esac
7822 ;;
7823 esac
7824 ;;
7825
7826 newsos6)
7827 lt_prog_compiler_pic='-KPIC'
7828 lt_prog_compiler_static='-Bstatic'
7829 ;;
7830
7831 *nto* | *qnx*)
7832 # QNX uses GNU C++, but need to define -shared option too, otherwise
7833 # it will coredump.
7834 lt_prog_compiler_pic='-fPIC -shared'
7835 ;;
7836
7837 osf3* | osf4* | osf5*)
7838 lt_prog_compiler_wl='-Wl,'
7839 # All OSF/1 code is PIC.
7840 lt_prog_compiler_static='-non_shared'
7841 ;;
7842
7843 rdos*)
7844 lt_prog_compiler_static='-non_shared'
7845 ;;
7846
7847 solaris*)
7848 lt_prog_compiler_pic='-KPIC'
7849 lt_prog_compiler_static='-Bstatic'
7850 case $cc_basename in
7851 f77* | f90* | f95*)
7852 lt_prog_compiler_wl='-Qoption ld ';;
7853 *)
7854 lt_prog_compiler_wl='-Wl,';;
7855 esac
7856 ;;
7857
7858 sunos4*)
7859 lt_prog_compiler_wl='-Qoption ld '
7860 lt_prog_compiler_pic='-PIC'
7861 lt_prog_compiler_static='-Bstatic'
7862 ;;
7863
7864 sysv4 | sysv4.2uw2* | sysv4.3*)
7865 lt_prog_compiler_wl='-Wl,'
7866 lt_prog_compiler_pic='-KPIC'
7867 lt_prog_compiler_static='-Bstatic'
7868 ;;
7869
7870 sysv4*MP*)
7871 if test -d /usr/nec ;then
7872 lt_prog_compiler_pic='-Kconform_pic'
7873 lt_prog_compiler_static='-Bstatic'
7874 fi
7875 ;;
7876
7877 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7878 lt_prog_compiler_wl='-Wl,'
7879 lt_prog_compiler_pic='-KPIC'
7880 lt_prog_compiler_static='-Bstatic'
7881 ;;
7882
7883 unicos*)
7884 lt_prog_compiler_wl='-Wl,'
7885 lt_prog_compiler_can_build_shared=no
7886 ;;
7887
7888 uts4*)
7889 lt_prog_compiler_pic='-pic'
7890 lt_prog_compiler_static='-Bstatic'
7891 ;;
7892
7893 *)
7894 lt_prog_compiler_can_build_shared=no
7895 ;;
7896 esac
7897 fi
7898
7899 case $host_os in
7900 # For platforms which do not support PIC, -DPIC is meaningless:
7901 *djgpp*)
7902 lt_prog_compiler_pic=
7903 ;;
7904 *)
7905 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7906 ;;
7907 esac
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7909 $as_echo "$lt_prog_compiler_pic" >&6; }
7910
7911
7912
7913
7914
7915
7916 #
7917 # Check to make sure the PIC flag actually works.
7918 #
7919 if test -n "$lt_prog_compiler_pic"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7921 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7922 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 lt_cv_prog_compiler_pic_works=no
7926 ac_outfile=conftest.$ac_objext
7927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7928 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7929 # Insert the option either (1) after the last *FLAGS variable, or
7930 # (2) before a word containing "conftest.", or (3) at the end.
7931 # Note that $ac_compile itself does not contain backslashes and begins
7932 # with a dollar sign (not a hyphen), so the echo should work correctly.
7933 # The option is referenced via a variable to avoid confusing sed.
7934 lt_compile=`echo "$ac_compile" | $SED \
7935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7937 -e 's:$: $lt_compiler_flag:'`
7938 (eval echo "\"\$as_me:7938: $lt_compile\"" >&5)
7939 (eval "$lt_compile" 2>conftest.err)
7940 ac_status=$?
7941 cat conftest.err >&5
7942 echo "$as_me:7942: \$? = $ac_status" >&5
7943 if (exit $ac_status) && test -s "$ac_outfile"; then
7944 # The compiler can only warn and ignore the option if not recognized
7945 # So say no if there are warnings other than the usual output.
7946 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7948 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7949 lt_cv_prog_compiler_pic_works=yes
7950 fi
7951 fi
7952 $RM conftest*
7953
7954 fi
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7956 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7957
7958 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7959 case $lt_prog_compiler_pic in
7960 "" | " "*) ;;
7961 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7962 esac
7963 else
7964 lt_prog_compiler_pic=
7965 lt_prog_compiler_can_build_shared=no
7966 fi
7967
7968 fi
7969
7970
7971
7972
7973
7974
7975 #
7976 # Check to make sure the static flag actually works.
7977 #
7978 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7980 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7981 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 lt_cv_prog_compiler_static_works=no
7985 save_LDFLAGS="$LDFLAGS"
7986 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7987 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7988 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7989 # The linker can only warn and ignore the option if not recognized
7990 # So say no if there are warnings
7991 if test -s conftest.err; then
7992 # Append any errors to the config.log.
7993 cat conftest.err 1>&5
7994 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7996 if diff conftest.exp conftest.er2 >/dev/null; then
7997 lt_cv_prog_compiler_static_works=yes
7998 fi
7999 else
8000 lt_cv_prog_compiler_static_works=yes
8001 fi
8002 fi
8003 $RM -r conftest*
8004 LDFLAGS="$save_LDFLAGS"
8005
8006 fi
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8008 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8009
8010 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8011 :
8012 else
8013 lt_prog_compiler_static=
8014 fi
8015
8016
8017
8018
8019
8020
8021
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8023 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8024 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8025 $as_echo_n "(cached) " >&6
8026 else
8027 lt_cv_prog_compiler_c_o=no
8028 $RM -r conftest 2>/dev/null
8029 mkdir conftest
8030 cd conftest
8031 mkdir out
8032 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8033
8034 lt_compiler_flag="-o out/conftest2.$ac_objext"
8035 # Insert the option either (1) after the last *FLAGS variable, or
8036 # (2) before a word containing "conftest.", or (3) at the end.
8037 # Note that $ac_compile itself does not contain backslashes and begins
8038 # with a dollar sign (not a hyphen), so the echo should work correctly.
8039 lt_compile=`echo "$ac_compile" | $SED \
8040 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8042 -e 's:$: $lt_compiler_flag:'`
8043 (eval echo "\"\$as_me:8043: $lt_compile\"" >&5)
8044 (eval "$lt_compile" 2>out/conftest.err)
8045 ac_status=$?
8046 cat out/conftest.err >&5
8047 echo "$as_me:8047: \$? = $ac_status" >&5
8048 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8049 then
8050 # The compiler can only warn and ignore the option if not recognized
8051 # So say no if there are warnings
8052 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8053 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8054 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8055 lt_cv_prog_compiler_c_o=yes
8056 fi
8057 fi
8058 chmod u+w . 2>&5
8059 $RM conftest*
8060 # SGI C++ compiler will create directory out/ii_files/ for
8061 # template instantiation
8062 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8063 $RM out/* && rmdir out
8064 cd ..
8065 $RM -r conftest
8066 $RM conftest*
8067
8068 fi
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8070 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8071
8072
8073
8074
8075
8076
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8078 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8079 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 lt_cv_prog_compiler_c_o=no
8083 $RM -r conftest 2>/dev/null
8084 mkdir conftest
8085 cd conftest
8086 mkdir out
8087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8088
8089 lt_compiler_flag="-o out/conftest2.$ac_objext"
8090 # Insert the option either (1) after the last *FLAGS variable, or
8091 # (2) before a word containing "conftest.", or (3) at the end.
8092 # Note that $ac_compile itself does not contain backslashes and begins
8093 # with a dollar sign (not a hyphen), so the echo should work correctly.
8094 lt_compile=`echo "$ac_compile" | $SED \
8095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8097 -e 's:$: $lt_compiler_flag:'`
8098 (eval echo "\"\$as_me:8098: $lt_compile\"" >&5)
8099 (eval "$lt_compile" 2>out/conftest.err)
8100 ac_status=$?
8101 cat out/conftest.err >&5
8102 echo "$as_me:8102: \$? = $ac_status" >&5
8103 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8104 then
8105 # The compiler can only warn and ignore the option if not recognized
8106 # So say no if there are warnings
8107 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8108 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8109 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8110 lt_cv_prog_compiler_c_o=yes
8111 fi
8112 fi
8113 chmod u+w . 2>&5
8114 $RM conftest*
8115 # SGI C++ compiler will create directory out/ii_files/ for
8116 # template instantiation
8117 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8118 $RM out/* && rmdir out
8119 cd ..
8120 $RM -r conftest
8121 $RM conftest*
8122
8123 fi
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8125 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8126
8127
8128
8129
8130 hard_links="nottested"
8131 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8132 # do not overwrite the value of need_locks provided by the user
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8134 $as_echo_n "checking if we can lock with hard links... " >&6; }
8135 hard_links=yes
8136 $RM conftest*
8137 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8138 touch conftest.a
8139 ln conftest.a conftest.b 2>&5 || hard_links=no
8140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8142 $as_echo "$hard_links" >&6; }
8143 if test "$hard_links" = no; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8145 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8146 need_locks=warn
8147 fi
8148 else
8149 need_locks=no
8150 fi
8151
8152
8153
8154
8155
8156
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8158 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8159
8160 runpath_var=
8161 allow_undefined_flag=
8162 always_export_symbols=no
8163 archive_cmds=
8164 archive_expsym_cmds=
8165 compiler_needs_object=no
8166 enable_shared_with_static_runtimes=no
8167 export_dynamic_flag_spec=
8168 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8169 hardcode_automatic=no
8170 hardcode_direct=no
8171 hardcode_direct_absolute=no
8172 hardcode_libdir_flag_spec=
8173 hardcode_libdir_flag_spec_ld=
8174 hardcode_libdir_separator=
8175 hardcode_minus_L=no
8176 hardcode_shlibpath_var=unsupported
8177 inherit_rpath=no
8178 link_all_deplibs=unknown
8179 module_cmds=
8180 module_expsym_cmds=
8181 old_archive_from_new_cmds=
8182 old_archive_from_expsyms_cmds=
8183 thread_safe_flag_spec=
8184 whole_archive_flag_spec=
8185 # include_expsyms should be a list of space-separated symbols to be *always*
8186 # included in the symbol list
8187 include_expsyms=
8188 # exclude_expsyms can be an extended regexp of symbols to exclude
8189 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8190 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8191 # as well as any symbol that contains `d'.
8192 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8193 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8194 # platforms (ab)use it in PIC code, but their linkers get confused if
8195 # the symbol is explicitly referenced. Since portable code cannot
8196 # rely on this symbol name, it's probably fine to never include it in
8197 # preloaded symbol tables.
8198 # Exclude shared library initialization/finalization symbols.
8199 extract_expsyms_cmds=
8200
8201 case $host_os in
8202 cygwin* | mingw* | pw32* | cegcc*)
8203 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8204 # When not using gcc, we currently assume that we are using
8205 # Microsoft Visual C++.
8206 if test "$GCC" != yes; then
8207 with_gnu_ld=no
8208 fi
8209 ;;
8210 interix*)
8211 # we just hope/assume this is gcc and not c89 (= MSVC++)
8212 with_gnu_ld=yes
8213 ;;
8214 openbsd*)
8215 with_gnu_ld=no
8216 ;;
8217 linux* | k*bsd*-gnu)
8218 link_all_deplibs=no
8219 ;;
8220 esac
8221
8222 ld_shlibs=yes
8223 if test "$with_gnu_ld" = yes; then
8224 # If archive_cmds runs LD, not CC, wlarc should be empty
8225 wlarc='${wl}'
8226
8227 # Set some defaults for GNU ld with shared library support. These
8228 # are reset later if shared libraries are not supported. Putting them
8229 # here allows them to be overridden if necessary.
8230 runpath_var=LD_RUN_PATH
8231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8232 export_dynamic_flag_spec='${wl}--export-dynamic'
8233 # ancient GNU ld didn't support --whole-archive et. al.
8234 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8235 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8236 else
8237 whole_archive_flag_spec=
8238 fi
8239 supports_anon_versioning=no
8240 case `$LD -v 2>&1` in
8241 *GNU\ gold*) supports_anon_versioning=yes ;;
8242 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8243 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8244 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8245 *\ 2.11.*) ;; # other 2.11 versions
8246 *) supports_anon_versioning=yes ;;
8247 esac
8248
8249 # See if GNU ld supports shared libraries.
8250 case $host_os in
8251 aix[3-9]*)
8252 # On AIX/PPC, the GNU linker is very broken
8253 if test "$host_cpu" != ia64; then
8254 ld_shlibs=no
8255 cat <<_LT_EOF 1>&2
8256
8257 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8258 *** to be unable to reliably create shared libraries on AIX.
8259 *** Therefore, libtool is disabling shared libraries support. If you
8260 *** really care for shared libraries, you may want to modify your PATH
8261 *** so that a non-GNU linker is found, and then restart.
8262
8263 _LT_EOF
8264 fi
8265 ;;
8266
8267 amigaos*)
8268 case $host_cpu in
8269 powerpc)
8270 # see comment about AmigaOS4 .so support
8271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8272 archive_expsym_cmds=''
8273 ;;
8274 m68k)
8275 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)'
8276 hardcode_libdir_flag_spec='-L$libdir'
8277 hardcode_minus_L=yes
8278 ;;
8279 esac
8280 ;;
8281
8282 beos*)
8283 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8284 allow_undefined_flag=unsupported
8285 # Joseph Beckenbach <[email protected]> says some releases of gcc
8286 # support --undefined. This deserves some investigation. FIXME
8287 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8288 else
8289 ld_shlibs=no
8290 fi
8291 ;;
8292
8293 cygwin* | mingw* | pw32* | cegcc*)
8294 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8295 # as there is no search path for DLLs.
8296 hardcode_libdir_flag_spec='-L$libdir'
8297 allow_undefined_flag=unsupported
8298 always_export_symbols=no
8299 enable_shared_with_static_runtimes=yes
8300 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8301
8302 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8304 # If the export-symbols file already is a .def file (1st line
8305 # is EXPORTS), use it as is; otherwise, prepend...
8306 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8307 cp $export_symbols $output_objdir/$soname.def;
8308 else
8309 echo EXPORTS > $output_objdir/$soname.def;
8310 cat $export_symbols >> $output_objdir/$soname.def;
8311 fi~
8312 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8313 else
8314 ld_shlibs=no
8315 fi
8316 ;;
8317
8318 interix[3-9]*)
8319 hardcode_direct=no
8320 hardcode_shlibpath_var=no
8321 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8322 export_dynamic_flag_spec='${wl}-E'
8323 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8324 # Instead, shared libraries are loaded at an image base (0x10000000 by
8325 # default) and relocated if they conflict, which is a slow very memory
8326 # consuming and fragmenting process. To avoid this, we pick a random,
8327 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8328 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8329 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8330 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'
8331 ;;
8332
8333 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8334 tmp_diet=no
8335 if test "$host_os" = linux-dietlibc; then
8336 case $cc_basename in
8337 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8338 esac
8339 fi
8340 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8341 && test "$tmp_diet" = no
8342 then
8343 tmp_addflag=
8344 tmp_sharedflag='-shared'
8345 case $cc_basename,$host_cpu in
8346 pgcc*) # Portland Group C compiler
8347 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'
8348 tmp_addflag=' $pic_flag'
8349 ;;
8350 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8351 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'
8352 tmp_addflag=' $pic_flag -Mnomain' ;;
8353 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8354 tmp_addflag=' -i_dynamic' ;;
8355 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8356 tmp_addflag=' -i_dynamic -nofor_main' ;;
8357 ifc* | ifort*) # Intel Fortran compiler
8358 tmp_addflag=' -nofor_main' ;;
8359 lf95*) # Lahey Fortran 8.1
8360 whole_archive_flag_spec=
8361 tmp_sharedflag='--shared' ;;
8362 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8363 tmp_sharedflag='-qmkshrobj'
8364 tmp_addflag= ;;
8365 esac
8366 case `$CC -V 2>&1 | sed 5q` in
8367 *Sun\ C*) # Sun C 5.9
8368 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'
8369 compiler_needs_object=yes
8370 tmp_sharedflag='-G' ;;
8371 *Sun\ F*) # Sun Fortran 8.3
8372 tmp_sharedflag='-G' ;;
8373 esac
8374 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8375
8376 if test "x$supports_anon_versioning" = xyes; then
8377 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8378 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8379 echo "local: *; };" >> $output_objdir/$libname.ver~
8380 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8381 fi
8382
8383 case $cc_basename in
8384 xlf*)
8385 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8386 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8387 hardcode_libdir_flag_spec=
8388 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8389 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8390 if test "x$supports_anon_versioning" = xyes; then
8391 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8392 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8393 echo "local: *; };" >> $output_objdir/$libname.ver~
8394 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8395 fi
8396 ;;
8397 esac
8398 else
8399 ld_shlibs=no
8400 fi
8401 ;;
8402
8403 netbsd* | netbsdelf*-gnu)
8404 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8405 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8406 wlarc=
8407 else
8408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8410 fi
8411 ;;
8412
8413 solaris*)
8414 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8415 ld_shlibs=no
8416 cat <<_LT_EOF 1>&2
8417
8418 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8419 *** create shared libraries on Solaris systems. Therefore, libtool
8420 *** is disabling shared libraries support. We urge you to upgrade GNU
8421 *** binutils to release 2.9.1 or newer. Another option is to modify
8422 *** your PATH or compiler configuration so that the native linker is
8423 *** used, and then restart.
8424
8425 _LT_EOF
8426 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8429 else
8430 ld_shlibs=no
8431 fi
8432 ;;
8433
8434 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8435 case `$LD -v 2>&1` in
8436 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8437 ld_shlibs=no
8438 cat <<_LT_EOF 1>&2
8439
8440 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8441 *** reliably create shared libraries on SCO systems. Therefore, libtool
8442 *** is disabling shared libraries support. We urge you to upgrade GNU
8443 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8444 *** your PATH or compiler configuration so that the native linker is
8445 *** used, and then restart.
8446
8447 _LT_EOF
8448 ;;
8449 *)
8450 # For security reasons, it is highly recommended that you always
8451 # use absolute paths for naming shared libraries, and exclude the
8452 # DT_RUNPATH tag from executables and libraries. But doing so
8453 # requires that you compile everything twice, which is a pain.
8454 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8455 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8457 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8458 else
8459 ld_shlibs=no
8460 fi
8461 ;;
8462 esac
8463 ;;
8464
8465 sunos4*)
8466 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8467 wlarc=
8468 hardcode_direct=yes
8469 hardcode_shlibpath_var=no
8470 ;;
8471
8472 *)
8473 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8475 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8476 else
8477 ld_shlibs=no
8478 fi
8479 ;;
8480 esac
8481
8482 if test "$ld_shlibs" = no; then
8483 runpath_var=
8484 hardcode_libdir_flag_spec=
8485 export_dynamic_flag_spec=
8486 whole_archive_flag_spec=
8487 fi
8488 else
8489 # PORTME fill in a description of your system's linker (not GNU ld)
8490 case $host_os in
8491 aix3*)
8492 allow_undefined_flag=unsupported
8493 always_export_symbols=yes
8494 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'
8495 # Note: this linker hardcodes the directories in LIBPATH if there
8496 # are no directories specified by -L.
8497 hardcode_minus_L=yes
8498 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8499 # Neither direct hardcoding nor static linking is supported with a
8500 # broken collect2.
8501 hardcode_direct=unsupported
8502 fi
8503 ;;
8504
8505 aix[4-9]*)
8506 if test "$host_cpu" = ia64; then
8507 # On IA64, the linker does run time linking by default, so we don't
8508 # have to do anything special.
8509 aix_use_runtimelinking=no
8510 exp_sym_flag='-Bexport'
8511 no_entry_flag=""
8512 else
8513 # If we're using GNU nm, then we don't want the "-C" option.
8514 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8515 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8516 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'
8517 else
8518 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'
8519 fi
8520 aix_use_runtimelinking=no
8521
8522 # Test if we are trying to use run time linking or normal
8523 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8524 # need to do runtime linking.
8525 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8526 for ld_flag in $LDFLAGS; do
8527 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8528 aix_use_runtimelinking=yes
8529 break
8530 fi
8531 done
8532 ;;
8533 esac
8534
8535 exp_sym_flag='-bexport'
8536 no_entry_flag='-bnoentry'
8537 fi
8538
8539 # When large executables or shared objects are built, AIX ld can
8540 # have problems creating the table of contents. If linking a library
8541 # or program results in "error TOC overflow" add -mminimal-toc to
8542 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8543 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8544
8545 archive_cmds=''
8546 hardcode_direct=yes
8547 hardcode_direct_absolute=yes
8548 hardcode_libdir_separator=':'
8549 link_all_deplibs=yes
8550 file_list_spec='${wl}-f,'
8551
8552 if test "$GCC" = yes; then
8553 case $host_os in aix4.[012]|aix4.[012].*)
8554 # We only want to do this on AIX 4.2 and lower, the check
8555 # below for broken collect2 doesn't work under 4.3+
8556 collect2name=`${CC} -print-prog-name=collect2`
8557 if test -f "$collect2name" &&
8558 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8559 then
8560 # We have reworked collect2
8561 :
8562 else
8563 # We have old collect2
8564 hardcode_direct=unsupported
8565 # It fails to find uninstalled libraries when the uninstalled
8566 # path is not listed in the libpath. Setting hardcode_minus_L
8567 # to unsupported forces relinking
8568 hardcode_minus_L=yes
8569 hardcode_libdir_flag_spec='-L$libdir'
8570 hardcode_libdir_separator=
8571 fi
8572 ;;
8573 esac
8574 shared_flag='-shared'
8575 if test "$aix_use_runtimelinking" = yes; then
8576 shared_flag="$shared_flag "'${wl}-G'
8577 fi
8578 link_all_deplibs=no
8579 else
8580 # not using gcc
8581 if test "$host_cpu" = ia64; then
8582 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8583 # chokes on -Wl,-G. The following line is correct:
8584 shared_flag='-G'
8585 else
8586 if test "$aix_use_runtimelinking" = yes; then
8587 shared_flag='${wl}-G'
8588 else
8589 shared_flag='${wl}-bM:SRE'
8590 fi
8591 fi
8592 fi
8593
8594 export_dynamic_flag_spec='${wl}-bexpall'
8595 # It seems that -bexpall does not export symbols beginning with
8596 # underscore (_), so it is better to generate a list of symbols to export.
8597 always_export_symbols=yes
8598 if test "$aix_use_runtimelinking" = yes; then
8599 # Warning - without using the other runtime loading flags (-brtl),
8600 # -berok will link without error, but may produce a broken library.
8601 allow_undefined_flag='-berok'
8602 # Determine the default libpath from the value encoded in an
8603 # empty executable.
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606
8607 int
8608 main ()
8609 {
8610
8611 ;
8612 return 0;
8613 }
8614 _ACEOF
8615 if ac_fn_c_try_link "$LINENO"; then :
8616
8617 lt_aix_libpath_sed='
8618 /Import File Strings/,/^$/ {
8619 /^0/ {
8620 s/^0 *\(.*\)$/\1/
8621 p
8622 }
8623 }'
8624 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8625 # Check for a 64-bit object if we didn't find anything.
8626 if test -z "$aix_libpath"; then
8627 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8628 fi
8629 fi
8630 rm -f core conftest.err conftest.$ac_objext \
8631 conftest$ac_exeext conftest.$ac_ext
8632 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8633
8634 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8635 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8636 else
8637 if test "$host_cpu" = ia64; then
8638 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8639 allow_undefined_flag="-z nodefs"
8640 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"
8641 else
8642 # Determine the default libpath from the value encoded in an
8643 # empty executable.
8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645 /* end confdefs.h. */
8646
8647 int
8648 main ()
8649 {
8650
8651 ;
8652 return 0;
8653 }
8654 _ACEOF
8655 if ac_fn_c_try_link "$LINENO"; then :
8656
8657 lt_aix_libpath_sed='
8658 /Import File Strings/,/^$/ {
8659 /^0/ {
8660 s/^0 *\(.*\)$/\1/
8661 p
8662 }
8663 }'
8664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8665 # Check for a 64-bit object if we didn't find anything.
8666 if test -z "$aix_libpath"; then
8667 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8668 fi
8669 fi
8670 rm -f core conftest.err conftest.$ac_objext \
8671 conftest$ac_exeext conftest.$ac_ext
8672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8673
8674 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8675 # Warning - without using the other run time loading flags,
8676 # -berok will link without error, but may produce a broken library.
8677 no_undefined_flag=' ${wl}-bernotok'
8678 allow_undefined_flag=' ${wl}-berok'
8679 # Exported symbols can be pulled into shared objects from archives
8680 whole_archive_flag_spec='$convenience'
8681 archive_cmds_need_lc=yes
8682 # This is similar to how AIX traditionally builds its shared libraries.
8683 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'
8684 fi
8685 fi
8686 ;;
8687
8688 amigaos*)
8689 case $host_cpu in
8690 powerpc)
8691 # see comment about AmigaOS4 .so support
8692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693 archive_expsym_cmds=''
8694 ;;
8695 m68k)
8696 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)'
8697 hardcode_libdir_flag_spec='-L$libdir'
8698 hardcode_minus_L=yes
8699 ;;
8700 esac
8701 ;;
8702
8703 bsdi[45]*)
8704 export_dynamic_flag_spec=-rdynamic
8705 ;;
8706
8707 cygwin* | mingw* | pw32* | cegcc*)
8708 # When not using gcc, we currently assume that we are using
8709 # Microsoft Visual C++.
8710 # hardcode_libdir_flag_spec is actually meaningless, as there is
8711 # no search path for DLLs.
8712 hardcode_libdir_flag_spec=' '
8713 allow_undefined_flag=unsupported
8714 # Tell ltmain to make .lib files, not .a files.
8715 libext=lib
8716 # Tell ltmain to make .dll files, not .so files.
8717 shrext_cmds=".dll"
8718 # FIXME: Setting linknames here is a bad hack.
8719 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8720 # The linker will automatically build a .lib file if we build a DLL.
8721 old_archive_from_new_cmds='true'
8722 # FIXME: Should let the user specify the lib program.
8723 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8724 fix_srcfile_path='`cygpath -w "$srcfile"`'
8725 enable_shared_with_static_runtimes=yes
8726 ;;
8727
8728 darwin* | rhapsody*)
8729
8730
8731 archive_cmds_need_lc=no
8732 hardcode_direct=no
8733 hardcode_automatic=yes
8734 hardcode_shlibpath_var=unsupported
8735 whole_archive_flag_spec=''
8736 link_all_deplibs=yes
8737 allow_undefined_flag="$_lt_dar_allow_undefined"
8738 case $cc_basename in
8739 ifort*) _lt_dar_can_shared=yes ;;
8740 *) _lt_dar_can_shared=$GCC ;;
8741 esac
8742 if test "$_lt_dar_can_shared" = "yes"; then
8743 output_verbose_link_cmd=echo
8744 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8745 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8746 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}"
8747 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}"
8748
8749 else
8750 ld_shlibs=no
8751 fi
8752
8753 ;;
8754
8755 dgux*)
8756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8757 hardcode_libdir_flag_spec='-L$libdir'
8758 hardcode_shlibpath_var=no
8759 ;;
8760
8761 freebsd1*)
8762 ld_shlibs=no
8763 ;;
8764
8765 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8766 # support. Future versions do this automatically, but an explicit c++rt0.o
8767 # does not break anything, and helps significantly (at the cost of a little
8768 # extra space).
8769 freebsd2.2*)
8770 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8771 hardcode_libdir_flag_spec='-R$libdir'
8772 hardcode_direct=yes
8773 hardcode_shlibpath_var=no
8774 ;;
8775
8776 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8777 freebsd2*)
8778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8779 hardcode_direct=yes
8780 hardcode_minus_L=yes
8781 hardcode_shlibpath_var=no
8782 ;;
8783
8784 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8785 freebsd* | dragonfly*)
8786 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8787 hardcode_libdir_flag_spec='-R$libdir'
8788 hardcode_direct=yes
8789 hardcode_shlibpath_var=no
8790 ;;
8791
8792 hpux9*)
8793 if test "$GCC" = yes; then
8794 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'
8795 else
8796 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'
8797 fi
8798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8799 hardcode_libdir_separator=:
8800 hardcode_direct=yes
8801
8802 # hardcode_minus_L: Not really in the search PATH,
8803 # but as the default location of the library.
8804 hardcode_minus_L=yes
8805 export_dynamic_flag_spec='${wl}-E'
8806 ;;
8807
8808 hpux10*)
8809 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8810 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8811 else
8812 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8813 fi
8814 if test "$with_gnu_ld" = no; then
8815 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8816 hardcode_libdir_flag_spec_ld='+b $libdir'
8817 hardcode_libdir_separator=:
8818 hardcode_direct=yes
8819 hardcode_direct_absolute=yes
8820 export_dynamic_flag_spec='${wl}-E'
8821 # hardcode_minus_L: Not really in the search PATH,
8822 # but as the default location of the library.
8823 hardcode_minus_L=yes
8824 fi
8825 ;;
8826
8827 hpux11*)
8828 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8829 case $host_cpu in
8830 hppa*64*)
8831 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8832 ;;
8833 ia64*)
8834 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8835 ;;
8836 *)
8837 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8838 ;;
8839 esac
8840 else
8841 case $host_cpu in
8842 hppa*64*)
8843 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8844 ;;
8845 ia64*)
8846 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8847 ;;
8848 *)
8849 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8850 ;;
8851 esac
8852 fi
8853 if test "$with_gnu_ld" = no; then
8854 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8855 hardcode_libdir_separator=:
8856
8857 case $host_cpu in
8858 hppa*64*|ia64*)
8859 hardcode_direct=no
8860 hardcode_shlibpath_var=no
8861 ;;
8862 *)
8863 hardcode_direct=yes
8864 hardcode_direct_absolute=yes
8865 export_dynamic_flag_spec='${wl}-E'
8866
8867 # hardcode_minus_L: Not really in the search PATH,
8868 # but as the default location of the library.
8869 hardcode_minus_L=yes
8870 ;;
8871 esac
8872 fi
8873 ;;
8874
8875 irix5* | irix6* | nonstopux*)
8876 if test "$GCC" = yes; then
8877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8878 # Try to use the -exported_symbol ld option, if it does not
8879 # work, assume that -exports_file does not work either and
8880 # implicitly export all symbols.
8881 save_LDFLAGS="$LDFLAGS"
8882 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8885 int foo(void) {}
8886 _ACEOF
8887 if ac_fn_c_try_link "$LINENO"; then :
8888 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8889
8890 fi
8891 rm -f core conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
8893 LDFLAGS="$save_LDFLAGS"
8894 else
8895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8897 fi
8898 archive_cmds_need_lc='no'
8899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900 hardcode_libdir_separator=:
8901 inherit_rpath=yes
8902 link_all_deplibs=yes
8903 ;;
8904
8905 netbsd* | netbsdelf*-gnu)
8906 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8907 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8908 else
8909 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8910 fi
8911 hardcode_libdir_flag_spec='-R$libdir'
8912 hardcode_direct=yes
8913 hardcode_shlibpath_var=no
8914 ;;
8915
8916 newsos6)
8917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8918 hardcode_direct=yes
8919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8920 hardcode_libdir_separator=:
8921 hardcode_shlibpath_var=no
8922 ;;
8923
8924 *nto* | *qnx*)
8925 ;;
8926
8927 openbsd*)
8928 if test -f /usr/libexec/ld.so; then
8929 hardcode_direct=yes
8930 hardcode_shlibpath_var=no
8931 hardcode_direct_absolute=yes
8932 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8933 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8934 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8935 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8936 export_dynamic_flag_spec='${wl}-E'
8937 else
8938 case $host_os in
8939 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8940 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8941 hardcode_libdir_flag_spec='-R$libdir'
8942 ;;
8943 *)
8944 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8945 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8946 ;;
8947 esac
8948 fi
8949 else
8950 ld_shlibs=no
8951 fi
8952 ;;
8953
8954 os2*)
8955 hardcode_libdir_flag_spec='-L$libdir'
8956 hardcode_minus_L=yes
8957 allow_undefined_flag=unsupported
8958 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'
8959 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8960 ;;
8961
8962 osf3*)
8963 if test "$GCC" = yes; then
8964 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8965 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8966 else
8967 allow_undefined_flag=' -expect_unresolved \*'
8968 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8969 fi
8970 archive_cmds_need_lc='no'
8971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8972 hardcode_libdir_separator=:
8973 ;;
8974
8975 osf4* | osf5*) # as osf3* with the addition of -msym flag
8976 if test "$GCC" = yes; then
8977 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8978 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8980 else
8981 allow_undefined_flag=' -expect_unresolved \*'
8982 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8983 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8984 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8985
8986 # Both c and cxx compiler support -rpath directly
8987 hardcode_libdir_flag_spec='-rpath $libdir'
8988 fi
8989 archive_cmds_need_lc='no'
8990 hardcode_libdir_separator=:
8991 ;;
8992
8993 solaris*)
8994 no_undefined_flag=' -z defs'
8995 if test "$GCC" = yes; then
8996 wlarc='${wl}'
8997 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8998 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8999 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9000 else
9001 case `$CC -V 2>&1` in
9002 *"Compilers 5.0"*)
9003 wlarc=''
9004 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9005 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9006 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9007 ;;
9008 *)
9009 wlarc='${wl}'
9010 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9011 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9012 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9013 ;;
9014 esac
9015 fi
9016 hardcode_libdir_flag_spec='-R$libdir'
9017 hardcode_shlibpath_var=no
9018 case $host_os in
9019 solaris2.[0-5] | solaris2.[0-5].*) ;;
9020 *)
9021 # The compiler driver will combine and reorder linker options,
9022 # but understands `-z linker_flag'. GCC discards it without `$wl',
9023 # but is careful enough not to reorder.
9024 # Supported since Solaris 2.6 (maybe 2.5.1?)
9025 if test "$GCC" = yes; then
9026 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9027 else
9028 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9029 fi
9030 ;;
9031 esac
9032 link_all_deplibs=yes
9033 ;;
9034
9035 sunos4*)
9036 if test "x$host_vendor" = xsequent; then
9037 # Use $CC to link under sequent, because it throws in some extra .o
9038 # files that make .init and .fini sections work.
9039 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9040 else
9041 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9042 fi
9043 hardcode_libdir_flag_spec='-L$libdir'
9044 hardcode_direct=yes
9045 hardcode_minus_L=yes
9046 hardcode_shlibpath_var=no
9047 ;;
9048
9049 sysv4)
9050 case $host_vendor in
9051 sni)
9052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9053 hardcode_direct=yes # is this really true???
9054 ;;
9055 siemens)
9056 ## LD is ld it makes a PLAMLIB
9057 ## CC just makes a GrossModule.
9058 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9059 reload_cmds='$CC -r -o $output$reload_objs'
9060 hardcode_direct=no
9061 ;;
9062 motorola)
9063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9064 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9065 ;;
9066 esac
9067 runpath_var='LD_RUN_PATH'
9068 hardcode_shlibpath_var=no
9069 ;;
9070
9071 sysv4.3*)
9072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9073 hardcode_shlibpath_var=no
9074 export_dynamic_flag_spec='-Bexport'
9075 ;;
9076
9077 sysv4*MP*)
9078 if test -d /usr/nec; then
9079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9080 hardcode_shlibpath_var=no
9081 runpath_var=LD_RUN_PATH
9082 hardcode_runpath_var=yes
9083 ld_shlibs=yes
9084 fi
9085 ;;
9086
9087 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9088 no_undefined_flag='${wl}-z,text'
9089 archive_cmds_need_lc=no
9090 hardcode_shlibpath_var=no
9091 runpath_var='LD_RUN_PATH'
9092
9093 if test "$GCC" = yes; then
9094 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9095 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9096 else
9097 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9098 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9099 fi
9100 ;;
9101
9102 sysv5* | sco3.2v5* | sco5v6*)
9103 # Note: We can NOT use -z defs as we might desire, because we do not
9104 # link with -lc, and that would cause any symbols used from libc to
9105 # always be unresolved, which means just about no library would
9106 # ever link correctly. If we're not using GNU ld we use -z text
9107 # though, which does catch some bad symbols but isn't as heavy-handed
9108 # as -z defs.
9109 no_undefined_flag='${wl}-z,text'
9110 allow_undefined_flag='${wl}-z,nodefs'
9111 archive_cmds_need_lc=no
9112 hardcode_shlibpath_var=no
9113 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9114 hardcode_libdir_separator=':'
9115 link_all_deplibs=yes
9116 export_dynamic_flag_spec='${wl}-Bexport'
9117 runpath_var='LD_RUN_PATH'
9118
9119 if test "$GCC" = yes; then
9120 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9122 else
9123 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9124 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9125 fi
9126 ;;
9127
9128 uts4*)
9129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9130 hardcode_libdir_flag_spec='-L$libdir'
9131 hardcode_shlibpath_var=no
9132 ;;
9133
9134 *)
9135 ld_shlibs=no
9136 ;;
9137 esac
9138
9139 if test x$host_vendor = xsni; then
9140 case $host in
9141 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9142 export_dynamic_flag_spec='${wl}-Blargedynsym'
9143 ;;
9144 esac
9145 fi
9146 fi
9147
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9149 $as_echo "$ld_shlibs" >&6; }
9150 test "$ld_shlibs" = no && can_build_shared=no
9151
9152 with_gnu_ld=$with_gnu_ld
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168 #
9169 # Do we need to explicitly link libc?
9170 #
9171 case "x$archive_cmds_need_lc" in
9172 x|xyes)
9173 # Assume -lc should be added
9174 archive_cmds_need_lc=yes
9175
9176 if test "$enable_shared" = yes && test "$GCC" = yes; then
9177 case $archive_cmds in
9178 *'~'*)
9179 # FIXME: we may have to deal with multi-command sequences.
9180 ;;
9181 '$CC '*)
9182 # Test whether the compiler implicitly links with -lc since on some
9183 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9184 # to ld, don't add -lc before -lgcc.
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9186 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9187 $RM conftest*
9188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9189
9190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9191 (eval $ac_compile) 2>&5
9192 ac_status=$?
9193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9194 test $ac_status = 0; } 2>conftest.err; then
9195 soname=conftest
9196 lib=conftest
9197 libobjs=conftest.$ac_objext
9198 deplibs=
9199 wl=$lt_prog_compiler_wl
9200 pic_flag=$lt_prog_compiler_pic
9201 compiler_flags=-v
9202 linker_flags=-v
9203 verstring=
9204 output_objdir=.
9205 libname=conftest
9206 lt_save_allow_undefined_flag=$allow_undefined_flag
9207 allow_undefined_flag=
9208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9209 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9210 ac_status=$?
9211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9212 test $ac_status = 0; }
9213 then
9214 archive_cmds_need_lc=no
9215 else
9216 archive_cmds_need_lc=yes
9217 fi
9218 allow_undefined_flag=$lt_save_allow_undefined_flag
9219 else
9220 cat conftest.err 1>&5
9221 fi
9222 $RM conftest*
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9224 $as_echo "$archive_cmds_need_lc" >&6; }
9225 ;;
9226 esac
9227 fi
9228 ;;
9229 esac
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9388 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9389
9390 if test "$GCC" = yes; then
9391 case $host_os in
9392 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9393 *) lt_awk_arg="/^libraries:/" ;;
9394 esac
9395 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9396 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9397 # if the path contains ";" then we assume it to be the separator
9398 # otherwise default to the standard path separator (i.e. ":") - it is
9399 # assumed that no part of a normal pathname contains ";" but that should
9400 # okay in the real world where ";" in dirpaths is itself problematic.
9401 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9402 else
9403 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9404 fi
9405 # Ok, now we have the path, separated by spaces, we can step through it
9406 # and add multilib dir if necessary.
9407 lt_tmp_lt_search_path_spec=
9408 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9409 for lt_sys_path in $lt_search_path_spec; do
9410 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9411 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9412 else
9413 test -d "$lt_sys_path" && \
9414 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9415 fi
9416 done
9417 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9418 BEGIN {RS=" "; FS="/|\n";} {
9419 lt_foo="";
9420 lt_count=0;
9421 for (lt_i = NF; lt_i > 0; lt_i--) {
9422 if ($lt_i != "" && $lt_i != ".") {
9423 if ($lt_i == "..") {
9424 lt_count++;
9425 } else {
9426 if (lt_count == 0) {
9427 lt_foo="/" $lt_i lt_foo;
9428 } else {
9429 lt_count--;
9430 }
9431 }
9432 }
9433 }
9434 if (lt_foo != "") { lt_freq[lt_foo]++; }
9435 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9436 }'`
9437 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9438 else
9439 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9440 fi
9441 library_names_spec=
9442 libname_spec='lib$name'
9443 soname_spec=
9444 shrext_cmds=".so"
9445 postinstall_cmds=
9446 postuninstall_cmds=
9447 finish_cmds=
9448 finish_eval=
9449 shlibpath_var=
9450 shlibpath_overrides_runpath=unknown
9451 version_type=none
9452 dynamic_linker="$host_os ld.so"
9453 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9454 need_lib_prefix=unknown
9455 hardcode_into_libs=no
9456
9457 # when you set need_version to no, make sure it does not cause -set_version
9458 # flags to be left without arguments
9459 need_version=unknown
9460
9461 case $host_os in
9462 aix3*)
9463 version_type=linux
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9465 shlibpath_var=LIBPATH
9466
9467 # AIX 3 has no versioning support, so we append a major version to the name.
9468 soname_spec='${libname}${release}${shared_ext}$major'
9469 ;;
9470
9471 aix[4-9]*)
9472 version_type=linux
9473 need_lib_prefix=no
9474 need_version=no
9475 hardcode_into_libs=yes
9476 if test "$host_cpu" = ia64; then
9477 # AIX 5 supports IA64
9478 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9479 shlibpath_var=LD_LIBRARY_PATH
9480 else
9481 # With GCC up to 2.95.x, collect2 would create an import file
9482 # for dependence libraries. The import file would start with
9483 # the line `#! .'. This would cause the generated library to
9484 # depend on `.', always an invalid library. This was fixed in
9485 # development snapshots of GCC prior to 3.0.
9486 case $host_os in
9487 aix4 | aix4.[01] | aix4.[01].*)
9488 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9489 echo ' yes '
9490 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9491 :
9492 else
9493 can_build_shared=no
9494 fi
9495 ;;
9496 esac
9497 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9498 # soname into executable. Probably we can add versioning support to
9499 # collect2, so additional links can be useful in future.
9500 if test "$aix_use_runtimelinking" = yes; then
9501 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9502 # instead of lib<name>.a to let people know that these are not
9503 # typical AIX shared libraries.
9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9505 else
9506 # We preserve .a as extension for shared libraries through AIX4.2
9507 # and later when we are not doing run time linking.
9508 library_names_spec='${libname}${release}.a $libname.a'
9509 soname_spec='${libname}${release}${shared_ext}$major'
9510 fi
9511 shlibpath_var=LIBPATH
9512 fi
9513 ;;
9514
9515 amigaos*)
9516 case $host_cpu in
9517 powerpc)
9518 # Since July 2007 AmigaOS4 officially supports .so libraries.
9519 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521 ;;
9522 m68k)
9523 library_names_spec='$libname.ixlibrary $libname.a'
9524 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9525 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'
9526 ;;
9527 esac
9528 ;;
9529
9530 beos*)
9531 library_names_spec='${libname}${shared_ext}'
9532 dynamic_linker="$host_os ld.so"
9533 shlibpath_var=LIBRARY_PATH
9534 ;;
9535
9536 bsdi[45]*)
9537 version_type=linux
9538 need_version=no
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540 soname_spec='${libname}${release}${shared_ext}$major'
9541 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9542 shlibpath_var=LD_LIBRARY_PATH
9543 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9544 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9545 # the default ld.so.conf also contains /usr/contrib/lib and
9546 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9547 # libtool to hard-code these into programs
9548 ;;
9549
9550 cygwin* | mingw* | pw32* | cegcc*)
9551 version_type=windows
9552 shrext_cmds=".dll"
9553 need_version=no
9554 need_lib_prefix=no
9555
9556 case $GCC,$host_os in
9557 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9558 library_names_spec='$libname.dll.a'
9559 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9560 postinstall_cmds='base_file=`basename \${file}`~
9561 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9562 dldir=$destdir/`dirname \$dlpath`~
9563 test -d \$dldir || mkdir -p \$dldir~
9564 $install_prog $dir/$dlname \$dldir/$dlname~
9565 chmod a+x \$dldir/$dlname~
9566 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9567 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9568 fi'
9569 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9570 dlpath=$dir/\$dldll~
9571 $RM \$dlpath'
9572 shlibpath_overrides_runpath=yes
9573
9574 case $host_os in
9575 cygwin*)
9576 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9577 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9578 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9579 ;;
9580 mingw* | cegcc*)
9581 # MinGW DLLs use traditional 'lib' prefix
9582 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9583 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9584 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9585 # It is most probably a Windows format PATH printed by
9586 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9587 # path with ; separators, and with drive letters. We can handle the
9588 # drive letters (cygwin fileutils understands them), so leave them,
9589 # especially as we might pass files found there to a mingw objdump,
9590 # which wouldn't understand a cygwinified path. Ahh.
9591 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9592 else
9593 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9594 fi
9595 ;;
9596 pw32*)
9597 # pw32 DLLs use 'pw' prefix rather than 'lib'
9598 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9599 ;;
9600 esac
9601 ;;
9602
9603 *)
9604 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9605 ;;
9606 esac
9607 dynamic_linker='Win32 ld.exe'
9608 # FIXME: first we should search . and the directory the executable is in
9609 shlibpath_var=PATH
9610 ;;
9611
9612 darwin* | rhapsody*)
9613 dynamic_linker="$host_os dyld"
9614 version_type=darwin
9615 need_lib_prefix=no
9616 need_version=no
9617 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9618 soname_spec='${libname}${release}${major}$shared_ext'
9619 shlibpath_overrides_runpath=yes
9620 shlibpath_var=DYLD_LIBRARY_PATH
9621 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9622
9623 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9624 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9625 ;;
9626
9627 dgux*)
9628 version_type=linux
9629 need_lib_prefix=no
9630 need_version=no
9631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9632 soname_spec='${libname}${release}${shared_ext}$major'
9633 shlibpath_var=LD_LIBRARY_PATH
9634 ;;
9635
9636 freebsd1*)
9637 dynamic_linker=no
9638 ;;
9639
9640 freebsd* | dragonfly*)
9641 # DragonFly does not have aout. When/if they implement a new
9642 # versioning mechanism, adjust this.
9643 if test -x /usr/bin/objformat; then
9644 objformat=`/usr/bin/objformat`
9645 else
9646 case $host_os in
9647 freebsd[123]*) objformat=aout ;;
9648 *) objformat=elf ;;
9649 esac
9650 fi
9651 version_type=freebsd-$objformat
9652 case $version_type in
9653 freebsd-elf*)
9654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9655 need_version=no
9656 need_lib_prefix=no
9657 ;;
9658 freebsd-*)
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9660 need_version=yes
9661 ;;
9662 esac
9663 shlibpath_var=LD_LIBRARY_PATH
9664 case $host_os in
9665 freebsd2*)
9666 shlibpath_overrides_runpath=yes
9667 ;;
9668 freebsd3.[01]* | freebsdelf3.[01]*)
9669 shlibpath_overrides_runpath=yes
9670 hardcode_into_libs=yes
9671 ;;
9672 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9673 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9674 shlibpath_overrides_runpath=no
9675 hardcode_into_libs=yes
9676 ;;
9677 *) # from 4.6 on, and DragonFly
9678 shlibpath_overrides_runpath=yes
9679 hardcode_into_libs=yes
9680 ;;
9681 esac
9682 ;;
9683
9684 gnu*)
9685 version_type=linux
9686 need_lib_prefix=no
9687 need_version=no
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9689 soname_spec='${libname}${release}${shared_ext}$major'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 hardcode_into_libs=yes
9692 ;;
9693
9694 hpux9* | hpux10* | hpux11*)
9695 # Give a soname corresponding to the major version so that dld.sl refuses to
9696 # link against other versions.
9697 version_type=sunos
9698 need_lib_prefix=no
9699 need_version=no
9700 case $host_cpu in
9701 ia64*)
9702 shrext_cmds='.so'
9703 hardcode_into_libs=yes
9704 dynamic_linker="$host_os dld.so"
9705 shlibpath_var=LD_LIBRARY_PATH
9706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 if test "X$HPUX_IA64_MODE" = X32; then
9710 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9711 else
9712 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9713 fi
9714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9715 ;;
9716 hppa*64*)
9717 shrext_cmds='.sl'
9718 hardcode_into_libs=yes
9719 dynamic_linker="$host_os dld.sl"
9720 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9726 ;;
9727 *)
9728 shrext_cmds='.sl'
9729 dynamic_linker="$host_os dld.sl"
9730 shlibpath_var=SHLIB_PATH
9731 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733 soname_spec='${libname}${release}${shared_ext}$major'
9734 ;;
9735 esac
9736 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9737 postinstall_cmds='chmod 555 $lib'
9738 ;;
9739
9740 interix[3-9]*)
9741 version_type=linux
9742 need_lib_prefix=no
9743 need_version=no
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9745 soname_spec='${libname}${release}${shared_ext}$major'
9746 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9747 shlibpath_var=LD_LIBRARY_PATH
9748 shlibpath_overrides_runpath=no
9749 hardcode_into_libs=yes
9750 ;;
9751
9752 irix5* | irix6* | nonstopux*)
9753 case $host_os in
9754 nonstopux*) version_type=nonstopux ;;
9755 *)
9756 if test "$lt_cv_prog_gnu_ld" = yes; then
9757 version_type=linux
9758 else
9759 version_type=irix
9760 fi ;;
9761 esac
9762 need_lib_prefix=no
9763 need_version=no
9764 soname_spec='${libname}${release}${shared_ext}$major'
9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9766 case $host_os in
9767 irix5* | nonstopux*)
9768 libsuff= shlibsuff=
9769 ;;
9770 *)
9771 case $LD in # libtool.m4 will add one of these switches to LD
9772 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9773 libsuff= shlibsuff= libmagic=32-bit;;
9774 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9775 libsuff=32 shlibsuff=N32 libmagic=N32;;
9776 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9777 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9778 *) libsuff= shlibsuff= libmagic=never-match;;
9779 esac
9780 ;;
9781 esac
9782 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9783 shlibpath_overrides_runpath=no
9784 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9785 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9786 hardcode_into_libs=yes
9787 ;;
9788
9789 # No shared lib support for Linux oldld, aout, or coff.
9790 linux*oldld* | linux*aout* | linux*coff*)
9791 dynamic_linker=no
9792 ;;
9793
9794 # This must be Linux ELF.
9795 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9796 version_type=linux
9797 need_lib_prefix=no
9798 need_version=no
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9802 shlibpath_var=LD_LIBRARY_PATH
9803 shlibpath_overrides_runpath=no
9804 # Some binutils ld are patched to set DT_RUNPATH
9805 save_LDFLAGS=$LDFLAGS
9806 save_libdir=$libdir
9807 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9808 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9811
9812 int
9813 main ()
9814 {
9815
9816 ;
9817 return 0;
9818 }
9819 _ACEOF
9820 if ac_fn_c_try_link "$LINENO"; then :
9821 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9822 shlibpath_overrides_runpath=yes
9823 fi
9824 fi
9825 rm -f core conftest.err conftest.$ac_objext \
9826 conftest$ac_exeext conftest.$ac_ext
9827 LDFLAGS=$save_LDFLAGS
9828 libdir=$save_libdir
9829
9830 # This implies no fast_install, which is unacceptable.
9831 # Some rework will be needed to allow for fast_install
9832 # before this can be enabled.
9833 hardcode_into_libs=yes
9834
9835 # Append ld.so.conf contents to the search path
9836 if test -f /etc/ld.so.conf; then
9837 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' ' '`
9838 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9839 fi
9840
9841 # We used to test for /lib/ld.so.1 and disable shared libraries on
9842 # powerpc, because MkLinux only supported shared libraries with the
9843 # GNU dynamic linker. Since this was broken with cross compilers,
9844 # most powerpc-linux boxes support dynamic linking these days and
9845 # people can always --disable-shared, the test was removed, and we
9846 # assume the GNU/Linux dynamic linker is in use.
9847 dynamic_linker='GNU/Linux ld.so'
9848 ;;
9849
9850 netbsdelf*-gnu)
9851 version_type=linux
9852 need_lib_prefix=no
9853 need_version=no
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9855 soname_spec='${libname}${release}${shared_ext}$major'
9856 shlibpath_var=LD_LIBRARY_PATH
9857 shlibpath_overrides_runpath=no
9858 hardcode_into_libs=yes
9859 dynamic_linker='NetBSD ld.elf_so'
9860 ;;
9861
9862 netbsd*)
9863 version_type=sunos
9864 need_lib_prefix=no
9865 need_version=no
9866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9869 dynamic_linker='NetBSD (a.out) ld.so'
9870 else
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9872 soname_spec='${libname}${release}${shared_ext}$major'
9873 dynamic_linker='NetBSD ld.elf_so'
9874 fi
9875 shlibpath_var=LD_LIBRARY_PATH
9876 shlibpath_overrides_runpath=yes
9877 hardcode_into_libs=yes
9878 ;;
9879
9880 newsos6)
9881 version_type=linux
9882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9883 shlibpath_var=LD_LIBRARY_PATH
9884 shlibpath_overrides_runpath=yes
9885 ;;
9886
9887 *nto* | *qnx*)
9888 version_type=qnx
9889 need_lib_prefix=no
9890 need_version=no
9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892 soname_spec='${libname}${release}${shared_ext}$major'
9893 shlibpath_var=LD_LIBRARY_PATH
9894 shlibpath_overrides_runpath=no
9895 hardcode_into_libs=yes
9896 dynamic_linker='ldqnx.so'
9897 ;;
9898
9899 openbsd*)
9900 version_type=sunos
9901 sys_lib_dlsearch_path_spec="/usr/lib"
9902 need_lib_prefix=no
9903 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9904 case $host_os in
9905 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9906 *) need_version=no ;;
9907 esac
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9910 shlibpath_var=LD_LIBRARY_PATH
9911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9912 case $host_os in
9913 openbsd2.[89] | openbsd2.[89].*)
9914 shlibpath_overrides_runpath=no
9915 ;;
9916 *)
9917 shlibpath_overrides_runpath=yes
9918 ;;
9919 esac
9920 else
9921 shlibpath_overrides_runpath=yes
9922 fi
9923 ;;
9924
9925 os2*)
9926 libname_spec='$name'
9927 shrext_cmds=".dll"
9928 need_lib_prefix=no
9929 library_names_spec='$libname${shared_ext} $libname.a'
9930 dynamic_linker='OS/2 ld.exe'
9931 shlibpath_var=LIBPATH
9932 ;;
9933
9934 osf3* | osf4* | osf5*)
9935 version_type=osf
9936 need_lib_prefix=no
9937 need_version=no
9938 soname_spec='${libname}${release}${shared_ext}$major'
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9940 shlibpath_var=LD_LIBRARY_PATH
9941 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9942 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9943 ;;
9944
9945 rdos*)
9946 dynamic_linker=no
9947 ;;
9948
9949 solaris*)
9950 version_type=linux
9951 need_lib_prefix=no
9952 need_version=no
9953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9954 soname_spec='${libname}${release}${shared_ext}$major'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 shlibpath_overrides_runpath=yes
9957 hardcode_into_libs=yes
9958 # ldd complains unless libraries are executable
9959 postinstall_cmds='chmod +x $lib'
9960 ;;
9961
9962 sunos4*)
9963 version_type=sunos
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9965 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9966 shlibpath_var=LD_LIBRARY_PATH
9967 shlibpath_overrides_runpath=yes
9968 if test "$with_gnu_ld" = yes; then
9969 need_lib_prefix=no
9970 fi
9971 need_version=yes
9972 ;;
9973
9974 sysv4 | sysv4.3*)
9975 version_type=linux
9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9977 soname_spec='${libname}${release}${shared_ext}$major'
9978 shlibpath_var=LD_LIBRARY_PATH
9979 case $host_vendor in
9980 sni)
9981 shlibpath_overrides_runpath=no
9982 need_lib_prefix=no
9983 runpath_var=LD_RUN_PATH
9984 ;;
9985 siemens)
9986 need_lib_prefix=no
9987 ;;
9988 motorola)
9989 need_lib_prefix=no
9990 need_version=no
9991 shlibpath_overrides_runpath=no
9992 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9993 ;;
9994 esac
9995 ;;
9996
9997 sysv4*MP*)
9998 if test -d /usr/nec ;then
9999 version_type=linux
10000 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10001 soname_spec='$libname${shared_ext}.$major'
10002 shlibpath_var=LD_LIBRARY_PATH
10003 fi
10004 ;;
10005
10006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10007 version_type=freebsd-elf
10008 need_lib_prefix=no
10009 need_version=no
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10011 soname_spec='${libname}${release}${shared_ext}$major'
10012 shlibpath_var=LD_LIBRARY_PATH
10013 shlibpath_overrides_runpath=yes
10014 hardcode_into_libs=yes
10015 if test "$with_gnu_ld" = yes; then
10016 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10017 else
10018 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10019 case $host_os in
10020 sco3.2v5*)
10021 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10022 ;;
10023 esac
10024 fi
10025 sys_lib_dlsearch_path_spec='/usr/lib'
10026 ;;
10027
10028 tpf*)
10029 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10030 version_type=linux
10031 need_lib_prefix=no
10032 need_version=no
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10034 shlibpath_var=LD_LIBRARY_PATH
10035 shlibpath_overrides_runpath=no
10036 hardcode_into_libs=yes
10037 ;;
10038
10039 uts4*)
10040 version_type=linux
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10042 soname_spec='${libname}${release}${shared_ext}$major'
10043 shlibpath_var=LD_LIBRARY_PATH
10044 ;;
10045
10046 *)
10047 dynamic_linker=no
10048 ;;
10049 esac
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10051 $as_echo "$dynamic_linker" >&6; }
10052 test "$dynamic_linker" = no && can_build_shared=no
10053
10054 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10055 if test "$GCC" = yes; then
10056 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10057 fi
10058
10059 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10060 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10061 fi
10062 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10063 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10064 fi
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10153 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10154 hardcode_action=
10155 if test -n "$hardcode_libdir_flag_spec" ||
10156 test -n "$runpath_var" ||
10157 test "X$hardcode_automatic" = "Xyes" ; then
10158
10159 # We can hardcode non-existent directories.
10160 if test "$hardcode_direct" != no &&
10161 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10162 # have to relink, otherwise we might link with an installed library
10163 # when we should be linking with a yet-to-be-installed one
10164 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10165 test "$hardcode_minus_L" != no; then
10166 # Linking always hardcodes the temporary library directory.
10167 hardcode_action=relink
10168 else
10169 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10170 hardcode_action=immediate
10171 fi
10172 else
10173 # We cannot hardcode anything, or else we can only hardcode existing
10174 # directories.
10175 hardcode_action=unsupported
10176 fi
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10178 $as_echo "$hardcode_action" >&6; }
10179
10180 if test "$hardcode_action" = relink ||
10181 test "$inherit_rpath" = yes; then
10182 # Fast installation is not supported
10183 enable_fast_install=no
10184 elif test "$shlibpath_overrides_runpath" = yes ||
10185 test "$enable_shared" = no; then
10186 # Fast installation is not necessary
10187 enable_fast_install=needless
10188 fi
10189
10190
10191
10192
10193
10194
10195 if test "x$enable_dlopen" != xyes; then
10196 enable_dlopen=unknown
10197 enable_dlopen_self=unknown
10198 enable_dlopen_self_static=unknown
10199 else
10200 lt_cv_dlopen=no
10201 lt_cv_dlopen_libs=
10202
10203 case $host_os in
10204 beos*)
10205 lt_cv_dlopen="load_add_on"
10206 lt_cv_dlopen_libs=
10207 lt_cv_dlopen_self=yes
10208 ;;
10209
10210 mingw* | pw32* | cegcc*)
10211 lt_cv_dlopen="LoadLibrary"
10212 lt_cv_dlopen_libs=
10213 ;;
10214
10215 cygwin*)
10216 lt_cv_dlopen="dlopen"
10217 lt_cv_dlopen_libs=
10218 ;;
10219
10220 darwin*)
10221 # if libdl is installed we need to link against it
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10223 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10224 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 ac_check_lib_save_LIBS=$LIBS
10228 LIBS="-ldl $LIBS"
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10231
10232 /* Override any GCC internal prototype to avoid an error.
10233 Use char because int might match the return type of a GCC
10234 builtin and then its argument prototype would still apply. */
10235 #ifdef __cplusplus
10236 extern "C"
10237 #endif
10238 char dlopen ();
10239 int
10240 main ()
10241 {
10242 return dlopen ();
10243 ;
10244 return 0;
10245 }
10246 _ACEOF
10247 if ac_fn_c_try_link "$LINENO"; then :
10248 ac_cv_lib_dl_dlopen=yes
10249 else
10250 ac_cv_lib_dl_dlopen=no
10251 fi
10252 rm -f core conftest.err conftest.$ac_objext \
10253 conftest$ac_exeext conftest.$ac_ext
10254 LIBS=$ac_check_lib_save_LIBS
10255 fi
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10257 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10258 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10260 else
10261
10262 lt_cv_dlopen="dyld"
10263 lt_cv_dlopen_libs=
10264 lt_cv_dlopen_self=yes
10265
10266 fi
10267
10268 ;;
10269
10270 *)
10271 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10272 if test "x$ac_cv_func_shl_load" = x""yes; then :
10273 lt_cv_dlopen="shl_load"
10274 else
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10276 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10277 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10278 $as_echo_n "(cached) " >&6
10279 else
10280 ac_check_lib_save_LIBS=$LIBS
10281 LIBS="-ldld $LIBS"
10282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283 /* end confdefs.h. */
10284
10285 /* Override any GCC internal prototype to avoid an error.
10286 Use char because int might match the return type of a GCC
10287 builtin and then its argument prototype would still apply. */
10288 #ifdef __cplusplus
10289 extern "C"
10290 #endif
10291 char shl_load ();
10292 int
10293 main ()
10294 {
10295 return shl_load ();
10296 ;
10297 return 0;
10298 }
10299 _ACEOF
10300 if ac_fn_c_try_link "$LINENO"; then :
10301 ac_cv_lib_dld_shl_load=yes
10302 else
10303 ac_cv_lib_dld_shl_load=no
10304 fi
10305 rm -f core conftest.err conftest.$ac_objext \
10306 conftest$ac_exeext conftest.$ac_ext
10307 LIBS=$ac_check_lib_save_LIBS
10308 fi
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10310 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10311 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10312 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10313 else
10314 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10315 if test "x$ac_cv_func_dlopen" = x""yes; then :
10316 lt_cv_dlopen="dlopen"
10317 else
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10319 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10320 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10321 $as_echo_n "(cached) " >&6
10322 else
10323 ac_check_lib_save_LIBS=$LIBS
10324 LIBS="-ldl $LIBS"
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327
10328 /* Override any GCC internal prototype to avoid an error.
10329 Use char because int might match the return type of a GCC
10330 builtin and then its argument prototype would still apply. */
10331 #ifdef __cplusplus
10332 extern "C"
10333 #endif
10334 char dlopen ();
10335 int
10336 main ()
10337 {
10338 return dlopen ();
10339 ;
10340 return 0;
10341 }
10342 _ACEOF
10343 if ac_fn_c_try_link "$LINENO"; then :
10344 ac_cv_lib_dl_dlopen=yes
10345 else
10346 ac_cv_lib_dl_dlopen=no
10347 fi
10348 rm -f core conftest.err conftest.$ac_objext \
10349 conftest$ac_exeext conftest.$ac_ext
10350 LIBS=$ac_check_lib_save_LIBS
10351 fi
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10353 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10354 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10355 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10356 else
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10358 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10359 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 ac_check_lib_save_LIBS=$LIBS
10363 LIBS="-lsvld $LIBS"
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366
10367 /* Override any GCC internal prototype to avoid an error.
10368 Use char because int might match the return type of a GCC
10369 builtin and then its argument prototype would still apply. */
10370 #ifdef __cplusplus
10371 extern "C"
10372 #endif
10373 char dlopen ();
10374 int
10375 main ()
10376 {
10377 return dlopen ();
10378 ;
10379 return 0;
10380 }
10381 _ACEOF
10382 if ac_fn_c_try_link "$LINENO"; then :
10383 ac_cv_lib_svld_dlopen=yes
10384 else
10385 ac_cv_lib_svld_dlopen=no
10386 fi
10387 rm -f core conftest.err conftest.$ac_objext \
10388 conftest$ac_exeext conftest.$ac_ext
10389 LIBS=$ac_check_lib_save_LIBS
10390 fi
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10392 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10393 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10394 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10395 else
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10397 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10398 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10399 $as_echo_n "(cached) " >&6
10400 else
10401 ac_check_lib_save_LIBS=$LIBS
10402 LIBS="-ldld $LIBS"
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10405
10406 /* Override any GCC internal prototype to avoid an error.
10407 Use char because int might match the return type of a GCC
10408 builtin and then its argument prototype would still apply. */
10409 #ifdef __cplusplus
10410 extern "C"
10411 #endif
10412 char dld_link ();
10413 int
10414 main ()
10415 {
10416 return dld_link ();
10417 ;
10418 return 0;
10419 }
10420 _ACEOF
10421 if ac_fn_c_try_link "$LINENO"; then :
10422 ac_cv_lib_dld_dld_link=yes
10423 else
10424 ac_cv_lib_dld_dld_link=no
10425 fi
10426 rm -f core conftest.err conftest.$ac_objext \
10427 conftest$ac_exeext conftest.$ac_ext
10428 LIBS=$ac_check_lib_save_LIBS
10429 fi
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10431 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10432 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10433 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10434 fi
10435
10436
10437 fi
10438
10439
10440 fi
10441
10442
10443 fi
10444
10445
10446 fi
10447
10448
10449 fi
10450
10451 ;;
10452 esac
10453
10454 if test "x$lt_cv_dlopen" != xno; then
10455 enable_dlopen=yes
10456 else
10457 enable_dlopen=no
10458 fi
10459
10460 case $lt_cv_dlopen in
10461 dlopen)
10462 save_CPPFLAGS="$CPPFLAGS"
10463 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10464
10465 save_LDFLAGS="$LDFLAGS"
10466 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10467
10468 save_LIBS="$LIBS"
10469 LIBS="$lt_cv_dlopen_libs $LIBS"
10470
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10472 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10473 if test "${lt_cv_dlopen_self+set}" = set; then :
10474 $as_echo_n "(cached) " >&6
10475 else
10476 if test "$cross_compiling" = yes; then :
10477 lt_cv_dlopen_self=cross
10478 else
10479 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10480 lt_status=$lt_dlunknown
10481 cat > conftest.$ac_ext <<_LT_EOF
10482 #line 10482 "configure"
10483 #include "confdefs.h"
10484
10485 #if HAVE_DLFCN_H
10486 #include <dlfcn.h>
10487 #endif
10488
10489 #include <stdio.h>
10490
10491 #ifdef RTLD_GLOBAL
10492 # define LT_DLGLOBAL RTLD_GLOBAL
10493 #else
10494 # ifdef DL_GLOBAL
10495 # define LT_DLGLOBAL DL_GLOBAL
10496 # else
10497 # define LT_DLGLOBAL 0
10498 # endif
10499 #endif
10500
10501 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10502 find out it does not work in some platform. */
10503 #ifndef LT_DLLAZY_OR_NOW
10504 # ifdef RTLD_LAZY
10505 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10506 # else
10507 # ifdef DL_LAZY
10508 # define LT_DLLAZY_OR_NOW DL_LAZY
10509 # else
10510 # ifdef RTLD_NOW
10511 # define LT_DLLAZY_OR_NOW RTLD_NOW
10512 # else
10513 # ifdef DL_NOW
10514 # define LT_DLLAZY_OR_NOW DL_NOW
10515 # else
10516 # define LT_DLLAZY_OR_NOW 0
10517 # endif
10518 # endif
10519 # endif
10520 # endif
10521 #endif
10522
10523 void fnord() { int i=42;}
10524 int main ()
10525 {
10526 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10527 int status = $lt_dlunknown;
10528
10529 if (self)
10530 {
10531 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10532 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10533 /* dlclose (self); */
10534 }
10535 else
10536 puts (dlerror ());
10537
10538 return status;
10539 }
10540 _LT_EOF
10541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10542 (eval $ac_link) 2>&5
10543 ac_status=$?
10544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10545 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10546 (./conftest; exit; ) >&5 2>/dev/null
10547 lt_status=$?
10548 case x$lt_status in
10549 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10550 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10551 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10552 esac
10553 else :
10554 # compilation failed
10555 lt_cv_dlopen_self=no
10556 fi
10557 fi
10558 rm -fr conftest*
10559
10560
10561 fi
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10563 $as_echo "$lt_cv_dlopen_self" >&6; }
10564
10565 if test "x$lt_cv_dlopen_self" = xyes; then
10566 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10568 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10569 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10570 $as_echo_n "(cached) " >&6
10571 else
10572 if test "$cross_compiling" = yes; then :
10573 lt_cv_dlopen_self_static=cross
10574 else
10575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10576 lt_status=$lt_dlunknown
10577 cat > conftest.$ac_ext <<_LT_EOF
10578 #line 10578 "configure"
10579 #include "confdefs.h"
10580
10581 #if HAVE_DLFCN_H
10582 #include <dlfcn.h>
10583 #endif
10584
10585 #include <stdio.h>
10586
10587 #ifdef RTLD_GLOBAL
10588 # define LT_DLGLOBAL RTLD_GLOBAL
10589 #else
10590 # ifdef DL_GLOBAL
10591 # define LT_DLGLOBAL DL_GLOBAL
10592 # else
10593 # define LT_DLGLOBAL 0
10594 # endif
10595 #endif
10596
10597 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10598 find out it does not work in some platform. */
10599 #ifndef LT_DLLAZY_OR_NOW
10600 # ifdef RTLD_LAZY
10601 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10602 # else
10603 # ifdef DL_LAZY
10604 # define LT_DLLAZY_OR_NOW DL_LAZY
10605 # else
10606 # ifdef RTLD_NOW
10607 # define LT_DLLAZY_OR_NOW RTLD_NOW
10608 # else
10609 # ifdef DL_NOW
10610 # define LT_DLLAZY_OR_NOW DL_NOW
10611 # else
10612 # define LT_DLLAZY_OR_NOW 0
10613 # endif
10614 # endif
10615 # endif
10616 # endif
10617 #endif
10618
10619 void fnord() { int i=42;}
10620 int main ()
10621 {
10622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10623 int status = $lt_dlunknown;
10624
10625 if (self)
10626 {
10627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10628 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10629 /* dlclose (self); */
10630 }
10631 else
10632 puts (dlerror ());
10633
10634 return status;
10635 }
10636 _LT_EOF
10637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10638 (eval $ac_link) 2>&5
10639 ac_status=$?
10640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10641 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10642 (./conftest; exit; ) >&5 2>/dev/null
10643 lt_status=$?
10644 case x$lt_status in
10645 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10646 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10647 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10648 esac
10649 else :
10650 # compilation failed
10651 lt_cv_dlopen_self_static=no
10652 fi
10653 fi
10654 rm -fr conftest*
10655
10656
10657 fi
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10659 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10660 fi
10661
10662 CPPFLAGS="$save_CPPFLAGS"
10663 LDFLAGS="$save_LDFLAGS"
10664 LIBS="$save_LIBS"
10665 ;;
10666 esac
10667
10668 case $lt_cv_dlopen_self in
10669 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10670 *) enable_dlopen_self=unknown ;;
10671 esac
10672
10673 case $lt_cv_dlopen_self_static in
10674 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10675 *) enable_dlopen_self_static=unknown ;;
10676 esac
10677 fi
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695 striplib=
10696 old_striplib=
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10698 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10699 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10700 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10701 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10703 $as_echo "yes" >&6; }
10704 else
10705 # FIXME - insert some real tests, host_os isn't really good enough
10706 case $host_os in
10707 darwin*)
10708 if test -n "$STRIP" ; then
10709 striplib="$STRIP -x"
10710 old_striplib="$STRIP -S"
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10712 $as_echo "yes" >&6; }
10713 else
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715 $as_echo "no" >&6; }
10716 fi
10717 ;;
10718 *)
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10720 $as_echo "no" >&6; }
10721 ;;
10722 esac
10723 fi
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736 # Report which library types will actually be built
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10738 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10740 $as_echo "$can_build_shared" >&6; }
10741
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10743 $as_echo_n "checking whether to build shared libraries... " >&6; }
10744 test "$can_build_shared" = "no" && enable_shared=no
10745
10746 # On AIX, shared libraries and static libraries use the same namespace, and
10747 # are all built from PIC.
10748 case $host_os in
10749 aix3*)
10750 test "$enable_shared" = yes && enable_static=no
10751 if test -n "$RANLIB"; then
10752 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10753 postinstall_cmds='$RANLIB $lib'
10754 fi
10755 ;;
10756
10757 aix[4-9]*)
10758 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10759 test "$enable_shared" = yes && enable_static=no
10760 fi
10761 ;;
10762 esac
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10764 $as_echo "$enable_shared" >&6; }
10765
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10767 $as_echo_n "checking whether to build static libraries... " >&6; }
10768 # Make sure either enable_shared or enable_static is yes.
10769 test "$enable_shared" = yes || enable_static=yes
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10771 $as_echo "$enable_static" >&6; }
10772
10773
10774
10775
10776 fi
10777 ac_ext=c
10778 ac_cpp='$CPP $CPPFLAGS'
10779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10782
10783 CC="$lt_save_CC"
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797 ac_config_commands="$ac_config_commands libtool"
10798
10799
10800
10801
10802 # Only expand once:
10803
10804
10805
10806
10807 case "$target_os" in
10808 cygwin* | mingw*)
10809 LDFLAGS="$LDFLAGS -no-undefined"
10810 ;;
10811 esac
10812
10813 ## Checks for libraries.
10814
10815 ## Checks for header files.
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10817 $as_echo_n "checking for ANSI C header files... " >&6; }
10818 if test "${ac_cv_header_stdc+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
10820 else
10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822 /* end confdefs.h. */
10823 #include <stdlib.h>
10824 #include <stdarg.h>
10825 #include <string.h>
10826 #include <float.h>
10827
10828 int
10829 main ()
10830 {
10831
10832 ;
10833 return 0;
10834 }
10835 _ACEOF
10836 if ac_fn_c_try_compile "$LINENO"; then :
10837 ac_cv_header_stdc=yes
10838 else
10839 ac_cv_header_stdc=no
10840 fi
10841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10842
10843 if test $ac_cv_header_stdc = yes; then
10844 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10846 /* end confdefs.h. */
10847 #include <string.h>
10848
10849 _ACEOF
10850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10851 $EGREP "memchr" >/dev/null 2>&1; then :
10852
10853 else
10854 ac_cv_header_stdc=no
10855 fi
10856 rm -f conftest*
10857
10858 fi
10859
10860 if test $ac_cv_header_stdc = yes; then
10861 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10864 #include <stdlib.h>
10865
10866 _ACEOF
10867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10868 $EGREP "free" >/dev/null 2>&1; then :
10869
10870 else
10871 ac_cv_header_stdc=no
10872 fi
10873 rm -f conftest*
10874
10875 fi
10876
10877 if test $ac_cv_header_stdc = yes; then
10878 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10879 if test "$cross_compiling" = yes; then :
10880 :
10881 else
10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h. */
10884 #include <ctype.h>
10885 #include <stdlib.h>
10886 #if ((' ' & 0x0FF) == 0x020)
10887 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10888 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10889 #else
10890 # define ISLOWER(c) \
10891 (('a' <= (c) && (c) <= 'i') \
10892 || ('j' <= (c) && (c) <= 'r') \
10893 || ('s' <= (c) && (c) <= 'z'))
10894 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10895 #endif
10896
10897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10898 int
10899 main ()
10900 {
10901 int i;
10902 for (i = 0; i < 256; i++)
10903 if (XOR (islower (i), ISLOWER (i))
10904 || toupper (i) != TOUPPER (i))
10905 return 2;
10906 return 0;
10907 }
10908 _ACEOF
10909 if ac_fn_c_try_run "$LINENO"; then :
10910
10911 else
10912 ac_cv_header_stdc=no
10913 fi
10914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10915 conftest.$ac_objext conftest.beam conftest.$ac_ext
10916 fi
10917
10918 fi
10919 fi
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10921 $as_echo "$ac_cv_header_stdc" >&6; }
10922 if test $ac_cv_header_stdc = yes; then
10923
10924 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10925
10926 fi
10927
10928 for ac_header in inttypes.h memory.h stddef.h stdint.h stdlib.h string.h strings.h sys/types.h io.h fcntl.h
10929 do :
10930 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10931 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10932 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10933 cat >>confdefs.h <<_ACEOF
10934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10935 _ACEOF
10936
10937 fi
10938
10939 done
10940
10941 if test "$ac_cv_header_inttypes_h" == "yes"; then :
10942 INCFILE="#include <inttypes.h>"
10943
10944 elif test "$ac_cv_header_stdint_h" == "yes"; then :
10945 INCFILE="#include <stdint.h>"
10946
10947 else
10948 INCFILE=""
10949
10950 fi
10951
10952 ## Checks for typedefs, structures, and compiler characteristics.
10953 # sauchar_t
10954 SAUCHAR_TYPE=""
10955 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10956 if test "x$ac_cv_type_uint8_t" = x""yes; then :
10957
10958 cat >>confdefs.h <<_ACEOF
10959 #define HAVE_UINT8_T 1
10960 _ACEOF
10961
10962
10963 fi
10964
10965 if test "$ac_cv_type_uint8_t" = "yes"; then
10966 SAUCHAR_TYPE="uint8_t"
10967 fi
10968 if test -z "$SAUCHAR_TYPE";then
10969 # The cast to long int works around a bug in the HP C Compiler
10970 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10971 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10972 # This bug is HP SR number 8606223364.
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char" >&5
10974 $as_echo_n "checking size of unsigned char... " >&6; }
10975 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then :
10976 $as_echo_n "(cached) " >&6
10977 else
10978 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char))" "ac_cv_sizeof_unsigned_char" "$ac_includes_default"; then :
10979
10980 else
10981 if test "$ac_cv_type_unsigned_char" = yes; then
10982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10984 as_fn_error 77 "cannot compute sizeof (unsigned char)
10985 See \`config.log' for more details" "$LINENO" 5 ; }
10986 else
10987 ac_cv_sizeof_unsigned_char=0
10988 fi
10989 fi
10990
10991 fi
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char" >&5
10993 $as_echo "$ac_cv_sizeof_unsigned_char" >&6; }
10994
10995
10996
10997 cat >>confdefs.h <<_ACEOF
10998 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
10999 _ACEOF
11000
11001
11002 if test "$ac_cv_sizeof_unsigned_char" = "1";then SAUCHAR_TYPE="unsigned char"; fi
11003 fi
11004 if test -z "$SAUCHAR_TYPE";then
11005 as_fn_error $? "Cannot find unsigned 8-bit integer type" "$LINENO" 5
11006 fi
11007
11008
11009 # saint_t and saidx_t
11010 SAINT32_TYPE=""
11011 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
11012 if test "x$ac_cv_type_int32_t" = x""yes; then :
11013
11014 cat >>confdefs.h <<_ACEOF
11015 #define HAVE_INT32_T 1
11016 _ACEOF
11017
11018
11019 fi
11020
11021 if test "$ac_cv_type_int32_t" = "yes"; then
11022 SAINT32_TYPE="int32_t";
11023 SAINT32_PRId="PRId32";
11024 fi
11025 if test -z "$SAINT32_TYPE";then
11026 # The cast to long int works around a bug in the HP C Compiler
11027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11029 # This bug is HP SR number 8606223364.
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11031 $as_echo_n "checking size of int... " >&6; }
11032 if test "${ac_cv_sizeof_int+set}" = set; then :
11033 $as_echo_n "(cached) " >&6
11034 else
11035 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11036
11037 else
11038 if test "$ac_cv_type_int" = yes; then
11039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11041 as_fn_error 77 "cannot compute sizeof (int)
11042 See \`config.log' for more details" "$LINENO" 5 ; }
11043 else
11044 ac_cv_sizeof_int=0
11045 fi
11046 fi
11047
11048 fi
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11050 $as_echo "$ac_cv_sizeof_int" >&6; }
11051
11052
11053
11054 cat >>confdefs.h <<_ACEOF
11055 #define SIZEOF_INT $ac_cv_sizeof_int
11056 _ACEOF
11057
11058
11059 if test "$ac_cv_sizeof_int" = "4";then
11060 SAINT32_TYPE="int";
11061 SAINT32_PRId="\"d\"";
11062 fi
11063 fi
11064 if test -z "$SAINT32_TYPE";then
11065 # The cast to long int works around a bug in the HP C Compiler
11066 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11067 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11068 # This bug is HP SR number 8606223364.
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11070 $as_echo_n "checking size of long... " >&6; }
11071 if test "${ac_cv_sizeof_long+set}" = set; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
11075
11076 else
11077 if test "$ac_cv_type_long" = yes; then
11078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11080 as_fn_error 77 "cannot compute sizeof (long)
11081 See \`config.log' for more details" "$LINENO" 5 ; }
11082 else
11083 ac_cv_sizeof_long=0
11084 fi
11085 fi
11086
11087 fi
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11089 $as_echo "$ac_cv_sizeof_long" >&6; }
11090
11091
11092
11093 cat >>confdefs.h <<_ACEOF
11094 #define SIZEOF_LONG $ac_cv_sizeof_long
11095 _ACEOF
11096
11097
11098 if test "$ac_cv_sizeof_long" = "4"; then
11099 SAINT32_TYPE="long";
11100 SAINT32_PRId="\"ld\"";
11101 fi
11102 fi
11103 if test -z "$SAINT32_TYPE";then
11104 # The cast to long int works around a bug in the HP C Compiler
11105 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11106 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11107 # This bug is HP SR number 8606223364.
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int32" >&5
11109 $as_echo_n "checking size of __int32... " >&6; }
11110 if test "${ac_cv_sizeof___int32+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11113 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int32))" "ac_cv_sizeof___int32" "$ac_includes_default"; then :
11114
11115 else
11116 if test "$ac_cv_type___int32" = yes; then
11117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11119 as_fn_error 77 "cannot compute sizeof (__int32)
11120 See \`config.log' for more details" "$LINENO" 5 ; }
11121 else
11122 ac_cv_sizeof___int32=0
11123 fi
11124 fi
11125
11126 fi
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int32" >&5
11128 $as_echo "$ac_cv_sizeof___int32" >&6; }
11129
11130
11131
11132 cat >>confdefs.h <<_ACEOF
11133 #define SIZEOF___INT32 $ac_cv_sizeof___int32
11134 _ACEOF
11135
11136
11137 if test "$ac_cv_sizeof___int32" = "4"; then
11138 SAINT32_TYPE="__int32";
11139 SAINT32_PRId="\"I32d\"";
11140 fi
11141 fi
11142 if test -z "$SAINT32_TYPE";then
11143 # The cast to long int works around a bug in the HP C Compiler
11144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11146 # This bug is HP SR number 8606223364.
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
11148 $as_echo_n "checking size of short... " >&6; }
11149 if test "${ac_cv_sizeof_short+set}" = set; then :
11150 $as_echo_n "(cached) " >&6
11151 else
11152 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
11153
11154 else
11155 if test "$ac_cv_type_short" = yes; then
11156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11158 as_fn_error 77 "cannot compute sizeof (short)
11159 See \`config.log' for more details" "$LINENO" 5 ; }
11160 else
11161 ac_cv_sizeof_short=0
11162 fi
11163 fi
11164
11165 fi
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
11167 $as_echo "$ac_cv_sizeof_short" >&6; }
11168
11169
11170
11171 cat >>confdefs.h <<_ACEOF
11172 #define SIZEOF_SHORT $ac_cv_sizeof_short
11173 _ACEOF
11174
11175
11176 if test "$ac_cv_sizeof_short" = "4"; then
11177 SAINT32_TYPE="short";
11178 SAINT32_PRId="\"d\"";
11179 fi
11180 fi
11181 if test -z "$SAINT32_TYPE";then
11182 as_fn_error $? "Could not find 32-bit integer type" "$LINENO" 5
11183 fi
11184
11185 SAINT_PRId="$SAINT32_PRId"
11186
11187
11188 # Check whether --enable-divsufsort64 was given.
11189 if test "${enable_divsufsort64+set}" = set; then :
11190 enableval=$enable_divsufsort64;
11191 fi
11192
11193 if test "$enable_divsufsort64" = "yes"; then
11194 # saint64_t
11195 SAINT64_TYPE=""
11196 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
11197 if test "x$ac_cv_type_int64_t" = x""yes; then :
11198
11199 cat >>confdefs.h <<_ACEOF
11200 #define HAVE_INT64_T 1
11201 _ACEOF
11202
11203
11204 fi
11205
11206 if test "$ac_cv_type_int64_t" = "yes"; then
11207 SAINT64_TYPE="int64_t";
11208 SAINT64_PRId="PRId64";
11209 fi
11210 if test -z "$SAINT64_TYPE";then
11211 # The cast to long int works around a bug in the HP C Compiler
11212 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11213 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11214 # This bug is HP SR number 8606223364.
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11216 $as_echo_n "checking size of long long... " >&6; }
11217 if test "${ac_cv_sizeof_long_long+set}" = set; then :
11218 $as_echo_n "(cached) " >&6
11219 else
11220 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
11221
11222 else
11223 if test "$ac_cv_type_long_long" = yes; then
11224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11226 as_fn_error 77 "cannot compute sizeof (long long)
11227 See \`config.log' for more details" "$LINENO" 5 ; }
11228 else
11229 ac_cv_sizeof_long_long=0
11230 fi
11231 fi
11232
11233 fi
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
11235 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11236
11237
11238
11239 cat >>confdefs.h <<_ACEOF
11240 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11241 _ACEOF
11242
11243
11244 if test "$ac_cv_sizeof_long_long" = "8";then
11245 SAINT64_TYPE="long long";
11246 SAINT64_PRId="\"lld\"";
11247 fi
11248 fi
11249 if test -z "$SAINT64_TYPE";then
11250 # The cast to long int works around a bug in the HP C Compiler
11251 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11252 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11253 # This bug is HP SR number 8606223364.
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11255 $as_echo_n "checking size of long... " >&6; }
11256 if test "${ac_cv_sizeof_long+set}" = set; then :
11257 $as_echo_n "(cached) " >&6
11258 else
11259 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
11260
11261 else
11262 if test "$ac_cv_type_long" = yes; then
11263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11265 as_fn_error 77 "cannot compute sizeof (long)
11266 See \`config.log' for more details" "$LINENO" 5 ; }
11267 else
11268 ac_cv_sizeof_long=0
11269 fi
11270 fi
11271
11272 fi
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11274 $as_echo "$ac_cv_sizeof_long" >&6; }
11275
11276
11277
11278 cat >>confdefs.h <<_ACEOF
11279 #define SIZEOF_LONG $ac_cv_sizeof_long
11280 _ACEOF
11281
11282
11283 if test "$ac_cv_sizeof_long" = "8";then
11284 SAINT64_TYPE="long";
11285 SAINT64_PRId="\"ld\"";
11286 fi
11287 fi
11288 if test -z "$SAINT64_TYPE";then
11289 # The cast to long int works around a bug in the HP C Compiler
11290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11292 # This bug is HP SR number 8606223364.
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11294 $as_echo_n "checking size of int... " >&6; }
11295 if test "${ac_cv_sizeof_int+set}" = set; then :
11296 $as_echo_n "(cached) " >&6
11297 else
11298 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11299
11300 else
11301 if test "$ac_cv_type_int" = yes; then
11302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11304 as_fn_error 77 "cannot compute sizeof (int)
11305 See \`config.log' for more details" "$LINENO" 5 ; }
11306 else
11307 ac_cv_sizeof_int=0
11308 fi
11309 fi
11310
11311 fi
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11313 $as_echo "$ac_cv_sizeof_int" >&6; }
11314
11315
11316
11317 cat >>confdefs.h <<_ACEOF
11318 #define SIZEOF_INT $ac_cv_sizeof_int
11319 _ACEOF
11320
11321
11322 if test "$ac_cv_sizeof_int" = "8";then
11323 SAINT64_TYPE="int";
11324 SAINT64_PRId="\"d\"";
11325 fi
11326 fi
11327 if test -z "$SAINT64_TYPE";then
11328 # The cast to long int works around a bug in the HP C Compiler
11329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11331 # This bug is HP SR number 8606223364.
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
11333 $as_echo_n "checking size of __int64... " >&6; }
11334 if test "${ac_cv_sizeof___int64+set}" = set; then :
11335 $as_echo_n "(cached) " >&6
11336 else
11337 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
11338
11339 else
11340 if test "$ac_cv_type___int64" = yes; then
11341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11343 as_fn_error 77 "cannot compute sizeof (__int64)
11344 See \`config.log' for more details" "$LINENO" 5 ; }
11345 else
11346 ac_cv_sizeof___int64=0
11347 fi
11348 fi
11349
11350 fi
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
11352 $as_echo "$ac_cv_sizeof___int64" >&6; }
11353
11354
11355
11356 cat >>confdefs.h <<_ACEOF
11357 #define SIZEOF___INT64 $ac_cv_sizeof___int64
11358 _ACEOF
11359
11360
11361 if test "$ac_cv_sizeof___int64" = "8";then
11362 SAINT64_TYPE="__int32";
11363 SAINT64_PRId="\"I64d\"";
11364 fi
11365 fi
11366 if test -z "$SAINT64_TYPE";then
11367 as_fn_error $? "Could not find 64-bit integer type" "$LINENO" 5
11368 fi
11369
11370 ac_config_files="$ac_config_files include/divsufsort64.h:include/divsufsort64.h.in"
11371
11372
11373
11374
11375 fi
11376
11377 if test "$enable_divsufsort64" = "yes"; then
11378 DIVSUFSORT64_TRUE=
11379 DIVSUFSORT64_FALSE='#'
11380 else
11381 DIVSUFSORT64_TRUE='#'
11382 DIVSUFSORT64_FALSE=
11383 fi
11384
11385
11386 SAINDEX_TYPE="$SAINT32_TYPE"
11387
11388 SAINDEX_PRId="$SAINT32_PRId"
11389
11390
11391
11392
11393
11394
11395 LFS_OFF_T=long
11396
11397 LFS_FOPEN=fopen
11398
11399 LFS_FTELL=ftell
11400
11401 LFS_FSEEK=fseek
11402
11403 LFS_PRID="\"ld\""
11404
11405
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11407 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11408 if test "${ac_cv_c_const+set}" = set; then :
11409 $as_echo_n "(cached) " >&6
11410 else
11411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412 /* end confdefs.h. */
11413
11414 int
11415 main ()
11416 {
11417 /* FIXME: Include the comments suggested by Paul. */
11418 #ifndef __cplusplus
11419 /* Ultrix mips cc rejects this. */
11420 typedef int charset[2];
11421 const charset cs;
11422 /* SunOS 4.1.1 cc rejects this. */
11423 char const *const *pcpcc;
11424 char **ppc;
11425 /* NEC SVR4.0.2 mips cc rejects this. */
11426 struct point {int x, y;};
11427 static struct point const zero = {0,0};
11428 /* AIX XL C 1.02.0.0 rejects this.
11429 It does not let you subtract one const X* pointer from another in
11430 an arm of an if-expression whose if-part is not a constant
11431 expression */
11432 const char *g = "string";
11433 pcpcc = &g + (g ? g-g : 0);
11434 /* HPUX 7.0 cc rejects these. */
11435 ++pcpcc;
11436 ppc = (char**) pcpcc;
11437 pcpcc = (char const *const *) ppc;
11438 { /* SCO 3.2v4 cc rejects this. */
11439 char *t;
11440 char const *s = 0 ? (char *) 0 : (char const *) 0;
11441
11442 *t++ = 0;
11443 if (s) return 0;
11444 }
11445 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11446 int x[] = {25, 17};
11447 const int *foo = &x[0];
11448 ++foo;
11449 }
11450 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11451 typedef const int *iptr;
11452 iptr p = 0;
11453 ++p;
11454 }
11455 { /* AIX XL C 1.02.0.0 rejects this saying
11456 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11457 struct s { int j; const int *ap[3]; };
11458 struct s *b; b->j = 5;
11459 }
11460 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11461 const int foo = 10;
11462 if (!foo) return 0;
11463 }
11464 return !cs[0] && !zero.x;
11465 #endif
11466
11467 ;
11468 return 0;
11469 }
11470 _ACEOF
11471 if ac_fn_c_try_compile "$LINENO"; then :
11472 ac_cv_c_const=yes
11473 else
11474 ac_cv_c_const=no
11475 fi
11476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11477 fi
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11479 $as_echo "$ac_cv_c_const" >&6; }
11480 if test $ac_cv_c_const = no; then
11481
11482 $as_echo "#define const /**/" >>confdefs.h
11483
11484 fi
11485
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11487 $as_echo_n "checking for inline... " >&6; }
11488 if test "${ac_cv_c_inline+set}" = set; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 ac_cv_c_inline=no
11492 for ac_kw in inline __inline__ __inline; do
11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11494 /* end confdefs.h. */
11495 #ifndef __cplusplus
11496 typedef int foo_t;
11497 static $ac_kw foo_t static_foo () {return 0; }
11498 $ac_kw foo_t foo () {return 0; }
11499 #endif
11500
11501 _ACEOF
11502 if ac_fn_c_try_compile "$LINENO"; then :
11503 ac_cv_c_inline=$ac_kw
11504 fi
11505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11506 test "$ac_cv_c_inline" != no && break
11507 done
11508
11509 fi
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11511 $as_echo "$ac_cv_c_inline" >&6; }
11512
11513 case $ac_cv_c_inline in
11514 inline | yes) ;;
11515 *)
11516 case $ac_cv_c_inline in
11517 no) ac_val=;;
11518 *) ac_val=$ac_cv_c_inline;;
11519 esac
11520 cat >>confdefs.h <<_ACEOF
11521 #ifndef __cplusplus
11522 #define inline $ac_val
11523 #endif
11524 _ACEOF
11525 ;;
11526 esac
11527
11528
11529 $as_echo "#define INLINE inline" >>confdefs.h
11530
11531
11532 $as_echo "#define PROJECT_VERSION_FULL PACKAGE_VERSION" >>confdefs.h
11533
11534
11535 ## Checks for library functions.
11536 for ac_header in stdlib.h
11537 do :
11538 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11539 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11540 cat >>confdefs.h <<_ACEOF
11541 #define HAVE_STDLIB_H 1
11542 _ACEOF
11543
11544 fi
11545
11546 done
11547
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
11549 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11550 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
11551 $as_echo_n "(cached) " >&6
11552 else
11553 if test "$cross_compiling" = yes; then :
11554 ac_cv_func_malloc_0_nonnull=no
11555 else
11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h. */
11558 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11559 # include <stdlib.h>
11560 #else
11561 char *malloc ();
11562 #endif
11563
11564 int
11565 main ()
11566 {
11567 return ! malloc (0);
11568 ;
11569 return 0;
11570 }
11571 _ACEOF
11572 if ac_fn_c_try_run "$LINENO"; then :
11573 ac_cv_func_malloc_0_nonnull=yes
11574 else
11575 ac_cv_func_malloc_0_nonnull=no
11576 fi
11577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11578 conftest.$ac_objext conftest.beam conftest.$ac_ext
11579 fi
11580
11581 fi
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11583 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11584 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11585
11586 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
11587
11588 else
11589 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
11590
11591 case " $LIBOBJS " in
11592 *" malloc.$ac_objext "* ) ;;
11593 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11594 ;;
11595 esac
11596
11597
11598 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11599
11600 fi
11601
11602
11603 for ac_func in fopen_s _setmode setmode _fileno
11604 do :
11605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11606 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11607 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11608 cat >>confdefs.h <<_ACEOF
11609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11610 _ACEOF
11611
11612 fi
11613 done
11614
11615 if test "$ac_cv_func_setmode" = "yes"; then
11616 if test "$ac_cv_func__setmode" = "no"; then
11617
11618 $as_echo "#define _setmode setmode" >>confdefs.h
11619
11620
11621 $as_echo "#define HAVE__SETMODE 1" >>confdefs.h
11622
11623 fi
11624 fi
11625
11626 ac_config_files="$ac_config_files Makefile include/Makefile include/divsufsort.h:include/divsufsort.h.cmake include/lfs.h:include/lfs.h.cmake lib/Makefile examples/Makefile"
11627
11628 cat >confcache <<\_ACEOF
11629 # This file is a shell script that caches the results of configure
11630 # tests run on this system so they can be shared between configure
11631 # scripts and configure runs, see configure's option --config-cache.
11632 # It is not useful on other systems. If it contains results you don't
11633 # want to keep, you may remove or edit it.
11634 #
11635 # config.status only pays attention to the cache file if you give it
11636 # the --recheck option to rerun configure.
11637 #
11638 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11639 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11640 # following values.
11641
11642 _ACEOF
11643
11644 # The following way of writing the cache mishandles newlines in values,
11645 # but we know of no workaround that is simple, portable, and efficient.
11646 # So, we kill variables containing newlines.
11647 # Ultrix sh set writes to stderr and can't be redirected directly,
11648 # and sets the high bit in the cache file unless we assign to the vars.
11649 (
11650 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11651 eval ac_val=\$$ac_var
11652 case $ac_val in #(
11653 *${as_nl}*)
11654 case $ac_var in #(
11655 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11656 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11657 esac
11658 case $ac_var in #(
11659 _ | IFS | as_nl) ;; #(
11660 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11661 *) { eval $ac_var=; unset $ac_var;} ;;
11662 esac ;;
11663 esac
11664 done
11665
11666 (set) 2>&1 |
11667 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11668 *${as_nl}ac_space=\ *)
11669 # `set' does not quote correctly, so add quotes: double-quote
11670 # substitution turns \\\\ into \\, and sed turns \\ into \.
11671 sed -n \
11672 "s/'/'\\\\''/g;
11673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11674 ;; #(
11675 *)
11676 # `set' quotes correctly as required by POSIX, so do not add quotes.
11677 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11678 ;;
11679 esac |
11680 sort
11681 ) |
11682 sed '
11683 /^ac_cv_env_/b end
11684 t clear
11685 :clear
11686 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11687 t end
11688 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11689 :end' >>confcache
11690 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11691 if test -w "$cache_file"; then
11692 test "x$cache_file" != "x/dev/null" &&
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11694 $as_echo "$as_me: updating cache $cache_file" >&6;}
11695 cat confcache >$cache_file
11696 else
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11698 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11699 fi
11700 fi
11701 rm -f confcache
11702
11703 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11704 # Let make expand exec_prefix.
11705 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11706
11707 DEFS=-DHAVE_CONFIG_H
11708
11709 ac_libobjs=
11710 ac_ltlibobjs=
11711 U=
11712 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11713 # 1. Remove the extension, and $U if already installed.
11714 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11715 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11716 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11717 # will be set to the directory where LIBOBJS objects are built.
11718 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11719 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11720 done
11721 LIBOBJS=$ac_libobjs
11722
11723 LTLIBOBJS=$ac_ltlibobjs
11724
11725
11726 if test -n "$EXEEXT"; then
11727 am__EXEEXT_TRUE=
11728 am__EXEEXT_FALSE='#'
11729 else
11730 am__EXEEXT_TRUE='#'
11731 am__EXEEXT_FALSE=
11732 fi
11733
11734 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11735 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11737 fi
11738 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11739 as_fn_error $? "conditional \"AMDEP\" was never defined.
11740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11741 fi
11742 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11743 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11745 fi
11746 if test -z "${DIVSUFSORT64_TRUE}" && test -z "${DIVSUFSORT64_FALSE}"; then
11747 as_fn_error $? "conditional \"DIVSUFSORT64\" was never defined.
11748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11749 fi
11750
11751 : ${CONFIG_STATUS=./config.status}
11752 ac_write_fail=0
11753 ac_clean_files_save=$ac_clean_files
11754 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11756 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11757 as_write_fail=0
11758 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11759 #! $SHELL
11760 # Generated by $as_me.
11761 # Run this file to recreate the current configuration.
11762 # Compiler output produced by configure, useful for debugging
11763 # configure, is in config.log if it exists.
11764
11765 debug=false
11766 ac_cs_recheck=false
11767 ac_cs_silent=false
11768
11769 SHELL=\${CONFIG_SHELL-$SHELL}
11770 export SHELL
11771 _ASEOF
11772 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11773 ## -------------------- ##
11774 ## M4sh Initialization. ##
11775 ## -------------------- ##
11776
11777 # Be more Bourne compatible
11778 DUALCASE=1; export DUALCASE # for MKS sh
11779 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11780 emulate sh
11781 NULLCMD=:
11782 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11783 # is contrary to our usage. Disable this feature.
11784 alias -g '${1+"$@"}'='"$@"'
11785 setopt NO_GLOB_SUBST
11786 else
11787 case `(set -o) 2>/dev/null` in #(
11788 *posix*) :
11789 set -o posix ;; #(
11790 *) :
11791 ;;
11792 esac
11793 fi
11794
11795
11796 as_nl='
11797 '
11798 export as_nl
11799 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11800 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11801 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11802 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11803 # Prefer a ksh shell builtin over an external printf program on Solaris,
11804 # but without wasting forks for bash or zsh.
11805 if test -z "$BASH_VERSION$ZSH_VERSION" \
11806 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11807 as_echo='print -r --'
11808 as_echo_n='print -rn --'
11809 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11810 as_echo='printf %s\n'
11811 as_echo_n='printf %s'
11812 else
11813 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11814 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11815 as_echo_n='/usr/ucb/echo -n'
11816 else
11817 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11818 as_echo_n_body='eval
11819 arg=$1;
11820 case $arg in #(
11821 *"$as_nl"*)
11822 expr "X$arg" : "X\\(.*\\)$as_nl";
11823 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11824 esac;
11825 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11826 '
11827 export as_echo_n_body
11828 as_echo_n='sh -c $as_echo_n_body as_echo'
11829 fi
11830 export as_echo_body
11831 as_echo='sh -c $as_echo_body as_echo'
11832 fi
11833
11834 # The user is always right.
11835 if test "${PATH_SEPARATOR+set}" != set; then
11836 PATH_SEPARATOR=:
11837 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11838 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11839 PATH_SEPARATOR=';'
11840 }
11841 fi
11842
11843
11844 # IFS
11845 # We need space, tab and new line, in precisely that order. Quoting is
11846 # there to prevent editors from complaining about space-tab.
11847 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11848 # splitting by setting IFS to empty value.)
11849 IFS=" "" $as_nl"
11850
11851 # Find who we are. Look in the path if we contain no directory separator.
11852 case $0 in #((
11853 *[\\/]* ) as_myself=$0 ;;
11854 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855 for as_dir in $PATH
11856 do
11857 IFS=$as_save_IFS
11858 test -z "$as_dir" && as_dir=.
11859 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11860 done
11861 IFS=$as_save_IFS
11862
11863 ;;
11864 esac
11865 # We did not find ourselves, most probably we were run as `sh COMMAND'
11866 # in which case we are not to be found in the path.
11867 if test "x$as_myself" = x; then
11868 as_myself=$0
11869 fi
11870 if test ! -f "$as_myself"; then
11871 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11872 exit 1
11873 fi
11874
11875 # Unset variables that we do not need and which cause bugs (e.g. in
11876 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11877 # suppresses any "Segmentation fault" message there. '((' could
11878 # trigger a bug in pdksh 5.2.14.
11879 for as_var in BASH_ENV ENV MAIL MAILPATH
11880 do eval test x\${$as_var+set} = xset \
11881 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11882 done
11883 PS1='$ '
11884 PS2='> '
11885 PS4='+ '
11886
11887 # NLS nuisances.
11888 LC_ALL=C
11889 export LC_ALL
11890 LANGUAGE=C
11891 export LANGUAGE
11892
11893 # CDPATH.
11894 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11895
11896
11897 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11898 # ----------------------------------------
11899 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11900 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11901 # script with STATUS, using 1 if that was 0.
11902 as_fn_error ()
11903 {
11904 as_status=$1; test $as_status -eq 0 && as_status=1
11905 if test "$4"; then
11906 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11907 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11908 fi
11909 $as_echo "$as_me: error: $2" >&2
11910 as_fn_exit $as_status
11911 } # as_fn_error
11912
11913
11914 # as_fn_set_status STATUS
11915 # -----------------------
11916 # Set $? to STATUS, without forking.
11917 as_fn_set_status ()
11918 {
11919 return $1
11920 } # as_fn_set_status
11921
11922 # as_fn_exit STATUS
11923 # -----------------
11924 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11925 as_fn_exit ()
11926 {
11927 set +e
11928 as_fn_set_status $1
11929 exit $1
11930 } # as_fn_exit
11931
11932 # as_fn_unset VAR
11933 # ---------------
11934 # Portably unset VAR.
11935 as_fn_unset ()
11936 {
11937 { eval $1=; unset $1;}
11938 }
11939 as_unset=as_fn_unset
11940 # as_fn_append VAR VALUE
11941 # ----------------------
11942 # Append the text in VALUE to the end of the definition contained in VAR. Take
11943 # advantage of any shell optimizations that allow amortized linear growth over
11944 # repeated appends, instead of the typical quadratic growth present in naive
11945 # implementations.
11946 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11947 eval 'as_fn_append ()
11948 {
11949 eval $1+=\$2
11950 }'
11951 else
11952 as_fn_append ()
11953 {
11954 eval $1=\$$1\$2
11955 }
11956 fi # as_fn_append
11957
11958 # as_fn_arith ARG...
11959 # ------------------
11960 # Perform arithmetic evaluation on the ARGs, and store the result in the
11961 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11962 # must be portable across $(()) and expr.
11963 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11964 eval 'as_fn_arith ()
11965 {
11966 as_val=$(( $* ))
11967 }'
11968 else
11969 as_fn_arith ()
11970 {
11971 as_val=`expr "$@" || test $? -eq 1`
11972 }
11973 fi # as_fn_arith
11974
11975
11976 if expr a : '\(a\)' >/dev/null 2>&1 &&
11977 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11978 as_expr=expr
11979 else
11980 as_expr=false
11981 fi
11982
11983 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11984 as_basename=basename
11985 else
11986 as_basename=false
11987 fi
11988
11989 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11990 as_dirname=dirname
11991 else
11992 as_dirname=false
11993 fi
11994
11995 as_me=`$as_basename -- "$0" ||
11996 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11997 X"$0" : 'X\(//\)$' \| \
11998 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11999 $as_echo X/"$0" |
12000 sed '/^.*\/\([^/][^/]*\)\/*$/{
12001 s//\1/
12002 q
12003 }
12004 /^X\/\(\/\/\)$/{
12005 s//\1/
12006 q
12007 }
12008 /^X\/\(\/\).*/{
12009 s//\1/
12010 q
12011 }
12012 s/.*/./; q'`
12013
12014 # Avoid depending upon Character Ranges.
12015 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12016 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12017 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12018 as_cr_digits='0123456789'
12019 as_cr_alnum=$as_cr_Letters$as_cr_digits
12020
12021 ECHO_C= ECHO_N= ECHO_T=
12022 case `echo -n x` in #(((((
12023 -n*)
12024 case `echo 'xy\c'` in
12025 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12026 xy) ECHO_C='\c';;
12027 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12028 ECHO_T=' ';;
12029 esac;;
12030 *)
12031 ECHO_N='-n';;
12032 esac
12033
12034 rm -f conf$$ conf$$.exe conf$$.file
12035 if test -d conf$$.dir; then
12036 rm -f conf$$.dir/conf$$.file
12037 else
12038 rm -f conf$$.dir
12039 mkdir conf$$.dir 2>/dev/null
12040 fi
12041 if (echo >conf$$.file) 2>/dev/null; then
12042 if ln -s conf$$.file conf$$ 2>/dev/null; then
12043 as_ln_s='ln -s'
12044 # ... but there are two gotchas:
12045 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12046 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12047 # In both cases, we have to default to `cp -p'.
12048 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12049 as_ln_s='cp -p'
12050 elif ln conf$$.file conf$$ 2>/dev/null; then
12051 as_ln_s=ln
12052 else
12053 as_ln_s='cp -p'
12054 fi
12055 else
12056 as_ln_s='cp -p'
12057 fi
12058 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12059 rmdir conf$$.dir 2>/dev/null
12060
12061
12062 # as_fn_mkdir_p
12063 # -------------
12064 # Create "$as_dir" as a directory, including parents if necessary.
12065 as_fn_mkdir_p ()
12066 {
12067
12068 case $as_dir in #(
12069 -*) as_dir=./$as_dir;;
12070 esac
12071 test -d "$as_dir" || eval $as_mkdir_p || {
12072 as_dirs=
12073 while :; do
12074 case $as_dir in #(
12075 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12076 *) as_qdir=$as_dir;;
12077 esac
12078 as_dirs="'$as_qdir' $as_dirs"
12079 as_dir=`$as_dirname -- "$as_dir" ||
12080 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12081 X"$as_dir" : 'X\(//\)[^/]' \| \
12082 X"$as_dir" : 'X\(//\)$' \| \
12083 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12084 $as_echo X"$as_dir" |
12085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12086 s//\1/
12087 q
12088 }
12089 /^X\(\/\/\)[^/].*/{
12090 s//\1/
12091 q
12092 }
12093 /^X\(\/\/\)$/{
12094 s//\1/
12095 q
12096 }
12097 /^X\(\/\).*/{
12098 s//\1/
12099 q
12100 }
12101 s/.*/./; q'`
12102 test -d "$as_dir" && break
12103 done
12104 test -z "$as_dirs" || eval "mkdir $as_dirs"
12105 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12106
12107
12108 } # as_fn_mkdir_p
12109 if mkdir -p . 2>/dev/null; then
12110 as_mkdir_p='mkdir -p "$as_dir"'
12111 else
12112 test -d ./-p && rmdir ./-p
12113 as_mkdir_p=false
12114 fi
12115
12116 if test -x / >/dev/null 2>&1; then
12117 as_test_x='test -x'
12118 else
12119 if ls -dL / >/dev/null 2>&1; then
12120 as_ls_L_option=L
12121 else
12122 as_ls_L_option=
12123 fi
12124 as_test_x='
12125 eval sh -c '\''
12126 if test -d "$1"; then
12127 test -d "$1/.";
12128 else
12129 case $1 in #(
12130 -*)set "./$1";;
12131 esac;
12132 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12133 ???[sx]*):;;*)false;;esac;fi
12134 '\'' sh
12135 '
12136 fi
12137 as_executable_p=$as_test_x
12138
12139 # Sed expression to map a string onto a valid CPP name.
12140 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12141
12142 # Sed expression to map a string onto a valid variable name.
12143 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12144
12145
12146 exec 6>&1
12147 ## ----------------------------------- ##
12148 ## Main body of $CONFIG_STATUS script. ##
12149 ## ----------------------------------- ##
12150 _ASEOF
12151 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12152
12153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12154 # Save the log message, to keep $0 and so on meaningful, and to
12155 # report actual input values of CONFIG_FILES etc. instead of their
12156 # values after options handling.
12157 ac_log="
12158 This file was extended by libdivsufsort $as_me 2.0.1, which was
12159 generated by GNU Autoconf 2.67. Invocation command line was
12160
12161 CONFIG_FILES = $CONFIG_FILES
12162 CONFIG_HEADERS = $CONFIG_HEADERS
12163 CONFIG_LINKS = $CONFIG_LINKS
12164 CONFIG_COMMANDS = $CONFIG_COMMANDS
12165 $ $0 $@
12166
12167 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12168 "
12169
12170 _ACEOF
12171
12172 case $ac_config_files in *"
12173 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12174 esac
12175
12176 case $ac_config_headers in *"
12177 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12178 esac
12179
12180
12181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12182 # Files that config.status was made for.
12183 config_files="$ac_config_files"
12184 config_headers="$ac_config_headers"
12185 config_commands="$ac_config_commands"
12186
12187 _ACEOF
12188
12189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12190 ac_cs_usage="\
12191 \`$as_me' instantiates files and other configuration actions
12192 from templates according to the current configuration. Unless the files
12193 and actions are specified as TAGs, all are instantiated by default.
12194
12195 Usage: $0 [OPTION]... [TAG]...
12196
12197 -h, --help print this help, then exit
12198 -V, --version print version number and configuration settings, then exit
12199 --config print configuration, then exit
12200 -q, --quiet, --silent
12201 do not print progress messages
12202 -d, --debug don't remove temporary files
12203 --recheck update $as_me by reconfiguring in the same conditions
12204 --file=FILE[:TEMPLATE]
12205 instantiate the configuration file FILE
12206 --header=FILE[:TEMPLATE]
12207 instantiate the configuration header FILE
12208
12209 Configuration files:
12210 $config_files
12211
12212 Configuration headers:
12213 $config_headers
12214
12215 Configuration commands:
12216 $config_commands
12217
12218 Report bugs to <[email protected]>."
12219
12220 _ACEOF
12221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12222 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12223 ac_cs_version="\\
12224 libdivsufsort config.status 2.0.1
12225 configured by $0, generated by GNU Autoconf 2.67,
12226 with options \\"\$ac_cs_config\\"
12227
12228 Copyright (C) 2010 Free Software Foundation, Inc.
12229 This config.status script is free software; the Free Software Foundation
12230 gives unlimited permission to copy, distribute and modify it."
12231
12232 ac_pwd='$ac_pwd'
12233 srcdir='$srcdir'
12234 INSTALL='$INSTALL'
12235 MKDIR_P='$MKDIR_P'
12236 AWK='$AWK'
12237 test -n "\$AWK" || AWK=awk
12238 _ACEOF
12239
12240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12241 # The default lists apply if the user does not specify any file.
12242 ac_need_defaults=:
12243 while test $# != 0
12244 do
12245 case $1 in
12246 --*=?*)
12247 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12248 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12249 ac_shift=:
12250 ;;
12251 --*=)
12252 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12253 ac_optarg=
12254 ac_shift=:
12255 ;;
12256 *)
12257 ac_option=$1
12258 ac_optarg=$2
12259 ac_shift=shift
12260 ;;
12261 esac
12262
12263 case $ac_option in
12264 # Handling of the options.
12265 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12266 ac_cs_recheck=: ;;
12267 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12268 $as_echo "$ac_cs_version"; exit ;;
12269 --config | --confi | --conf | --con | --co | --c )
12270 $as_echo "$ac_cs_config"; exit ;;
12271 --debug | --debu | --deb | --de | --d | -d )
12272 debug=: ;;
12273 --file | --fil | --fi | --f )
12274 $ac_shift
12275 case $ac_optarg in
12276 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12277 '') as_fn_error $? "missing file argument" ;;
12278 esac
12279 as_fn_append CONFIG_FILES " '$ac_optarg'"
12280 ac_need_defaults=false;;
12281 --header | --heade | --head | --hea )
12282 $ac_shift
12283 case $ac_optarg in
12284 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12285 esac
12286 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12287 ac_need_defaults=false;;
12288 --he | --h)
12289 # Conflict between --help and --header
12290 as_fn_error $? "ambiguous option: \`$1'
12291 Try \`$0 --help' for more information.";;
12292 --help | --hel | -h )
12293 $as_echo "$ac_cs_usage"; exit ;;
12294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12295 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12296 ac_cs_silent=: ;;
12297
12298 # This is an error.
12299 -*) as_fn_error $? "unrecognized option: \`$1'
12300 Try \`$0 --help' for more information." ;;
12301
12302 *) as_fn_append ac_config_targets " $1"
12303 ac_need_defaults=false ;;
12304
12305 esac
12306 shift
12307 done
12308
12309 ac_configure_extra_args=
12310
12311 if $ac_cs_silent; then
12312 exec 6>/dev/null
12313 ac_configure_extra_args="$ac_configure_extra_args --silent"
12314 fi
12315
12316 _ACEOF
12317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12318 if \$ac_cs_recheck; then
12319 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12320 shift
12321 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12322 CONFIG_SHELL='$SHELL'
12323 export CONFIG_SHELL
12324 exec "\$@"
12325 fi
12326
12327 _ACEOF
12328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12329 exec 5>>config.log
12330 {
12331 echo
12332 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12333 ## Running $as_me. ##
12334 _ASBOX
12335 $as_echo "$ac_log"
12336 } >&5
12337
12338 _ACEOF
12339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12340 #
12341 # INIT-COMMANDS
12342 #
12343 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12344
12345
12346 # The HP-UX ksh and POSIX shell print the target directory to stdout
12347 # if CDPATH is set.
12348 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12349
12350 sed_quote_subst='$sed_quote_subst'
12351 double_quote_subst='$double_quote_subst'
12352 delay_variable_subst='$delay_variable_subst'
12353 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12354 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12355 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12356 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12357 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12358 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12359 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12360 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12361 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12362 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12363 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12364 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12365 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12366 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12367 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12368 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12369 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12370 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12371 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12372 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12373 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12374 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12375 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12376 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12377 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12378 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12379 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12380 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12381 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12382 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12383 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12384 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12385 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12386 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12387 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12388 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12389 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12390 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12391 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12392 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12393 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12394 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12395 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12396 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12397 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12398 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12399 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12400 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12401 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12402 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12403 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12404 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12405 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12406 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12407 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12408 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12409 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12410 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12411 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12412 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12413 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12414 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12415 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12416 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12417 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12418 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12419 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12420 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12421 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12422 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12423 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12424 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12425 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12426 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12427 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12428 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12429 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12430 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12431 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12432 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12433 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12434 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12435 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12436 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12437 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12438 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12439 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12440 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12441 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12442 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12443 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12444 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12445 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12446 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12447 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12448 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12449 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12450 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12451 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12452 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12453 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12454 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12455 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12456 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12457 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12458 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12459 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12460 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12461 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12462 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12463 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12464 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12465 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12466 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12467 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12468 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12469 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12470 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12471
12472 LTCC='$LTCC'
12473 LTCFLAGS='$LTCFLAGS'
12474 compiler='$compiler_DEFAULT'
12475
12476 # Quote evaled strings.
12477 for var in SED \
12478 GREP \
12479 EGREP \
12480 FGREP \
12481 LD \
12482 NM \
12483 LN_S \
12484 lt_SP2NL \
12485 lt_NL2SP \
12486 reload_flag \
12487 OBJDUMP \
12488 deplibs_check_method \
12489 file_magic_cmd \
12490 AR \
12491 AR_FLAGS \
12492 STRIP \
12493 RANLIB \
12494 CC \
12495 CFLAGS \
12496 compiler \
12497 lt_cv_sys_global_symbol_pipe \
12498 lt_cv_sys_global_symbol_to_cdecl \
12499 lt_cv_sys_global_symbol_to_c_name_address \
12500 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12501 SHELL \
12502 ECHO \
12503 lt_prog_compiler_no_builtin_flag \
12504 lt_prog_compiler_wl \
12505 lt_prog_compiler_pic \
12506 lt_prog_compiler_static \
12507 lt_cv_prog_compiler_c_o \
12508 need_locks \
12509 DSYMUTIL \
12510 NMEDIT \
12511 LIPO \
12512 OTOOL \
12513 OTOOL64 \
12514 shrext_cmds \
12515 export_dynamic_flag_spec \
12516 whole_archive_flag_spec \
12517 compiler_needs_object \
12518 with_gnu_ld \
12519 allow_undefined_flag \
12520 no_undefined_flag \
12521 hardcode_libdir_flag_spec \
12522 hardcode_libdir_flag_spec_ld \
12523 hardcode_libdir_separator \
12524 fix_srcfile_path \
12525 exclude_expsyms \
12526 include_expsyms \
12527 file_list_spec \
12528 variables_saved_for_relink \
12529 libname_spec \
12530 library_names_spec \
12531 soname_spec \
12532 finish_eval \
12533 old_striplib \
12534 striplib; do
12535 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12536 *[\\\\\\\`\\"\\\$]*)
12537 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12538 ;;
12539 *)
12540 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12541 ;;
12542 esac
12543 done
12544
12545 # Double-quote double-evaled strings.
12546 for var in reload_cmds \
12547 old_postinstall_cmds \
12548 old_postuninstall_cmds \
12549 old_archive_cmds \
12550 extract_expsyms_cmds \
12551 old_archive_from_new_cmds \
12552 old_archive_from_expsyms_cmds \
12553 archive_cmds \
12554 archive_expsym_cmds \
12555 module_cmds \
12556 module_expsym_cmds \
12557 export_symbols_cmds \
12558 prelink_cmds \
12559 postinstall_cmds \
12560 postuninstall_cmds \
12561 finish_cmds \
12562 sys_lib_search_path_spec \
12563 sys_lib_dlsearch_path_spec; do
12564 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12565 *[\\\\\\\`\\"\\\$]*)
12566 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12567 ;;
12568 *)
12569 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12570 ;;
12571 esac
12572 done
12573
12574 # Fix-up fallback echo if it was mangled by the above quoting rules.
12575 case \$lt_ECHO in
12576 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12577 ;;
12578 esac
12579
12580 ac_aux_dir='$ac_aux_dir'
12581 xsi_shell='$xsi_shell'
12582 lt_shell_append='$lt_shell_append'
12583
12584 # See if we are running on zsh, and set the options which allow our
12585 # commands through without removal of \ escapes INIT.
12586 if test -n "\${ZSH_VERSION+set}" ; then
12587 setopt NO_GLOB_SUBST
12588 fi
12589
12590
12591 PACKAGE='$PACKAGE'
12592 VERSION='$VERSION'
12593 TIMESTAMP='$TIMESTAMP'
12594 RM='$RM'
12595 ofile='$ofile'
12596
12597
12598
12599
12600 _ACEOF
12601
12602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12603
12604 # Handling of arguments.
12605 for ac_config_target in $ac_config_targets
12606 do
12607 case $ac_config_target in
12608 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
12609 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12610 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12611 "include/divsufsort64.h") CONFIG_FILES="$CONFIG_FILES include/divsufsort64.h:include/divsufsort64.h.in" ;;
12612 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12613 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12614 "include/divsufsort.h") CONFIG_FILES="$CONFIG_FILES include/divsufsort.h:include/divsufsort.h.cmake" ;;
12615 "include/lfs.h") CONFIG_FILES="$CONFIG_FILES include/lfs.h:include/lfs.h.cmake" ;;
12616 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12617 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
12618
12619 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
12620 esac
12621 done
12622
12623
12624 # If the user did not use the arguments to specify the items to instantiate,
12625 # then the envvar interface is used. Set only those that are not.
12626 # We use the long form for the default assignment because of an extremely
12627 # bizarre bug on SunOS 4.1.3.
12628 if $ac_need_defaults; then
12629 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12630 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12631 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12632 fi
12633
12634 # Have a temporary directory for convenience. Make it in the build tree
12635 # simply because there is no reason against having it here, and in addition,
12636 # creating and moving files from /tmp can sometimes cause problems.
12637 # Hook for its removal unless debugging.
12638 # Note that there is a small window in which the directory will not be cleaned:
12639 # after its creation but before its name has been assigned to `$tmp'.
12640 $debug ||
12641 {
12642 tmp=
12643 trap 'exit_status=$?
12644 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12645 ' 0
12646 trap 'as_fn_exit 1' 1 2 13 15
12647 }
12648 # Create a (secure) tmp directory for tmp files.
12649
12650 {
12651 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12652 test -n "$tmp" && test -d "$tmp"
12653 } ||
12654 {
12655 tmp=./conf$$-$RANDOM
12656 (umask 077 && mkdir "$tmp")
12657 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12658
12659 # Set up the scripts for CONFIG_FILES section.
12660 # No need to generate them if there are no CONFIG_FILES.
12661 # This happens for instance with `./config.status config.h'.
12662 if test -n "$CONFIG_FILES"; then
12663
12664
12665 ac_cr=`echo X | tr X '\015'`
12666 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12667 # But we know of no other shell where ac_cr would be empty at this
12668 # point, so we can use a bashism as a fallback.
12669 if test "x$ac_cr" = x; then
12670 eval ac_cr=\$\'\\r\'
12671 fi
12672 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12673 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12674 ac_cs_awk_cr='\\r'
12675 else
12676 ac_cs_awk_cr=$ac_cr
12677 fi
12678
12679 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12680 _ACEOF
12681
12682
12683 {
12684 echo "cat >conf$$subs.awk <<_ACEOF" &&
12685 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12686 echo "_ACEOF"
12687 } >conf$$subs.sh ||
12688 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12689 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12690 ac_delim='%!_!# '
12691 for ac_last_try in false false false false false :; do
12692 . ./conf$$subs.sh ||
12693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12694
12695 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12696 if test $ac_delim_n = $ac_delim_num; then
12697 break
12698 elif $ac_last_try; then
12699 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12700 else
12701 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12702 fi
12703 done
12704 rm -f conf$$subs.sh
12705
12706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12707 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12708 _ACEOF
12709 sed -n '
12710 h
12711 s/^/S["/; s/!.*/"]=/
12712 p
12713 g
12714 s/^[^!]*!//
12715 :repl
12716 t repl
12717 s/'"$ac_delim"'$//
12718 t delim
12719 :nl
12720 h
12721 s/\(.\{148\}\)..*/\1/
12722 t more1
12723 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12724 p
12725 n
12726 b repl
12727 :more1
12728 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12729 p
12730 g
12731 s/.\{148\}//
12732 t nl
12733 :delim
12734 h
12735 s/\(.\{148\}\)..*/\1/
12736 t more2
12737 s/["\\]/\\&/g; s/^/"/; s/$/"/
12738 p
12739 b
12740 :more2
12741 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12742 p
12743 g
12744 s/.\{148\}//
12745 t delim
12746 ' <conf$$subs.awk | sed '
12747 /^[^""]/{
12748 N
12749 s/\n//
12750 }
12751 ' >>$CONFIG_STATUS || ac_write_fail=1
12752 rm -f conf$$subs.awk
12753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12754 _ACAWK
12755 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12756 for (key in S) S_is_set[key] = 1
12757 FS = ""
12758
12759 }
12760 {
12761 line = $ 0
12762 nfields = split(line, field, "@")
12763 substed = 0
12764 len = length(field[1])
12765 for (i = 2; i < nfields; i++) {
12766 key = field[i]
12767 keylen = length(key)
12768 if (S_is_set[key]) {
12769 value = S[key]
12770 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12771 len += length(value) + length(field[++i])
12772 substed = 1
12773 } else
12774 len += 1 + keylen
12775 }
12776
12777 print line
12778 }
12779
12780 _ACAWK
12781 _ACEOF
12782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12783 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12784 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12785 else
12786 cat
12787 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12788 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12789 _ACEOF
12790
12791 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12792 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12793 # trailing colons and then remove the whole line if VPATH becomes empty
12794 # (actually we leave an empty line to preserve line numbers).
12795 if test "x$srcdir" = x.; then
12796 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12797 h
12798 s///
12799 s/^/:/
12800 s/[ ]*$/:/
12801 s/:\$(srcdir):/:/g
12802 s/:\${srcdir}:/:/g
12803 s/:@srcdir@:/:/g
12804 s/^:*//
12805 s/:*$//
12806 x
12807 s/\(=[ ]*\).*/\1/
12808 G
12809 s/\n//
12810 s/^[^=]*=[ ]*$//
12811 }'
12812 fi
12813
12814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12815 fi # test -n "$CONFIG_FILES"
12816
12817 # Set up the scripts for CONFIG_HEADERS section.
12818 # No need to generate them if there are no CONFIG_HEADERS.
12819 # This happens for instance with `./config.status Makefile'.
12820 if test -n "$CONFIG_HEADERS"; then
12821 cat >"$tmp/defines.awk" <<\_ACAWK ||
12822 BEGIN {
12823 _ACEOF
12824
12825 # Transform confdefs.h into an awk script `defines.awk', embedded as
12826 # here-document in config.status, that substitutes the proper values into
12827 # config.h.in to produce config.h.
12828
12829 # Create a delimiter string that does not exist in confdefs.h, to ease
12830 # handling of long lines.
12831 ac_delim='%!_!# '
12832 for ac_last_try in false false :; do
12833 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12834 if test -z "$ac_t"; then
12835 break
12836 elif $ac_last_try; then
12837 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12838 else
12839 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12840 fi
12841 done
12842
12843 # For the awk script, D is an array of macro values keyed by name,
12844 # likewise P contains macro parameters if any. Preserve backslash
12845 # newline sequences.
12846
12847 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12848 sed -n '
12849 s/.\{148\}/&'"$ac_delim"'/g
12850 t rset
12851 :rset
12852 s/^[ ]*#[ ]*define[ ][ ]*/ /
12853 t def
12854 d
12855 :def
12856 s/\\$//
12857 t bsnl
12858 s/["\\]/\\&/g
12859 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12860 D["\1"]=" \3"/p
12861 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12862 d
12863 :bsnl
12864 s/["\\]/\\&/g
12865 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12866 D["\1"]=" \3\\\\\\n"\\/p
12867 t cont
12868 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12869 t cont
12870 d
12871 :cont
12872 n
12873 s/.\{148\}/&'"$ac_delim"'/g
12874 t clear
12875 :clear
12876 s/\\$//
12877 t bsnlc
12878 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12879 d
12880 :bsnlc
12881 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12882 b cont
12883 ' <confdefs.h | sed '
12884 s/'"$ac_delim"'/"\\\
12885 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12886
12887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12888 for (key in D) D_is_set[key] = 1
12889 FS = ""
12890 }
12891 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12892 line = \$ 0
12893 split(line, arg, " ")
12894 if (arg[1] == "#") {
12895 defundef = arg[2]
12896 mac1 = arg[3]
12897 } else {
12898 defundef = substr(arg[1], 2)
12899 mac1 = arg[2]
12900 }
12901 split(mac1, mac2, "(") #)
12902 macro = mac2[1]
12903 prefix = substr(line, 1, index(line, defundef) - 1)
12904 if (D_is_set[macro]) {
12905 # Preserve the white space surrounding the "#".
12906 print prefix "define", macro P[macro] D[macro]
12907 next
12908 } else {
12909 # Replace #undef with comments. This is necessary, for example,
12910 # in the case of _POSIX_SOURCE, which is predefined and required
12911 # on some systems where configure will not decide to define it.
12912 if (defundef == "undef") {
12913 print "/*", prefix defundef, macro, "*/"
12914 next
12915 }
12916 }
12917 }
12918 { print }
12919 _ACAWK
12920 _ACEOF
12921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12922 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12923 fi # test -n "$CONFIG_HEADERS"
12924
12925
12926 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12927 shift
12928 for ac_tag
12929 do
12930 case $ac_tag in
12931 :[FHLC]) ac_mode=$ac_tag; continue;;
12932 esac
12933 case $ac_mode$ac_tag in
12934 :[FHL]*:*);;
12935 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12936 :[FH]-) ac_tag=-:-;;
12937 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12938 esac
12939 ac_save_IFS=$IFS
12940 IFS=:
12941 set x $ac_tag
12942 IFS=$ac_save_IFS
12943 shift
12944 ac_file=$1
12945 shift
12946
12947 case $ac_mode in
12948 :L) ac_source=$1;;
12949 :[FH])
12950 ac_file_inputs=
12951 for ac_f
12952 do
12953 case $ac_f in
12954 -) ac_f="$tmp/stdin";;
12955 *) # Look for the file first in the build tree, then in the source tree
12956 # (if the path is not absolute). The absolute path cannot be DOS-style,
12957 # because $ac_f cannot contain `:'.
12958 test -f "$ac_f" ||
12959 case $ac_f in
12960 [\\/$]*) false;;
12961 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12962 esac ||
12963 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12964 esac
12965 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12966 as_fn_append ac_file_inputs " '$ac_f'"
12967 done
12968
12969 # Let's still pretend it is `configure' which instantiates (i.e., don't
12970 # use $as_me), people would be surprised to read:
12971 # /* config.h. Generated by config.status. */
12972 configure_input='Generated from '`
12973 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12974 `' by configure.'
12975 if test x"$ac_file" != x-; then
12976 configure_input="$ac_file. $configure_input"
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12978 $as_echo "$as_me: creating $ac_file" >&6;}
12979 fi
12980 # Neutralize special characters interpreted by sed in replacement strings.
12981 case $configure_input in #(
12982 *\&* | *\|* | *\\* )
12983 ac_sed_conf_input=`$as_echo "$configure_input" |
12984 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12985 *) ac_sed_conf_input=$configure_input;;
12986 esac
12987
12988 case $ac_tag in
12989 *:-:* | *:-) cat >"$tmp/stdin" \
12990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12991 esac
12992 ;;
12993 esac
12994
12995 ac_dir=`$as_dirname -- "$ac_file" ||
12996 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12997 X"$ac_file" : 'X\(//\)[^/]' \| \
12998 X"$ac_file" : 'X\(//\)$' \| \
12999 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13000 $as_echo X"$ac_file" |
13001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13002 s//\1/
13003 q
13004 }
13005 /^X\(\/\/\)[^/].*/{
13006 s//\1/
13007 q
13008 }
13009 /^X\(\/\/\)$/{
13010 s//\1/
13011 q
13012 }
13013 /^X\(\/\).*/{
13014 s//\1/
13015 q
13016 }
13017 s/.*/./; q'`
13018 as_dir="$ac_dir"; as_fn_mkdir_p
13019 ac_builddir=.
13020
13021 case "$ac_dir" in
13022 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13023 *)
13024 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13025 # A ".." for each directory in $ac_dir_suffix.
13026 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13027 case $ac_top_builddir_sub in
13028 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13029 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13030 esac ;;
13031 esac
13032 ac_abs_top_builddir=$ac_pwd
13033 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13034 # for backward compatibility:
13035 ac_top_builddir=$ac_top_build_prefix
13036
13037 case $srcdir in
13038 .) # We are building in place.
13039 ac_srcdir=.
13040 ac_top_srcdir=$ac_top_builddir_sub
13041 ac_abs_top_srcdir=$ac_pwd ;;
13042 [\\/]* | ?:[\\/]* ) # Absolute name.
13043 ac_srcdir=$srcdir$ac_dir_suffix;
13044 ac_top_srcdir=$srcdir
13045 ac_abs_top_srcdir=$srcdir ;;
13046 *) # Relative name.
13047 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13048 ac_top_srcdir=$ac_top_build_prefix$srcdir
13049 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13050 esac
13051 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13052
13053
13054 case $ac_mode in
13055 :F)
13056 #
13057 # CONFIG_FILE
13058 #
13059
13060 case $INSTALL in
13061 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13062 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13063 esac
13064 ac_MKDIR_P=$MKDIR_P
13065 case $MKDIR_P in
13066 [\\/$]* | ?:[\\/]* ) ;;
13067 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13068 esac
13069 _ACEOF
13070
13071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13072 # If the template does not know about datarootdir, expand it.
13073 # FIXME: This hack should be removed a few years after 2.60.
13074 ac_datarootdir_hack=; ac_datarootdir_seen=
13075 ac_sed_dataroot='
13076 /datarootdir/ {
13077 p
13078 q
13079 }
13080 /@datadir@/p
13081 /@docdir@/p
13082 /@infodir@/p
13083 /@localedir@/p
13084 /@mandir@/p'
13085 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13086 *datarootdir*) ac_datarootdir_seen=yes;;
13087 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13089 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13090 _ACEOF
13091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13092 ac_datarootdir_hack='
13093 s&@datadir@&$datadir&g
13094 s&@docdir@&$docdir&g
13095 s&@infodir@&$infodir&g
13096 s&@localedir@&$localedir&g
13097 s&@mandir@&$mandir&g
13098 s&\\\${datarootdir}&$datarootdir&g' ;;
13099 esac
13100 _ACEOF
13101
13102 # Neutralize VPATH when `$srcdir' = `.'.
13103 # Shell code in configure.ac might set extrasub.
13104 # FIXME: do we really want to maintain this feature?
13105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13106 ac_sed_extra="$ac_vpsub
13107 $extrasub
13108 _ACEOF
13109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13110 :t
13111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13112 s|@configure_input@|$ac_sed_conf_input|;t t
13113 s&@top_builddir@&$ac_top_builddir_sub&;t t
13114 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13115 s&@srcdir@&$ac_srcdir&;t t
13116 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13117 s&@top_srcdir@&$ac_top_srcdir&;t t
13118 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13119 s&@builddir@&$ac_builddir&;t t
13120 s&@abs_builddir@&$ac_abs_builddir&;t t
13121 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13122 s&@INSTALL@&$ac_INSTALL&;t t
13123 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13124 $ac_datarootdir_hack
13125 "
13126 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13128
13129 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13130 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13131 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13133 which seems to be undefined. Please make sure it is defined" >&5
13134 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13135 which seems to be undefined. Please make sure it is defined" >&2;}
13136
13137 rm -f "$tmp/stdin"
13138 case $ac_file in
13139 -) cat "$tmp/out" && rm -f "$tmp/out";;
13140 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13141 esac \
13142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13143 ;;
13144 :H)
13145 #
13146 # CONFIG_HEADER
13147 #
13148 if test x"$ac_file" != x-; then
13149 {
13150 $as_echo "/* $configure_input */" \
13151 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13152 } >"$tmp/config.h" \
13153 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13154 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13156 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13157 else
13158 rm -f "$ac_file"
13159 mv "$tmp/config.h" "$ac_file" \
13160 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13161 fi
13162 else
13163 $as_echo "/* $configure_input */" \
13164 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13165 || as_fn_error $? "could not create -" "$LINENO" 5
13166 fi
13167 # Compute "$ac_file"'s index in $config_headers.
13168 _am_arg="$ac_file"
13169 _am_stamp_count=1
13170 for _am_header in $config_headers :; do
13171 case $_am_header in
13172 $_am_arg | $_am_arg:* )
13173 break ;;
13174 * )
13175 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13176 esac
13177 done
13178 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13179 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13180 X"$_am_arg" : 'X\(//\)[^/]' \| \
13181 X"$_am_arg" : 'X\(//\)$' \| \
13182 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13183 $as_echo X"$_am_arg" |
13184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13185 s//\1/
13186 q
13187 }
13188 /^X\(\/\/\)[^/].*/{
13189 s//\1/
13190 q
13191 }
13192 /^X\(\/\/\)$/{
13193 s//\1/
13194 q
13195 }
13196 /^X\(\/\).*/{
13197 s//\1/
13198 q
13199 }
13200 s/.*/./; q'`/stamp-h$_am_stamp_count
13201 ;;
13202
13203 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13204 $as_echo "$as_me: executing $ac_file commands" >&6;}
13205 ;;
13206 esac
13207
13208
13209 case $ac_file$ac_mode in
13210 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13211 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13212 # are listed without --file. Let's play safe and only enable the eval
13213 # if we detect the quoting.
13214 case $CONFIG_FILES in
13215 *\'*) eval set x "$CONFIG_FILES" ;;
13216 *) set x $CONFIG_FILES ;;
13217 esac
13218 shift
13219 for mf
13220 do
13221 # Strip MF so we end up with the name of the file.
13222 mf=`echo "$mf" | sed -e 's/:.*$//'`
13223 # Check whether this is an Automake generated Makefile or not.
13224 # We used to match only the files named `Makefile.in', but
13225 # some people rename them; so instead we look at the file content.
13226 # Grep'ing the first line is not enough: some people post-process
13227 # each Makefile.in and add a new line on top of each file to say so.
13228 # Grep'ing the whole file is not good either: AIX grep has a line
13229 # limit of 2048, but all sed's we know have understand at least 4000.
13230 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13231 dirpart=`$as_dirname -- "$mf" ||
13232 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13233 X"$mf" : 'X\(//\)[^/]' \| \
13234 X"$mf" : 'X\(//\)$' \| \
13235 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13236 $as_echo X"$mf" |
13237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13238 s//\1/
13239 q
13240 }
13241 /^X\(\/\/\)[^/].*/{
13242 s//\1/
13243 q
13244 }
13245 /^X\(\/\/\)$/{
13246 s//\1/
13247 q
13248 }
13249 /^X\(\/\).*/{
13250 s//\1/
13251 q
13252 }
13253 s/.*/./; q'`
13254 else
13255 continue
13256 fi
13257 # Extract the definition of DEPDIR, am__include, and am__quote
13258 # from the Makefile without running `make'.
13259 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13260 test -z "$DEPDIR" && continue
13261 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13262 test -z "am__include" && continue
13263 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13264 # When using ansi2knr, U may be empty or an underscore; expand it
13265 U=`sed -n 's/^U = //p' < "$mf"`
13266 # Find all dependency output files, they are included files with
13267 # $(DEPDIR) in their names. We invoke sed twice because it is the
13268 # simplest approach to changing $(DEPDIR) to its actual value in the
13269 # expansion.
13270 for file in `sed -n "
13271 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13272 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13273 # Make sure the directory exists.
13274 test -f "$dirpart/$file" && continue
13275 fdir=`$as_dirname -- "$file" ||
13276 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13277 X"$file" : 'X\(//\)[^/]' \| \
13278 X"$file" : 'X\(//\)$' \| \
13279 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13280 $as_echo X"$file" |
13281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13282 s//\1/
13283 q
13284 }
13285 /^X\(\/\/\)[^/].*/{
13286 s//\1/
13287 q
13288 }
13289 /^X\(\/\/\)$/{
13290 s//\1/
13291 q
13292 }
13293 /^X\(\/\).*/{
13294 s//\1/
13295 q
13296 }
13297 s/.*/./; q'`
13298 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13299 # echo "creating $dirpart/$file"
13300 echo '# dummy' > "$dirpart/$file"
13301 done
13302 done
13303 }
13304 ;;
13305 "libtool":C)
13306
13307 # See if we are running on zsh, and set the options which allow our
13308 # commands through without removal of \ escapes.
13309 if test -n "${ZSH_VERSION+set}" ; then
13310 setopt NO_GLOB_SUBST
13311 fi
13312
13313 cfgfile="${ofile}T"
13314 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13315 $RM "$cfgfile"
13316
13317 cat <<_LT_EOF >> "$cfgfile"
13318 #! $SHELL
13319
13320 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13321 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13322 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13323 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13324 #
13325 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13326 # 2006, 2007, 2008 Free Software Foundation, Inc.
13327 # Written by Gordon Matzigkeit, 1996
13328 #
13329 # This file is part of GNU Libtool.
13330 #
13331 # GNU Libtool is free software; you can redistribute it and/or
13332 # modify it under the terms of the GNU General Public License as
13333 # published by the Free Software Foundation; either version 2 of
13334 # the License, or (at your option) any later version.
13335 #
13336 # As a special exception to the GNU General Public License,
13337 # if you distribute this file as part of a program or library that
13338 # is built using GNU Libtool, you may include this file under the
13339 # same distribution terms that you use for the rest of that program.
13340 #
13341 # GNU Libtool is distributed in the hope that it will be useful,
13342 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13343 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13344 # GNU General Public License for more details.
13345 #
13346 # You should have received a copy of the GNU General Public License
13347 # along with GNU Libtool; see the file COPYING. If not, a copy
13348 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13349 # obtained by writing to the Free Software Foundation, Inc.,
13350 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13351
13352
13353 # The names of the tagged configurations supported by this script.
13354 available_tags=""
13355
13356 # ### BEGIN LIBTOOL CONFIG
13357
13358 # Whether or not to build shared libraries.
13359 build_libtool_libs=$enable_shared
13360
13361 # Which release of libtool.m4 was used?
13362 macro_version=$macro_version
13363 macro_revision=$macro_revision
13364
13365 # Whether or not to build static libraries.
13366 build_old_libs=$enable_static
13367
13368 # What type of objects to build.
13369 pic_mode=$pic_mode
13370
13371 # Whether or not to optimize for fast installation.
13372 fast_install=$enable_fast_install
13373
13374 # The host system.
13375 host_alias=$host_alias
13376 host=$host
13377 host_os=$host_os
13378
13379 # The build system.
13380 build_alias=$build_alias
13381 build=$build
13382 build_os=$build_os
13383
13384 # A sed program that does not truncate output.
13385 SED=$lt_SED
13386
13387 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13388 Xsed="\$SED -e 1s/^X//"
13389
13390 # A grep program that handles long lines.
13391 GREP=$lt_GREP
13392
13393 # An ERE matcher.
13394 EGREP=$lt_EGREP
13395
13396 # A literal string matcher.
13397 FGREP=$lt_FGREP
13398
13399 # A BSD- or MS-compatible name lister.
13400 NM=$lt_NM
13401
13402 # Whether we need soft or hard links.
13403 LN_S=$lt_LN_S
13404
13405 # What is the maximum length of a command?
13406 max_cmd_len=$max_cmd_len
13407
13408 # Object file suffix (normally "o").
13409 objext=$ac_objext
13410
13411 # Executable file suffix (normally "").
13412 exeext=$exeext
13413
13414 # whether the shell understands "unset".
13415 lt_unset=$lt_unset
13416
13417 # turn spaces into newlines.
13418 SP2NL=$lt_lt_SP2NL
13419
13420 # turn newlines into spaces.
13421 NL2SP=$lt_lt_NL2SP
13422
13423 # How to create reloadable object files.
13424 reload_flag=$lt_reload_flag
13425 reload_cmds=$lt_reload_cmds
13426
13427 # An object symbol dumper.
13428 OBJDUMP=$lt_OBJDUMP
13429
13430 # Method to check whether dependent libraries are shared objects.
13431 deplibs_check_method=$lt_deplibs_check_method
13432
13433 # Command to use when deplibs_check_method == "file_magic".
13434 file_magic_cmd=$lt_file_magic_cmd
13435
13436 # The archiver.
13437 AR=$lt_AR
13438 AR_FLAGS=$lt_AR_FLAGS
13439
13440 # A symbol stripping program.
13441 STRIP=$lt_STRIP
13442
13443 # Commands used to install an old-style archive.
13444 RANLIB=$lt_RANLIB
13445 old_postinstall_cmds=$lt_old_postinstall_cmds
13446 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13447
13448 # A C compiler.
13449 LTCC=$lt_CC
13450
13451 # LTCC compiler flags.
13452 LTCFLAGS=$lt_CFLAGS
13453
13454 # Take the output of nm and produce a listing of raw symbols and C names.
13455 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13456
13457 # Transform the output of nm in a proper C declaration.
13458 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13459
13460 # Transform the output of nm in a C name address pair.
13461 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13462
13463 # Transform the output of nm in a C name address pair when lib prefix is needed.
13464 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13465
13466 # The name of the directory that contains temporary libtool files.
13467 objdir=$objdir
13468
13469 # Shell to use when invoking shell scripts.
13470 SHELL=$lt_SHELL
13471
13472 # An echo program that does not interpret backslashes.
13473 ECHO=$lt_ECHO
13474
13475 # Used to examine libraries when file_magic_cmd begins with "file".
13476 MAGIC_CMD=$MAGIC_CMD
13477
13478 # Must we lock files when doing compilation?
13479 need_locks=$lt_need_locks
13480
13481 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13482 DSYMUTIL=$lt_DSYMUTIL
13483
13484 # Tool to change global to local symbols on Mac OS X.
13485 NMEDIT=$lt_NMEDIT
13486
13487 # Tool to manipulate fat objects and archives on Mac OS X.
13488 LIPO=$lt_LIPO
13489
13490 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13491 OTOOL=$lt_OTOOL
13492
13493 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13494 OTOOL64=$lt_OTOOL64
13495
13496 # Old archive suffix (normally "a").
13497 libext=$libext
13498
13499 # Shared library suffix (normally ".so").
13500 shrext_cmds=$lt_shrext_cmds
13501
13502 # The commands to extract the exported symbol list from a shared archive.
13503 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13504
13505 # Variables whose values should be saved in libtool wrapper scripts and
13506 # restored at link time.
13507 variables_saved_for_relink=$lt_variables_saved_for_relink
13508
13509 # Do we need the "lib" prefix for modules?
13510 need_lib_prefix=$need_lib_prefix
13511
13512 # Do we need a version for libraries?
13513 need_version=$need_version
13514
13515 # Library versioning type.
13516 version_type=$version_type
13517
13518 # Shared library runtime path variable.
13519 runpath_var=$runpath_var
13520
13521 # Shared library path variable.
13522 shlibpath_var=$shlibpath_var
13523
13524 # Is shlibpath searched before the hard-coded library search path?
13525 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13526
13527 # Format of library name prefix.
13528 libname_spec=$lt_libname_spec
13529
13530 # List of archive names. First name is the real one, the rest are links.
13531 # The last name is the one that the linker finds with -lNAME
13532 library_names_spec=$lt_library_names_spec
13533
13534 # The coded name of the library, if different from the real name.
13535 soname_spec=$lt_soname_spec
13536
13537 # Command to use after installation of a shared archive.
13538 postinstall_cmds=$lt_postinstall_cmds
13539
13540 # Command to use after uninstallation of a shared archive.
13541 postuninstall_cmds=$lt_postuninstall_cmds
13542
13543 # Commands used to finish a libtool library installation in a directory.
13544 finish_cmds=$lt_finish_cmds
13545
13546 # As "finish_cmds", except a single script fragment to be evaled but
13547 # not shown.
13548 finish_eval=$lt_finish_eval
13549
13550 # Whether we should hardcode library paths into libraries.
13551 hardcode_into_libs=$hardcode_into_libs
13552
13553 # Compile-time system search path for libraries.
13554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13555
13556 # Run-time system search path for libraries.
13557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13558
13559 # Whether dlopen is supported.
13560 dlopen_support=$enable_dlopen
13561
13562 # Whether dlopen of programs is supported.
13563 dlopen_self=$enable_dlopen_self
13564
13565 # Whether dlopen of statically linked programs is supported.
13566 dlopen_self_static=$enable_dlopen_self_static
13567
13568 # Commands to strip libraries.
13569 old_striplib=$lt_old_striplib
13570 striplib=$lt_striplib
13571
13572
13573 # The linker used to build libraries.
13574 LD=$lt_LD
13575
13576 # Commands used to build an old-style archive.
13577 old_archive_cmds=$lt_old_archive_cmds
13578
13579 # A language specific compiler.
13580 CC=$lt_compiler
13581
13582 # Is the compiler the GNU compiler?
13583 with_gcc=$GCC
13584
13585 # Compiler flag to turn off builtin functions.
13586 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13587
13588 # How to pass a linker flag through the compiler.
13589 wl=$lt_lt_prog_compiler_wl
13590
13591 # Additional compiler flags for building library objects.
13592 pic_flag=$lt_lt_prog_compiler_pic
13593
13594 # Compiler flag to prevent dynamic linking.
13595 link_static_flag=$lt_lt_prog_compiler_static
13596
13597 # Does compiler simultaneously support -c and -o options?
13598 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13599
13600 # Whether or not to add -lc for building shared libraries.
13601 build_libtool_need_lc=$archive_cmds_need_lc
13602
13603 # Whether or not to disallow shared libs when runtime libs are static.
13604 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13605
13606 # Compiler flag to allow reflexive dlopens.
13607 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13608
13609 # Compiler flag to generate shared objects directly from archives.
13610 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13611
13612 # Whether the compiler copes with passing no objects directly.
13613 compiler_needs_object=$lt_compiler_needs_object
13614
13615 # Create an old-style archive from a shared archive.
13616 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13617
13618 # Create a temporary old-style archive to link instead of a shared archive.
13619 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13620
13621 # Commands used to build a shared archive.
13622 archive_cmds=$lt_archive_cmds
13623 archive_expsym_cmds=$lt_archive_expsym_cmds
13624
13625 # Commands used to build a loadable module if different from building
13626 # a shared archive.
13627 module_cmds=$lt_module_cmds
13628 module_expsym_cmds=$lt_module_expsym_cmds
13629
13630 # Whether we are building with GNU ld or not.
13631 with_gnu_ld=$lt_with_gnu_ld
13632
13633 # Flag that allows shared libraries with undefined symbols to be built.
13634 allow_undefined_flag=$lt_allow_undefined_flag
13635
13636 # Flag that enforces no undefined symbols.
13637 no_undefined_flag=$lt_no_undefined_flag
13638
13639 # Flag to hardcode \$libdir into a binary during linking.
13640 # This must work even if \$libdir does not exist
13641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13642
13643 # If ld is used when linking, flag to hardcode \$libdir into a binary
13644 # during linking. This must work even if \$libdir does not exist.
13645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13646
13647 # Whether we need a single "-rpath" flag with a separated argument.
13648 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13649
13650 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13651 # DIR into the resulting binary.
13652 hardcode_direct=$hardcode_direct
13653
13654 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13655 # DIR into the resulting binary and the resulting library dependency is
13656 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13657 # library is relocated.
13658 hardcode_direct_absolute=$hardcode_direct_absolute
13659
13660 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13661 # into the resulting binary.
13662 hardcode_minus_L=$hardcode_minus_L
13663
13664 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13665 # into the resulting binary.
13666 hardcode_shlibpath_var=$hardcode_shlibpath_var
13667
13668 # Set to "yes" if building a shared library automatically hardcodes DIR
13669 # into the library and all subsequent libraries and executables linked
13670 # against it.
13671 hardcode_automatic=$hardcode_automatic
13672
13673 # Set to yes if linker adds runtime paths of dependent libraries
13674 # to runtime path list.
13675 inherit_rpath=$inherit_rpath
13676
13677 # Whether libtool must link a program against all its dependency libraries.
13678 link_all_deplibs=$link_all_deplibs
13679
13680 # Fix the shell variable \$srcfile for the compiler.
13681 fix_srcfile_path=$lt_fix_srcfile_path
13682
13683 # Set to "yes" if exported symbols are required.
13684 always_export_symbols=$always_export_symbols
13685
13686 # The commands to list exported symbols.
13687 export_symbols_cmds=$lt_export_symbols_cmds
13688
13689 # Symbols that should not be listed in the preloaded symbols.
13690 exclude_expsyms=$lt_exclude_expsyms
13691
13692 # Symbols that must always be exported.
13693 include_expsyms=$lt_include_expsyms
13694
13695 # Commands necessary for linking programs (against libraries) with templates.
13696 prelink_cmds=$lt_prelink_cmds
13697
13698 # Specify filename containing input files.
13699 file_list_spec=$lt_file_list_spec
13700
13701 # How to hardcode a shared library path into an executable.
13702 hardcode_action=$hardcode_action
13703
13704 # ### END LIBTOOL CONFIG
13705
13706 _LT_EOF
13707
13708 case $host_os in
13709 aix3*)
13710 cat <<\_LT_EOF >> "$cfgfile"
13711 # AIX sometimes has problems with the GCC collect2 program. For some
13712 # reason, if we set the COLLECT_NAMES environment variable, the problems
13713 # vanish in a puff of smoke.
13714 if test "X${COLLECT_NAMES+set}" != Xset; then
13715 COLLECT_NAMES=
13716 export COLLECT_NAMES
13717 fi
13718 _LT_EOF
13719 ;;
13720 esac
13721
13722
13723 ltmain="$ac_aux_dir/ltmain.sh"
13724
13725
13726 # We use sed instead of cat because bash on DJGPP gets confused if
13727 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13728 # text mode, it properly converts lines to CR/LF. This bash problem
13729 # is reportedly fixed, but why not run on old versions too?
13730 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13731 || (rm -f "$cfgfile"; exit 1)
13732
13733 case $xsi_shell in
13734 yes)
13735 cat << \_LT_EOF >> "$cfgfile"
13736
13737 # func_dirname file append nondir_replacement
13738 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13739 # otherwise set result to NONDIR_REPLACEMENT.
13740 func_dirname ()
13741 {
13742 case ${1} in
13743 */*) func_dirname_result="${1%/*}${2}" ;;
13744 * ) func_dirname_result="${3}" ;;
13745 esac
13746 }
13747
13748 # func_basename file
13749 func_basename ()
13750 {
13751 func_basename_result="${1##*/}"
13752 }
13753
13754 # func_dirname_and_basename file append nondir_replacement
13755 # perform func_basename and func_dirname in a single function
13756 # call:
13757 # dirname: Compute the dirname of FILE. If nonempty,
13758 # add APPEND to the result, otherwise set result
13759 # to NONDIR_REPLACEMENT.
13760 # value returned in "$func_dirname_result"
13761 # basename: Compute filename of FILE.
13762 # value retuned in "$func_basename_result"
13763 # Implementation must be kept synchronized with func_dirname
13764 # and func_basename. For efficiency, we do not delegate to
13765 # those functions but instead duplicate the functionality here.
13766 func_dirname_and_basename ()
13767 {
13768 case ${1} in
13769 */*) func_dirname_result="${1%/*}${2}" ;;
13770 * ) func_dirname_result="${3}" ;;
13771 esac
13772 func_basename_result="${1##*/}"
13773 }
13774
13775 # func_stripname prefix suffix name
13776 # strip PREFIX and SUFFIX off of NAME.
13777 # PREFIX and SUFFIX must not contain globbing or regex special
13778 # characters, hashes, percent signs, but SUFFIX may contain a leading
13779 # dot (in which case that matches only a dot).
13780 func_stripname ()
13781 {
13782 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13783 # positional parameters, so assign one to ordinary parameter first.
13784 func_stripname_result=${3}
13785 func_stripname_result=${func_stripname_result#"${1}"}
13786 func_stripname_result=${func_stripname_result%"${2}"}
13787 }
13788
13789 # func_opt_split
13790 func_opt_split ()
13791 {
13792 func_opt_split_opt=${1%%=*}
13793 func_opt_split_arg=${1#*=}
13794 }
13795
13796 # func_lo2o object
13797 func_lo2o ()
13798 {
13799 case ${1} in
13800 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13801 *) func_lo2o_result=${1} ;;
13802 esac
13803 }
13804
13805 # func_xform libobj-or-source
13806 func_xform ()
13807 {
13808 func_xform_result=${1%.*}.lo
13809 }
13810
13811 # func_arith arithmetic-term...
13812 func_arith ()
13813 {
13814 func_arith_result=$(( $* ))
13815 }
13816
13817 # func_len string
13818 # STRING may not start with a hyphen.
13819 func_len ()
13820 {
13821 func_len_result=${#1}
13822 }
13823
13824 _LT_EOF
13825 ;;
13826 *) # Bourne compatible functions.
13827 cat << \_LT_EOF >> "$cfgfile"
13828
13829 # func_dirname file append nondir_replacement
13830 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13831 # otherwise set result to NONDIR_REPLACEMENT.
13832 func_dirname ()
13833 {
13834 # Extract subdirectory from the argument.
13835 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13836 if test "X$func_dirname_result" = "X${1}"; then
13837 func_dirname_result="${3}"
13838 else
13839 func_dirname_result="$func_dirname_result${2}"
13840 fi
13841 }
13842
13843 # func_basename file
13844 func_basename ()
13845 {
13846 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13847 }
13848
13849
13850 # func_stripname prefix suffix name
13851 # strip PREFIX and SUFFIX off of NAME.
13852 # PREFIX and SUFFIX must not contain globbing or regex special
13853 # characters, hashes, percent signs, but SUFFIX may contain a leading
13854 # dot (in which case that matches only a dot).
13855 # func_strip_suffix prefix name
13856 func_stripname ()
13857 {
13858 case ${2} in
13859 .*) func_stripname_result=`$ECHO "X${3}" \
13860 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13861 *) func_stripname_result=`$ECHO "X${3}" \
13862 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13863 esac
13864 }
13865
13866 # sed scripts:
13867 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13868 my_sed_long_arg='1s/^-[^=]*=//'
13869
13870 # func_opt_split
13871 func_opt_split ()
13872 {
13873 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13874 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13875 }
13876
13877 # func_lo2o object
13878 func_lo2o ()
13879 {
13880 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13881 }
13882
13883 # func_xform libobj-or-source
13884 func_xform ()
13885 {
13886 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13887 }
13888
13889 # func_arith arithmetic-term...
13890 func_arith ()
13891 {
13892 func_arith_result=`expr "$@"`
13893 }
13894
13895 # func_len string
13896 # STRING may not start with a hyphen.
13897 func_len ()
13898 {
13899 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13900 }
13901
13902 _LT_EOF
13903 esac
13904
13905 case $lt_shell_append in
13906 yes)
13907 cat << \_LT_EOF >> "$cfgfile"
13908
13909 # func_append var value
13910 # Append VALUE to the end of shell variable VAR.
13911 func_append ()
13912 {
13913 eval "$1+=\$2"
13914 }
13915 _LT_EOF
13916 ;;
13917 *)
13918 cat << \_LT_EOF >> "$cfgfile"
13919
13920 # func_append var value
13921 # Append VALUE to the end of shell variable VAR.
13922 func_append ()
13923 {
13924 eval "$1=\$$1\$2"
13925 }
13926
13927 _LT_EOF
13928 ;;
13929 esac
13930
13931
13932 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13933 || (rm -f "$cfgfile"; exit 1)
13934
13935 mv -f "$cfgfile" "$ofile" ||
13936 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13937 chmod +x "$ofile"
13938
13939 ;;
13940
13941 esac
13942 done # for ac_tag
13943
13944
13945 as_fn_exit 0
13946 _ACEOF
13947 ac_clean_files=$ac_clean_files_save
13948
13949 test $ac_write_fail = 0 ||
13950 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13951
13952
13953 # configure is writing to config.log, and then calls config.status.
13954 # config.status does its own redirection, appending to config.log.
13955 # Unfortunately, on DOS this fails, as config.log is still kept open
13956 # by configure, so config.status won't be able to write to it; its
13957 # output is simply discarded. So we exec the FD to /dev/null,
13958 # effectively closing config.log, so it can be properly (re)opened and
13959 # appended to by config.status. When coming back to configure, we
13960 # need to make the FD available again.
13961 if test "$no_create" != yes; then
13962 ac_cs_success=:
13963 ac_config_status_args=
13964 test "$silent" = yes &&
13965 ac_config_status_args="$ac_config_status_args --quiet"
13966 exec 5>/dev/null
13967 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13968 exec 5>>config.log
13969 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13970 # would make configure fail if this is the last instruction.
13971 $ac_cs_success || as_fn_exit 1
13972 fi
13973 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13975 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13976 fi
13977