Titan Core Initial Contribution
[deliverable/titan.core.git] / mctr2 / editline / libedit / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for libedit 3.0.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537 ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
543 shift
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
546 :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
549 :
550 else
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
557 shift
558 cat <<_LT_EOF
559 $*
560 _LT_EOF
561 exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575 then
576 break
577 fi
578 done
579 fi
580
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
584 :
585 else
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
589 #
590 # So, first we look for a working echo in the user's PATH.
591
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
594 IFS="$lt_save_ifs"
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
599 ECHO="$dir/echo"
600 break
601 fi
602 done
603 IFS="$lt_save_ifs"
604
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
611 ECHO='print -r'
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
618 export CONFIG_SHELL
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620 else
621 # Try using printf.
622 ECHO='printf %s\n'
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
626 # Cool, printf works
627 :
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633 export CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
635 export SHELL
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
642 else
643 # maybe with a smaller string...
644 prev=:
645
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648 then
649 break
650 fi
651 prev="$cmd"
652 done
653
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658 else
659 # Oops. We lost completely, so just stick with echo.
660 ECHO=echo
661 fi
662 fi
663 fi
664 fi
665 fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME='libedit'
700 PACKAGE_TARNAME='libedit-20100424'
701 PACKAGE_VERSION='3.0'
702 PACKAGE_STRING='libedit 3.0'
703 PACKAGE_BUGREPORT=''
704 PACKAGE_URL=''
705
706 ac_unique_file="src/strlcat.c"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 # include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 # include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_subst_vars='am__EXEEXT_FALSE
744 am__EXEEXT_TRUE
745 LTLIBOBJS
746 LIBOBJS
747 ALLOCA
748 WIDECHAR_FALSE
749 WIDECHAR_TRUE
750 MANTYPE
751 NROFF
752 AM_BACKSLASH
753 AM_DEFAULT_VERBOSITY
754 LT_VERSION
755 OTOOL64
756 OTOOL
757 LIPO
758 NMEDIT
759 DSYMUTIL
760 lt_ECHO
761 RANLIB
762 AR
763 OBJDUMP
764 LN_S
765 NM
766 ac_ct_DUMPBIN
767 DUMPBIN
768 LD
769 FGREP
770 SED
771 host_os
772 host_vendor
773 host_cpu
774 host
775 build_os
776 build_vendor
777 build_cpu
778 build
779 LIBTOOL
780 am__fastdepCC_FALSE
781 am__fastdepCC_TRUE
782 CCDEPMODE
783 AMDEPBACKSLASH
784 AMDEP_FALSE
785 AMDEP_TRUE
786 am__quote
787 am__include
788 DEPDIR
789 am__untar
790 am__tar
791 AMTAR
792 am__leading_dot
793 SET_MAKE
794 AWK
795 mkdir_p
796 MKDIR_P
797 INSTALL_STRIP_PROGRAM
798 STRIP
799 install_sh
800 MAKEINFO
801 AUTOHEADER
802 AUTOMAKE
803 AUTOCONF
804 ACLOCAL
805 VERSION
806 PACKAGE
807 CYGPATH_W
808 am__isrc
809 INSTALL_DATA
810 INSTALL_SCRIPT
811 INSTALL_PROGRAM
812 EGREP
813 GREP
814 CPP
815 OBJEXT
816 EXEEXT
817 ac_ct_CC
818 CPPFLAGS
819 LDFLAGS
820 CFLAGS
821 CC
822 target_alias
823 host_alias
824 build_alias
825 LIBS
826 ECHO_T
827 ECHO_N
828 ECHO_C
829 DEFS
830 mandir
831 localedir
832 libdir
833 psdir
834 pdfdir
835 dvidir
836 htmldir
837 infodir
838 docdir
839 oldincludedir
840 includedir
841 localstatedir
842 sharedstatedir
843 sysconfdir
844 datadir
845 datarootdir
846 libexecdir
847 sbindir
848 bindir
849 program_transform_name
850 prefix
851 exec_prefix
852 PACKAGE_URL
853 PACKAGE_BUGREPORT
854 PACKAGE_STRING
855 PACKAGE_VERSION
856 PACKAGE_TARNAME
857 PACKAGE_NAME
858 PATH_SEPARATOR
859 SHELL'
860 ac_subst_files=''
861 ac_user_opts='
862 enable_option_checking
863 enable_dependency_tracking
864 enable_shared
865 enable_static
866 with_pic
867 enable_fast_install
868 with_gnu_ld
869 enable_libtool_lock
870 enable_silent_rules
871 enable_widec
872 '
873 ac_precious_vars='build_alias
874 host_alias
875 target_alias
876 CC
877 CFLAGS
878 LDFLAGS
879 LIBS
880 CPPFLAGS
881 CPP'
882
883
884 # Initialize some variables set by options.
885 ac_init_help=
886 ac_init_version=false
887 ac_unrecognized_opts=
888 ac_unrecognized_sep=
889 # The variables have the same names as the options, with
890 # dashes changed to underlines.
891 cache_file=/dev/null
892 exec_prefix=NONE
893 no_create=
894 no_recursion=
895 prefix=NONE
896 program_prefix=NONE
897 program_suffix=NONE
898 program_transform_name=s,x,x,
899 silent=
900 site=
901 srcdir=
902 verbose=
903 x_includes=NONE
904 x_libraries=NONE
905
906 # Installation directory options.
907 # These are left unexpanded so users can "make install exec_prefix=/foo"
908 # and all the variables that are supposed to be based on exec_prefix
909 # by default will actually change.
910 # Use braces instead of parens because sh, perl, etc. also accept them.
911 # (The list follows the same order as the GNU Coding Standards.)
912 bindir='${exec_prefix}/bin'
913 sbindir='${exec_prefix}/sbin'
914 libexecdir='${exec_prefix}/libexec'
915 datarootdir='${prefix}/share'
916 datadir='${datarootdir}'
917 sysconfdir='${prefix}/etc'
918 sharedstatedir='${prefix}/com'
919 localstatedir='${prefix}/var'
920 includedir='${prefix}/include'
921 oldincludedir='/usr/include'
922 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
923 infodir='${datarootdir}/info'
924 htmldir='${docdir}'
925 dvidir='${docdir}'
926 pdfdir='${docdir}'
927 psdir='${docdir}'
928 libdir='${exec_prefix}/lib'
929 localedir='${datarootdir}/locale'
930 mandir='${datarootdir}/man'
931
932 ac_prev=
933 ac_dashdash=
934 for ac_option
935 do
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
938 eval $ac_prev=\$ac_option
939 ac_prev=
940 continue
941 fi
942
943 case $ac_option in
944 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 *) ac_optarg=yes ;;
946 esac
947
948 # Accept the important Cygnus configure options, so we can diagnose typos.
949
950 case $ac_dashdash$ac_option in
951 --)
952 ac_dashdash=yes ;;
953
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
955 ac_prev=bindir ;;
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957 bindir=$ac_optarg ;;
958
959 -build | --build | --buil | --bui | --bu)
960 ac_prev=build_alias ;;
961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962 build_alias=$ac_optarg ;;
963
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969 cache_file=$ac_optarg ;;
970
971 --config-cache | -C)
972 cache_file=config.cache ;;
973
974 -datadir | --datadir | --datadi | --datad)
975 ac_prev=datadir ;;
976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
977 datadir=$ac_optarg ;;
978
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
985
986 -disable-* | --disable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
994 *"
995 "enable_$ac_useropt"
996 "*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=no ;;
1001
1002 -docdir | --docdir | --docdi | --doc | --do)
1003 ac_prev=docdir ;;
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1006
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008 ac_prev=dvidir ;;
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1011
1012 -enable-* | --enable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1020 *"
1021 "enable_$ac_useropt"
1022 "*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=\$ac_optarg ;;
1027
1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030 | --exec | --exe | --ex)
1031 ac_prev=exec_prefix ;;
1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034 | --exec=* | --exe=* | --ex=*)
1035 exec_prefix=$ac_optarg ;;
1036
1037 -gas | --gas | --ga | --g)
1038 # Obsolete; use --with-gas.
1039 with_gas=yes ;;
1040
1041 -help | --help | --hel | --he | -h)
1042 ac_init_help=long ;;
1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044 ac_init_help=recursive ;;
1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046 ac_init_help=short ;;
1047
1048 -host | --host | --hos | --ho)
1049 ac_prev=host_alias ;;
1050 -host=* | --host=* | --hos=* | --ho=*)
1051 host_alias=$ac_optarg ;;
1052
1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 ac_prev=htmldir ;;
1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 | --ht=*)
1057 htmldir=$ac_optarg ;;
1058
1059 -includedir | --includedir | --includedi | --included | --include \
1060 | --includ | --inclu | --incl | --inc)
1061 ac_prev=includedir ;;
1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063 | --includ=* | --inclu=* | --incl=* | --inc=*)
1064 includedir=$ac_optarg ;;
1065
1066 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 ac_prev=infodir ;;
1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069 infodir=$ac_optarg ;;
1070
1071 -libdir | --libdir | --libdi | --libd)
1072 ac_prev=libdir ;;
1073 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074 libdir=$ac_optarg ;;
1075
1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077 | --libexe | --libex | --libe)
1078 ac_prev=libexecdir ;;
1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080 | --libexe=* | --libex=* | --libe=*)
1081 libexecdir=$ac_optarg ;;
1082
1083 -localedir | --localedir | --localedi | --localed | --locale)
1084 ac_prev=localedir ;;
1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086 localedir=$ac_optarg ;;
1087
1088 -localstatedir | --localstatedir | --localstatedi | --localstated \
1089 | --localstate | --localstat | --localsta | --localst | --locals)
1090 ac_prev=localstatedir ;;
1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093 localstatedir=$ac_optarg ;;
1094
1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 ac_prev=mandir ;;
1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098 mandir=$ac_optarg ;;
1099
1100 -nfp | --nfp | --nf)
1101 # Obsolete; use --without-fp.
1102 with_fp=no ;;
1103
1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105 | --no-cr | --no-c | -n)
1106 no_create=yes ;;
1107
1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 no_recursion=yes ;;
1111
1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114 | --oldin | --oldi | --old | --ol | --o)
1115 ac_prev=oldincludedir ;;
1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119 oldincludedir=$ac_optarg ;;
1120
1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 ac_prev=prefix ;;
1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124 prefix=$ac_optarg ;;
1125
1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127 | --program-pre | --program-pr | --program-p)
1128 ac_prev=program_prefix ;;
1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131 program_prefix=$ac_optarg ;;
1132
1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134 | --program-suf | --program-su | --program-s)
1135 ac_prev=program_suffix ;;
1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138 program_suffix=$ac_optarg ;;
1139
1140 -program-transform-name | --program-transform-name \
1141 | --program-transform-nam | --program-transform-na \
1142 | --program-transform-n | --program-transform- \
1143 | --program-transform | --program-transfor \
1144 | --program-transfo | --program-transf \
1145 | --program-trans | --program-tran \
1146 | --progr-tra | --program-tr | --program-t)
1147 ac_prev=program_transform_name ;;
1148 -program-transform-name=* | --program-transform-name=* \
1149 | --program-transform-nam=* | --program-transform-na=* \
1150 | --program-transform-n=* | --program-transform-=* \
1151 | --program-transform=* | --program-transfor=* \
1152 | --program-transfo=* | --program-transf=* \
1153 | --program-trans=* | --program-tran=* \
1154 | --progr-tra=* | --program-tr=* | --program-t=*)
1155 program_transform_name=$ac_optarg ;;
1156
1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 ac_prev=pdfdir ;;
1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160 pdfdir=$ac_optarg ;;
1161
1162 -psdir | --psdir | --psdi | --psd | --ps)
1163 ac_prev=psdir ;;
1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 psdir=$ac_optarg ;;
1166
1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168 | -silent | --silent | --silen | --sile | --sil)
1169 silent=yes ;;
1170
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 ac_prev=sbindir ;;
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 | --sbi=* | --sb=*)
1175 sbindir=$ac_optarg ;;
1176
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1180 | --sha | --sh)
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 | --sha=* | --sh=*)
1186 sharedstatedir=$ac_optarg ;;
1187
1188 -site | --site | --sit)
1189 ac_prev=site ;;
1190 -site=* | --site=* | --sit=*)
1191 site=$ac_optarg ;;
1192
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 ac_prev=srcdir ;;
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196 srcdir=$ac_optarg ;;
1197
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203 sysconfdir=$ac_optarg ;;
1204
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
1206 ac_prev=target_alias ;;
1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208 target_alias=$ac_optarg ;;
1209
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211 verbose=yes ;;
1212
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
1215
1216 -with-* | --with-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=\$ac_optarg ;;
1231
1232 -without-* | --without-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1240 *"
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=no ;;
1247
1248 --x)
1249 # Obsolete; use --with-x.
1250 with_x=yes ;;
1251
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1258
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1265
1266 -*) as_fn_error "unrecognized option: \`$ac_option'
1267 Try \`$0 --help' for more information."
1268 ;;
1269
1270 *=*)
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 case $ac_envvar in #(
1274 '' | [0-9]* | *[!_$as_cr_alnum]* )
1275 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1276 esac
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1279
1280 *)
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1286 ;;
1287
1288 esac
1289 done
1290
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 as_fn_error "missing argument to $ac_option"
1294 fi
1295
1296 if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1298 no) ;;
1299 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 esac
1302 fi
1303
1304 # Check all directory arguments for consistency.
1305 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1309 do
1310 eval ac_val=\$$ac_var
1311 # Remove trailing slashes.
1312 case $ac_val in
1313 */ )
1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\$ac_val;;
1316 esac
1317 # Be sure to have absolute directory names.
1318 case $ac_val in
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321 esac
1322 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1323 done
1324
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1328 build=$build_alias
1329 host=$host_alias
1330 target=$target_alias
1331
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x; then
1334 if test "x$build_alias" = x; then
1335 cross_compiling=maybe
1336 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1337 If a cross compiler is detected then cross compile mode will be used." >&2
1338 elif test "x$build_alias" != "x$host_alias"; then
1339 cross_compiling=yes
1340 fi
1341 fi
1342
1343 ac_tool_prefix=
1344 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345
1346 test "$silent" = yes && exec 6>/dev/null
1347
1348
1349 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350 ac_ls_di=`ls -di .` &&
1351 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1352 as_fn_error "working directory cannot be determined"
1353 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354 as_fn_error "pwd does not report name of working directory"
1355
1356
1357 # Find the source files, if location was not specified.
1358 if test -z "$srcdir"; then
1359 ac_srcdir_defaulted=yes
1360 # Try the directory containing this script, then the parent directory.
1361 ac_confdir=`$as_dirname -- "$as_myself" ||
1362 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363 X"$as_myself" : 'X\(//\)[^/]' \| \
1364 X"$as_myself" : 'X\(//\)$' \| \
1365 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1366 $as_echo X"$as_myself" |
1367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)[^/].*/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)$/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\).*/{
1380 s//\1/
1381 q
1382 }
1383 s/.*/./; q'`
1384 srcdir=$ac_confdir
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 srcdir=..
1387 fi
1388 else
1389 ac_srcdir_defaulted=no
1390 fi
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1393 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1394 fi
1395 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396 ac_abs_confdir=`(
1397 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1398 pwd)`
1399 # When building in place, set srcdir=.
1400 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 srcdir=.
1402 fi
1403 # Remove unnecessary trailing slashes from srcdir.
1404 # Double slashes in file names in object file debugging info
1405 # mess up M-x gdb in Emacs.
1406 case $srcdir in
1407 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 esac
1409 for ac_var in $ac_precious_vars; do
1410 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_env_${ac_var}_value=\$${ac_var}
1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414 done
1415
1416 #
1417 # Report the --help message.
1418 #
1419 if test "$ac_init_help" = "long"; then
1420 # Omit some internal or obsolete options to make the list less imposing.
1421 # This message is too long to be a string in the A/UX 3.1 sh.
1422 cat <<_ACEOF
1423 \`configure' configures libedit 3.0 to adapt to many kinds of systems.
1424
1425 Usage: $0 [OPTION]... [VAR=VALUE]...
1426
1427 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428 VAR=VALUE. See below for descriptions of some of the useful variables.
1429
1430 Defaults for the options are specified in brackets.
1431
1432 Configuration:
1433 -h, --help display this help and exit
1434 --help=short display options specific to this package
1435 --help=recursive display the short help of all the included packages
1436 -V, --version display version information and exit
1437 -q, --quiet, --silent do not print \`checking...' messages
1438 --cache-file=FILE cache test results in FILE [disabled]
1439 -C, --config-cache alias for \`--cache-file=config.cache'
1440 -n, --no-create do not create output files
1441 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1442
1443 Installation directories:
1444 --prefix=PREFIX install architecture-independent files in PREFIX
1445 [$ac_default_prefix]
1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447 [PREFIX]
1448
1449 By default, \`make install' will install all the files in
1450 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1451 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452 for instance \`--prefix=\$HOME'.
1453
1454 For better control, use the options below.
1455
1456 Fine tuning of the installation directories:
1457 --bindir=DIR user executables [EPREFIX/bin]
1458 --sbindir=DIR system admin executables [EPREFIX/sbin]
1459 --libexecdir=DIR program executables [EPREFIX/libexec]
1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1463 --libdir=DIR object code libraries [EPREFIX/lib]
1464 --includedir=DIR C header files [PREFIX/include]
1465 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1468 --infodir=DIR info documentation [DATAROOTDIR/info]
1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1470 --mandir=DIR man documentation [DATAROOTDIR/man]
1471 --docdir=DIR documentation root
1472 [DATAROOTDIR/doc/libedit-20100424]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1477 _ACEOF
1478
1479 cat <<\_ACEOF
1480
1481 Program names:
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485
1486 System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 _ACEOF
1490 fi
1491
1492 if test -n "$ac_init_help"; then
1493 case $ac_init_help in
1494 short | recursive ) echo "Configuration of libedit 3.0:";;
1495 esac
1496 cat <<\_ACEOF
1497
1498 Optional Features:
1499 --disable-option-checking ignore unrecognized --enable/--with options
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502 --disable-dependency-tracking speeds up one-time build
1503 --enable-dependency-tracking do not reject slow dependency extractors
1504 --enable-shared[=PKGS] build shared libraries [default=yes]
1505 --enable-static[=PKGS] build static libraries [default=yes]
1506 --enable-fast-install[=PKGS]
1507 optimize for fast installation [default=yes]
1508 --disable-libtool-lock avoid locking (might break parallel builds)
1509 --enable-silent-rules less verbose build output (undo: `make V=1')
1510 --disable-silent-rules verbose build output (undo: `make V=0')
1511 --enable-widec compile with wide-char/UTF-8 code
1512
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-pic try to use only PIC/non-PIC objects [default=use
1517 both]
1518 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1519
1520 Some influential environment variables:
1521 CC C compiler command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1524 nonstandard directory <lib dir>
1525 LIBS libraries to pass to the linker, e.g. -l<library>
1526 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1527 you have headers in a nonstandard directory <include dir>
1528 CPP C preprocessor
1529
1530 Use these variables to override the choices made by `configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1532
1533 Report bugs to the package provider.
1534 _ACEOF
1535 ac_status=$?
1536 fi
1537
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543 continue
1544 ac_builddir=.
1545
1546 case "$ac_dir" in
1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *)
1549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550 # A ".." for each directory in $ac_dir_suffix.
1551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555 esac ;;
1556 esac
1557 ac_abs_top_builddir=$ac_pwd
1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir=$ac_top_build_prefix
1561
1562 case $srcdir in
1563 .) # We are building in place.
1564 ac_srcdir=.
1565 ac_top_srcdir=$ac_top_builddir_sub
1566 ac_abs_top_srcdir=$ac_pwd ;;
1567 [\\/]* | ?:[\\/]* ) # Absolute name.
1568 ac_srcdir=$srcdir$ac_dir_suffix;
1569 ac_top_srcdir=$srcdir
1570 ac_abs_top_srcdir=$srcdir ;;
1571 *) # Relative name.
1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 esac
1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577
1578 cd "$ac_dir" || { ac_status=$?; continue; }
1579 # Check for guested configure.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1586 else
1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 fi || ac_status=$?
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1590 done
1591 fi
1592
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1595 cat <<\_ACEOF
1596 libedit configure 3.0
1597 generated by GNU Autoconf 2.65
1598
1599 Copyright (C) 2009 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1602 _ACEOF
1603 exit
1604 fi
1605
1606 ## ------------------------ ##
1607 ## Autoconf initialization. ##
1608 ## ------------------------ ##
1609
1610 # ac_fn_c_try_compile LINENO
1611 # --------------------------
1612 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_compile ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 rm -f conftest.$ac_objext
1617 if { { ac_try="$ac_compile"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_compile") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest.$ac_objext; then :
1636 ac_retval=0
1637 else
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642 fi
1643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644 as_fn_set_status $ac_retval
1645
1646 } # ac_fn_c_try_compile
1647
1648 # ac_fn_c_try_cpp LINENO
1649 # ----------------------
1650 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_cpp ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_cpp conftest.$ac_ext"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } >/dev/null && {
1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679 fi
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681 as_fn_set_status $ac_retval
1682
1683 } # ac_fn_c_try_cpp
1684
1685 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1686 # -------------------------------------------------------
1687 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1688 # the include files in INCLUDES and setting the cache variable VAR
1689 # accordingly.
1690 ac_fn_c_check_header_mongrel ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1697 $as_echo_n "(cached) " >&6
1698 fi
1699 eval ac_res=\$$3
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1702 else
1703 # Is the header compilable?
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1705 $as_echo_n "checking $2 usability... " >&6; }
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1708 $4
1709 #include <$2>
1710 _ACEOF
1711 if ac_fn_c_try_compile "$LINENO"; then :
1712 ac_header_compiler=yes
1713 else
1714 ac_header_compiler=no
1715 fi
1716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1718 $as_echo "$ac_header_compiler" >&6; }
1719
1720 # Is the header present?
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1722 $as_echo_n "checking $2 presence... " >&6; }
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 #include <$2>
1726 _ACEOF
1727 if ac_fn_c_try_cpp "$LINENO"; then :
1728 ac_header_preproc=yes
1729 else
1730 ac_header_preproc=no
1731 fi
1732 rm -f conftest.err conftest.$ac_ext
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1734 $as_echo "$ac_header_preproc" >&6; }
1735
1736 # So? What about this header?
1737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1738 yes:no: )
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1740 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1742 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1743 ;;
1744 no:yes:* )
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1746 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1748 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1750 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1752 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1754 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1755 ;;
1756 esac
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760 $as_echo_n "(cached) " >&6
1761 else
1762 eval "$3=\$ac_header_compiler"
1763 fi
1764 eval ac_res=\$$3
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767 fi
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769
1770 } # ac_fn_c_check_header_mongrel
1771
1772 # ac_fn_c_try_run LINENO
1773 # ----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1775 # that executables *can* be run.
1776 ac_fn_c_try_run ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_link"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>&5
1787 ac_status=$?
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1790 { { case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_try") 2>&5
1797 ac_status=$?
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; }; }; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: program exited with status $ac_status" >&5
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=$ac_status
1807 fi
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_run
1813
1814 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists and can be compiled using the include files in
1817 # INCLUDES, setting the cache variable VAR accordingly.
1818 ac_fn_c_check_header_compile ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 $4
1829 #include <$2>
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832 eval "$3=yes"
1833 else
1834 eval "$3=no"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 fi
1838 eval ac_res=\$$3
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842
1843 } # ac_fn_c_check_header_compile
1844
1845 # ac_fn_c_try_link LINENO
1846 # -----------------------
1847 # Try to link conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_link ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext conftest$ac_exeext
1852 if { { ac_try="$ac_link"
1853 case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>conftest.err
1860 ac_status=$?
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1865 fi
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_c_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest$ac_exeext && {
1871 test "$cross_compiling" = yes ||
1872 $as_test_x conftest$ac_exeext
1873 }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880 fi
1881 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883 # interfere with the next link command; also delete a directory that is
1884 # left behind by Apple's compiler. We do this before executing the actions.
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 as_fn_set_status $ac_retval
1888
1889 } # ac_fn_c_try_link
1890
1891 # ac_fn_c_check_func LINENO FUNC VAR
1892 # ----------------------------------
1893 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1894 ac_fn_c_check_func ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1906 #define $2 innocuous_$2
1907
1908 /* System header to define __stub macros and hopefully few prototypes,
1909 which can conflict with char $2 (); below.
1910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1911 <limits.h> exists even on freestanding compilers. */
1912
1913 #ifdef __STDC__
1914 # include <limits.h>
1915 #else
1916 # include <assert.h>
1917 #endif
1918
1919 #undef $2
1920
1921 /* Override any GCC internal prototype to avoid an error.
1922 Use char because int might match the return type of a GCC
1923 builtin and then its argument prototype would still apply. */
1924 #ifdef __cplusplus
1925 extern "C"
1926 #endif
1927 char $2 ();
1928 /* The GNU C library defines this for functions which it implements
1929 to always fail with ENOSYS. Some functions are actually named
1930 something starting with __ and the normal name is an alias. */
1931 #if defined __stub_$2 || defined __stub___$2
1932 choke me
1933 #endif
1934
1935 int
1936 main ()
1937 {
1938 return $2 ();
1939 ;
1940 return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_link "$LINENO"; then :
1944 eval "$3=yes"
1945 else
1946 eval "$3=no"
1947 fi
1948 rm -f core conftest.err conftest.$ac_objext \
1949 conftest$ac_exeext conftest.$ac_ext
1950 fi
1951 eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955
1956 } # ac_fn_c_check_func
1957
1958 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1959 # -------------------------------------------
1960 # Tests whether TYPE exists after having included INCLUDES, setting cache
1961 # variable VAR accordingly.
1962 ac_fn_c_check_type ()
1963 {
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1968 $as_echo_n "(cached) " >&6
1969 else
1970 eval "$3=no"
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 $4
1974 int
1975 main ()
1976 {
1977 if (sizeof ($2))
1978 return 0;
1979 ;
1980 return 0;
1981 }
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1986 $4
1987 int
1988 main ()
1989 {
1990 if (sizeof (($2)))
1991 return 0;
1992 ;
1993 return 0;
1994 }
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997
1998 else
1999 eval "$3=yes"
2000 fi
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 fi
2005 eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009
2010 } # ac_fn_c_check_type
2011 cat >config.log <<_ACEOF
2012 This file contains any messages produced by compilers while
2013 running configure, to aid debugging if configure makes a mistake.
2014
2015 It was created by libedit $as_me 3.0, which was
2016 generated by GNU Autoconf 2.65. Invocation command line was
2017
2018 $ $0 $@
2019
2020 _ACEOF
2021 exec 5>>config.log
2022 {
2023 cat <<_ASUNAME
2024 ## --------- ##
2025 ## Platform. ##
2026 ## --------- ##
2027
2028 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2029 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2030 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2031 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2032 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2033
2034 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2035 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2036
2037 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2038 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2039 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2040 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2041 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2042 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2043 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2044
2045 _ASUNAME
2046
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 $as_echo "PATH: $as_dir"
2053 done
2054 IFS=$as_save_IFS
2055
2056 } >&5
2057
2058 cat >&5 <<_ACEOF
2059
2060
2061 ## ----------- ##
2062 ## Core tests. ##
2063 ## ----------- ##
2064
2065 _ACEOF
2066
2067
2068 # Keep a trace of the command line.
2069 # Strip out --no-create and --no-recursion so they do not pile up.
2070 # Strip out --silent because we don't want to record it for future runs.
2071 # Also quote any args containing shell meta-characters.
2072 # Make two passes to allow for proper duplicate-argument suppression.
2073 ac_configure_args=
2074 ac_configure_args0=
2075 ac_configure_args1=
2076 ac_must_keep_next=false
2077 for ac_pass in 1 2
2078 do
2079 for ac_arg
2080 do
2081 case $ac_arg in
2082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2084 | -silent | --silent | --silen | --sile | --sil)
2085 continue ;;
2086 *\'*)
2087 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2088 esac
2089 case $ac_pass in
2090 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2091 2)
2092 as_fn_append ac_configure_args1 " '$ac_arg'"
2093 if test $ac_must_keep_next = true; then
2094 ac_must_keep_next=false # Got value, back to normal.
2095 else
2096 case $ac_arg in
2097 *=* | --config-cache | -C | -disable-* | --disable-* \
2098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2100 | -with-* | --with-* | -without-* | --without-* | --x)
2101 case "$ac_configure_args0 " in
2102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2103 esac
2104 ;;
2105 -* ) ac_must_keep_next=true ;;
2106 esac
2107 fi
2108 as_fn_append ac_configure_args " '$ac_arg'"
2109 ;;
2110 esac
2111 done
2112 done
2113 { ac_configure_args0=; unset ac_configure_args0;}
2114 { ac_configure_args1=; unset ac_configure_args1;}
2115
2116 # When interrupted or exit'd, cleanup temporary files, and complete
2117 # config.log. We remove comments because anyway the quotes in there
2118 # would cause problems or look ugly.
2119 # WARNING: Use '\'' to represent an apostrophe within the trap.
2120 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2121 trap 'exit_status=$?
2122 # Save into config.log some information that might help in debugging.
2123 {
2124 echo
2125
2126 cat <<\_ASBOX
2127 ## ---------------- ##
2128 ## Cache variables. ##
2129 ## ---------------- ##
2130 _ASBOX
2131 echo
2132 # The following way of writing the cache mishandles newlines in values,
2133 (
2134 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2135 eval ac_val=\$$ac_var
2136 case $ac_val in #(
2137 *${as_nl}*)
2138 case $ac_var in #(
2139 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2140 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2141 esac
2142 case $ac_var in #(
2143 _ | IFS | as_nl) ;; #(
2144 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2145 *) { eval $ac_var=; unset $ac_var;} ;;
2146 esac ;;
2147 esac
2148 done
2149 (set) 2>&1 |
2150 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2151 *${as_nl}ac_space=\ *)
2152 sed -n \
2153 "s/'\''/'\''\\\\'\'''\''/g;
2154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2155 ;; #(
2156 *)
2157 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2158 ;;
2159 esac |
2160 sort
2161 )
2162 echo
2163
2164 cat <<\_ASBOX
2165 ## ----------------- ##
2166 ## Output variables. ##
2167 ## ----------------- ##
2168 _ASBOX
2169 echo
2170 for ac_var in $ac_subst_vars
2171 do
2172 eval ac_val=\$$ac_var
2173 case $ac_val in
2174 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2175 esac
2176 $as_echo "$ac_var='\''$ac_val'\''"
2177 done | sort
2178 echo
2179
2180 if test -n "$ac_subst_files"; then
2181 cat <<\_ASBOX
2182 ## ------------------- ##
2183 ## File substitutions. ##
2184 ## ------------------- ##
2185 _ASBOX
2186 echo
2187 for ac_var in $ac_subst_files
2188 do
2189 eval ac_val=\$$ac_var
2190 case $ac_val in
2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 esac
2193 $as_echo "$ac_var='\''$ac_val'\''"
2194 done | sort
2195 echo
2196 fi
2197
2198 if test -s confdefs.h; then
2199 cat <<\_ASBOX
2200 ## ----------- ##
2201 ## confdefs.h. ##
2202 ## ----------- ##
2203 _ASBOX
2204 echo
2205 cat confdefs.h
2206 echo
2207 fi
2208 test "$ac_signal" != 0 &&
2209 $as_echo "$as_me: caught signal $ac_signal"
2210 $as_echo "$as_me: exit $exit_status"
2211 } >&5
2212 rm -f core *.core core.conftest.* &&
2213 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2214 exit $exit_status
2215 ' 0
2216 for ac_signal in 1 2 13 15; do
2217 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2218 done
2219 ac_signal=0
2220
2221 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2222 rm -f -r conftest* confdefs.h
2223
2224 $as_echo "/* confdefs.h */" > confdefs.h
2225
2226 # Predefined preprocessor variables.
2227
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_NAME "$PACKAGE_NAME"
2230 _ACEOF
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2234 _ACEOF
2235
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2238 _ACEOF
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_STRING "$PACKAGE_STRING"
2242 _ACEOF
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2246 _ACEOF
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_URL "$PACKAGE_URL"
2250 _ACEOF
2251
2252
2253 # Let the site file select an alternate cache file if it wants to.
2254 # Prefer an explicitly selected file to automatically selected ones.
2255 ac_site_file1=NONE
2256 ac_site_file2=NONE
2257 if test -n "$CONFIG_SITE"; then
2258 ac_site_file1=$CONFIG_SITE
2259 elif test "x$prefix" != xNONE; then
2260 ac_site_file1=$prefix/share/config.site
2261 ac_site_file2=$prefix/etc/config.site
2262 else
2263 ac_site_file1=$ac_default_prefix/share/config.site
2264 ac_site_file2=$ac_default_prefix/etc/config.site
2265 fi
2266 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2267 do
2268 test "x$ac_site_file" = xNONE && continue
2269 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2271 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2272 sed 's/^/| /' "$ac_site_file" >&5
2273 . "$ac_site_file"
2274 fi
2275 done
2276
2277 if test -r "$cache_file"; then
2278 # Some versions of bash will fail to source /dev/null (special files
2279 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2280 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2282 $as_echo "$as_me: loading cache $cache_file" >&6;}
2283 case $cache_file in
2284 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2285 *) . "./$cache_file";;
2286 esac
2287 fi
2288 else
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2290 $as_echo "$as_me: creating cache $cache_file" >&6;}
2291 >$cache_file
2292 fi
2293
2294 # Check that the precious variables saved in the cache have kept the same
2295 # value.
2296 ac_cache_corrupted=false
2297 for ac_var in $ac_precious_vars; do
2298 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2299 eval ac_new_set=\$ac_env_${ac_var}_set
2300 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2301 eval ac_new_val=\$ac_env_${ac_var}_value
2302 case $ac_old_set,$ac_new_set in
2303 set,)
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2305 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2306 ac_cache_corrupted=: ;;
2307 ,set)
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2309 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2310 ac_cache_corrupted=: ;;
2311 ,);;
2312 *)
2313 if test "x$ac_old_val" != "x$ac_new_val"; then
2314 # differences in whitespace do not lead to failure.
2315 ac_old_val_w=`echo x $ac_old_val`
2316 ac_new_val_w=`echo x $ac_new_val`
2317 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2319 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2320 ac_cache_corrupted=:
2321 else
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2323 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2324 eval $ac_var=\$ac_old_val
2325 fi
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2327 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2329 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2330 fi;;
2331 esac
2332 # Pass precious variables to config.status.
2333 if test "$ac_new_set" = set; then
2334 case $ac_new_val in
2335 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2336 *) ac_arg=$ac_var=$ac_new_val ;;
2337 esac
2338 case " $ac_configure_args " in
2339 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2340 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2341 esac
2342 fi
2343 done
2344 if $ac_cache_corrupted; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2348 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2349 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2350 fi
2351 ## -------------------- ##
2352 ## Main body of script. ##
2353 ## -------------------- ##
2354
2355 ac_ext=c
2356 ac_cpp='$CPP $CPPFLAGS'
2357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360
2361
2362
2363 ac_config_headers="$ac_config_headers config.h"
2364
2365
2366 # features of Posix that are extensions to C (define _GNU_SOURCE)
2367 ac_ext=c
2368 ac_cpp='$CPP $CPPFLAGS'
2369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372 if test -n "$ac_tool_prefix"; then
2373 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2374 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2376 $as_echo_n "checking for $ac_word... " >&6; }
2377 if test "${ac_cv_prog_CC+set}" = set; then :
2378 $as_echo_n "(cached) " >&6
2379 else
2380 if test -n "$CC"; then
2381 ac_cv_prog_CC="$CC" # Let the user override the test.
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 break 2
2393 fi
2394 done
2395 done
2396 IFS=$as_save_IFS
2397
2398 fi
2399 fi
2400 CC=$ac_cv_prog_CC
2401 if test -n "$CC"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2403 $as_echo "$CC" >&6; }
2404 else
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2406 $as_echo "no" >&6; }
2407 fi
2408
2409
2410 fi
2411 if test -z "$ac_cv_prog_CC"; then
2412 ac_ct_CC=$CC
2413 # Extract the first word of "gcc", so it can be a program name with args.
2414 set dummy gcc; ac_word=$2
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2416 $as_echo_n "checking for $ac_word... " >&6; }
2417 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2418 $as_echo_n "(cached) " >&6
2419 else
2420 if test -n "$ac_ct_CC"; then
2421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2422 else
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 ac_cv_prog_ac_ct_CC="gcc"
2431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 break 2
2433 fi
2434 done
2435 done
2436 IFS=$as_save_IFS
2437
2438 fi
2439 fi
2440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2441 if test -n "$ac_ct_CC"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2443 $as_echo "$ac_ct_CC" >&6; }
2444 else
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2446 $as_echo "no" >&6; }
2447 fi
2448
2449 if test "x$ac_ct_CC" = x; then
2450 CC=""
2451 else
2452 case $cross_compiling:$ac_tool_warned in
2453 yes:)
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2456 ac_tool_warned=yes ;;
2457 esac
2458 CC=$ac_ct_CC
2459 fi
2460 else
2461 CC="$ac_cv_prog_CC"
2462 fi
2463
2464 if test -z "$CC"; then
2465 if test -n "$ac_tool_prefix"; then
2466 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2467 set dummy ${ac_tool_prefix}cc; ac_word=$2
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if test "${ac_cv_prog_CC+set}" = set; then :
2471 $as_echo_n "(cached) " >&6
2472 else
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_CC="${ac_tool_prefix}cc"
2484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 break 2
2486 fi
2487 done
2488 done
2489 IFS=$as_save_IFS
2490
2491 fi
2492 fi
2493 CC=$ac_cv_prog_CC
2494 if test -n "$CC"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2496 $as_echo "$CC" >&6; }
2497 else
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499 $as_echo "no" >&6; }
2500 fi
2501
2502
2503 fi
2504 fi
2505 if test -z "$CC"; then
2506 # Extract the first word of "cc", so it can be a program name with args.
2507 set dummy cc; ac_word=$2
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if test "${ac_cv_prog_CC+set}" = set; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515 else
2516 ac_prog_rejected=no
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2519 do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2525 ac_prog_rejected=yes
2526 continue
2527 fi
2528 ac_cv_prog_CC="cc"
2529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 break 2
2531 fi
2532 done
2533 done
2534 IFS=$as_save_IFS
2535
2536 if test $ac_prog_rejected = yes; then
2537 # We found a bogon in the path, so make sure we never use it.
2538 set dummy $ac_cv_prog_CC
2539 shift
2540 if test $# != 0; then
2541 # We chose a different compiler from the bogus one.
2542 # However, it has the same basename, so the bogon will be chosen
2543 # first if we set CC to just the basename; use the full file name.
2544 shift
2545 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2546 fi
2547 fi
2548 fi
2549 fi
2550 CC=$ac_cv_prog_CC
2551 if test -n "$CC"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2553 $as_echo "$CC" >&6; }
2554 else
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2556 $as_echo "no" >&6; }
2557 fi
2558
2559
2560 fi
2561 if test -z "$CC"; then
2562 if test -n "$ac_tool_prefix"; then
2563 for ac_prog in cl.exe
2564 do
2565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if test "${ac_cv_prog_CC+set}" = set; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586 done
2587 done
2588 IFS=$as_save_IFS
2589
2590 fi
2591 fi
2592 CC=$ac_cv_prog_CC
2593 if test -n "$CC"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2595 $as_echo "$CC" >&6; }
2596 else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598 $as_echo "no" >&6; }
2599 fi
2600
2601
2602 test -n "$CC" && break
2603 done
2604 fi
2605 if test -z "$CC"; then
2606 ac_ct_CC=$CC
2607 for ac_prog in cl.exe
2608 do
2609 # Extract the first word of "$ac_prog", so it can be a program name with args.
2610 set dummy $ac_prog; ac_word=$2
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612 $as_echo_n "checking for $ac_word... " >&6; }
2613 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 if test -n "$ac_ct_CC"; then
2617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_ac_ct_CC="$ac_prog"
2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630 done
2631 done
2632 IFS=$as_save_IFS
2633
2634 fi
2635 fi
2636 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2637 if test -n "$ac_ct_CC"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2639 $as_echo "$ac_ct_CC" >&6; }
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2643 fi
2644
2645
2646 test -n "$ac_ct_CC" && break
2647 done
2648
2649 if test "x$ac_ct_CC" = x; then
2650 CC=""
2651 else
2652 case $cross_compiling:$ac_tool_warned in
2653 yes:)
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2656 ac_tool_warned=yes ;;
2657 esac
2658 CC=$ac_ct_CC
2659 fi
2660 fi
2661
2662 fi
2663
2664
2665 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2667 as_fn_error "no acceptable C compiler found in \$PATH
2668 See \`config.log' for more details." "$LINENO" 5; }
2669
2670 # Provide some information about the compiler.
2671 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2672 set X $ac_compile
2673 ac_compiler=$2
2674 for ac_option in --version -v -V -qversion; do
2675 { { ac_try="$ac_compiler $ac_option >&5"
2676 case "(($ac_try" in
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2679 esac
2680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2681 $as_echo "$ac_try_echo"; } >&5
2682 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2683 ac_status=$?
2684 if test -s conftest.err; then
2685 sed '10a\
2686 ... rest of stderr output deleted ...
2687 10q' conftest.err >conftest.er1
2688 cat conftest.er1 >&5
2689 fi
2690 rm -f conftest.er1 conftest.err
2691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2692 test $ac_status = 0; }
2693 done
2694
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2697
2698 int
2699 main ()
2700 {
2701
2702 ;
2703 return 0;
2704 }
2705 _ACEOF
2706 ac_clean_files_save=$ac_clean_files
2707 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2708 # Try to create an executable without -o first, disregard a.out.
2709 # It will help us diagnose broken compilers, and finding out an intuition
2710 # of exeext.
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2712 $as_echo_n "checking whether the C compiler works... " >&6; }
2713 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2714
2715 # The possible output files:
2716 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2717
2718 ac_rmfiles=
2719 for ac_file in $ac_files
2720 do
2721 case $ac_file in
2722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2723 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2724 esac
2725 done
2726 rm -f $ac_rmfiles
2727
2728 if { { ac_try="$ac_link_default"
2729 case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732 esac
2733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2734 $as_echo "$ac_try_echo"; } >&5
2735 (eval "$ac_link_default") 2>&5
2736 ac_status=$?
2737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2738 test $ac_status = 0; }; then :
2739 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2740 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2741 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2742 # so that the user can short-circuit this test for compilers unknown to
2743 # Autoconf.
2744 for ac_file in $ac_files ''
2745 do
2746 test -f "$ac_file" || continue
2747 case $ac_file in
2748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2749 ;;
2750 [ab].out )
2751 # We found the default executable, but exeext='' is most
2752 # certainly right.
2753 break;;
2754 *.* )
2755 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2756 then :; else
2757 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2758 fi
2759 # We set ac_cv_exeext here because the later test for it is not
2760 # safe: cross compilers may not add the suffix if given an `-o'
2761 # argument, so we may need to know it at that point already.
2762 # Even if this section looks crufty: it has the advantage of
2763 # actually working.
2764 break;;
2765 * )
2766 break;;
2767 esac
2768 done
2769 test "$ac_cv_exeext" = no && ac_cv_exeext=
2770
2771 else
2772 ac_file=''
2773 fi
2774 if test -z "$ac_file"; then :
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2777 $as_echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2779
2780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2782 { as_fn_set_status 77
2783 as_fn_error "C compiler cannot create executables
2784 See \`config.log' for more details." "$LINENO" 5; }; }
2785 else
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2787 $as_echo "yes" >&6; }
2788 fi
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2790 $as_echo_n "checking for C compiler default output file name... " >&6; }
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2792 $as_echo "$ac_file" >&6; }
2793 ac_exeext=$ac_cv_exeext
2794
2795 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2796 ac_clean_files=$ac_clean_files_save
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2798 $as_echo_n "checking for suffix of executables... " >&6; }
2799 if { { ac_try="$ac_link"
2800 case "(($ac_try" in
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2803 esac
2804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2805 $as_echo "$ac_try_echo"; } >&5
2806 (eval "$ac_link") 2>&5
2807 ac_status=$?
2808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2809 test $ac_status = 0; }; then :
2810 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2811 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2812 # work properly (i.e., refer to `conftest.exe'), while it won't with
2813 # `rm'.
2814 for ac_file in conftest.exe conftest conftest.*; do
2815 test -f "$ac_file" || continue
2816 case $ac_file in
2817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2818 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2819 break;;
2820 * ) break;;
2821 esac
2822 done
2823 else
2824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2826 as_fn_error "cannot compute suffix of executables: cannot compile and link
2827 See \`config.log' for more details." "$LINENO" 5; }
2828 fi
2829 rm -f conftest conftest$ac_cv_exeext
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2831 $as_echo "$ac_cv_exeext" >&6; }
2832
2833 rm -f conftest.$ac_ext
2834 EXEEXT=$ac_cv_exeext
2835 ac_exeext=$EXEEXT
2836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2837 /* end confdefs.h. */
2838 #include <stdio.h>
2839 int
2840 main ()
2841 {
2842 FILE *f = fopen ("conftest.out", "w");
2843 return ferror (f) || fclose (f) != 0;
2844
2845 ;
2846 return 0;
2847 }
2848 _ACEOF
2849 ac_clean_files="$ac_clean_files conftest.out"
2850 # Check that the compiler produces executables we can run. If not, either
2851 # the compiler is broken, or we cross compile.
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2853 $as_echo_n "checking whether we are cross compiling... " >&6; }
2854 if test "$cross_compiling" != yes; then
2855 { { ac_try="$ac_link"
2856 case "(($ac_try" in
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2859 esac
2860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2861 $as_echo "$ac_try_echo"; } >&5
2862 (eval "$ac_link") 2>&5
2863 ac_status=$?
2864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2865 test $ac_status = 0; }
2866 if { ac_try='./conftest$ac_cv_exeext'
2867 { { case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870 esac
2871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2872 $as_echo "$ac_try_echo"; } >&5
2873 (eval "$ac_try") 2>&5
2874 ac_status=$?
2875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2876 test $ac_status = 0; }; }; then
2877 cross_compiling=no
2878 else
2879 if test "$cross_compiling" = maybe; then
2880 cross_compiling=yes
2881 else
2882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2884 as_fn_error "cannot run C compiled programs.
2885 If you meant to cross compile, use \`--host'.
2886 See \`config.log' for more details." "$LINENO" 5; }
2887 fi
2888 fi
2889 fi
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2891 $as_echo "$cross_compiling" >&6; }
2892
2893 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2894 ac_clean_files=$ac_clean_files_save
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2896 $as_echo_n "checking for suffix of object files... " >&6; }
2897 if test "${ac_cv_objext+set}" = set; then :
2898 $as_echo_n "(cached) " >&6
2899 else
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2902
2903 int
2904 main ()
2905 {
2906
2907 ;
2908 return 0;
2909 }
2910 _ACEOF
2911 rm -f conftest.o conftest.obj
2912 if { { ac_try="$ac_compile"
2913 case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916 esac
2917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2918 $as_echo "$ac_try_echo"; } >&5
2919 (eval "$ac_compile") 2>&5
2920 ac_status=$?
2921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2922 test $ac_status = 0; }; then :
2923 for ac_file in conftest.o conftest.obj conftest.*; do
2924 test -f "$ac_file" || continue;
2925 case $ac_file in
2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2927 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2928 break;;
2929 esac
2930 done
2931 else
2932 $as_echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2934
2935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937 as_fn_error "cannot compute suffix of object files: cannot compile
2938 See \`config.log' for more details." "$LINENO" 5; }
2939 fi
2940 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2941 fi
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2943 $as_echo "$ac_cv_objext" >&6; }
2944 OBJEXT=$ac_cv_objext
2945 ac_objext=$OBJEXT
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2947 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2948 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2953
2954 int
2955 main ()
2956 {
2957 #ifndef __GNUC__
2958 choke me
2959 #endif
2960
2961 ;
2962 return 0;
2963 }
2964 _ACEOF
2965 if ac_fn_c_try_compile "$LINENO"; then :
2966 ac_compiler_gnu=yes
2967 else
2968 ac_compiler_gnu=no
2969 fi
2970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2972
2973 fi
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2975 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2976 if test $ac_compiler_gnu = yes; then
2977 GCC=yes
2978 else
2979 GCC=
2980 fi
2981 ac_test_CFLAGS=${CFLAGS+set}
2982 ac_save_CFLAGS=$CFLAGS
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2984 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2985 if test "${ac_cv_prog_cc_g+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 ac_save_c_werror_flag=$ac_c_werror_flag
2989 ac_c_werror_flag=yes
2990 ac_cv_prog_cc_g=no
2991 CFLAGS="-g"
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993 /* end confdefs.h. */
2994
2995 int
2996 main ()
2997 {
2998
2999 ;
3000 return 0;
3001 }
3002 _ACEOF
3003 if ac_fn_c_try_compile "$LINENO"; then :
3004 ac_cv_prog_cc_g=yes
3005 else
3006 CFLAGS=""
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h. */
3009
3010 int
3011 main ()
3012 {
3013
3014 ;
3015 return 0;
3016 }
3017 _ACEOF
3018 if ac_fn_c_try_compile "$LINENO"; then :
3019
3020 else
3021 ac_c_werror_flag=$ac_save_c_werror_flag
3022 CFLAGS="-g"
3023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024 /* end confdefs.h. */
3025
3026 int
3027 main ()
3028 {
3029
3030 ;
3031 return 0;
3032 }
3033 _ACEOF
3034 if ac_fn_c_try_compile "$LINENO"; then :
3035 ac_cv_prog_cc_g=yes
3036 fi
3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 fi
3039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3040 fi
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 ac_c_werror_flag=$ac_save_c_werror_flag
3043 fi
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3045 $as_echo "$ac_cv_prog_cc_g" >&6; }
3046 if test "$ac_test_CFLAGS" = set; then
3047 CFLAGS=$ac_save_CFLAGS
3048 elif test $ac_cv_prog_cc_g = yes; then
3049 if test "$GCC" = yes; then
3050 CFLAGS="-g -O2"
3051 else
3052 CFLAGS="-g"
3053 fi
3054 else
3055 if test "$GCC" = yes; then
3056 CFLAGS="-O2"
3057 else
3058 CFLAGS=
3059 fi
3060 fi
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3062 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3063 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 ac_cv_prog_cc_c89=no
3067 ac_save_CC=$CC
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3070 #include <stdarg.h>
3071 #include <stdio.h>
3072 #include <sys/types.h>
3073 #include <sys/stat.h>
3074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3075 struct buf { int x; };
3076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3077 static char *e (p, i)
3078 char **p;
3079 int i;
3080 {
3081 return p[i];
3082 }
3083 static char *f (char * (*g) (char **, int), char **p, ...)
3084 {
3085 char *s;
3086 va_list v;
3087 va_start (v,p);
3088 s = g (p, va_arg (v,int));
3089 va_end (v);
3090 return s;
3091 }
3092
3093 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3094 function prototypes and stuff, but not '\xHH' hex character constants.
3095 These don't provoke an error unfortunately, instead are silently treated
3096 as 'x'. The following induces an error, until -std is added to get
3097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3098 array size at least. It's necessary to write '\x00'==0 to get something
3099 that's true only with -std. */
3100 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3101
3102 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3103 inside strings and character constants. */
3104 #define FOO(x) 'x'
3105 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3106
3107 int test (int i, double x);
3108 struct s1 {int (*f) (int a);};
3109 struct s2 {int (*f) (double a);};
3110 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3111 int argc;
3112 char **argv;
3113 int
3114 main ()
3115 {
3116 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3117 ;
3118 return 0;
3119 }
3120 _ACEOF
3121 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3122 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3123 do
3124 CC="$ac_save_CC $ac_arg"
3125 if ac_fn_c_try_compile "$LINENO"; then :
3126 ac_cv_prog_cc_c89=$ac_arg
3127 fi
3128 rm -f core conftest.err conftest.$ac_objext
3129 test "x$ac_cv_prog_cc_c89" != "xno" && break
3130 done
3131 rm -f conftest.$ac_ext
3132 CC=$ac_save_CC
3133
3134 fi
3135 # AC_CACHE_VAL
3136 case "x$ac_cv_prog_cc_c89" in
3137 x)
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3139 $as_echo "none needed" >&6; } ;;
3140 xno)
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3142 $as_echo "unsupported" >&6; } ;;
3143 *)
3144 CC="$CC $ac_cv_prog_cc_c89"
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3146 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3147 esac
3148 if test "x$ac_cv_prog_cc_c89" != xno; then :
3149
3150 fi
3151
3152 ac_ext=c
3153 ac_cpp='$CPP $CPPFLAGS'
3154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157
3158
3159 ac_ext=c
3160 ac_cpp='$CPP $CPPFLAGS'
3161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3165 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3166 # On Suns, sometimes $CPP names a directory.
3167 if test -n "$CPP" && test -d "$CPP"; then
3168 CPP=
3169 fi
3170 if test -z "$CPP"; then
3171 if test "${ac_cv_prog_CPP+set}" = set; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 # Double quotes because CPP needs to be expanded
3175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3176 do
3177 ac_preproc_ok=false
3178 for ac_c_preproc_warn_flag in '' yes
3179 do
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183 # <limits.h> exists even on freestanding compilers.
3184 # On the NeXT, cc -E runs the code through the compiler's parser,
3185 # not just through cpp. "Syntax error" is here to catch this case.
3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h. */
3188 #ifdef __STDC__
3189 # include <limits.h>
3190 #else
3191 # include <assert.h>
3192 #endif
3193 Syntax error
3194 _ACEOF
3195 if ac_fn_c_try_cpp "$LINENO"; then :
3196
3197 else
3198 # Broken: fails on valid input.
3199 continue
3200 fi
3201 rm -f conftest.err conftest.$ac_ext
3202
3203 # OK, works on sane cases. Now check whether nonexistent headers
3204 # can be detected and how.
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3207 #include <ac_nonexistent.h>
3208 _ACEOF
3209 if ac_fn_c_try_cpp "$LINENO"; then :
3210 # Broken: success on invalid input.
3211 continue
3212 else
3213 # Passes both tests.
3214 ac_preproc_ok=:
3215 break
3216 fi
3217 rm -f conftest.err conftest.$ac_ext
3218
3219 done
3220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3221 rm -f conftest.err conftest.$ac_ext
3222 if $ac_preproc_ok; then :
3223 break
3224 fi
3225
3226 done
3227 ac_cv_prog_CPP=$CPP
3228
3229 fi
3230 CPP=$ac_cv_prog_CPP
3231 else
3232 ac_cv_prog_CPP=$CPP
3233 fi
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3235 $as_echo "$CPP" >&6; }
3236 ac_preproc_ok=false
3237 for ac_c_preproc_warn_flag in '' yes
3238 do
3239 # Use a header file that comes with gcc, so configuring glibc
3240 # with a fresh cross-compiler works.
3241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3242 # <limits.h> exists even on freestanding compilers.
3243 # On the NeXT, cc -E runs the code through the compiler's parser,
3244 # not just through cpp. "Syntax error" is here to catch this case.
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h. */
3247 #ifdef __STDC__
3248 # include <limits.h>
3249 #else
3250 # include <assert.h>
3251 #endif
3252 Syntax error
3253 _ACEOF
3254 if ac_fn_c_try_cpp "$LINENO"; then :
3255
3256 else
3257 # Broken: fails on valid input.
3258 continue
3259 fi
3260 rm -f conftest.err conftest.$ac_ext
3261
3262 # OK, works on sane cases. Now check whether nonexistent headers
3263 # can be detected and how.
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3266 #include <ac_nonexistent.h>
3267 _ACEOF
3268 if ac_fn_c_try_cpp "$LINENO"; then :
3269 # Broken: success on invalid input.
3270 continue
3271 else
3272 # Passes both tests.
3273 ac_preproc_ok=:
3274 break
3275 fi
3276 rm -f conftest.err conftest.$ac_ext
3277
3278 done
3279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3280 rm -f conftest.err conftest.$ac_ext
3281 if $ac_preproc_ok; then :
3282
3283 else
3284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3287 See \`config.log' for more details." "$LINENO" 5; }
3288 fi
3289
3290 ac_ext=c
3291 ac_cpp='$CPP $CPPFLAGS'
3292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295
3296
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3298 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3299 if test "${ac_cv_path_GREP+set}" = set; then :
3300 $as_echo_n "(cached) " >&6
3301 else
3302 if test -z "$GREP"; then
3303 ac_path_GREP_found=false
3304 # Loop through the user's path and test for each of PROGNAME-LIST
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3307 do
3308 IFS=$as_save_IFS
3309 test -z "$as_dir" && as_dir=.
3310 for ac_prog in grep ggrep; do
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3313 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3314 # Check for GNU ac_path_GREP and select it if it is found.
3315 # Check for GNU $ac_path_GREP
3316 case `"$ac_path_GREP" --version 2>&1` in
3317 *GNU*)
3318 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3319 *)
3320 ac_count=0
3321 $as_echo_n 0123456789 >"conftest.in"
3322 while :
3323 do
3324 cat "conftest.in" "conftest.in" >"conftest.tmp"
3325 mv "conftest.tmp" "conftest.in"
3326 cp "conftest.in" "conftest.nl"
3327 $as_echo 'GREP' >> "conftest.nl"
3328 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3330 as_fn_arith $ac_count + 1 && ac_count=$as_val
3331 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3332 # Best one so far, save it but keep looking for a better one
3333 ac_cv_path_GREP="$ac_path_GREP"
3334 ac_path_GREP_max=$ac_count
3335 fi
3336 # 10*(2^10) chars as input seems more than enough
3337 test $ac_count -gt 10 && break
3338 done
3339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3340 esac
3341
3342 $ac_path_GREP_found && break 3
3343 done
3344 done
3345 done
3346 IFS=$as_save_IFS
3347 if test -z "$ac_cv_path_GREP"; then
3348 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3349 fi
3350 else
3351 ac_cv_path_GREP=$GREP
3352 fi
3353
3354 fi
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3356 $as_echo "$ac_cv_path_GREP" >&6; }
3357 GREP="$ac_cv_path_GREP"
3358
3359
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3361 $as_echo_n "checking for egrep... " >&6; }
3362 if test "${ac_cv_path_EGREP+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3366 then ac_cv_path_EGREP="$GREP -E"
3367 else
3368 if test -z "$EGREP"; then
3369 ac_path_EGREP_found=false
3370 # Loop through the user's path and test for each of PROGNAME-LIST
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3373 do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_prog in egrep; do
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3379 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3380 # Check for GNU ac_path_EGREP and select it if it is found.
3381 # Check for GNU $ac_path_EGREP
3382 case `"$ac_path_EGREP" --version 2>&1` in
3383 *GNU*)
3384 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3385 *)
3386 ac_count=0
3387 $as_echo_n 0123456789 >"conftest.in"
3388 while :
3389 do
3390 cat "conftest.in" "conftest.in" >"conftest.tmp"
3391 mv "conftest.tmp" "conftest.in"
3392 cp "conftest.in" "conftest.nl"
3393 $as_echo 'EGREP' >> "conftest.nl"
3394 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3395 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3396 as_fn_arith $ac_count + 1 && ac_count=$as_val
3397 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3398 # Best one so far, save it but keep looking for a better one
3399 ac_cv_path_EGREP="$ac_path_EGREP"
3400 ac_path_EGREP_max=$ac_count
3401 fi
3402 # 10*(2^10) chars as input seems more than enough
3403 test $ac_count -gt 10 && break
3404 done
3405 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3406 esac
3407
3408 $ac_path_EGREP_found && break 3
3409 done
3410 done
3411 done
3412 IFS=$as_save_IFS
3413 if test -z "$ac_cv_path_EGREP"; then
3414 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3415 fi
3416 else
3417 ac_cv_path_EGREP=$EGREP
3418 fi
3419
3420 fi
3421 fi
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3423 $as_echo "$ac_cv_path_EGREP" >&6; }
3424 EGREP="$ac_cv_path_EGREP"
3425
3426
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3428 $as_echo_n "checking for ANSI C header files... " >&6; }
3429 if test "${ac_cv_header_stdc+set}" = set; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3434 #include <stdlib.h>
3435 #include <stdarg.h>
3436 #include <string.h>
3437 #include <float.h>
3438
3439 int
3440 main ()
3441 {
3442
3443 ;
3444 return 0;
3445 }
3446 _ACEOF
3447 if ac_fn_c_try_compile "$LINENO"; then :
3448 ac_cv_header_stdc=yes
3449 else
3450 ac_cv_header_stdc=no
3451 fi
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453
3454 if test $ac_cv_header_stdc = yes; then
3455 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3458 #include <string.h>
3459
3460 _ACEOF
3461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3462 $EGREP "memchr" >/dev/null 2>&1; then :
3463
3464 else
3465 ac_cv_header_stdc=no
3466 fi
3467 rm -f conftest*
3468
3469 fi
3470
3471 if test $ac_cv_header_stdc = yes; then
3472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3475 #include <stdlib.h>
3476
3477 _ACEOF
3478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3479 $EGREP "free" >/dev/null 2>&1; then :
3480
3481 else
3482 ac_cv_header_stdc=no
3483 fi
3484 rm -f conftest*
3485
3486 fi
3487
3488 if test $ac_cv_header_stdc = yes; then
3489 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3490 if test "$cross_compiling" = yes; then :
3491 :
3492 else
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3495 #include <ctype.h>
3496 #include <stdlib.h>
3497 #if ((' ' & 0x0FF) == 0x020)
3498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3500 #else
3501 # define ISLOWER(c) \
3502 (('a' <= (c) && (c) <= 'i') \
3503 || ('j' <= (c) && (c) <= 'r') \
3504 || ('s' <= (c) && (c) <= 'z'))
3505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3506 #endif
3507
3508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3509 int
3510 main ()
3511 {
3512 int i;
3513 for (i = 0; i < 256; i++)
3514 if (XOR (islower (i), ISLOWER (i))
3515 || toupper (i) != TOUPPER (i))
3516 return 2;
3517 return 0;
3518 }
3519 _ACEOF
3520 if ac_fn_c_try_run "$LINENO"; then :
3521
3522 else
3523 ac_cv_header_stdc=no
3524 fi
3525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3526 conftest.$ac_objext conftest.beam conftest.$ac_ext
3527 fi
3528
3529 fi
3530 fi
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3532 $as_echo "$ac_cv_header_stdc" >&6; }
3533 if test $ac_cv_header_stdc = yes; then
3534
3535 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3536
3537 fi
3538
3539 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3540 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3541 inttypes.h stdint.h unistd.h
3542 do :
3543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3544 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3545 "
3546 eval as_val=\$$as_ac_Header
3547 if test "x$as_val" = x""yes; then :
3548 cat >>confdefs.h <<_ACEOF
3549 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3550 _ACEOF
3551
3552 fi
3553
3554 done
3555
3556
3557
3558 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3559 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3560 MINIX=yes
3561 else
3562 MINIX=
3563 fi
3564
3565
3566 if test "$MINIX" = yes; then
3567
3568 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3569
3570
3571 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3572
3573
3574 $as_echo "#define _MINIX 1" >>confdefs.h
3575
3576 fi
3577
3578
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3580 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3581 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3586
3587 # define __EXTENSIONS__ 1
3588 $ac_includes_default
3589 int
3590 main ()
3591 {
3592
3593 ;
3594 return 0;
3595 }
3596 _ACEOF
3597 if ac_fn_c_try_compile "$LINENO"; then :
3598 ac_cv_safe_to_define___extensions__=yes
3599 else
3600 ac_cv_safe_to_define___extensions__=no
3601 fi
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 fi
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3605 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3606 test $ac_cv_safe_to_define___extensions__ = yes &&
3607 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3608
3609 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3610
3611 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3612
3613 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3614
3615 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3616
3617
3618
3619 am__api_version='1.11'
3620
3621 ac_aux_dir=
3622 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3623 for ac_t in install-sh install.sh shtool; do
3624 if test -f "$ac_dir/$ac_t"; then
3625 ac_aux_dir=$ac_dir
3626 ac_install_sh="$ac_aux_dir/$ac_t -c"
3627 break 2
3628 fi
3629 done
3630 done
3631 if test -z "$ac_aux_dir"; then
3632 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3633 fi
3634
3635 # These three variables are undocumented and unsupported,
3636 # and are intended to be withdrawn in a future Autoconf release.
3637 # They can cause serious problems if a builder's source tree is in a directory
3638 # whose full name contains unusual characters.
3639 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3640 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3641 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3642
3643
3644 # Find a good install program. We prefer a C program (faster),
3645 # so one script is as good as another. But avoid the broken or
3646 # incompatible versions:
3647 # SysV /etc/install, /usr/sbin/install
3648 # SunOS /usr/etc/install
3649 # IRIX /sbin/install
3650 # AIX /bin/install
3651 # AmigaOS /C/install, which installs bootblocks on floppy discs
3652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3655 # OS/2's system install, which has a completely different semantic
3656 # ./install, which can be erroneously created by make from ./install.sh.
3657 # Reject install programs that cannot install multiple files.
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3659 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3660 if test -z "$INSTALL"; then
3661 if test "${ac_cv_path_install+set}" = set; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH
3666 do
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 # Account for people who put trailing slashes in PATH elements.
3670 case $as_dir/ in #((
3671 ./ | .// | /[cC]/* | \
3672 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3673 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3674 /usr/ucb/* ) ;;
3675 *)
3676 # OSF1 and SCO ODT 3.0 have their own names for install.
3677 # Don't use installbsd from OSF since it installs stuff as root
3678 # by default.
3679 for ac_prog in ginstall scoinst install; do
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3682 if test $ac_prog = install &&
3683 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3684 # AIX install. It has an incompatible calling convention.
3685 :
3686 elif test $ac_prog = install &&
3687 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3688 # program-specific install script used by HP pwplus--don't use.
3689 :
3690 else
3691 rm -rf conftest.one conftest.two conftest.dir
3692 echo one > conftest.one
3693 echo two > conftest.two
3694 mkdir conftest.dir
3695 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3696 test -s conftest.one && test -s conftest.two &&
3697 test -s conftest.dir/conftest.one &&
3698 test -s conftest.dir/conftest.two
3699 then
3700 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3701 break 3
3702 fi
3703 fi
3704 fi
3705 done
3706 done
3707 ;;
3708 esac
3709
3710 done
3711 IFS=$as_save_IFS
3712
3713 rm -rf conftest.one conftest.two conftest.dir
3714
3715 fi
3716 if test "${ac_cv_path_install+set}" = set; then
3717 INSTALL=$ac_cv_path_install
3718 else
3719 # As a last resort, use the slow shell script. Don't cache a
3720 # value for INSTALL within a source directory, because that will
3721 # break other packages using the cache if that directory is
3722 # removed, or if the value is a relative name.
3723 INSTALL=$ac_install_sh
3724 fi
3725 fi
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3727 $as_echo "$INSTALL" >&6; }
3728
3729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3730 # It thinks the first close brace ends the variable substitution.
3731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3732
3733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3734
3735 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3736
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3738 $as_echo_n "checking whether build environment is sane... " >&6; }
3739 # Just in case
3740 sleep 1
3741 echo timestamp > conftest.file
3742 # Reject unsafe characters in $srcdir or the absolute working directory
3743 # name. Accept space and tab only in the latter.
3744 am_lf='
3745 '
3746 case `pwd` in
3747 *[\\\"\#\$\&\'\`$am_lf]*)
3748 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3749 esac
3750 case $srcdir in
3751 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3752 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3753 esac
3754
3755 # Do `set' in a subshell so we don't clobber the current shell's
3756 # arguments. Must try -L first in case configure is actually a
3757 # symlink; some systems play weird games with the mod time of symlinks
3758 # (eg FreeBSD returns the mod time of the symlink's containing
3759 # directory).
3760 if (
3761 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3762 if test "$*" = "X"; then
3763 # -L didn't work.
3764 set X `ls -t "$srcdir/configure" conftest.file`
3765 fi
3766 rm -f conftest.file
3767 if test "$*" != "X $srcdir/configure conftest.file" \
3768 && test "$*" != "X conftest.file $srcdir/configure"; then
3769
3770 # If neither matched, then we have a broken ls. This can happen
3771 # if, for instance, CONFIG_SHELL is bash and it inherits a
3772 # broken ls alias from the environment. This has actually
3773 # happened. Such a system could not be considered "sane".
3774 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3775 alias in your environment" "$LINENO" 5
3776 fi
3777
3778 test "$2" = conftest.file
3779 )
3780 then
3781 # Ok.
3782 :
3783 else
3784 as_fn_error "newly created file is older than distributed files!
3785 Check your system clock" "$LINENO" 5
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3788 $as_echo "yes" >&6; }
3789 test "$program_prefix" != NONE &&
3790 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3791 # Use a double $ so make ignores it.
3792 test "$program_suffix" != NONE &&
3793 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3794 # Double any \ or $.
3795 # By default was `s,x,x', remove it if useless.
3796 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3797 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3798
3799 # expand $ac_aux_dir to an absolute path
3800 am_aux_dir=`cd $ac_aux_dir && pwd`
3801
3802 if test x"${MISSING+set}" != xset; then
3803 case $am_aux_dir in
3804 *\ * | *\ *)
3805 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3806 *)
3807 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3808 esac
3809 fi
3810 # Use eval to expand $SHELL
3811 if eval "$MISSING --run true"; then
3812 am_missing_run="$MISSING --run "
3813 else
3814 am_missing_run=
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3816 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3817 fi
3818
3819 if test x"${install_sh}" != xset; then
3820 case $am_aux_dir in
3821 *\ * | *\ *)
3822 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3823 *)
3824 install_sh="\${SHELL} $am_aux_dir/install-sh"
3825 esac
3826 fi
3827
3828 # Installed binaries are usually stripped using `strip' when the user
3829 # run `make install-strip'. However `strip' might not be the right
3830 # tool to use in cross-compilation environments, therefore Automake
3831 # will honor the `STRIP' environment variable to overrule this program.
3832 if test "$cross_compiling" != no; then
3833 if test -n "$ac_tool_prefix"; then
3834 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3835 set dummy ${ac_tool_prefix}strip; ac_word=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if test "${ac_cv_prog_STRIP+set}" = set; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 if test -n "$STRIP"; then
3842 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3843 else
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3846 do
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 break 2
3854 fi
3855 done
3856 done
3857 IFS=$as_save_IFS
3858
3859 fi
3860 fi
3861 STRIP=$ac_cv_prog_STRIP
3862 if test -n "$STRIP"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3864 $as_echo "$STRIP" >&6; }
3865 else
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3868 fi
3869
3870
3871 fi
3872 if test -z "$ac_cv_prog_STRIP"; then
3873 ac_ct_STRIP=$STRIP
3874 # Extract the first word of "strip", so it can be a program name with args.
3875 set dummy strip; ac_word=$2
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 $as_echo_n "checking for $ac_word... " >&6; }
3878 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 if test -n "$ac_ct_STRIP"; then
3882 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3883 else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3891 ac_cv_prog_ac_ct_STRIP="strip"
3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 break 2
3894 fi
3895 done
3896 done
3897 IFS=$as_save_IFS
3898
3899 fi
3900 fi
3901 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3902 if test -n "$ac_ct_STRIP"; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3904 $as_echo "$ac_ct_STRIP" >&6; }
3905 else
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3908 fi
3909
3910 if test "x$ac_ct_STRIP" = x; then
3911 STRIP=":"
3912 else
3913 case $cross_compiling:$ac_tool_warned in
3914 yes:)
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3917 ac_tool_warned=yes ;;
3918 esac
3919 STRIP=$ac_ct_STRIP
3920 fi
3921 else
3922 STRIP="$ac_cv_prog_STRIP"
3923 fi
3924
3925 fi
3926 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3927
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3929 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3930 if test -z "$MKDIR_P"; then
3931 if test "${ac_cv_path_mkdir+set}" = set; then :
3932 $as_echo_n "(cached) " >&6
3933 else
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3936 do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_prog in mkdir gmkdir; do
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3942 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3943 'mkdir (GNU coreutils) '* | \
3944 'mkdir (coreutils) '* | \
3945 'mkdir (fileutils) '4.1*)
3946 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3947 break 3;;
3948 esac
3949 done
3950 done
3951 done
3952 IFS=$as_save_IFS
3953
3954 fi
3955
3956 test -d ./--version && rmdir ./--version
3957 if test "${ac_cv_path_mkdir+set}" = set; then
3958 MKDIR_P="$ac_cv_path_mkdir -p"
3959 else
3960 # As a last resort, use the slow shell script. Don't cache a
3961 # value for MKDIR_P within a source directory, because that will
3962 # break other packages using the cache if that directory is
3963 # removed, or if the value is a relative name.
3964 MKDIR_P="$ac_install_sh -d"
3965 fi
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3968 $as_echo "$MKDIR_P" >&6; }
3969
3970 mkdir_p="$MKDIR_P"
3971 case $mkdir_p in
3972 [\\/$]* | ?:[\\/]*) ;;
3973 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3974 esac
3975
3976 for ac_prog in gawk mawk nawk awk
3977 do
3978 # Extract the first word of "$ac_prog", so it can be a program name with args.
3979 set dummy $ac_prog; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if test "${ac_cv_prog_AWK+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 if test -n "$AWK"; then
3986 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 ac_cv_prog_AWK="$ac_prog"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3998 fi
3999 done
4000 done
4001 IFS=$as_save_IFS
4002
4003 fi
4004 fi
4005 AWK=$ac_cv_prog_AWK
4006 if test -n "$AWK"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4008 $as_echo "$AWK" >&6; }
4009 else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4012 fi
4013
4014
4015 test -n "$AWK" && break
4016 done
4017
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4019 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4020 set x ${MAKE-make}
4021 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4022 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 cat >conftest.make <<\_ACEOF
4026 SHELL = /bin/sh
4027 all:
4028 @echo '@@@%%%=$(MAKE)=@@@%%%'
4029 _ACEOF
4030 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4031 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4032 *@@@%%%=?*=@@@%%%*)
4033 eval ac_cv_prog_make_${ac_make}_set=yes;;
4034 *)
4035 eval ac_cv_prog_make_${ac_make}_set=no;;
4036 esac
4037 rm -f conftest.make
4038 fi
4039 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4041 $as_echo "yes" >&6; }
4042 SET_MAKE=
4043 else
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4046 SET_MAKE="MAKE=${MAKE-make}"
4047 fi
4048
4049 rm -rf .tst 2>/dev/null
4050 mkdir .tst 2>/dev/null
4051 if test -d .tst; then
4052 am__leading_dot=.
4053 else
4054 am__leading_dot=_
4055 fi
4056 rmdir .tst 2>/dev/null
4057
4058 DEPDIR="${am__leading_dot}deps"
4059
4060 ac_config_commands="$ac_config_commands depfiles"
4061
4062
4063 am_make=${MAKE-make}
4064 cat > confinc << 'END'
4065 am__doit:
4066 @echo this is the am__doit target
4067 .PHONY: am__doit
4068 END
4069 # If we don't find an include directive, just comment out the code.
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4071 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4072 am__include="#"
4073 am__quote=
4074 _am_result=none
4075 # First try GNU make style include.
4076 echo "include confinc" > confmf
4077 # Ignore all kinds of additional output from `make'.
4078 case `$am_make -s -f confmf 2> /dev/null` in #(
4079 *the\ am__doit\ target*)
4080 am__include=include
4081 am__quote=
4082 _am_result=GNU
4083 ;;
4084 esac
4085 # Now try BSD make style include.
4086 if test "$am__include" = "#"; then
4087 echo '.include "confinc"' > confmf
4088 case `$am_make -s -f confmf 2> /dev/null` in #(
4089 *the\ am__doit\ target*)
4090 am__include=.include
4091 am__quote="\""
4092 _am_result=BSD
4093 ;;
4094 esac
4095 fi
4096
4097
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4099 $as_echo "$_am_result" >&6; }
4100 rm -f confinc confmf
4101
4102 # Check whether --enable-dependency-tracking was given.
4103 if test "${enable_dependency_tracking+set}" = set; then :
4104 enableval=$enable_dependency_tracking;
4105 fi
4106
4107 if test "x$enable_dependency_tracking" != xno; then
4108 am_depcomp="$ac_aux_dir/depcomp"
4109 AMDEPBACKSLASH='\'
4110 fi
4111 if test "x$enable_dependency_tracking" != xno; then
4112 AMDEP_TRUE=
4113 AMDEP_FALSE='#'
4114 else
4115 AMDEP_TRUE='#'
4116 AMDEP_FALSE=
4117 fi
4118
4119
4120 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4121 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4122 # is not polluted with repeated "-I."
4123 am__isrc=' -I$(srcdir)'
4124 # test to see if srcdir already configured
4125 if test -f $srcdir/config.status; then
4126 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4127 fi
4128 fi
4129
4130 # test whether we have cygpath
4131 if test -z "$CYGPATH_W"; then
4132 if (cygpath --version) >/dev/null 2>/dev/null; then
4133 CYGPATH_W='cygpath -w'
4134 else
4135 CYGPATH_W=echo
4136 fi
4137 fi
4138
4139
4140 # Define the identity of the package.
4141 PACKAGE='libedit-20100424'
4142 VERSION='3.0'
4143
4144
4145 cat >>confdefs.h <<_ACEOF
4146 #define PACKAGE "$PACKAGE"
4147 _ACEOF
4148
4149
4150 cat >>confdefs.h <<_ACEOF
4151 #define VERSION "$VERSION"
4152 _ACEOF
4153
4154 # Some tools Automake needs.
4155
4156 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4157
4158
4159 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4160
4161
4162 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4163
4164
4165 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4166
4167
4168 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4169
4170 # We need awk for the "check" target. The system "awk" is bad on
4171 # some platforms.
4172 # Always define AMTAR for backward compatibility.
4173
4174 AMTAR=${AMTAR-"${am_missing_run}tar"}
4175
4176 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4177
4178
4179
4180
4181 depcc="$CC" am_compiler_list=
4182
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4184 $as_echo_n "checking dependency style of $depcc... " >&6; }
4185 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4189 # We make a subdir and do the tests there. Otherwise we can end up
4190 # making bogus files that we don't know about and never remove. For
4191 # instance it was reported that on HP-UX the gcc test will end up
4192 # making a dummy file named `D' -- because `-MD' means `put the output
4193 # in D'.
4194 mkdir conftest.dir
4195 # Copy depcomp to subdir because otherwise we won't find it if we're
4196 # using a relative directory.
4197 cp "$am_depcomp" conftest.dir
4198 cd conftest.dir
4199 # We will build objects and dependencies in a subdirectory because
4200 # it helps to detect inapplicable dependency modes. For instance
4201 # both Tru64's cc and ICC support -MD to output dependencies as a
4202 # side effect of compilation, but ICC will put the dependencies in
4203 # the current directory while Tru64 will put them in the object
4204 # directory.
4205 mkdir sub
4206
4207 am_cv_CC_dependencies_compiler_type=none
4208 if test "$am_compiler_list" = ""; then
4209 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4210 fi
4211 am__universal=false
4212 case " $depcc " in #(
4213 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4214 esac
4215
4216 for depmode in $am_compiler_list; do
4217 # Setup a source with many dependencies, because some compilers
4218 # like to wrap large dependency lists on column 80 (with \), and
4219 # we should not choose a depcomp mode which is confused by this.
4220 #
4221 # We need to recreate these files for each test, as the compiler may
4222 # overwrite some of them when testing with obscure command lines.
4223 # This happens at least with the AIX C compiler.
4224 : > sub/conftest.c
4225 for i in 1 2 3 4 5 6; do
4226 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4227 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4228 # Solaris 8's {/usr,}/bin/sh.
4229 touch sub/conftst$i.h
4230 done
4231 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4232
4233 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4234 # mode. It turns out that the SunPro C++ compiler does not properly
4235 # handle `-M -o', and we need to detect this. Also, some Intel
4236 # versions had trouble with output in subdirs
4237 am__obj=sub/conftest.${OBJEXT-o}
4238 am__minus_obj="-o $am__obj"
4239 case $depmode in
4240 gcc)
4241 # This depmode causes a compiler race in universal mode.
4242 test "$am__universal" = false || continue
4243 ;;
4244 nosideeffect)
4245 # after this tag, mechanisms are not by side-effect, so they'll
4246 # only be used when explicitly requested
4247 if test "x$enable_dependency_tracking" = xyes; then
4248 continue
4249 else
4250 break
4251 fi
4252 ;;
4253 msvisualcpp | msvcmsys)
4254 # This compiler won't grok `-c -o', but also, the minuso test has
4255 # not run yet. These depmodes are late enough in the game, and
4256 # so weak that their functioning should not be impacted.
4257 am__obj=conftest.${OBJEXT-o}
4258 am__minus_obj=
4259 ;;
4260 none) break ;;
4261 esac
4262 if depmode=$depmode \
4263 source=sub/conftest.c object=$am__obj \
4264 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4265 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4266 >/dev/null 2>conftest.err &&
4267 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4269 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4271 # icc doesn't choke on unknown options, it will just issue warnings
4272 # or remarks (even with -Werror). So we grep stderr for any message
4273 # that says an option was ignored or not supported.
4274 # When given -MP, icc 7.0 and 7.1 complain thusly:
4275 # icc: Command line warning: ignoring option '-M'; no argument required
4276 # The diagnosis changed in icc 8.0:
4277 # icc: Command line remark: option '-MP' not supported
4278 if (grep 'ignoring option' conftest.err ||
4279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4280 am_cv_CC_dependencies_compiler_type=$depmode
4281 break
4282 fi
4283 fi
4284 done
4285
4286 cd ..
4287 rm -rf conftest.dir
4288 else
4289 am_cv_CC_dependencies_compiler_type=none
4290 fi
4291
4292 fi
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4294 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4295 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4296
4297 if
4298 test "x$enable_dependency_tracking" != xno \
4299 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4300 am__fastdepCC_TRUE=
4301 am__fastdepCC_FALSE='#'
4302 else
4303 am__fastdepCC_TRUE='#'
4304 am__fastdepCC_FALSE=
4305 fi
4306
4307
4308
4309 case `pwd` in
4310 *\ * | *\ *)
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4312 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4313 esac
4314
4315
4316
4317 macro_version='2.2.6b'
4318 macro_revision='1.3017'
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332 ltmain="$ac_aux_dir/ltmain.sh"
4333
4334 # Make sure we can run config.sub.
4335 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4336 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4337
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4339 $as_echo_n "checking build system type... " >&6; }
4340 if test "${ac_cv_build+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 ac_build_alias=$build_alias
4344 test "x$ac_build_alias" = x &&
4345 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4346 test "x$ac_build_alias" = x &&
4347 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4348 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4349 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4350
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4353 $as_echo "$ac_cv_build" >&6; }
4354 case $ac_cv_build in
4355 *-*-*) ;;
4356 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4357 esac
4358 build=$ac_cv_build
4359 ac_save_IFS=$IFS; IFS='-'
4360 set x $ac_cv_build
4361 shift
4362 build_cpu=$1
4363 build_vendor=$2
4364 shift; shift
4365 # Remember, the first character of IFS is used to create $*,
4366 # except with old shells:
4367 build_os=$*
4368 IFS=$ac_save_IFS
4369 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4370
4371
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4373 $as_echo_n "checking host system type... " >&6; }
4374 if test "${ac_cv_host+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 if test "x$host_alias" = x; then
4378 ac_cv_host=$ac_cv_build
4379 else
4380 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4381 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4382 fi
4383
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4386 $as_echo "$ac_cv_host" >&6; }
4387 case $ac_cv_host in
4388 *-*-*) ;;
4389 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4390 esac
4391 host=$ac_cv_host
4392 ac_save_IFS=$IFS; IFS='-'
4393 set x $ac_cv_host
4394 shift
4395 host_cpu=$1
4396 host_vendor=$2
4397 shift; shift
4398 # Remember, the first character of IFS is used to create $*,
4399 # except with old shells:
4400 host_os=$*
4401 IFS=$ac_save_IFS
4402 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4403
4404
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4406 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4407 if test "${ac_cv_path_SED+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4411 for ac_i in 1 2 3 4 5 6 7; do
4412 ac_script="$ac_script$as_nl$ac_script"
4413 done
4414 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4415 { ac_script=; unset ac_script;}
4416 if test -z "$SED"; then
4417 ac_path_SED_found=false
4418 # Loop through the user's path and test for each of PROGNAME-LIST
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH
4421 do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_prog in sed gsed; do
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4427 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4428 # Check for GNU ac_path_SED and select it if it is found.
4429 # Check for GNU $ac_path_SED
4430 case `"$ac_path_SED" --version 2>&1` in
4431 *GNU*)
4432 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4433 *)
4434 ac_count=0
4435 $as_echo_n 0123456789 >"conftest.in"
4436 while :
4437 do
4438 cat "conftest.in" "conftest.in" >"conftest.tmp"
4439 mv "conftest.tmp" "conftest.in"
4440 cp "conftest.in" "conftest.nl"
4441 $as_echo '' >> "conftest.nl"
4442 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4444 as_fn_arith $ac_count + 1 && ac_count=$as_val
4445 if test $ac_count -gt ${ac_path_SED_max-0}; then
4446 # Best one so far, save it but keep looking for a better one
4447 ac_cv_path_SED="$ac_path_SED"
4448 ac_path_SED_max=$ac_count
4449 fi
4450 # 10*(2^10) chars as input seems more than enough
4451 test $ac_count -gt 10 && break
4452 done
4453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454 esac
4455
4456 $ac_path_SED_found && break 3
4457 done
4458 done
4459 done
4460 IFS=$as_save_IFS
4461 if test -z "$ac_cv_path_SED"; then
4462 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4463 fi
4464 else
4465 ac_cv_path_SED=$SED
4466 fi
4467
4468 fi
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4470 $as_echo "$ac_cv_path_SED" >&6; }
4471 SED="$ac_cv_path_SED"
4472 rm -f conftest.sed
4473
4474 test -z "$SED" && SED=sed
4475 Xsed="$SED -e 1s/^X//"
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4488 $as_echo_n "checking for fgrep... " >&6; }
4489 if test "${ac_cv_path_FGREP+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4493 then ac_cv_path_FGREP="$GREP -F"
4494 else
4495 if test -z "$FGREP"; then
4496 ac_path_FGREP_found=false
4497 # Loop through the user's path and test for each of PROGNAME-LIST
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4500 do
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_prog in fgrep; do
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4506 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4507 # Check for GNU ac_path_FGREP and select it if it is found.
4508 # Check for GNU $ac_path_FGREP
4509 case `"$ac_path_FGREP" --version 2>&1` in
4510 *GNU*)
4511 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4512 *)
4513 ac_count=0
4514 $as_echo_n 0123456789 >"conftest.in"
4515 while :
4516 do
4517 cat "conftest.in" "conftest.in" >"conftest.tmp"
4518 mv "conftest.tmp" "conftest.in"
4519 cp "conftest.in" "conftest.nl"
4520 $as_echo 'FGREP' >> "conftest.nl"
4521 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4523 as_fn_arith $ac_count + 1 && ac_count=$as_val
4524 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4525 # Best one so far, save it but keep looking for a better one
4526 ac_cv_path_FGREP="$ac_path_FGREP"
4527 ac_path_FGREP_max=$ac_count
4528 fi
4529 # 10*(2^10) chars as input seems more than enough
4530 test $ac_count -gt 10 && break
4531 done
4532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4533 esac
4534
4535 $ac_path_FGREP_found && break 3
4536 done
4537 done
4538 done
4539 IFS=$as_save_IFS
4540 if test -z "$ac_cv_path_FGREP"; then
4541 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4542 fi
4543 else
4544 ac_cv_path_FGREP=$FGREP
4545 fi
4546
4547 fi
4548 fi
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4550 $as_echo "$ac_cv_path_FGREP" >&6; }
4551 FGREP="$ac_cv_path_FGREP"
4552
4553
4554 test -z "$GREP" && GREP=grep
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574 # Check whether --with-gnu-ld was given.
4575 if test "${with_gnu_ld+set}" = set; then :
4576 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4577 else
4578 with_gnu_ld=no
4579 fi
4580
4581 ac_prog=ld
4582 if test "$GCC" = yes; then
4583 # Check if gcc -print-prog-name=ld gives a path.
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4585 $as_echo_n "checking for ld used by $CC... " >&6; }
4586 case $host in
4587 *-*-mingw*)
4588 # gcc leaves a trailing carriage return which upsets mingw
4589 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4590 *)
4591 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4592 esac
4593 case $ac_prog in
4594 # Accept absolute paths.
4595 [\\/]* | ?:[\\/]*)
4596 re_direlt='/[^/][^/]*/\.\./'
4597 # Canonicalize the pathname of ld
4598 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4599 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4600 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4601 done
4602 test -z "$LD" && LD="$ac_prog"
4603 ;;
4604 "")
4605 # If it fails, then pretend we aren't using GCC.
4606 ac_prog=ld
4607 ;;
4608 *)
4609 # If it is relative, then search for the first ld in PATH.
4610 with_gnu_ld=unknown
4611 ;;
4612 esac
4613 elif test "$with_gnu_ld" = yes; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4615 $as_echo_n "checking for GNU ld... " >&6; }
4616 else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4618 $as_echo_n "checking for non-GNU ld... " >&6; }
4619 fi
4620 if test "${lt_cv_path_LD+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if test -z "$LD"; then
4624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4625 for ac_dir in $PATH; do
4626 IFS="$lt_save_ifs"
4627 test -z "$ac_dir" && ac_dir=.
4628 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4629 lt_cv_path_LD="$ac_dir/$ac_prog"
4630 # Check to see if the program is GNU ld. I'd rather use --version,
4631 # but apparently some variants of GNU ld only accept -v.
4632 # Break only if it was the GNU/non-GNU ld that we prefer.
4633 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4634 *GNU* | *'with BFD'*)
4635 test "$with_gnu_ld" != no && break
4636 ;;
4637 *)
4638 test "$with_gnu_ld" != yes && break
4639 ;;
4640 esac
4641 fi
4642 done
4643 IFS="$lt_save_ifs"
4644 else
4645 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4646 fi
4647 fi
4648
4649 LD="$lt_cv_path_LD"
4650 if test -n "$LD"; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4652 $as_echo "$LD" >&6; }
4653 else
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 $as_echo "no" >&6; }
4656 fi
4657 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4659 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4660 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4664 case `$LD -v 2>&1 </dev/null` in
4665 *GNU* | *'with BFD'*)
4666 lt_cv_prog_gnu_ld=yes
4667 ;;
4668 *)
4669 lt_cv_prog_gnu_ld=no
4670 ;;
4671 esac
4672 fi
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4674 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4675 with_gnu_ld=$lt_cv_prog_gnu_ld
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4686 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4687 if test "${lt_cv_path_NM+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if test -n "$NM"; then
4691 # Let the user override the test.
4692 lt_cv_path_NM="$NM"
4693 else
4694 lt_nm_to_check="${ac_tool_prefix}nm"
4695 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4696 lt_nm_to_check="$lt_nm_to_check nm"
4697 fi
4698 for lt_tmp_nm in $lt_nm_to_check; do
4699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4700 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4701 IFS="$lt_save_ifs"
4702 test -z "$ac_dir" && ac_dir=.
4703 tmp_nm="$ac_dir/$lt_tmp_nm"
4704 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4705 # Check to see if the nm accepts a BSD-compat flag.
4706 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4707 # nm: unknown option "B" ignored
4708 # Tru64's nm complains that /dev/null is an invalid object file
4709 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4710 */dev/null* | *'Invalid file or object type'*)
4711 lt_cv_path_NM="$tmp_nm -B"
4712 break
4713 ;;
4714 *)
4715 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4716 */dev/null*)
4717 lt_cv_path_NM="$tmp_nm -p"
4718 break
4719 ;;
4720 *)
4721 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4722 continue # so that we can try to find one that supports BSD flags
4723 ;;
4724 esac
4725 ;;
4726 esac
4727 fi
4728 done
4729 IFS="$lt_save_ifs"
4730 done
4731 : ${lt_cv_path_NM=no}
4732 fi
4733 fi
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4735 $as_echo "$lt_cv_path_NM" >&6; }
4736 if test "$lt_cv_path_NM" != "no"; then
4737 NM="$lt_cv_path_NM"
4738 else
4739 # Didn't find any BSD compatible name lister, look for dumpbin.
4740 if test -n "$ac_tool_prefix"; then
4741 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4742 do
4743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 if test -n "$DUMPBIN"; then
4751 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4763 fi
4764 done
4765 done
4766 IFS=$as_save_IFS
4767
4768 fi
4769 fi
4770 DUMPBIN=$ac_cv_prog_DUMPBIN
4771 if test -n "$DUMPBIN"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4773 $as_echo "$DUMPBIN" >&6; }
4774 else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4777 fi
4778
4779
4780 test -n "$DUMPBIN" && break
4781 done
4782 fi
4783 if test -z "$DUMPBIN"; then
4784 ac_ct_DUMPBIN=$DUMPBIN
4785 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4786 do
4787 # Extract the first word of "$ac_prog", so it can be a program name with args.
4788 set dummy $ac_prog; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -n "$ac_ct_DUMPBIN"; then
4795 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4807 fi
4808 done
4809 done
4810 IFS=$as_save_IFS
4811
4812 fi
4813 fi
4814 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4815 if test -n "$ac_ct_DUMPBIN"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4817 $as_echo "$ac_ct_DUMPBIN" >&6; }
4818 else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4821 fi
4822
4823
4824 test -n "$ac_ct_DUMPBIN" && break
4825 done
4826
4827 if test "x$ac_ct_DUMPBIN" = x; then
4828 DUMPBIN=":"
4829 else
4830 case $cross_compiling:$ac_tool_warned in
4831 yes:)
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned=yes ;;
4835 esac
4836 DUMPBIN=$ac_ct_DUMPBIN
4837 fi
4838 fi
4839
4840
4841 if test "$DUMPBIN" != ":"; then
4842 NM="$DUMPBIN"
4843 fi
4844 fi
4845 test -z "$NM" && NM=nm
4846
4847
4848
4849
4850
4851
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4853 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4854 if test "${lt_cv_nm_interface+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 lt_cv_nm_interface="BSD nm"
4858 echo "int some_variable = 0;" > conftest.$ac_ext
4859 (eval echo "\"\$as_me:4859: $ac_compile\"" >&5)
4860 (eval "$ac_compile" 2>conftest.err)
4861 cat conftest.err >&5
4862 (eval echo "\"\$as_me:4862: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4863 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4864 cat conftest.err >&5
4865 (eval echo "\"\$as_me:4865: output\"" >&5)
4866 cat conftest.out >&5
4867 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4868 lt_cv_nm_interface="MS dumpbin"
4869 fi
4870 rm -f conftest*
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4873 $as_echo "$lt_cv_nm_interface" >&6; }
4874
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4876 $as_echo_n "checking whether ln -s works... " >&6; }
4877 LN_S=$as_ln_s
4878 if test "$LN_S" = "ln -s"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4880 $as_echo "yes" >&6; }
4881 else
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4883 $as_echo "no, using $LN_S" >&6; }
4884 fi
4885
4886 # find the maximum length of command line arguments
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4888 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4889 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 i=0
4893 teststring="ABCD"
4894
4895 case $build_os in
4896 msdosdjgpp*)
4897 # On DJGPP, this test can blow up pretty badly due to problems in libc
4898 # (any single argument exceeding 2000 bytes causes a buffer overrun
4899 # during glob expansion). Even if it were fixed, the result of this
4900 # check would be larger than it should be.
4901 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4902 ;;
4903
4904 gnu*)
4905 # Under GNU Hurd, this test is not required because there is
4906 # no limit to the length of command line arguments.
4907 # Libtool will interpret -1 as no limit whatsoever
4908 lt_cv_sys_max_cmd_len=-1;
4909 ;;
4910
4911 cygwin* | mingw* | cegcc*)
4912 # On Win9x/ME, this test blows up -- it succeeds, but takes
4913 # about 5 minutes as the teststring grows exponentially.
4914 # Worse, since 9x/ME are not pre-emptively multitasking,
4915 # you end up with a "frozen" computer, even though with patience
4916 # the test eventually succeeds (with a max line length of 256k).
4917 # Instead, let's just punt: use the minimum linelength reported by
4918 # all of the supported platforms: 8192 (on NT/2K/XP).
4919 lt_cv_sys_max_cmd_len=8192;
4920 ;;
4921
4922 amigaos*)
4923 # On AmigaOS with pdksh, this test takes hours, literally.
4924 # So we just punt and use a minimum line length of 8192.
4925 lt_cv_sys_max_cmd_len=8192;
4926 ;;
4927
4928 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4929 # This has been around since 386BSD, at least. Likely further.
4930 if test -x /sbin/sysctl; then
4931 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4932 elif test -x /usr/sbin/sysctl; then
4933 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4934 else
4935 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4936 fi
4937 # And add a safety zone
4938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4940 ;;
4941
4942 interix*)
4943 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4944 lt_cv_sys_max_cmd_len=196608
4945 ;;
4946
4947 osf*)
4948 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4949 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4950 # nice to cause kernel panics so lets avoid the loop below.
4951 # First set a reasonable default.
4952 lt_cv_sys_max_cmd_len=16384
4953 #
4954 if test -x /sbin/sysconfig; then
4955 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4956 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4957 esac
4958 fi
4959 ;;
4960 sco3.2v5*)
4961 lt_cv_sys_max_cmd_len=102400
4962 ;;
4963 sysv5* | sco5v6* | sysv4.2uw2*)
4964 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4965 if test -n "$kargmax"; then
4966 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4967 else
4968 lt_cv_sys_max_cmd_len=32768
4969 fi
4970 ;;
4971 *)
4972 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4973 if test -n "$lt_cv_sys_max_cmd_len"; then
4974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4976 else
4977 # Make teststring a little bigger before we do anything with it.
4978 # a 1K string should be a reasonable start.
4979 for i in 1 2 3 4 5 6 7 8 ; do
4980 teststring=$teststring$teststring
4981 done
4982 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4983 # If test is not a shell built-in, we'll probably end up computing a
4984 # maximum length that is only half of the actual maximum length, but
4985 # we can't tell.
4986 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4987 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4988 test $i != 17 # 1/2 MB should be enough
4989 do
4990 i=`expr $i + 1`
4991 teststring=$teststring$teststring
4992 done
4993 # Only check the string length outside the loop.
4994 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4995 teststring=
4996 # Add a significant safety factor because C++ compilers can tack on
4997 # massive amounts of additional arguments before passing them to the
4998 # linker. It appears as though 1/2 is a usable value.
4999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5000 fi
5001 ;;
5002 esac
5003
5004 fi
5005
5006 if test -n $lt_cv_sys_max_cmd_len ; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5008 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5009 else
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5011 $as_echo "none" >&6; }
5012 fi
5013 max_cmd_len=$lt_cv_sys_max_cmd_len
5014
5015
5016
5017
5018
5019
5020 : ${CP="cp -f"}
5021 : ${MV="mv -f"}
5022 : ${RM="rm -f"}
5023
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5025 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5026 # Try some XSI features
5027 xsi_shell=no
5028 ( _lt_dummy="a/b/c"
5029 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5030 = c,a/b,, \
5031 && eval 'test $(( 1 + 1 )) -eq 2 \
5032 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5033 && xsi_shell=yes
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5035 $as_echo "$xsi_shell" >&6; }
5036
5037
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5039 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5040 lt_shell_append=no
5041 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5042 >/dev/null 2>&1 \
5043 && lt_shell_append=yes
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5045 $as_echo "$lt_shell_append" >&6; }
5046
5047
5048 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5049 lt_unset=unset
5050 else
5051 lt_unset=false
5052 fi
5053
5054
5055
5056
5057
5058 # test EBCDIC or ASCII
5059 case `echo X|tr X '\101'` in
5060 A) # ASCII based system
5061 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5062 lt_SP2NL='tr \040 \012'
5063 lt_NL2SP='tr \015\012 \040\040'
5064 ;;
5065 *) # EBCDIC based system
5066 lt_SP2NL='tr \100 \n'
5067 lt_NL2SP='tr \r\n \100\100'
5068 ;;
5069 esac
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5080 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5081 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 lt_cv_ld_reload_flag='-r'
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5087 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5088 reload_flag=$lt_cv_ld_reload_flag
5089 case $reload_flag in
5090 "" | " "*) ;;
5091 *) reload_flag=" $reload_flag" ;;
5092 esac
5093 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5094 case $host_os in
5095 darwin*)
5096 if test "$GCC" = yes; then
5097 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5098 else
5099 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5100 fi
5101 ;;
5102 esac
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112 if test -n "$ac_tool_prefix"; then
5113 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5114 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 if test -n "$OBJDUMP"; then
5121 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5122 else
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 break 2
5133 fi
5134 done
5135 done
5136 IFS=$as_save_IFS
5137
5138 fi
5139 fi
5140 OBJDUMP=$ac_cv_prog_OBJDUMP
5141 if test -n "$OBJDUMP"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5143 $as_echo "$OBJDUMP" >&6; }
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5147 fi
5148
5149
5150 fi
5151 if test -z "$ac_cv_prog_OBJDUMP"; then
5152 ac_ct_OBJDUMP=$OBJDUMP
5153 # Extract the first word of "objdump", so it can be a program name with args.
5154 set dummy objdump; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 if test -n "$ac_ct_OBJDUMP"; then
5161 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5162 else
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174 done
5175 done
5176 IFS=$as_save_IFS
5177
5178 fi
5179 fi
5180 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5181 if test -n "$ac_ct_OBJDUMP"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5183 $as_echo "$ac_ct_OBJDUMP" >&6; }
5184 else
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5187 fi
5188
5189 if test "x$ac_ct_OBJDUMP" = x; then
5190 OBJDUMP="false"
5191 else
5192 case $cross_compiling:$ac_tool_warned in
5193 yes:)
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5196 ac_tool_warned=yes ;;
5197 esac
5198 OBJDUMP=$ac_ct_OBJDUMP
5199 fi
5200 else
5201 OBJDUMP="$ac_cv_prog_OBJDUMP"
5202 fi
5203
5204 test -z "$OBJDUMP" && OBJDUMP=objdump
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5215 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5216 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 lt_cv_file_magic_cmd='$MAGIC_CMD'
5220 lt_cv_file_magic_test_file=
5221 lt_cv_deplibs_check_method='unknown'
5222 # Need to set the preceding variable on all platforms that support
5223 # interlibrary dependencies.
5224 # 'none' -- dependencies not supported.
5225 # `unknown' -- same as none, but documents that we really don't know.
5226 # 'pass_all' -- all dependencies passed with no checks.
5227 # 'test_compile' -- check by making test program.
5228 # 'file_magic [[regex]]' -- check by looking for files in library path
5229 # which responds to the $file_magic_cmd with a given extended regex.
5230 # If you have `file' or equivalent on your system and you're not sure
5231 # whether `pass_all' will *always* work, you probably want this one.
5232
5233 case $host_os in
5234 aix[4-9]*)
5235 lt_cv_deplibs_check_method=pass_all
5236 ;;
5237
5238 beos*)
5239 lt_cv_deplibs_check_method=pass_all
5240 ;;
5241
5242 bsdi[45]*)
5243 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5244 lt_cv_file_magic_cmd='/usr/bin/file -L'
5245 lt_cv_file_magic_test_file=/shlib/libc.so
5246 ;;
5247
5248 cygwin*)
5249 # func_win32_libid is a shell function defined in ltmain.sh
5250 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5251 lt_cv_file_magic_cmd='func_win32_libid'
5252 ;;
5253
5254 mingw* | pw32*)
5255 # Base MSYS/MinGW do not provide the 'file' command needed by
5256 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5257 # unless we find 'file', for example because we are cross-compiling.
5258 if ( file / ) >/dev/null 2>&1; then
5259 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5260 lt_cv_file_magic_cmd='func_win32_libid'
5261 else
5262 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5263 lt_cv_file_magic_cmd='$OBJDUMP -f'
5264 fi
5265 ;;
5266
5267 cegcc)
5268 # use the weaker test based on 'objdump'. See mingw*.
5269 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5270 lt_cv_file_magic_cmd='$OBJDUMP -f'
5271 ;;
5272
5273 darwin* | rhapsody*)
5274 lt_cv_deplibs_check_method=pass_all
5275 ;;
5276
5277 freebsd* | dragonfly*)
5278 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5279 case $host_cpu in
5280 i*86 )
5281 # Not sure whether the presence of OpenBSD here was a mistake.
5282 # Let's accept both of them until this is cleared up.
5283 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5284 lt_cv_file_magic_cmd=/usr/bin/file
5285 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5286 ;;
5287 esac
5288 else
5289 lt_cv_deplibs_check_method=pass_all
5290 fi
5291 ;;
5292
5293 gnu*)
5294 lt_cv_deplibs_check_method=pass_all
5295 ;;
5296
5297 hpux10.20* | hpux11*)
5298 lt_cv_file_magic_cmd=/usr/bin/file
5299 case $host_cpu in
5300 ia64*)
5301 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5302 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5303 ;;
5304 hppa*64*)
5305 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]'
5306 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5307 ;;
5308 *)
5309 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5310 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5311 ;;
5312 esac
5313 ;;
5314
5315 interix[3-9]*)
5316 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5318 ;;
5319
5320 irix5* | irix6* | nonstopux*)
5321 case $LD in
5322 *-32|*"-32 ") libmagic=32-bit;;
5323 *-n32|*"-n32 ") libmagic=N32;;
5324 *-64|*"-64 ") libmagic=64-bit;;
5325 *) libmagic=never-match;;
5326 esac
5327 lt_cv_deplibs_check_method=pass_all
5328 ;;
5329
5330 # This must be Linux ELF.
5331 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5332 lt_cv_deplibs_check_method=pass_all
5333 ;;
5334
5335 netbsd* | netbsdelf*-gnu)
5336 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5338 else
5339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5340 fi
5341 ;;
5342
5343 newos6*)
5344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5345 lt_cv_file_magic_cmd=/usr/bin/file
5346 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5347 ;;
5348
5349 *nto* | *qnx*)
5350 lt_cv_deplibs_check_method=pass_all
5351 ;;
5352
5353 openbsd*)
5354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5356 else
5357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5358 fi
5359 ;;
5360
5361 osf3* | osf4* | osf5*)
5362 lt_cv_deplibs_check_method=pass_all
5363 ;;
5364
5365 rdos*)
5366 lt_cv_deplibs_check_method=pass_all
5367 ;;
5368
5369 solaris*)
5370 lt_cv_deplibs_check_method=pass_all
5371 ;;
5372
5373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5374 lt_cv_deplibs_check_method=pass_all
5375 ;;
5376
5377 sysv4 | sysv4.3*)
5378 case $host_vendor in
5379 motorola)
5380 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]'
5381 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5382 ;;
5383 ncr)
5384 lt_cv_deplibs_check_method=pass_all
5385 ;;
5386 sequent)
5387 lt_cv_file_magic_cmd='/bin/file'
5388 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5389 ;;
5390 sni)
5391 lt_cv_file_magic_cmd='/bin/file'
5392 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5393 lt_cv_file_magic_test_file=/lib/libc.so
5394 ;;
5395 siemens)
5396 lt_cv_deplibs_check_method=pass_all
5397 ;;
5398 pc)
5399 lt_cv_deplibs_check_method=pass_all
5400 ;;
5401 esac
5402 ;;
5403
5404 tpf*)
5405 lt_cv_deplibs_check_method=pass_all
5406 ;;
5407 esac
5408
5409 fi
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5411 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5412 file_magic_cmd=$lt_cv_file_magic_cmd
5413 deplibs_check_method=$lt_cv_deplibs_check_method
5414 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427 if test -n "$ac_tool_prefix"; then
5428 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5429 set dummy ${ac_tool_prefix}ar; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if test "${ac_cv_prog_AR+set}" = set; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 if test -n "$AR"; then
5436 ac_cv_prog_AR="$AR" # Let the user override the test.
5437 else
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5440 do
5441 IFS=$as_save_IFS
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5445 ac_cv_prog_AR="${ac_tool_prefix}ar"
5446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 break 2
5448 fi
5449 done
5450 done
5451 IFS=$as_save_IFS
5452
5453 fi
5454 fi
5455 AR=$ac_cv_prog_AR
5456 if test -n "$AR"; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5458 $as_echo "$AR" >&6; }
5459 else
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5462 fi
5463
5464
5465 fi
5466 if test -z "$ac_cv_prog_AR"; then
5467 ac_ct_AR=$AR
5468 # Extract the first word of "ar", so it can be a program name with args.
5469 set dummy ar; ac_word=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 if test -n "$ac_ct_AR"; then
5476 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5480 do
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5485 ac_cv_prog_ac_ct_AR="ar"
5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5488 fi
5489 done
5490 done
5491 IFS=$as_save_IFS
5492
5493 fi
5494 fi
5495 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5496 if test -n "$ac_ct_AR"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5498 $as_echo "$ac_ct_AR" >&6; }
5499 else
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5502 fi
5503
5504 if test "x$ac_ct_AR" = x; then
5505 AR="false"
5506 else
5507 case $cross_compiling:$ac_tool_warned in
5508 yes:)
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5511 ac_tool_warned=yes ;;
5512 esac
5513 AR=$ac_ct_AR
5514 fi
5515 else
5516 AR="$ac_cv_prog_AR"
5517 fi
5518
5519 test -z "$AR" && AR=ar
5520 test -z "$AR_FLAGS" && AR_FLAGS=cru
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532 if test -n "$ac_tool_prefix"; then
5533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5534 set dummy ${ac_tool_prefix}strip; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if test "${ac_cv_prog_STRIP+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 if test -n "$STRIP"; then
5541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5553 fi
5554 done
5555 done
5556 IFS=$as_save_IFS
5557
5558 fi
5559 fi
5560 STRIP=$ac_cv_prog_STRIP
5561 if test -n "$STRIP"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5563 $as_echo "$STRIP" >&6; }
5564 else
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5567 fi
5568
5569
5570 fi
5571 if test -z "$ac_cv_prog_STRIP"; then
5572 ac_ct_STRIP=$STRIP
5573 # Extract the first word of "strip", so it can be a program name with args.
5574 set dummy strip; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 if test -n "$ac_ct_STRIP"; then
5581 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5582 else
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH
5585 do
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5590 ac_cv_prog_ac_ct_STRIP="strip"
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 break 2
5593 fi
5594 done
5595 done
5596 IFS=$as_save_IFS
5597
5598 fi
5599 fi
5600 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5601 if test -n "$ac_ct_STRIP"; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5603 $as_echo "$ac_ct_STRIP" >&6; }
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5607 fi
5608
5609 if test "x$ac_ct_STRIP" = x; then
5610 STRIP=":"
5611 else
5612 case $cross_compiling:$ac_tool_warned in
5613 yes:)
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5616 ac_tool_warned=yes ;;
5617 esac
5618 STRIP=$ac_ct_STRIP
5619 fi
5620 else
5621 STRIP="$ac_cv_prog_STRIP"
5622 fi
5623
5624 test -z "$STRIP" && STRIP=:
5625
5626
5627
5628
5629
5630
5631 if test -n "$ac_tool_prefix"; then
5632 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5633 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 if test -n "$RANLIB"; then
5640 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5641 else
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5652 fi
5653 done
5654 done
5655 IFS=$as_save_IFS
5656
5657 fi
5658 fi
5659 RANLIB=$ac_cv_prog_RANLIB
5660 if test -n "$RANLIB"; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5662 $as_echo "$RANLIB" >&6; }
5663 else
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5666 fi
5667
5668
5669 fi
5670 if test -z "$ac_cv_prog_RANLIB"; then
5671 ac_ct_RANLIB=$RANLIB
5672 # Extract the first word of "ranlib", so it can be a program name with args.
5673 set dummy ranlib; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 if test -n "$ac_ct_RANLIB"; then
5680 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5681 else
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5684 do
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5689 ac_cv_prog_ac_ct_RANLIB="ranlib"
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5692 fi
5693 done
5694 done
5695 IFS=$as_save_IFS
5696
5697 fi
5698 fi
5699 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5700 if test -n "$ac_ct_RANLIB"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5702 $as_echo "$ac_ct_RANLIB" >&6; }
5703 else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 $as_echo "no" >&6; }
5706 fi
5707
5708 if test "x$ac_ct_RANLIB" = x; then
5709 RANLIB=":"
5710 else
5711 case $cross_compiling:$ac_tool_warned in
5712 yes:)
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5715 ac_tool_warned=yes ;;
5716 esac
5717 RANLIB=$ac_ct_RANLIB
5718 fi
5719 else
5720 RANLIB="$ac_cv_prog_RANLIB"
5721 fi
5722
5723 test -z "$RANLIB" && RANLIB=:
5724
5725
5726
5727
5728
5729
5730 # Determine commands to create old-style static archives.
5731 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5732 old_postinstall_cmds='chmod 644 $oldlib'
5733 old_postuninstall_cmds=
5734
5735 if test -n "$RANLIB"; then
5736 case $host_os in
5737 openbsd*)
5738 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5739 ;;
5740 *)
5741 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5742 ;;
5743 esac
5744 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5745 fi
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780 # If no C compiler was specified, use CC.
5781 LTCC=${LTCC-"$CC"}
5782
5783 # If no C compiler flags were specified, use CFLAGS.
5784 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5785
5786 # Allow CC to be a program name with arguments.
5787 compiler=$CC
5788
5789
5790 # Check for command to grab the raw symbol name followed by C symbol from nm.
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5792 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5793 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796
5797 # These are sane defaults that work on at least a few old systems.
5798 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5799
5800 # Character class describing NM global symbol codes.
5801 symcode='[BCDEGRST]'
5802
5803 # Regexp to match symbols that can be accessed directly from C.
5804 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5805
5806 # Define system-specific variables.
5807 case $host_os in
5808 aix*)
5809 symcode='[BCDT]'
5810 ;;
5811 cygwin* | mingw* | pw32* | cegcc*)
5812 symcode='[ABCDGISTW]'
5813 ;;
5814 hpux*)
5815 if test "$host_cpu" = ia64; then
5816 symcode='[ABCDEGRST]'
5817 fi
5818 ;;
5819 irix* | nonstopux*)
5820 symcode='[BCDEGRST]'
5821 ;;
5822 osf*)
5823 symcode='[BCDEGQRST]'
5824 ;;
5825 solaris*)
5826 symcode='[BDRT]'
5827 ;;
5828 sco3.2v5*)
5829 symcode='[DT]'
5830 ;;
5831 sysv4.2uw2*)
5832 symcode='[DT]'
5833 ;;
5834 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5835 symcode='[ABDT]'
5836 ;;
5837 sysv4)
5838 symcode='[DFNSTU]'
5839 ;;
5840 esac
5841
5842 # If we're using GNU nm, then use its standard symbol codes.
5843 case `$NM -V 2>&1` in
5844 *GNU* | *'with BFD'*)
5845 symcode='[ABCDGIRSTW]' ;;
5846 esac
5847
5848 # Transform an extracted symbol line into a proper C declaration.
5849 # Some systems (esp. on ia64) link data and code symbols differently,
5850 # so use this general approach.
5851 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5852
5853 # Transform an extracted symbol line into symbol name and symbol address
5854 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5855 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'"
5856
5857 # Handle CRLF in mingw tool chain
5858 opt_cr=
5859 case $build_os in
5860 mingw*)
5861 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5862 ;;
5863 esac
5864
5865 # Try without a prefix underscore, then with it.
5866 for ac_symprfx in "" "_"; do
5867
5868 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5869 symxfrm="\\1 $ac_symprfx\\2 \\2"
5870
5871 # Write the raw and C identifiers.
5872 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5873 # Fake it for dumpbin and say T for any non-static function
5874 # and D for any global variable.
5875 # Also find C++ and __fastcall symbols from MSVC++,
5876 # which start with @ or ?.
5877 lt_cv_sys_global_symbol_pipe="$AWK '"\
5878 " {last_section=section; section=\$ 3};"\
5879 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5880 " \$ 0!~/External *\|/{next};"\
5881 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5882 " {if(hide[section]) next};"\
5883 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5884 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5885 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5886 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5887 " ' prfx=^$ac_symprfx"
5888 else
5889 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5890 fi
5891
5892 # Check to see that the pipe works correctly.
5893 pipe_works=no
5894
5895 rm -f conftest*
5896 cat > conftest.$ac_ext <<_LT_EOF
5897 #ifdef __cplusplus
5898 extern "C" {
5899 #endif
5900 char nm_test_var;
5901 void nm_test_func(void);
5902 void nm_test_func(void){}
5903 #ifdef __cplusplus
5904 }
5905 #endif
5906 int main(){nm_test_var='a';nm_test_func();return(0);}
5907 _LT_EOF
5908
5909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5910 (eval $ac_compile) 2>&5
5911 ac_status=$?
5912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5913 test $ac_status = 0; }; then
5914 # Now try to grab the symbols.
5915 nlist=conftest.nm
5916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5917 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5918 ac_status=$?
5919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5920 test $ac_status = 0; } && test -s "$nlist"; then
5921 # Try sorting and uniquifying the output.
5922 if sort "$nlist" | uniq > "$nlist"T; then
5923 mv -f "$nlist"T "$nlist"
5924 else
5925 rm -f "$nlist"T
5926 fi
5927
5928 # Make sure that we snagged all the symbols we need.
5929 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5930 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5931 cat <<_LT_EOF > conftest.$ac_ext
5932 #ifdef __cplusplus
5933 extern "C" {
5934 #endif
5935
5936 _LT_EOF
5937 # Now generate the symbol file.
5938 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5939
5940 cat <<_LT_EOF >> conftest.$ac_ext
5941
5942 /* The mapping between symbol names and symbols. */
5943 const struct {
5944 const char *name;
5945 void *address;
5946 }
5947 lt__PROGRAM__LTX_preloaded_symbols[] =
5948 {
5949 { "@PROGRAM@", (void *) 0 },
5950 _LT_EOF
5951 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5952 cat <<\_LT_EOF >> conftest.$ac_ext
5953 {0, (void *) 0}
5954 };
5955
5956 /* This works around a problem in FreeBSD linker */
5957 #ifdef FREEBSD_WORKAROUND
5958 static const void *lt_preloaded_setup() {
5959 return lt__PROGRAM__LTX_preloaded_symbols;
5960 }
5961 #endif
5962
5963 #ifdef __cplusplus
5964 }
5965 #endif
5966 _LT_EOF
5967 # Now try linking the two files.
5968 mv conftest.$ac_objext conftstm.$ac_objext
5969 lt_save_LIBS="$LIBS"
5970 lt_save_CFLAGS="$CFLAGS"
5971 LIBS="conftstm.$ac_objext"
5972 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5974 (eval $ac_link) 2>&5
5975 ac_status=$?
5976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5977 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5978 pipe_works=yes
5979 fi
5980 LIBS="$lt_save_LIBS"
5981 CFLAGS="$lt_save_CFLAGS"
5982 else
5983 echo "cannot find nm_test_func in $nlist" >&5
5984 fi
5985 else
5986 echo "cannot find nm_test_var in $nlist" >&5
5987 fi
5988 else
5989 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5990 fi
5991 else
5992 echo "$progname: failed program was:" >&5
5993 cat conftest.$ac_ext >&5
5994 fi
5995 rm -rf conftest* conftst*
5996
5997 # Do not use the global_symbol_pipe unless it works.
5998 if test "$pipe_works" = yes; then
5999 break
6000 else
6001 lt_cv_sys_global_symbol_pipe=
6002 fi
6003 done
6004
6005 fi
6006
6007 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6008 lt_cv_sys_global_symbol_to_cdecl=
6009 fi
6010 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6012 $as_echo "failed" >&6; }
6013 else
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6015 $as_echo "ok" >&6; }
6016 fi
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039 # Check whether --enable-libtool-lock was given.
6040 if test "${enable_libtool_lock+set}" = set; then :
6041 enableval=$enable_libtool_lock;
6042 fi
6043
6044 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6045
6046 # Some flags need to be propagated to the compiler or linker for good
6047 # libtool support.
6048 case $host in
6049 ia64-*-hpux*)
6050 # Find out which ABI we are using.
6051 echo 'int i;' > conftest.$ac_ext
6052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6053 (eval $ac_compile) 2>&5
6054 ac_status=$?
6055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6056 test $ac_status = 0; }; then
6057 case `/usr/bin/file conftest.$ac_objext` in
6058 *ELF-32*)
6059 HPUX_IA64_MODE="32"
6060 ;;
6061 *ELF-64*)
6062 HPUX_IA64_MODE="64"
6063 ;;
6064 esac
6065 fi
6066 rm -rf conftest*
6067 ;;
6068 *-*-irix6*)
6069 # Find out which ABI we are using.
6070 echo '#line 6070 "configure"' > conftest.$ac_ext
6071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6072 (eval $ac_compile) 2>&5
6073 ac_status=$?
6074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6075 test $ac_status = 0; }; then
6076 if test "$lt_cv_prog_gnu_ld" = yes; then
6077 case `/usr/bin/file conftest.$ac_objext` in
6078 *32-bit*)
6079 LD="${LD-ld} -melf32bsmip"
6080 ;;
6081 *N32*)
6082 LD="${LD-ld} -melf32bmipn32"
6083 ;;
6084 *64-bit*)
6085 LD="${LD-ld} -melf64bmip"
6086 ;;
6087 esac
6088 else
6089 case `/usr/bin/file conftest.$ac_objext` in
6090 *32-bit*)
6091 LD="${LD-ld} -32"
6092 ;;
6093 *N32*)
6094 LD="${LD-ld} -n32"
6095 ;;
6096 *64-bit*)
6097 LD="${LD-ld} -64"
6098 ;;
6099 esac
6100 fi
6101 fi
6102 rm -rf conftest*
6103 ;;
6104
6105 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6106 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6107 # Find out which ABI we are using.
6108 echo 'int i;' > conftest.$ac_ext
6109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6110 (eval $ac_compile) 2>&5
6111 ac_status=$?
6112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6113 test $ac_status = 0; }; then
6114 case `/usr/bin/file conftest.o` in
6115 *32-bit*)
6116 case $host in
6117 x86_64-*kfreebsd*-gnu)
6118 LD="${LD-ld} -m elf_i386_fbsd"
6119 ;;
6120 x86_64-*linux*)
6121 LD="${LD-ld} -m elf_i386"
6122 ;;
6123 ppc64-*linux*|powerpc64-*linux*)
6124 LD="${LD-ld} -m elf32ppclinux"
6125 ;;
6126 s390x-*linux*)
6127 LD="${LD-ld} -m elf_s390"
6128 ;;
6129 sparc64-*linux*)
6130 LD="${LD-ld} -m elf32_sparc"
6131 ;;
6132 esac
6133 ;;
6134 *64-bit*)
6135 case $host in
6136 x86_64-*kfreebsd*-gnu)
6137 LD="${LD-ld} -m elf_x86_64_fbsd"
6138 ;;
6139 x86_64-*linux*)
6140 LD="${LD-ld} -m elf_x86_64"
6141 ;;
6142 ppc*-*linux*|powerpc*-*linux*)
6143 LD="${LD-ld} -m elf64ppc"
6144 ;;
6145 s390*-*linux*|s390*-*tpf*)
6146 LD="${LD-ld} -m elf64_s390"
6147 ;;
6148 sparc*-*linux*)
6149 LD="${LD-ld} -m elf64_sparc"
6150 ;;
6151 esac
6152 ;;
6153 esac
6154 fi
6155 rm -rf conftest*
6156 ;;
6157
6158 *-*-sco3.2v5*)
6159 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6160 SAVE_CFLAGS="$CFLAGS"
6161 CFLAGS="$CFLAGS -belf"
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6163 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6164 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 ac_ext=c
6168 ac_cpp='$CPP $CPPFLAGS'
6169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6172
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175
6176 int
6177 main ()
6178 {
6179
6180 ;
6181 return 0;
6182 }
6183 _ACEOF
6184 if ac_fn_c_try_link "$LINENO"; then :
6185 lt_cv_cc_needs_belf=yes
6186 else
6187 lt_cv_cc_needs_belf=no
6188 fi
6189 rm -f core conftest.err conftest.$ac_objext \
6190 conftest$ac_exeext conftest.$ac_ext
6191 ac_ext=c
6192 ac_cpp='$CPP $CPPFLAGS'
6193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6196
6197 fi
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6199 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6200 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6201 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6202 CFLAGS="$SAVE_CFLAGS"
6203 fi
6204 ;;
6205 sparc*-*solaris*)
6206 # Find out which ABI we are using.
6207 echo 'int i;' > conftest.$ac_ext
6208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6209 (eval $ac_compile) 2>&5
6210 ac_status=$?
6211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6212 test $ac_status = 0; }; then
6213 case `/usr/bin/file conftest.o` in
6214 *64-bit*)
6215 case $lt_cv_prog_gnu_ld in
6216 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6217 *)
6218 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6219 LD="${LD-ld} -64"
6220 fi
6221 ;;
6222 esac
6223 ;;
6224 esac
6225 fi
6226 rm -rf conftest*
6227 ;;
6228 esac
6229
6230 need_locks="$enable_libtool_lock"
6231
6232
6233 case $host_os in
6234 rhapsody* | darwin*)
6235 if test -n "$ac_tool_prefix"; then
6236 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6237 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 if test -n "$DSYMUTIL"; then
6244 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249 IFS=$as_save_IFS
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 break 2
6256 fi
6257 done
6258 done
6259 IFS=$as_save_IFS
6260
6261 fi
6262 fi
6263 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6264 if test -n "$DSYMUTIL"; then
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6266 $as_echo "$DSYMUTIL" >&6; }
6267 else
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269 $as_echo "no" >&6; }
6270 fi
6271
6272
6273 fi
6274 if test -z "$ac_cv_prog_DSYMUTIL"; then
6275 ac_ct_DSYMUTIL=$DSYMUTIL
6276 # Extract the first word of "dsymutil", so it can be a program name with args.
6277 set dummy dsymutil; ac_word=$2
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6279 $as_echo_n "checking for $ac_word... " >&6; }
6280 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 if test -n "$ac_ct_DSYMUTIL"; then
6284 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6285 else
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 for as_dir in $PATH
6288 do
6289 IFS=$as_save_IFS
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6293 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 break 2
6296 fi
6297 done
6298 done
6299 IFS=$as_save_IFS
6300
6301 fi
6302 fi
6303 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6304 if test -n "$ac_ct_DSYMUTIL"; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6306 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6307 else
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309 $as_echo "no" >&6; }
6310 fi
6311
6312 if test "x$ac_ct_DSYMUTIL" = x; then
6313 DSYMUTIL=":"
6314 else
6315 case $cross_compiling:$ac_tool_warned in
6316 yes:)
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6319 ac_tool_warned=yes ;;
6320 esac
6321 DSYMUTIL=$ac_ct_DSYMUTIL
6322 fi
6323 else
6324 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6325 fi
6326
6327 if test -n "$ac_tool_prefix"; then
6328 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6329 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6333 $as_echo_n "(cached) " >&6
6334 else
6335 if test -n "$NMEDIT"; then
6336 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6348 fi
6349 done
6350 done
6351 IFS=$as_save_IFS
6352
6353 fi
6354 fi
6355 NMEDIT=$ac_cv_prog_NMEDIT
6356 if test -n "$NMEDIT"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6358 $as_echo "$NMEDIT" >&6; }
6359 else
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6362 fi
6363
6364
6365 fi
6366 if test -z "$ac_cv_prog_NMEDIT"; then
6367 ac_ct_NMEDIT=$NMEDIT
6368 # Extract the first word of "nmedit", so it can be a program name with args.
6369 set dummy nmedit; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 if test -n "$ac_ct_NMEDIT"; then
6376 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6380 do
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6385 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6388 fi
6389 done
6390 done
6391 IFS=$as_save_IFS
6392
6393 fi
6394 fi
6395 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6396 if test -n "$ac_ct_NMEDIT"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6398 $as_echo "$ac_ct_NMEDIT" >&6; }
6399 else
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6402 fi
6403
6404 if test "x$ac_ct_NMEDIT" = x; then
6405 NMEDIT=":"
6406 else
6407 case $cross_compiling:$ac_tool_warned in
6408 yes:)
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6411 ac_tool_warned=yes ;;
6412 esac
6413 NMEDIT=$ac_ct_NMEDIT
6414 fi
6415 else
6416 NMEDIT="$ac_cv_prog_NMEDIT"
6417 fi
6418
6419 if test -n "$ac_tool_prefix"; then
6420 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6421 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if test "${ac_cv_prog_LIPO+set}" = set; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 if test -n "$LIPO"; then
6428 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6429 else
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6432 do
6433 IFS=$as_save_IFS
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6437 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 break 2
6440 fi
6441 done
6442 done
6443 IFS=$as_save_IFS
6444
6445 fi
6446 fi
6447 LIPO=$ac_cv_prog_LIPO
6448 if test -n "$LIPO"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6450 $as_echo "$LIPO" >&6; }
6451 else
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6454 fi
6455
6456
6457 fi
6458 if test -z "$ac_cv_prog_LIPO"; then
6459 ac_ct_LIPO=$LIPO
6460 # Extract the first word of "lipo", so it can be a program name with args.
6461 set dummy lipo; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 if test -n "$ac_ct_LIPO"; then
6468 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6472 do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_prog_ac_ct_LIPO="lipo"
6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6480 fi
6481 done
6482 done
6483 IFS=$as_save_IFS
6484
6485 fi
6486 fi
6487 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6488 if test -n "$ac_ct_LIPO"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6490 $as_echo "$ac_ct_LIPO" >&6; }
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6494 fi
6495
6496 if test "x$ac_ct_LIPO" = x; then
6497 LIPO=":"
6498 else
6499 case $cross_compiling:$ac_tool_warned in
6500 yes:)
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6503 ac_tool_warned=yes ;;
6504 esac
6505 LIPO=$ac_ct_LIPO
6506 fi
6507 else
6508 LIPO="$ac_cv_prog_LIPO"
6509 fi
6510
6511 if test -n "$ac_tool_prefix"; then
6512 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6513 set dummy ${ac_tool_prefix}otool; ac_word=$2
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6517 $as_echo_n "(cached) " >&6
6518 else
6519 if test -n "$OTOOL"; then
6520 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6524 do
6525 IFS=$as_save_IFS
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 break 2
6532 fi
6533 done
6534 done
6535 IFS=$as_save_IFS
6536
6537 fi
6538 fi
6539 OTOOL=$ac_cv_prog_OTOOL
6540 if test -n "$OTOOL"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6542 $as_echo "$OTOOL" >&6; }
6543 else
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6546 fi
6547
6548
6549 fi
6550 if test -z "$ac_cv_prog_OTOOL"; then
6551 ac_ct_OTOOL=$OTOOL
6552 # Extract the first word of "otool", so it can be a program name with args.
6553 set dummy otool; ac_word=$2
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6555 $as_echo_n "checking for $ac_word... " >&6; }
6556 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 if test -n "$ac_ct_OTOOL"; then
6560 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6561 else
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6564 do
6565 IFS=$as_save_IFS
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_prog_ac_ct_OTOOL="otool"
6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 break 2
6572 fi
6573 done
6574 done
6575 IFS=$as_save_IFS
6576
6577 fi
6578 fi
6579 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6580 if test -n "$ac_ct_OTOOL"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6582 $as_echo "$ac_ct_OTOOL" >&6; }
6583 else
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585 $as_echo "no" >&6; }
6586 fi
6587
6588 if test "x$ac_ct_OTOOL" = x; then
6589 OTOOL=":"
6590 else
6591 case $cross_compiling:$ac_tool_warned in
6592 yes:)
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6595 ac_tool_warned=yes ;;
6596 esac
6597 OTOOL=$ac_ct_OTOOL
6598 fi
6599 else
6600 OTOOL="$ac_cv_prog_OTOOL"
6601 fi
6602
6603 if test -n "$ac_tool_prefix"; then
6604 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6605 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6609 $as_echo_n "(cached) " >&6
6610 else
6611 if test -n "$OTOOL64"; then
6612 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 break 2
6624 fi
6625 done
6626 done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 OTOOL64=$ac_cv_prog_OTOOL64
6632 if test -n "$OTOOL64"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6634 $as_echo "$OTOOL64" >&6; }
6635 else
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6638 fi
6639
6640
6641 fi
6642 if test -z "$ac_cv_prog_OTOOL64"; then
6643 ac_ct_OTOOL64=$OTOOL64
6644 # Extract the first word of "otool64", so it can be a program name with args.
6645 set dummy otool64; ac_word=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647 $as_echo_n "checking for $ac_word... " >&6; }
6648 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 if test -n "$ac_ct_OTOOL64"; then
6652 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6653 else
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6656 do
6657 IFS=$as_save_IFS
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661 ac_cv_prog_ac_ct_OTOOL64="otool64"
6662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 break 2
6664 fi
6665 done
6666 done
6667 IFS=$as_save_IFS
6668
6669 fi
6670 fi
6671 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6672 if test -n "$ac_ct_OTOOL64"; then
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6674 $as_echo "$ac_ct_OTOOL64" >&6; }
6675 else
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677 $as_echo "no" >&6; }
6678 fi
6679
6680 if test "x$ac_ct_OTOOL64" = x; then
6681 OTOOL64=":"
6682 else
6683 case $cross_compiling:$ac_tool_warned in
6684 yes:)
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6687 ac_tool_warned=yes ;;
6688 esac
6689 OTOOL64=$ac_ct_OTOOL64
6690 fi
6691 else
6692 OTOOL64="$ac_cv_prog_OTOOL64"
6693 fi
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6722 $as_echo_n "checking for -single_module linker flag... " >&6; }
6723 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 lt_cv_apple_cc_single_mod=no
6727 if test -z "${LT_MULTI_MODULE}"; then
6728 # By default we will add the -single_module flag. You can override
6729 # by either setting the environment variable LT_MULTI_MODULE
6730 # non-empty at configure time, or by adding -multi_module to the
6731 # link flags.
6732 rm -rf libconftest.dylib*
6733 echo "int foo(void){return 1;}" > conftest.c
6734 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6735 -dynamiclib -Wl,-single_module conftest.c" >&5
6736 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6737 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6738 _lt_result=$?
6739 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6740 lt_cv_apple_cc_single_mod=yes
6741 else
6742 cat conftest.err >&5
6743 fi
6744 rm -rf libconftest.dylib*
6745 rm -f conftest.*
6746 fi
6747 fi
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6749 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6751 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6752 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 lt_cv_ld_exported_symbols_list=no
6756 save_LDFLAGS=$LDFLAGS
6757 echo "_main" > conftest.sym
6758 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761
6762 int
6763 main ()
6764 {
6765
6766 ;
6767 return 0;
6768 }
6769 _ACEOF
6770 if ac_fn_c_try_link "$LINENO"; then :
6771 lt_cv_ld_exported_symbols_list=yes
6772 else
6773 lt_cv_ld_exported_symbols_list=no
6774 fi
6775 rm -f core conftest.err conftest.$ac_objext \
6776 conftest$ac_exeext conftest.$ac_ext
6777 LDFLAGS="$save_LDFLAGS"
6778
6779 fi
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6781 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6782 case $host_os in
6783 rhapsody* | darwin1.[012])
6784 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6785 darwin1.*)
6786 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6787 darwin*) # darwin 5.x on
6788 # if running on 10.5 or later, the deployment target defaults
6789 # to the OS version, if on x86, and 10.4, the deployment
6790 # target defaults to 10.4. Don't you love it?
6791 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6792 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6793 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6794 10.[012]*)
6795 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6796 10.*)
6797 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6798 esac
6799 ;;
6800 esac
6801 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6802 _lt_dar_single_mod='$single_module'
6803 fi
6804 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6805 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6806 else
6807 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6808 fi
6809 if test "$DSYMUTIL" != ":"; then
6810 _lt_dsymutil='~$DSYMUTIL $lib || :'
6811 else
6812 _lt_dsymutil=
6813 fi
6814 ;;
6815 esac
6816
6817 for ac_header in dlfcn.h
6818 do :
6819 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6820 "
6821 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6822 cat >>confdefs.h <<_ACEOF
6823 #define HAVE_DLFCN_H 1
6824 _ACEOF
6825
6826 fi
6827
6828 done
6829
6830
6831
6832 # Set options
6833
6834
6835
6836 enable_dlopen=no
6837
6838
6839 enable_win32_dll=no
6840
6841
6842 # Check whether --enable-shared was given.
6843 if test "${enable_shared+set}" = set; then :
6844 enableval=$enable_shared; p=${PACKAGE-default}
6845 case $enableval in
6846 yes) enable_shared=yes ;;
6847 no) enable_shared=no ;;
6848 *)
6849 enable_shared=no
6850 # Look at the argument we got. We use all the common list separators.
6851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6852 for pkg in $enableval; do
6853 IFS="$lt_save_ifs"
6854 if test "X$pkg" = "X$p"; then
6855 enable_shared=yes
6856 fi
6857 done
6858 IFS="$lt_save_ifs"
6859 ;;
6860 esac
6861 else
6862 enable_shared=yes
6863 fi
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873 # Check whether --enable-static was given.
6874 if test "${enable_static+set}" = set; then :
6875 enableval=$enable_static; p=${PACKAGE-default}
6876 case $enableval in
6877 yes) enable_static=yes ;;
6878 no) enable_static=no ;;
6879 *)
6880 enable_static=no
6881 # Look at the argument we got. We use all the common list separators.
6882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6883 for pkg in $enableval; do
6884 IFS="$lt_save_ifs"
6885 if test "X$pkg" = "X$p"; then
6886 enable_static=yes
6887 fi
6888 done
6889 IFS="$lt_save_ifs"
6890 ;;
6891 esac
6892 else
6893 enable_static=yes
6894 fi
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905 # Check whether --with-pic was given.
6906 if test "${with_pic+set}" = set; then :
6907 withval=$with_pic; pic_mode="$withval"
6908 else
6909 pic_mode=default
6910 fi
6911
6912
6913 test -z "$pic_mode" && pic_mode=default
6914
6915
6916
6917
6918
6919
6920
6921 # Check whether --enable-fast-install was given.
6922 if test "${enable_fast_install+set}" = set; then :
6923 enableval=$enable_fast_install; p=${PACKAGE-default}
6924 case $enableval in
6925 yes) enable_fast_install=yes ;;
6926 no) enable_fast_install=no ;;
6927 *)
6928 enable_fast_install=no
6929 # Look at the argument we got. We use all the common list separators.
6930 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6931 for pkg in $enableval; do
6932 IFS="$lt_save_ifs"
6933 if test "X$pkg" = "X$p"; then
6934 enable_fast_install=yes
6935 fi
6936 done
6937 IFS="$lt_save_ifs"
6938 ;;
6939 esac
6940 else
6941 enable_fast_install=yes
6942 fi
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954 # This can be used to rebuild libtool when needed
6955 LIBTOOL_DEPS="$ltmain"
6956
6957 # Always use our own libtool.
6958 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984 test -z "$LN_S" && LN_S="ln -s"
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999 if test -n "${ZSH_VERSION+set}" ; then
7000 setopt NO_GLOB_SUBST
7001 fi
7002
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7004 $as_echo_n "checking for objdir... " >&6; }
7005 if test "${lt_cv_objdir+set}" = set; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 rm -f .libs 2>/dev/null
7009 mkdir .libs 2>/dev/null
7010 if test -d .libs; then
7011 lt_cv_objdir=.libs
7012 else
7013 # MS-DOS does not allow filenames that begin with a dot.
7014 lt_cv_objdir=_libs
7015 fi
7016 rmdir .libs 2>/dev/null
7017 fi
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7019 $as_echo "$lt_cv_objdir" >&6; }
7020 objdir=$lt_cv_objdir
7021
7022
7023
7024
7025
7026 cat >>confdefs.h <<_ACEOF
7027 #define LT_OBJDIR "$lt_cv_objdir/"
7028 _ACEOF
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046 case $host_os in
7047 aix3*)
7048 # AIX sometimes has problems with the GCC collect2 program. For some
7049 # reason, if we set the COLLECT_NAMES environment variable, the problems
7050 # vanish in a puff of smoke.
7051 if test "X${COLLECT_NAMES+set}" != Xset; then
7052 COLLECT_NAMES=
7053 export COLLECT_NAMES
7054 fi
7055 ;;
7056 esac
7057
7058 # Sed substitution that helps us do robust quoting. It backslashifies
7059 # metacharacters that are still active within double-quoted strings.
7060 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7061
7062 # Same as above, but do not quote variable references.
7063 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7064
7065 # Sed substitution to delay expansion of an escaped shell variable in a
7066 # double_quote_subst'ed string.
7067 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7068
7069 # Sed substitution to delay expansion of an escaped single quote.
7070 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7071
7072 # Sed substitution to avoid accidental globbing in evaled expressions
7073 no_glob_subst='s/\*/\\\*/g'
7074
7075 # Global variables:
7076 ofile=libtool
7077 can_build_shared=yes
7078
7079 # All known linkers require a `.a' archive for static linking (except MSVC,
7080 # which needs '.lib').
7081 libext=a
7082
7083 with_gnu_ld="$lt_cv_prog_gnu_ld"
7084
7085 old_CC="$CC"
7086 old_CFLAGS="$CFLAGS"
7087
7088 # Set sane defaults for various variables
7089 test -z "$CC" && CC=cc
7090 test -z "$LTCC" && LTCC=$CC
7091 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7092 test -z "$LD" && LD=ld
7093 test -z "$ac_objext" && ac_objext=o
7094
7095 for cc_temp in $compiler""; do
7096 case $cc_temp in
7097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7099 \-*) ;;
7100 *) break;;
7101 esac
7102 done
7103 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7104
7105
7106 # Only perform the check for file, if the check method requires it
7107 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7108 case $deplibs_check_method in
7109 file_magic*)
7110 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7112 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7113 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 case $MAGIC_CMD in
7117 [\\/*] | ?:[\\/]*)
7118 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7119 ;;
7120 *)
7121 lt_save_MAGIC_CMD="$MAGIC_CMD"
7122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7123 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7124 for ac_dir in $ac_dummy; do
7125 IFS="$lt_save_ifs"
7126 test -z "$ac_dir" && ac_dir=.
7127 if test -f $ac_dir/${ac_tool_prefix}file; then
7128 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7129 if test -n "$file_magic_test_file"; then
7130 case $deplibs_check_method in
7131 "file_magic "*)
7132 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7134 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7135 $EGREP "$file_magic_regex" > /dev/null; then
7136 :
7137 else
7138 cat <<_LT_EOF 1>&2
7139
7140 *** Warning: the command libtool uses to detect shared libraries,
7141 *** $file_magic_cmd, produces output that libtool cannot recognize.
7142 *** The result is that libtool may fail to recognize shared libraries
7143 *** as such. This will affect the creation of libtool libraries that
7144 *** depend on shared libraries, but programs linked with such libtool
7145 *** libraries will work regardless of this problem. Nevertheless, you
7146 *** may want to report the problem to your system manager and/or to
7147 *** bug-libtool@gnu.org
7148
7149 _LT_EOF
7150 fi ;;
7151 esac
7152 fi
7153 break
7154 fi
7155 done
7156 IFS="$lt_save_ifs"
7157 MAGIC_CMD="$lt_save_MAGIC_CMD"
7158 ;;
7159 esac
7160 fi
7161
7162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7163 if test -n "$MAGIC_CMD"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7165 $as_echo "$MAGIC_CMD" >&6; }
7166 else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170
7171
7172
7173
7174
7175 if test -z "$lt_cv_path_MAGIC_CMD"; then
7176 if test -n "$ac_tool_prefix"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7178 $as_echo_n "checking for file... " >&6; }
7179 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7180 $as_echo_n "(cached) " >&6
7181 else
7182 case $MAGIC_CMD in
7183 [\\/*] | ?:[\\/]*)
7184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7185 ;;
7186 *)
7187 lt_save_MAGIC_CMD="$MAGIC_CMD"
7188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7189 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7190 for ac_dir in $ac_dummy; do
7191 IFS="$lt_save_ifs"
7192 test -z "$ac_dir" && ac_dir=.
7193 if test -f $ac_dir/file; then
7194 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7195 if test -n "$file_magic_test_file"; then
7196 case $deplibs_check_method in
7197 "file_magic "*)
7198 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7200 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7201 $EGREP "$file_magic_regex" > /dev/null; then
7202 :
7203 else
7204 cat <<_LT_EOF 1>&2
7205
7206 *** Warning: the command libtool uses to detect shared libraries,
7207 *** $file_magic_cmd, produces output that libtool cannot recognize.
7208 *** The result is that libtool may fail to recognize shared libraries
7209 *** as such. This will affect the creation of libtool libraries that
7210 *** depend on shared libraries, but programs linked with such libtool
7211 *** libraries will work regardless of this problem. Nevertheless, you
7212 *** may want to report the problem to your system manager and/or to
7213 *** bug-libtool@gnu.org
7214
7215 _LT_EOF
7216 fi ;;
7217 esac
7218 fi
7219 break
7220 fi
7221 done
7222 IFS="$lt_save_ifs"
7223 MAGIC_CMD="$lt_save_MAGIC_CMD"
7224 ;;
7225 esac
7226 fi
7227
7228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7229 if test -n "$MAGIC_CMD"; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7231 $as_echo "$MAGIC_CMD" >&6; }
7232 else
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7235 fi
7236
7237
7238 else
7239 MAGIC_CMD=:
7240 fi
7241 fi
7242
7243 fi
7244 ;;
7245 esac
7246
7247 # Use C for the default configuration in the libtool script
7248
7249 lt_save_CC="$CC"
7250 ac_ext=c
7251 ac_cpp='$CPP $CPPFLAGS'
7252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7255
7256
7257 # Source file extension for C test sources.
7258 ac_ext=c
7259
7260 # Object file extension for compiled C test sources.
7261 objext=o
7262 objext=$objext
7263
7264 # Code to be used in simple compile tests
7265 lt_simple_compile_test_code="int some_variable = 0;"
7266
7267 # Code to be used in simple link tests
7268 lt_simple_link_test_code='int main(){return(0);}'
7269
7270
7271
7272
7273
7274
7275
7276 # If no C compiler was specified, use CC.
7277 LTCC=${LTCC-"$CC"}
7278
7279 # If no C compiler flags were specified, use CFLAGS.
7280 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7281
7282 # Allow CC to be a program name with arguments.
7283 compiler=$CC
7284
7285 # Save the default compiler, since it gets overwritten when the other
7286 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7287 compiler_DEFAULT=$CC
7288
7289 # save warnings/boilerplate of simple test code
7290 ac_outfile=conftest.$ac_objext
7291 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7292 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7293 _lt_compiler_boilerplate=`cat conftest.err`
7294 $RM conftest*
7295
7296 ac_outfile=conftest.$ac_objext
7297 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7298 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7299 _lt_linker_boilerplate=`cat conftest.err`
7300 $RM -r conftest*
7301
7302
7303 if test -n "$compiler"; then
7304
7305 lt_prog_compiler_no_builtin_flag=
7306
7307 if test "$GCC" = yes; then
7308 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7309
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7311 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7312 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7313 $as_echo_n "(cached) " >&6
7314 else
7315 lt_cv_prog_compiler_rtti_exceptions=no
7316 ac_outfile=conftest.$ac_objext
7317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7318 lt_compiler_flag="-fno-rtti -fno-exceptions"
7319 # Insert the option either (1) after the last *FLAGS variable, or
7320 # (2) before a word containing "conftest.", or (3) at the end.
7321 # Note that $ac_compile itself does not contain backslashes and begins
7322 # with a dollar sign (not a hyphen), so the echo should work correctly.
7323 # The option is referenced via a variable to avoid confusing sed.
7324 lt_compile=`echo "$ac_compile" | $SED \
7325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7327 -e 's:$: $lt_compiler_flag:'`
7328 (eval echo "\"\$as_me:7328: $lt_compile\"" >&5)
7329 (eval "$lt_compile" 2>conftest.err)
7330 ac_status=$?
7331 cat conftest.err >&5
7332 echo "$as_me:7332: \$? = $ac_status" >&5
7333 if (exit $ac_status) && test -s "$ac_outfile"; then
7334 # The compiler can only warn and ignore the option if not recognized
7335 # So say no if there are warnings other than the usual output.
7336 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7338 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7339 lt_cv_prog_compiler_rtti_exceptions=yes
7340 fi
7341 fi
7342 $RM conftest*
7343
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7346 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7347
7348 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7349 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7350 else
7351 :
7352 fi
7353
7354 fi
7355
7356
7357
7358
7359
7360
7361 lt_prog_compiler_wl=
7362 lt_prog_compiler_pic=
7363 lt_prog_compiler_static=
7364
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7366 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7367
7368 if test "$GCC" = yes; then
7369 lt_prog_compiler_wl='-Wl,'
7370 lt_prog_compiler_static='-static'
7371
7372 case $host_os in
7373 aix*)
7374 # All AIX code is PIC.
7375 if test "$host_cpu" = ia64; then
7376 # AIX 5 now supports IA64 processor
7377 lt_prog_compiler_static='-Bstatic'
7378 fi
7379 ;;
7380
7381 amigaos*)
7382 case $host_cpu in
7383 powerpc)
7384 # see comment about AmigaOS4 .so support
7385 lt_prog_compiler_pic='-fPIC'
7386 ;;
7387 m68k)
7388 # FIXME: we need at least 68020 code to build shared libraries, but
7389 # adding the `-m68020' flag to GCC prevents building anything better,
7390 # like `-m68040'.
7391 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7392 ;;
7393 esac
7394 ;;
7395
7396 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7397 # PIC is the default for these OSes.
7398 ;;
7399
7400 mingw* | cygwin* | pw32* | os2* | cegcc*)
7401 # This hack is so that the source file can tell whether it is being
7402 # built for inclusion in a dll (and should export symbols for example).
7403 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7404 # (--disable-auto-import) libraries
7405 lt_prog_compiler_pic='-DDLL_EXPORT'
7406 ;;
7407
7408 darwin* | rhapsody*)
7409 # PIC is the default on this platform
7410 # Common symbols not allowed in MH_DYLIB files
7411 lt_prog_compiler_pic='-fno-common'
7412 ;;
7413
7414 hpux*)
7415 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7416 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7417 # sets the default TLS model and affects inlining.
7418 case $host_cpu in
7419 hppa*64*)
7420 # +Z the default
7421 ;;
7422 *)
7423 lt_prog_compiler_pic='-fPIC'
7424 ;;
7425 esac
7426 ;;
7427
7428 interix[3-9]*)
7429 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7430 # Instead, we relocate shared libraries at runtime.
7431 ;;
7432
7433 msdosdjgpp*)
7434 # Just because we use GCC doesn't mean we suddenly get shared libraries
7435 # on systems that don't support them.
7436 lt_prog_compiler_can_build_shared=no
7437 enable_shared=no
7438 ;;
7439
7440 *nto* | *qnx*)
7441 # QNX uses GNU C++, but need to define -shared option too, otherwise
7442 # it will coredump.
7443 lt_prog_compiler_pic='-fPIC -shared'
7444 ;;
7445
7446 sysv4*MP*)
7447 if test -d /usr/nec; then
7448 lt_prog_compiler_pic=-Kconform_pic
7449 fi
7450 ;;
7451
7452 *)
7453 lt_prog_compiler_pic='-fPIC'
7454 ;;
7455 esac
7456 else
7457 # PORTME Check for flag to pass linker flags through the system compiler.
7458 case $host_os in
7459 aix*)
7460 lt_prog_compiler_wl='-Wl,'
7461 if test "$host_cpu" = ia64; then
7462 # AIX 5 now supports IA64 processor
7463 lt_prog_compiler_static='-Bstatic'
7464 else
7465 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7466 fi
7467 ;;
7468
7469 mingw* | cygwin* | pw32* | os2* | cegcc*)
7470 # This hack is so that the source file can tell whether it is being
7471 # built for inclusion in a dll (and should export symbols for example).
7472 lt_prog_compiler_pic='-DDLL_EXPORT'
7473 ;;
7474
7475 hpux9* | hpux10* | hpux11*)
7476 lt_prog_compiler_wl='-Wl,'
7477 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7478 # not for PA HP-UX.
7479 case $host_cpu in
7480 hppa*64*|ia64*)
7481 # +Z the default
7482 ;;
7483 *)
7484 lt_prog_compiler_pic='+Z'
7485 ;;
7486 esac
7487 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7488 lt_prog_compiler_static='${wl}-a ${wl}archive'
7489 ;;
7490
7491 irix5* | irix6* | nonstopux*)
7492 lt_prog_compiler_wl='-Wl,'
7493 # PIC (with -KPIC) is the default.
7494 lt_prog_compiler_static='-non_shared'
7495 ;;
7496
7497 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7498 case $cc_basename in
7499 # old Intel for x86_64 which still supported -KPIC.
7500 ecc*)
7501 lt_prog_compiler_wl='-Wl,'
7502 lt_prog_compiler_pic='-KPIC'
7503 lt_prog_compiler_static='-static'
7504 ;;
7505 # icc used to be incompatible with GCC.
7506 # ICC 10 doesn't accept -KPIC any more.
7507 icc* | ifort*)
7508 lt_prog_compiler_wl='-Wl,'
7509 lt_prog_compiler_pic='-fPIC'
7510 lt_prog_compiler_static='-static'
7511 ;;
7512 # Lahey Fortran 8.1.
7513 lf95*)
7514 lt_prog_compiler_wl='-Wl,'
7515 lt_prog_compiler_pic='--shared'
7516 lt_prog_compiler_static='--static'
7517 ;;
7518 pgcc* | pgf77* | pgf90* | pgf95*)
7519 # Portland Group compilers (*not* the Pentium gcc compiler,
7520 # which looks to be a dead project)
7521 lt_prog_compiler_wl='-Wl,'
7522 lt_prog_compiler_pic='-fpic'
7523 lt_prog_compiler_static='-Bstatic'
7524 ;;
7525 ccc*)
7526 lt_prog_compiler_wl='-Wl,'
7527 # All Alpha code is PIC.
7528 lt_prog_compiler_static='-non_shared'
7529 ;;
7530 xl*)
7531 # IBM XL C 8.0/Fortran 10.1 on PPC
7532 lt_prog_compiler_wl='-Wl,'
7533 lt_prog_compiler_pic='-qpic'
7534 lt_prog_compiler_static='-qstaticlink'
7535 ;;
7536 *)
7537 case `$CC -V 2>&1 | sed 5q` in
7538 *Sun\ C*)
7539 # Sun C 5.9
7540 lt_prog_compiler_pic='-KPIC'
7541 lt_prog_compiler_static='-Bstatic'
7542 lt_prog_compiler_wl='-Wl,'
7543 ;;
7544 *Sun\ F*)
7545 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7546 lt_prog_compiler_pic='-KPIC'
7547 lt_prog_compiler_static='-Bstatic'
7548 lt_prog_compiler_wl=''
7549 ;;
7550 esac
7551 ;;
7552 esac
7553 ;;
7554
7555 newsos6)
7556 lt_prog_compiler_pic='-KPIC'
7557 lt_prog_compiler_static='-Bstatic'
7558 ;;
7559
7560 *nto* | *qnx*)
7561 # QNX uses GNU C++, but need to define -shared option too, otherwise
7562 # it will coredump.
7563 lt_prog_compiler_pic='-fPIC -shared'
7564 ;;
7565
7566 osf3* | osf4* | osf5*)
7567 lt_prog_compiler_wl='-Wl,'
7568 # All OSF/1 code is PIC.
7569 lt_prog_compiler_static='-non_shared'
7570 ;;
7571
7572 rdos*)
7573 lt_prog_compiler_static='-non_shared'
7574 ;;
7575
7576 solaris*)
7577 lt_prog_compiler_pic='-KPIC'
7578 lt_prog_compiler_static='-Bstatic'
7579 case $cc_basename in
7580 f77* | f90* | f95*)
7581 lt_prog_compiler_wl='-Qoption ld ';;
7582 *)
7583 lt_prog_compiler_wl='-Wl,';;
7584 esac
7585 ;;
7586
7587 sunos4*)
7588 lt_prog_compiler_wl='-Qoption ld '
7589 lt_prog_compiler_pic='-PIC'
7590 lt_prog_compiler_static='-Bstatic'
7591 ;;
7592
7593 sysv4 | sysv4.2uw2* | sysv4.3*)
7594 lt_prog_compiler_wl='-Wl,'
7595 lt_prog_compiler_pic='-KPIC'
7596 lt_prog_compiler_static='-Bstatic'
7597 ;;
7598
7599 sysv4*MP*)
7600 if test -d /usr/nec ;then
7601 lt_prog_compiler_pic='-Kconform_pic'
7602 lt_prog_compiler_static='-Bstatic'
7603 fi
7604 ;;
7605
7606 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7607 lt_prog_compiler_wl='-Wl,'
7608 lt_prog_compiler_pic='-KPIC'
7609 lt_prog_compiler_static='-Bstatic'
7610 ;;
7611
7612 unicos*)
7613 lt_prog_compiler_wl='-Wl,'
7614 lt_prog_compiler_can_build_shared=no
7615 ;;
7616
7617 uts4*)
7618 lt_prog_compiler_pic='-pic'
7619 lt_prog_compiler_static='-Bstatic'
7620 ;;
7621
7622 *)
7623 lt_prog_compiler_can_build_shared=no
7624 ;;
7625 esac
7626 fi
7627
7628 case $host_os in
7629 # For platforms which do not support PIC, -DPIC is meaningless:
7630 *djgpp*)
7631 lt_prog_compiler_pic=
7632 ;;
7633 *)
7634 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7635 ;;
7636 esac
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7638 $as_echo "$lt_prog_compiler_pic" >&6; }
7639
7640
7641
7642
7643
7644
7645 #
7646 # Check to make sure the PIC flag actually works.
7647 #
7648 if test -n "$lt_prog_compiler_pic"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7650 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7651 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7652 $as_echo_n "(cached) " >&6
7653 else
7654 lt_cv_prog_compiler_pic_works=no
7655 ac_outfile=conftest.$ac_objext
7656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7657 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7658 # Insert the option either (1) after the last *FLAGS variable, or
7659 # (2) before a word containing "conftest.", or (3) at the end.
7660 # Note that $ac_compile itself does not contain backslashes and begins
7661 # with a dollar sign (not a hyphen), so the echo should work correctly.
7662 # The option is referenced via a variable to avoid confusing sed.
7663 lt_compile=`echo "$ac_compile" | $SED \
7664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7666 -e 's:$: $lt_compiler_flag:'`
7667 (eval echo "\"\$as_me:7667: $lt_compile\"" >&5)
7668 (eval "$lt_compile" 2>conftest.err)
7669 ac_status=$?
7670 cat conftest.err >&5
7671 echo "$as_me:7671: \$? = $ac_status" >&5
7672 if (exit $ac_status) && test -s "$ac_outfile"; then
7673 # The compiler can only warn and ignore the option if not recognized
7674 # So say no if there are warnings other than the usual output.
7675 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7677 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7678 lt_cv_prog_compiler_pic_works=yes
7679 fi
7680 fi
7681 $RM conftest*
7682
7683 fi
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7685 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7686
7687 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7688 case $lt_prog_compiler_pic in
7689 "" | " "*) ;;
7690 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7691 esac
7692 else
7693 lt_prog_compiler_pic=
7694 lt_prog_compiler_can_build_shared=no
7695 fi
7696
7697 fi
7698
7699
7700
7701
7702
7703
7704 #
7705 # Check to make sure the static flag actually works.
7706 #
7707 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7709 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7710 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 lt_cv_prog_compiler_static_works=no
7714 save_LDFLAGS="$LDFLAGS"
7715 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7716 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7717 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7718 # The linker can only warn and ignore the option if not recognized
7719 # So say no if there are warnings
7720 if test -s conftest.err; then
7721 # Append any errors to the config.log.
7722 cat conftest.err 1>&5
7723 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7725 if diff conftest.exp conftest.er2 >/dev/null; then
7726 lt_cv_prog_compiler_static_works=yes
7727 fi
7728 else
7729 lt_cv_prog_compiler_static_works=yes
7730 fi
7731 fi
7732 $RM -r conftest*
7733 LDFLAGS="$save_LDFLAGS"
7734
7735 fi
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7737 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7738
7739 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7740 :
7741 else
7742 lt_prog_compiler_static=
7743 fi
7744
7745
7746
7747
7748
7749
7750
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7752 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7753 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 lt_cv_prog_compiler_c_o=no
7757 $RM -r conftest 2>/dev/null
7758 mkdir conftest
7759 cd conftest
7760 mkdir out
7761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7762
7763 lt_compiler_flag="-o out/conftest2.$ac_objext"
7764 # Insert the option either (1) after the last *FLAGS variable, or
7765 # (2) before a word containing "conftest.", or (3) at the end.
7766 # Note that $ac_compile itself does not contain backslashes and begins
7767 # with a dollar sign (not a hyphen), so the echo should work correctly.
7768 lt_compile=`echo "$ac_compile" | $SED \
7769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7771 -e 's:$: $lt_compiler_flag:'`
7772 (eval echo "\"\$as_me:7772: $lt_compile\"" >&5)
7773 (eval "$lt_compile" 2>out/conftest.err)
7774 ac_status=$?
7775 cat out/conftest.err >&5
7776 echo "$as_me:7776: \$? = $ac_status" >&5
7777 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7778 then
7779 # The compiler can only warn and ignore the option if not recognized
7780 # So say no if there are warnings
7781 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7782 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7783 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7784 lt_cv_prog_compiler_c_o=yes
7785 fi
7786 fi
7787 chmod u+w . 2>&5
7788 $RM conftest*
7789 # SGI C++ compiler will create directory out/ii_files/ for
7790 # template instantiation
7791 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7792 $RM out/* && rmdir out
7793 cd ..
7794 $RM -r conftest
7795 $RM conftest*
7796
7797 fi
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7799 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7800
7801
7802
7803
7804
7805
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7807 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7808 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 lt_cv_prog_compiler_c_o=no
7812 $RM -r conftest 2>/dev/null
7813 mkdir conftest
7814 cd conftest
7815 mkdir out
7816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7817
7818 lt_compiler_flag="-o out/conftest2.$ac_objext"
7819 # Insert the option either (1) after the last *FLAGS variable, or
7820 # (2) before a word containing "conftest.", or (3) at the end.
7821 # Note that $ac_compile itself does not contain backslashes and begins
7822 # with a dollar sign (not a hyphen), so the echo should work correctly.
7823 lt_compile=`echo "$ac_compile" | $SED \
7824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7826 -e 's:$: $lt_compiler_flag:'`
7827 (eval echo "\"\$as_me:7827: $lt_compile\"" >&5)
7828 (eval "$lt_compile" 2>out/conftest.err)
7829 ac_status=$?
7830 cat out/conftest.err >&5
7831 echo "$as_me:7831: \$? = $ac_status" >&5
7832 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7833 then
7834 # The compiler can only warn and ignore the option if not recognized
7835 # So say no if there are warnings
7836 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7837 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7838 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7839 lt_cv_prog_compiler_c_o=yes
7840 fi
7841 fi
7842 chmod u+w . 2>&5
7843 $RM conftest*
7844 # SGI C++ compiler will create directory out/ii_files/ for
7845 # template instantiation
7846 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7847 $RM out/* && rmdir out
7848 cd ..
7849 $RM -r conftest
7850 $RM conftest*
7851
7852 fi
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7854 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7855
7856
7857
7858
7859 hard_links="nottested"
7860 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7861 # do not overwrite the value of need_locks provided by the user
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7863 $as_echo_n "checking if we can lock with hard links... " >&6; }
7864 hard_links=yes
7865 $RM conftest*
7866 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7867 touch conftest.a
7868 ln conftest.a conftest.b 2>&5 || hard_links=no
7869 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7871 $as_echo "$hard_links" >&6; }
7872 if test "$hard_links" = no; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7874 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7875 need_locks=warn
7876 fi
7877 else
7878 need_locks=no
7879 fi
7880
7881
7882
7883
7884
7885
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7887 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7888
7889 runpath_var=
7890 allow_undefined_flag=
7891 always_export_symbols=no
7892 archive_cmds=
7893 archive_expsym_cmds=
7894 compiler_needs_object=no
7895 enable_shared_with_static_runtimes=no
7896 export_dynamic_flag_spec=
7897 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7898 hardcode_automatic=no
7899 hardcode_direct=no
7900 hardcode_direct_absolute=no
7901 hardcode_libdir_flag_spec=
7902 hardcode_libdir_flag_spec_ld=
7903 hardcode_libdir_separator=
7904 hardcode_minus_L=no
7905 hardcode_shlibpath_var=unsupported
7906 inherit_rpath=no
7907 link_all_deplibs=unknown
7908 module_cmds=
7909 module_expsym_cmds=
7910 old_archive_from_new_cmds=
7911 old_archive_from_expsyms_cmds=
7912 thread_safe_flag_spec=
7913 whole_archive_flag_spec=
7914 # include_expsyms should be a list of space-separated symbols to be *always*
7915 # included in the symbol list
7916 include_expsyms=
7917 # exclude_expsyms can be an extended regexp of symbols to exclude
7918 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7919 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7920 # as well as any symbol that contains `d'.
7921 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7922 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7923 # platforms (ab)use it in PIC code, but their linkers get confused if
7924 # the symbol is explicitly referenced. Since portable code cannot
7925 # rely on this symbol name, it's probably fine to never include it in
7926 # preloaded symbol tables.
7927 # Exclude shared library initialization/finalization symbols.
7928 extract_expsyms_cmds=
7929
7930 case $host_os in
7931 cygwin* | mingw* | pw32* | cegcc*)
7932 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7933 # When not using gcc, we currently assume that we are using
7934 # Microsoft Visual C++.
7935 if test "$GCC" != yes; then
7936 with_gnu_ld=no
7937 fi
7938 ;;
7939 interix*)
7940 # we just hope/assume this is gcc and not c89 (= MSVC++)
7941 with_gnu_ld=yes
7942 ;;
7943 openbsd*)
7944 with_gnu_ld=no
7945 ;;
7946 linux* | k*bsd*-gnu)
7947 link_all_deplibs=no
7948 ;;
7949 esac
7950
7951 ld_shlibs=yes
7952 if test "$with_gnu_ld" = yes; then
7953 # If archive_cmds runs LD, not CC, wlarc should be empty
7954 wlarc='${wl}'
7955
7956 # Set some defaults for GNU ld with shared library support. These
7957 # are reset later if shared libraries are not supported. Putting them
7958 # here allows them to be overridden if necessary.
7959 runpath_var=LD_RUN_PATH
7960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7961 export_dynamic_flag_spec='${wl}--export-dynamic'
7962 # ancient GNU ld didn't support --whole-archive et. al.
7963 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7964 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7965 else
7966 whole_archive_flag_spec=
7967 fi
7968 supports_anon_versioning=no
7969 case `$LD -v 2>&1` in
7970 *GNU\ gold*) supports_anon_versioning=yes ;;
7971 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7972 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7973 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7974 *\ 2.11.*) ;; # other 2.11 versions
7975 *) supports_anon_versioning=yes ;;
7976 esac
7977
7978 # See if GNU ld supports shared libraries.
7979 case $host_os in
7980 aix[3-9]*)
7981 # On AIX/PPC, the GNU linker is very broken
7982 if test "$host_cpu" != ia64; then
7983 ld_shlibs=no
7984 cat <<_LT_EOF 1>&2
7985
7986 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7987 *** to be unable to reliably create shared libraries on AIX.
7988 *** Therefore, libtool is disabling shared libraries support. If you
7989 *** really care for shared libraries, you may want to modify your PATH
7990 *** so that a non-GNU linker is found, and then restart.
7991
7992 _LT_EOF
7993 fi
7994 ;;
7995
7996 amigaos*)
7997 case $host_cpu in
7998 powerpc)
7999 # see comment about AmigaOS4 .so support
8000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8001 archive_expsym_cmds=''
8002 ;;
8003 m68k)
8004 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)'
8005 hardcode_libdir_flag_spec='-L$libdir'
8006 hardcode_minus_L=yes
8007 ;;
8008 esac
8009 ;;
8010
8011 beos*)
8012 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8013 allow_undefined_flag=unsupported
8014 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8015 # support --undefined. This deserves some investigation. FIXME
8016 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8017 else
8018 ld_shlibs=no
8019 fi
8020 ;;
8021
8022 cygwin* | mingw* | pw32* | cegcc*)
8023 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8024 # as there is no search path for DLLs.
8025 hardcode_libdir_flag_spec='-L$libdir'
8026 allow_undefined_flag=unsupported
8027 always_export_symbols=no
8028 enable_shared_with_static_runtimes=yes
8029 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8030
8031 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8033 # If the export-symbols file already is a .def file (1st line
8034 # is EXPORTS), use it as is; otherwise, prepend...
8035 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8036 cp $export_symbols $output_objdir/$soname.def;
8037 else
8038 echo EXPORTS > $output_objdir/$soname.def;
8039 cat $export_symbols >> $output_objdir/$soname.def;
8040 fi~
8041 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8042 else
8043 ld_shlibs=no
8044 fi
8045 ;;
8046
8047 interix[3-9]*)
8048 hardcode_direct=no
8049 hardcode_shlibpath_var=no
8050 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8051 export_dynamic_flag_spec='${wl}-E'
8052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8053 # Instead, shared libraries are loaded at an image base (0x10000000 by
8054 # default) and relocated if they conflict, which is a slow very memory
8055 # consuming and fragmenting process. To avoid this, we pick a random,
8056 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8057 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8058 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8059 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'
8060 ;;
8061
8062 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8063 tmp_diet=no
8064 if test "$host_os" = linux-dietlibc; then
8065 case $cc_basename in
8066 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8067 esac
8068 fi
8069 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8070 && test "$tmp_diet" = no
8071 then
8072 tmp_addflag=
8073 tmp_sharedflag='-shared'
8074 case $cc_basename,$host_cpu in
8075 pgcc*) # Portland Group C compiler
8076 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'
8077 tmp_addflag=' $pic_flag'
8078 ;;
8079 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8080 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'
8081 tmp_addflag=' $pic_flag -Mnomain' ;;
8082 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8083 tmp_addflag=' -i_dynamic' ;;
8084 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8085 tmp_addflag=' -i_dynamic -nofor_main' ;;
8086 ifc* | ifort*) # Intel Fortran compiler
8087 tmp_addflag=' -nofor_main' ;;
8088 lf95*) # Lahey Fortran 8.1
8089 whole_archive_flag_spec=
8090 tmp_sharedflag='--shared' ;;
8091 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8092 tmp_sharedflag='-qmkshrobj'
8093 tmp_addflag= ;;
8094 esac
8095 case `$CC -V 2>&1 | sed 5q` in
8096 *Sun\ C*) # Sun C 5.9
8097 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'
8098 compiler_needs_object=yes
8099 tmp_sharedflag='-G' ;;
8100 *Sun\ F*) # Sun Fortran 8.3
8101 tmp_sharedflag='-G' ;;
8102 esac
8103 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8104
8105 if test "x$supports_anon_versioning" = xyes; then
8106 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8108 echo "local: *; };" >> $output_objdir/$libname.ver~
8109 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8110 fi
8111
8112 case $cc_basename in
8113 xlf*)
8114 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8115 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8116 hardcode_libdir_flag_spec=
8117 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8118 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8119 if test "x$supports_anon_versioning" = xyes; then
8120 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8122 echo "local: *; };" >> $output_objdir/$libname.ver~
8123 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8124 fi
8125 ;;
8126 esac
8127 else
8128 ld_shlibs=no
8129 fi
8130 ;;
8131
8132 netbsd* | netbsdelf*-gnu)
8133 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8134 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8135 wlarc=
8136 else
8137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8138 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8139 fi
8140 ;;
8141
8142 solaris*)
8143 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8144 ld_shlibs=no
8145 cat <<_LT_EOF 1>&2
8146
8147 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8148 *** create shared libraries on Solaris systems. Therefore, libtool
8149 *** is disabling shared libraries support. We urge you to upgrade GNU
8150 *** binutils to release 2.9.1 or newer. Another option is to modify
8151 *** your PATH or compiler configuration so that the native linker is
8152 *** used, and then restart.
8153
8154 _LT_EOF
8155 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8157 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8158 else
8159 ld_shlibs=no
8160 fi
8161 ;;
8162
8163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8164 case `$LD -v 2>&1` in
8165 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8166 ld_shlibs=no
8167 cat <<_LT_EOF 1>&2
8168
8169 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8170 *** reliably create shared libraries on SCO systems. Therefore, libtool
8171 *** is disabling shared libraries support. We urge you to upgrade GNU
8172 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8173 *** your PATH or compiler configuration so that the native linker is
8174 *** used, and then restart.
8175
8176 _LT_EOF
8177 ;;
8178 *)
8179 # For security reasons, it is highly recommended that you always
8180 # use absolute paths for naming shared libraries, and exclude the
8181 # DT_RUNPATH tag from executables and libraries. But doing so
8182 # requires that you compile everything twice, which is a pain.
8183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8186 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8187 else
8188 ld_shlibs=no
8189 fi
8190 ;;
8191 esac
8192 ;;
8193
8194 sunos4*)
8195 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8196 wlarc=
8197 hardcode_direct=yes
8198 hardcode_shlibpath_var=no
8199 ;;
8200
8201 *)
8202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8205 else
8206 ld_shlibs=no
8207 fi
8208 ;;
8209 esac
8210
8211 if test "$ld_shlibs" = no; then
8212 runpath_var=
8213 hardcode_libdir_flag_spec=
8214 export_dynamic_flag_spec=
8215 whole_archive_flag_spec=
8216 fi
8217 else
8218 # PORTME fill in a description of your system's linker (not GNU ld)
8219 case $host_os in
8220 aix3*)
8221 allow_undefined_flag=unsupported
8222 always_export_symbols=yes
8223 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'
8224 # Note: this linker hardcodes the directories in LIBPATH if there
8225 # are no directories specified by -L.
8226 hardcode_minus_L=yes
8227 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8228 # Neither direct hardcoding nor static linking is supported with a
8229 # broken collect2.
8230 hardcode_direct=unsupported
8231 fi
8232 ;;
8233
8234 aix[4-9]*)
8235 if test "$host_cpu" = ia64; then
8236 # On IA64, the linker does run time linking by default, so we don't
8237 # have to do anything special.
8238 aix_use_runtimelinking=no
8239 exp_sym_flag='-Bexport'
8240 no_entry_flag=""
8241 else
8242 # If we're using GNU nm, then we don't want the "-C" option.
8243 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8244 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8245 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'
8246 else
8247 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'
8248 fi
8249 aix_use_runtimelinking=no
8250
8251 # Test if we are trying to use run time linking or normal
8252 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8253 # need to do runtime linking.
8254 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8255 for ld_flag in $LDFLAGS; do
8256 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8257 aix_use_runtimelinking=yes
8258 break
8259 fi
8260 done
8261 ;;
8262 esac
8263
8264 exp_sym_flag='-bexport'
8265 no_entry_flag='-bnoentry'
8266 fi
8267
8268 # When large executables or shared objects are built, AIX ld can
8269 # have problems creating the table of contents. If linking a library
8270 # or program results in "error TOC overflow" add -mminimal-toc to
8271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8273
8274 archive_cmds=''
8275 hardcode_direct=yes
8276 hardcode_direct_absolute=yes
8277 hardcode_libdir_separator=':'
8278 link_all_deplibs=yes
8279 file_list_spec='${wl}-f,'
8280
8281 if test "$GCC" = yes; then
8282 case $host_os in aix4.[012]|aix4.[012].*)
8283 # We only want to do this on AIX 4.2 and lower, the check
8284 # below for broken collect2 doesn't work under 4.3+
8285 collect2name=`${CC} -print-prog-name=collect2`
8286 if test -f "$collect2name" &&
8287 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8288 then
8289 # We have reworked collect2
8290 :
8291 else
8292 # We have old collect2
8293 hardcode_direct=unsupported
8294 # It fails to find uninstalled libraries when the uninstalled
8295 # path is not listed in the libpath. Setting hardcode_minus_L
8296 # to unsupported forces relinking
8297 hardcode_minus_L=yes
8298 hardcode_libdir_flag_spec='-L$libdir'
8299 hardcode_libdir_separator=
8300 fi
8301 ;;
8302 esac
8303 shared_flag='-shared'
8304 if test "$aix_use_runtimelinking" = yes; then
8305 shared_flag="$shared_flag "'${wl}-G'
8306 fi
8307 link_all_deplibs=no
8308 else
8309 # not using gcc
8310 if test "$host_cpu" = ia64; then
8311 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8312 # chokes on -Wl,-G. The following line is correct:
8313 shared_flag='-G'
8314 else
8315 if test "$aix_use_runtimelinking" = yes; then
8316 shared_flag='${wl}-G'
8317 else
8318 shared_flag='${wl}-bM:SRE'
8319 fi
8320 fi
8321 fi
8322
8323 export_dynamic_flag_spec='${wl}-bexpall'
8324 # It seems that -bexpall does not export symbols beginning with
8325 # underscore (_), so it is better to generate a list of symbols to export.
8326 always_export_symbols=yes
8327 if test "$aix_use_runtimelinking" = yes; then
8328 # Warning - without using the other runtime loading flags (-brtl),
8329 # -berok will link without error, but may produce a broken library.
8330 allow_undefined_flag='-berok'
8331 # Determine the default libpath from the value encoded in an
8332 # empty executable.
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8335
8336 int
8337 main ()
8338 {
8339
8340 ;
8341 return 0;
8342 }
8343 _ACEOF
8344 if ac_fn_c_try_link "$LINENO"; then :
8345
8346 lt_aix_libpath_sed='
8347 /Import File Strings/,/^$/ {
8348 /^0/ {
8349 s/^0 *\(.*\)$/\1/
8350 p
8351 }
8352 }'
8353 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8354 # Check for a 64-bit object if we didn't find anything.
8355 if test -z "$aix_libpath"; then
8356 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8357 fi
8358 fi
8359 rm -f core conftest.err conftest.$ac_objext \
8360 conftest$ac_exeext conftest.$ac_ext
8361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8362
8363 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8364 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"
8365 else
8366 if test "$host_cpu" = ia64; then
8367 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8368 allow_undefined_flag="-z nodefs"
8369 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"
8370 else
8371 # Determine the default libpath from the value encoded in an
8372 # empty executable.
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375
8376 int
8377 main ()
8378 {
8379
8380 ;
8381 return 0;
8382 }
8383 _ACEOF
8384 if ac_fn_c_try_link "$LINENO"; then :
8385
8386 lt_aix_libpath_sed='
8387 /Import File Strings/,/^$/ {
8388 /^0/ {
8389 s/^0 *\(.*\)$/\1/
8390 p
8391 }
8392 }'
8393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8394 # Check for a 64-bit object if we didn't find anything.
8395 if test -z "$aix_libpath"; then
8396 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8397 fi
8398 fi
8399 rm -f core conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
8401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8402
8403 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8404 # Warning - without using the other run time loading flags,
8405 # -berok will link without error, but may produce a broken library.
8406 no_undefined_flag=' ${wl}-bernotok'
8407 allow_undefined_flag=' ${wl}-berok'
8408 # Exported symbols can be pulled into shared objects from archives
8409 whole_archive_flag_spec='$convenience'
8410 archive_cmds_need_lc=yes
8411 # This is similar to how AIX traditionally builds its shared libraries.
8412 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'
8413 fi
8414 fi
8415 ;;
8416
8417 amigaos*)
8418 case $host_cpu in
8419 powerpc)
8420 # see comment about AmigaOS4 .so support
8421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422 archive_expsym_cmds=''
8423 ;;
8424 m68k)
8425 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)'
8426 hardcode_libdir_flag_spec='-L$libdir'
8427 hardcode_minus_L=yes
8428 ;;
8429 esac
8430 ;;
8431
8432 bsdi[45]*)
8433 export_dynamic_flag_spec=-rdynamic
8434 ;;
8435
8436 cygwin* | mingw* | pw32* | cegcc*)
8437 # When not using gcc, we currently assume that we are using
8438 # Microsoft Visual C++.
8439 # hardcode_libdir_flag_spec is actually meaningless, as there is
8440 # no search path for DLLs.
8441 hardcode_libdir_flag_spec=' '
8442 allow_undefined_flag=unsupported
8443 # Tell ltmain to make .lib files, not .a files.
8444 libext=lib
8445 # Tell ltmain to make .dll files, not .so files.
8446 shrext_cmds=".dll"
8447 # FIXME: Setting linknames here is a bad hack.
8448 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8449 # The linker will automatically build a .lib file if we build a DLL.
8450 old_archive_from_new_cmds='true'
8451 # FIXME: Should let the user specify the lib program.
8452 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8453 fix_srcfile_path='`cygpath -w "$srcfile"`'
8454 enable_shared_with_static_runtimes=yes
8455 ;;
8456
8457 darwin* | rhapsody*)
8458
8459
8460 archive_cmds_need_lc=no
8461 hardcode_direct=no
8462 hardcode_automatic=yes
8463 hardcode_shlibpath_var=unsupported
8464 whole_archive_flag_spec=''
8465 link_all_deplibs=yes
8466 allow_undefined_flag="$_lt_dar_allow_undefined"
8467 case $cc_basename in
8468 ifort*) _lt_dar_can_shared=yes ;;
8469 *) _lt_dar_can_shared=$GCC ;;
8470 esac
8471 if test "$_lt_dar_can_shared" = "yes"; then
8472 output_verbose_link_cmd=echo
8473 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8474 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8475 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}"
8476 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}"
8477
8478 else
8479 ld_shlibs=no
8480 fi
8481
8482 ;;
8483
8484 dgux*)
8485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8486 hardcode_libdir_flag_spec='-L$libdir'
8487 hardcode_shlibpath_var=no
8488 ;;
8489
8490 freebsd1*)
8491 ld_shlibs=no
8492 ;;
8493
8494 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8495 # support. Future versions do this automatically, but an explicit c++rt0.o
8496 # does not break anything, and helps significantly (at the cost of a little
8497 # extra space).
8498 freebsd2.2*)
8499 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8500 hardcode_libdir_flag_spec='-R$libdir'
8501 hardcode_direct=yes
8502 hardcode_shlibpath_var=no
8503 ;;
8504
8505 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8506 freebsd2*)
8507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8508 hardcode_direct=yes
8509 hardcode_minus_L=yes
8510 hardcode_shlibpath_var=no
8511 ;;
8512
8513 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8514 freebsd* | dragonfly*)
8515 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8516 hardcode_libdir_flag_spec='-R$libdir'
8517 hardcode_direct=yes
8518 hardcode_shlibpath_var=no
8519 ;;
8520
8521 hpux9*)
8522 if test "$GCC" = yes; then
8523 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'
8524 else
8525 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'
8526 fi
8527 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8528 hardcode_libdir_separator=:
8529 hardcode_direct=yes
8530
8531 # hardcode_minus_L: Not really in the search PATH,
8532 # but as the default location of the library.
8533 hardcode_minus_L=yes
8534 export_dynamic_flag_spec='${wl}-E'
8535 ;;
8536
8537 hpux10*)
8538 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8539 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8540 else
8541 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8542 fi
8543 if test "$with_gnu_ld" = no; then
8544 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8545 hardcode_libdir_flag_spec_ld='+b $libdir'
8546 hardcode_libdir_separator=:
8547 hardcode_direct=yes
8548 hardcode_direct_absolute=yes
8549 export_dynamic_flag_spec='${wl}-E'
8550 # hardcode_minus_L: Not really in the search PATH,
8551 # but as the default location of the library.
8552 hardcode_minus_L=yes
8553 fi
8554 ;;
8555
8556 hpux11*)
8557 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8558 case $host_cpu in
8559 hppa*64*)
8560 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8561 ;;
8562 ia64*)
8563 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8564 ;;
8565 *)
8566 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8567 ;;
8568 esac
8569 else
8570 case $host_cpu in
8571 hppa*64*)
8572 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8573 ;;
8574 ia64*)
8575 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8576 ;;
8577 *)
8578 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8579 ;;
8580 esac
8581 fi
8582 if test "$with_gnu_ld" = no; then
8583 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8584 hardcode_libdir_separator=:
8585
8586 case $host_cpu in
8587 hppa*64*|ia64*)
8588 hardcode_direct=no
8589 hardcode_shlibpath_var=no
8590 ;;
8591 *)
8592 hardcode_direct=yes
8593 hardcode_direct_absolute=yes
8594 export_dynamic_flag_spec='${wl}-E'
8595
8596 # hardcode_minus_L: Not really in the search PATH,
8597 # but as the default location of the library.
8598 hardcode_minus_L=yes
8599 ;;
8600 esac
8601 fi
8602 ;;
8603
8604 irix5* | irix6* | nonstopux*)
8605 if test "$GCC" = yes; then
8606 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'
8607 # Try to use the -exported_symbol ld option, if it does not
8608 # work, assume that -exports_file does not work either and
8609 # implicitly export all symbols.
8610 save_LDFLAGS="$LDFLAGS"
8611 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8614 int foo(void) {}
8615 _ACEOF
8616 if ac_fn_c_try_link "$LINENO"; then :
8617 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'
8618
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8622 LDFLAGS="$save_LDFLAGS"
8623 else
8624 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'
8625 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'
8626 fi
8627 archive_cmds_need_lc='no'
8628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8629 hardcode_libdir_separator=:
8630 inherit_rpath=yes
8631 link_all_deplibs=yes
8632 ;;
8633
8634 netbsd* | netbsdelf*-gnu)
8635 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8637 else
8638 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8639 fi
8640 hardcode_libdir_flag_spec='-R$libdir'
8641 hardcode_direct=yes
8642 hardcode_shlibpath_var=no
8643 ;;
8644
8645 newsos6)
8646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8647 hardcode_direct=yes
8648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8649 hardcode_libdir_separator=:
8650 hardcode_shlibpath_var=no
8651 ;;
8652
8653 *nto* | *qnx*)
8654 ;;
8655
8656 openbsd*)
8657 if test -f /usr/libexec/ld.so; then
8658 hardcode_direct=yes
8659 hardcode_shlibpath_var=no
8660 hardcode_direct_absolute=yes
8661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8662 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8663 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8665 export_dynamic_flag_spec='${wl}-E'
8666 else
8667 case $host_os in
8668 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8670 hardcode_libdir_flag_spec='-R$libdir'
8671 ;;
8672 *)
8673 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8674 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8675 ;;
8676 esac
8677 fi
8678 else
8679 ld_shlibs=no
8680 fi
8681 ;;
8682
8683 os2*)
8684 hardcode_libdir_flag_spec='-L$libdir'
8685 hardcode_minus_L=yes
8686 allow_undefined_flag=unsupported
8687 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'
8688 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8689 ;;
8690
8691 osf3*)
8692 if test "$GCC" = yes; then
8693 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8694 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'
8695 else
8696 allow_undefined_flag=' -expect_unresolved \*'
8697 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'
8698 fi
8699 archive_cmds_need_lc='no'
8700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8701 hardcode_libdir_separator=:
8702 ;;
8703
8704 osf4* | osf5*) # as osf3* with the addition of -msym flag
8705 if test "$GCC" = yes; then
8706 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8707 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'
8708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8709 else
8710 allow_undefined_flag=' -expect_unresolved \*'
8711 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'
8712 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~
8713 $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'
8714
8715 # Both c and cxx compiler support -rpath directly
8716 hardcode_libdir_flag_spec='-rpath $libdir'
8717 fi
8718 archive_cmds_need_lc='no'
8719 hardcode_libdir_separator=:
8720 ;;
8721
8722 solaris*)
8723 no_undefined_flag=' -z defs'
8724 if test "$GCC" = yes; then
8725 wlarc='${wl}'
8726 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8727 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8728 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8729 else
8730 case `$CC -V 2>&1` in
8731 *"Compilers 5.0"*)
8732 wlarc=''
8733 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8735 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8736 ;;
8737 *)
8738 wlarc='${wl}'
8739 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8740 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8741 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8742 ;;
8743 esac
8744 fi
8745 hardcode_libdir_flag_spec='-R$libdir'
8746 hardcode_shlibpath_var=no
8747 case $host_os in
8748 solaris2.[0-5] | solaris2.[0-5].*) ;;
8749 *)
8750 # The compiler driver will combine and reorder linker options,
8751 # but understands `-z linker_flag'. GCC discards it without `$wl',
8752 # but is careful enough not to reorder.
8753 # Supported since Solaris 2.6 (maybe 2.5.1?)
8754 if test "$GCC" = yes; then
8755 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8756 else
8757 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8758 fi
8759 ;;
8760 esac
8761 link_all_deplibs=yes
8762 ;;
8763
8764 sunos4*)
8765 if test "x$host_vendor" = xsequent; then
8766 # Use $CC to link under sequent, because it throws in some extra .o
8767 # files that make .init and .fini sections work.
8768 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8769 else
8770 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8771 fi
8772 hardcode_libdir_flag_spec='-L$libdir'
8773 hardcode_direct=yes
8774 hardcode_minus_L=yes
8775 hardcode_shlibpath_var=no
8776 ;;
8777
8778 sysv4)
8779 case $host_vendor in
8780 sni)
8781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782 hardcode_direct=yes # is this really true???
8783 ;;
8784 siemens)
8785 ## LD is ld it makes a PLAMLIB
8786 ## CC just makes a GrossModule.
8787 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8788 reload_cmds='$CC -r -o $output$reload_objs'
8789 hardcode_direct=no
8790 ;;
8791 motorola)
8792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8793 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8794 ;;
8795 esac
8796 runpath_var='LD_RUN_PATH'
8797 hardcode_shlibpath_var=no
8798 ;;
8799
8800 sysv4.3*)
8801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802 hardcode_shlibpath_var=no
8803 export_dynamic_flag_spec='-Bexport'
8804 ;;
8805
8806 sysv4*MP*)
8807 if test -d /usr/nec; then
8808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809 hardcode_shlibpath_var=no
8810 runpath_var=LD_RUN_PATH
8811 hardcode_runpath_var=yes
8812 ld_shlibs=yes
8813 fi
8814 ;;
8815
8816 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8817 no_undefined_flag='${wl}-z,text'
8818 archive_cmds_need_lc=no
8819 hardcode_shlibpath_var=no
8820 runpath_var='LD_RUN_PATH'
8821
8822 if test "$GCC" = yes; then
8823 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8824 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8825 else
8826 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8827 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 fi
8829 ;;
8830
8831 sysv5* | sco3.2v5* | sco5v6*)
8832 # Note: We can NOT use -z defs as we might desire, because we do not
8833 # link with -lc, and that would cause any symbols used from libc to
8834 # always be unresolved, which means just about no library would
8835 # ever link correctly. If we're not using GNU ld we use -z text
8836 # though, which does catch some bad symbols but isn't as heavy-handed
8837 # as -z defs.
8838 no_undefined_flag='${wl}-z,text'
8839 allow_undefined_flag='${wl}-z,nodefs'
8840 archive_cmds_need_lc=no
8841 hardcode_shlibpath_var=no
8842 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8843 hardcode_libdir_separator=':'
8844 link_all_deplibs=yes
8845 export_dynamic_flag_spec='${wl}-Bexport'
8846 runpath_var='LD_RUN_PATH'
8847
8848 if test "$GCC" = yes; then
8849 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8850 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8851 else
8852 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8853 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8854 fi
8855 ;;
8856
8857 uts4*)
8858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8859 hardcode_libdir_flag_spec='-L$libdir'
8860 hardcode_shlibpath_var=no
8861 ;;
8862
8863 *)
8864 ld_shlibs=no
8865 ;;
8866 esac
8867
8868 if test x$host_vendor = xsni; then
8869 case $host in
8870 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8871 export_dynamic_flag_spec='${wl}-Blargedynsym'
8872 ;;
8873 esac
8874 fi
8875 fi
8876
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8878 $as_echo "$ld_shlibs" >&6; }
8879 test "$ld_shlibs" = no && can_build_shared=no
8880
8881 with_gnu_ld=$with_gnu_ld
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897 #
8898 # Do we need to explicitly link libc?
8899 #
8900 case "x$archive_cmds_need_lc" in
8901 x|xyes)
8902 # Assume -lc should be added
8903 archive_cmds_need_lc=yes
8904
8905 if test "$enable_shared" = yes && test "$GCC" = yes; then
8906 case $archive_cmds in
8907 *'~'*)
8908 # FIXME: we may have to deal with multi-command sequences.
8909 ;;
8910 '$CC '*)
8911 # Test whether the compiler implicitly links with -lc since on some
8912 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8913 # to ld, don't add -lc before -lgcc.
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8915 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8916 $RM conftest*
8917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8918
8919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8920 (eval $ac_compile) 2>&5
8921 ac_status=$?
8922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8923 test $ac_status = 0; } 2>conftest.err; then
8924 soname=conftest
8925 lib=conftest
8926 libobjs=conftest.$ac_objext
8927 deplibs=
8928 wl=$lt_prog_compiler_wl
8929 pic_flag=$lt_prog_compiler_pic
8930 compiler_flags=-v
8931 linker_flags=-v
8932 verstring=
8933 output_objdir=.
8934 libname=conftest
8935 lt_save_allow_undefined_flag=$allow_undefined_flag
8936 allow_undefined_flag=
8937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8938 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8939 ac_status=$?
8940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8941 test $ac_status = 0; }
8942 then
8943 archive_cmds_need_lc=no
8944 else
8945 archive_cmds_need_lc=yes
8946 fi
8947 allow_undefined_flag=$lt_save_allow_undefined_flag
8948 else
8949 cat conftest.err 1>&5
8950 fi
8951 $RM conftest*
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8953 $as_echo "$archive_cmds_need_lc" >&6; }
8954 ;;
8955 esac
8956 fi
8957 ;;
8958 esac
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9117 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9118
9119 if test "$GCC" = yes; then
9120 case $host_os in
9121 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9122 *) lt_awk_arg="/^libraries:/" ;;
9123 esac
9124 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9125 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9126 # if the path contains ";" then we assume it to be the separator
9127 # otherwise default to the standard path separator (i.e. ":") - it is
9128 # assumed that no part of a normal pathname contains ";" but that should
9129 # okay in the real world where ";" in dirpaths is itself problematic.
9130 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9131 else
9132 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9133 fi
9134 # Ok, now we have the path, separated by spaces, we can step through it
9135 # and add multilib dir if necessary.
9136 lt_tmp_lt_search_path_spec=
9137 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9138 for lt_sys_path in $lt_search_path_spec; do
9139 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9140 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9141 else
9142 test -d "$lt_sys_path" && \
9143 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9144 fi
9145 done
9146 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9147 BEGIN {RS=" "; FS="/|\n";} {
9148 lt_foo="";
9149 lt_count=0;
9150 for (lt_i = NF; lt_i > 0; lt_i--) {
9151 if ($lt_i != "" && $lt_i != ".") {
9152 if ($lt_i == "..") {
9153 lt_count++;
9154 } else {
9155 if (lt_count == 0) {
9156 lt_foo="/" $lt_i lt_foo;
9157 } else {
9158 lt_count--;
9159 }
9160 }
9161 }
9162 }
9163 if (lt_foo != "") { lt_freq[lt_foo]++; }
9164 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9165 }'`
9166 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9167 else
9168 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9169 fi
9170 library_names_spec=
9171 libname_spec='lib$name'
9172 soname_spec=
9173 shrext_cmds=".so"
9174 postinstall_cmds=
9175 postuninstall_cmds=
9176 finish_cmds=
9177 finish_eval=
9178 shlibpath_var=
9179 shlibpath_overrides_runpath=unknown
9180 version_type=none
9181 dynamic_linker="$host_os ld.so"
9182 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9183 need_lib_prefix=unknown
9184 hardcode_into_libs=no
9185
9186 # when you set need_version to no, make sure it does not cause -set_version
9187 # flags to be left without arguments
9188 need_version=unknown
9189
9190 case $host_os in
9191 aix3*)
9192 version_type=linux
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9194 shlibpath_var=LIBPATH
9195
9196 # AIX 3 has no versioning support, so we append a major version to the name.
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 ;;
9199
9200 aix[4-9]*)
9201 version_type=linux
9202 need_lib_prefix=no
9203 need_version=no
9204 hardcode_into_libs=yes
9205 if test "$host_cpu" = ia64; then
9206 # AIX 5 supports IA64
9207 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 else
9210 # With GCC up to 2.95.x, collect2 would create an import file
9211 # for dependence libraries. The import file would start with
9212 # the line `#! .'. This would cause the generated library to
9213 # depend on `.', always an invalid library. This was fixed in
9214 # development snapshots of GCC prior to 3.0.
9215 case $host_os in
9216 aix4 | aix4.[01] | aix4.[01].*)
9217 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9218 echo ' yes '
9219 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9220 :
9221 else
9222 can_build_shared=no
9223 fi
9224 ;;
9225 esac
9226 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9227 # soname into executable. Probably we can add versioning support to
9228 # collect2, so additional links can be useful in future.
9229 if test "$aix_use_runtimelinking" = yes; then
9230 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9231 # instead of lib<name>.a to let people know that these are not
9232 # typical AIX shared libraries.
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 else
9235 # We preserve .a as extension for shared libraries through AIX4.2
9236 # and later when we are not doing run time linking.
9237 library_names_spec='${libname}${release}.a $libname.a'
9238 soname_spec='${libname}${release}${shared_ext}$major'
9239 fi
9240 shlibpath_var=LIBPATH
9241 fi
9242 ;;
9243
9244 amigaos*)
9245 case $host_cpu in
9246 powerpc)
9247 # Since July 2007 AmigaOS4 officially supports .so libraries.
9248 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250 ;;
9251 m68k)
9252 library_names_spec='$libname.ixlibrary $libname.a'
9253 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9254 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'
9255 ;;
9256 esac
9257 ;;
9258
9259 beos*)
9260 library_names_spec='${libname}${shared_ext}'
9261 dynamic_linker="$host_os ld.so"
9262 shlibpath_var=LIBRARY_PATH
9263 ;;
9264
9265 bsdi[45]*)
9266 version_type=linux
9267 need_version=no
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9273 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9274 # the default ld.so.conf also contains /usr/contrib/lib and
9275 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9276 # libtool to hard-code these into programs
9277 ;;
9278
9279 cygwin* | mingw* | pw32* | cegcc*)
9280 version_type=windows
9281 shrext_cmds=".dll"
9282 need_version=no
9283 need_lib_prefix=no
9284
9285 case $GCC,$host_os in
9286 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9287 library_names_spec='$libname.dll.a'
9288 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9289 postinstall_cmds='base_file=`basename \${file}`~
9290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9291 dldir=$destdir/`dirname \$dlpath`~
9292 test -d \$dldir || mkdir -p \$dldir~
9293 $install_prog $dir/$dlname \$dldir/$dlname~
9294 chmod a+x \$dldir/$dlname~
9295 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9296 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9297 fi'
9298 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9299 dlpath=$dir/\$dldll~
9300 $RM \$dlpath'
9301 shlibpath_overrides_runpath=yes
9302
9303 case $host_os in
9304 cygwin*)
9305 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9306 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9307 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9308 ;;
9309 mingw* | cegcc*)
9310 # MinGW DLLs use traditional 'lib' prefix
9311 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9312 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9313 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9314 # It is most probably a Windows format PATH printed by
9315 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9316 # path with ; separators, and with drive letters. We can handle the
9317 # drive letters (cygwin fileutils understands them), so leave them,
9318 # especially as we might pass files found there to a mingw objdump,
9319 # which wouldn't understand a cygwinified path. Ahh.
9320 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9321 else
9322 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9323 fi
9324 ;;
9325 pw32*)
9326 # pw32 DLLs use 'pw' prefix rather than 'lib'
9327 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9328 ;;
9329 esac
9330 ;;
9331
9332 *)
9333 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9334 ;;
9335 esac
9336 dynamic_linker='Win32 ld.exe'
9337 # FIXME: first we should search . and the directory the executable is in
9338 shlibpath_var=PATH
9339 ;;
9340
9341 darwin* | rhapsody*)
9342 dynamic_linker="$host_os dyld"
9343 version_type=darwin
9344 need_lib_prefix=no
9345 need_version=no
9346 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9347 soname_spec='${libname}${release}${major}$shared_ext'
9348 shlibpath_overrides_runpath=yes
9349 shlibpath_var=DYLD_LIBRARY_PATH
9350 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9351
9352 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9353 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9354 ;;
9355
9356 dgux*)
9357 version_type=linux
9358 need_lib_prefix=no
9359 need_version=no
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 ;;
9364
9365 freebsd1*)
9366 dynamic_linker=no
9367 ;;
9368
9369 freebsd* | dragonfly*)
9370 # DragonFly does not have aout. When/if they implement a new
9371 # versioning mechanism, adjust this.
9372 if test -x /usr/bin/objformat; then
9373 objformat=`/usr/bin/objformat`
9374 else
9375 case $host_os in
9376 freebsd[123]*) objformat=aout ;;
9377 *) objformat=elf ;;
9378 esac
9379 fi
9380 version_type=freebsd-$objformat
9381 case $version_type in
9382 freebsd-elf*)
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9384 need_version=no
9385 need_lib_prefix=no
9386 ;;
9387 freebsd-*)
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9389 need_version=yes
9390 ;;
9391 esac
9392 shlibpath_var=LD_LIBRARY_PATH
9393 case $host_os in
9394 freebsd2*)
9395 shlibpath_overrides_runpath=yes
9396 ;;
9397 freebsd3.[01]* | freebsdelf3.[01]*)
9398 shlibpath_overrides_runpath=yes
9399 hardcode_into_libs=yes
9400 ;;
9401 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9402 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9403 shlibpath_overrides_runpath=no
9404 hardcode_into_libs=yes
9405 ;;
9406 *) # from 4.6 on, and DragonFly
9407 shlibpath_overrides_runpath=yes
9408 hardcode_into_libs=yes
9409 ;;
9410 esac
9411 ;;
9412
9413 gnu*)
9414 version_type=linux
9415 need_lib_prefix=no
9416 need_version=no
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9418 soname_spec='${libname}${release}${shared_ext}$major'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 hardcode_into_libs=yes
9421 ;;
9422
9423 hpux9* | hpux10* | hpux11*)
9424 # Give a soname corresponding to the major version so that dld.sl refuses to
9425 # link against other versions.
9426 version_type=sunos
9427 need_lib_prefix=no
9428 need_version=no
9429 case $host_cpu in
9430 ia64*)
9431 shrext_cmds='.so'
9432 hardcode_into_libs=yes
9433 dynamic_linker="$host_os dld.so"
9434 shlibpath_var=LD_LIBRARY_PATH
9435 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9437 soname_spec='${libname}${release}${shared_ext}$major'
9438 if test "X$HPUX_IA64_MODE" = X32; then
9439 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9440 else
9441 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9442 fi
9443 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9444 ;;
9445 hppa*64*)
9446 shrext_cmds='.sl'
9447 hardcode_into_libs=yes
9448 dynamic_linker="$host_os dld.sl"
9449 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9450 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452 soname_spec='${libname}${release}${shared_ext}$major'
9453 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9454 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9455 ;;
9456 *)
9457 shrext_cmds='.sl'
9458 dynamic_linker="$host_os dld.sl"
9459 shlibpath_var=SHLIB_PATH
9460 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462 soname_spec='${libname}${release}${shared_ext}$major'
9463 ;;
9464 esac
9465 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9466 postinstall_cmds='chmod 555 $lib'
9467 ;;
9468
9469 interix[3-9]*)
9470 version_type=linux
9471 need_lib_prefix=no
9472 need_version=no
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9476 shlibpath_var=LD_LIBRARY_PATH
9477 shlibpath_overrides_runpath=no
9478 hardcode_into_libs=yes
9479 ;;
9480
9481 irix5* | irix6* | nonstopux*)
9482 case $host_os in
9483 nonstopux*) version_type=nonstopux ;;
9484 *)
9485 if test "$lt_cv_prog_gnu_ld" = yes; then
9486 version_type=linux
9487 else
9488 version_type=irix
9489 fi ;;
9490 esac
9491 need_lib_prefix=no
9492 need_version=no
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9495 case $host_os in
9496 irix5* | nonstopux*)
9497 libsuff= shlibsuff=
9498 ;;
9499 *)
9500 case $LD in # libtool.m4 will add one of these switches to LD
9501 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9502 libsuff= shlibsuff= libmagic=32-bit;;
9503 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9504 libsuff=32 shlibsuff=N32 libmagic=N32;;
9505 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9506 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9507 *) libsuff= shlibsuff= libmagic=never-match;;
9508 esac
9509 ;;
9510 esac
9511 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9512 shlibpath_overrides_runpath=no
9513 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9514 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9515 hardcode_into_libs=yes
9516 ;;
9517
9518 # No shared lib support for Linux oldld, aout, or coff.
9519 linux*oldld* | linux*aout* | linux*coff*)
9520 dynamic_linker=no
9521 ;;
9522
9523 # This must be Linux ELF.
9524 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9525 version_type=linux
9526 need_lib_prefix=no
9527 need_version=no
9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529 soname_spec='${libname}${release}${shared_ext}$major'
9530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9531 shlibpath_var=LD_LIBRARY_PATH
9532 shlibpath_overrides_runpath=no
9533 # Some binutils ld are patched to set DT_RUNPATH
9534 save_LDFLAGS=$LDFLAGS
9535 save_libdir=$libdir
9536 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9537 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540
9541 int
9542 main ()
9543 {
9544
9545 ;
9546 return 0;
9547 }
9548 _ACEOF
9549 if ac_fn_c_try_link "$LINENO"; then :
9550 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9551 shlibpath_overrides_runpath=yes
9552 fi
9553 fi
9554 rm -f core conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9556 LDFLAGS=$save_LDFLAGS
9557 libdir=$save_libdir
9558
9559 # This implies no fast_install, which is unacceptable.
9560 # Some rework will be needed to allow for fast_install
9561 # before this can be enabled.
9562 hardcode_into_libs=yes
9563
9564 # Append ld.so.conf contents to the search path
9565 if test -f /etc/ld.so.conf; then
9566 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' ' '`
9567 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9568 fi
9569
9570 # We used to test for /lib/ld.so.1 and disable shared libraries on
9571 # powerpc, because MkLinux only supported shared libraries with the
9572 # GNU dynamic linker. Since this was broken with cross compilers,
9573 # most powerpc-linux boxes support dynamic linking these days and
9574 # people can always --disable-shared, the test was removed, and we
9575 # assume the GNU/Linux dynamic linker is in use.
9576 dynamic_linker='GNU/Linux ld.so'
9577 ;;
9578
9579 netbsdelf*-gnu)
9580 version_type=linux
9581 need_lib_prefix=no
9582 need_version=no
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9584 soname_spec='${libname}${release}${shared_ext}$major'
9585 shlibpath_var=LD_LIBRARY_PATH
9586 shlibpath_overrides_runpath=no
9587 hardcode_into_libs=yes
9588 dynamic_linker='NetBSD ld.elf_so'
9589 ;;
9590
9591 netbsd*)
9592 version_type=sunos
9593 need_lib_prefix=no
9594 need_version=no
9595 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9598 dynamic_linker='NetBSD (a.out) ld.so'
9599 else
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 dynamic_linker='NetBSD ld.elf_so'
9603 fi
9604 shlibpath_var=LD_LIBRARY_PATH
9605 shlibpath_overrides_runpath=yes
9606 hardcode_into_libs=yes
9607 ;;
9608
9609 newsos6)
9610 version_type=linux
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612 shlibpath_var=LD_LIBRARY_PATH
9613 shlibpath_overrides_runpath=yes
9614 ;;
9615
9616 *nto* | *qnx*)
9617 version_type=qnx
9618 need_lib_prefix=no
9619 need_version=no
9620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9621 soname_spec='${libname}${release}${shared_ext}$major'
9622 shlibpath_var=LD_LIBRARY_PATH
9623 shlibpath_overrides_runpath=no
9624 hardcode_into_libs=yes
9625 dynamic_linker='ldqnx.so'
9626 ;;
9627
9628 openbsd*)
9629 version_type=sunos
9630 sys_lib_dlsearch_path_spec="/usr/lib"
9631 need_lib_prefix=no
9632 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9633 case $host_os in
9634 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9635 *) need_version=no ;;
9636 esac
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9639 shlibpath_var=LD_LIBRARY_PATH
9640 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9641 case $host_os in
9642 openbsd2.[89] | openbsd2.[89].*)
9643 shlibpath_overrides_runpath=no
9644 ;;
9645 *)
9646 shlibpath_overrides_runpath=yes
9647 ;;
9648 esac
9649 else
9650 shlibpath_overrides_runpath=yes
9651 fi
9652 ;;
9653
9654 os2*)
9655 libname_spec='$name'
9656 shrext_cmds=".dll"
9657 need_lib_prefix=no
9658 library_names_spec='$libname${shared_ext} $libname.a'
9659 dynamic_linker='OS/2 ld.exe'
9660 shlibpath_var=LIBPATH
9661 ;;
9662
9663 osf3* | osf4* | osf5*)
9664 version_type=osf
9665 need_lib_prefix=no
9666 need_version=no
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669 shlibpath_var=LD_LIBRARY_PATH
9670 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9671 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9672 ;;
9673
9674 rdos*)
9675 dynamic_linker=no
9676 ;;
9677
9678 solaris*)
9679 version_type=linux
9680 need_lib_prefix=no
9681 need_version=no
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 shlibpath_var=LD_LIBRARY_PATH
9685 shlibpath_overrides_runpath=yes
9686 hardcode_into_libs=yes
9687 # ldd complains unless libraries are executable
9688 postinstall_cmds='chmod +x $lib'
9689 ;;
9690
9691 sunos4*)
9692 version_type=sunos
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9694 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9695 shlibpath_var=LD_LIBRARY_PATH
9696 shlibpath_overrides_runpath=yes
9697 if test "$with_gnu_ld" = yes; then
9698 need_lib_prefix=no
9699 fi
9700 need_version=yes
9701 ;;
9702
9703 sysv4 | sysv4.3*)
9704 version_type=linux
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706 soname_spec='${libname}${release}${shared_ext}$major'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 case $host_vendor in
9709 sni)
9710 shlibpath_overrides_runpath=no
9711 need_lib_prefix=no
9712 runpath_var=LD_RUN_PATH
9713 ;;
9714 siemens)
9715 need_lib_prefix=no
9716 ;;
9717 motorola)
9718 need_lib_prefix=no
9719 need_version=no
9720 shlibpath_overrides_runpath=no
9721 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9722 ;;
9723 esac
9724 ;;
9725
9726 sysv4*MP*)
9727 if test -d /usr/nec ;then
9728 version_type=linux
9729 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9730 soname_spec='$libname${shared_ext}.$major'
9731 shlibpath_var=LD_LIBRARY_PATH
9732 fi
9733 ;;
9734
9735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9736 version_type=freebsd-elf
9737 need_lib_prefix=no
9738 need_version=no
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 shlibpath_var=LD_LIBRARY_PATH
9742 shlibpath_overrides_runpath=yes
9743 hardcode_into_libs=yes
9744 if test "$with_gnu_ld" = yes; then
9745 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9746 else
9747 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9748 case $host_os in
9749 sco3.2v5*)
9750 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9751 ;;
9752 esac
9753 fi
9754 sys_lib_dlsearch_path_spec='/usr/lib'
9755 ;;
9756
9757 tpf*)
9758 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9759 version_type=linux
9760 need_lib_prefix=no
9761 need_version=no
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763 shlibpath_var=LD_LIBRARY_PATH
9764 shlibpath_overrides_runpath=no
9765 hardcode_into_libs=yes
9766 ;;
9767
9768 uts4*)
9769 version_type=linux
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771 soname_spec='${libname}${release}${shared_ext}$major'
9772 shlibpath_var=LD_LIBRARY_PATH
9773 ;;
9774
9775 *)
9776 dynamic_linker=no
9777 ;;
9778 esac
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9780 $as_echo "$dynamic_linker" >&6; }
9781 test "$dynamic_linker" = no && can_build_shared=no
9782
9783 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9784 if test "$GCC" = yes; then
9785 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9786 fi
9787
9788 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9789 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9790 fi
9791 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9792 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9793 fi
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9882 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9883 hardcode_action=
9884 if test -n "$hardcode_libdir_flag_spec" ||
9885 test -n "$runpath_var" ||
9886 test "X$hardcode_automatic" = "Xyes" ; then
9887
9888 # We can hardcode non-existent directories.
9889 if test "$hardcode_direct" != no &&
9890 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9891 # have to relink, otherwise we might link with an installed library
9892 # when we should be linking with a yet-to-be-installed one
9893 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9894 test "$hardcode_minus_L" != no; then
9895 # Linking always hardcodes the temporary library directory.
9896 hardcode_action=relink
9897 else
9898 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9899 hardcode_action=immediate
9900 fi
9901 else
9902 # We cannot hardcode anything, or else we can only hardcode existing
9903 # directories.
9904 hardcode_action=unsupported
9905 fi
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9907 $as_echo "$hardcode_action" >&6; }
9908
9909 if test "$hardcode_action" = relink ||
9910 test "$inherit_rpath" = yes; then
9911 # Fast installation is not supported
9912 enable_fast_install=no
9913 elif test "$shlibpath_overrides_runpath" = yes ||
9914 test "$enable_shared" = no; then
9915 # Fast installation is not necessary
9916 enable_fast_install=needless
9917 fi
9918
9919
9920
9921
9922
9923
9924 if test "x$enable_dlopen" != xyes; then
9925 enable_dlopen=unknown
9926 enable_dlopen_self=unknown
9927 enable_dlopen_self_static=unknown
9928 else
9929 lt_cv_dlopen=no
9930 lt_cv_dlopen_libs=
9931
9932 case $host_os in
9933 beos*)
9934 lt_cv_dlopen="load_add_on"
9935 lt_cv_dlopen_libs=
9936 lt_cv_dlopen_self=yes
9937 ;;
9938
9939 mingw* | pw32* | cegcc*)
9940 lt_cv_dlopen="LoadLibrary"
9941 lt_cv_dlopen_libs=
9942 ;;
9943
9944 cygwin*)
9945 lt_cv_dlopen="dlopen"
9946 lt_cv_dlopen_libs=
9947 ;;
9948
9949 darwin*)
9950 # if libdl is installed we need to link against it
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9952 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 ac_check_lib_save_LIBS=$LIBS
9957 LIBS="-ldl $LIBS"
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9960
9961 /* Override any GCC internal prototype to avoid an error.
9962 Use char because int might match the return type of a GCC
9963 builtin and then its argument prototype would still apply. */
9964 #ifdef __cplusplus
9965 extern "C"
9966 #endif
9967 char dlopen ();
9968 int
9969 main ()
9970 {
9971 return dlopen ();
9972 ;
9973 return 0;
9974 }
9975 _ACEOF
9976 if ac_fn_c_try_link "$LINENO"; then :
9977 ac_cv_lib_dl_dlopen=yes
9978 else
9979 ac_cv_lib_dl_dlopen=no
9980 fi
9981 rm -f core conftest.err conftest.$ac_objext \
9982 conftest$ac_exeext conftest.$ac_ext
9983 LIBS=$ac_check_lib_save_LIBS
9984 fi
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9986 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9987 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9989 else
9990
9991 lt_cv_dlopen="dyld"
9992 lt_cv_dlopen_libs=
9993 lt_cv_dlopen_self=yes
9994
9995 fi
9996
9997 ;;
9998
9999 *)
10000 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10001 if test "x$ac_cv_func_shl_load" = x""yes; then :
10002 lt_cv_dlopen="shl_load"
10003 else
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10005 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10006 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10007 $as_echo_n "(cached) " >&6
10008 else
10009 ac_check_lib_save_LIBS=$LIBS
10010 LIBS="-ldld $LIBS"
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10013
10014 /* Override any GCC internal prototype to avoid an error.
10015 Use char because int might match the return type of a GCC
10016 builtin and then its argument prototype would still apply. */
10017 #ifdef __cplusplus
10018 extern "C"
10019 #endif
10020 char shl_load ();
10021 int
10022 main ()
10023 {
10024 return shl_load ();
10025 ;
10026 return 0;
10027 }
10028 _ACEOF
10029 if ac_fn_c_try_link "$LINENO"; then :
10030 ac_cv_lib_dld_shl_load=yes
10031 else
10032 ac_cv_lib_dld_shl_load=no
10033 fi
10034 rm -f core conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
10036 LIBS=$ac_check_lib_save_LIBS
10037 fi
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10039 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10040 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10041 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10042 else
10043 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10044 if test "x$ac_cv_func_dlopen" = x""yes; then :
10045 lt_cv_dlopen="dlopen"
10046 else
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10048 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10049 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10050 $as_echo_n "(cached) " >&6
10051 else
10052 ac_check_lib_save_LIBS=$LIBS
10053 LIBS="-ldl $LIBS"
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10056
10057 /* Override any GCC internal prototype to avoid an error.
10058 Use char because int might match the return type of a GCC
10059 builtin and then its argument prototype would still apply. */
10060 #ifdef __cplusplus
10061 extern "C"
10062 #endif
10063 char dlopen ();
10064 int
10065 main ()
10066 {
10067 return dlopen ();
10068 ;
10069 return 0;
10070 }
10071 _ACEOF
10072 if ac_fn_c_try_link "$LINENO"; then :
10073 ac_cv_lib_dl_dlopen=yes
10074 else
10075 ac_cv_lib_dl_dlopen=no
10076 fi
10077 rm -f core conftest.err conftest.$ac_objext \
10078 conftest$ac_exeext conftest.$ac_ext
10079 LIBS=$ac_check_lib_save_LIBS
10080 fi
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10082 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10083 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10084 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10085 else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10087 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10088 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091 ac_check_lib_save_LIBS=$LIBS
10092 LIBS="-lsvld $LIBS"
10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10095
10096 /* Override any GCC internal prototype to avoid an error.
10097 Use char because int might match the return type of a GCC
10098 builtin and then its argument prototype would still apply. */
10099 #ifdef __cplusplus
10100 extern "C"
10101 #endif
10102 char dlopen ();
10103 int
10104 main ()
10105 {
10106 return dlopen ();
10107 ;
10108 return 0;
10109 }
10110 _ACEOF
10111 if ac_fn_c_try_link "$LINENO"; then :
10112 ac_cv_lib_svld_dlopen=yes
10113 else
10114 ac_cv_lib_svld_dlopen=no
10115 fi
10116 rm -f core conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10118 LIBS=$ac_check_lib_save_LIBS
10119 fi
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10121 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10122 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10123 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10124 else
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10126 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10127 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10128 $as_echo_n "(cached) " >&6
10129 else
10130 ac_check_lib_save_LIBS=$LIBS
10131 LIBS="-ldld $LIBS"
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10134
10135 /* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
10138 #ifdef __cplusplus
10139 extern "C"
10140 #endif
10141 char dld_link ();
10142 int
10143 main ()
10144 {
10145 return dld_link ();
10146 ;
10147 return 0;
10148 }
10149 _ACEOF
10150 if ac_fn_c_try_link "$LINENO"; then :
10151 ac_cv_lib_dld_dld_link=yes
10152 else
10153 ac_cv_lib_dld_dld_link=no
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157 LIBS=$ac_check_lib_save_LIBS
10158 fi
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10160 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10161 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10162 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10163 fi
10164
10165
10166 fi
10167
10168
10169 fi
10170
10171
10172 fi
10173
10174
10175 fi
10176
10177
10178 fi
10179
10180 ;;
10181 esac
10182
10183 if test "x$lt_cv_dlopen" != xno; then
10184 enable_dlopen=yes
10185 else
10186 enable_dlopen=no
10187 fi
10188
10189 case $lt_cv_dlopen in
10190 dlopen)
10191 save_CPPFLAGS="$CPPFLAGS"
10192 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10193
10194 save_LDFLAGS="$LDFLAGS"
10195 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10196
10197 save_LIBS="$LIBS"
10198 LIBS="$lt_cv_dlopen_libs $LIBS"
10199
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10201 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10202 if test "${lt_cv_dlopen_self+set}" = set; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 if test "$cross_compiling" = yes; then :
10206 lt_cv_dlopen_self=cross
10207 else
10208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10209 lt_status=$lt_dlunknown
10210 cat > conftest.$ac_ext <<_LT_EOF
10211 #line 10211 "configure"
10212 #include "confdefs.h"
10213
10214 #if HAVE_DLFCN_H
10215 #include <dlfcn.h>
10216 #endif
10217
10218 #include <stdio.h>
10219
10220 #ifdef RTLD_GLOBAL
10221 # define LT_DLGLOBAL RTLD_GLOBAL
10222 #else
10223 # ifdef DL_GLOBAL
10224 # define LT_DLGLOBAL DL_GLOBAL
10225 # else
10226 # define LT_DLGLOBAL 0
10227 # endif
10228 #endif
10229
10230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10231 find out it does not work in some platform. */
10232 #ifndef LT_DLLAZY_OR_NOW
10233 # ifdef RTLD_LAZY
10234 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10235 # else
10236 # ifdef DL_LAZY
10237 # define LT_DLLAZY_OR_NOW DL_LAZY
10238 # else
10239 # ifdef RTLD_NOW
10240 # define LT_DLLAZY_OR_NOW RTLD_NOW
10241 # else
10242 # ifdef DL_NOW
10243 # define LT_DLLAZY_OR_NOW DL_NOW
10244 # else
10245 # define LT_DLLAZY_OR_NOW 0
10246 # endif
10247 # endif
10248 # endif
10249 # endif
10250 #endif
10251
10252 void fnord() { int i=42;}
10253 int main ()
10254 {
10255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10256 int status = $lt_dlunknown;
10257
10258 if (self)
10259 {
10260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10261 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10262 /* dlclose (self); */
10263 }
10264 else
10265 puts (dlerror ());
10266
10267 return status;
10268 }
10269 _LT_EOF
10270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10271 (eval $ac_link) 2>&5
10272 ac_status=$?
10273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10274 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10275 (./conftest; exit; ) >&5 2>/dev/null
10276 lt_status=$?
10277 case x$lt_status in
10278 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10279 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10280 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10281 esac
10282 else :
10283 # compilation failed
10284 lt_cv_dlopen_self=no
10285 fi
10286 fi
10287 rm -fr conftest*
10288
10289
10290 fi
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10292 $as_echo "$lt_cv_dlopen_self" >&6; }
10293
10294 if test "x$lt_cv_dlopen_self" = xyes; then
10295 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10297 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10298 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10299 $as_echo_n "(cached) " >&6
10300 else
10301 if test "$cross_compiling" = yes; then :
10302 lt_cv_dlopen_self_static=cross
10303 else
10304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10305 lt_status=$lt_dlunknown
10306 cat > conftest.$ac_ext <<_LT_EOF
10307 #line 10307 "configure"
10308 #include "confdefs.h"
10309
10310 #if HAVE_DLFCN_H
10311 #include <dlfcn.h>
10312 #endif
10313
10314 #include <stdio.h>
10315
10316 #ifdef RTLD_GLOBAL
10317 # define LT_DLGLOBAL RTLD_GLOBAL
10318 #else
10319 # ifdef DL_GLOBAL
10320 # define LT_DLGLOBAL DL_GLOBAL
10321 # else
10322 # define LT_DLGLOBAL 0
10323 # endif
10324 #endif
10325
10326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10327 find out it does not work in some platform. */
10328 #ifndef LT_DLLAZY_OR_NOW
10329 # ifdef RTLD_LAZY
10330 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10331 # else
10332 # ifdef DL_LAZY
10333 # define LT_DLLAZY_OR_NOW DL_LAZY
10334 # else
10335 # ifdef RTLD_NOW
10336 # define LT_DLLAZY_OR_NOW RTLD_NOW
10337 # else
10338 # ifdef DL_NOW
10339 # define LT_DLLAZY_OR_NOW DL_NOW
10340 # else
10341 # define LT_DLLAZY_OR_NOW 0
10342 # endif
10343 # endif
10344 # endif
10345 # endif
10346 #endif
10347
10348 void fnord() { int i=42;}
10349 int main ()
10350 {
10351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10352 int status = $lt_dlunknown;
10353
10354 if (self)
10355 {
10356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10357 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10358 /* dlclose (self); */
10359 }
10360 else
10361 puts (dlerror ());
10362
10363 return status;
10364 }
10365 _LT_EOF
10366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10367 (eval $ac_link) 2>&5
10368 ac_status=$?
10369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10370 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10371 (./conftest; exit; ) >&5 2>/dev/null
10372 lt_status=$?
10373 case x$lt_status in
10374 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10375 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10376 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10377 esac
10378 else :
10379 # compilation failed
10380 lt_cv_dlopen_self_static=no
10381 fi
10382 fi
10383 rm -fr conftest*
10384
10385
10386 fi
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10388 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10389 fi
10390
10391 CPPFLAGS="$save_CPPFLAGS"
10392 LDFLAGS="$save_LDFLAGS"
10393 LIBS="$save_LIBS"
10394 ;;
10395 esac
10396
10397 case $lt_cv_dlopen_self in
10398 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10399 *) enable_dlopen_self=unknown ;;
10400 esac
10401
10402 case $lt_cv_dlopen_self_static in
10403 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10404 *) enable_dlopen_self_static=unknown ;;
10405 esac
10406 fi
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424 striplib=
10425 old_striplib=
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10427 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10428 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10429 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10430 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10432 $as_echo "yes" >&6; }
10433 else
10434 # FIXME - insert some real tests, host_os isn't really good enough
10435 case $host_os in
10436 darwin*)
10437 if test -n "$STRIP" ; then
10438 striplib="$STRIP -x"
10439 old_striplib="$STRIP -S"
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10441 $as_echo "yes" >&6; }
10442 else
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444 $as_echo "no" >&6; }
10445 fi
10446 ;;
10447 *)
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 $as_echo "no" >&6; }
10450 ;;
10451 esac
10452 fi
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465 # Report which library types will actually be built
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10467 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10469 $as_echo "$can_build_shared" >&6; }
10470
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10472 $as_echo_n "checking whether to build shared libraries... " >&6; }
10473 test "$can_build_shared" = "no" && enable_shared=no
10474
10475 # On AIX, shared libraries and static libraries use the same namespace, and
10476 # are all built from PIC.
10477 case $host_os in
10478 aix3*)
10479 test "$enable_shared" = yes && enable_static=no
10480 if test -n "$RANLIB"; then
10481 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10482 postinstall_cmds='$RANLIB $lib'
10483 fi
10484 ;;
10485
10486 aix[4-9]*)
10487 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10488 test "$enable_shared" = yes && enable_static=no
10489 fi
10490 ;;
10491 esac
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10493 $as_echo "$enable_shared" >&6; }
10494
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10496 $as_echo_n "checking whether to build static libraries... " >&6; }
10497 # Make sure either enable_shared or enable_static is yes.
10498 test "$enable_shared" = yes || enable_static=yes
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10500 $as_echo "$enable_static" >&6; }
10501
10502
10503
10504
10505 fi
10506 ac_ext=c
10507 ac_cpp='$CPP $CPPFLAGS'
10508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10511
10512 CC="$lt_save_CC"
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526 ac_config_commands="$ac_config_commands libtool"
10527
10528
10529
10530
10531 # Only expand once:
10532
10533
10534
10535 # libtool -version-info
10536 LT_VERSION=0:35:0
10537
10538
10539 # Check whether --enable-silent-rules was given.
10540 if test "${enable_silent_rules+set}" = set; then :
10541 enableval=$enable_silent_rules;
10542 fi
10543
10544 case $enable_silent_rules in
10545 yes) AM_DEFAULT_VERBOSITY=0;;
10546 no) AM_DEFAULT_VERBOSITY=1;;
10547 *) AM_DEFAULT_VERBOSITY=0;;
10548 esac
10549 AM_BACKSLASH='\'
10550
10551
10552 # Checks for programs.
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
10554 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
10555 if test "${ac_cv_prog_cc_c99+set}" = set; then :
10556 $as_echo_n "(cached) " >&6
10557 else
10558 ac_cv_prog_cc_c99=no
10559 ac_save_CC=$CC
10560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561 /* end confdefs.h. */
10562 #include <stdarg.h>
10563 #include <stdbool.h>
10564 #include <stdlib.h>
10565 #include <wchar.h>
10566 #include <stdio.h>
10567
10568 // Check varargs macros. These examples are taken from C99 6.10.3.5.
10569 #define debug(...) fprintf (stderr, __VA_ARGS__)
10570 #define showlist(...) puts (#__VA_ARGS__)
10571 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
10572 static void
10573 test_varargs_macros (void)
10574 {
10575 int x = 1234;
10576 int y = 5678;
10577 debug ("Flag");
10578 debug ("X = %d\n", x);
10579 showlist (The first, second, and third items.);
10580 report (x>y, "x is %d but y is %d", x, y);
10581 }
10582
10583 // Check long long types.
10584 #define BIG64 18446744073709551615ull
10585 #define BIG32 4294967295ul
10586 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
10587 #if !BIG_OK
10588 your preprocessor is broken;
10589 #endif
10590 #if BIG_OK
10591 #else
10592 your preprocessor is broken;
10593 #endif
10594 static long long int bignum = -9223372036854775807LL;
10595 static unsigned long long int ubignum = BIG64;
10596
10597 struct incomplete_array
10598 {
10599 int datasize;
10600 double data[];
10601 };
10602
10603 struct named_init {
10604 int number;
10605 const wchar_t *name;
10606 double average;
10607 };
10608
10609 typedef const char *ccp;
10610
10611 static inline int
10612 test_restrict (ccp restrict text)
10613 {
10614 // See if C++-style comments work.
10615 // Iterate through items via the restricted pointer.
10616 // Also check for declarations in for loops.
10617 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
10618 continue;
10619 return 0;
10620 }
10621
10622 // Check varargs and va_copy.
10623 static void
10624 test_varargs (const char *format, ...)
10625 {
10626 va_list args;
10627 va_start (args, format);
10628 va_list args_copy;
10629 va_copy (args_copy, args);
10630
10631 const char *str;
10632 int number;
10633 float fnumber;
10634
10635 while (*format)
10636 {
10637 switch (*format++)
10638 {
10639 case 's': // string
10640 str = va_arg (args_copy, const char *);
10641 break;
10642 case 'd': // int
10643 number = va_arg (args_copy, int);
10644 break;
10645 case 'f': // float
10646 fnumber = va_arg (args_copy, double);
10647 break;
10648 default:
10649 break;
10650 }
10651 }
10652 va_end (args_copy);
10653 va_end (args);
10654 }
10655
10656 int
10657 main ()
10658 {
10659
10660 // Check bool.
10661 _Bool success = false;
10662
10663 // Check restrict.
10664 if (test_restrict ("String literal") == 0)
10665 success = true;
10666 char *restrict newvar = "Another string";
10667
10668 // Check varargs.
10669 test_varargs ("s, d' f .", "string", 65, 34.234);
10670 test_varargs_macros ();
10671
10672 // Check flexible array members.
10673 struct incomplete_array *ia =
10674 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
10675 ia->datasize = 10;
10676 for (int i = 0; i < ia->datasize; ++i)
10677 ia->data[i] = i * 1.234;
10678
10679 // Check named initializers.
10680 struct named_init ni = {
10681 .number = 34,
10682 .name = L"Test wide string",
10683 .average = 543.34343,
10684 };
10685
10686 ni.number = 58;
10687
10688 int dynamic_array[ni.number];
10689 dynamic_array[ni.number - 1] = 543;
10690
10691 // work around unused variable warnings
10692 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
10693 || dynamic_array[ni.number - 1] != 543);
10694
10695 ;
10696 return 0;
10697 }
10698 _ACEOF
10699 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
10700 do
10701 CC="$ac_save_CC $ac_arg"
10702 if ac_fn_c_try_compile "$LINENO"; then :
10703 ac_cv_prog_cc_c99=$ac_arg
10704 fi
10705 rm -f core conftest.err conftest.$ac_objext
10706 test "x$ac_cv_prog_cc_c99" != "xno" && break
10707 done
10708 rm -f conftest.$ac_ext
10709 CC=$ac_save_CC
10710
10711 fi
10712 # AC_CACHE_VAL
10713 case "x$ac_cv_prog_cc_c99" in
10714 x)
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10716 $as_echo "none needed" >&6; } ;;
10717 xno)
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10719 $as_echo "unsupported" >&6; } ;;
10720 *)
10721 CC="$CC $ac_cv_prog_cc_c99"
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
10723 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
10724 esac
10725 if test "x$ac_cv_prog_cc_c99" != xno; then :
10726
10727 fi
10728
10729
10730 #AC_PROG_CC
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10732 $as_echo_n "checking whether ln -s works... " >&6; }
10733 LN_S=$as_ln_s
10734 if test "$LN_S" = "ln -s"; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10736 $as_echo "yes" >&6; }
10737 else
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10739 $as_echo "no, using $LN_S" >&6; }
10740 fi
10741
10742 for ac_prog in gawk mawk nawk awk
10743 do
10744 # Extract the first word of "$ac_prog", so it can be a program name with args.
10745 set dummy $ac_prog; ac_word=$2
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10747 $as_echo_n "checking for $ac_word... " >&6; }
10748 if test "${ac_cv_prog_AWK+set}" = set; then :
10749 $as_echo_n "(cached) " >&6
10750 else
10751 if test -n "$AWK"; then
10752 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10753 else
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10756 do
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10761 ac_cv_prog_AWK="$ac_prog"
10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 break 2
10764 fi
10765 done
10766 done
10767 IFS=$as_save_IFS
10768
10769 fi
10770 fi
10771 AWK=$ac_cv_prog_AWK
10772 if test -n "$AWK"; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10774 $as_echo "$AWK" >&6; }
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10778 fi
10779
10780
10781 test -n "$AWK" && break
10782 done
10783
10784
10785 MANTYPE=
10786 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
10787 for ac_prog in nroff awf
10788 do
10789 # Extract the first word of "$ac_prog", so it can be a program name with args.
10790 set dummy $ac_prog; ac_word=$2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792 $as_echo_n "checking for $ac_word... " >&6; }
10793 if test "${ac_cv_path_NROFF+set}" = set; then :
10794 $as_echo_n "(cached) " >&6
10795 else
10796 case $NROFF in
10797 [\\/]* | ?:[\\/]*)
10798 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
10799 ;;
10800 *)
10801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10802 for as_dir in $TestPath
10803 do
10804 IFS=$as_save_IFS
10805 test -z "$as_dir" && as_dir=.
10806 for ac_exec_ext in '' $ac_executable_extensions; do
10807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10808 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
10809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10810 break 2
10811 fi
10812 done
10813 done
10814 IFS=$as_save_IFS
10815
10816 ;;
10817 esac
10818 fi
10819 NROFF=$ac_cv_path_NROFF
10820 if test -n "$NROFF"; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
10822 $as_echo "$NROFF" >&6; }
10823 else
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825 $as_echo "no" >&6; }
10826 fi
10827
10828
10829 test -n "$NROFF" && break
10830 done
10831 test -n "$NROFF" || NROFF="/bin/false"
10832
10833 if ${NROFF} -mdoc ${srcdir}/doc/editrc.5.roff >/dev/null 2>&1; then
10834 MANTYPE=mdoc
10835 fi
10836
10837
10838
10839
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
10841 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
10842 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 ac_check_lib_save_LIBS=$LIBS
10846 LIBS="-lcurses $LIBS"
10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10849
10850 /* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10853 #ifdef __cplusplus
10854 extern "C"
10855 #endif
10856 char tgetent ();
10857 int
10858 main ()
10859 {
10860 return tgetent ();
10861 ;
10862 return 0;
10863 }
10864 _ACEOF
10865 if ac_fn_c_try_link "$LINENO"; then :
10866 ac_cv_lib_curses_tgetent=yes
10867 else
10868 ac_cv_lib_curses_tgetent=no
10869 fi
10870 rm -f core conftest.err conftest.$ac_objext \
10871 conftest$ac_exeext conftest.$ac_ext
10872 LIBS=$ac_check_lib_save_LIBS
10873 fi
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
10875 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
10876 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
10877 cat >>confdefs.h <<_ACEOF
10878 #define HAVE_LIBCURSES 1
10879 _ACEOF
10880
10881 LIBS="-lcurses $LIBS"
10882
10883 else
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
10885 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
10886 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 ac_check_lib_save_LIBS=$LIBS
10890 LIBS="-lncurses $LIBS"
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10893
10894 /* Override any GCC internal prototype to avoid an error.
10895 Use char because int might match the return type of a GCC
10896 builtin and then its argument prototype would still apply. */
10897 #ifdef __cplusplus
10898 extern "C"
10899 #endif
10900 char tgetent ();
10901 int
10902 main ()
10903 {
10904 return tgetent ();
10905 ;
10906 return 0;
10907 }
10908 _ACEOF
10909 if ac_fn_c_try_link "$LINENO"; then :
10910 ac_cv_lib_ncurses_tgetent=yes
10911 else
10912 ac_cv_lib_ncurses_tgetent=no
10913 fi
10914 rm -f core conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext conftest.$ac_ext
10916 LIBS=$ac_check_lib_save_LIBS
10917 fi
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
10919 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
10920 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
10921 cat >>confdefs.h <<_ACEOF
10922 #define HAVE_LIBNCURSES 1
10923 _ACEOF
10924
10925 LIBS="-lncurses $LIBS"
10926
10927 else
10928 as_fn_error "libcurses or libncurses are required!" "$LINENO" 5
10929 fi
10930
10931 fi
10932
10933
10934
10935 ### use option --enable-widec to turn on use of wide-character support
10936
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want wide-character code" >&5
10938 $as_echo_n "checking if you want wide-character code... " >&6; }
10939 # Check whether --enable-widec was given.
10940 if test "${enable_widec+set}" = set; then :
10941 enableval=$enable_widec; with_widec=$enableval
10942 else
10943 with_widec=no
10944 fi
10945
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_widec" >&5
10947 $as_echo "$with_widec" >&6; }
10948 if test "$with_widec" = yes ; then
10949
10950 $as_echo "#define WIDECHAR 1" >>confdefs.h
10951
10952 fi
10953 if test "$with_widec" = yes; then
10954 WIDECHAR_TRUE=
10955 WIDECHAR_FALSE='#'
10956 else
10957 WIDECHAR_TRUE='#'
10958 WIDECHAR_FALSE=
10959 fi
10960
10961
10962
10963 # Checks for header files.
10964 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10965 # for constant arguments. Useless!
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10967 $as_echo_n "checking for working alloca.h... " >&6; }
10968 if test "${ac_cv_working_alloca_h+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
10970 else
10971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h. */
10973 #include <alloca.h>
10974 int
10975 main ()
10976 {
10977 char *p = (char *) alloca (2 * sizeof (int));
10978 if (p) return 0;
10979 ;
10980 return 0;
10981 }
10982 _ACEOF
10983 if ac_fn_c_try_link "$LINENO"; then :
10984 ac_cv_working_alloca_h=yes
10985 else
10986 ac_cv_working_alloca_h=no
10987 fi
10988 rm -f core conftest.err conftest.$ac_objext \
10989 conftest$ac_exeext conftest.$ac_ext
10990 fi
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10992 $as_echo "$ac_cv_working_alloca_h" >&6; }
10993 if test $ac_cv_working_alloca_h = yes; then
10994
10995 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10996
10997 fi
10998
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11000 $as_echo_n "checking for alloca... " >&6; }
11001 if test "${ac_cv_func_alloca_works+set}" = set; then :
11002 $as_echo_n "(cached) " >&6
11003 else
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11006 #ifdef __GNUC__
11007 # define alloca __builtin_alloca
11008 #else
11009 # ifdef _MSC_VER
11010 # include <malloc.h>
11011 # define alloca _alloca
11012 # else
11013 # ifdef HAVE_ALLOCA_H
11014 # include <alloca.h>
11015 # else
11016 # ifdef _AIX
11017 #pragma alloca
11018 # else
11019 # ifndef alloca /* predefined by HP cc +Olibcalls */
11020 char *alloca ();
11021 # endif
11022 # endif
11023 # endif
11024 # endif
11025 #endif
11026
11027 int
11028 main ()
11029 {
11030 char *p = (char *) alloca (1);
11031 if (p) return 0;
11032 ;
11033 return 0;
11034 }
11035 _ACEOF
11036 if ac_fn_c_try_link "$LINENO"; then :
11037 ac_cv_func_alloca_works=yes
11038 else
11039 ac_cv_func_alloca_works=no
11040 fi
11041 rm -f core conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
11043 fi
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11045 $as_echo "$ac_cv_func_alloca_works" >&6; }
11046
11047 if test $ac_cv_func_alloca_works = yes; then
11048
11049 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11050
11051 else
11052 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11053 # that cause trouble. Some versions do not even contain alloca or
11054 # contain a buggy version. If you still want to use their alloca,
11055 # use ar to extract alloca.o from them instead of compiling alloca.c.
11056
11057 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11058
11059 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11060
11061
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11063 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11064 if test "${ac_cv_os_cray+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11069 #if defined CRAY && ! defined CRAY2
11070 webecray
11071 #else
11072 wenotbecray
11073 #endif
11074
11075 _ACEOF
11076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11077 $EGREP "webecray" >/dev/null 2>&1; then :
11078 ac_cv_os_cray=yes
11079 else
11080 ac_cv_os_cray=no
11081 fi
11082 rm -f conftest*
11083
11084 fi
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11086 $as_echo "$ac_cv_os_cray" >&6; }
11087 if test $ac_cv_os_cray = yes; then
11088 for ac_func in _getb67 GETB67 getb67; do
11089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11090 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11091 eval as_val=\$$as_ac_var
11092 if test "x$as_val" = x""yes; then :
11093
11094 cat >>confdefs.h <<_ACEOF
11095 #define CRAY_STACKSEG_END $ac_func
11096 _ACEOF
11097
11098 break
11099 fi
11100
11101 done
11102 fi
11103
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11105 $as_echo_n "checking stack direction for C alloca... " >&6; }
11106 if test "${ac_cv_c_stack_direction+set}" = set; then :
11107 $as_echo_n "(cached) " >&6
11108 else
11109 if test "$cross_compiling" = yes; then :
11110 ac_cv_c_stack_direction=0
11111 else
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11114 $ac_includes_default
11115 int
11116 find_stack_direction ()
11117 {
11118 static char *addr = 0;
11119 auto char dummy;
11120 if (addr == 0)
11121 {
11122 addr = &dummy;
11123 return find_stack_direction ();
11124 }
11125 else
11126 return (&dummy > addr) ? 1 : -1;
11127 }
11128
11129 int
11130 main ()
11131 {
11132 return find_stack_direction () < 0;
11133 }
11134 _ACEOF
11135 if ac_fn_c_try_run "$LINENO"; then :
11136 ac_cv_c_stack_direction=1
11137 else
11138 ac_cv_c_stack_direction=-1
11139 fi
11140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11141 conftest.$ac_objext conftest.beam conftest.$ac_ext
11142 fi
11143
11144 fi
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11146 $as_echo "$ac_cv_c_stack_direction" >&6; }
11147 cat >>confdefs.h <<_ACEOF
11148 #define STACK_DIRECTION $ac_cv_c_stack_direction
11149 _ACEOF
11150
11151
11152 fi
11153
11154 ac_header_dirent=no
11155 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11156 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11158 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11160 $as_echo_n "(cached) " >&6
11161 else
11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11164 #include <sys/types.h>
11165 #include <$ac_hdr>
11166
11167 int
11168 main ()
11169 {
11170 if ((DIR *) 0)
11171 return 0;
11172 ;
11173 return 0;
11174 }
11175 _ACEOF
11176 if ac_fn_c_try_compile "$LINENO"; then :
11177 eval "$as_ac_Header=yes"
11178 else
11179 eval "$as_ac_Header=no"
11180 fi
11181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11182 fi
11183 eval ac_res=\$$as_ac_Header
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11185 $as_echo "$ac_res" >&6; }
11186 eval as_val=\$$as_ac_Header
11187 if test "x$as_val" = x""yes; then :
11188 cat >>confdefs.h <<_ACEOF
11189 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11190 _ACEOF
11191
11192 ac_header_dirent=$ac_hdr; break
11193 fi
11194
11195 done
11196 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11197 if test $ac_header_dirent = dirent.h; then
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11199 $as_echo_n "checking for library containing opendir... " >&6; }
11200 if test "${ac_cv_search_opendir+set}" = set; then :
11201 $as_echo_n "(cached) " >&6
11202 else
11203 ac_func_search_save_LIBS=$LIBS
11204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h. */
11206
11207 /* Override any GCC internal prototype to avoid an error.
11208 Use char because int might match the return type of a GCC
11209 builtin and then its argument prototype would still apply. */
11210 #ifdef __cplusplus
11211 extern "C"
11212 #endif
11213 char opendir ();
11214 int
11215 main ()
11216 {
11217 return opendir ();
11218 ;
11219 return 0;
11220 }
11221 _ACEOF
11222 for ac_lib in '' dir; do
11223 if test -z "$ac_lib"; then
11224 ac_res="none required"
11225 else
11226 ac_res=-l$ac_lib
11227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11228 fi
11229 if ac_fn_c_try_link "$LINENO"; then :
11230 ac_cv_search_opendir=$ac_res
11231 fi
11232 rm -f core conftest.err conftest.$ac_objext \
11233 conftest$ac_exeext
11234 if test "${ac_cv_search_opendir+set}" = set; then :
11235 break
11236 fi
11237 done
11238 if test "${ac_cv_search_opendir+set}" = set; then :
11239
11240 else
11241 ac_cv_search_opendir=no
11242 fi
11243 rm conftest.$ac_ext
11244 LIBS=$ac_func_search_save_LIBS
11245 fi
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11247 $as_echo "$ac_cv_search_opendir" >&6; }
11248 ac_res=$ac_cv_search_opendir
11249 if test "$ac_res" != no; then :
11250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11251
11252 fi
11253
11254 else
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11256 $as_echo_n "checking for library containing opendir... " >&6; }
11257 if test "${ac_cv_search_opendir+set}" = set; then :
11258 $as_echo_n "(cached) " >&6
11259 else
11260 ac_func_search_save_LIBS=$LIBS
11261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h. */
11263
11264 /* Override any GCC internal prototype to avoid an error.
11265 Use char because int might match the return type of a GCC
11266 builtin and then its argument prototype would still apply. */
11267 #ifdef __cplusplus
11268 extern "C"
11269 #endif
11270 char opendir ();
11271 int
11272 main ()
11273 {
11274 return opendir ();
11275 ;
11276 return 0;
11277 }
11278 _ACEOF
11279 for ac_lib in '' x; do
11280 if test -z "$ac_lib"; then
11281 ac_res="none required"
11282 else
11283 ac_res=-l$ac_lib
11284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11285 fi
11286 if ac_fn_c_try_link "$LINENO"; then :
11287 ac_cv_search_opendir=$ac_res
11288 fi
11289 rm -f core conftest.err conftest.$ac_objext \
11290 conftest$ac_exeext
11291 if test "${ac_cv_search_opendir+set}" = set; then :
11292 break
11293 fi
11294 done
11295 if test "${ac_cv_search_opendir+set}" = set; then :
11296
11297 else
11298 ac_cv_search_opendir=no
11299 fi
11300 rm conftest.$ac_ext
11301 LIBS=$ac_func_search_save_LIBS
11302 fi
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11304 $as_echo "$ac_cv_search_opendir" >&6; }
11305 ac_res=$ac_cv_search_opendir
11306 if test "$ac_res" != no; then :
11307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11308
11309 fi
11310
11311 fi
11312
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11314 $as_echo_n "checking for ANSI C header files... " >&6; }
11315 if test "${ac_cv_header_stdc+set}" = set; then :
11316 $as_echo_n "(cached) " >&6
11317 else
11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11320 #include <stdlib.h>
11321 #include <stdarg.h>
11322 #include <string.h>
11323 #include <float.h>
11324
11325 int
11326 main ()
11327 {
11328
11329 ;
11330 return 0;
11331 }
11332 _ACEOF
11333 if ac_fn_c_try_compile "$LINENO"; then :
11334 ac_cv_header_stdc=yes
11335 else
11336 ac_cv_header_stdc=no
11337 fi
11338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11339
11340 if test $ac_cv_header_stdc = yes; then
11341 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11344 #include <string.h>
11345
11346 _ACEOF
11347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11348 $EGREP "memchr" >/dev/null 2>&1; then :
11349
11350 else
11351 ac_cv_header_stdc=no
11352 fi
11353 rm -f conftest*
11354
11355 fi
11356
11357 if test $ac_cv_header_stdc = yes; then
11358 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11361 #include <stdlib.h>
11362
11363 _ACEOF
11364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11365 $EGREP "free" >/dev/null 2>&1; then :
11366
11367 else
11368 ac_cv_header_stdc=no
11369 fi
11370 rm -f conftest*
11371
11372 fi
11373
11374 if test $ac_cv_header_stdc = yes; then
11375 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11376 if test "$cross_compiling" = yes; then :
11377 :
11378 else
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11381 #include <ctype.h>
11382 #include <stdlib.h>
11383 #if ((' ' & 0x0FF) == 0x020)
11384 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11385 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11386 #else
11387 # define ISLOWER(c) \
11388 (('a' <= (c) && (c) <= 'i') \
11389 || ('j' <= (c) && (c) <= 'r') \
11390 || ('s' <= (c) && (c) <= 'z'))
11391 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11392 #endif
11393
11394 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11395 int
11396 main ()
11397 {
11398 int i;
11399 for (i = 0; i < 256; i++)
11400 if (XOR (islower (i), ISLOWER (i))
11401 || toupper (i) != TOUPPER (i))
11402 return 2;
11403 return 0;
11404 }
11405 _ACEOF
11406 if ac_fn_c_try_run "$LINENO"; then :
11407
11408 else
11409 ac_cv_header_stdc=no
11410 fi
11411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11412 conftest.$ac_objext conftest.beam conftest.$ac_ext
11413 fi
11414
11415 fi
11416 fi
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11418 $as_echo "$ac_cv_header_stdc" >&6; }
11419 if test $ac_cv_header_stdc = yes; then
11420
11421 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11422
11423 fi
11424
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11426 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11427 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11428 $as_echo_n "(cached) " >&6
11429 else
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11432 #include <sys/types.h>
11433 #include <sys/wait.h>
11434 #ifndef WEXITSTATUS
11435 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11436 #endif
11437 #ifndef WIFEXITED
11438 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11439 #endif
11440
11441 int
11442 main ()
11443 {
11444 int s;
11445 wait (&s);
11446 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11447 ;
11448 return 0;
11449 }
11450 _ACEOF
11451 if ac_fn_c_try_compile "$LINENO"; then :
11452 ac_cv_header_sys_wait_h=yes
11453 else
11454 ac_cv_header_sys_wait_h=no
11455 fi
11456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11457 fi
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11459 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11460 if test $ac_cv_header_sys_wait_h = yes; then
11461
11462 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11463
11464 fi
11465
11466 for ac_header in fcntl.h limits.h malloc.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h curses.h ncurses.h sys/cdefs.h
11467 do :
11468 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11469 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11470 eval as_val=\$$as_ac_Header
11471 if test "x$as_val" = x""yes; then :
11472 cat >>confdefs.h <<_ACEOF
11473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11474 _ACEOF
11475
11476 fi
11477
11478 done
11479
11480
11481 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11482 if test "x$ac_cv_header_termios_h" = x""yes; then :
11483
11484 else
11485 as_fn_error "termios.h is required!" "$LINENO" 5
11486 fi
11487
11488
11489
11490 ## include curses.h to prevent "Present But Cannot Be Compiled"
11491 for ac_header in term.h
11492 do :
11493 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11494 # include <curses.h>
11495 #elif HAVE_NCURSES_H
11496 # include <ncurses.h>
11497 #endif
11498
11499 "
11500 if test "x$ac_cv_header_term_h" = x""yes; then :
11501 cat >>confdefs.h <<_ACEOF
11502 #define HAVE_TERM_H 1
11503 _ACEOF
11504
11505 fi
11506
11507 done
11508
11509
11510 # Checks for typedefs, structures, and compiler characteristics.
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11512 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11513 if test "${ac_cv_c_const+set}" = set; then :
11514 $as_echo_n "(cached) " >&6
11515 else
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11518
11519 int
11520 main ()
11521 {
11522 /* FIXME: Include the comments suggested by Paul. */
11523 #ifndef __cplusplus
11524 /* Ultrix mips cc rejects this. */
11525 typedef int charset[2];
11526 const charset cs;
11527 /* SunOS 4.1.1 cc rejects this. */
11528 char const *const *pcpcc;
11529 char **ppc;
11530 /* NEC SVR4.0.2 mips cc rejects this. */
11531 struct point {int x, y;};
11532 static struct point const zero = {0,0};
11533 /* AIX XL C 1.02.0.0 rejects this.
11534 It does not let you subtract one const X* pointer from another in
11535 an arm of an if-expression whose if-part is not a constant
11536 expression */
11537 const char *g = "string";
11538 pcpcc = &g + (g ? g-g : 0);
11539 /* HPUX 7.0 cc rejects these. */
11540 ++pcpcc;
11541 ppc = (char**) pcpcc;
11542 pcpcc = (char const *const *) ppc;
11543 { /* SCO 3.2v4 cc rejects this. */
11544 char *t;
11545 char const *s = 0 ? (char *) 0 : (char const *) 0;
11546
11547 *t++ = 0;
11548 if (s) return 0;
11549 }
11550 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11551 int x[] = {25, 17};
11552 const int *foo = &x[0];
11553 ++foo;
11554 }
11555 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11556 typedef const int *iptr;
11557 iptr p = 0;
11558 ++p;
11559 }
11560 { /* AIX XL C 1.02.0.0 rejects this saying
11561 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11562 struct s { int j; const int *ap[3]; };
11563 struct s *b; b->j = 5;
11564 }
11565 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11566 const int foo = 10;
11567 if (!foo) return 0;
11568 }
11569 return !cs[0] && !zero.x;
11570 #endif
11571
11572 ;
11573 return 0;
11574 }
11575 _ACEOF
11576 if ac_fn_c_try_compile "$LINENO"; then :
11577 ac_cv_c_const=yes
11578 else
11579 ac_cv_c_const=no
11580 fi
11581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11582 fi
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11584 $as_echo "$ac_cv_c_const" >&6; }
11585 if test $ac_cv_c_const = no; then
11586
11587 $as_echo "#define const /**/" >>confdefs.h
11588
11589 fi
11590
11591 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11592 if test "x$ac_cv_type_pid_t" = x""yes; then :
11593
11594 else
11595
11596 cat >>confdefs.h <<_ACEOF
11597 #define pid_t int
11598 _ACEOF
11599
11600 fi
11601
11602 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11603 if test "x$ac_cv_type_size_t" = x""yes; then :
11604
11605 else
11606
11607 cat >>confdefs.h <<_ACEOF
11608 #define size_t unsigned int
11609 _ACEOF
11610
11611 fi
11612
11613 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
11614 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
11615
11616 cat >>confdefs.h <<_ACEOF
11617 #define HAVE_U_INT32_T 1
11618 _ACEOF
11619
11620
11621 fi
11622
11623
11624 # Checks for library functions.
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
11626 $as_echo_n "checking whether closedir returns void... " >&6; }
11627 if test "${ac_cv_func_closedir_void+set}" = set; then :
11628 $as_echo_n "(cached) " >&6
11629 else
11630 if test "$cross_compiling" = yes; then :
11631 ac_cv_func_closedir_void=yes
11632 else
11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h. */
11635 $ac_includes_default
11636 #include <$ac_header_dirent>
11637 #ifndef __cplusplus
11638 int closedir ();
11639 #endif
11640
11641 int
11642 main ()
11643 {
11644 return closedir (opendir (".")) != 0;
11645 ;
11646 return 0;
11647 }
11648 _ACEOF
11649 if ac_fn_c_try_run "$LINENO"; then :
11650 ac_cv_func_closedir_void=no
11651 else
11652 ac_cv_func_closedir_void=yes
11653 fi
11654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11655 conftest.$ac_objext conftest.beam conftest.$ac_ext
11656 fi
11657
11658 fi
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
11660 $as_echo "$ac_cv_func_closedir_void" >&6; }
11661 if test $ac_cv_func_closedir_void = yes; then
11662
11663 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
11664
11665 fi
11666
11667 for ac_header in vfork.h
11668 do :
11669 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11670 if test "x$ac_cv_header_vfork_h" = x""yes; then :
11671 cat >>confdefs.h <<_ACEOF
11672 #define HAVE_VFORK_H 1
11673 _ACEOF
11674
11675 fi
11676
11677 done
11678
11679 for ac_func in fork vfork
11680 do :
11681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11682 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11683 eval as_val=\$$as_ac_var
11684 if test "x$as_val" = x""yes; then :
11685 cat >>confdefs.h <<_ACEOF
11686 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11687 _ACEOF
11688
11689 fi
11690 done
11691
11692 if test "x$ac_cv_func_fork" = xyes; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11694 $as_echo_n "checking for working fork... " >&6; }
11695 if test "${ac_cv_func_fork_works+set}" = set; then :
11696 $as_echo_n "(cached) " >&6
11697 else
11698 if test "$cross_compiling" = yes; then :
11699 ac_cv_func_fork_works=cross
11700 else
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11703 $ac_includes_default
11704 int
11705 main ()
11706 {
11707
11708 /* By Ruediger Kuhlmann. */
11709 return fork () < 0;
11710
11711 ;
11712 return 0;
11713 }
11714 _ACEOF
11715 if ac_fn_c_try_run "$LINENO"; then :
11716 ac_cv_func_fork_works=yes
11717 else
11718 ac_cv_func_fork_works=no
11719 fi
11720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11721 conftest.$ac_objext conftest.beam conftest.$ac_ext
11722 fi
11723
11724 fi
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11726 $as_echo "$ac_cv_func_fork_works" >&6; }
11727
11728 else
11729 ac_cv_func_fork_works=$ac_cv_func_fork
11730 fi
11731 if test "x$ac_cv_func_fork_works" = xcross; then
11732 case $host in
11733 *-*-amigaos* | *-*-msdosdjgpp*)
11734 # Override, as these systems have only a dummy fork() stub
11735 ac_cv_func_fork_works=no
11736 ;;
11737 *)
11738 ac_cv_func_fork_works=yes
11739 ;;
11740 esac
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11742 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11743 fi
11744 ac_cv_func_vfork_works=$ac_cv_func_vfork
11745 if test "x$ac_cv_func_vfork" = xyes; then
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11747 $as_echo_n "checking for working vfork... " >&6; }
11748 if test "${ac_cv_func_vfork_works+set}" = set; then :
11749 $as_echo_n "(cached) " >&6
11750 else
11751 if test "$cross_compiling" = yes; then :
11752 ac_cv_func_vfork_works=cross
11753 else
11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11756 /* Thanks to Paul Eggert for this test. */
11757 $ac_includes_default
11758 #include <sys/wait.h>
11759 #ifdef HAVE_VFORK_H
11760 # include <vfork.h>
11761 #endif
11762 /* On some sparc systems, changes by the child to local and incoming
11763 argument registers are propagated back to the parent. The compiler
11764 is told about this with #include <vfork.h>, but some compilers
11765 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11766 static variable whose address is put into a register that is
11767 clobbered by the vfork. */
11768 static void
11769 #ifdef __cplusplus
11770 sparc_address_test (int arg)
11771 # else
11772 sparc_address_test (arg) int arg;
11773 #endif
11774 {
11775 static pid_t child;
11776 if (!child) {
11777 child = vfork ();
11778 if (child < 0) {
11779 perror ("vfork");
11780 _exit(2);
11781 }
11782 if (!child) {
11783 arg = getpid();
11784 write(-1, "", 0);
11785 _exit (arg);
11786 }
11787 }
11788 }
11789
11790 int
11791 main ()
11792 {
11793 pid_t parent = getpid ();
11794 pid_t child;
11795
11796 sparc_address_test (0);
11797
11798 child = vfork ();
11799
11800 if (child == 0) {
11801 /* Here is another test for sparc vfork register problems. This
11802 test uses lots of local variables, at least as many local
11803 variables as main has allocated so far including compiler
11804 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11805 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11806 reuse the register of parent for one of the local variables,
11807 since it will think that parent can't possibly be used any more
11808 in this routine. Assigning to the local variable will thus
11809 munge parent in the parent process. */
11810 pid_t
11811 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11812 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11813 /* Convince the compiler that p..p7 are live; otherwise, it might
11814 use the same hardware register for all 8 local variables. */
11815 if (p != p1 || p != p2 || p != p3 || p != p4
11816 || p != p5 || p != p6 || p != p7)
11817 _exit(1);
11818
11819 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11820 from child file descriptors. If the child closes a descriptor
11821 before it execs or exits, this munges the parent's descriptor
11822 as well. Test for this by closing stdout in the child. */
11823 _exit(close(fileno(stdout)) != 0);
11824 } else {
11825 int status;
11826 struct stat st;
11827
11828 while (wait(&status) != child)
11829 ;
11830 return (
11831 /* Was there some problem with vforking? */
11832 child < 0
11833
11834 /* Did the child fail? (This shouldn't happen.) */
11835 || status
11836
11837 /* Did the vfork/compiler bug occur? */
11838 || parent != getpid()
11839
11840 /* Did the file descriptor bug occur? */
11841 || fstat(fileno(stdout), &st) != 0
11842 );
11843 }
11844 }
11845 _ACEOF
11846 if ac_fn_c_try_run "$LINENO"; then :
11847 ac_cv_func_vfork_works=yes
11848 else
11849 ac_cv_func_vfork_works=no
11850 fi
11851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11852 conftest.$ac_objext conftest.beam conftest.$ac_ext
11853 fi
11854
11855 fi
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11857 $as_echo "$ac_cv_func_vfork_works" >&6; }
11858
11859 fi;
11860 if test "x$ac_cv_func_fork_works" = xcross; then
11861 ac_cv_func_vfork_works=$ac_cv_func_vfork
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11863 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11864 fi
11865
11866 if test "x$ac_cv_func_vfork_works" = xyes; then
11867
11868 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11869
11870 else
11871
11872 $as_echo "#define vfork fork" >>confdefs.h
11873
11874 fi
11875 if test "x$ac_cv_func_fork_works" = xyes; then
11876
11877 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11878
11879 fi
11880
11881 if test $ac_cv_c_compiler_gnu = yes; then
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11883 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11884 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 ac_pattern="Autoconf.*'x'"
11888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11889 /* end confdefs.h. */
11890 #include <sgtty.h>
11891 Autoconf TIOCGETP
11892 _ACEOF
11893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11894 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11895 ac_cv_prog_gcc_traditional=yes
11896 else
11897 ac_cv_prog_gcc_traditional=no
11898 fi
11899 rm -f conftest*
11900
11901
11902 if test $ac_cv_prog_gcc_traditional = no; then
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11905 #include <termio.h>
11906 Autoconf TCGETA
11907 _ACEOF
11908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11909 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11910 ac_cv_prog_gcc_traditional=yes
11911 fi
11912 rm -f conftest*
11913
11914 fi
11915 fi
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11917 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11918 if test $ac_cv_prog_gcc_traditional = yes; then
11919 CC="$CC -traditional"
11920 fi
11921 fi
11922
11923 ## _AIX is offended by rpl_malloc and rpl_realloc
11924 #AC_FUNC_MALLOC
11925 #AC_FUNC_REALLOC
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11927 $as_echo_n "checking return type of signal handlers... " >&6; }
11928 if test "${ac_cv_type_signal+set}" = set; then :
11929 $as_echo_n "(cached) " >&6
11930 else
11931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932 /* end confdefs.h. */
11933 #include <sys/types.h>
11934 #include <signal.h>
11935
11936 int
11937 main ()
11938 {
11939 return *(signal (0, 0)) (0) == 1;
11940 ;
11941 return 0;
11942 }
11943 _ACEOF
11944 if ac_fn_c_try_compile "$LINENO"; then :
11945 ac_cv_type_signal=int
11946 else
11947 ac_cv_type_signal=void
11948 fi
11949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11950 fi
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11952 $as_echo "$ac_cv_type_signal" >&6; }
11953
11954 cat >>confdefs.h <<_ACEOF
11955 #define RETSIGTYPE $ac_cv_type_signal
11956 _ACEOF
11957
11958
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11960 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11961 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11962 $as_echo_n "(cached) " >&6
11963 else
11964 rm -f conftest.sym conftest.file
11965 echo >conftest.file
11966 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11967 if test "$cross_compiling" = yes; then :
11968 ac_cv_func_lstat_dereferences_slashed_symlink=no
11969 else
11970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11972 $ac_includes_default
11973 int
11974 main ()
11975 {
11976 struct stat sbuf;
11977 /* Linux will dereference the symlink and fail, as required by POSIX.
11978 That is better in the sense that it means we will not
11979 have to compile and use the lstat wrapper. */
11980 return lstat ("conftest.sym/", &sbuf) == 0;
11981 ;
11982 return 0;
11983 }
11984 _ACEOF
11985 if ac_fn_c_try_run "$LINENO"; then :
11986 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11987 else
11988 ac_cv_func_lstat_dereferences_slashed_symlink=no
11989 fi
11990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11991 conftest.$ac_objext conftest.beam conftest.$ac_ext
11992 fi
11993
11994 else
11995 # If the `ln -s' command failed, then we probably don't even
11996 # have an lstat function.
11997 ac_cv_func_lstat_dereferences_slashed_symlink=no
11998 fi
11999 rm -f conftest.sym conftest.file
12000
12001 fi
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12003 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12004
12005 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12006
12007 cat >>confdefs.h <<_ACEOF
12008 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12009 _ACEOF
12010
12011
12012 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
12013 case " $LIBOBJS " in
12014 *" lstat.$ac_objext "* ) ;;
12015 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
12016 ;;
12017 esac
12018
12019 fi
12020
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
12022 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
12023 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
12025 else
12026 if test "$cross_compiling" = yes; then :
12027 ac_cv_func_stat_empty_string_bug=yes
12028 else
12029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h. */
12031 $ac_includes_default
12032 int
12033 main ()
12034 {
12035 struct stat sbuf;
12036 return stat ("", &sbuf) == 0;
12037 ;
12038 return 0;
12039 }
12040 _ACEOF
12041 if ac_fn_c_try_run "$LINENO"; then :
12042 ac_cv_func_stat_empty_string_bug=no
12043 else
12044 ac_cv_func_stat_empty_string_bug=yes
12045 fi
12046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12047 conftest.$ac_objext conftest.beam conftest.$ac_ext
12048 fi
12049
12050 fi
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
12052 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
12053 if test $ac_cv_func_stat_empty_string_bug = yes; then
12054 case " $LIBOBJS " in
12055 *" stat.$ac_objext "* ) ;;
12056 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
12057 ;;
12058 esac
12059
12060
12061 cat >>confdefs.h <<_ACEOF
12062 #define HAVE_STAT_EMPTY_STRING_BUG 1
12063 _ACEOF
12064
12065 fi
12066
12067 for ac_func in endpwent isascii memchr memset re_comp regcomp strcasecmp strchr strcspn strdup strerror strrchr strstr strtol issetugid wcsdup
12068 do :
12069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12070 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12071 eval as_val=\$$as_ac_var
12072 if test "x$as_val" = x""yes; then :
12073 cat >>confdefs.h <<_ACEOF
12074 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12075 _ACEOF
12076
12077 fi
12078 done
12079
12080
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix like" >&5
12082 $as_echo_n "checking whether getpwnam_r and getpwuid_r are posix like... " >&6; }
12083 # The prototype for the POSIX version is:
12084 # int getpwnam_r(char *, struct passwd *, char *, size_t, struct passwd **)
12085 # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **);
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12088 #include <stdlib.h>
12089 #include <sys/types.h>
12090 #include <pwd.h>
12091 int
12092 main ()
12093 {
12094 getpwnam_r(NULL, NULL, NULL, (size_t)0, NULL);
12095 getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);
12096 ;
12097 return 0;
12098 }
12099 _ACEOF
12100 if ac_fn_c_try_link "$LINENO"; then :
12101
12102 $as_echo "#define HAVE_GETPW_R_POSIX 1" >>confdefs.h
12103
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12105 $as_echo "yes" >&6; }
12106 else
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108 $as_echo "no" >&6; }
12109 fi
12110 rm -f core conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext conftest.$ac_ext
12112
12113
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix _draft_ like" >&5
12115 $as_echo_n "checking whether getpwnam_r and getpwuid_r are posix _draft_ like... " >&6; }
12116 # The prototype for the POSIX draft version is:
12117 # struct passwd *getpwuid_r(uid_t, struct passwd *, char *, int);
12118 # struct passwd *getpwnam_r(char *, struct passwd *, char *, int);
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12121 #include <stdlib.h>
12122 #include <sys/types.h>
12123 #include <pwd.h>
12124 int
12125 main ()
12126 {
12127 getpwnam_r(NULL, NULL, NULL, (size_t)0);
12128 getpwuid_r((uid_t)0, NULL, NULL, (size_t)0);
12129 ;
12130 return 0;
12131 }
12132 _ACEOF
12133 if ac_fn_c_try_link "$LINENO"; then :
12134
12135 $as_echo "#define HAVE_GETPW_R_DRAFT 1" >>confdefs.h
12136
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12138 $as_echo "yes" >&6; }
12139 else
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12141 $as_echo "no" >&6; }
12142 fi
12143 rm -f core conftest.err conftest.$ac_objext \
12144 conftest$ac_exeext conftest.$ac_ext
12145
12146
12147
12148
12149
12150 ac_config_files="$ac_config_files Makefile libedit.pc src/Makefile doc/Makefile examples/Makefile"
12151
12152 cat >confcache <<\_ACEOF
12153 # This file is a shell script that caches the results of configure
12154 # tests run on this system so they can be shared between configure
12155 # scripts and configure runs, see configure's option --config-cache.
12156 # It is not useful on other systems. If it contains results you don't
12157 # want to keep, you may remove or edit it.
12158 #
12159 # config.status only pays attention to the cache file if you give it
12160 # the --recheck option to rerun configure.
12161 #
12162 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12163 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12164 # following values.
12165
12166 _ACEOF
12167
12168 # The following way of writing the cache mishandles newlines in values,
12169 # but we know of no workaround that is simple, portable, and efficient.
12170 # So, we kill variables containing newlines.
12171 # Ultrix sh set writes to stderr and can't be redirected directly,
12172 # and sets the high bit in the cache file unless we assign to the vars.
12173 (
12174 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12175 eval ac_val=\$$ac_var
12176 case $ac_val in #(
12177 *${as_nl}*)
12178 case $ac_var in #(
12179 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12180 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12181 esac
12182 case $ac_var in #(
12183 _ | IFS | as_nl) ;; #(
12184 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12185 *) { eval $ac_var=; unset $ac_var;} ;;
12186 esac ;;
12187 esac
12188 done
12189
12190 (set) 2>&1 |
12191 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12192 *${as_nl}ac_space=\ *)
12193 # `set' does not quote correctly, so add quotes: double-quote
12194 # substitution turns \\\\ into \\, and sed turns \\ into \.
12195 sed -n \
12196 "s/'/'\\\\''/g;
12197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12198 ;; #(
12199 *)
12200 # `set' quotes correctly as required by POSIX, so do not add quotes.
12201 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12202 ;;
12203 esac |
12204 sort
12205 ) |
12206 sed '
12207 /^ac_cv_env_/b end
12208 t clear
12209 :clear
12210 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12211 t end
12212 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12213 :end' >>confcache
12214 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12215 if test -w "$cache_file"; then
12216 test "x$cache_file" != "x/dev/null" &&
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12218 $as_echo "$as_me: updating cache $cache_file" >&6;}
12219 cat confcache >$cache_file
12220 else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12222 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12223 fi
12224 fi
12225 rm -f confcache
12226
12227 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12228 # Let make expand exec_prefix.
12229 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12230
12231 DEFS=-DHAVE_CONFIG_H
12232
12233 ac_libobjs=
12234 ac_ltlibobjs=
12235 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12236 # 1. Remove the extension, and $U if already installed.
12237 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12238 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12239 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12240 # will be set to the directory where LIBOBJS objects are built.
12241 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12242 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12243 done
12244 LIBOBJS=$ac_libobjs
12245
12246 LTLIBOBJS=$ac_ltlibobjs
12247
12248
12249 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12250 as_fn_error "conditional \"AMDEP\" was never defined.
12251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12252 fi
12253 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12254 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12256 fi
12257 if test -n "$EXEEXT"; then
12258 am__EXEEXT_TRUE=
12259 am__EXEEXT_FALSE='#'
12260 else
12261 am__EXEEXT_TRUE='#'
12262 am__EXEEXT_FALSE=
12263 fi
12264
12265 if test -z "${WIDECHAR_TRUE}" && test -z "${WIDECHAR_FALSE}"; then
12266 as_fn_error "conditional \"WIDECHAR\" was never defined.
12267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12268 fi
12269
12270 : ${CONFIG_STATUS=./config.status}
12271 ac_write_fail=0
12272 ac_clean_files_save=$ac_clean_files
12273 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12275 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12276 as_write_fail=0
12277 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12278 #! $SHELL
12279 # Generated by $as_me.
12280 # Run this file to recreate the current configuration.
12281 # Compiler output produced by configure, useful for debugging
12282 # configure, is in config.log if it exists.
12283
12284 debug=false
12285 ac_cs_recheck=false
12286 ac_cs_silent=false
12287
12288 SHELL=\${CONFIG_SHELL-$SHELL}
12289 export SHELL
12290 _ASEOF
12291 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12292 ## -------------------- ##
12293 ## M4sh Initialization. ##
12294 ## -------------------- ##
12295
12296 # Be more Bourne compatible
12297 DUALCASE=1; export DUALCASE # for MKS sh
12298 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12299 emulate sh
12300 NULLCMD=:
12301 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12302 # is contrary to our usage. Disable this feature.
12303 alias -g '${1+"$@"}'='"$@"'
12304 setopt NO_GLOB_SUBST
12305 else
12306 case `(set -o) 2>/dev/null` in #(
12307 *posix*) :
12308 set -o posix ;; #(
12309 *) :
12310 ;;
12311 esac
12312 fi
12313
12314
12315 as_nl='
12316 '
12317 export as_nl
12318 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12319 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12320 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12321 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12322 # Prefer a ksh shell builtin over an external printf program on Solaris,
12323 # but without wasting forks for bash or zsh.
12324 if test -z "$BASH_VERSION$ZSH_VERSION" \
12325 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12326 as_echo='print -r --'
12327 as_echo_n='print -rn --'
12328 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12329 as_echo='printf %s\n'
12330 as_echo_n='printf %s'
12331 else
12332 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12333 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12334 as_echo_n='/usr/ucb/echo -n'
12335 else
12336 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12337 as_echo_n_body='eval
12338 arg=$1;
12339 case $arg in #(
12340 *"$as_nl"*)
12341 expr "X$arg" : "X\\(.*\\)$as_nl";
12342 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12343 esac;
12344 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12345 '
12346 export as_echo_n_body
12347 as_echo_n='sh -c $as_echo_n_body as_echo'
12348 fi
12349 export as_echo_body
12350 as_echo='sh -c $as_echo_body as_echo'
12351 fi
12352
12353 # The user is always right.
12354 if test "${PATH_SEPARATOR+set}" != set; then
12355 PATH_SEPARATOR=:
12356 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12357 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12358 PATH_SEPARATOR=';'
12359 }
12360 fi
12361
12362
12363 # IFS
12364 # We need space, tab and new line, in precisely that order. Quoting is
12365 # there to prevent editors from complaining about space-tab.
12366 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12367 # splitting by setting IFS to empty value.)
12368 IFS=" "" $as_nl"
12369
12370 # Find who we are. Look in the path if we contain no directory separator.
12371 case $0 in #((
12372 *[\\/]* ) as_myself=$0 ;;
12373 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in $PATH
12375 do
12376 IFS=$as_save_IFS
12377 test -z "$as_dir" && as_dir=.
12378 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12379 done
12380 IFS=$as_save_IFS
12381
12382 ;;
12383 esac
12384 # We did not find ourselves, most probably we were run as `sh COMMAND'
12385 # in which case we are not to be found in the path.
12386 if test "x$as_myself" = x; then
12387 as_myself=$0
12388 fi
12389 if test ! -f "$as_myself"; then
12390 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12391 exit 1
12392 fi
12393
12394 # Unset variables that we do not need and which cause bugs (e.g. in
12395 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12396 # suppresses any "Segmentation fault" message there. '((' could
12397 # trigger a bug in pdksh 5.2.14.
12398 for as_var in BASH_ENV ENV MAIL MAILPATH
12399 do eval test x\${$as_var+set} = xset \
12400 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12401 done
12402 PS1='$ '
12403 PS2='> '
12404 PS4='+ '
12405
12406 # NLS nuisances.
12407 LC_ALL=C
12408 export LC_ALL
12409 LANGUAGE=C
12410 export LANGUAGE
12411
12412 # CDPATH.
12413 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12414
12415
12416 # as_fn_error ERROR [LINENO LOG_FD]
12417 # ---------------------------------
12418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12420 # script with status $?, using 1 if that was 0.
12421 as_fn_error ()
12422 {
12423 as_status=$?; test $as_status -eq 0 && as_status=1
12424 if test "$3"; then
12425 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12427 fi
12428 $as_echo "$as_me: error: $1" >&2
12429 as_fn_exit $as_status
12430 } # as_fn_error
12431
12432
12433 # as_fn_set_status STATUS
12434 # -----------------------
12435 # Set $? to STATUS, without forking.
12436 as_fn_set_status ()
12437 {
12438 return $1
12439 } # as_fn_set_status
12440
12441 # as_fn_exit STATUS
12442 # -----------------
12443 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12444 as_fn_exit ()
12445 {
12446 set +e
12447 as_fn_set_status $1
12448 exit $1
12449 } # as_fn_exit
12450
12451 # as_fn_unset VAR
12452 # ---------------
12453 # Portably unset VAR.
12454 as_fn_unset ()
12455 {
12456 { eval $1=; unset $1;}
12457 }
12458 as_unset=as_fn_unset
12459 # as_fn_append VAR VALUE
12460 # ----------------------
12461 # Append the text in VALUE to the end of the definition contained in VAR. Take
12462 # advantage of any shell optimizations that allow amortized linear growth over
12463 # repeated appends, instead of the typical quadratic growth present in naive
12464 # implementations.
12465 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12466 eval 'as_fn_append ()
12467 {
12468 eval $1+=\$2
12469 }'
12470 else
12471 as_fn_append ()
12472 {
12473 eval $1=\$$1\$2
12474 }
12475 fi # as_fn_append
12476
12477 # as_fn_arith ARG...
12478 # ------------------
12479 # Perform arithmetic evaluation on the ARGs, and store the result in the
12480 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12481 # must be portable across $(()) and expr.
12482 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12483 eval 'as_fn_arith ()
12484 {
12485 as_val=$(( $* ))
12486 }'
12487 else
12488 as_fn_arith ()
12489 {
12490 as_val=`expr "$@" || test $? -eq 1`
12491 }
12492 fi # as_fn_arith
12493
12494
12495 if expr a : '\(a\)' >/dev/null 2>&1 &&
12496 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12497 as_expr=expr
12498 else
12499 as_expr=false
12500 fi
12501
12502 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12503 as_basename=basename
12504 else
12505 as_basename=false
12506 fi
12507
12508 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12509 as_dirname=dirname
12510 else
12511 as_dirname=false
12512 fi
12513
12514 as_me=`$as_basename -- "$0" ||
12515 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12516 X"$0" : 'X\(//\)$' \| \
12517 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12518 $as_echo X/"$0" |
12519 sed '/^.*\/\([^/][^/]*\)\/*$/{
12520 s//\1/
12521 q
12522 }
12523 /^X\/\(\/\/\)$/{
12524 s//\1/
12525 q
12526 }
12527 /^X\/\(\/\).*/{
12528 s//\1/
12529 q
12530 }
12531 s/.*/./; q'`
12532
12533 # Avoid depending upon Character Ranges.
12534 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12535 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12536 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12537 as_cr_digits='0123456789'
12538 as_cr_alnum=$as_cr_Letters$as_cr_digits
12539
12540 ECHO_C= ECHO_N= ECHO_T=
12541 case `echo -n x` in #(((((
12542 -n*)
12543 case `echo 'xy\c'` in
12544 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12545 xy) ECHO_C='\c';;
12546 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12547 ECHO_T=' ';;
12548 esac;;
12549 *)
12550 ECHO_N='-n';;
12551 esac
12552
12553 rm -f conf$$ conf$$.exe conf$$.file
12554 if test -d conf$$.dir; then
12555 rm -f conf$$.dir/conf$$.file
12556 else
12557 rm -f conf$$.dir
12558 mkdir conf$$.dir 2>/dev/null
12559 fi
12560 if (echo >conf$$.file) 2>/dev/null; then
12561 if ln -s conf$$.file conf$$ 2>/dev/null; then
12562 as_ln_s='ln -s'
12563 # ... but there are two gotchas:
12564 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12565 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12566 # In both cases, we have to default to `cp -p'.
12567 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12568 as_ln_s='cp -p'
12569 elif ln conf$$.file conf$$ 2>/dev/null; then
12570 as_ln_s=ln
12571 else
12572 as_ln_s='cp -p'
12573 fi
12574 else
12575 as_ln_s='cp -p'
12576 fi
12577 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12578 rmdir conf$$.dir 2>/dev/null
12579
12580
12581 # as_fn_mkdir_p
12582 # -------------
12583 # Create "$as_dir" as a directory, including parents if necessary.
12584 as_fn_mkdir_p ()
12585 {
12586
12587 case $as_dir in #(
12588 -*) as_dir=./$as_dir;;
12589 esac
12590 test -d "$as_dir" || eval $as_mkdir_p || {
12591 as_dirs=
12592 while :; do
12593 case $as_dir in #(
12594 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12595 *) as_qdir=$as_dir;;
12596 esac
12597 as_dirs="'$as_qdir' $as_dirs"
12598 as_dir=`$as_dirname -- "$as_dir" ||
12599 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12600 X"$as_dir" : 'X\(//\)[^/]' \| \
12601 X"$as_dir" : 'X\(//\)$' \| \
12602 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12603 $as_echo X"$as_dir" |
12604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12605 s//\1/
12606 q
12607 }
12608 /^X\(\/\/\)[^/].*/{
12609 s//\1/
12610 q
12611 }
12612 /^X\(\/\/\)$/{
12613 s//\1/
12614 q
12615 }
12616 /^X\(\/\).*/{
12617 s//\1/
12618 q
12619 }
12620 s/.*/./; q'`
12621 test -d "$as_dir" && break
12622 done
12623 test -z "$as_dirs" || eval "mkdir $as_dirs"
12624 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12625
12626
12627 } # as_fn_mkdir_p
12628 if mkdir -p . 2>/dev/null; then
12629 as_mkdir_p='mkdir -p "$as_dir"'
12630 else
12631 test -d ./-p && rmdir ./-p
12632 as_mkdir_p=false
12633 fi
12634
12635 if test -x / >/dev/null 2>&1; then
12636 as_test_x='test -x'
12637 else
12638 if ls -dL / >/dev/null 2>&1; then
12639 as_ls_L_option=L
12640 else
12641 as_ls_L_option=
12642 fi
12643 as_test_x='
12644 eval sh -c '\''
12645 if test -d "$1"; then
12646 test -d "$1/.";
12647 else
12648 case $1 in #(
12649 -*)set "./$1";;
12650 esac;
12651 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12652 ???[sx]*):;;*)false;;esac;fi
12653 '\'' sh
12654 '
12655 fi
12656 as_executable_p=$as_test_x
12657
12658 # Sed expression to map a string onto a valid CPP name.
12659 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12660
12661 # Sed expression to map a string onto a valid variable name.
12662 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12663
12664
12665 exec 6>&1
12666 ## ----------------------------------- ##
12667 ## Main body of $CONFIG_STATUS script. ##
12668 ## ----------------------------------- ##
12669 _ASEOF
12670 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12671
12672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12673 # Save the log message, to keep $0 and so on meaningful, and to
12674 # report actual input values of CONFIG_FILES etc. instead of their
12675 # values after options handling.
12676 ac_log="
12677 This file was extended by libedit $as_me 3.0, which was
12678 generated by GNU Autoconf 2.65. Invocation command line was
12679
12680 CONFIG_FILES = $CONFIG_FILES
12681 CONFIG_HEADERS = $CONFIG_HEADERS
12682 CONFIG_LINKS = $CONFIG_LINKS
12683 CONFIG_COMMANDS = $CONFIG_COMMANDS
12684 $ $0 $@
12685
12686 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12687 "
12688
12689 _ACEOF
12690
12691 case $ac_config_files in *"
12692 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12693 esac
12694
12695 case $ac_config_headers in *"
12696 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12697 esac
12698
12699
12700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12701 # Files that config.status was made for.
12702 config_files="$ac_config_files"
12703 config_headers="$ac_config_headers"
12704 config_commands="$ac_config_commands"
12705
12706 _ACEOF
12707
12708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12709 ac_cs_usage="\
12710 \`$as_me' instantiates files and other configuration actions
12711 from templates according to the current configuration. Unless the files
12712 and actions are specified as TAGs, all are instantiated by default.
12713
12714 Usage: $0 [OPTION]... [TAG]...
12715
12716 -h, --help print this help, then exit
12717 -V, --version print version number and configuration settings, then exit
12718 --config print configuration, then exit
12719 -q, --quiet, --silent
12720 do not print progress messages
12721 -d, --debug don't remove temporary files
12722 --recheck update $as_me by reconfiguring in the same conditions
12723 --file=FILE[:TEMPLATE]
12724 instantiate the configuration file FILE
12725 --header=FILE[:TEMPLATE]
12726 instantiate the configuration header FILE
12727
12728 Configuration files:
12729 $config_files
12730
12731 Configuration headers:
12732 $config_headers
12733
12734 Configuration commands:
12735 $config_commands
12736
12737 Report bugs to the package provider."
12738
12739 _ACEOF
12740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12741 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12742 ac_cs_version="\\
12743 libedit config.status 3.0
12744 configured by $0, generated by GNU Autoconf 2.65,
12745 with options \\"\$ac_cs_config\\"
12746
12747 Copyright (C) 2009 Free Software Foundation, Inc.
12748 This config.status script is free software; the Free Software Foundation
12749 gives unlimited permission to copy, distribute and modify it."
12750
12751 ac_pwd='$ac_pwd'
12752 srcdir='$srcdir'
12753 INSTALL='$INSTALL'
12754 MKDIR_P='$MKDIR_P'
12755 AWK='$AWK'
12756 test -n "\$AWK" || AWK=awk
12757 _ACEOF
12758
12759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12760 # The default lists apply if the user does not specify any file.
12761 ac_need_defaults=:
12762 while test $# != 0
12763 do
12764 case $1 in
12765 --*=*)
12766 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12767 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12768 ac_shift=:
12769 ;;
12770 *)
12771 ac_option=$1
12772 ac_optarg=$2
12773 ac_shift=shift
12774 ;;
12775 esac
12776
12777 case $ac_option in
12778 # Handling of the options.
12779 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12780 ac_cs_recheck=: ;;
12781 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12782 $as_echo "$ac_cs_version"; exit ;;
12783 --config | --confi | --conf | --con | --co | --c )
12784 $as_echo "$ac_cs_config"; exit ;;
12785 --debug | --debu | --deb | --de | --d | -d )
12786 debug=: ;;
12787 --file | --fil | --fi | --f )
12788 $ac_shift
12789 case $ac_optarg in
12790 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12791 esac
12792 as_fn_append CONFIG_FILES " '$ac_optarg'"
12793 ac_need_defaults=false;;
12794 --header | --heade | --head | --hea )
12795 $ac_shift
12796 case $ac_optarg in
12797 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12798 esac
12799 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12800 ac_need_defaults=false;;
12801 --he | --h)
12802 # Conflict between --help and --header
12803 as_fn_error "ambiguous option: \`$1'
12804 Try \`$0 --help' for more information.";;
12805 --help | --hel | -h )
12806 $as_echo "$ac_cs_usage"; exit ;;
12807 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12808 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12809 ac_cs_silent=: ;;
12810
12811 # This is an error.
12812 -*) as_fn_error "unrecognized option: \`$1'
12813 Try \`$0 --help' for more information." ;;
12814
12815 *) as_fn_append ac_config_targets " $1"
12816 ac_need_defaults=false ;;
12817
12818 esac
12819 shift
12820 done
12821
12822 ac_configure_extra_args=
12823
12824 if $ac_cs_silent; then
12825 exec 6>/dev/null
12826 ac_configure_extra_args="$ac_configure_extra_args --silent"
12827 fi
12828
12829 _ACEOF
12830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12831 if \$ac_cs_recheck; then
12832 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12833 shift
12834 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12835 CONFIG_SHELL='$SHELL'
12836 export CONFIG_SHELL
12837 exec "\$@"
12838 fi
12839
12840 _ACEOF
12841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12842 exec 5>>config.log
12843 {
12844 echo
12845 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12846 ## Running $as_me. ##
12847 _ASBOX
12848 $as_echo "$ac_log"
12849 } >&5
12850
12851 _ACEOF
12852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12853 #
12854 # INIT-COMMANDS
12855 #
12856 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12857
12858
12859 # The HP-UX ksh and POSIX shell print the target directory to stdout
12860 # if CDPATH is set.
12861 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12862
12863 sed_quote_subst='$sed_quote_subst'
12864 double_quote_subst='$double_quote_subst'
12865 delay_variable_subst='$delay_variable_subst'
12866 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12867 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12868 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12869 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12870 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12871 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12872 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12873 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12874 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12875 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12876 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12877 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12878 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12879 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12880 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12881 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12882 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12883 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12884 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12885 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12886 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12887 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12888 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12889 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12890 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12891 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12892 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12893 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12894 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12895 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12896 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12897 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12898 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12899 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12900 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12901 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12902 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12903 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12904 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12905 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12906 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12907 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12908 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12909 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12910 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"`'
12911 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"`'
12912 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12913 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12914 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12915 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12916 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12917 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12918 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12919 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12920 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12921 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12922 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12923 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12924 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12925 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12926 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12927 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12928 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12929 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12930 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12931 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12932 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12933 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12934 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12935 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12936 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12937 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12938 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12939 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12940 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12941 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12942 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12943 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12944 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12945 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12946 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12947 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12948 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12949 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12950 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12951 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12952 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12953 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12954 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12955 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12956 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12957 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12958 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12959 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12960 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12961 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12962 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12963 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12964 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12965 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12966 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12967 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12968 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12969 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12970 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12971 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12972 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12973 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12974 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12975 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12976 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12977 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12978 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12979 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12980 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12981 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12982 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12983 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12984
12985 LTCC='$LTCC'
12986 LTCFLAGS='$LTCFLAGS'
12987 compiler='$compiler_DEFAULT'
12988
12989 # Quote evaled strings.
12990 for var in SED \
12991 GREP \
12992 EGREP \
12993 FGREP \
12994 LD \
12995 NM \
12996 LN_S \
12997 lt_SP2NL \
12998 lt_NL2SP \
12999 reload_flag \
13000 OBJDUMP \
13001 deplibs_check_method \
13002 file_magic_cmd \
13003 AR \
13004 AR_FLAGS \
13005 STRIP \
13006 RANLIB \
13007 CC \
13008 CFLAGS \
13009 compiler \
13010 lt_cv_sys_global_symbol_pipe \
13011 lt_cv_sys_global_symbol_to_cdecl \
13012 lt_cv_sys_global_symbol_to_c_name_address \
13013 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13014 SHELL \
13015 ECHO \
13016 lt_prog_compiler_no_builtin_flag \
13017 lt_prog_compiler_wl \
13018 lt_prog_compiler_pic \
13019 lt_prog_compiler_static \
13020 lt_cv_prog_compiler_c_o \
13021 need_locks \
13022 DSYMUTIL \
13023 NMEDIT \
13024 LIPO \
13025 OTOOL \
13026 OTOOL64 \
13027 shrext_cmds \
13028 export_dynamic_flag_spec \
13029 whole_archive_flag_spec \
13030 compiler_needs_object \
13031 with_gnu_ld \
13032 allow_undefined_flag \
13033 no_undefined_flag \
13034 hardcode_libdir_flag_spec \
13035 hardcode_libdir_flag_spec_ld \
13036 hardcode_libdir_separator \
13037 fix_srcfile_path \
13038 exclude_expsyms \
13039 include_expsyms \
13040 file_list_spec \
13041 variables_saved_for_relink \
13042 libname_spec \
13043 library_names_spec \
13044 soname_spec \
13045 finish_eval \
13046 old_striplib \
13047 striplib; do
13048 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13049 *[\\\\\\\`\\"\\\$]*)
13050 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13051 ;;
13052 *)
13053 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13054 ;;
13055 esac
13056 done
13057
13058 # Double-quote double-evaled strings.
13059 for var in reload_cmds \
13060 old_postinstall_cmds \
13061 old_postuninstall_cmds \
13062 old_archive_cmds \
13063 extract_expsyms_cmds \
13064 old_archive_from_new_cmds \
13065 old_archive_from_expsyms_cmds \
13066 archive_cmds \
13067 archive_expsym_cmds \
13068 module_cmds \
13069 module_expsym_cmds \
13070 export_symbols_cmds \
13071 prelink_cmds \
13072 postinstall_cmds \
13073 postuninstall_cmds \
13074 finish_cmds \
13075 sys_lib_search_path_spec \
13076 sys_lib_dlsearch_path_spec; do
13077 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13078 *[\\\\\\\`\\"\\\$]*)
13079 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13080 ;;
13081 *)
13082 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13083 ;;
13084 esac
13085 done
13086
13087 # Fix-up fallback echo if it was mangled by the above quoting rules.
13088 case \$lt_ECHO in
13089 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13090 ;;
13091 esac
13092
13093 ac_aux_dir='$ac_aux_dir'
13094 xsi_shell='$xsi_shell'
13095 lt_shell_append='$lt_shell_append'
13096
13097 # See if we are running on zsh, and set the options which allow our
13098 # commands through without removal of \ escapes INIT.
13099 if test -n "\${ZSH_VERSION+set}" ; then
13100 setopt NO_GLOB_SUBST
13101 fi
13102
13103
13104 PACKAGE='$PACKAGE'
13105 VERSION='$VERSION'
13106 TIMESTAMP='$TIMESTAMP'
13107 RM='$RM'
13108 ofile='$ofile'
13109
13110
13111
13112
13113 _ACEOF
13114
13115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13116
13117 # Handling of arguments.
13118 for ac_config_target in $ac_config_targets
13119 do
13120 case $ac_config_target in
13121 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13122 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13123 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13124 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13125 "libedit.pc") CONFIG_FILES="$CONFIG_FILES libedit.pc" ;;
13126 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13127 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13128 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13129
13130 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13131 esac
13132 done
13133
13134
13135 # If the user did not use the arguments to specify the items to instantiate,
13136 # then the envvar interface is used. Set only those that are not.
13137 # We use the long form for the default assignment because of an extremely
13138 # bizarre bug on SunOS 4.1.3.
13139 if $ac_need_defaults; then
13140 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13141 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13142 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13143 fi
13144
13145 # Have a temporary directory for convenience. Make it in the build tree
13146 # simply because there is no reason against having it here, and in addition,
13147 # creating and moving files from /tmp can sometimes cause problems.
13148 # Hook for its removal unless debugging.
13149 # Note that there is a small window in which the directory will not be cleaned:
13150 # after its creation but before its name has been assigned to `$tmp'.
13151 $debug ||
13152 {
13153 tmp=
13154 trap 'exit_status=$?
13155 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13156 ' 0
13157 trap 'as_fn_exit 1' 1 2 13 15
13158 }
13159 # Create a (secure) tmp directory for tmp files.
13160
13161 {
13162 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13163 test -n "$tmp" && test -d "$tmp"
13164 } ||
13165 {
13166 tmp=./conf$$-$RANDOM
13167 (umask 077 && mkdir "$tmp")
13168 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13169
13170 # Set up the scripts for CONFIG_FILES section.
13171 # No need to generate them if there are no CONFIG_FILES.
13172 # This happens for instance with `./config.status config.h'.
13173 if test -n "$CONFIG_FILES"; then
13174
13175
13176 ac_cr=`echo X | tr X '\015'`
13177 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13178 # But we know of no other shell where ac_cr would be empty at this
13179 # point, so we can use a bashism as a fallback.
13180 if test "x$ac_cr" = x; then
13181 eval ac_cr=\$\'\\r\'
13182 fi
13183 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13184 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13185 ac_cs_awk_cr='\r'
13186 else
13187 ac_cs_awk_cr=$ac_cr
13188 fi
13189
13190 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13191 _ACEOF
13192
13193
13194 {
13195 echo "cat >conf$$subs.awk <<_ACEOF" &&
13196 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13197 echo "_ACEOF"
13198 } >conf$$subs.sh ||
13199 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13200 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13201 ac_delim='%!_!# '
13202 for ac_last_try in false false false false false :; do
13203 . ./conf$$subs.sh ||
13204 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13205
13206 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13207 if test $ac_delim_n = $ac_delim_num; then
13208 break
13209 elif $ac_last_try; then
13210 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13211 else
13212 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13213 fi
13214 done
13215 rm -f conf$$subs.sh
13216
13217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13218 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13219 _ACEOF
13220 sed -n '
13221 h
13222 s/^/S["/; s/!.*/"]=/
13223 p
13224 g
13225 s/^[^!]*!//
13226 :repl
13227 t repl
13228 s/'"$ac_delim"'$//
13229 t delim
13230 :nl
13231 h
13232 s/\(.\{148\}\)..*/\1/
13233 t more1
13234 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13235 p
13236 n
13237 b repl
13238 :more1
13239 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13240 p
13241 g
13242 s/.\{148\}//
13243 t nl
13244 :delim
13245 h
13246 s/\(.\{148\}\)..*/\1/
13247 t more2
13248 s/["\\]/\\&/g; s/^/"/; s/$/"/
13249 p
13250 b
13251 :more2
13252 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13253 p
13254 g
13255 s/.\{148\}//
13256 t delim
13257 ' <conf$$subs.awk | sed '
13258 /^[^""]/{
13259 N
13260 s/\n//
13261 }
13262 ' >>$CONFIG_STATUS || ac_write_fail=1
13263 rm -f conf$$subs.awk
13264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13265 _ACAWK
13266 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13267 for (key in S) S_is_set[key] = 1
13268 FS = "\a"
13269
13270 }
13271 {
13272 line = $ 0
13273 nfields = split(line, field, "@")
13274 substed = 0
13275 len = length(field[1])
13276 for (i = 2; i < nfields; i++) {
13277 key = field[i]
13278 keylen = length(key)
13279 if (S_is_set[key]) {
13280 value = S[key]
13281 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13282 len += length(value) + length(field[++i])
13283 substed = 1
13284 } else
13285 len += 1 + keylen
13286 }
13287
13288 print line
13289 }
13290
13291 _ACAWK
13292 _ACEOF
13293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13294 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13295 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13296 else
13297 cat
13298 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13299 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13300 _ACEOF
13301
13302 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13303 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13304 # trailing colons and then remove the whole line if VPATH becomes empty
13305 # (actually we leave an empty line to preserve line numbers).
13306 if test "x$srcdir" = x.; then
13307 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13308 s/:*\$(srcdir):*/:/
13309 s/:*\${srcdir}:*/:/
13310 s/:*@srcdir@:*/:/
13311 s/^\([^=]*=[ ]*\):*/\1/
13312 s/:*$//
13313 s/^[^=]*=[ ]*$//
13314 }'
13315 fi
13316
13317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13318 fi # test -n "$CONFIG_FILES"
13319
13320 # Set up the scripts for CONFIG_HEADERS section.
13321 # No need to generate them if there are no CONFIG_HEADERS.
13322 # This happens for instance with `./config.status Makefile'.
13323 if test -n "$CONFIG_HEADERS"; then
13324 cat >"$tmp/defines.awk" <<\_ACAWK ||
13325 BEGIN {
13326 _ACEOF
13327
13328 # Transform confdefs.h into an awk script `defines.awk', embedded as
13329 # here-document in config.status, that substitutes the proper values into
13330 # config.h.in to produce config.h.
13331
13332 # Create a delimiter string that does not exist in confdefs.h, to ease
13333 # handling of long lines.
13334 ac_delim='%!_!# '
13335 for ac_last_try in false false :; do
13336 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13337 if test -z "$ac_t"; then
13338 break
13339 elif $ac_last_try; then
13340 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13341 else
13342 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13343 fi
13344 done
13345
13346 # For the awk script, D is an array of macro values keyed by name,
13347 # likewise P contains macro parameters if any. Preserve backslash
13348 # newline sequences.
13349
13350 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13351 sed -n '
13352 s/.\{148\}/&'"$ac_delim"'/g
13353 t rset
13354 :rset
13355 s/^[ ]*#[ ]*define[ ][ ]*/ /
13356 t def
13357 d
13358 :def
13359 s/\\$//
13360 t bsnl
13361 s/["\\]/\\&/g
13362 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13363 D["\1"]=" \3"/p
13364 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13365 d
13366 :bsnl
13367 s/["\\]/\\&/g
13368 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13369 D["\1"]=" \3\\\\\\n"\\/p
13370 t cont
13371 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13372 t cont
13373 d
13374 :cont
13375 n
13376 s/.\{148\}/&'"$ac_delim"'/g
13377 t clear
13378 :clear
13379 s/\\$//
13380 t bsnlc
13381 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13382 d
13383 :bsnlc
13384 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13385 b cont
13386 ' <confdefs.h | sed '
13387 s/'"$ac_delim"'/"\\\
13388 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13389
13390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13391 for (key in D) D_is_set[key] = 1
13392 FS = "\a"
13393 }
13394 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13395 line = \$ 0
13396 split(line, arg, " ")
13397 if (arg[1] == "#") {
13398 defundef = arg[2]
13399 mac1 = arg[3]
13400 } else {
13401 defundef = substr(arg[1], 2)
13402 mac1 = arg[2]
13403 }
13404 split(mac1, mac2, "(") #)
13405 macro = mac2[1]
13406 prefix = substr(line, 1, index(line, defundef) - 1)
13407 if (D_is_set[macro]) {
13408 # Preserve the white space surrounding the "#".
13409 print prefix "define", macro P[macro] D[macro]
13410 next
13411 } else {
13412 # Replace #undef with comments. This is necessary, for example,
13413 # in the case of _POSIX_SOURCE, which is predefined and required
13414 # on some systems where configure will not decide to define it.
13415 if (defundef == "undef") {
13416 print "/*", prefix defundef, macro, "*/"
13417 next
13418 }
13419 }
13420 }
13421 { print }
13422 _ACAWK
13423 _ACEOF
13424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13425 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13426 fi # test -n "$CONFIG_HEADERS"
13427
13428
13429 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13430 shift
13431 for ac_tag
13432 do
13433 case $ac_tag in
13434 :[FHLC]) ac_mode=$ac_tag; continue;;
13435 esac
13436 case $ac_mode$ac_tag in
13437 :[FHL]*:*);;
13438 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13439 :[FH]-) ac_tag=-:-;;
13440 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13441 esac
13442 ac_save_IFS=$IFS
13443 IFS=:
13444 set x $ac_tag
13445 IFS=$ac_save_IFS
13446 shift
13447 ac_file=$1
13448 shift
13449
13450 case $ac_mode in
13451 :L) ac_source=$1;;
13452 :[FH])
13453 ac_file_inputs=
13454 for ac_f
13455 do
13456 case $ac_f in
13457 -) ac_f="$tmp/stdin";;
13458 *) # Look for the file first in the build tree, then in the source tree
13459 # (if the path is not absolute). The absolute path cannot be DOS-style,
13460 # because $ac_f cannot contain `:'.
13461 test -f "$ac_f" ||
13462 case $ac_f in
13463 [\\/$]*) false;;
13464 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13465 esac ||
13466 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13467 esac
13468 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13469 as_fn_append ac_file_inputs " '$ac_f'"
13470 done
13471
13472 # Let's still pretend it is `configure' which instantiates (i.e., don't
13473 # use $as_me), people would be surprised to read:
13474 # /* config.h. Generated by config.status. */
13475 configure_input='Generated from '`
13476 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13477 `' by configure.'
13478 if test x"$ac_file" != x-; then
13479 configure_input="$ac_file. $configure_input"
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13481 $as_echo "$as_me: creating $ac_file" >&6;}
13482 fi
13483 # Neutralize special characters interpreted by sed in replacement strings.
13484 case $configure_input in #(
13485 *\&* | *\|* | *\\* )
13486 ac_sed_conf_input=`$as_echo "$configure_input" |
13487 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13488 *) ac_sed_conf_input=$configure_input;;
13489 esac
13490
13491 case $ac_tag in
13492 *:-:* | *:-) cat >"$tmp/stdin" \
13493 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13494 esac
13495 ;;
13496 esac
13497
13498 ac_dir=`$as_dirname -- "$ac_file" ||
13499 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13500 X"$ac_file" : 'X\(//\)[^/]' \| \
13501 X"$ac_file" : 'X\(//\)$' \| \
13502 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13503 $as_echo X"$ac_file" |
13504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13505 s//\1/
13506 q
13507 }
13508 /^X\(\/\/\)[^/].*/{
13509 s//\1/
13510 q
13511 }
13512 /^X\(\/\/\)$/{
13513 s//\1/
13514 q
13515 }
13516 /^X\(\/\).*/{
13517 s//\1/
13518 q
13519 }
13520 s/.*/./; q'`
13521 as_dir="$ac_dir"; as_fn_mkdir_p
13522 ac_builddir=.
13523
13524 case "$ac_dir" in
13525 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13526 *)
13527 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13528 # A ".." for each directory in $ac_dir_suffix.
13529 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13530 case $ac_top_builddir_sub in
13531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13533 esac ;;
13534 esac
13535 ac_abs_top_builddir=$ac_pwd
13536 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13537 # for backward compatibility:
13538 ac_top_builddir=$ac_top_build_prefix
13539
13540 case $srcdir in
13541 .) # We are building in place.
13542 ac_srcdir=.
13543 ac_top_srcdir=$ac_top_builddir_sub
13544 ac_abs_top_srcdir=$ac_pwd ;;
13545 [\\/]* | ?:[\\/]* ) # Absolute name.
13546 ac_srcdir=$srcdir$ac_dir_suffix;
13547 ac_top_srcdir=$srcdir
13548 ac_abs_top_srcdir=$srcdir ;;
13549 *) # Relative name.
13550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13551 ac_top_srcdir=$ac_top_build_prefix$srcdir
13552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13553 esac
13554 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13555
13556
13557 case $ac_mode in
13558 :F)
13559 #
13560 # CONFIG_FILE
13561 #
13562
13563 case $INSTALL in
13564 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13565 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13566 esac
13567 ac_MKDIR_P=$MKDIR_P
13568 case $MKDIR_P in
13569 [\\/$]* | ?:[\\/]* ) ;;
13570 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13571 esac
13572 _ACEOF
13573
13574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13575 # If the template does not know about datarootdir, expand it.
13576 # FIXME: This hack should be removed a few years after 2.60.
13577 ac_datarootdir_hack=; ac_datarootdir_seen=
13578 ac_sed_dataroot='
13579 /datarootdir/ {
13580 p
13581 q
13582 }
13583 /@datadir@/p
13584 /@docdir@/p
13585 /@infodir@/p
13586 /@localedir@/p
13587 /@mandir@/p'
13588 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13589 *datarootdir*) ac_datarootdir_seen=yes;;
13590 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13592 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13593 _ACEOF
13594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13595 ac_datarootdir_hack='
13596 s&@datadir@&$datadir&g
13597 s&@docdir@&$docdir&g
13598 s&@infodir@&$infodir&g
13599 s&@localedir@&$localedir&g
13600 s&@mandir@&$mandir&g
13601 s&\\\${datarootdir}&$datarootdir&g' ;;
13602 esac
13603 _ACEOF
13604
13605 # Neutralize VPATH when `$srcdir' = `.'.
13606 # Shell code in configure.ac might set extrasub.
13607 # FIXME: do we really want to maintain this feature?
13608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13609 ac_sed_extra="$ac_vpsub
13610 $extrasub
13611 _ACEOF
13612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13613 :t
13614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13615 s|@configure_input@|$ac_sed_conf_input|;t t
13616 s&@top_builddir@&$ac_top_builddir_sub&;t t
13617 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13618 s&@srcdir@&$ac_srcdir&;t t
13619 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13620 s&@top_srcdir@&$ac_top_srcdir&;t t
13621 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13622 s&@builddir@&$ac_builddir&;t t
13623 s&@abs_builddir@&$ac_abs_builddir&;t t
13624 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13625 s&@INSTALL@&$ac_INSTALL&;t t
13626 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13627 $ac_datarootdir_hack
13628 "
13629 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13630 || as_fn_error "could not create $ac_file" "$LINENO" 5
13631
13632 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13633 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13634 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13636 which seems to be undefined. Please make sure it is defined." >&5
13637 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13638 which seems to be undefined. Please make sure it is defined." >&2;}
13639
13640 rm -f "$tmp/stdin"
13641 case $ac_file in
13642 -) cat "$tmp/out" && rm -f "$tmp/out";;
13643 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13644 esac \
13645 || as_fn_error "could not create $ac_file" "$LINENO" 5
13646 ;;
13647 :H)
13648 #
13649 # CONFIG_HEADER
13650 #
13651 if test x"$ac_file" != x-; then
13652 {
13653 $as_echo "/* $configure_input */" \
13654 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13655 } >"$tmp/config.h" \
13656 || as_fn_error "could not create $ac_file" "$LINENO" 5
13657 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13659 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13660 else
13661 rm -f "$ac_file"
13662 mv "$tmp/config.h" "$ac_file" \
13663 || as_fn_error "could not create $ac_file" "$LINENO" 5
13664 fi
13665 else
13666 $as_echo "/* $configure_input */" \
13667 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13668 || as_fn_error "could not create -" "$LINENO" 5
13669 fi
13670 # Compute "$ac_file"'s index in $config_headers.
13671 _am_arg="$ac_file"
13672 _am_stamp_count=1
13673 for _am_header in $config_headers :; do
13674 case $_am_header in
13675 $_am_arg | $_am_arg:* )
13676 break ;;
13677 * )
13678 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13679 esac
13680 done
13681 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13682 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13683 X"$_am_arg" : 'X\(//\)[^/]' \| \
13684 X"$_am_arg" : 'X\(//\)$' \| \
13685 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13686 $as_echo X"$_am_arg" |
13687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13688 s//\1/
13689 q
13690 }
13691 /^X\(\/\/\)[^/].*/{
13692 s//\1/
13693 q
13694 }
13695 /^X\(\/\/\)$/{
13696 s//\1/
13697 q
13698 }
13699 /^X\(\/\).*/{
13700 s//\1/
13701 q
13702 }
13703 s/.*/./; q'`/stamp-h$_am_stamp_count
13704 ;;
13705
13706 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13707 $as_echo "$as_me: executing $ac_file commands" >&6;}
13708 ;;
13709 esac
13710
13711
13712 case $ac_file$ac_mode in
13713 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13714 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13715 # are listed without --file. Let's play safe and only enable the eval
13716 # if we detect the quoting.
13717 case $CONFIG_FILES in
13718 *\'*) eval set x "$CONFIG_FILES" ;;
13719 *) set x $CONFIG_FILES ;;
13720 esac
13721 shift
13722 for mf
13723 do
13724 # Strip MF so we end up with the name of the file.
13725 mf=`echo "$mf" | sed -e 's/:.*$//'`
13726 # Check whether this is an Automake generated Makefile or not.
13727 # We used to match only the files named `Makefile.in', but
13728 # some people rename them; so instead we look at the file content.
13729 # Grep'ing the first line is not enough: some people post-process
13730 # each Makefile.in and add a new line on top of each file to say so.
13731 # Grep'ing the whole file is not good either: AIX grep has a line
13732 # limit of 2048, but all sed's we know have understand at least 4000.
13733 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13734 dirpart=`$as_dirname -- "$mf" ||
13735 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13736 X"$mf" : 'X\(//\)[^/]' \| \
13737 X"$mf" : 'X\(//\)$' \| \
13738 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13739 $as_echo X"$mf" |
13740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13741 s//\1/
13742 q
13743 }
13744 /^X\(\/\/\)[^/].*/{
13745 s//\1/
13746 q
13747 }
13748 /^X\(\/\/\)$/{
13749 s//\1/
13750 q
13751 }
13752 /^X\(\/\).*/{
13753 s//\1/
13754 q
13755 }
13756 s/.*/./; q'`
13757 else
13758 continue
13759 fi
13760 # Extract the definition of DEPDIR, am__include, and am__quote
13761 # from the Makefile without running `make'.
13762 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13763 test -z "$DEPDIR" && continue
13764 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13765 test -z "am__include" && continue
13766 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13767 # When using ansi2knr, U may be empty or an underscore; expand it
13768 U=`sed -n 's/^U = //p' < "$mf"`
13769 # Find all dependency output files, they are included files with
13770 # $(DEPDIR) in their names. We invoke sed twice because it is the
13771 # simplest approach to changing $(DEPDIR) to its actual value in the
13772 # expansion.
13773 for file in `sed -n "
13774 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13775 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13776 # Make sure the directory exists.
13777 test -f "$dirpart/$file" && continue
13778 fdir=`$as_dirname -- "$file" ||
13779 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13780 X"$file" : 'X\(//\)[^/]' \| \
13781 X"$file" : 'X\(//\)$' \| \
13782 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13783 $as_echo X"$file" |
13784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13785 s//\1/
13786 q
13787 }
13788 /^X\(\/\/\)[^/].*/{
13789 s//\1/
13790 q
13791 }
13792 /^X\(\/\/\)$/{
13793 s//\1/
13794 q
13795 }
13796 /^X\(\/\).*/{
13797 s//\1/
13798 q
13799 }
13800 s/.*/./; q'`
13801 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13802 # echo "creating $dirpart/$file"
13803 echo '# dummy' > "$dirpart/$file"
13804 done
13805 done
13806 }
13807 ;;
13808 "libtool":C)
13809
13810 # See if we are running on zsh, and set the options which allow our
13811 # commands through without removal of \ escapes.
13812 if test -n "${ZSH_VERSION+set}" ; then
13813 setopt NO_GLOB_SUBST
13814 fi
13815
13816 cfgfile="${ofile}T"
13817 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13818 $RM "$cfgfile"
13819
13820 cat <<_LT_EOF >> "$cfgfile"
13821 #! $SHELL
13822
13823 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13824 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13825 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13826 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13827 #
13828 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13829 # 2006, 2007, 2008 Free Software Foundation, Inc.
13830 # Written by Gordon Matzigkeit, 1996
13831 #
13832 # This file is part of GNU Libtool.
13833 #
13834 # GNU Libtool is free software; you can redistribute it and/or
13835 # modify it under the terms of the GNU General Public License as
13836 # published by the Free Software Foundation; either version 2 of
13837 # the License, or (at your option) any later version.
13838 #
13839 # As a special exception to the GNU General Public License,
13840 # if you distribute this file as part of a program or library that
13841 # is built using GNU Libtool, you may include this file under the
13842 # same distribution terms that you use for the rest of that program.
13843 #
13844 # GNU Libtool is distributed in the hope that it will be useful,
13845 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13846 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13847 # GNU General Public License for more details.
13848 #
13849 # You should have received a copy of the GNU General Public License
13850 # along with GNU Libtool; see the file COPYING. If not, a copy
13851 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13852 # obtained by writing to the Free Software Foundation, Inc.,
13853 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13854
13855
13856 # The names of the tagged configurations supported by this script.
13857 available_tags=""
13858
13859 # ### BEGIN LIBTOOL CONFIG
13860
13861 # Which release of libtool.m4 was used?
13862 macro_version=$macro_version
13863 macro_revision=$macro_revision
13864
13865 # Whether or not to build shared libraries.
13866 build_libtool_libs=$enable_shared
13867
13868 # Whether or not to build static libraries.
13869 build_old_libs=$enable_static
13870
13871 # What type of objects to build.
13872 pic_mode=$pic_mode
13873
13874 # Whether or not to optimize for fast installation.
13875 fast_install=$enable_fast_install
13876
13877 # The host system.
13878 host_alias=$host_alias
13879 host=$host
13880 host_os=$host_os
13881
13882 # The build system.
13883 build_alias=$build_alias
13884 build=$build
13885 build_os=$build_os
13886
13887 # A sed program that does not truncate output.
13888 SED=$lt_SED
13889
13890 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13891 Xsed="\$SED -e 1s/^X//"
13892
13893 # A grep program that handles long lines.
13894 GREP=$lt_GREP
13895
13896 # An ERE matcher.
13897 EGREP=$lt_EGREP
13898
13899 # A literal string matcher.
13900 FGREP=$lt_FGREP
13901
13902 # A BSD- or MS-compatible name lister.
13903 NM=$lt_NM
13904
13905 # Whether we need soft or hard links.
13906 LN_S=$lt_LN_S
13907
13908 # What is the maximum length of a command?
13909 max_cmd_len=$max_cmd_len
13910
13911 # Object file suffix (normally "o").
13912 objext=$ac_objext
13913
13914 # Executable file suffix (normally "").
13915 exeext=$exeext
13916
13917 # whether the shell understands "unset".
13918 lt_unset=$lt_unset
13919
13920 # turn spaces into newlines.
13921 SP2NL=$lt_lt_SP2NL
13922
13923 # turn newlines into spaces.
13924 NL2SP=$lt_lt_NL2SP
13925
13926 # How to create reloadable object files.
13927 reload_flag=$lt_reload_flag
13928 reload_cmds=$lt_reload_cmds
13929
13930 # An object symbol dumper.
13931 OBJDUMP=$lt_OBJDUMP
13932
13933 # Method to check whether dependent libraries are shared objects.
13934 deplibs_check_method=$lt_deplibs_check_method
13935
13936 # Command to use when deplibs_check_method == "file_magic".
13937 file_magic_cmd=$lt_file_magic_cmd
13938
13939 # The archiver.
13940 AR=$lt_AR
13941 AR_FLAGS=$lt_AR_FLAGS
13942
13943 # A symbol stripping program.
13944 STRIP=$lt_STRIP
13945
13946 # Commands used to install an old-style archive.
13947 RANLIB=$lt_RANLIB
13948 old_postinstall_cmds=$lt_old_postinstall_cmds
13949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13950
13951 # A C compiler.
13952 LTCC=$lt_CC
13953
13954 # LTCC compiler flags.
13955 LTCFLAGS=$lt_CFLAGS
13956
13957 # Take the output of nm and produce a listing of raw symbols and C names.
13958 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13959
13960 # Transform the output of nm in a proper C declaration.
13961 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13962
13963 # Transform the output of nm in a C name address pair.
13964 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13965
13966 # Transform the output of nm in a C name address pair when lib prefix is needed.
13967 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13968
13969 # The name of the directory that contains temporary libtool files.
13970 objdir=$objdir
13971
13972 # Shell to use when invoking shell scripts.
13973 SHELL=$lt_SHELL
13974
13975 # An echo program that does not interpret backslashes.
13976 ECHO=$lt_ECHO
13977
13978 # Used to examine libraries when file_magic_cmd begins with "file".
13979 MAGIC_CMD=$MAGIC_CMD
13980
13981 # Must we lock files when doing compilation?
13982 need_locks=$lt_need_locks
13983
13984 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13985 DSYMUTIL=$lt_DSYMUTIL
13986
13987 # Tool to change global to local symbols on Mac OS X.
13988 NMEDIT=$lt_NMEDIT
13989
13990 # Tool to manipulate fat objects and archives on Mac OS X.
13991 LIPO=$lt_LIPO
13992
13993 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13994 OTOOL=$lt_OTOOL
13995
13996 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13997 OTOOL64=$lt_OTOOL64
13998
13999 # Old archive suffix (normally "a").
14000 libext=$libext
14001
14002 # Shared library suffix (normally ".so").
14003 shrext_cmds=$lt_shrext_cmds
14004
14005 # The commands to extract the exported symbol list from a shared archive.
14006 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14007
14008 # Variables whose values should be saved in libtool wrapper scripts and
14009 # restored at link time.
14010 variables_saved_for_relink=$lt_variables_saved_for_relink
14011
14012 # Do we need the "lib" prefix for modules?
14013 need_lib_prefix=$need_lib_prefix
14014
14015 # Do we need a version for libraries?
14016 need_version=$need_version
14017
14018 # Library versioning type.
14019 version_type=$version_type
14020
14021 # Shared library runtime path variable.
14022 runpath_var=$runpath_var
14023
14024 # Shared library path variable.
14025 shlibpath_var=$shlibpath_var
14026
14027 # Is shlibpath searched before the hard-coded library search path?
14028 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14029
14030 # Format of library name prefix.
14031 libname_spec=$lt_libname_spec
14032
14033 # List of archive names. First name is the real one, the rest are links.
14034 # The last name is the one that the linker finds with -lNAME
14035 library_names_spec=$lt_library_names_spec
14036
14037 # The coded name of the library, if different from the real name.
14038 soname_spec=$lt_soname_spec
14039
14040 # Command to use after installation of a shared archive.
14041 postinstall_cmds=$lt_postinstall_cmds
14042
14043 # Command to use after uninstallation of a shared archive.
14044 postuninstall_cmds=$lt_postuninstall_cmds
14045
14046 # Commands used to finish a libtool library installation in a directory.
14047 finish_cmds=$lt_finish_cmds
14048
14049 # As "finish_cmds", except a single script fragment to be evaled but
14050 # not shown.
14051 finish_eval=$lt_finish_eval
14052
14053 # Whether we should hardcode library paths into libraries.
14054 hardcode_into_libs=$hardcode_into_libs
14055
14056 # Compile-time system search path for libraries.
14057 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14058
14059 # Run-time system search path for libraries.
14060 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14061
14062 # Whether dlopen is supported.
14063 dlopen_support=$enable_dlopen
14064
14065 # Whether dlopen of programs is supported.
14066 dlopen_self=$enable_dlopen_self
14067
14068 # Whether dlopen of statically linked programs is supported.
14069 dlopen_self_static=$enable_dlopen_self_static
14070
14071 # Commands to strip libraries.
14072 old_striplib=$lt_old_striplib
14073 striplib=$lt_striplib
14074
14075
14076 # The linker used to build libraries.
14077 LD=$lt_LD
14078
14079 # Commands used to build an old-style archive.
14080 old_archive_cmds=$lt_old_archive_cmds
14081
14082 # A language specific compiler.
14083 CC=$lt_compiler
14084
14085 # Is the compiler the GNU compiler?
14086 with_gcc=$GCC
14087
14088 # Compiler flag to turn off builtin functions.
14089 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14090
14091 # How to pass a linker flag through the compiler.
14092 wl=$lt_lt_prog_compiler_wl
14093
14094 # Additional compiler flags for building library objects.
14095 pic_flag=$lt_lt_prog_compiler_pic
14096
14097 # Compiler flag to prevent dynamic linking.
14098 link_static_flag=$lt_lt_prog_compiler_static
14099
14100 # Does compiler simultaneously support -c and -o options?
14101 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14102
14103 # Whether or not to add -lc for building shared libraries.
14104 build_libtool_need_lc=$archive_cmds_need_lc
14105
14106 # Whether or not to disallow shared libs when runtime libs are static.
14107 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14108
14109 # Compiler flag to allow reflexive dlopens.
14110 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14111
14112 # Compiler flag to generate shared objects directly from archives.
14113 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14114
14115 # Whether the compiler copes with passing no objects directly.
14116 compiler_needs_object=$lt_compiler_needs_object
14117
14118 # Create an old-style archive from a shared archive.
14119 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14120
14121 # Create a temporary old-style archive to link instead of a shared archive.
14122 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14123
14124 # Commands used to build a shared archive.
14125 archive_cmds=$lt_archive_cmds
14126 archive_expsym_cmds=$lt_archive_expsym_cmds
14127
14128 # Commands used to build a loadable module if different from building
14129 # a shared archive.
14130 module_cmds=$lt_module_cmds
14131 module_expsym_cmds=$lt_module_expsym_cmds
14132
14133 # Whether we are building with GNU ld or not.
14134 with_gnu_ld=$lt_with_gnu_ld
14135
14136 # Flag that allows shared libraries with undefined symbols to be built.
14137 allow_undefined_flag=$lt_allow_undefined_flag
14138
14139 # Flag that enforces no undefined symbols.
14140 no_undefined_flag=$lt_no_undefined_flag
14141
14142 # Flag to hardcode \$libdir into a binary during linking.
14143 # This must work even if \$libdir does not exist
14144 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14145
14146 # If ld is used when linking, flag to hardcode \$libdir into a binary
14147 # during linking. This must work even if \$libdir does not exist.
14148 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14149
14150 # Whether we need a single "-rpath" flag with a separated argument.
14151 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14152
14153 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14154 # DIR into the resulting binary.
14155 hardcode_direct=$hardcode_direct
14156
14157 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14158 # DIR into the resulting binary and the resulting library dependency is
14159 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14160 # library is relocated.
14161 hardcode_direct_absolute=$hardcode_direct_absolute
14162
14163 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14164 # into the resulting binary.
14165 hardcode_minus_L=$hardcode_minus_L
14166
14167 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14168 # into the resulting binary.
14169 hardcode_shlibpath_var=$hardcode_shlibpath_var
14170
14171 # Set to "yes" if building a shared library automatically hardcodes DIR
14172 # into the library and all subsequent libraries and executables linked
14173 # against it.
14174 hardcode_automatic=$hardcode_automatic
14175
14176 # Set to yes if linker adds runtime paths of dependent libraries
14177 # to runtime path list.
14178 inherit_rpath=$inherit_rpath
14179
14180 # Whether libtool must link a program against all its dependency libraries.
14181 link_all_deplibs=$link_all_deplibs
14182
14183 # Fix the shell variable \$srcfile for the compiler.
14184 fix_srcfile_path=$lt_fix_srcfile_path
14185
14186 # Set to "yes" if exported symbols are required.
14187 always_export_symbols=$always_export_symbols
14188
14189 # The commands to list exported symbols.
14190 export_symbols_cmds=$lt_export_symbols_cmds
14191
14192 # Symbols that should not be listed in the preloaded symbols.
14193 exclude_expsyms=$lt_exclude_expsyms
14194
14195 # Symbols that must always be exported.
14196 include_expsyms=$lt_include_expsyms
14197
14198 # Commands necessary for linking programs (against libraries) with templates.
14199 prelink_cmds=$lt_prelink_cmds
14200
14201 # Specify filename containing input files.
14202 file_list_spec=$lt_file_list_spec
14203
14204 # How to hardcode a shared library path into an executable.
14205 hardcode_action=$hardcode_action
14206
14207 # ### END LIBTOOL CONFIG
14208
14209 _LT_EOF
14210
14211 case $host_os in
14212 aix3*)
14213 cat <<\_LT_EOF >> "$cfgfile"
14214 # AIX sometimes has problems with the GCC collect2 program. For some
14215 # reason, if we set the COLLECT_NAMES environment variable, the problems
14216 # vanish in a puff of smoke.
14217 if test "X${COLLECT_NAMES+set}" != Xset; then
14218 COLLECT_NAMES=
14219 export COLLECT_NAMES
14220 fi
14221 _LT_EOF
14222 ;;
14223 esac
14224
14225
14226 ltmain="$ac_aux_dir/ltmain.sh"
14227
14228
14229 # We use sed instead of cat because bash on DJGPP gets confused if
14230 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14231 # text mode, it properly converts lines to CR/LF. This bash problem
14232 # is reportedly fixed, but why not run on old versions too?
14233 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14234 || (rm -f "$cfgfile"; exit 1)
14235
14236 case $xsi_shell in
14237 yes)
14238 cat << \_LT_EOF >> "$cfgfile"
14239
14240 # func_dirname file append nondir_replacement
14241 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14242 # otherwise set result to NONDIR_REPLACEMENT.
14243 func_dirname ()
14244 {
14245 case ${1} in
14246 */*) func_dirname_result="${1%/*}${2}" ;;
14247 * ) func_dirname_result="${3}" ;;
14248 esac
14249 }
14250
14251 # func_basename file
14252 func_basename ()
14253 {
14254 func_basename_result="${1##*/}"
14255 }
14256
14257 # func_dirname_and_basename file append nondir_replacement
14258 # perform func_basename and func_dirname in a single function
14259 # call:
14260 # dirname: Compute the dirname of FILE. If nonempty,
14261 # add APPEND to the result, otherwise set result
14262 # to NONDIR_REPLACEMENT.
14263 # value returned in "$func_dirname_result"
14264 # basename: Compute filename of FILE.
14265 # value retuned in "$func_basename_result"
14266 # Implementation must be kept synchronized with func_dirname
14267 # and func_basename. For efficiency, we do not delegate to
14268 # those functions but instead duplicate the functionality here.
14269 func_dirname_and_basename ()
14270 {
14271 case ${1} in
14272 */*) func_dirname_result="${1%/*}${2}" ;;
14273 * ) func_dirname_result="${3}" ;;
14274 esac
14275 func_basename_result="${1##*/}"
14276 }
14277
14278 # func_stripname prefix suffix name
14279 # strip PREFIX and SUFFIX off of NAME.
14280 # PREFIX and SUFFIX must not contain globbing or regex special
14281 # characters, hashes, percent signs, but SUFFIX may contain a leading
14282 # dot (in which case that matches only a dot).
14283 func_stripname ()
14284 {
14285 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14286 # positional parameters, so assign one to ordinary parameter first.
14287 func_stripname_result=${3}
14288 func_stripname_result=${func_stripname_result#"${1}"}
14289 func_stripname_result=${func_stripname_result%"${2}"}
14290 }
14291
14292 # func_opt_split
14293 func_opt_split ()
14294 {
14295 func_opt_split_opt=${1%%=*}
14296 func_opt_split_arg=${1#*=}
14297 }
14298
14299 # func_lo2o object
14300 func_lo2o ()
14301 {
14302 case ${1} in
14303 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14304 *) func_lo2o_result=${1} ;;
14305 esac
14306 }
14307
14308 # func_xform libobj-or-source
14309 func_xform ()
14310 {
14311 func_xform_result=${1%.*}.lo
14312 }
14313
14314 # func_arith arithmetic-term...
14315 func_arith ()
14316 {
14317 func_arith_result=$(( $* ))
14318 }
14319
14320 # func_len string
14321 # STRING may not start with a hyphen.
14322 func_len ()
14323 {
14324 func_len_result=${#1}
14325 }
14326
14327 _LT_EOF
14328 ;;
14329 *) # Bourne compatible functions.
14330 cat << \_LT_EOF >> "$cfgfile"
14331
14332 # func_dirname file append nondir_replacement
14333 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14334 # otherwise set result to NONDIR_REPLACEMENT.
14335 func_dirname ()
14336 {
14337 # Extract subdirectory from the argument.
14338 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14339 if test "X$func_dirname_result" = "X${1}"; then
14340 func_dirname_result="${3}"
14341 else
14342 func_dirname_result="$func_dirname_result${2}"
14343 fi
14344 }
14345
14346 # func_basename file
14347 func_basename ()
14348 {
14349 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14350 }
14351
14352
14353 # func_stripname prefix suffix name
14354 # strip PREFIX and SUFFIX off of NAME.
14355 # PREFIX and SUFFIX must not contain globbing or regex special
14356 # characters, hashes, percent signs, but SUFFIX may contain a leading
14357 # dot (in which case that matches only a dot).
14358 # func_strip_suffix prefix name
14359 func_stripname ()
14360 {
14361 case ${2} in
14362 .*) func_stripname_result=`$ECHO "X${3}" \
14363 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14364 *) func_stripname_result=`$ECHO "X${3}" \
14365 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14366 esac
14367 }
14368
14369 # sed scripts:
14370 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14371 my_sed_long_arg='1s/^-[^=]*=//'
14372
14373 # func_opt_split
14374 func_opt_split ()
14375 {
14376 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14377 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14378 }
14379
14380 # func_lo2o object
14381 func_lo2o ()
14382 {
14383 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14384 }
14385
14386 # func_xform libobj-or-source
14387 func_xform ()
14388 {
14389 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14390 }
14391
14392 # func_arith arithmetic-term...
14393 func_arith ()
14394 {
14395 func_arith_result=`expr "$@"`
14396 }
14397
14398 # func_len string
14399 # STRING may not start with a hyphen.
14400 func_len ()
14401 {
14402 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14403 }
14404
14405 _LT_EOF
14406 esac
14407
14408 case $lt_shell_append in
14409 yes)
14410 cat << \_LT_EOF >> "$cfgfile"
14411
14412 # func_append var value
14413 # Append VALUE to the end of shell variable VAR.
14414 func_append ()
14415 {
14416 eval "$1+=\$2"
14417 }
14418 _LT_EOF
14419 ;;
14420 *)
14421 cat << \_LT_EOF >> "$cfgfile"
14422
14423 # func_append var value
14424 # Append VALUE to the end of shell variable VAR.
14425 func_append ()
14426 {
14427 eval "$1=\$$1\$2"
14428 }
14429
14430 _LT_EOF
14431 ;;
14432 esac
14433
14434
14435 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14436 || (rm -f "$cfgfile"; exit 1)
14437
14438 mv -f "$cfgfile" "$ofile" ||
14439 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14440 chmod +x "$ofile"
14441
14442 ;;
14443
14444 esac
14445 done # for ac_tag
14446
14447
14448 as_fn_exit 0
14449 _ACEOF
14450 ac_clean_files=$ac_clean_files_save
14451
14452 test $ac_write_fail = 0 ||
14453 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14454
14455
14456 # configure is writing to config.log, and then calls config.status.
14457 # config.status does its own redirection, appending to config.log.
14458 # Unfortunately, on DOS this fails, as config.log is still kept open
14459 # by configure, so config.status won't be able to write to it; its
14460 # output is simply discarded. So we exec the FD to /dev/null,
14461 # effectively closing config.log, so it can be properly (re)opened and
14462 # appended to by config.status. When coming back to configure, we
14463 # need to make the FD available again.
14464 if test "$no_create" != yes; then
14465 ac_cs_success=:
14466 ac_config_status_args=
14467 test "$silent" = yes &&
14468 ac_config_status_args="$ac_config_status_args --quiet"
14469 exec 5>/dev/null
14470 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14471 exec 5>>config.log
14472 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14473 # would make configure fail if this is the last instruction.
14474 $ac_cs_success || as_fn_exit $?
14475 fi
14476 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14478 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14479 fi
14480
This page took 0.352385 seconds and 5 git commands to generate.