Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # From configure.ac Revision: 1.4 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for partimage 0.6.9.
5 #
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201 fi
202 fi
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 BASH_ENV=/dev/null
219 ENV=/dev/null
220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 export CONFIG_SHELL
222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
223 fi
224
225 if test x$as_have_required = xno; then :
226 $as_echo "$0: This script requires a shell more modern than all"
227 $as_echo "$0: the shells that I found on your system."
228 if test x${ZSH_VERSION+set} = xset ; then
229 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 else
232 $as_echo "$0: Please tell [email protected] about your system,
233 $0: including any error possibly output before this
234 $0: message. Then install a modern shell, or manually run
235 $0: the script under such a shell if you do have one."
236 fi
237 exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255 { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264 return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
306 q
307 }
308 /^X\(\/\/\)$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\).*/{
313 s//\1/
314 q
315 }
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
332 {
333 eval $1+=\$2
334 }'
335 else
336 as_fn_append ()
337 {
338 eval $1=\$$1\$2
339 }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
349 {
350 as_val=$(( $* ))
351 }'
352 else
353 as_fn_arith ()
354 {
355 as_val=`expr "$@" || test $? -eq 1`
356 }
357 fi # as_fn_arith
358
359
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
366 {
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 fi
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
375
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
387 fi
388
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
393 fi
394
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
402 q
403 }
404 /^X\/\(\/\/\)$/{
405 s//\1/
406 q
407 }
408 /^X\/\(\/\).*/{
409 s//\1/
410 q
411 }
412 s/.*/./; q'`
413
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
428 p
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
434 b
435 :lineno
436 N
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
451 }
452
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
462 *)
463 ECHO_N='-n';;
464 esac
465
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
486 fi
487 else
488 as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
498 fi
499
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
507 fi
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
519 '
520 fi
521 as_executable_p=$as_test_x
522
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
533
534 case X$lt_ECHO in
535 X*--fallback-echo)
536 # Remove one level of quotation (which was required for Make).
537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538 ;;
539 esac
540
541 ECHO=${lt_ECHO-echo}
542 if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
544 shift
545 elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
547 :
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $ECHO works!
550 :
551 else
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
554 fi
555
556 if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
558 shift
559 cat <<_LT_EOF
560 $*
561 _LT_EOF
562 exit 0
563 fi
564
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 # if CDPATH is set.
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
569 if test -z "$lt_ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576 then
577 break
578 fi
579 done
580 fi
581
582 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
585 :
586 else
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
590 #
591 # So, first we look for a working echo in the user's PATH.
592
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
595 IFS="$lt_save_ifs"
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
600 ECHO="$dir/echo"
601 break
602 fi
603 done
604 IFS="$lt_save_ifs"
605
606 if test "X$ECHO" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
612 ECHO='print -r'
613 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
619 export CONFIG_SHELL
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 else
622 # Try using printf.
623 ECHO='printf %s\n'
624 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 # Cool, printf works
628 :
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 export CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
636 export SHELL
637 ECHO="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 else
644 # maybe with a smaller string...
645 prev=:
646
647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649 then
650 break
651 fi
652 prev="$cmd"
653 done
654
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 else
660 # Oops. We lost completely, so just stick with echo.
661 ECHO=echo
662 fi
663 fi
664 fi
665 fi
666 fi
667 fi
668
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
671 lt_ECHO=$ECHO
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674 fi
675
676
677
678
679 test -n "$DJDIR" || exec 7<&0 </dev/null
680 exec 6>&1
681
682 # Name of the host.
683 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
684 # so uname gets run too.
685 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
686
687 #
688 # Initializations.
689 #
690 ac_default_prefix=/usr/local
691 ac_clean_files=
692 ac_config_libobj_dir=.
693 LIBOBJS=
694 cross_compiling=no
695 subdirs=
696 MFLAGS=
697 MAKEFLAGS=
698
699 # Identity of this package.
700 PACKAGE_NAME='partimage'
701 PACKAGE_TARNAME='partimage'
702 PACKAGE_VERSION='0.6.9'
703 PACKAGE_STRING='partimage 0.6.9'
704 PACKAGE_BUGREPORT=''
705 PACKAGE_URL=''
706
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 SYSCONFDIR
748 DEFAULT_DEBUG_LEVEL
749 opensslpath
750 LOGDIR
751 PARTIMAGED_LDFLAGS
752 PARTIMAGE_LDFLAGS
753 CXXCPP
754 am__fastdepCXX_FALSE
755 am__fastdepCXX_TRUE
756 CXXDEPMODE
757 ac_ct_CXX
758 CXXFLAGS
759 CXX
760 CPP
761 OTOOL64
762 OTOOL
763 LIPO
764 NMEDIT
765 DSYMUTIL
766 lt_ECHO
767 RANLIB
768 AR
769 OBJDUMP
770 LN_S
771 NM
772 ac_ct_DUMPBIN
773 DUMPBIN
774 LD
775 FGREP
776 EGREP
777 GREP
778 SED
779 LIBTOOL
780 POSUB
781 LTLIBINTL
782 LIBINTL
783 INTLLIBS
784 LTLIBICONV
785 LIBICONV
786 INTL_MACOSX_LIBS
787 am__fastdepCC_FALSE
788 am__fastdepCC_TRUE
789 CCDEPMODE
790 AMDEPBACKSLASH
791 AMDEP_FALSE
792 AMDEP_TRUE
793 am__quote
794 am__include
795 DEPDIR
796 OBJEXT
797 EXEEXT
798 ac_ct_CC
799 CPPFLAGS
800 LDFLAGS
801 CFLAGS
802 CC
803 MSGMERGE
804 XGETTEXT
805 GMSGFMT
806 MSGFMT
807 USE_NLS
808 MKINSTALLDIRS
809 AM_BACKSLASH
810 AM_DEFAULT_VERBOSITY
811 am__untar
812 am__tar
813 AMTAR
814 am__leading_dot
815 SET_MAKE
816 AWK
817 mkdir_p
818 MKDIR_P
819 INSTALL_STRIP_PROGRAM
820 STRIP
821 install_sh
822 MAKEINFO
823 AUTOHEADER
824 AUTOMAKE
825 AUTOCONF
826 ACLOCAL
827 VERSION
828 PACKAGE
829 CYGPATH_W
830 am__isrc
831 INSTALL_DATA
832 INSTALL_SCRIPT
833 INSTALL_PROGRAM
834 target_os
835 target_vendor
836 target_cpu
837 target
838 host_os
839 host_vendor
840 host_cpu
841 host
842 build_os
843 build_vendor
844 build_cpu
845 build
846 target_alias
847 host_alias
848 build_alias
849 LIBS
850 ECHO_T
851 ECHO_N
852 ECHO_C
853 DEFS
854 mandir
855 localedir
856 libdir
857 psdir
858 pdfdir
859 dvidir
860 htmldir
861 infodir
862 docdir
863 oldincludedir
864 includedir
865 localstatedir
866 sharedstatedir
867 sysconfdir
868 datadir
869 datarootdir
870 libexecdir
871 sbindir
872 bindir
873 program_transform_name
874 prefix
875 exec_prefix
876 PACKAGE_URL
877 PACKAGE_BUGREPORT
878 PACKAGE_STRING
879 PACKAGE_VERSION
880 PACKAGE_TARNAME
881 PACKAGE_NAME
882 PATH_SEPARATOR
883 SHELL'
884 ac_subst_files=''
885 ac_user_opts='
886 enable_option_checking
887 enable_silent_rules
888 enable_nls
889 enable_dependency_tracking
890 with_gnu_ld
891 enable_rpath
892 with_libiconv_prefix
893 with_libintl_prefix
894 enable_shared
895 enable_static
896 with_pic
897 enable_fast_install
898 enable_libtool_lock
899 enable_largefile
900 enable_efence
901 enable_ssl
902 with_ssl_headers
903 with_ssl_lib
904 with_slang_headers
905 enable_devel
906 enable_pam
907 enable_all_static
908 with_log_dir
909 enable_login
910 enable_cheuid
911 with_debug_level
912 '
913 ac_precious_vars='build_alias
914 host_alias
915 target_alias
916 CC
917 CFLAGS
918 LDFLAGS
919 LIBS
920 CPPFLAGS
921 CPP
922 CXX
923 CXXFLAGS
924 CCC
925 CXXCPP'
926
927
928 # Initialize some variables set by options.
929 ac_init_help=
930 ac_init_version=false
931 ac_unrecognized_opts=
932 ac_unrecognized_sep=
933 # The variables have the same names as the options, with
934 # dashes changed to underlines.
935 cache_file=/dev/null
936 exec_prefix=NONE
937 no_create=
938 no_recursion=
939 prefix=NONE
940 program_prefix=NONE
941 program_suffix=NONE
942 program_transform_name=s,x,x,
943 silent=
944 site=
945 srcdir=
946 verbose=
947 x_includes=NONE
948 x_libraries=NONE
949
950 # Installation directory options.
951 # These are left unexpanded so users can "make install exec_prefix=/foo"
952 # and all the variables that are supposed to be based on exec_prefix
953 # by default will actually change.
954 # Use braces instead of parens because sh, perl, etc. also accept them.
955 # (The list follows the same order as the GNU Coding Standards.)
956 bindir='${exec_prefix}/bin'
957 sbindir='${exec_prefix}/sbin'
958 libexecdir='${exec_prefix}/libexec'
959 datarootdir='${prefix}/share'
960 datadir='${datarootdir}'
961 sysconfdir='${prefix}/etc'
962 sharedstatedir='${prefix}/com'
963 localstatedir='${prefix}/var'
964 includedir='${prefix}/include'
965 oldincludedir='/usr/include'
966 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
967 infodir='${datarootdir}/info'
968 htmldir='${docdir}'
969 dvidir='${docdir}'
970 pdfdir='${docdir}'
971 psdir='${docdir}'
972 libdir='${exec_prefix}/lib'
973 localedir='${datarootdir}/locale'
974 mandir='${datarootdir}/man'
975
976 ac_prev=
977 ac_dashdash=
978 for ac_option
979 do
980 # If the previous option needs an argument, assign it.
981 if test -n "$ac_prev"; then
982 eval $ac_prev=\$ac_option
983 ac_prev=
984 continue
985 fi
986
987 case $ac_option in
988 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989 *) ac_optarg=yes ;;
990 esac
991
992 # Accept the important Cygnus configure options, so we can diagnose typos.
993
994 case $ac_dashdash$ac_option in
995 --)
996 ac_dashdash=yes ;;
997
998 -bindir | --bindir | --bindi | --bind | --bin | --bi)
999 ac_prev=bindir ;;
1000 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001 bindir=$ac_optarg ;;
1002
1003 -build | --build | --buil | --bui | --bu)
1004 ac_prev=build_alias ;;
1005 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1006 build_alias=$ac_optarg ;;
1007
1008 -cache-file | --cache-file | --cache-fil | --cache-fi \
1009 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1010 ac_prev=cache_file ;;
1011 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1012 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1013 cache_file=$ac_optarg ;;
1014
1015 --config-cache | -C)
1016 cache_file=config.cache ;;
1017
1018 -datadir | --datadir | --datadi | --datad)
1019 ac_prev=datadir ;;
1020 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1021 datadir=$ac_optarg ;;
1022
1023 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1024 | --dataroo | --dataro | --datar)
1025 ac_prev=datarootdir ;;
1026 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1027 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1028 datarootdir=$ac_optarg ;;
1029
1030 -disable-* | --disable-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error "invalid feature name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1038 *"
1039 "enable_$ac_useropt"
1040 "*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval enable_$ac_useropt=no ;;
1045
1046 -docdir | --docdir | --docdi | --doc | --do)
1047 ac_prev=docdir ;;
1048 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1049 docdir=$ac_optarg ;;
1050
1051 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1052 ac_prev=dvidir ;;
1053 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1054 dvidir=$ac_optarg ;;
1055
1056 -enable-* | --enable-*)
1057 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error "invalid feature name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1064 *"
1065 "enable_$ac_useropt"
1066 "*) ;;
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1069 esac
1070 eval enable_$ac_useropt=\$ac_optarg ;;
1071
1072 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1073 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1074 | --exec | --exe | --ex)
1075 ac_prev=exec_prefix ;;
1076 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1077 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1078 | --exec=* | --exe=* | --ex=*)
1079 exec_prefix=$ac_optarg ;;
1080
1081 -gas | --gas | --ga | --g)
1082 # Obsolete; use --with-gas.
1083 with_gas=yes ;;
1084
1085 -help | --help | --hel | --he | -h)
1086 ac_init_help=long ;;
1087 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1088 ac_init_help=recursive ;;
1089 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1090 ac_init_help=short ;;
1091
1092 -host | --host | --hos | --ho)
1093 ac_prev=host_alias ;;
1094 -host=* | --host=* | --hos=* | --ho=*)
1095 host_alias=$ac_optarg ;;
1096
1097 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1098 ac_prev=htmldir ;;
1099 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1100 | --ht=*)
1101 htmldir=$ac_optarg ;;
1102
1103 -includedir | --includedir | --includedi | --included | --include \
1104 | --includ | --inclu | --incl | --inc)
1105 ac_prev=includedir ;;
1106 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1107 | --includ=* | --inclu=* | --incl=* | --inc=*)
1108 includedir=$ac_optarg ;;
1109
1110 -infodir | --infodir | --infodi | --infod | --info | --inf)
1111 ac_prev=infodir ;;
1112 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1113 infodir=$ac_optarg ;;
1114
1115 -libdir | --libdir | --libdi | --libd)
1116 ac_prev=libdir ;;
1117 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1118 libdir=$ac_optarg ;;
1119
1120 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1121 | --libexe | --libex | --libe)
1122 ac_prev=libexecdir ;;
1123 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1124 | --libexe=* | --libex=* | --libe=*)
1125 libexecdir=$ac_optarg ;;
1126
1127 -localedir | --localedir | --localedi | --localed | --locale)
1128 ac_prev=localedir ;;
1129 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1130 localedir=$ac_optarg ;;
1131
1132 -localstatedir | --localstatedir | --localstatedi | --localstated \
1133 | --localstate | --localstat | --localsta | --localst | --locals)
1134 ac_prev=localstatedir ;;
1135 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1136 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1137 localstatedir=$ac_optarg ;;
1138
1139 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1140 ac_prev=mandir ;;
1141 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1142 mandir=$ac_optarg ;;
1143
1144 -nfp | --nfp | --nf)
1145 # Obsolete; use --without-fp.
1146 with_fp=no ;;
1147
1148 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1149 | --no-cr | --no-c | -n)
1150 no_create=yes ;;
1151
1152 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1153 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1154 no_recursion=yes ;;
1155
1156 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1157 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1158 | --oldin | --oldi | --old | --ol | --o)
1159 ac_prev=oldincludedir ;;
1160 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1161 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1162 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1163 oldincludedir=$ac_optarg ;;
1164
1165 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1166 ac_prev=prefix ;;
1167 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1168 prefix=$ac_optarg ;;
1169
1170 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1171 | --program-pre | --program-pr | --program-p)
1172 ac_prev=program_prefix ;;
1173 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1174 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1175 program_prefix=$ac_optarg ;;
1176
1177 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1178 | --program-suf | --program-su | --program-s)
1179 ac_prev=program_suffix ;;
1180 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1181 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1182 program_suffix=$ac_optarg ;;
1183
1184 -program-transform-name | --program-transform-name \
1185 | --program-transform-nam | --program-transform-na \
1186 | --program-transform-n | --program-transform- \
1187 | --program-transform | --program-transfor \
1188 | --program-transfo | --program-transf \
1189 | --program-trans | --program-tran \
1190 | --progr-tra | --program-tr | --program-t)
1191 ac_prev=program_transform_name ;;
1192 -program-transform-name=* | --program-transform-name=* \
1193 | --program-transform-nam=* | --program-transform-na=* \
1194 | --program-transform-n=* | --program-transform-=* \
1195 | --program-transform=* | --program-transfor=* \
1196 | --program-transfo=* | --program-transf=* \
1197 | --program-trans=* | --program-tran=* \
1198 | --progr-tra=* | --program-tr=* | --program-t=*)
1199 program_transform_name=$ac_optarg ;;
1200
1201 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1202 ac_prev=pdfdir ;;
1203 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1204 pdfdir=$ac_optarg ;;
1205
1206 -psdir | --psdir | --psdi | --psd | --ps)
1207 ac_prev=psdir ;;
1208 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1209 psdir=$ac_optarg ;;
1210
1211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212 | -silent | --silent | --silen | --sile | --sil)
1213 silent=yes ;;
1214
1215 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1216 ac_prev=sbindir ;;
1217 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1218 | --sbi=* | --sb=*)
1219 sbindir=$ac_optarg ;;
1220
1221 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1222 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1223 | --sharedst | --shareds | --shared | --share | --shar \
1224 | --sha | --sh)
1225 ac_prev=sharedstatedir ;;
1226 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1227 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1228 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1229 | --sha=* | --sh=*)
1230 sharedstatedir=$ac_optarg ;;
1231
1232 -site | --site | --sit)
1233 ac_prev=site ;;
1234 -site=* | --site=* | --sit=*)
1235 site=$ac_optarg ;;
1236
1237 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1238 ac_prev=srcdir ;;
1239 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1240 srcdir=$ac_optarg ;;
1241
1242 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1243 | --syscon | --sysco | --sysc | --sys | --sy)
1244 ac_prev=sysconfdir ;;
1245 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1246 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1247 sysconfdir=$ac_optarg ;;
1248
1249 -target | --target | --targe | --targ | --tar | --ta | --t)
1250 ac_prev=target_alias ;;
1251 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1252 target_alias=$ac_optarg ;;
1253
1254 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1255 verbose=yes ;;
1256
1257 -version | --version | --versio | --versi | --vers | -V)
1258 ac_init_version=: ;;
1259
1260 -with-* | --with-*)
1261 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264 as_fn_error "invalid package name: $ac_useropt"
1265 ac_useropt_orig=$ac_useropt
1266 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1268 *"
1269 "with_$ac_useropt"
1270 "*) ;;
1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1272 ac_unrecognized_sep=', ';;
1273 esac
1274 eval with_$ac_useropt=\$ac_optarg ;;
1275
1276 -without-* | --without-*)
1277 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 as_fn_error "invalid package name: $ac_useropt"
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1284 *"
1285 "with_$ac_useropt"
1286 "*) ;;
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1289 esac
1290 eval with_$ac_useropt=no ;;
1291
1292 --x)
1293 # Obsolete; use --with-x.
1294 with_x=yes ;;
1295
1296 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1297 | --x-incl | --x-inc | --x-in | --x-i)
1298 ac_prev=x_includes ;;
1299 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1300 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1301 x_includes=$ac_optarg ;;
1302
1303 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1304 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1305 ac_prev=x_libraries ;;
1306 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1307 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1308 x_libraries=$ac_optarg ;;
1309
1310 -*) as_fn_error "unrecognized option: \`$ac_option'
1311 Try \`$0 --help' for more information."
1312 ;;
1313
1314 *=*)
1315 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1316 # Reject names that are not valid shell variable names.
1317 case $ac_envvar in #(
1318 '' | [0-9]* | *[!_$as_cr_alnum]* )
1319 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1320 esac
1321 eval $ac_envvar=\$ac_optarg
1322 export $ac_envvar ;;
1323
1324 *)
1325 # FIXME: should be removed in autoconf 3.0.
1326 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1327 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1329 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1330 ;;
1331
1332 esac
1333 done
1334
1335 if test -n "$ac_prev"; then
1336 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1337 as_fn_error "missing argument to $ac_option"
1338 fi
1339
1340 if test -n "$ac_unrecognized_opts"; then
1341 case $enable_option_checking in
1342 no) ;;
1343 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1344 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1345 esac
1346 fi
1347
1348 # Check all directory arguments for consistency.
1349 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350 datadir sysconfdir sharedstatedir localstatedir includedir \
1351 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352 libdir localedir mandir
1353 do
1354 eval ac_val=\$$ac_var
1355 # Remove trailing slashes.
1356 case $ac_val in
1357 */ )
1358 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1359 eval $ac_var=\$ac_val;;
1360 esac
1361 # Be sure to have absolute directory names.
1362 case $ac_val in
1363 [\\/$]* | ?:[\\/]* ) continue;;
1364 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365 esac
1366 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1367 done
1368
1369 # There might be people who depend on the old broken behavior: `$host'
1370 # used to hold the argument of --host etc.
1371 # FIXME: To remove some day.
1372 build=$build_alias
1373 host=$host_alias
1374 target=$target_alias
1375
1376 # FIXME: To remove some day.
1377 if test "x$host_alias" != x; then
1378 if test "x$build_alias" = x; then
1379 cross_compiling=maybe
1380 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1381 If a cross compiler is detected then cross compile mode will be used." >&2
1382 elif test "x$build_alias" != "x$host_alias"; then
1383 cross_compiling=yes
1384 fi
1385 fi
1386
1387 ac_tool_prefix=
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1389
1390 test "$silent" = yes && exec 6>/dev/null
1391
1392
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396 as_fn_error "working directory cannot be determined"
1397 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1398 as_fn_error "pwd does not report name of working directory"
1399
1400
1401 # Find the source files, if location was not specified.
1402 if test -z "$srcdir"; then
1403 ac_srcdir_defaulted=yes
1404 # Try the directory containing this script, then the parent directory.
1405 ac_confdir=`$as_dirname -- "$as_myself" ||
1406 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407 X"$as_myself" : 'X\(//\)[^/]' \| \
1408 X"$as_myself" : 'X\(//\)$' \| \
1409 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1410 $as_echo X"$as_myself" |
1411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\/\)[^/].*/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\/\)$/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\).*/{
1424 s//\1/
1425 q
1426 }
1427 s/.*/./; q'`
1428 srcdir=$ac_confdir
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430 srcdir=..
1431 fi
1432 else
1433 ac_srcdir_defaulted=no
1434 fi
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1437 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1438 fi
1439 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440 ac_abs_confdir=`(
1441 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1442 pwd)`
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1445 srcdir=.
1446 fi
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1450 case $srcdir in
1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452 esac
1453 for ac_var in $ac_precious_vars; do
1454 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_env_${ac_var}_value=\$${ac_var}
1456 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458 done
1459
1460 #
1461 # Report the --help message.
1462 #
1463 if test "$ac_init_help" = "long"; then
1464 # Omit some internal or obsolete options to make the list less imposing.
1465 # This message is too long to be a string in the A/UX 3.1 sh.
1466 cat <<_ACEOF
1467 \`configure' configures partimage 0.6.9 to adapt to many kinds of systems.
1468
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1470
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE. See below for descriptions of some of the useful variables.
1473
1474 Defaults for the options are specified in brackets.
1475
1476 Configuration:
1477 -h, --help display this help and exit
1478 --help=short display options specific to this package
1479 --help=recursive display the short help of all the included packages
1480 -V, --version display version information and exit
1481 -q, --quiet, --silent do not print \`checking...' messages
1482 --cache-file=FILE cache test results in FILE [disabled]
1483 -C, --config-cache alias for \`--cache-file=config.cache'
1484 -n, --no-create do not create output files
1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1486
1487 Installation directories:
1488 --prefix=PREFIX install architecture-independent files in PREFIX
1489 [$ac_default_prefix]
1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1491 [PREFIX]
1492
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1497
1498 For better control, use the options below.
1499
1500 Fine tuning of the installation directories:
1501 --bindir=DIR user executables [EPREFIX/bin]
1502 --sbindir=DIR system admin executables [EPREFIX/sbin]
1503 --libexecdir=DIR program executables [EPREFIX/libexec]
1504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1507 --libdir=DIR object code libraries [EPREFIX/lib]
1508 --includedir=DIR C header files [PREFIX/include]
1509 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1512 --infodir=DIR info documentation [DATAROOTDIR/info]
1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1514 --mandir=DIR man documentation [DATAROOTDIR/man]
1515 --docdir=DIR documentation root [DATAROOTDIR/doc/partimage]
1516 --htmldir=DIR html documentation [DOCDIR]
1517 --dvidir=DIR dvi documentation [DOCDIR]
1518 --pdfdir=DIR pdf documentation [DOCDIR]
1519 --psdir=DIR ps documentation [DOCDIR]
1520 _ACEOF
1521
1522 cat <<\_ACEOF
1523
1524 Program names:
1525 --program-prefix=PREFIX prepend PREFIX to installed program names
1526 --program-suffix=SUFFIX append SUFFIX to installed program names
1527 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1528
1529 System types:
1530 --build=BUILD configure for building on BUILD [guessed]
1531 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1532 --target=TARGET configure for building compilers for TARGET [HOST]
1533 _ACEOF
1534 fi
1535
1536 if test -n "$ac_init_help"; then
1537 case $ac_init_help in
1538 short | recursive ) echo "Configuration of partimage 0.6.9:";;
1539 esac
1540 cat <<\_ACEOF
1541
1542 Optional Features:
1543 --disable-option-checking ignore unrecognized --enable/--with options
1544 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1545 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1546 --enable-silent-rules less verbose build output (undo: `make V=1')
1547 --disable-silent-rules verbose build output (undo: `make V=0')
1548 --disable-nls do not use Native Language Support
1549 --disable-dependency-tracking speeds up one-time build
1550 --enable-dependency-tracking do not reject slow dependency extractors
1551 --disable-rpath do not hardcode runtime library paths
1552 --enable-shared[=PKGS] build shared libraries [default=yes]
1553 --enable-static[=PKGS] build static libraries [default=yes]
1554 --enable-fast-install[=PKGS]
1555 optimize for fast installation [default=yes]
1556 --disable-libtool-lock avoid locking (might break parallel builds)
1557 --disable-largefile omit support for large files
1558 --enable-efence Enable linking with libefence Memory Debugger
1559 --disable-ssl Don't compile ssl mode
1560 --enable-devel Enable developpers options (debug, ...)
1561 --enable-pam Enable PAM to authenticate users
1562 --enable-all-static build static binaries
1563 --disable-login Clients needn't to login when connecting partimaged
1564 --disable-cheuid Server doesn't change euid to 'partimag'
1565
1566 Optional Packages:
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1569 --with-gnu-ld assume the C compiler uses GNU ld default=no
1570 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1571 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1572 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1573 --without-libintl-prefix don't search for libintl in includedir and libdir
1574 --with-pic try to use only PIC/non-PIC objects [default=use
1575 both]
1576 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1577 --with-ssl-headers=DIR SSL Include files location
1578 --with-ssl-lib=DIR SSL Library location
1579 --with-slang-headers=DIR SLang Include files location
1580 --with-log-dir=PATH logfiles /var/log
1581 --with-debug-level=X default debut level used to write the debug logfile 1
1582
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1591 CPP C preprocessor
1592 CXX C++ compiler command
1593 CXXFLAGS C++ compiler flags
1594 CXXCPP C++ preprocessor
1595
1596 Use these variables to override the choices made by `configure' or to help
1597 it to find libraries and programs with nonstandard names/locations.
1598
1599 Report bugs to the package provider.
1600 _ACEOF
1601 ac_status=$?
1602 fi
1603
1604 if test "$ac_init_help" = "recursive"; then
1605 # If there are subdirs, report their specific --help.
1606 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1607 test -d "$ac_dir" ||
1608 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1609 continue
1610 ac_builddir=.
1611
1612 case "$ac_dir" in
1613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 *)
1615 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621 esac ;;
1622 esac
1623 ac_abs_top_builddir=$ac_pwd
1624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625 # for backward compatibility:
1626 ac_top_builddir=$ac_top_build_prefix
1627
1628 case $srcdir in
1629 .) # We are building in place.
1630 ac_srcdir=.
1631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
1634 ac_srcdir=$srcdir$ac_dir_suffix;
1635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1637 *) # Relative name.
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641 esac
1642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643
1644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for guested configure.
1646 if test -f "$ac_srcdir/configure.gnu"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649 elif test -f "$ac_srcdir/configure"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure" --help=recursive
1652 else
1653 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654 fi || ac_status=$?
1655 cd "$ac_pwd" || { ac_status=$?; break; }
1656 done
1657 fi
1658
1659 test -n "$ac_init_help" && exit $ac_status
1660 if $ac_init_version; then
1661 cat <<\_ACEOF
1662 partimage configure 0.6.9
1663 generated by GNU Autoconf 2.65
1664
1665 Copyright (C) 2009 Free Software Foundation, Inc.
1666 This configure script is free software; the Free Software Foundation
1667 gives unlimited permission to copy, distribute and modify it.
1668 _ACEOF
1669 exit
1670 fi
1671
1672 ## ------------------------ ##
1673 ## Autoconf initialization. ##
1674 ## ------------------------ ##
1675
1676 # ac_fn_c_try_compile LINENO
1677 # --------------------------
1678 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_compile ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext
1683 if { { ac_try="$ac_compile"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_compile") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest.$ac_objext; then :
1702 ac_retval=0
1703 else
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1
1708 fi
1709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710 as_fn_set_status $ac_retval
1711
1712 } # ac_fn_c_try_compile
1713
1714 # ac_fn_c_try_link LINENO
1715 # -----------------------
1716 # Try to link conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_c_try_link ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext conftest$ac_exeext
1721 if { { ac_try="$ac_link"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest$ac_exeext && {
1740 test "$cross_compiling" = yes ||
1741 $as_test_x conftest$ac_exeext
1742 }; then :
1743 ac_retval=0
1744 else
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=1
1749 fi
1750 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1751 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1752 # interfere with the next link command; also delete a directory that is
1753 # left behind by Apple's compiler. We do this before executing the actions.
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 as_fn_set_status $ac_retval
1757
1758 } # ac_fn_c_try_link
1759
1760 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1761 # -------------------------------------------------------
1762 # Tests whether HEADER exists and can be compiled using the include files in
1763 # INCLUDES, setting the cache variable VAR accordingly.
1764 ac_fn_c_check_header_compile ()
1765 {
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770 $as_echo_n "(cached) " >&6
1771 else
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1774 $4
1775 #include <$2>
1776 _ACEOF
1777 if ac_fn_c_try_compile "$LINENO"; then :
1778 eval "$3=yes"
1779 else
1780 eval "$3=no"
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783 fi
1784 eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788
1789 } # ac_fn_c_check_header_compile
1790
1791 # ac_fn_c_try_cpp LINENO
1792 # ----------------------
1793 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_cpp ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { { ac_try="$ac_cpp conftest.$ac_ext"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1810 fi
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } >/dev/null && {
1813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821 ac_retval=1
1822 fi
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 as_fn_set_status $ac_retval
1825
1826 } # ac_fn_c_try_cpp
1827
1828 # ac_fn_c_try_run LINENO
1829 # ----------------------
1830 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1831 # that executables *can* be run.
1832 ac_fn_c_try_run ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if { { ac_try="$ac_link"
1836 case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_link") 2>&5
1843 ac_status=$?
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1846 { { case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_try") 2>&5
1853 ac_status=$?
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; }; }; then :
1856 ac_retval=0
1857 else
1858 $as_echo "$as_me: program exited with status $ac_status" >&5
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1861
1862 ac_retval=$ac_status
1863 fi
1864 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 as_fn_set_status $ac_retval
1867
1868 } # ac_fn_c_try_run
1869
1870 # ac_fn_c_check_func LINENO FUNC VAR
1871 # ----------------------------------
1872 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1873 ac_fn_c_check_func ()
1874 {
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1879 $as_echo_n "(cached) " >&6
1880 else
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1883 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1885 #define $2 innocuous_$2
1886
1887 /* System header to define __stub macros and hopefully few prototypes,
1888 which can conflict with char $2 (); below.
1889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1890 <limits.h> exists even on freestanding compilers. */
1891
1892 #ifdef __STDC__
1893 # include <limits.h>
1894 #else
1895 # include <assert.h>
1896 #endif
1897
1898 #undef $2
1899
1900 /* Override any GCC internal prototype to avoid an error.
1901 Use char because int might match the return type of a GCC
1902 builtin and then its argument prototype would still apply. */
1903 #ifdef __cplusplus
1904 extern "C"
1905 #endif
1906 char $2 ();
1907 /* The GNU C library defines this for functions which it implements
1908 to always fail with ENOSYS. Some functions are actually named
1909 something starting with __ and the normal name is an alias. */
1910 #if defined __stub_$2 || defined __stub___$2
1911 choke me
1912 #endif
1913
1914 int
1915 main ()
1916 {
1917 return $2 ();
1918 ;
1919 return 0;
1920 }
1921 _ACEOF
1922 if ac_fn_c_try_link "$LINENO"; then :
1923 eval "$3=yes"
1924 else
1925 eval "$3=no"
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext \
1928 conftest$ac_exeext conftest.$ac_ext
1929 fi
1930 eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1934
1935 } # ac_fn_c_check_func
1936
1937 # ac_fn_cxx_try_compile LINENO
1938 # ----------------------------
1939 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1940 ac_fn_cxx_try_compile ()
1941 {
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 rm -f conftest.$ac_objext
1944 if { { ac_try="$ac_compile"
1945 case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_compile") 2>conftest.err
1952 ac_status=$?
1953 if test -s conftest.err; then
1954 grep -v '^ *+' conftest.err >conftest.er1
1955 cat conftest.er1 >&5
1956 mv -f conftest.er1 conftest.err
1957 fi
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && {
1960 test -z "$ac_cxx_werror_flag" ||
1961 test ! -s conftest.err
1962 } && test -s conftest.$ac_objext; then :
1963 ac_retval=0
1964 else
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1967
1968 ac_retval=1
1969 fi
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971 as_fn_set_status $ac_retval
1972
1973 } # ac_fn_cxx_try_compile
1974
1975 # ac_fn_cxx_try_cpp LINENO
1976 # ------------------------
1977 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1978 ac_fn_cxx_try_cpp ()
1979 {
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 if { { ac_try="$ac_cpp conftest.$ac_ext"
1982 case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1989 ac_status=$?
1990 if test -s conftest.err; then
1991 grep -v '^ *+' conftest.err >conftest.er1
1992 cat conftest.er1 >&5
1993 mv -f conftest.er1 conftest.err
1994 fi
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } >/dev/null && {
1997 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1998 test ! -s conftest.err
1999 }; then :
2000 ac_retval=0
2001 else
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2004
2005 ac_retval=1
2006 fi
2007 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2008 as_fn_set_status $ac_retval
2009
2010 } # ac_fn_cxx_try_cpp
2011
2012 # ac_fn_cxx_try_link LINENO
2013 # -------------------------
2014 # Try to link conftest.$ac_ext, and return whether this succeeded.
2015 ac_fn_cxx_try_link ()
2016 {
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 rm -f conftest.$ac_objext conftest$ac_exeext
2019 if { { ac_try="$ac_link"
2020 case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_link") 2>conftest.err
2027 ac_status=$?
2028 if test -s conftest.err; then
2029 grep -v '^ *+' conftest.err >conftest.er1
2030 cat conftest.er1 >&5
2031 mv -f conftest.er1 conftest.err
2032 fi
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && {
2035 test -z "$ac_cxx_werror_flag" ||
2036 test ! -s conftest.err
2037 } && test -s conftest$ac_exeext && {
2038 test "$cross_compiling" = yes ||
2039 $as_test_x conftest$ac_exeext
2040 }; then :
2041 ac_retval=0
2042 else
2043 $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2045
2046 ac_retval=1
2047 fi
2048 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2049 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2050 # interfere with the next link command; also delete a directory that is
2051 # left behind by Apple's compiler. We do this before executing the actions.
2052 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 as_fn_set_status $ac_retval
2055
2056 } # ac_fn_cxx_try_link
2057
2058 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2059 # -------------------------------------------------------
2060 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2061 # the include files in INCLUDES and setting the cache variable VAR
2062 # accordingly.
2063 ac_fn_c_check_header_mongrel ()
2064 {
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068 $as_echo_n "checking for $2... " >&6; }
2069 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2070 $as_echo_n "(cached) " >&6
2071 fi
2072 eval ac_res=\$$3
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 else
2076 # Is the header compilable?
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2078 $as_echo_n "checking $2 usability... " >&6; }
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 $4
2082 #include <$2>
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 ac_header_compiler=yes
2086 else
2087 ac_header_compiler=no
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2091 $as_echo "$ac_header_compiler" >&6; }
2092
2093 # Is the header present?
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2095 $as_echo_n "checking $2 presence... " >&6; }
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2098 #include <$2>
2099 _ACEOF
2100 if ac_fn_c_try_cpp "$LINENO"; then :
2101 ac_header_preproc=yes
2102 else
2103 ac_header_preproc=no
2104 fi
2105 rm -f conftest.err conftest.$ac_ext
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2107 $as_echo "$ac_header_preproc" >&6; }
2108
2109 # So? What about this header?
2110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2111 yes:no: )
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2113 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2115 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2116 ;;
2117 no:yes:* )
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2119 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2121 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2123 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2125 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2127 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2128 ;;
2129 esac
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 $as_echo_n "checking for $2... " >&6; }
2132 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2133 $as_echo_n "(cached) " >&6
2134 else
2135 eval "$3=\$ac_header_compiler"
2136 fi
2137 eval ac_res=\$$3
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139 $as_echo "$ac_res" >&6; }
2140 fi
2141 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2142
2143 } # ac_fn_c_check_header_mongrel
2144
2145 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2146 # -------------------------------------------
2147 # Tests whether TYPE exists after having included INCLUDES, setting cache
2148 # variable VAR accordingly.
2149 ac_fn_c_check_type ()
2150 {
2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2153 $as_echo_n "checking for $2... " >&6; }
2154 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2155 $as_echo_n "(cached) " >&6
2156 else
2157 eval "$3=no"
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2160 $4
2161 int
2162 main ()
2163 {
2164 if (sizeof ($2))
2165 return 0;
2166 ;
2167 return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2173 $4
2174 int
2175 main ()
2176 {
2177 if (sizeof (($2)))
2178 return 0;
2179 ;
2180 return 0;
2181 }
2182 _ACEOF
2183 if ac_fn_c_try_compile "$LINENO"; then :
2184
2185 else
2186 eval "$3=yes"
2187 fi
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 fi
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 fi
2192 eval ac_res=\$$3
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 $as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196
2197 } # ac_fn_c_check_type
2198
2199 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2200 # --------------------------------------------
2201 # Tries to find the compile-time value of EXPR in a program that includes
2202 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2203 # computed
2204 ac_fn_c_compute_int ()
2205 {
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 if test "$cross_compiling" = yes; then
2208 # Depending upon the size, compute the lo and hi bounds.
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2211 $4
2212 int
2213 main ()
2214 {
2215 static int test_array [1 - 2 * !(($2) >= 0)];
2216 test_array [0] = 0
2217
2218 ;
2219 return 0;
2220 }
2221 _ACEOF
2222 if ac_fn_c_try_compile "$LINENO"; then :
2223 ac_lo=0 ac_mid=0
2224 while :; do
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2227 $4
2228 int
2229 main ()
2230 {
2231 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2232 test_array [0] = 0
2233
2234 ;
2235 return 0;
2236 }
2237 _ACEOF
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239 ac_hi=$ac_mid; break
2240 else
2241 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2242 if test $ac_lo -le $ac_mid; then
2243 ac_lo= ac_hi=
2244 break
2245 fi
2246 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2247 fi
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 done
2250 else
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2253 $4
2254 int
2255 main ()
2256 {
2257 static int test_array [1 - 2 * !(($2) < 0)];
2258 test_array [0] = 0
2259
2260 ;
2261 return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265 ac_hi=-1 ac_mid=-1
2266 while :; do
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2269 $4
2270 int
2271 main ()
2272 {
2273 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2274 test_array [0] = 0
2275
2276 ;
2277 return 0;
2278 }
2279 _ACEOF
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281 ac_lo=$ac_mid; break
2282 else
2283 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2284 if test $ac_mid -le $ac_hi; then
2285 ac_lo= ac_hi=
2286 break
2287 fi
2288 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2289 fi
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 done
2292 else
2293 ac_lo= ac_hi=
2294 fi
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 fi
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 # Binary search between lo and hi bounds.
2299 while test "x$ac_lo" != "x$ac_hi"; do
2300 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2303 $4
2304 int
2305 main ()
2306 {
2307 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2308 test_array [0] = 0
2309
2310 ;
2311 return 0;
2312 }
2313 _ACEOF
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315 ac_hi=$ac_mid
2316 else
2317 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2318 fi
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320 done
2321 case $ac_lo in #((
2322 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2323 '') ac_retval=1 ;;
2324 esac
2325 else
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2328 $4
2329 static long int longval () { return $2; }
2330 static unsigned long int ulongval () { return $2; }
2331 #include <stdio.h>
2332 #include <stdlib.h>
2333 int
2334 main ()
2335 {
2336
2337 FILE *f = fopen ("conftest.val", "w");
2338 if (! f)
2339 return 1;
2340 if (($2) < 0)
2341 {
2342 long int i = longval ();
2343 if (i != ($2))
2344 return 1;
2345 fprintf (f, "%ld", i);
2346 }
2347 else
2348 {
2349 unsigned long int i = ulongval ();
2350 if (i != ($2))
2351 return 1;
2352 fprintf (f, "%lu", i);
2353 }
2354 /* Do not output a trailing newline, as this causes \r\n confusion
2355 on some platforms. */
2356 return ferror (f) || fclose (f) != 0;
2357
2358 ;
2359 return 0;
2360 }
2361 _ACEOF
2362 if ac_fn_c_try_run "$LINENO"; then :
2363 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2364 else
2365 ac_retval=1
2366 fi
2367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2368 conftest.$ac_objext conftest.beam conftest.$ac_ext
2369 rm -f conftest.val
2370
2371 fi
2372 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373 as_fn_set_status $ac_retval
2374
2375 } # ac_fn_c_compute_int
2376 cat >config.log <<_ACEOF
2377 This file contains any messages produced by compilers while
2378 running configure, to aid debugging if configure makes a mistake.
2379
2380 It was created by partimage $as_me 0.6.9, which was
2381 generated by GNU Autoconf 2.65. Invocation command line was
2382
2383 $ $0 $@
2384
2385 _ACEOF
2386 exec 5>>config.log
2387 {
2388 cat <<_ASUNAME
2389 ## --------- ##
2390 ## Platform. ##
2391 ## --------- ##
2392
2393 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2394 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2395 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2396 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2397 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2398
2399 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2400 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2401
2402 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2403 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2404 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2405 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2406 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2407 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2408 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2409
2410 _ASUNAME
2411
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2414 do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 $as_echo "PATH: $as_dir"
2418 done
2419 IFS=$as_save_IFS
2420
2421 } >&5
2422
2423 cat >&5 <<_ACEOF
2424
2425
2426 ## ----------- ##
2427 ## Core tests. ##
2428 ## ----------- ##
2429
2430 _ACEOF
2431
2432
2433 # Keep a trace of the command line.
2434 # Strip out --no-create and --no-recursion so they do not pile up.
2435 # Strip out --silent because we don't want to record it for future runs.
2436 # Also quote any args containing shell meta-characters.
2437 # Make two passes to allow for proper duplicate-argument suppression.
2438 ac_configure_args=
2439 ac_configure_args0=
2440 ac_configure_args1=
2441 ac_must_keep_next=false
2442 for ac_pass in 1 2
2443 do
2444 for ac_arg
2445 do
2446 case $ac_arg in
2447 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2449 | -silent | --silent | --silen | --sile | --sil)
2450 continue ;;
2451 *\'*)
2452 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2453 esac
2454 case $ac_pass in
2455 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2456 2)
2457 as_fn_append ac_configure_args1 " '$ac_arg'"
2458 if test $ac_must_keep_next = true; then
2459 ac_must_keep_next=false # Got value, back to normal.
2460 else
2461 case $ac_arg in
2462 *=* | --config-cache | -C | -disable-* | --disable-* \
2463 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2464 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2465 | -with-* | --with-* | -without-* | --without-* | --x)
2466 case "$ac_configure_args0 " in
2467 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2468 esac
2469 ;;
2470 -* ) ac_must_keep_next=true ;;
2471 esac
2472 fi
2473 as_fn_append ac_configure_args " '$ac_arg'"
2474 ;;
2475 esac
2476 done
2477 done
2478 { ac_configure_args0=; unset ac_configure_args0;}
2479 { ac_configure_args1=; unset ac_configure_args1;}
2480
2481 # When interrupted or exit'd, cleanup temporary files, and complete
2482 # config.log. We remove comments because anyway the quotes in there
2483 # would cause problems or look ugly.
2484 # WARNING: Use '\'' to represent an apostrophe within the trap.
2485 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2486 trap 'exit_status=$?
2487 # Save into config.log some information that might help in debugging.
2488 {
2489 echo
2490
2491 cat <<\_ASBOX
2492 ## ---------------- ##
2493 ## Cache variables. ##
2494 ## ---------------- ##
2495 _ASBOX
2496 echo
2497 # The following way of writing the cache mishandles newlines in values,
2498 (
2499 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2500 eval ac_val=\$$ac_var
2501 case $ac_val in #(
2502 *${as_nl}*)
2503 case $ac_var in #(
2504 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2505 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2506 esac
2507 case $ac_var in #(
2508 _ | IFS | as_nl) ;; #(
2509 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2510 *) { eval $ac_var=; unset $ac_var;} ;;
2511 esac ;;
2512 esac
2513 done
2514 (set) 2>&1 |
2515 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2516 *${as_nl}ac_space=\ *)
2517 sed -n \
2518 "s/'\''/'\''\\\\'\'''\''/g;
2519 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2520 ;; #(
2521 *)
2522 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2523 ;;
2524 esac |
2525 sort
2526 )
2527 echo
2528
2529 cat <<\_ASBOX
2530 ## ----------------- ##
2531 ## Output variables. ##
2532 ## ----------------- ##
2533 _ASBOX
2534 echo
2535 for ac_var in $ac_subst_vars
2536 do
2537 eval ac_val=\$$ac_var
2538 case $ac_val in
2539 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2540 esac
2541 $as_echo "$ac_var='\''$ac_val'\''"
2542 done | sort
2543 echo
2544
2545 if test -n "$ac_subst_files"; then
2546 cat <<\_ASBOX
2547 ## ------------------- ##
2548 ## File substitutions. ##
2549 ## ------------------- ##
2550 _ASBOX
2551 echo
2552 for ac_var in $ac_subst_files
2553 do
2554 eval ac_val=\$$ac_var
2555 case $ac_val in
2556 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2557 esac
2558 $as_echo "$ac_var='\''$ac_val'\''"
2559 done | sort
2560 echo
2561 fi
2562
2563 if test -s confdefs.h; then
2564 cat <<\_ASBOX
2565 ## ----------- ##
2566 ## confdefs.h. ##
2567 ## ----------- ##
2568 _ASBOX
2569 echo
2570 cat confdefs.h
2571 echo
2572 fi
2573 test "$ac_signal" != 0 &&
2574 $as_echo "$as_me: caught signal $ac_signal"
2575 $as_echo "$as_me: exit $exit_status"
2576 } >&5
2577 rm -f core *.core core.conftest.* &&
2578 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2579 exit $exit_status
2580 ' 0
2581 for ac_signal in 1 2 13 15; do
2582 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2583 done
2584 ac_signal=0
2585
2586 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2587 rm -f -r conftest* confdefs.h
2588
2589 $as_echo "/* confdefs.h */" > confdefs.h
2590
2591 # Predefined preprocessor variables.
2592
2593 cat >>confdefs.h <<_ACEOF
2594 #define PACKAGE_NAME "$PACKAGE_NAME"
2595 _ACEOF
2596
2597 cat >>confdefs.h <<_ACEOF
2598 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2599 _ACEOF
2600
2601 cat >>confdefs.h <<_ACEOF
2602 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2603 _ACEOF
2604
2605 cat >>confdefs.h <<_ACEOF
2606 #define PACKAGE_STRING "$PACKAGE_STRING"
2607 _ACEOF
2608
2609 cat >>confdefs.h <<_ACEOF
2610 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2611 _ACEOF
2612
2613 cat >>confdefs.h <<_ACEOF
2614 #define PACKAGE_URL "$PACKAGE_URL"
2615 _ACEOF
2616
2617
2618 # Let the site file select an alternate cache file if it wants to.
2619 # Prefer an explicitly selected file to automatically selected ones.
2620 ac_site_file1=NONE
2621 ac_site_file2=NONE
2622 if test -n "$CONFIG_SITE"; then
2623 ac_site_file1=$CONFIG_SITE
2624 elif test "x$prefix" != xNONE; then
2625 ac_site_file1=$prefix/share/config.site
2626 ac_site_file2=$prefix/etc/config.site
2627 else
2628 ac_site_file1=$ac_default_prefix/share/config.site
2629 ac_site_file2=$ac_default_prefix/etc/config.site
2630 fi
2631 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2632 do
2633 test "x$ac_site_file" = xNONE && continue
2634 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2636 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2637 sed 's/^/| /' "$ac_site_file" >&5
2638 . "$ac_site_file"
2639 fi
2640 done
2641
2642 if test -r "$cache_file"; then
2643 # Some versions of bash will fail to source /dev/null (special files
2644 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2645 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2647 $as_echo "$as_me: loading cache $cache_file" >&6;}
2648 case $cache_file in
2649 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2650 *) . "./$cache_file";;
2651 esac
2652 fi
2653 else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2655 $as_echo "$as_me: creating cache $cache_file" >&6;}
2656 >$cache_file
2657 fi
2658
2659 # Check that the precious variables saved in the cache have kept the same
2660 # value.
2661 ac_cache_corrupted=false
2662 for ac_var in $ac_precious_vars; do
2663 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2664 eval ac_new_set=\$ac_env_${ac_var}_set
2665 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2666 eval ac_new_val=\$ac_env_${ac_var}_value
2667 case $ac_old_set,$ac_new_set in
2668 set,)
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2670 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2671 ac_cache_corrupted=: ;;
2672 ,set)
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2674 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2675 ac_cache_corrupted=: ;;
2676 ,);;
2677 *)
2678 if test "x$ac_old_val" != "x$ac_new_val"; then
2679 # differences in whitespace do not lead to failure.
2680 ac_old_val_w=`echo x $ac_old_val`
2681 ac_new_val_w=`echo x $ac_new_val`
2682 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2684 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2685 ac_cache_corrupted=:
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2688 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2689 eval $ac_var=\$ac_old_val
2690 fi
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2692 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2694 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2695 fi;;
2696 esac
2697 # Pass precious variables to config.status.
2698 if test "$ac_new_set" = set; then
2699 case $ac_new_val in
2700 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2701 *) ac_arg=$ac_var=$ac_new_val ;;
2702 esac
2703 case " $ac_configure_args " in
2704 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2705 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2706 esac
2707 fi
2708 done
2709 if $ac_cache_corrupted; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2713 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2714 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2715 fi
2716 ## -------------------- ##
2717 ## Main body of script. ##
2718 ## -------------------- ##
2719
2720 ac_ext=c
2721 ac_cpp='$CPP $CPPFLAGS'
2722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725
2726
2727
2728 $as_echo "#define PACKAGE_NETPROTOVER \"PiMgNet001\"" >>confdefs.h
2729
2730
2731 ac_aux_dir=
2732 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2733 for ac_t in install-sh install.sh shtool; do
2734 if test -f "$ac_dir/$ac_t"; then
2735 ac_aux_dir=$ac_dir
2736 ac_install_sh="$ac_aux_dir/$ac_t -c"
2737 break 2
2738 fi
2739 done
2740 done
2741 if test -z "$ac_aux_dir"; then
2742 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2743 fi
2744
2745 # These three variables are undocumented and unsupported,
2746 # and are intended to be withdrawn in a future Autoconf release.
2747 # They can cause serious problems if a builder's source tree is in a directory
2748 # whose full name contains unusual characters.
2749 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2750 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2751 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2752
2753
2754 # Make sure we can run config.sub.
2755 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2756 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2757
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2759 $as_echo_n "checking build system type... " >&6; }
2760 if test "${ac_cv_build+set}" = set; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 ac_build_alias=$build_alias
2764 test "x$ac_build_alias" = x &&
2765 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2766 test "x$ac_build_alias" = x &&
2767 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2768 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2769 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2770
2771 fi
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2773 $as_echo "$ac_cv_build" >&6; }
2774 case $ac_cv_build in
2775 *-*-*) ;;
2776 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2777 esac
2778 build=$ac_cv_build
2779 ac_save_IFS=$IFS; IFS='-'
2780 set x $ac_cv_build
2781 shift
2782 build_cpu=$1
2783 build_vendor=$2
2784 shift; shift
2785 # Remember, the first character of IFS is used to create $*,
2786 # except with old shells:
2787 build_os=$*
2788 IFS=$ac_save_IFS
2789 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2790
2791
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2793 $as_echo_n "checking host system type... " >&6; }
2794 if test "${ac_cv_host+set}" = set; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test "x$host_alias" = x; then
2798 ac_cv_host=$ac_cv_build
2799 else
2800 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2801 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2802 fi
2803
2804 fi
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2806 $as_echo "$ac_cv_host" >&6; }
2807 case $ac_cv_host in
2808 *-*-*) ;;
2809 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2810 esac
2811 host=$ac_cv_host
2812 ac_save_IFS=$IFS; IFS='-'
2813 set x $ac_cv_host
2814 shift
2815 host_cpu=$1
2816 host_vendor=$2
2817 shift; shift
2818 # Remember, the first character of IFS is used to create $*,
2819 # except with old shells:
2820 host_os=$*
2821 IFS=$ac_save_IFS
2822 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2823
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2826 $as_echo_n "checking target system type... " >&6; }
2827 if test "${ac_cv_target+set}" = set; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 if test "x$target_alias" = x; then
2831 ac_cv_target=$ac_cv_host
2832 else
2833 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2834 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2835 fi
2836
2837 fi
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2839 $as_echo "$ac_cv_target" >&6; }
2840 case $ac_cv_target in
2841 *-*-*) ;;
2842 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2843 esac
2844 target=$ac_cv_target
2845 ac_save_IFS=$IFS; IFS='-'
2846 set x $ac_cv_target
2847 shift
2848 target_cpu=$1
2849 target_vendor=$2
2850 shift; shift
2851 # Remember, the first character of IFS is used to create $*,
2852 # except with old shells:
2853 target_os=$*
2854 IFS=$ac_save_IFS
2855 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2856
2857
2858 # The aliases save the names the user supplied, while $host etc.
2859 # will get canonicalized.
2860 test -n "$target_alias" &&
2861 test "$program_prefix$program_suffix$program_transform_name" = \
2862 NONENONEs,x,x, &&
2863 program_prefix=${target_alias}-
2864
2865
2866 am__api_version='1.11'
2867
2868 # Find a good install program. We prefer a C program (faster),
2869 # so one script is as good as another. But avoid the broken or
2870 # incompatible versions:
2871 # SysV /etc/install, /usr/sbin/install
2872 # SunOS /usr/etc/install
2873 # IRIX /sbin/install
2874 # AIX /bin/install
2875 # AmigaOS /C/install, which installs bootblocks on floppy discs
2876 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2877 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2878 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2879 # OS/2's system install, which has a completely different semantic
2880 # ./install, which can be erroneously created by make from ./install.sh.
2881 # Reject install programs that cannot install multiple files.
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2883 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2884 if test -z "$INSTALL"; then
2885 if test "${ac_cv_path_install+set}" = set; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 # Account for people who put trailing slashes in PATH elements.
2894 case $as_dir/ in #((
2895 ./ | .// | /[cC]/* | \
2896 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2897 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2898 /usr/ucb/* ) ;;
2899 *)
2900 # OSF1 and SCO ODT 3.0 have their own names for install.
2901 # Don't use installbsd from OSF since it installs stuff as root
2902 # by default.
2903 for ac_prog in ginstall scoinst install; do
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2906 if test $ac_prog = install &&
2907 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2908 # AIX install. It has an incompatible calling convention.
2909 :
2910 elif test $ac_prog = install &&
2911 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2912 # program-specific install script used by HP pwplus--don't use.
2913 :
2914 else
2915 rm -rf conftest.one conftest.two conftest.dir
2916 echo one > conftest.one
2917 echo two > conftest.two
2918 mkdir conftest.dir
2919 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2920 test -s conftest.one && test -s conftest.two &&
2921 test -s conftest.dir/conftest.one &&
2922 test -s conftest.dir/conftest.two
2923 then
2924 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2925 break 3
2926 fi
2927 fi
2928 fi
2929 done
2930 done
2931 ;;
2932 esac
2933
2934 done
2935 IFS=$as_save_IFS
2936
2937 rm -rf conftest.one conftest.two conftest.dir
2938
2939 fi
2940 if test "${ac_cv_path_install+set}" = set; then
2941 INSTALL=$ac_cv_path_install
2942 else
2943 # As a last resort, use the slow shell script. Don't cache a
2944 # value for INSTALL within a source directory, because that will
2945 # break other packages using the cache if that directory is
2946 # removed, or if the value is a relative name.
2947 INSTALL=$ac_install_sh
2948 fi
2949 fi
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2951 $as_echo "$INSTALL" >&6; }
2952
2953 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2954 # It thinks the first close brace ends the variable substitution.
2955 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2956
2957 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2958
2959 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2960
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2962 $as_echo_n "checking whether build environment is sane... " >&6; }
2963 # Just in case
2964 sleep 1
2965 echo timestamp > conftest.file
2966 # Reject unsafe characters in $srcdir or the absolute working directory
2967 # name. Accept space and tab only in the latter.
2968 am_lf='
2969 '
2970 case `pwd` in
2971 *[\\\"\#\$\&\'\`$am_lf]*)
2972 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2973 esac
2974 case $srcdir in
2975 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2976 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2977 esac
2978
2979 # Do `set' in a subshell so we don't clobber the current shell's
2980 # arguments. Must try -L first in case configure is actually a
2981 # symlink; some systems play weird games with the mod time of symlinks
2982 # (eg FreeBSD returns the mod time of the symlink's containing
2983 # directory).
2984 if (
2985 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2986 if test "$*" = "X"; then
2987 # -L didn't work.
2988 set X `ls -t "$srcdir/configure" conftest.file`
2989 fi
2990 rm -f conftest.file
2991 if test "$*" != "X $srcdir/configure conftest.file" \
2992 && test "$*" != "X conftest.file $srcdir/configure"; then
2993
2994 # If neither matched, then we have a broken ls. This can happen
2995 # if, for instance, CONFIG_SHELL is bash and it inherits a
2996 # broken ls alias from the environment. This has actually
2997 # happened. Such a system could not be considered "sane".
2998 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2999 alias in your environment" "$LINENO" 5
3000 fi
3001
3002 test "$2" = conftest.file
3003 )
3004 then
3005 # Ok.
3006 :
3007 else
3008 as_fn_error "newly created file is older than distributed files!
3009 Check your system clock" "$LINENO" 5
3010 fi
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3012 $as_echo "yes" >&6; }
3013 test "$program_prefix" != NONE &&
3014 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3015 # Use a double $ so make ignores it.
3016 test "$program_suffix" != NONE &&
3017 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3018 # Double any \ or $.
3019 # By default was `s,x,x', remove it if useless.
3020 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3021 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3022
3023 # expand $ac_aux_dir to an absolute path
3024 am_aux_dir=`cd $ac_aux_dir && pwd`
3025
3026 if test x"${MISSING+set}" != xset; then
3027 case $am_aux_dir in
3028 *\ * | *\ *)
3029 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3030 *)
3031 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3032 esac
3033 fi
3034 # Use eval to expand $SHELL
3035 if eval "$MISSING --run true"; then
3036 am_missing_run="$MISSING --run "
3037 else
3038 am_missing_run=
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3040 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3041 fi
3042
3043 if test x"${install_sh}" != xset; then
3044 case $am_aux_dir in
3045 *\ * | *\ *)
3046 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3047 *)
3048 install_sh="\${SHELL} $am_aux_dir/install-sh"
3049 esac
3050 fi
3051
3052 # Installed binaries are usually stripped using `strip' when the user
3053 # run `make install-strip'. However `strip' might not be the right
3054 # tool to use in cross-compilation environments, therefore Automake
3055 # will honor the `STRIP' environment variable to overrule this program.
3056 if test "$cross_compiling" != no; then
3057 if test -n "$ac_tool_prefix"; then
3058 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3059 set dummy ${ac_tool_prefix}strip; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if test "${ac_cv_prog_STRIP+set}" = set; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 if test -n "$STRIP"; then
3066 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3078 fi
3079 done
3080 done
3081 IFS=$as_save_IFS
3082
3083 fi
3084 fi
3085 STRIP=$ac_cv_prog_STRIP
3086 if test -n "$STRIP"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3088 $as_echo "$STRIP" >&6; }
3089 else
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3092 fi
3093
3094
3095 fi
3096 if test -z "$ac_cv_prog_STRIP"; then
3097 ac_ct_STRIP=$STRIP
3098 # Extract the first word of "strip", so it can be a program name with args.
3099 set dummy strip; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3103 $as_echo_n "(cached) " >&6
3104 else
3105 if test -n "$ac_ct_STRIP"; then
3106 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115 ac_cv_prog_ac_ct_STRIP="strip"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119 done
3120 done
3121 IFS=$as_save_IFS
3122
3123 fi
3124 fi
3125 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3126 if test -n "$ac_ct_STRIP"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3128 $as_echo "$ac_ct_STRIP" >&6; }
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3132 fi
3133
3134 if test "x$ac_ct_STRIP" = x; then
3135 STRIP=":"
3136 else
3137 case $cross_compiling:$ac_tool_warned in
3138 yes:)
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3141 ac_tool_warned=yes ;;
3142 esac
3143 STRIP=$ac_ct_STRIP
3144 fi
3145 else
3146 STRIP="$ac_cv_prog_STRIP"
3147 fi
3148
3149 fi
3150 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3151
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3153 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3154 if test -z "$MKDIR_P"; then
3155 if test "${ac_cv_path_mkdir+set}" = set; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3160 do
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_prog in mkdir gmkdir; do
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3166 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3167 'mkdir (GNU coreutils) '* | \
3168 'mkdir (coreutils) '* | \
3169 'mkdir (fileutils) '4.1*)
3170 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3171 break 3;;
3172 esac
3173 done
3174 done
3175 done
3176 IFS=$as_save_IFS
3177
3178 fi
3179
3180 test -d ./--version && rmdir ./--version
3181 if test "${ac_cv_path_mkdir+set}" = set; then
3182 MKDIR_P="$ac_cv_path_mkdir -p"
3183 else
3184 # As a last resort, use the slow shell script. Don't cache a
3185 # value for MKDIR_P within a source directory, because that will
3186 # break other packages using the cache if that directory is
3187 # removed, or if the value is a relative name.
3188 MKDIR_P="$ac_install_sh -d"
3189 fi
3190 fi
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3192 $as_echo "$MKDIR_P" >&6; }
3193
3194 mkdir_p="$MKDIR_P"
3195 case $mkdir_p in
3196 [\\/$]* | ?:[\\/]*) ;;
3197 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3198 esac
3199
3200 for ac_prog in gawk mawk nawk awk
3201 do
3202 # Extract the first word of "$ac_prog", so it can be a program name with args.
3203 set dummy $ac_prog; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if test "${ac_cv_prog_AWK+set}" = set; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 if test -n "$AWK"; then
3210 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3219 ac_cv_prog_AWK="$ac_prog"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223 done
3224 done
3225 IFS=$as_save_IFS
3226
3227 fi
3228 fi
3229 AWK=$ac_cv_prog_AWK
3230 if test -n "$AWK"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3232 $as_echo "$AWK" >&6; }
3233 else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 fi
3237
3238
3239 test -n "$AWK" && break
3240 done
3241
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3243 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3244 set x ${MAKE-make}
3245 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3246 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 cat >conftest.make <<\_ACEOF
3250 SHELL = /bin/sh
3251 all:
3252 @echo '@@@%%%=$(MAKE)=@@@%%%'
3253 _ACEOF
3254 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3255 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3256 *@@@%%%=?*=@@@%%%*)
3257 eval ac_cv_prog_make_${ac_make}_set=yes;;
3258 *)
3259 eval ac_cv_prog_make_${ac_make}_set=no;;
3260 esac
3261 rm -f conftest.make
3262 fi
3263 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265 $as_echo "yes" >&6; }
3266 SET_MAKE=
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 SET_MAKE="MAKE=${MAKE-make}"
3271 fi
3272
3273 rm -rf .tst 2>/dev/null
3274 mkdir .tst 2>/dev/null
3275 if test -d .tst; then
3276 am__leading_dot=.
3277 else
3278 am__leading_dot=_
3279 fi
3280 rmdir .tst 2>/dev/null
3281
3282 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3283 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3284 # is not polluted with repeated "-I."
3285 am__isrc=' -I$(srcdir)'
3286 # test to see if srcdir already configured
3287 if test -f $srcdir/config.status; then
3288 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3289 fi
3290 fi
3291
3292 # test whether we have cygpath
3293 if test -z "$CYGPATH_W"; then
3294 if (cygpath --version) >/dev/null 2>/dev/null; then
3295 CYGPATH_W='cygpath -w'
3296 else
3297 CYGPATH_W=echo
3298 fi
3299 fi
3300
3301
3302 # Define the identity of the package.
3303 PACKAGE='partimage'
3304 VERSION='0.6.9'
3305
3306
3307 cat >>confdefs.h <<_ACEOF
3308 #define PACKAGE "$PACKAGE"
3309 _ACEOF
3310
3311
3312 cat >>confdefs.h <<_ACEOF
3313 #define VERSION "$VERSION"
3314 _ACEOF
3315
3316 # Some tools Automake needs.
3317
3318 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3319
3320
3321 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3322
3323
3324 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3325
3326
3327 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3328
3329
3330 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3331
3332 # We need awk for the "check" target. The system "awk" is bad on
3333 # some platforms.
3334 # Always define AMTAR for backward compatibility.
3335
3336 AMTAR=${AMTAR-"${am_missing_run}tar"}
3337
3338 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3339
3340
3341
3342
3343
3344 # Check whether --enable-silent-rules was given.
3345 if test "${enable_silent_rules+set}" = set; then :
3346 enableval=$enable_silent_rules;
3347 fi
3348
3349 case $enable_silent_rules in
3350 yes) AM_DEFAULT_VERBOSITY=0;;
3351 no) AM_DEFAULT_VERBOSITY=1;;
3352 *) AM_DEFAULT_VERBOSITY=0;;
3353 esac
3354 AM_BACKSLASH='\'
3355
3356 ac_config_headers="$ac_config_headers config.h"
3357
3358
3359
3360 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3361
3362
3363 # Translations system
3364
3365
3366
3367 MKINSTALLDIRS=
3368 if test -n "$ac_aux_dir"; then
3369 case "$ac_aux_dir" in
3370 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3371 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3372 esac
3373 fi
3374 if test -z "$MKINSTALLDIRS"; then
3375 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3376 fi
3377
3378
3379
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3381 $as_echo_n "checking whether NLS is requested... " >&6; }
3382 # Check whether --enable-nls was given.
3383 if test "${enable_nls+set}" = set; then :
3384 enableval=$enable_nls; USE_NLS=$enableval
3385 else
3386 USE_NLS=yes
3387 fi
3388
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3390 $as_echo "$USE_NLS" >&6; }
3391
3392
3393
3394
3395
3396
3397 # Prepare PATH_SEPARATOR.
3398 # The user is always right.
3399 if test "${PATH_SEPARATOR+set}" != set; then
3400 echo "#! /bin/sh" >conf$$.sh
3401 echo "exit 0" >>conf$$.sh
3402 chmod +x conf$$.sh
3403 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3404 PATH_SEPARATOR=';'
3405 else
3406 PATH_SEPARATOR=:
3407 fi
3408 rm -f conf$$.sh
3409 fi
3410
3411 # Find out how to test for executable files. Don't use a zero-byte file,
3412 # as systems may use methods other than mode bits to determine executability.
3413 cat >conf$$.file <<_ASEOF
3414 #! /bin/sh
3415 exit 0
3416 _ASEOF
3417 chmod +x conf$$.file
3418 if test -x conf$$.file >/dev/null 2>&1; then
3419 ac_executable_p="test -x"
3420 else
3421 ac_executable_p="test -f"
3422 fi
3423 rm -f conf$$.file
3424
3425 # Extract the first word of "msgfmt", so it can be a program name with args.
3426 set dummy msgfmt; ac_word=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if test "${ac_cv_path_MSGFMT+set}" = set; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 case "$MSGFMT" in
3433 [\\/]* | ?:[\\/]*)
3434 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3435 ;;
3436 *)
3437 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3438 for ac_dir in $PATH; do
3439 IFS="$ac_save_IFS"
3440 test -z "$ac_dir" && ac_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3443 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3444 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
3445 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3446 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3447 break 2
3448 fi
3449 fi
3450 done
3451 done
3452 IFS="$ac_save_IFS"
3453 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3454 ;;
3455 esac
3456 fi
3457 MSGFMT="$ac_cv_path_MSGFMT"
3458 if test "$MSGFMT" != ":"; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3460 $as_echo "$MSGFMT" >&6; }
3461 else
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3464 fi
3465
3466 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3467 set dummy gmsgfmt; ac_word=$2
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 $as_echo_n "checking for $ac_word... " >&6; }
3470 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 case $GMSGFMT in
3474 [\\/]* | ?:[\\/]*)
3475 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3476 ;;
3477 *)
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 break 2
3488 fi
3489 done
3490 done
3491 IFS=$as_save_IFS
3492
3493 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3494 ;;
3495 esac
3496 fi
3497 GMSGFMT=$ac_cv_path_GMSGFMT
3498 if test -n "$GMSGFMT"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3500 $as_echo "$GMSGFMT" >&6; }
3501 else
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 fi
3505
3506
3507
3508
3509 # Prepare PATH_SEPARATOR.
3510 # The user is always right.
3511 if test "${PATH_SEPARATOR+set}" != set; then
3512 echo "#! /bin/sh" >conf$$.sh
3513 echo "exit 0" >>conf$$.sh
3514 chmod +x conf$$.sh
3515 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3516 PATH_SEPARATOR=';'
3517 else
3518 PATH_SEPARATOR=:
3519 fi
3520 rm -f conf$$.sh
3521 fi
3522
3523 # Find out how to test for executable files. Don't use a zero-byte file,
3524 # as systems may use methods other than mode bits to determine executability.
3525 cat >conf$$.file <<_ASEOF
3526 #! /bin/sh
3527 exit 0
3528 _ASEOF
3529 chmod +x conf$$.file
3530 if test -x conf$$.file >/dev/null 2>&1; then
3531 ac_executable_p="test -x"
3532 else
3533 ac_executable_p="test -f"
3534 fi
3535 rm -f conf$$.file
3536
3537 # Extract the first word of "xgettext", so it can be a program name with args.
3538 set dummy xgettext; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 case "$XGETTEXT" in
3545 [\\/]* | ?:[\\/]*)
3546 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3547 ;;
3548 *)
3549 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3550 for ac_dir in $PATH; do
3551 IFS="$ac_save_IFS"
3552 test -z "$ac_dir" && ac_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3555 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3556 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
3557 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3558 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3559 break 2
3560 fi
3561 fi
3562 done
3563 done
3564 IFS="$ac_save_IFS"
3565 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3566 ;;
3567 esac
3568 fi
3569 XGETTEXT="$ac_cv_path_XGETTEXT"
3570 if test "$XGETTEXT" != ":"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3572 $as_echo "$XGETTEXT" >&6; }
3573 else
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3576 fi
3577
3578 rm -f messages.po
3579
3580
3581 # Prepare PATH_SEPARATOR.
3582 # The user is always right.
3583 if test "${PATH_SEPARATOR+set}" != set; then
3584 echo "#! /bin/sh" >conf$$.sh
3585 echo "exit 0" >>conf$$.sh
3586 chmod +x conf$$.sh
3587 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3588 PATH_SEPARATOR=';'
3589 else
3590 PATH_SEPARATOR=:
3591 fi
3592 rm -f conf$$.sh
3593 fi
3594
3595 # Find out how to test for executable files. Don't use a zero-byte file,
3596 # as systems may use methods other than mode bits to determine executability.
3597 cat >conf$$.file <<_ASEOF
3598 #! /bin/sh
3599 exit 0
3600 _ASEOF
3601 chmod +x conf$$.file
3602 if test -x conf$$.file >/dev/null 2>&1; then
3603 ac_executable_p="test -x"
3604 else
3605 ac_executable_p="test -f"
3606 fi
3607 rm -f conf$$.file
3608
3609 # Extract the first word of "msgmerge", so it can be a program name with args.
3610 set dummy msgmerge; ac_word=$2
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612 $as_echo_n "checking for $ac_word... " >&6; }
3613 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 case "$MSGMERGE" in
3617 [\\/]* | ?:[\\/]*)
3618 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3619 ;;
3620 *)
3621 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3622 for ac_dir in $PATH; do
3623 IFS="$ac_save_IFS"
3624 test -z "$ac_dir" && ac_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3627 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3628 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
3629 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3630 break 2
3631 fi
3632 fi
3633 done
3634 done
3635 IFS="$ac_save_IFS"
3636 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3637 ;;
3638 esac
3639 fi
3640 MSGMERGE="$ac_cv_path_MSGMERGE"
3641 if test "$MSGMERGE" != ":"; then
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3643 $as_echo "$MSGMERGE" >&6; }
3644 else
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 $as_echo "no" >&6; }
3647 fi
3648
3649
3650 if test "$GMSGFMT" != ":"; then
3651 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3652 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3653 : ;
3654 else
3655 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3657 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3658 GMSGFMT=":"
3659 fi
3660 fi
3661
3662 if test "$XGETTEXT" != ":"; then
3663 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3664 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3665 : ;
3666 else
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
3668 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
3669 XGETTEXT=":"
3670 fi
3671 rm -f messages.po
3672 fi
3673
3674 ac_config_commands="$ac_config_commands default-1"
3675
3676
3677
3678 if test "X$prefix" = "XNONE"; then
3679 acl_final_prefix="$ac_default_prefix"
3680 else
3681 acl_final_prefix="$prefix"
3682 fi
3683 if test "X$exec_prefix" = "XNONE"; then
3684 acl_final_exec_prefix='${prefix}'
3685 else
3686 acl_final_exec_prefix="$exec_prefix"
3687 fi
3688 acl_save_prefix="$prefix"
3689 prefix="$acl_final_prefix"
3690 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3691 prefix="$acl_save_prefix"
3692
3693 DEPDIR="${am__leading_dot}deps"
3694
3695 ac_config_commands="$ac_config_commands depfiles"
3696
3697
3698 am_make=${MAKE-make}
3699 cat > confinc << 'END'
3700 am__doit:
3701 @echo this is the am__doit target
3702 .PHONY: am__doit
3703 END
3704 # If we don't find an include directive, just comment out the code.
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3706 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3707 am__include="#"
3708 am__quote=
3709 _am_result=none
3710 # First try GNU make style include.
3711 echo "include confinc" > confmf
3712 # Ignore all kinds of additional output from `make'.
3713 case `$am_make -s -f confmf 2> /dev/null` in #(
3714 *the\ am__doit\ target*)
3715 am__include=include
3716 am__quote=
3717 _am_result=GNU
3718 ;;
3719 esac
3720 # Now try BSD make style include.
3721 if test "$am__include" = "#"; then
3722 echo '.include "confinc"' > confmf
3723 case `$am_make -s -f confmf 2> /dev/null` in #(
3724 *the\ am__doit\ target*)
3725 am__include=.include
3726 am__quote="\""
3727 _am_result=BSD
3728 ;;
3729 esac
3730 fi
3731
3732
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3734 $as_echo "$_am_result" >&6; }
3735 rm -f confinc confmf
3736
3737 # Check whether --enable-dependency-tracking was given.
3738 if test "${enable_dependency_tracking+set}" = set; then :
3739 enableval=$enable_dependency_tracking;
3740 fi
3741
3742 if test "x$enable_dependency_tracking" != xno; then
3743 am_depcomp="$ac_aux_dir/depcomp"
3744 AMDEPBACKSLASH='\'
3745 fi
3746 if test "x$enable_dependency_tracking" != xno; then
3747 AMDEP_TRUE=
3748 AMDEP_FALSE='#'
3749 else
3750 AMDEP_TRUE='#'
3751 AMDEP_FALSE=
3752 fi
3753
3754
3755 ac_ext=c
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760 if test -n "$ac_tool_prefix"; then
3761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3762 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if test "${ac_cv_prog_CC+set}" = set; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3781 fi
3782 done
3783 done
3784 IFS=$as_save_IFS
3785
3786 fi
3787 fi
3788 CC=$ac_cv_prog_CC
3789 if test -n "$CC"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3791 $as_echo "$CC" >&6; }
3792 else
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 fi
3796
3797
3798 fi
3799 if test -z "$ac_cv_prog_CC"; then
3800 ac_ct_CC=$CC
3801 # Extract the first word of "gcc", so it can be a program name with args.
3802 set dummy gcc; ac_word=$2
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3806 $as_echo_n "(cached) " >&6
3807 else
3808 if test -n "$ac_ct_CC"; then
3809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3810 else
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3813 do
3814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3818 ac_cv_prog_ac_ct_CC="gcc"
3819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 break 2
3821 fi
3822 done
3823 done
3824 IFS=$as_save_IFS
3825
3826 fi
3827 fi
3828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3829 if test -n "$ac_ct_CC"; then
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3831 $as_echo "$ac_ct_CC" >&6; }
3832 else
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834 $as_echo "no" >&6; }
3835 fi
3836
3837 if test "x$ac_ct_CC" = x; then
3838 CC=""
3839 else
3840 case $cross_compiling:$ac_tool_warned in
3841 yes:)
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3844 ac_tool_warned=yes ;;
3845 esac
3846 CC=$ac_ct_CC
3847 fi
3848 else
3849 CC="$ac_cv_prog_CC"
3850 fi
3851
3852 if test -z "$CC"; then
3853 if test -n "$ac_tool_prefix"; then
3854 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3855 set dummy ${ac_tool_prefix}cc; ac_word=$2
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857 $as_echo_n "checking for $ac_word... " >&6; }
3858 if test "${ac_cv_prog_CC+set}" = set; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 if test -n "$CC"; then
3862 ac_cv_prog_CC="$CC" # Let the user override the test.
3863 else
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH
3866 do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871 ac_cv_prog_CC="${ac_tool_prefix}cc"
3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 break 2
3874 fi
3875 done
3876 done
3877 IFS=$as_save_IFS
3878
3879 fi
3880 fi
3881 CC=$ac_cv_prog_CC
3882 if test -n "$CC"; then
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3884 $as_echo "$CC" >&6; }
3885 else
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3888 fi
3889
3890
3891 fi
3892 fi
3893 if test -z "$CC"; then
3894 # Extract the first word of "cc", so it can be a program name with args.
3895 set dummy cc; ac_word=$2
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897 $as_echo_n "checking for $ac_word... " >&6; }
3898 if test "${ac_cv_prog_CC+set}" = set; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 if test -n "$CC"; then
3902 ac_cv_prog_CC="$CC" # Let the user override the test.
3903 else
3904 ac_prog_rejected=no
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH
3907 do
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3912 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3913 ac_prog_rejected=yes
3914 continue
3915 fi
3916 ac_cv_prog_CC="cc"
3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920 done
3921 done
3922 IFS=$as_save_IFS
3923
3924 if test $ac_prog_rejected = yes; then
3925 # We found a bogon in the path, so make sure we never use it.
3926 set dummy $ac_cv_prog_CC
3927 shift
3928 if test $# != 0; then
3929 # We chose a different compiler from the bogus one.
3930 # However, it has the same basename, so the bogon will be chosen
3931 # first if we set CC to just the basename; use the full file name.
3932 shift
3933 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3934 fi
3935 fi
3936 fi
3937 fi
3938 CC=$ac_cv_prog_CC
3939 if test -n "$CC"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941 $as_echo "$CC" >&6; }
3942 else
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3945 fi
3946
3947
3948 fi
3949 if test -z "$CC"; then
3950 if test -n "$ac_tool_prefix"; then
3951 for ac_prog in cl.exe
3952 do
3953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if test "${ac_cv_prog_CC+set}" = set; then :
3958 $as_echo_n "(cached) " >&6
3959 else
3960 if test -n "$CC"; then
3961 ac_cv_prog_CC="$CC" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3970 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974 done
3975 done
3976 IFS=$as_save_IFS
3977
3978 fi
3979 fi
3980 CC=$ac_cv_prog_CC
3981 if test -n "$CC"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3983 $as_echo "$CC" >&6; }
3984 else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3987 fi
3988
3989
3990 test -n "$CC" && break
3991 done
3992 fi
3993 if test -z "$CC"; then
3994 ac_ct_CC=$CC
3995 for ac_prog in cl.exe
3996 do
3997 # Extract the first word of "$ac_prog", so it can be a program name with args.
3998 set dummy $ac_prog; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 if test -n "$ac_ct_CC"; then
4005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4009 do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014 ac_cv_prog_ac_ct_CC="$ac_prog"
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 break 2
4017 fi
4018 done
4019 done
4020 IFS=$as_save_IFS
4021
4022 fi
4023 fi
4024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4025 if test -n "$ac_ct_CC"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4027 $as_echo "$ac_ct_CC" >&6; }
4028 else
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4031 fi
4032
4033
4034 test -n "$ac_ct_CC" && break
4035 done
4036
4037 if test "x$ac_ct_CC" = x; then
4038 CC=""
4039 else
4040 case $cross_compiling:$ac_tool_warned in
4041 yes:)
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4044 ac_tool_warned=yes ;;
4045 esac
4046 CC=$ac_ct_CC
4047 fi
4048 fi
4049
4050 fi
4051
4052
4053 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055 as_fn_error "no acceptable C compiler found in \$PATH
4056 See \`config.log' for more details." "$LINENO" 5; }
4057
4058 # Provide some information about the compiler.
4059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4060 set X $ac_compile
4061 ac_compiler=$2
4062 for ac_option in --version -v -V -qversion; do
4063 { { ac_try="$ac_compiler $ac_option >&5"
4064 case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067 esac
4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069 $as_echo "$ac_try_echo"; } >&5
4070 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4071 ac_status=$?
4072 if test -s conftest.err; then
4073 sed '10a\
4074 ... rest of stderr output deleted ...
4075 10q' conftest.err >conftest.er1
4076 cat conftest.er1 >&5
4077 fi
4078 rm -f conftest.er1 conftest.err
4079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4080 test $ac_status = 0; }
4081 done
4082
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4085
4086 int
4087 main ()
4088 {
4089
4090 ;
4091 return 0;
4092 }
4093 _ACEOF
4094 ac_clean_files_save=$ac_clean_files
4095 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4096 # Try to create an executable without -o first, disregard a.out.
4097 # It will help us diagnose broken compilers, and finding out an intuition
4098 # of exeext.
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4100 $as_echo_n "checking whether the C compiler works... " >&6; }
4101 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4102
4103 # The possible output files:
4104 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4105
4106 ac_rmfiles=
4107 for ac_file in $ac_files
4108 do
4109 case $ac_file in
4110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4111 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4112 esac
4113 done
4114 rm -f $ac_rmfiles
4115
4116 if { { ac_try="$ac_link_default"
4117 case "(($ac_try" in
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4120 esac
4121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4122 $as_echo "$ac_try_echo"; } >&5
4123 (eval "$ac_link_default") 2>&5
4124 ac_status=$?
4125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4126 test $ac_status = 0; }; then :
4127 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4128 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4129 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4130 # so that the user can short-circuit this test for compilers unknown to
4131 # Autoconf.
4132 for ac_file in $ac_files ''
4133 do
4134 test -f "$ac_file" || continue
4135 case $ac_file in
4136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4137 ;;
4138 [ab].out )
4139 # We found the default executable, but exeext='' is most
4140 # certainly right.
4141 break;;
4142 *.* )
4143 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4144 then :; else
4145 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4146 fi
4147 # We set ac_cv_exeext here because the later test for it is not
4148 # safe: cross compilers may not add the suffix if given an `-o'
4149 # argument, so we may need to know it at that point already.
4150 # Even if this section looks crufty: it has the advantage of
4151 # actually working.
4152 break;;
4153 * )
4154 break;;
4155 esac
4156 done
4157 test "$ac_cv_exeext" = no && ac_cv_exeext=
4158
4159 else
4160 ac_file=''
4161 fi
4162 if test -z "$ac_file"; then :
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4165 $as_echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4167
4168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4170 { as_fn_set_status 77
4171 as_fn_error "C compiler cannot create executables
4172 See \`config.log' for more details." "$LINENO" 5; }; }
4173 else
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4175 $as_echo "yes" >&6; }
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4178 $as_echo_n "checking for C compiler default output file name... " >&6; }
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4180 $as_echo "$ac_file" >&6; }
4181 ac_exeext=$ac_cv_exeext
4182
4183 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4184 ac_clean_files=$ac_clean_files_save
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4186 $as_echo_n "checking for suffix of executables... " >&6; }
4187 if { { ac_try="$ac_link"
4188 case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4191 esac
4192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4193 $as_echo "$ac_try_echo"; } >&5
4194 (eval "$ac_link") 2>&5
4195 ac_status=$?
4196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4197 test $ac_status = 0; }; then :
4198 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4199 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4200 # work properly (i.e., refer to `conftest.exe'), while it won't with
4201 # `rm'.
4202 for ac_file in conftest.exe conftest conftest.*; do
4203 test -f "$ac_file" || continue
4204 case $ac_file in
4205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4206 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4207 break;;
4208 * ) break;;
4209 esac
4210 done
4211 else
4212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4214 as_fn_error "cannot compute suffix of executables: cannot compile and link
4215 See \`config.log' for more details." "$LINENO" 5; }
4216 fi
4217 rm -f conftest conftest$ac_cv_exeext
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4219 $as_echo "$ac_cv_exeext" >&6; }
4220
4221 rm -f conftest.$ac_ext
4222 EXEEXT=$ac_cv_exeext
4223 ac_exeext=$EXEEXT
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4226 #include <stdio.h>
4227 int
4228 main ()
4229 {
4230 FILE *f = fopen ("conftest.out", "w");
4231 return ferror (f) || fclose (f) != 0;
4232
4233 ;
4234 return 0;
4235 }
4236 _ACEOF
4237 ac_clean_files="$ac_clean_files conftest.out"
4238 # Check that the compiler produces executables we can run. If not, either
4239 # the compiler is broken, or we cross compile.
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4241 $as_echo_n "checking whether we are cross compiling... " >&6; }
4242 if test "$cross_compiling" != yes; then
4243 { { ac_try="$ac_link"
4244 case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247 esac
4248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4249 $as_echo "$ac_try_echo"; } >&5
4250 (eval "$ac_link") 2>&5
4251 ac_status=$?
4252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4253 test $ac_status = 0; }
4254 if { ac_try='./conftest$ac_cv_exeext'
4255 { { case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258 esac
4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260 $as_echo "$ac_try_echo"; } >&5
4261 (eval "$ac_try") 2>&5
4262 ac_status=$?
4263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264 test $ac_status = 0; }; }; then
4265 cross_compiling=no
4266 else
4267 if test "$cross_compiling" = maybe; then
4268 cross_compiling=yes
4269 else
4270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4272 as_fn_error "cannot run C compiled programs.
4273 If you meant to cross compile, use \`--host'.
4274 See \`config.log' for more details." "$LINENO" 5; }
4275 fi
4276 fi
4277 fi
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4279 $as_echo "$cross_compiling" >&6; }
4280
4281 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4282 ac_clean_files=$ac_clean_files_save
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4284 $as_echo_n "checking for suffix of object files... " >&6; }
4285 if test "${ac_cv_objext+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
4287 else
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290
4291 int
4292 main ()
4293 {
4294
4295 ;
4296 return 0;
4297 }
4298 _ACEOF
4299 rm -f conftest.o conftest.obj
4300 if { { ac_try="$ac_compile"
4301 case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_compile") 2>&5
4308 ac_status=$?
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; }; then :
4311 for ac_file in conftest.o conftest.obj conftest.*; do
4312 test -f "$ac_file" || continue;
4313 case $ac_file in
4314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4315 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4316 break;;
4317 esac
4318 done
4319 else
4320 $as_echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4322
4323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4325 as_fn_error "cannot compute suffix of object files: cannot compile
4326 See \`config.log' for more details." "$LINENO" 5; }
4327 fi
4328 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4331 $as_echo "$ac_cv_objext" >&6; }
4332 OBJEXT=$ac_cv_objext
4333 ac_objext=$OBJEXT
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4335 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4336 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341
4342 int
4343 main ()
4344 {
4345 #ifndef __GNUC__
4346 choke me
4347 #endif
4348
4349 ;
4350 return 0;
4351 }
4352 _ACEOF
4353 if ac_fn_c_try_compile "$LINENO"; then :
4354 ac_compiler_gnu=yes
4355 else
4356 ac_compiler_gnu=no
4357 fi
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4360
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4363 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4364 if test $ac_compiler_gnu = yes; then
4365 GCC=yes
4366 else
4367 GCC=
4368 fi
4369 ac_test_CFLAGS=${CFLAGS+set}
4370 ac_save_CFLAGS=$CFLAGS
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4372 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4373 if test "${ac_cv_prog_cc_g+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 ac_save_c_werror_flag=$ac_c_werror_flag
4377 ac_c_werror_flag=yes
4378 ac_cv_prog_cc_g=no
4379 CFLAGS="-g"
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382
4383 int
4384 main ()
4385 {
4386
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 if ac_fn_c_try_compile "$LINENO"; then :
4392 ac_cv_prog_cc_g=yes
4393 else
4394 CFLAGS=""
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397
4398 int
4399 main ()
4400 {
4401
4402 ;
4403 return 0;
4404 }
4405 _ACEOF
4406 if ac_fn_c_try_compile "$LINENO"; then :
4407
4408 else
4409 ac_c_werror_flag=$ac_save_c_werror_flag
4410 CFLAGS="-g"
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413
4414 int
4415 main ()
4416 {
4417
4418 ;
4419 return 0;
4420 }
4421 _ACEOF
4422 if ac_fn_c_try_compile "$LINENO"; then :
4423 ac_cv_prog_cc_g=yes
4424 fi
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426 fi
4427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428 fi
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 ac_c_werror_flag=$ac_save_c_werror_flag
4431 fi
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4433 $as_echo "$ac_cv_prog_cc_g" >&6; }
4434 if test "$ac_test_CFLAGS" = set; then
4435 CFLAGS=$ac_save_CFLAGS
4436 elif test $ac_cv_prog_cc_g = yes; then
4437 if test "$GCC" = yes; then
4438 CFLAGS="-g -O2"
4439 else
4440 CFLAGS="-g"
4441 fi
4442 else
4443 if test "$GCC" = yes; then
4444 CFLAGS="-O2"
4445 else
4446 CFLAGS=
4447 fi
4448 fi
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4450 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4451 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 ac_cv_prog_cc_c89=no
4455 ac_save_CC=$CC
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458 #include <stdarg.h>
4459 #include <stdio.h>
4460 #include <sys/types.h>
4461 #include <sys/stat.h>
4462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4463 struct buf { int x; };
4464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4465 static char *e (p, i)
4466 char **p;
4467 int i;
4468 {
4469 return p[i];
4470 }
4471 static char *f (char * (*g) (char **, int), char **p, ...)
4472 {
4473 char *s;
4474 va_list v;
4475 va_start (v,p);
4476 s = g (p, va_arg (v,int));
4477 va_end (v);
4478 return s;
4479 }
4480
4481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4482 function prototypes and stuff, but not '\xHH' hex character constants.
4483 These don't provoke an error unfortunately, instead are silently treated
4484 as 'x'. The following induces an error, until -std is added to get
4485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4486 array size at least. It's necessary to write '\x00'==0 to get something
4487 that's true only with -std. */
4488 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4489
4490 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4491 inside strings and character constants. */
4492 #define FOO(x) 'x'
4493 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4494
4495 int test (int i, double x);
4496 struct s1 {int (*f) (int a);};
4497 struct s2 {int (*f) (double a);};
4498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4499 int argc;
4500 char **argv;
4501 int
4502 main ()
4503 {
4504 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4510 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4511 do
4512 CC="$ac_save_CC $ac_arg"
4513 if ac_fn_c_try_compile "$LINENO"; then :
4514 ac_cv_prog_cc_c89=$ac_arg
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext
4517 test "x$ac_cv_prog_cc_c89" != "xno" && break
4518 done
4519 rm -f conftest.$ac_ext
4520 CC=$ac_save_CC
4521
4522 fi
4523 # AC_CACHE_VAL
4524 case "x$ac_cv_prog_cc_c89" in
4525 x)
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4527 $as_echo "none needed" >&6; } ;;
4528 xno)
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4530 $as_echo "unsupported" >&6; } ;;
4531 *)
4532 CC="$CC $ac_cv_prog_cc_c89"
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4534 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4535 esac
4536 if test "x$ac_cv_prog_cc_c89" != xno; then :
4537
4538 fi
4539
4540 ac_ext=c
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545
4546 depcc="$CC" am_compiler_list=
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4549 $as_echo_n "checking dependency style of $depcc... " >&6; }
4550 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4554 # We make a subdir and do the tests there. Otherwise we can end up
4555 # making bogus files that we don't know about and never remove. For
4556 # instance it was reported that on HP-UX the gcc test will end up
4557 # making a dummy file named `D' -- because `-MD' means `put the output
4558 # in D'.
4559 mkdir conftest.dir
4560 # Copy depcomp to subdir because otherwise we won't find it if we're
4561 # using a relative directory.
4562 cp "$am_depcomp" conftest.dir
4563 cd conftest.dir
4564 # We will build objects and dependencies in a subdirectory because
4565 # it helps to detect inapplicable dependency modes. For instance
4566 # both Tru64's cc and ICC support -MD to output dependencies as a
4567 # side effect of compilation, but ICC will put the dependencies in
4568 # the current directory while Tru64 will put them in the object
4569 # directory.
4570 mkdir sub
4571
4572 am_cv_CC_dependencies_compiler_type=none
4573 if test "$am_compiler_list" = ""; then
4574 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4575 fi
4576 am__universal=false
4577 case " $depcc " in #(
4578 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4579 esac
4580
4581 for depmode in $am_compiler_list; do
4582 # Setup a source with many dependencies, because some compilers
4583 # like to wrap large dependency lists on column 80 (with \), and
4584 # we should not choose a depcomp mode which is confused by this.
4585 #
4586 # We need to recreate these files for each test, as the compiler may
4587 # overwrite some of them when testing with obscure command lines.
4588 # This happens at least with the AIX C compiler.
4589 : > sub/conftest.c
4590 for i in 1 2 3 4 5 6; do
4591 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4592 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4593 # Solaris 8's {/usr,}/bin/sh.
4594 touch sub/conftst$i.h
4595 done
4596 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4597
4598 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4599 # mode. It turns out that the SunPro C++ compiler does not properly
4600 # handle `-M -o', and we need to detect this. Also, some Intel
4601 # versions had trouble with output in subdirs
4602 am__obj=sub/conftest.${OBJEXT-o}
4603 am__minus_obj="-o $am__obj"
4604 case $depmode in
4605 gcc)
4606 # This depmode causes a compiler race in universal mode.
4607 test "$am__universal" = false || continue
4608 ;;
4609 nosideeffect)
4610 # after this tag, mechanisms are not by side-effect, so they'll
4611 # only be used when explicitly requested
4612 if test "x$enable_dependency_tracking" = xyes; then
4613 continue
4614 else
4615 break
4616 fi
4617 ;;
4618 msvisualcpp | msvcmsys)
4619 # This compiler won't grok `-c -o', but also, the minuso test has
4620 # not run yet. These depmodes are late enough in the game, and
4621 # so weak that their functioning should not be impacted.
4622 am__obj=conftest.${OBJEXT-o}
4623 am__minus_obj=
4624 ;;
4625 none) break ;;
4626 esac
4627 if depmode=$depmode \
4628 source=sub/conftest.c object=$am__obj \
4629 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4630 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4631 >/dev/null 2>conftest.err &&
4632 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4633 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4634 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4635 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4636 # icc doesn't choke on unknown options, it will just issue warnings
4637 # or remarks (even with -Werror). So we grep stderr for any message
4638 # that says an option was ignored or not supported.
4639 # When given -MP, icc 7.0 and 7.1 complain thusly:
4640 # icc: Command line warning: ignoring option '-M'; no argument required
4641 # The diagnosis changed in icc 8.0:
4642 # icc: Command line remark: option '-MP' not supported
4643 if (grep 'ignoring option' conftest.err ||
4644 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4645 am_cv_CC_dependencies_compiler_type=$depmode
4646 break
4647 fi
4648 fi
4649 done
4650
4651 cd ..
4652 rm -rf conftest.dir
4653 else
4654 am_cv_CC_dependencies_compiler_type=none
4655 fi
4656
4657 fi
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4659 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4660 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4661
4662 if
4663 test "x$enable_dependency_tracking" != xno \
4664 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4665 am__fastdepCC_TRUE=
4666 am__fastdepCC_FALSE='#'
4667 else
4668 am__fastdepCC_TRUE='#'
4669 am__fastdepCC_FALSE=
4670 fi
4671
4672
4673
4674 # Check whether --with-gnu-ld was given.
4675 if test "${with_gnu_ld+set}" = set; then :
4676 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4677 else
4678 with_gnu_ld=no
4679 fi
4680
4681 # Prepare PATH_SEPARATOR.
4682 # The user is always right.
4683 if test "${PATH_SEPARATOR+set}" != set; then
4684 echo "#! /bin/sh" >conf$$.sh
4685 echo "exit 0" >>conf$$.sh
4686 chmod +x conf$$.sh
4687 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4688 PATH_SEPARATOR=';'
4689 else
4690 PATH_SEPARATOR=:
4691 fi
4692 rm -f conf$$.sh
4693 fi
4694 ac_prog=ld
4695 if test "$GCC" = yes; then
4696 # Check if gcc -print-prog-name=ld gives a path.
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4698 $as_echo_n "checking for ld used by GCC... " >&6; }
4699 case $host in
4700 *-*-mingw*)
4701 # gcc leaves a trailing carriage return which upsets mingw
4702 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4703 *)
4704 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4705 esac
4706 case $ac_prog in
4707 # Accept absolute paths.
4708 [\\/]* | [A-Za-z]:[\\/]*)
4709 re_direlt='/[^/][^/]*/\.\./'
4710 # Canonicalize the path of ld
4711 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4712 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4713 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4714 done
4715 test -z "$LD" && LD="$ac_prog"
4716 ;;
4717 "")
4718 # If it fails, then pretend we aren't using GCC.
4719 ac_prog=ld
4720 ;;
4721 *)
4722 # If it is relative, then search for the first ld in PATH.
4723 with_gnu_ld=unknown
4724 ;;
4725 esac
4726 elif test "$with_gnu_ld" = yes; then
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4728 $as_echo_n "checking for GNU ld... " >&6; }
4729 else
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4731 $as_echo_n "checking for non-GNU ld... " >&6; }
4732 fi
4733 if test "${acl_cv_path_LD+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 if test -z "$LD"; then
4737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4738 for ac_dir in $PATH; do
4739 test -z "$ac_dir" && ac_dir=.
4740 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4741 acl_cv_path_LD="$ac_dir/$ac_prog"
4742 # Check to see if the program is GNU ld. I'd rather use --version,
4743 # but apparently some GNU ld's only accept -v.
4744 # Break only if it was the GNU/non-GNU ld that we prefer.
4745 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4746 *GNU* | *'with BFD'*)
4747 test "$with_gnu_ld" != no && break ;;
4748 *)
4749 test "$with_gnu_ld" != yes && break ;;
4750 esac
4751 fi
4752 done
4753 IFS="$ac_save_ifs"
4754 else
4755 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4756 fi
4757 fi
4758
4759 LD="$acl_cv_path_LD"
4760 if test -n "$LD"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4762 $as_echo "$LD" >&6; }
4763 else
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4766 fi
4767 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4769 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4770 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4774 case `$LD -v 2>&1 </dev/null` in
4775 *GNU* | *'with BFD'*)
4776 acl_cv_prog_gnu_ld=yes ;;
4777 *)
4778 acl_cv_prog_gnu_ld=no ;;
4779 esac
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4782 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4783 with_gnu_ld=$acl_cv_prog_gnu_ld
4784
4785
4786
4787
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4789 $as_echo_n "checking for shared library run path origin... " >&6; }
4790 if test "${acl_cv_rpath+set}" = set; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793
4794 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4795 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4796 . ./conftest.sh
4797 rm -f ./conftest.sh
4798 acl_cv_rpath=done
4799
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4802 $as_echo "$acl_cv_rpath" >&6; }
4803 wl="$acl_cv_wl"
4804 libext="$acl_cv_libext"
4805 shlibext="$acl_cv_shlibext"
4806 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4807 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4808 hardcode_direct="$acl_cv_hardcode_direct"
4809 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4810 # Check whether --enable-rpath was given.
4811 if test "${enable_rpath+set}" = set; then :
4812 enableval=$enable_rpath; :
4813 else
4814 enable_rpath=yes
4815 fi
4816
4817
4818
4819
4820
4821
4822
4823
4824 use_additional=yes
4825
4826 acl_save_prefix="$prefix"
4827 prefix="$acl_final_prefix"
4828 acl_save_exec_prefix="$exec_prefix"
4829 exec_prefix="$acl_final_exec_prefix"
4830
4831 eval additional_includedir=\"$includedir\"
4832 eval additional_libdir=\"$libdir\"
4833
4834 exec_prefix="$acl_save_exec_prefix"
4835 prefix="$acl_save_prefix"
4836
4837
4838 # Check whether --with-libiconv-prefix was given.
4839 if test "${with_libiconv_prefix+set}" = set; then :
4840 withval=$with_libiconv_prefix;
4841 if test "X$withval" = "Xno"; then
4842 use_additional=no
4843 else
4844 if test "X$withval" = "X"; then
4845
4846 acl_save_prefix="$prefix"
4847 prefix="$acl_final_prefix"
4848 acl_save_exec_prefix="$exec_prefix"
4849 exec_prefix="$acl_final_exec_prefix"
4850
4851 eval additional_includedir=\"$includedir\"
4852 eval additional_libdir=\"$libdir\"
4853
4854 exec_prefix="$acl_save_exec_prefix"
4855 prefix="$acl_save_prefix"
4856
4857 else
4858 additional_includedir="$withval/include"
4859 additional_libdir="$withval/lib"
4860 fi
4861 fi
4862
4863 fi
4864
4865 LIBICONV=
4866 LTLIBICONV=
4867 INCICONV=
4868 rpathdirs=
4869 ltrpathdirs=
4870 names_already_handled=
4871 names_next_round='iconv '
4872 while test -n "$names_next_round"; do
4873 names_this_round="$names_next_round"
4874 names_next_round=
4875 for name in $names_this_round; do
4876 already_handled=
4877 for n in $names_already_handled; do
4878 if test "$n" = "$name"; then
4879 already_handled=yes
4880 break
4881 fi
4882 done
4883 if test -z "$already_handled"; then
4884 names_already_handled="$names_already_handled $name"
4885 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4886 eval value=\"\$HAVE_LIB$uppername\"
4887 if test -n "$value"; then
4888 if test "$value" = yes; then
4889 eval value=\"\$LIB$uppername\"
4890 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4891 eval value=\"\$LTLIB$uppername\"
4892 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4893 else
4894 :
4895 fi
4896 else
4897 found_dir=
4898 found_la=
4899 found_so=
4900 found_a=
4901 if test $use_additional = yes; then
4902 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4903 found_dir="$additional_libdir"
4904 found_so="$additional_libdir/lib$name.$shlibext"
4905 if test -f "$additional_libdir/lib$name.la"; then
4906 found_la="$additional_libdir/lib$name.la"
4907 fi
4908 else
4909 if test -f "$additional_libdir/lib$name.$libext"; then
4910 found_dir="$additional_libdir"
4911 found_a="$additional_libdir/lib$name.$libext"
4912 if test -f "$additional_libdir/lib$name.la"; then
4913 found_la="$additional_libdir/lib$name.la"
4914 fi
4915 fi
4916 fi
4917 fi
4918 if test "X$found_dir" = "X"; then
4919 for x in $LDFLAGS $LTLIBICONV; do
4920
4921 acl_save_prefix="$prefix"
4922 prefix="$acl_final_prefix"
4923 acl_save_exec_prefix="$exec_prefix"
4924 exec_prefix="$acl_final_exec_prefix"
4925 eval x=\"$x\"
4926 exec_prefix="$acl_save_exec_prefix"
4927 prefix="$acl_save_prefix"
4928
4929 case "$x" in
4930 -L*)
4931 dir=`echo "X$x" | sed -e 's/^X-L//'`
4932 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4933 found_dir="$dir"
4934 found_so="$dir/lib$name.$shlibext"
4935 if test -f "$dir/lib$name.la"; then
4936 found_la="$dir/lib$name.la"
4937 fi
4938 else
4939 if test -f "$dir/lib$name.$libext"; then
4940 found_dir="$dir"
4941 found_a="$dir/lib$name.$libext"
4942 if test -f "$dir/lib$name.la"; then
4943 found_la="$dir/lib$name.la"
4944 fi
4945 fi
4946 fi
4947 ;;
4948 esac
4949 if test "X$found_dir" != "X"; then
4950 break
4951 fi
4952 done
4953 fi
4954 if test "X$found_dir" != "X"; then
4955 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4956 if test "X$found_so" != "X"; then
4957 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4958 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4959 else
4960 haveit=
4961 for x in $ltrpathdirs; do
4962 if test "X$x" = "X$found_dir"; then
4963 haveit=yes
4964 break
4965 fi
4966 done
4967 if test -z "$haveit"; then
4968 ltrpathdirs="$ltrpathdirs $found_dir"
4969 fi
4970 if test "$hardcode_direct" = yes; then
4971 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4972 else
4973 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4974 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4975 haveit=
4976 for x in $rpathdirs; do
4977 if test "X$x" = "X$found_dir"; then
4978 haveit=yes
4979 break
4980 fi
4981 done
4982 if test -z "$haveit"; then
4983 rpathdirs="$rpathdirs $found_dir"
4984 fi
4985 else
4986 haveit=
4987 for x in $LDFLAGS $LIBICONV; do
4988
4989 acl_save_prefix="$prefix"
4990 prefix="$acl_final_prefix"
4991 acl_save_exec_prefix="$exec_prefix"
4992 exec_prefix="$acl_final_exec_prefix"
4993 eval x=\"$x\"
4994 exec_prefix="$acl_save_exec_prefix"
4995 prefix="$acl_save_prefix"
4996
4997 if test "X$x" = "X-L$found_dir"; then
4998 haveit=yes
4999 break
5000 fi
5001 done
5002 if test -z "$haveit"; then
5003 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5004 fi
5005 if test "$hardcode_minus_L" != no; then
5006 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5007 else
5008 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5009 fi
5010 fi
5011 fi
5012 fi
5013 else
5014 if test "X$found_a" != "X"; then
5015 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5016 else
5017 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5018 fi
5019 fi
5020 additional_includedir=
5021 case "$found_dir" in
5022 */lib | */lib/)
5023 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5024 additional_includedir="$basedir/include"
5025 ;;
5026 esac
5027 if test "X$additional_includedir" != "X"; then
5028 if test "X$additional_includedir" != "X/usr/include"; then
5029 haveit=
5030 if test "X$additional_includedir" = "X/usr/local/include"; then
5031 if test -n "$GCC"; then
5032 case $host_os in
5033 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5034 esac
5035 fi
5036 fi
5037 if test -z "$haveit"; then
5038 for x in $CPPFLAGS $INCICONV; do
5039
5040 acl_save_prefix="$prefix"
5041 prefix="$acl_final_prefix"
5042 acl_save_exec_prefix="$exec_prefix"
5043 exec_prefix="$acl_final_exec_prefix"
5044 eval x=\"$x\"
5045 exec_prefix="$acl_save_exec_prefix"
5046 prefix="$acl_save_prefix"
5047
5048 if test "X$x" = "X-I$additional_includedir"; then
5049 haveit=yes
5050 break
5051 fi
5052 done
5053 if test -z "$haveit"; then
5054 if test -d "$additional_includedir"; then
5055 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5056 fi
5057 fi
5058 fi
5059 fi
5060 fi
5061 if test -n "$found_la"; then
5062 save_libdir="$libdir"
5063 case "$found_la" in
5064 */* | *\\*) . "$found_la" ;;
5065 *) . "./$found_la" ;;
5066 esac
5067 libdir="$save_libdir"
5068 for dep in $dependency_libs; do
5069 case "$dep" in
5070 -L*)
5071 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5072 if test "X$additional_libdir" != "X/usr/lib"; then
5073 haveit=
5074 if test "X$additional_libdir" = "X/usr/local/lib"; then
5075 if test -n "$GCC"; then
5076 case $host_os in
5077 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5078 esac
5079 fi
5080 fi
5081 if test -z "$haveit"; then
5082 haveit=
5083 for x in $LDFLAGS $LIBICONV; do
5084
5085 acl_save_prefix="$prefix"
5086 prefix="$acl_final_prefix"
5087 acl_save_exec_prefix="$exec_prefix"
5088 exec_prefix="$acl_final_exec_prefix"
5089 eval x=\"$x\"
5090 exec_prefix="$acl_save_exec_prefix"
5091 prefix="$acl_save_prefix"
5092
5093 if test "X$x" = "X-L$additional_libdir"; then
5094 haveit=yes
5095 break
5096 fi
5097 done
5098 if test -z "$haveit"; then
5099 if test -d "$additional_libdir"; then
5100 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5101 fi
5102 fi
5103 haveit=
5104 for x in $LDFLAGS $LTLIBICONV; do
5105
5106 acl_save_prefix="$prefix"
5107 prefix="$acl_final_prefix"
5108 acl_save_exec_prefix="$exec_prefix"
5109 exec_prefix="$acl_final_exec_prefix"
5110 eval x=\"$x\"
5111 exec_prefix="$acl_save_exec_prefix"
5112 prefix="$acl_save_prefix"
5113
5114 if test "X$x" = "X-L$additional_libdir"; then
5115 haveit=yes
5116 break
5117 fi
5118 done
5119 if test -z "$haveit"; then
5120 if test -d "$additional_libdir"; then
5121 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5122 fi
5123 fi
5124 fi
5125 fi
5126 ;;
5127 -R*)
5128 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5129 if test "$enable_rpath" != no; then
5130 haveit=
5131 for x in $rpathdirs; do
5132 if test "X$x" = "X$dir"; then
5133 haveit=yes
5134 break
5135 fi
5136 done
5137 if test -z "$haveit"; then
5138 rpathdirs="$rpathdirs $dir"
5139 fi
5140 haveit=
5141 for x in $ltrpathdirs; do
5142 if test "X$x" = "X$dir"; then
5143 haveit=yes
5144 break
5145 fi
5146 done
5147 if test -z "$haveit"; then
5148 ltrpathdirs="$ltrpathdirs $dir"
5149 fi
5150 fi
5151 ;;
5152 -l*)
5153 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5154 ;;
5155 *.la)
5156 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5157 ;;
5158 *)
5159 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5160 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5161 ;;
5162 esac
5163 done
5164 fi
5165 else
5166 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5167 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5168 fi
5169 fi
5170 fi
5171 done
5172 done
5173 if test "X$rpathdirs" != "X"; then
5174 if test -n "$hardcode_libdir_separator"; then
5175 alldirs=
5176 for found_dir in $rpathdirs; do
5177 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5178 done
5179 acl_save_libdir="$libdir"
5180 libdir="$alldirs"
5181 eval flag=\"$hardcode_libdir_flag_spec\"
5182 libdir="$acl_save_libdir"
5183 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5184 else
5185 for found_dir in $rpathdirs; do
5186 acl_save_libdir="$libdir"
5187 libdir="$found_dir"
5188 eval flag=\"$hardcode_libdir_flag_spec\"
5189 libdir="$acl_save_libdir"
5190 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5191 done
5192 fi
5193 fi
5194 if test "X$ltrpathdirs" != "X"; then
5195 for found_dir in $ltrpathdirs; do
5196 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5197 done
5198 fi
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5219 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5220 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 gt_save_CPPFLAGS="$CPPFLAGS"
5224 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5225 gt_save_LIBS="$LIBS"
5226 LIBS="$LIBS -framework CoreFoundation"
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229 #include <CFPreferences.h>
5230 int
5231 main ()
5232 {
5233 CFPreferencesCopyAppValue(NULL, NULL)
5234 ;
5235 return 0;
5236 }
5237 _ACEOF
5238 if ac_fn_c_try_link "$LINENO"; then :
5239 gt_cv_func_CFPreferencesCopyAppValue=yes
5240 else
5241 gt_cv_func_CFPreferencesCopyAppValue=no
5242 fi
5243 rm -f core conftest.err conftest.$ac_objext \
5244 conftest$ac_exeext conftest.$ac_ext
5245 CPPFLAGS="$gt_save_CPPFLAGS"
5246 LIBS="$gt_save_LIBS"
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5249 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5250 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5251
5252 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5253
5254 fi
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5256 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5257 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 gt_save_CPPFLAGS="$CPPFLAGS"
5261 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5262 gt_save_LIBS="$LIBS"
5263 LIBS="$LIBS -framework CoreFoundation"
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 #include <CFLocale.h>
5267 int
5268 main ()
5269 {
5270 CFLocaleCopyCurrent();
5271 ;
5272 return 0;
5273 }
5274 _ACEOF
5275 if ac_fn_c_try_link "$LINENO"; then :
5276 gt_cv_func_CFLocaleCopyCurrent=yes
5277 else
5278 gt_cv_func_CFLocaleCopyCurrent=no
5279 fi
5280 rm -f core conftest.err conftest.$ac_objext \
5281 conftest$ac_exeext conftest.$ac_ext
5282 CPPFLAGS="$gt_save_CPPFLAGS"
5283 LIBS="$gt_save_LIBS"
5284 fi
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5286 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5287 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5288
5289 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5290
5291 fi
5292 INTL_MACOSX_LIBS=
5293 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5294 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5295 fi
5296
5297
5298
5299
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5301 $as_echo_n "checking whether NLS is requested... " >&6; }
5302 # Check whether --enable-nls was given.
5303 if test "${enable_nls+set}" = set; then :
5304 enableval=$enable_nls; USE_NLS=$enableval
5305 else
5306 USE_NLS=yes
5307 fi
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5310 $as_echo "$USE_NLS" >&6; }
5311
5312
5313
5314
5315 LIBINTL=
5316 LTLIBINTL=
5317 POSUB=
5318
5319 if test "$USE_NLS" = "yes"; then
5320 gt_use_preinstalled_gnugettext=no
5321
5322
5323
5324
5325
5326
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5328 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5329 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 #include <libintl.h>
5335 extern int _nl_msg_cat_cntr;
5336 extern int *_nl_domain_bindings;
5337 int
5338 main ()
5339 {
5340 bindtextdomain ("", "");
5341 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 if ac_fn_c_try_link "$LINENO"; then :
5347 gt_cv_func_gnugettext1_libc=yes
5348 else
5349 gt_cv_func_gnugettext1_libc=no
5350 fi
5351 rm -f core conftest.err conftest.$ac_objext \
5352 conftest$ac_exeext conftest.$ac_ext
5353 fi
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
5355 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
5356
5357 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5358
5359
5360
5361
5362
5363 am_save_CPPFLAGS="$CPPFLAGS"
5364
5365 for element in $INCICONV; do
5366 haveit=
5367 for x in $CPPFLAGS; do
5368
5369 acl_save_prefix="$prefix"
5370 prefix="$acl_final_prefix"
5371 acl_save_exec_prefix="$exec_prefix"
5372 exec_prefix="$acl_final_exec_prefix"
5373 eval x=\"$x\"
5374 exec_prefix="$acl_save_exec_prefix"
5375 prefix="$acl_save_prefix"
5376
5377 if test "X$x" = "X$element"; then
5378 haveit=yes
5379 break
5380 fi
5381 done
5382 if test -z "$haveit"; then
5383 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5384 fi
5385 done
5386
5387
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5389 $as_echo_n "checking for iconv... " >&6; }
5390 if test "${am_cv_func_iconv+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393
5394 am_cv_func_iconv="no, consider installing GNU libiconv"
5395 am_cv_lib_iconv=no
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 #include <stdlib.h>
5399 #include <iconv.h>
5400 int
5401 main ()
5402 {
5403 iconv_t cd = iconv_open("","");
5404 iconv(cd,NULL,NULL,NULL,NULL);
5405 iconv_close(cd);
5406 ;
5407 return 0;
5408 }
5409 _ACEOF
5410 if ac_fn_c_try_link "$LINENO"; then :
5411 am_cv_func_iconv=yes
5412 fi
5413 rm -f core conftest.err conftest.$ac_objext \
5414 conftest$ac_exeext conftest.$ac_ext
5415 if test "$am_cv_func_iconv" != yes; then
5416 am_save_LIBS="$LIBS"
5417 LIBS="$LIBS $LIBICONV"
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420 #include <stdlib.h>
5421 #include <iconv.h>
5422 int
5423 main ()
5424 {
5425 iconv_t cd = iconv_open("","");
5426 iconv(cd,NULL,NULL,NULL,NULL);
5427 iconv_close(cd);
5428 ;
5429 return 0;
5430 }
5431 _ACEOF
5432 if ac_fn_c_try_link "$LINENO"; then :
5433 am_cv_lib_iconv=yes
5434 am_cv_func_iconv=yes
5435 fi
5436 rm -f core conftest.err conftest.$ac_objext \
5437 conftest$ac_exeext conftest.$ac_ext
5438 LIBS="$am_save_LIBS"
5439 fi
5440
5441 fi
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5443 $as_echo "$am_cv_func_iconv" >&6; }
5444 if test "$am_cv_func_iconv" = yes; then
5445
5446 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5447
5448 fi
5449 if test "$am_cv_lib_iconv" = yes; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5451 $as_echo_n "checking how to link with libiconv... " >&6; }
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5453 $as_echo "$LIBICONV" >&6; }
5454 else
5455 CPPFLAGS="$am_save_CPPFLAGS"
5456 LIBICONV=
5457 LTLIBICONV=
5458 fi
5459
5460
5461
5462
5463
5464
5465 use_additional=yes
5466
5467 acl_save_prefix="$prefix"
5468 prefix="$acl_final_prefix"
5469 acl_save_exec_prefix="$exec_prefix"
5470 exec_prefix="$acl_final_exec_prefix"
5471
5472 eval additional_includedir=\"$includedir\"
5473 eval additional_libdir=\"$libdir\"
5474
5475 exec_prefix="$acl_save_exec_prefix"
5476 prefix="$acl_save_prefix"
5477
5478
5479 # Check whether --with-libintl-prefix was given.
5480 if test "${with_libintl_prefix+set}" = set; then :
5481 withval=$with_libintl_prefix;
5482 if test "X$withval" = "Xno"; then
5483 use_additional=no
5484 else
5485 if test "X$withval" = "X"; then
5486
5487 acl_save_prefix="$prefix"
5488 prefix="$acl_final_prefix"
5489 acl_save_exec_prefix="$exec_prefix"
5490 exec_prefix="$acl_final_exec_prefix"
5491
5492 eval additional_includedir=\"$includedir\"
5493 eval additional_libdir=\"$libdir\"
5494
5495 exec_prefix="$acl_save_exec_prefix"
5496 prefix="$acl_save_prefix"
5497
5498 else
5499 additional_includedir="$withval/include"
5500 additional_libdir="$withval/lib"
5501 fi
5502 fi
5503
5504 fi
5505
5506 LIBINTL=
5507 LTLIBINTL=
5508 INCINTL=
5509 rpathdirs=
5510 ltrpathdirs=
5511 names_already_handled=
5512 names_next_round='intl '
5513 while test -n "$names_next_round"; do
5514 names_this_round="$names_next_round"
5515 names_next_round=
5516 for name in $names_this_round; do
5517 already_handled=
5518 for n in $names_already_handled; do
5519 if test "$n" = "$name"; then
5520 already_handled=yes
5521 break
5522 fi
5523 done
5524 if test -z "$already_handled"; then
5525 names_already_handled="$names_already_handled $name"
5526 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5527 eval value=\"\$HAVE_LIB$uppername\"
5528 if test -n "$value"; then
5529 if test "$value" = yes; then
5530 eval value=\"\$LIB$uppername\"
5531 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5532 eval value=\"\$LTLIB$uppername\"
5533 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5534 else
5535 :
5536 fi
5537 else
5538 found_dir=
5539 found_la=
5540 found_so=
5541 found_a=
5542 if test $use_additional = yes; then
5543 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5544 found_dir="$additional_libdir"
5545 found_so="$additional_libdir/lib$name.$shlibext"
5546 if test -f "$additional_libdir/lib$name.la"; then
5547 found_la="$additional_libdir/lib$name.la"
5548 fi
5549 else
5550 if test -f "$additional_libdir/lib$name.$libext"; then
5551 found_dir="$additional_libdir"
5552 found_a="$additional_libdir/lib$name.$libext"
5553 if test -f "$additional_libdir/lib$name.la"; then
5554 found_la="$additional_libdir/lib$name.la"
5555 fi
5556 fi
5557 fi
5558 fi
5559 if test "X$found_dir" = "X"; then
5560 for x in $LDFLAGS $LTLIBINTL; do
5561
5562 acl_save_prefix="$prefix"
5563 prefix="$acl_final_prefix"
5564 acl_save_exec_prefix="$exec_prefix"
5565 exec_prefix="$acl_final_exec_prefix"
5566 eval x=\"$x\"
5567 exec_prefix="$acl_save_exec_prefix"
5568 prefix="$acl_save_prefix"
5569
5570 case "$x" in
5571 -L*)
5572 dir=`echo "X$x" | sed -e 's/^X-L//'`
5573 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5574 found_dir="$dir"
5575 found_so="$dir/lib$name.$shlibext"
5576 if test -f "$dir/lib$name.la"; then
5577 found_la="$dir/lib$name.la"
5578 fi
5579 else
5580 if test -f "$dir/lib$name.$libext"; then
5581 found_dir="$dir"
5582 found_a="$dir/lib$name.$libext"
5583 if test -f "$dir/lib$name.la"; then
5584 found_la="$dir/lib$name.la"
5585 fi
5586 fi
5587 fi
5588 ;;
5589 esac
5590 if test "X$found_dir" != "X"; then
5591 break
5592 fi
5593 done
5594 fi
5595 if test "X$found_dir" != "X"; then
5596 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5597 if test "X$found_so" != "X"; then
5598 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5599 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5600 else
5601 haveit=
5602 for x in $ltrpathdirs; do
5603 if test "X$x" = "X$found_dir"; then
5604 haveit=yes
5605 break
5606 fi
5607 done
5608 if test -z "$haveit"; then
5609 ltrpathdirs="$ltrpathdirs $found_dir"
5610 fi
5611 if test "$hardcode_direct" = yes; then
5612 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5613 else
5614 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5615 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5616 haveit=
5617 for x in $rpathdirs; do
5618 if test "X$x" = "X$found_dir"; then
5619 haveit=yes
5620 break
5621 fi
5622 done
5623 if test -z "$haveit"; then
5624 rpathdirs="$rpathdirs $found_dir"
5625 fi
5626 else
5627 haveit=
5628 for x in $LDFLAGS $LIBINTL; do
5629
5630 acl_save_prefix="$prefix"
5631 prefix="$acl_final_prefix"
5632 acl_save_exec_prefix="$exec_prefix"
5633 exec_prefix="$acl_final_exec_prefix"
5634 eval x=\"$x\"
5635 exec_prefix="$acl_save_exec_prefix"
5636 prefix="$acl_save_prefix"
5637
5638 if test "X$x" = "X-L$found_dir"; then
5639 haveit=yes
5640 break
5641 fi
5642 done
5643 if test -z "$haveit"; then
5644 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5645 fi
5646 if test "$hardcode_minus_L" != no; then
5647 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5648 else
5649 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5650 fi
5651 fi
5652 fi
5653 fi
5654 else
5655 if test "X$found_a" != "X"; then
5656 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5657 else
5658 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5659 fi
5660 fi
5661 additional_includedir=
5662 case "$found_dir" in
5663 */lib | */lib/)
5664 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5665 additional_includedir="$basedir/include"
5666 ;;
5667 esac
5668 if test "X$additional_includedir" != "X"; then
5669 if test "X$additional_includedir" != "X/usr/include"; then
5670 haveit=
5671 if test "X$additional_includedir" = "X/usr/local/include"; then
5672 if test -n "$GCC"; then
5673 case $host_os in
5674 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5675 esac
5676 fi
5677 fi
5678 if test -z "$haveit"; then
5679 for x in $CPPFLAGS $INCINTL; do
5680
5681 acl_save_prefix="$prefix"
5682 prefix="$acl_final_prefix"
5683 acl_save_exec_prefix="$exec_prefix"
5684 exec_prefix="$acl_final_exec_prefix"
5685 eval x=\"$x\"
5686 exec_prefix="$acl_save_exec_prefix"
5687 prefix="$acl_save_prefix"
5688
5689 if test "X$x" = "X-I$additional_includedir"; then
5690 haveit=yes
5691 break
5692 fi
5693 done
5694 if test -z "$haveit"; then
5695 if test -d "$additional_includedir"; then
5696 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5697 fi
5698 fi
5699 fi
5700 fi
5701 fi
5702 if test -n "$found_la"; then
5703 save_libdir="$libdir"
5704 case "$found_la" in
5705 */* | *\\*) . "$found_la" ;;
5706 *) . "./$found_la" ;;
5707 esac
5708 libdir="$save_libdir"
5709 for dep in $dependency_libs; do
5710 case "$dep" in
5711 -L*)
5712 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5713 if test "X$additional_libdir" != "X/usr/lib"; then
5714 haveit=
5715 if test "X$additional_libdir" = "X/usr/local/lib"; then
5716 if test -n "$GCC"; then
5717 case $host_os in
5718 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5719 esac
5720 fi
5721 fi
5722 if test -z "$haveit"; then
5723 haveit=
5724 for x in $LDFLAGS $LIBINTL; do
5725
5726 acl_save_prefix="$prefix"
5727 prefix="$acl_final_prefix"
5728 acl_save_exec_prefix="$exec_prefix"
5729 exec_prefix="$acl_final_exec_prefix"
5730 eval x=\"$x\"
5731 exec_prefix="$acl_save_exec_prefix"
5732 prefix="$acl_save_prefix"
5733
5734 if test "X$x" = "X-L$additional_libdir"; then
5735 haveit=yes
5736 break
5737 fi
5738 done
5739 if test -z "$haveit"; then
5740 if test -d "$additional_libdir"; then
5741 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5742 fi
5743 fi
5744 haveit=
5745 for x in $LDFLAGS $LTLIBINTL; do
5746
5747 acl_save_prefix="$prefix"
5748 prefix="$acl_final_prefix"
5749 acl_save_exec_prefix="$exec_prefix"
5750 exec_prefix="$acl_final_exec_prefix"
5751 eval x=\"$x\"
5752 exec_prefix="$acl_save_exec_prefix"
5753 prefix="$acl_save_prefix"
5754
5755 if test "X$x" = "X-L$additional_libdir"; then
5756 haveit=yes
5757 break
5758 fi
5759 done
5760 if test -z "$haveit"; then
5761 if test -d "$additional_libdir"; then
5762 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5763 fi
5764 fi
5765 fi
5766 fi
5767 ;;
5768 -R*)
5769 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5770 if test "$enable_rpath" != no; then
5771 haveit=
5772 for x in $rpathdirs; do
5773 if test "X$x" = "X$dir"; then
5774 haveit=yes
5775 break
5776 fi
5777 done
5778 if test -z "$haveit"; then
5779 rpathdirs="$rpathdirs $dir"
5780 fi
5781 haveit=
5782 for x in $ltrpathdirs; do
5783 if test "X$x" = "X$dir"; then
5784 haveit=yes
5785 break
5786 fi
5787 done
5788 if test -z "$haveit"; then
5789 ltrpathdirs="$ltrpathdirs $dir"
5790 fi
5791 fi
5792 ;;
5793 -l*)
5794 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5795 ;;
5796 *.la)
5797 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5798 ;;
5799 *)
5800 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5801 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5802 ;;
5803 esac
5804 done
5805 fi
5806 else
5807 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5808 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5809 fi
5810 fi
5811 fi
5812 done
5813 done
5814 if test "X$rpathdirs" != "X"; then
5815 if test -n "$hardcode_libdir_separator"; then
5816 alldirs=
5817 for found_dir in $rpathdirs; do
5818 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5819 done
5820 acl_save_libdir="$libdir"
5821 libdir="$alldirs"
5822 eval flag=\"$hardcode_libdir_flag_spec\"
5823 libdir="$acl_save_libdir"
5824 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5825 else
5826 for found_dir in $rpathdirs; do
5827 acl_save_libdir="$libdir"
5828 libdir="$found_dir"
5829 eval flag=\"$hardcode_libdir_flag_spec\"
5830 libdir="$acl_save_libdir"
5831 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5832 done
5833 fi
5834 fi
5835 if test "X$ltrpathdirs" != "X"; then
5836 for found_dir in $ltrpathdirs; do
5837 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5838 done
5839 fi
5840
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5842 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
5843 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 gt_save_CPPFLAGS="$CPPFLAGS"
5847 CPPFLAGS="$CPPFLAGS $INCINTL"
5848 gt_save_LIBS="$LIBS"
5849 LIBS="$LIBS $LIBINTL"
5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5852 #include <libintl.h>
5853 extern int _nl_msg_cat_cntr;
5854 extern
5855 #ifdef __cplusplus
5856 "C"
5857 #endif
5858 const char *_nl_expand_alias (const char *);
5859 int
5860 main ()
5861 {
5862 bindtextdomain ("", "");
5863 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5864 ;
5865 return 0;
5866 }
5867 _ACEOF
5868 if ac_fn_c_try_link "$LINENO"; then :
5869 gt_cv_func_gnugettext1_libintl=yes
5870 else
5871 gt_cv_func_gnugettext1_libintl=no
5872 fi
5873 rm -f core conftest.err conftest.$ac_objext \
5874 conftest$ac_exeext conftest.$ac_ext
5875 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5876 LIBS="$LIBS $LIBICONV"
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 #include <libintl.h>
5880 extern int _nl_msg_cat_cntr;
5881 extern
5882 #ifdef __cplusplus
5883 "C"
5884 #endif
5885 const char *_nl_expand_alias (const char *);
5886 int
5887 main ()
5888 {
5889 bindtextdomain ("", "");
5890 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5891 ;
5892 return 0;
5893 }
5894 _ACEOF
5895 if ac_fn_c_try_link "$LINENO"; then :
5896 LIBINTL="$LIBINTL $LIBICONV"
5897 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5898 gt_cv_func_gnugettext1_libintl=yes
5899
5900 fi
5901 rm -f core conftest.err conftest.$ac_objext \
5902 conftest$ac_exeext conftest.$ac_ext
5903 fi
5904 CPPFLAGS="$gt_save_CPPFLAGS"
5905 LIBS="$gt_save_LIBS"
5906 fi
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
5908 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
5909 fi
5910
5911 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5912 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5913 && test "$PACKAGE" != gettext-runtime \
5914 && test "$PACKAGE" != gettext-tools; }; then
5915 gt_use_preinstalled_gnugettext=yes
5916 else
5917 LIBINTL=
5918 LTLIBINTL=
5919 INCINTL=
5920 fi
5921
5922
5923
5924 if test -n "$INTL_MACOSX_LIBS"; then
5925 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5926 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5927 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
5928 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
5929 fi
5930 fi
5931
5932 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5933 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5934
5935 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5936
5937 else
5938 USE_NLS=no
5939 fi
5940 fi
5941
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
5943 $as_echo_n "checking whether to use NLS... " >&6; }
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5945 $as_echo "$USE_NLS" >&6; }
5946 if test "$USE_NLS" = "yes"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
5948 $as_echo_n "checking where the gettext function comes from... " >&6; }
5949 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5950 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5951 gt_source="external libintl"
5952 else
5953 gt_source="libc"
5954 fi
5955 else
5956 gt_source="included intl directory"
5957 fi
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
5959 $as_echo "$gt_source" >&6; }
5960 fi
5961
5962 if test "$USE_NLS" = "yes"; then
5963
5964 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5965 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5967 $as_echo_n "checking how to link with libintl... " >&6; }
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5969 $as_echo "$LIBINTL" >&6; }
5970
5971 for element in $INCINTL; do
5972 haveit=
5973 for x in $CPPFLAGS; do
5974
5975 acl_save_prefix="$prefix"
5976 prefix="$acl_final_prefix"
5977 acl_save_exec_prefix="$exec_prefix"
5978 exec_prefix="$acl_final_exec_prefix"
5979 eval x=\"$x\"
5980 exec_prefix="$acl_save_exec_prefix"
5981 prefix="$acl_save_prefix"
5982
5983 if test "X$x" = "X$element"; then
5984 haveit=yes
5985 break
5986 fi
5987 done
5988 if test -z "$haveit"; then
5989 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5990 fi
5991 done
5992
5993 fi
5994
5995
5996 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5997
5998
5999 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6000
6001 fi
6002
6003 POSUB=po
6004 fi
6005
6006
6007
6008 INTLLIBS="$LIBINTL"
6009
6010
6011
6012
6013
6014
6015
6016 case `pwd` in
6017 *\ * | *\ *)
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6019 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6020 esac
6021
6022
6023
6024 macro_version='2.2.6b'
6025 macro_revision='1.3017'
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039 ltmain="$ac_aux_dir/ltmain.sh"
6040
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6042 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6043 if test "${ac_cv_path_SED+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6047 for ac_i in 1 2 3 4 5 6 7; do
6048 ac_script="$ac_script$as_nl$ac_script"
6049 done
6050 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6051 { ac_script=; unset ac_script;}
6052 if test -z "$SED"; then
6053 ac_path_SED_found=false
6054 # Loop through the user's path and test for each of PROGNAME-LIST
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
6060 for ac_prog in sed gsed; do
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6063 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6064 # Check for GNU ac_path_SED and select it if it is found.
6065 # Check for GNU $ac_path_SED
6066 case `"$ac_path_SED" --version 2>&1` in
6067 *GNU*)
6068 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6069 *)
6070 ac_count=0
6071 $as_echo_n 0123456789 >"conftest.in"
6072 while :
6073 do
6074 cat "conftest.in" "conftest.in" >"conftest.tmp"
6075 mv "conftest.tmp" "conftest.in"
6076 cp "conftest.in" "conftest.nl"
6077 $as_echo '' >> "conftest.nl"
6078 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6080 as_fn_arith $ac_count + 1 && ac_count=$as_val
6081 if test $ac_count -gt ${ac_path_SED_max-0}; then
6082 # Best one so far, save it but keep looking for a better one
6083 ac_cv_path_SED="$ac_path_SED"
6084 ac_path_SED_max=$ac_count
6085 fi
6086 # 10*(2^10) chars as input seems more than enough
6087 test $ac_count -gt 10 && break
6088 done
6089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6090 esac
6091
6092 $ac_path_SED_found && break 3
6093 done
6094 done
6095 done
6096 IFS=$as_save_IFS
6097 if test -z "$ac_cv_path_SED"; then
6098 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6099 fi
6100 else
6101 ac_cv_path_SED=$SED
6102 fi
6103
6104 fi
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6106 $as_echo "$ac_cv_path_SED" >&6; }
6107 SED="$ac_cv_path_SED"
6108 rm -f conftest.sed
6109
6110 test -z "$SED" && SED=sed
6111 Xsed="$SED -e 1s/^X//"
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6124 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6125 if test "${ac_cv_path_GREP+set}" = set; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 if test -z "$GREP"; then
6129 ac_path_GREP_found=false
6130 # Loop through the user's path and test for each of PROGNAME-LIST
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6133 do
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_prog in grep ggrep; do
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6139 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6140 # Check for GNU ac_path_GREP and select it if it is found.
6141 # Check for GNU $ac_path_GREP
6142 case `"$ac_path_GREP" --version 2>&1` in
6143 *GNU*)
6144 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6145 *)
6146 ac_count=0
6147 $as_echo_n 0123456789 >"conftest.in"
6148 while :
6149 do
6150 cat "conftest.in" "conftest.in" >"conftest.tmp"
6151 mv "conftest.tmp" "conftest.in"
6152 cp "conftest.in" "conftest.nl"
6153 $as_echo 'GREP' >> "conftest.nl"
6154 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6156 as_fn_arith $ac_count + 1 && ac_count=$as_val
6157 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6158 # Best one so far, save it but keep looking for a better one
6159 ac_cv_path_GREP="$ac_path_GREP"
6160 ac_path_GREP_max=$ac_count
6161 fi
6162 # 10*(2^10) chars as input seems more than enough
6163 test $ac_count -gt 10 && break
6164 done
6165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6166 esac
6167
6168 $ac_path_GREP_found && break 3
6169 done
6170 done
6171 done
6172 IFS=$as_save_IFS
6173 if test -z "$ac_cv_path_GREP"; then
6174 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6175 fi
6176 else
6177 ac_cv_path_GREP=$GREP
6178 fi
6179
6180 fi
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6182 $as_echo "$ac_cv_path_GREP" >&6; }
6183 GREP="$ac_cv_path_GREP"
6184
6185
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6187 $as_echo_n "checking for egrep... " >&6; }
6188 if test "${ac_cv_path_EGREP+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6192 then ac_cv_path_EGREP="$GREP -E"
6193 else
6194 if test -z "$EGREP"; then
6195 ac_path_EGREP_found=false
6196 # Loop through the user's path and test for each of PROGNAME-LIST
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6199 do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_prog in egrep; do
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6205 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6206 # Check for GNU ac_path_EGREP and select it if it is found.
6207 # Check for GNU $ac_path_EGREP
6208 case `"$ac_path_EGREP" --version 2>&1` in
6209 *GNU*)
6210 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6211 *)
6212 ac_count=0
6213 $as_echo_n 0123456789 >"conftest.in"
6214 while :
6215 do
6216 cat "conftest.in" "conftest.in" >"conftest.tmp"
6217 mv "conftest.tmp" "conftest.in"
6218 cp "conftest.in" "conftest.nl"
6219 $as_echo 'EGREP' >> "conftest.nl"
6220 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6222 as_fn_arith $ac_count + 1 && ac_count=$as_val
6223 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6224 # Best one so far, save it but keep looking for a better one
6225 ac_cv_path_EGREP="$ac_path_EGREP"
6226 ac_path_EGREP_max=$ac_count
6227 fi
6228 # 10*(2^10) chars as input seems more than enough
6229 test $ac_count -gt 10 && break
6230 done
6231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6232 esac
6233
6234 $ac_path_EGREP_found && break 3
6235 done
6236 done
6237 done
6238 IFS=$as_save_IFS
6239 if test -z "$ac_cv_path_EGREP"; then
6240 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6241 fi
6242 else
6243 ac_cv_path_EGREP=$EGREP
6244 fi
6245
6246 fi
6247 fi
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6249 $as_echo "$ac_cv_path_EGREP" >&6; }
6250 EGREP="$ac_cv_path_EGREP"
6251
6252
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6254 $as_echo_n "checking for fgrep... " >&6; }
6255 if test "${ac_cv_path_FGREP+set}" = set; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6259 then ac_cv_path_FGREP="$GREP -F"
6260 else
6261 if test -z "$FGREP"; then
6262 ac_path_FGREP_found=false
6263 # Loop through the user's path and test for each of PROGNAME-LIST
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6266 do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_prog in fgrep; do
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6272 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6273 # Check for GNU ac_path_FGREP and select it if it is found.
6274 # Check for GNU $ac_path_FGREP
6275 case `"$ac_path_FGREP" --version 2>&1` in
6276 *GNU*)
6277 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6278 *)
6279 ac_count=0
6280 $as_echo_n 0123456789 >"conftest.in"
6281 while :
6282 do
6283 cat "conftest.in" "conftest.in" >"conftest.tmp"
6284 mv "conftest.tmp" "conftest.in"
6285 cp "conftest.in" "conftest.nl"
6286 $as_echo 'FGREP' >> "conftest.nl"
6287 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6288 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6289 as_fn_arith $ac_count + 1 && ac_count=$as_val
6290 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6291 # Best one so far, save it but keep looking for a better one
6292 ac_cv_path_FGREP="$ac_path_FGREP"
6293 ac_path_FGREP_max=$ac_count
6294 fi
6295 # 10*(2^10) chars as input seems more than enough
6296 test $ac_count -gt 10 && break
6297 done
6298 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6299 esac
6300
6301 $ac_path_FGREP_found && break 3
6302 done
6303 done
6304 done
6305 IFS=$as_save_IFS
6306 if test -z "$ac_cv_path_FGREP"; then
6307 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6308 fi
6309 else
6310 ac_cv_path_FGREP=$FGREP
6311 fi
6312
6313 fi
6314 fi
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6316 $as_echo "$ac_cv_path_FGREP" >&6; }
6317 FGREP="$ac_cv_path_FGREP"
6318
6319
6320 test -z "$GREP" && GREP=grep
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340 # Check whether --with-gnu-ld was given.
6341 if test "${with_gnu_ld+set}" = set; then :
6342 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6343 else
6344 with_gnu_ld=no
6345 fi
6346
6347 ac_prog=ld
6348 if test "$GCC" = yes; then
6349 # Check if gcc -print-prog-name=ld gives a path.
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6351 $as_echo_n "checking for ld used by $CC... " >&6; }
6352 case $host in
6353 *-*-mingw*)
6354 # gcc leaves a trailing carriage return which upsets mingw
6355 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6356 *)
6357 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6358 esac
6359 case $ac_prog in
6360 # Accept absolute paths.
6361 [\\/]* | ?:[\\/]*)
6362 re_direlt='/[^/][^/]*/\.\./'
6363 # Canonicalize the pathname of ld
6364 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6365 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6366 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6367 done
6368 test -z "$LD" && LD="$ac_prog"
6369 ;;
6370 "")
6371 # If it fails, then pretend we aren't using GCC.
6372 ac_prog=ld
6373 ;;
6374 *)
6375 # If it is relative, then search for the first ld in PATH.
6376 with_gnu_ld=unknown
6377 ;;
6378 esac
6379 elif test "$with_gnu_ld" = yes; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6381 $as_echo_n "checking for GNU ld... " >&6; }
6382 else
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6384 $as_echo_n "checking for non-GNU ld... " >&6; }
6385 fi
6386 if test "${lt_cv_path_LD+set}" = set; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389 if test -z "$LD"; then
6390 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6391 for ac_dir in $PATH; do
6392 IFS="$lt_save_ifs"
6393 test -z "$ac_dir" && ac_dir=.
6394 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6395 lt_cv_path_LD="$ac_dir/$ac_prog"
6396 # Check to see if the program is GNU ld. I'd rather use --version,
6397 # but apparently some variants of GNU ld only accept -v.
6398 # Break only if it was the GNU/non-GNU ld that we prefer.
6399 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6400 *GNU* | *'with BFD'*)
6401 test "$with_gnu_ld" != no && break
6402 ;;
6403 *)
6404 test "$with_gnu_ld" != yes && break
6405 ;;
6406 esac
6407 fi
6408 done
6409 IFS="$lt_save_ifs"
6410 else
6411 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6412 fi
6413 fi
6414
6415 LD="$lt_cv_path_LD"
6416 if test -n "$LD"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6418 $as_echo "$LD" >&6; }
6419 else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6425 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6426 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6427 $as_echo_n "(cached) " >&6
6428 else
6429 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6430 case `$LD -v 2>&1 </dev/null` in
6431 *GNU* | *'with BFD'*)
6432 lt_cv_prog_gnu_ld=yes
6433 ;;
6434 *)
6435 lt_cv_prog_gnu_ld=no
6436 ;;
6437 esac
6438 fi
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6440 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6441 with_gnu_ld=$lt_cv_prog_gnu_ld
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6452 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6453 if test "${lt_cv_path_NM+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 if test -n "$NM"; then
6457 # Let the user override the test.
6458 lt_cv_path_NM="$NM"
6459 else
6460 lt_nm_to_check="${ac_tool_prefix}nm"
6461 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6462 lt_nm_to_check="$lt_nm_to_check nm"
6463 fi
6464 for lt_tmp_nm in $lt_nm_to_check; do
6465 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6466 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6467 IFS="$lt_save_ifs"
6468 test -z "$ac_dir" && ac_dir=.
6469 tmp_nm="$ac_dir/$lt_tmp_nm"
6470 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6471 # Check to see if the nm accepts a BSD-compat flag.
6472 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6473 # nm: unknown option "B" ignored
6474 # Tru64's nm complains that /dev/null is an invalid object file
6475 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6476 */dev/null* | *'Invalid file or object type'*)
6477 lt_cv_path_NM="$tmp_nm -B"
6478 break
6479 ;;
6480 *)
6481 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6482 */dev/null*)
6483 lt_cv_path_NM="$tmp_nm -p"
6484 break
6485 ;;
6486 *)
6487 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6488 continue # so that we can try to find one that supports BSD flags
6489 ;;
6490 esac
6491 ;;
6492 esac
6493 fi
6494 done
6495 IFS="$lt_save_ifs"
6496 done
6497 : ${lt_cv_path_NM=no}
6498 fi
6499 fi
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6501 $as_echo "$lt_cv_path_NM" >&6; }
6502 if test "$lt_cv_path_NM" != "no"; then
6503 NM="$lt_cv_path_NM"
6504 else
6505 # Didn't find any BSD compatible name lister, look for dumpbin.
6506 if test -n "$ac_tool_prefix"; then
6507 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6508 do
6509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6510 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 if test -n "$DUMPBIN"; then
6517 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534 fi
6535 fi
6536 DUMPBIN=$ac_cv_prog_DUMPBIN
6537 if test -n "$DUMPBIN"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6539 $as_echo "$DUMPBIN" >&6; }
6540 else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542 $as_echo "no" >&6; }
6543 fi
6544
6545
6546 test -n "$DUMPBIN" && break
6547 done
6548 fi
6549 if test -z "$DUMPBIN"; then
6550 ac_ct_DUMPBIN=$DUMPBIN
6551 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6552 do
6553 # Extract the first word of "$ac_prog", so it can be a program name with args.
6554 set dummy $ac_prog; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 if test -n "$ac_ct_DUMPBIN"; then
6561 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 break 2
6573 fi
6574 done
6575 done
6576 IFS=$as_save_IFS
6577
6578 fi
6579 fi
6580 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6581 if test -n "$ac_ct_DUMPBIN"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6583 $as_echo "$ac_ct_DUMPBIN" >&6; }
6584 else
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6587 fi
6588
6589
6590 test -n "$ac_ct_DUMPBIN" && break
6591 done
6592
6593 if test "x$ac_ct_DUMPBIN" = x; then
6594 DUMPBIN=":"
6595 else
6596 case $cross_compiling:$ac_tool_warned in
6597 yes:)
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6600 ac_tool_warned=yes ;;
6601 esac
6602 DUMPBIN=$ac_ct_DUMPBIN
6603 fi
6604 fi
6605
6606
6607 if test "$DUMPBIN" != ":"; then
6608 NM="$DUMPBIN"
6609 fi
6610 fi
6611 test -z "$NM" && NM=nm
6612
6613
6614
6615
6616
6617
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6619 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6620 if test "${lt_cv_nm_interface+set}" = set; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 lt_cv_nm_interface="BSD nm"
6624 echo "int some_variable = 0;" > conftest.$ac_ext
6625 (eval echo "\"\$as_me:6625: $ac_compile\"" >&5)
6626 (eval "$ac_compile" 2>conftest.err)
6627 cat conftest.err >&5
6628 (eval echo "\"\$as_me:6628: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6629 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6630 cat conftest.err >&5
6631 (eval echo "\"\$as_me:6631: output\"" >&5)
6632 cat conftest.out >&5
6633 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6634 lt_cv_nm_interface="MS dumpbin"
6635 fi
6636 rm -f conftest*
6637 fi
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6639 $as_echo "$lt_cv_nm_interface" >&6; }
6640
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6642 $as_echo_n "checking whether ln -s works... " >&6; }
6643 LN_S=$as_ln_s
6644 if test "$LN_S" = "ln -s"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6646 $as_echo "yes" >&6; }
6647 else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6649 $as_echo "no, using $LN_S" >&6; }
6650 fi
6651
6652 # find the maximum length of command line arguments
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6654 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6655 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6658 i=0
6659 teststring="ABCD"
6660
6661 case $build_os in
6662 msdosdjgpp*)
6663 # On DJGPP, this test can blow up pretty badly due to problems in libc
6664 # (any single argument exceeding 2000 bytes causes a buffer overrun
6665 # during glob expansion). Even if it were fixed, the result of this
6666 # check would be larger than it should be.
6667 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6668 ;;
6669
6670 gnu*)
6671 # Under GNU Hurd, this test is not required because there is
6672 # no limit to the length of command line arguments.
6673 # Libtool will interpret -1 as no limit whatsoever
6674 lt_cv_sys_max_cmd_len=-1;
6675 ;;
6676
6677 cygwin* | mingw* | cegcc*)
6678 # On Win9x/ME, this test blows up -- it succeeds, but takes
6679 # about 5 minutes as the teststring grows exponentially.
6680 # Worse, since 9x/ME are not pre-emptively multitasking,
6681 # you end up with a "frozen" computer, even though with patience
6682 # the test eventually succeeds (with a max line length of 256k).
6683 # Instead, let's just punt: use the minimum linelength reported by
6684 # all of the supported platforms: 8192 (on NT/2K/XP).
6685 lt_cv_sys_max_cmd_len=8192;
6686 ;;
6687
6688 amigaos*)
6689 # On AmigaOS with pdksh, this test takes hours, literally.
6690 # So we just punt and use a minimum line length of 8192.
6691 lt_cv_sys_max_cmd_len=8192;
6692 ;;
6693
6694 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6695 # This has been around since 386BSD, at least. Likely further.
6696 if test -x /sbin/sysctl; then
6697 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6698 elif test -x /usr/sbin/sysctl; then
6699 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6700 else
6701 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6702 fi
6703 # And add a safety zone
6704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6706 ;;
6707
6708 interix*)
6709 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6710 lt_cv_sys_max_cmd_len=196608
6711 ;;
6712
6713 osf*)
6714 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6715 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6716 # nice to cause kernel panics so lets avoid the loop below.
6717 # First set a reasonable default.
6718 lt_cv_sys_max_cmd_len=16384
6719 #
6720 if test -x /sbin/sysconfig; then
6721 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6722 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6723 esac
6724 fi
6725 ;;
6726 sco3.2v5*)
6727 lt_cv_sys_max_cmd_len=102400
6728 ;;
6729 sysv5* | sco5v6* | sysv4.2uw2*)
6730 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6731 if test -n "$kargmax"; then
6732 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6733 else
6734 lt_cv_sys_max_cmd_len=32768
6735 fi
6736 ;;
6737 *)
6738 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6739 if test -n "$lt_cv_sys_max_cmd_len"; then
6740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6742 else
6743 # Make teststring a little bigger before we do anything with it.
6744 # a 1K string should be a reasonable start.
6745 for i in 1 2 3 4 5 6 7 8 ; do
6746 teststring=$teststring$teststring
6747 done
6748 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6749 # If test is not a shell built-in, we'll probably end up computing a
6750 # maximum length that is only half of the actual maximum length, but
6751 # we can't tell.
6752 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6753 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6754 test $i != 17 # 1/2 MB should be enough
6755 do
6756 i=`expr $i + 1`
6757 teststring=$teststring$teststring
6758 done
6759 # Only check the string length outside the loop.
6760 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6761 teststring=
6762 # Add a significant safety factor because C++ compilers can tack on
6763 # massive amounts of additional arguments before passing them to the
6764 # linker. It appears as though 1/2 is a usable value.
6765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6766 fi
6767 ;;
6768 esac
6769
6770 fi
6771
6772 if test -n $lt_cv_sys_max_cmd_len ; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6774 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6775 else
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6777 $as_echo "none" >&6; }
6778 fi
6779 max_cmd_len=$lt_cv_sys_max_cmd_len
6780
6781
6782
6783
6784
6785
6786 : ${CP="cp -f"}
6787 : ${MV="mv -f"}
6788 : ${RM="rm -f"}
6789
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6791 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6792 # Try some XSI features
6793 xsi_shell=no
6794 ( _lt_dummy="a/b/c"
6795 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6796 = c,a/b,, \
6797 && eval 'test $(( 1 + 1 )) -eq 2 \
6798 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6799 && xsi_shell=yes
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6801 $as_echo "$xsi_shell" >&6; }
6802
6803
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6805 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6806 lt_shell_append=no
6807 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6808 >/dev/null 2>&1 \
6809 && lt_shell_append=yes
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6811 $as_echo "$lt_shell_append" >&6; }
6812
6813
6814 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6815 lt_unset=unset
6816 else
6817 lt_unset=false
6818 fi
6819
6820
6821
6822
6823
6824 # test EBCDIC or ASCII
6825 case `echo X|tr X '\101'` in
6826 A) # ASCII based system
6827 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6828 lt_SP2NL='tr \040 \012'
6829 lt_NL2SP='tr \015\012 \040\040'
6830 ;;
6831 *) # EBCDIC based system
6832 lt_SP2NL='tr \100 \n'
6833 lt_NL2SP='tr \r\n \100\100'
6834 ;;
6835 esac
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6846 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6847 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 lt_cv_ld_reload_flag='-r'
6851 fi
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6853 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6854 reload_flag=$lt_cv_ld_reload_flag
6855 case $reload_flag in
6856 "" | " "*) ;;
6857 *) reload_flag=" $reload_flag" ;;
6858 esac
6859 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6860 case $host_os in
6861 darwin*)
6862 if test "$GCC" = yes; then
6863 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6864 else
6865 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6866 fi
6867 ;;
6868 esac
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878 if test -n "$ac_tool_prefix"; then
6879 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6880 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 if test -n "$OBJDUMP"; then
6887 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904 fi
6905 fi
6906 OBJDUMP=$ac_cv_prog_OBJDUMP
6907 if test -n "$OBJDUMP"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6909 $as_echo "$OBJDUMP" >&6; }
6910 else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6913 fi
6914
6915
6916 fi
6917 if test -z "$ac_cv_prog_OBJDUMP"; then
6918 ac_ct_OBJDUMP=$OBJDUMP
6919 # Extract the first word of "objdump", so it can be a program name with args.
6920 set dummy objdump; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 if test -n "$ac_ct_OBJDUMP"; then
6927 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6931 do
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6939 fi
6940 done
6941 done
6942 IFS=$as_save_IFS
6943
6944 fi
6945 fi
6946 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6947 if test -n "$ac_ct_OBJDUMP"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6949 $as_echo "$ac_ct_OBJDUMP" >&6; }
6950 else
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6953 fi
6954
6955 if test "x$ac_ct_OBJDUMP" = x; then
6956 OBJDUMP="false"
6957 else
6958 case $cross_compiling:$ac_tool_warned in
6959 yes:)
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6962 ac_tool_warned=yes ;;
6963 esac
6964 OBJDUMP=$ac_ct_OBJDUMP
6965 fi
6966 else
6967 OBJDUMP="$ac_cv_prog_OBJDUMP"
6968 fi
6969
6970 test -z "$OBJDUMP" && OBJDUMP=objdump
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6981 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6982 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6983 $as_echo_n "(cached) " >&6
6984 else
6985 lt_cv_file_magic_cmd='$MAGIC_CMD'
6986 lt_cv_file_magic_test_file=
6987 lt_cv_deplibs_check_method='unknown'
6988 # Need to set the preceding variable on all platforms that support
6989 # interlibrary dependencies.
6990 # 'none' -- dependencies not supported.
6991 # `unknown' -- same as none, but documents that we really don't know.
6992 # 'pass_all' -- all dependencies passed with no checks.
6993 # 'test_compile' -- check by making test program.
6994 # 'file_magic [[regex]]' -- check by looking for files in library path
6995 # which responds to the $file_magic_cmd with a given extended regex.
6996 # If you have `file' or equivalent on your system and you're not sure
6997 # whether `pass_all' will *always* work, you probably want this one.
6998
6999 case $host_os in
7000 aix[4-9]*)
7001 lt_cv_deplibs_check_method=pass_all
7002 ;;
7003
7004 beos*)
7005 lt_cv_deplibs_check_method=pass_all
7006 ;;
7007
7008 bsdi[45]*)
7009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7010 lt_cv_file_magic_cmd='/usr/bin/file -L'
7011 lt_cv_file_magic_test_file=/shlib/libc.so
7012 ;;
7013
7014 cygwin*)
7015 # func_win32_libid is a shell function defined in ltmain.sh
7016 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7017 lt_cv_file_magic_cmd='func_win32_libid'
7018 ;;
7019
7020 mingw* | pw32*)
7021 # Base MSYS/MinGW do not provide the 'file' command needed by
7022 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7023 # unless we find 'file', for example because we are cross-compiling.
7024 if ( file / ) >/dev/null 2>&1; then
7025 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7026 lt_cv_file_magic_cmd='func_win32_libid'
7027 else
7028 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7029 lt_cv_file_magic_cmd='$OBJDUMP -f'
7030 fi
7031 ;;
7032
7033 cegcc)
7034 # use the weaker test based on 'objdump'. See mingw*.
7035 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7036 lt_cv_file_magic_cmd='$OBJDUMP -f'
7037 ;;
7038
7039 darwin* | rhapsody*)
7040 lt_cv_deplibs_check_method=pass_all
7041 ;;
7042
7043 freebsd* | dragonfly*)
7044 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7045 case $host_cpu in
7046 i*86 )
7047 # Not sure whether the presence of OpenBSD here was a mistake.
7048 # Let's accept both of them until this is cleared up.
7049 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7050 lt_cv_file_magic_cmd=/usr/bin/file
7051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7052 ;;
7053 esac
7054 else
7055 lt_cv_deplibs_check_method=pass_all
7056 fi
7057 ;;
7058
7059 gnu*)
7060 lt_cv_deplibs_check_method=pass_all
7061 ;;
7062
7063 hpux10.20* | hpux11*)
7064 lt_cv_file_magic_cmd=/usr/bin/file
7065 case $host_cpu in
7066 ia64*)
7067 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7068 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7069 ;;
7070 hppa*64*)
7071 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]'
7072 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7073 ;;
7074 *)
7075 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7076 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7077 ;;
7078 esac
7079 ;;
7080
7081 interix[3-9]*)
7082 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7084 ;;
7085
7086 irix5* | irix6* | nonstopux*)
7087 case $LD in
7088 *-32|*"-32 ") libmagic=32-bit;;
7089 *-n32|*"-n32 ") libmagic=N32;;
7090 *-64|*"-64 ") libmagic=64-bit;;
7091 *) libmagic=never-match;;
7092 esac
7093 lt_cv_deplibs_check_method=pass_all
7094 ;;
7095
7096 # This must be Linux ELF.
7097 linux* | k*bsd*-gnu)
7098 lt_cv_deplibs_check_method=pass_all
7099 ;;
7100
7101 netbsd*)
7102 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7104 else
7105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7106 fi
7107 ;;
7108
7109 newos6*)
7110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7111 lt_cv_file_magic_cmd=/usr/bin/file
7112 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7113 ;;
7114
7115 *nto* | *qnx*)
7116 lt_cv_deplibs_check_method=pass_all
7117 ;;
7118
7119 openbsd*)
7120 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7122 else
7123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7124 fi
7125 ;;
7126
7127 osf3* | osf4* | osf5*)
7128 lt_cv_deplibs_check_method=pass_all
7129 ;;
7130
7131 rdos*)
7132 lt_cv_deplibs_check_method=pass_all
7133 ;;
7134
7135 solaris*)
7136 lt_cv_deplibs_check_method=pass_all
7137 ;;
7138
7139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7140 lt_cv_deplibs_check_method=pass_all
7141 ;;
7142
7143 sysv4 | sysv4.3*)
7144 case $host_vendor in
7145 motorola)
7146 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]'
7147 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7148 ;;
7149 ncr)
7150 lt_cv_deplibs_check_method=pass_all
7151 ;;
7152 sequent)
7153 lt_cv_file_magic_cmd='/bin/file'
7154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7155 ;;
7156 sni)
7157 lt_cv_file_magic_cmd='/bin/file'
7158 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7159 lt_cv_file_magic_test_file=/lib/libc.so
7160 ;;
7161 siemens)
7162 lt_cv_deplibs_check_method=pass_all
7163 ;;
7164 pc)
7165 lt_cv_deplibs_check_method=pass_all
7166 ;;
7167 esac
7168 ;;
7169
7170 tpf*)
7171 lt_cv_deplibs_check_method=pass_all
7172 ;;
7173 esac
7174
7175 fi
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7177 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7178 file_magic_cmd=$lt_cv_file_magic_cmd
7179 deplibs_check_method=$lt_cv_deplibs_check_method
7180 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193 if test -n "$ac_tool_prefix"; then
7194 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7195 set dummy ${ac_tool_prefix}ar; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if test "${ac_cv_prog_AR+set}" = set; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 if test -n "$AR"; then
7202 ac_cv_prog_AR="$AR" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_prog_AR="${ac_tool_prefix}ar"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7214 fi
7215 done
7216 done
7217 IFS=$as_save_IFS
7218
7219 fi
7220 fi
7221 AR=$ac_cv_prog_AR
7222 if test -n "$AR"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7224 $as_echo "$AR" >&6; }
7225 else
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7228 fi
7229
7230
7231 fi
7232 if test -z "$ac_cv_prog_AR"; then
7233 ac_ct_AR=$AR
7234 # Extract the first word of "ar", so it can be a program name with args.
7235 set dummy ar; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 if test -n "$ac_ct_AR"; then
7242 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_prog_ac_ct_AR="ar"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7254 fi
7255 done
7256 done
7257 IFS=$as_save_IFS
7258
7259 fi
7260 fi
7261 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7262 if test -n "$ac_ct_AR"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7264 $as_echo "$ac_ct_AR" >&6; }
7265 else
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7268 fi
7269
7270 if test "x$ac_ct_AR" = x; then
7271 AR="false"
7272 else
7273 case $cross_compiling:$ac_tool_warned in
7274 yes:)
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277 ac_tool_warned=yes ;;
7278 esac
7279 AR=$ac_ct_AR
7280 fi
7281 else
7282 AR="$ac_cv_prog_AR"
7283 fi
7284
7285 test -z "$AR" && AR=ar
7286 test -z "$AR_FLAGS" && AR_FLAGS=cru
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298 if test -n "$ac_tool_prefix"; then
7299 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7300 set dummy ${ac_tool_prefix}strip; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if test "${ac_cv_prog_STRIP+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 if test -n "$STRIP"; then
7307 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7308 else
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 break 2
7319 fi
7320 done
7321 done
7322 IFS=$as_save_IFS
7323
7324 fi
7325 fi
7326 STRIP=$ac_cv_prog_STRIP
7327 if test -n "$STRIP"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7329 $as_echo "$STRIP" >&6; }
7330 else
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7333 fi
7334
7335
7336 fi
7337 if test -z "$ac_cv_prog_STRIP"; then
7338 ac_ct_STRIP=$STRIP
7339 # Extract the first word of "strip", so it can be a program name with args.
7340 set dummy strip; ac_word=$2
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 $as_echo_n "checking for $ac_word... " >&6; }
7343 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7344 $as_echo_n "(cached) " >&6
7345 else
7346 if test -n "$ac_ct_STRIP"; then
7347 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7348 else
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7356 ac_cv_prog_ac_ct_STRIP="strip"
7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7359 fi
7360 done
7361 done
7362 IFS=$as_save_IFS
7363
7364 fi
7365 fi
7366 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7367 if test -n "$ac_ct_STRIP"; then
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7369 $as_echo "$ac_ct_STRIP" >&6; }
7370 else
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7373 fi
7374
7375 if test "x$ac_ct_STRIP" = x; then
7376 STRIP=":"
7377 else
7378 case $cross_compiling:$ac_tool_warned in
7379 yes:)
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7382 ac_tool_warned=yes ;;
7383 esac
7384 STRIP=$ac_ct_STRIP
7385 fi
7386 else
7387 STRIP="$ac_cv_prog_STRIP"
7388 fi
7389
7390 test -z "$STRIP" && STRIP=:
7391
7392
7393
7394
7395
7396
7397 if test -n "$ac_tool_prefix"; then
7398 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7399 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7401 $as_echo_n "checking for $ac_word... " >&6; }
7402 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7403 $as_echo_n "(cached) " >&6
7404 else
7405 if test -n "$RANLIB"; then
7406 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7407 else
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 for as_dir in $PATH
7410 do
7411 IFS=$as_save_IFS
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7415 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 break 2
7418 fi
7419 done
7420 done
7421 IFS=$as_save_IFS
7422
7423 fi
7424 fi
7425 RANLIB=$ac_cv_prog_RANLIB
7426 if test -n "$RANLIB"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7428 $as_echo "$RANLIB" >&6; }
7429 else
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7432 fi
7433
7434
7435 fi
7436 if test -z "$ac_cv_prog_RANLIB"; then
7437 ac_ct_RANLIB=$RANLIB
7438 # Extract the first word of "ranlib", so it can be a program name with args.
7439 set dummy ranlib; ac_word=$2
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441 $as_echo_n "checking for $ac_word... " >&6; }
7442 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7443 $as_echo_n "(cached) " >&6
7444 else
7445 if test -n "$ac_ct_RANLIB"; then
7446 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7447 else
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7450 do
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7455 ac_cv_prog_ac_ct_RANLIB="ranlib"
7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 break 2
7458 fi
7459 done
7460 done
7461 IFS=$as_save_IFS
7462
7463 fi
7464 fi
7465 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7466 if test -n "$ac_ct_RANLIB"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7468 $as_echo "$ac_ct_RANLIB" >&6; }
7469 else
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471 $as_echo "no" >&6; }
7472 fi
7473
7474 if test "x$ac_ct_RANLIB" = x; then
7475 RANLIB=":"
7476 else
7477 case $cross_compiling:$ac_tool_warned in
7478 yes:)
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7481 ac_tool_warned=yes ;;
7482 esac
7483 RANLIB=$ac_ct_RANLIB
7484 fi
7485 else
7486 RANLIB="$ac_cv_prog_RANLIB"
7487 fi
7488
7489 test -z "$RANLIB" && RANLIB=:
7490
7491
7492
7493
7494
7495
7496 # Determine commands to create old-style static archives.
7497 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7498 old_postinstall_cmds='chmod 644 $oldlib'
7499 old_postuninstall_cmds=
7500
7501 if test -n "$RANLIB"; then
7502 case $host_os in
7503 openbsd*)
7504 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7505 ;;
7506 *)
7507 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7508 ;;
7509 esac
7510 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7511 fi
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546 # If no C compiler was specified, use CC.
7547 LTCC=${LTCC-"$CC"}
7548
7549 # If no C compiler flags were specified, use CFLAGS.
7550 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7551
7552 # Allow CC to be a program name with arguments.
7553 compiler=$CC
7554
7555
7556 # Check for command to grab the raw symbol name followed by C symbol from nm.
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7558 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7559 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562
7563 # These are sane defaults that work on at least a few old systems.
7564 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7565
7566 # Character class describing NM global symbol codes.
7567 symcode='[BCDEGRST]'
7568
7569 # Regexp to match symbols that can be accessed directly from C.
7570 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7571
7572 # Define system-specific variables.
7573 case $host_os in
7574 aix*)
7575 symcode='[BCDT]'
7576 ;;
7577 cygwin* | mingw* | pw32* | cegcc*)
7578 symcode='[ABCDGISTW]'
7579 ;;
7580 hpux*)
7581 if test "$host_cpu" = ia64; then
7582 symcode='[ABCDEGRST]'
7583 fi
7584 ;;
7585 irix* | nonstopux*)
7586 symcode='[BCDEGRST]'
7587 ;;
7588 osf*)
7589 symcode='[BCDEGQRST]'
7590 ;;
7591 solaris*)
7592 symcode='[BDRT]'
7593 ;;
7594 sco3.2v5*)
7595 symcode='[DT]'
7596 ;;
7597 sysv4.2uw2*)
7598 symcode='[DT]'
7599 ;;
7600 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7601 symcode='[ABDT]'
7602 ;;
7603 sysv4)
7604 symcode='[DFNSTU]'
7605 ;;
7606 esac
7607
7608 # If we're using GNU nm, then use its standard symbol codes.
7609 case `$NM -V 2>&1` in
7610 *GNU* | *'with BFD'*)
7611 symcode='[ABCDGIRSTW]' ;;
7612 esac
7613
7614 # Transform an extracted symbol line into a proper C declaration.
7615 # Some systems (esp. on ia64) link data and code symbols differently,
7616 # so use this general approach.
7617 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7618
7619 # Transform an extracted symbol line into symbol name and symbol address
7620 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7621 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'"
7622
7623 # Handle CRLF in mingw tool chain
7624 opt_cr=
7625 case $build_os in
7626 mingw*)
7627 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7628 ;;
7629 esac
7630
7631 # Try without a prefix underscore, then with it.
7632 for ac_symprfx in "" "_"; do
7633
7634 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7635 symxfrm="\\1 $ac_symprfx\\2 \\2"
7636
7637 # Write the raw and C identifiers.
7638 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7639 # Fake it for dumpbin and say T for any non-static function
7640 # and D for any global variable.
7641 # Also find C++ and __fastcall symbols from MSVC++,
7642 # which start with @ or ?.
7643 lt_cv_sys_global_symbol_pipe="$AWK '"\
7644 " {last_section=section; section=\$ 3};"\
7645 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7646 " \$ 0!~/External *\|/{next};"\
7647 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7648 " {if(hide[section]) next};"\
7649 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7650 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7651 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7652 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7653 " ' prfx=^$ac_symprfx"
7654 else
7655 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7656 fi
7657
7658 # Check to see that the pipe works correctly.
7659 pipe_works=no
7660
7661 rm -f conftest*
7662 cat > conftest.$ac_ext <<_LT_EOF
7663 #ifdef __cplusplus
7664 extern "C" {
7665 #endif
7666 char nm_test_var;
7667 void nm_test_func(void);
7668 void nm_test_func(void){}
7669 #ifdef __cplusplus
7670 }
7671 #endif
7672 int main(){nm_test_var='a';nm_test_func();return(0);}
7673 _LT_EOF
7674
7675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7676 (eval $ac_compile) 2>&5
7677 ac_status=$?
7678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7679 test $ac_status = 0; }; then
7680 # Now try to grab the symbols.
7681 nlist=conftest.nm
7682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7683 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7684 ac_status=$?
7685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7686 test $ac_status = 0; } && test -s "$nlist"; then
7687 # Try sorting and uniquifying the output.
7688 if sort "$nlist" | uniq > "$nlist"T; then
7689 mv -f "$nlist"T "$nlist"
7690 else
7691 rm -f "$nlist"T
7692 fi
7693
7694 # Make sure that we snagged all the symbols we need.
7695 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7696 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7697 cat <<_LT_EOF > conftest.$ac_ext
7698 #ifdef __cplusplus
7699 extern "C" {
7700 #endif
7701
7702 _LT_EOF
7703 # Now generate the symbol file.
7704 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7705
7706 cat <<_LT_EOF >> conftest.$ac_ext
7707
7708 /* The mapping between symbol names and symbols. */
7709 const struct {
7710 const char *name;
7711 void *address;
7712 }
7713 lt__PROGRAM__LTX_preloaded_symbols[] =
7714 {
7715 { "@PROGRAM@", (void *) 0 },
7716 _LT_EOF
7717 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7718 cat <<\_LT_EOF >> conftest.$ac_ext
7719 {0, (void *) 0}
7720 };
7721
7722 /* This works around a problem in FreeBSD linker */
7723 #ifdef FREEBSD_WORKAROUND
7724 static const void *lt_preloaded_setup() {
7725 return lt__PROGRAM__LTX_preloaded_symbols;
7726 }
7727 #endif
7728
7729 #ifdef __cplusplus
7730 }
7731 #endif
7732 _LT_EOF
7733 # Now try linking the two files.
7734 mv conftest.$ac_objext conftstm.$ac_objext
7735 lt_save_LIBS="$LIBS"
7736 lt_save_CFLAGS="$CFLAGS"
7737 LIBS="conftstm.$ac_objext"
7738 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7740 (eval $ac_link) 2>&5
7741 ac_status=$?
7742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7743 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7744 pipe_works=yes
7745 fi
7746 LIBS="$lt_save_LIBS"
7747 CFLAGS="$lt_save_CFLAGS"
7748 else
7749 echo "cannot find nm_test_func in $nlist" >&5
7750 fi
7751 else
7752 echo "cannot find nm_test_var in $nlist" >&5
7753 fi
7754 else
7755 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7756 fi
7757 else
7758 echo "$progname: failed program was:" >&5
7759 cat conftest.$ac_ext >&5
7760 fi
7761 rm -rf conftest* conftst*
7762
7763 # Do not use the global_symbol_pipe unless it works.
7764 if test "$pipe_works" = yes; then
7765 break
7766 else
7767 lt_cv_sys_global_symbol_pipe=
7768 fi
7769 done
7770
7771 fi
7772
7773 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7774 lt_cv_sys_global_symbol_to_cdecl=
7775 fi
7776 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7778 $as_echo "failed" >&6; }
7779 else
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7781 $as_echo "ok" >&6; }
7782 fi
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805 # Check whether --enable-libtool-lock was given.
7806 if test "${enable_libtool_lock+set}" = set; then :
7807 enableval=$enable_libtool_lock;
7808 fi
7809
7810 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7811
7812 # Some flags need to be propagated to the compiler or linker for good
7813 # libtool support.
7814 case $host in
7815 ia64-*-hpux*)
7816 # Find out which ABI we are using.
7817 echo 'int i;' > conftest.$ac_ext
7818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7819 (eval $ac_compile) 2>&5
7820 ac_status=$?
7821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7822 test $ac_status = 0; }; then
7823 case `/usr/bin/file conftest.$ac_objext` in
7824 *ELF-32*)
7825 HPUX_IA64_MODE="32"
7826 ;;
7827 *ELF-64*)
7828 HPUX_IA64_MODE="64"
7829 ;;
7830 esac
7831 fi
7832 rm -rf conftest*
7833 ;;
7834 *-*-irix6*)
7835 # Find out which ABI we are using.
7836 echo '#line 7836 "configure"' > conftest.$ac_ext
7837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7838 (eval $ac_compile) 2>&5
7839 ac_status=$?
7840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7841 test $ac_status = 0; }; then
7842 if test "$lt_cv_prog_gnu_ld" = yes; then
7843 case `/usr/bin/file conftest.$ac_objext` in
7844 *32-bit*)
7845 LD="${LD-ld} -melf32bsmip"
7846 ;;
7847 *N32*)
7848 LD="${LD-ld} -melf32bmipn32"
7849 ;;
7850 *64-bit*)
7851 LD="${LD-ld} -melf64bmip"
7852 ;;
7853 esac
7854 else
7855 case `/usr/bin/file conftest.$ac_objext` in
7856 *32-bit*)
7857 LD="${LD-ld} -32"
7858 ;;
7859 *N32*)
7860 LD="${LD-ld} -n32"
7861 ;;
7862 *64-bit*)
7863 LD="${LD-ld} -64"
7864 ;;
7865 esac
7866 fi
7867 fi
7868 rm -rf conftest*
7869 ;;
7870
7871 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7872 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7873 # Find out which ABI we are using.
7874 echo 'int i;' > conftest.$ac_ext
7875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7876 (eval $ac_compile) 2>&5
7877 ac_status=$?
7878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7879 test $ac_status = 0; }; then
7880 case `/usr/bin/file conftest.o` in
7881 *32-bit*)
7882 case $host in
7883 x86_64-*kfreebsd*-gnu)
7884 LD="${LD-ld} -m elf_i386_fbsd"
7885 ;;
7886 x86_64-*linux*)
7887 LD="${LD-ld} -m elf_i386"
7888 ;;
7889 ppc64-*linux*|powerpc64-*linux*)
7890 LD="${LD-ld} -m elf32ppclinux"
7891 ;;
7892 s390x-*linux*)
7893 LD="${LD-ld} -m elf_s390"
7894 ;;
7895 sparc64-*linux*)
7896 LD="${LD-ld} -m elf32_sparc"
7897 ;;
7898 esac
7899 ;;
7900 *64-bit*)
7901 case $host in
7902 x86_64-*kfreebsd*-gnu)
7903 LD="${LD-ld} -m elf_x86_64_fbsd"
7904 ;;
7905 x86_64-*linux*)
7906 LD="${LD-ld} -m elf_x86_64"
7907 ;;
7908 ppc*-*linux*|powerpc*-*linux*)
7909 LD="${LD-ld} -m elf64ppc"
7910 ;;
7911 s390*-*linux*|s390*-*tpf*)
7912 LD="${LD-ld} -m elf64_s390"
7913 ;;
7914 sparc*-*linux*)
7915 LD="${LD-ld} -m elf64_sparc"
7916 ;;
7917 esac
7918 ;;
7919 esac
7920 fi
7921 rm -rf conftest*
7922 ;;
7923
7924 *-*-sco3.2v5*)
7925 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7926 SAVE_CFLAGS="$CFLAGS"
7927 CFLAGS="$CFLAGS -belf"
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7929 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7930 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 ac_ext=c
7934 ac_cpp='$CPP $CPPFLAGS'
7935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7938
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7941
7942 int
7943 main ()
7944 {
7945
7946 ;
7947 return 0;
7948 }
7949 _ACEOF
7950 if ac_fn_c_try_link "$LINENO"; then :
7951 lt_cv_cc_needs_belf=yes
7952 else
7953 lt_cv_cc_needs_belf=no
7954 fi
7955 rm -f core conftest.err conftest.$ac_objext \
7956 conftest$ac_exeext conftest.$ac_ext
7957 ac_ext=c
7958 ac_cpp='$CPP $CPPFLAGS'
7959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7962
7963 fi
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7965 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7966 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7967 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7968 CFLAGS="$SAVE_CFLAGS"
7969 fi
7970 ;;
7971 sparc*-*solaris*)
7972 # Find out which ABI we are using.
7973 echo 'int i;' > conftest.$ac_ext
7974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7975 (eval $ac_compile) 2>&5
7976 ac_status=$?
7977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7978 test $ac_status = 0; }; then
7979 case `/usr/bin/file conftest.o` in
7980 *64-bit*)
7981 case $lt_cv_prog_gnu_ld in
7982 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7983 *)
7984 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7985 LD="${LD-ld} -64"
7986 fi
7987 ;;
7988 esac
7989 ;;
7990 esac
7991 fi
7992 rm -rf conftest*
7993 ;;
7994 esac
7995
7996 need_locks="$enable_libtool_lock"
7997
7998
7999 case $host_os in
8000 rhapsody* | darwin*)
8001 if test -n "$ac_tool_prefix"; then
8002 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8003 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8005 $as_echo_n "checking for $ac_word... " >&6; }
8006 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 if test -n "$DSYMUTIL"; then
8010 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8011 else
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8014 do
8015 IFS=$as_save_IFS
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8019 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 break 2
8022 fi
8023 done
8024 done
8025 IFS=$as_save_IFS
8026
8027 fi
8028 fi
8029 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8030 if test -n "$DSYMUTIL"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8032 $as_echo "$DSYMUTIL" >&6; }
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8036 fi
8037
8038
8039 fi
8040 if test -z "$ac_cv_prog_DSYMUTIL"; then
8041 ac_ct_DSYMUTIL=$DSYMUTIL
8042 # Extract the first word of "dsymutil", so it can be a program name with args.
8043 set dummy dsymutil; ac_word=$2
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045 $as_echo_n "checking for $ac_word... " >&6; }
8046 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8047 $as_echo_n "(cached) " >&6
8048 else
8049 if test -n "$ac_ct_DSYMUTIL"; then
8050 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8051 else
8052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053 for as_dir in $PATH
8054 do
8055 IFS=$as_save_IFS
8056 test -z "$as_dir" && as_dir=.
8057 for ac_exec_ext in '' $ac_executable_extensions; do
8058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8059 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 break 2
8062 fi
8063 done
8064 done
8065 IFS=$as_save_IFS
8066
8067 fi
8068 fi
8069 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8070 if test -n "$ac_ct_DSYMUTIL"; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8072 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8073 else
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 $as_echo "no" >&6; }
8076 fi
8077
8078 if test "x$ac_ct_DSYMUTIL" = x; then
8079 DSYMUTIL=":"
8080 else
8081 case $cross_compiling:$ac_tool_warned in
8082 yes:)
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8085 ac_tool_warned=yes ;;
8086 esac
8087 DSYMUTIL=$ac_ct_DSYMUTIL
8088 fi
8089 else
8090 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8091 fi
8092
8093 if test -n "$ac_tool_prefix"; then
8094 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8095 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8097 $as_echo_n "checking for $ac_word... " >&6; }
8098 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 if test -n "$NMEDIT"; then
8102 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8103 else
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8106 do
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8111 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 break 2
8114 fi
8115 done
8116 done
8117 IFS=$as_save_IFS
8118
8119 fi
8120 fi
8121 NMEDIT=$ac_cv_prog_NMEDIT
8122 if test -n "$NMEDIT"; then
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8124 $as_echo "$NMEDIT" >&6; }
8125 else
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127 $as_echo "no" >&6; }
8128 fi
8129
8130
8131 fi
8132 if test -z "$ac_cv_prog_NMEDIT"; then
8133 ac_ct_NMEDIT=$NMEDIT
8134 # Extract the first word of "nmedit", so it can be a program name with args.
8135 set dummy nmedit; ac_word=$2
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137 $as_echo_n "checking for $ac_word... " >&6; }
8138 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 if test -n "$ac_ct_NMEDIT"; then
8142 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8143 else
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 for as_dir in $PATH
8146 do
8147 IFS=$as_save_IFS
8148 test -z "$as_dir" && as_dir=.
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8151 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8153 break 2
8154 fi
8155 done
8156 done
8157 IFS=$as_save_IFS
8158
8159 fi
8160 fi
8161 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8162 if test -n "$ac_ct_NMEDIT"; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8164 $as_echo "$ac_ct_NMEDIT" >&6; }
8165 else
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167 $as_echo "no" >&6; }
8168 fi
8169
8170 if test "x$ac_ct_NMEDIT" = x; then
8171 NMEDIT=":"
8172 else
8173 case $cross_compiling:$ac_tool_warned in
8174 yes:)
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8177 ac_tool_warned=yes ;;
8178 esac
8179 NMEDIT=$ac_ct_NMEDIT
8180 fi
8181 else
8182 NMEDIT="$ac_cv_prog_NMEDIT"
8183 fi
8184
8185 if test -n "$ac_tool_prefix"; then
8186 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8187 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8189 $as_echo_n "checking for $ac_word... " >&6; }
8190 if test "${ac_cv_prog_LIPO+set}" = set; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 if test -n "$LIPO"; then
8194 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8195 else
8196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 for as_dir in $PATH
8198 do
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8203 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8205 break 2
8206 fi
8207 done
8208 done
8209 IFS=$as_save_IFS
8210
8211 fi
8212 fi
8213 LIPO=$ac_cv_prog_LIPO
8214 if test -n "$LIPO"; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8216 $as_echo "$LIPO" >&6; }
8217 else
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 $as_echo "no" >&6; }
8220 fi
8221
8222
8223 fi
8224 if test -z "$ac_cv_prog_LIPO"; then
8225 ac_ct_LIPO=$LIPO
8226 # Extract the first word of "lipo", so it can be a program name with args.
8227 set dummy lipo; ac_word=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 if test -n "$ac_ct_LIPO"; then
8234 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8235 else
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8238 do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8243 ac_cv_prog_ac_ct_LIPO="lipo"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8246 fi
8247 done
8248 done
8249 IFS=$as_save_IFS
8250
8251 fi
8252 fi
8253 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8254 if test -n "$ac_ct_LIPO"; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8256 $as_echo "$ac_ct_LIPO" >&6; }
8257 else
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }
8260 fi
8261
8262 if test "x$ac_ct_LIPO" = x; then
8263 LIPO=":"
8264 else
8265 case $cross_compiling:$ac_tool_warned in
8266 yes:)
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8269 ac_tool_warned=yes ;;
8270 esac
8271 LIPO=$ac_ct_LIPO
8272 fi
8273 else
8274 LIPO="$ac_cv_prog_LIPO"
8275 fi
8276
8277 if test -n "$ac_tool_prefix"; then
8278 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8279 set dummy ${ac_tool_prefix}otool; ac_word=$2
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8281 $as_echo_n "checking for $ac_word... " >&6; }
8282 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 if test -n "$OTOOL"; then
8286 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8287 else
8288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289 for as_dir in $PATH
8290 do
8291 IFS=$as_save_IFS
8292 test -z "$as_dir" && as_dir=.
8293 for ac_exec_ext in '' $ac_executable_extensions; do
8294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8295 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8297 break 2
8298 fi
8299 done
8300 done
8301 IFS=$as_save_IFS
8302
8303 fi
8304 fi
8305 OTOOL=$ac_cv_prog_OTOOL
8306 if test -n "$OTOOL"; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8308 $as_echo "$OTOOL" >&6; }
8309 else
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8311 $as_echo "no" >&6; }
8312 fi
8313
8314
8315 fi
8316 if test -z "$ac_cv_prog_OTOOL"; then
8317 ac_ct_OTOOL=$OTOOL
8318 # Extract the first word of "otool", so it can be a program name with args.
8319 set dummy otool; ac_word=$2
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8321 $as_echo_n "checking for $ac_word... " >&6; }
8322 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 if test -n "$ac_ct_OTOOL"; then
8326 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8327 else
8328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329 for as_dir in $PATH
8330 do
8331 IFS=$as_save_IFS
8332 test -z "$as_dir" && as_dir=.
8333 for ac_exec_ext in '' $ac_executable_extensions; do
8334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8335 ac_cv_prog_ac_ct_OTOOL="otool"
8336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8337 break 2
8338 fi
8339 done
8340 done
8341 IFS=$as_save_IFS
8342
8343 fi
8344 fi
8345 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8346 if test -n "$ac_ct_OTOOL"; then
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8348 $as_echo "$ac_ct_OTOOL" >&6; }
8349 else
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 $as_echo "no" >&6; }
8352 fi
8353
8354 if test "x$ac_ct_OTOOL" = x; then
8355 OTOOL=":"
8356 else
8357 case $cross_compiling:$ac_tool_warned in
8358 yes:)
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8361 ac_tool_warned=yes ;;
8362 esac
8363 OTOOL=$ac_ct_OTOOL
8364 fi
8365 else
8366 OTOOL="$ac_cv_prog_OTOOL"
8367 fi
8368
8369 if test -n "$ac_tool_prefix"; then
8370 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8371 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8373 $as_echo_n "checking for $ac_word... " >&6; }
8374 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 if test -n "$OTOOL64"; then
8378 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8379 else
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 for as_dir in $PATH
8382 do
8383 IFS=$as_save_IFS
8384 test -z "$as_dir" && as_dir=.
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8387 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8389 break 2
8390 fi
8391 done
8392 done
8393 IFS=$as_save_IFS
8394
8395 fi
8396 fi
8397 OTOOL64=$ac_cv_prog_OTOOL64
8398 if test -n "$OTOOL64"; then
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8400 $as_echo "$OTOOL64" >&6; }
8401 else
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 $as_echo "no" >&6; }
8404 fi
8405
8406
8407 fi
8408 if test -z "$ac_cv_prog_OTOOL64"; then
8409 ac_ct_OTOOL64=$OTOOL64
8410 # Extract the first word of "otool64", so it can be a program name with args.
8411 set dummy otool64; ac_word=$2
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413 $as_echo_n "checking for $ac_word... " >&6; }
8414 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8415 $as_echo_n "(cached) " >&6
8416 else
8417 if test -n "$ac_ct_OTOOL64"; then
8418 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8419 else
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 for as_dir in $PATH
8422 do
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
8425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8427 ac_cv_prog_ac_ct_OTOOL64="otool64"
8428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 break 2
8430 fi
8431 done
8432 done
8433 IFS=$as_save_IFS
8434
8435 fi
8436 fi
8437 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8438 if test -n "$ac_ct_OTOOL64"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8440 $as_echo "$ac_ct_OTOOL64" >&6; }
8441 else
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8444 fi
8445
8446 if test "x$ac_ct_OTOOL64" = x; then
8447 OTOOL64=":"
8448 else
8449 case $cross_compiling:$ac_tool_warned in
8450 yes:)
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8453 ac_tool_warned=yes ;;
8454 esac
8455 OTOOL64=$ac_ct_OTOOL64
8456 fi
8457 else
8458 OTOOL64="$ac_cv_prog_OTOOL64"
8459 fi
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8488 $as_echo_n "checking for -single_module linker flag... " >&6; }
8489 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 lt_cv_apple_cc_single_mod=no
8493 if test -z "${LT_MULTI_MODULE}"; then
8494 # By default we will add the -single_module flag. You can override
8495 # by either setting the environment variable LT_MULTI_MODULE
8496 # non-empty at configure time, or by adding -multi_module to the
8497 # link flags.
8498 rm -rf libconftest.dylib*
8499 echo "int foo(void){return 1;}" > conftest.c
8500 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8501 -dynamiclib -Wl,-single_module conftest.c" >&5
8502 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8503 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8504 _lt_result=$?
8505 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8506 lt_cv_apple_cc_single_mod=yes
8507 else
8508 cat conftest.err >&5
8509 fi
8510 rm -rf libconftest.dylib*
8511 rm -f conftest.*
8512 fi
8513 fi
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8515 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8517 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8518 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 lt_cv_ld_exported_symbols_list=no
8522 save_LDFLAGS=$LDFLAGS
8523 echo "_main" > conftest.sym
8524 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8527
8528 int
8529 main ()
8530 {
8531
8532 ;
8533 return 0;
8534 }
8535 _ACEOF
8536 if ac_fn_c_try_link "$LINENO"; then :
8537 lt_cv_ld_exported_symbols_list=yes
8538 else
8539 lt_cv_ld_exported_symbols_list=no
8540 fi
8541 rm -f core conftest.err conftest.$ac_objext \
8542 conftest$ac_exeext conftest.$ac_ext
8543 LDFLAGS="$save_LDFLAGS"
8544
8545 fi
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8547 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8548 case $host_os in
8549 rhapsody* | darwin1.[012])
8550 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8551 darwin1.*)
8552 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8553 darwin*) # darwin 5.x on
8554 # if running on 10.5 or later, the deployment target defaults
8555 # to the OS version, if on x86, and 10.4, the deployment
8556 # target defaults to 10.4. Don't you love it?
8557 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8558 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8559 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8560 10.[012]*)
8561 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8562 10.*)
8563 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8564 esac
8565 ;;
8566 esac
8567 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8568 _lt_dar_single_mod='$single_module'
8569 fi
8570 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8571 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8572 else
8573 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8574 fi
8575 if test "$DSYMUTIL" != ":"; then
8576 _lt_dsymutil='~$DSYMUTIL $lib || :'
8577 else
8578 _lt_dsymutil=
8579 fi
8580 ;;
8581 esac
8582
8583 ac_ext=c
8584 ac_cpp='$CPP $CPPFLAGS'
8585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8589 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8590 # On Suns, sometimes $CPP names a directory.
8591 if test -n "$CPP" && test -d "$CPP"; then
8592 CPP=
8593 fi
8594 if test -z "$CPP"; then
8595 if test "${ac_cv_prog_CPP+set}" = set; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 # Double quotes because CPP needs to be expanded
8599 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8600 do
8601 ac_preproc_ok=false
8602 for ac_c_preproc_warn_flag in '' yes
8603 do
8604 # Use a header file that comes with gcc, so configuring glibc
8605 # with a fresh cross-compiler works.
8606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8607 # <limits.h> exists even on freestanding compilers.
8608 # On the NeXT, cc -E runs the code through the compiler's parser,
8609 # not just through cpp. "Syntax error" is here to catch this case.
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612 #ifdef __STDC__
8613 # include <limits.h>
8614 #else
8615 # include <assert.h>
8616 #endif
8617 Syntax error
8618 _ACEOF
8619 if ac_fn_c_try_cpp "$LINENO"; then :
8620
8621 else
8622 # Broken: fails on valid input.
8623 continue
8624 fi
8625 rm -f conftest.err conftest.$ac_ext
8626
8627 # OK, works on sane cases. Now check whether nonexistent headers
8628 # can be detected and how.
8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8631 #include <ac_nonexistent.h>
8632 _ACEOF
8633 if ac_fn_c_try_cpp "$LINENO"; then :
8634 # Broken: success on invalid input.
8635 continue
8636 else
8637 # Passes both tests.
8638 ac_preproc_ok=:
8639 break
8640 fi
8641 rm -f conftest.err conftest.$ac_ext
8642
8643 done
8644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8645 rm -f conftest.err conftest.$ac_ext
8646 if $ac_preproc_ok; then :
8647 break
8648 fi
8649
8650 done
8651 ac_cv_prog_CPP=$CPP
8652
8653 fi
8654 CPP=$ac_cv_prog_CPP
8655 else
8656 ac_cv_prog_CPP=$CPP
8657 fi
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8659 $as_echo "$CPP" >&6; }
8660 ac_preproc_ok=false
8661 for ac_c_preproc_warn_flag in '' yes
8662 do
8663 # Use a header file that comes with gcc, so configuring glibc
8664 # with a fresh cross-compiler works.
8665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8666 # <limits.h> exists even on freestanding compilers.
8667 # On the NeXT, cc -E runs the code through the compiler's parser,
8668 # not just through cpp. "Syntax error" is here to catch this case.
8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670 /* end confdefs.h. */
8671 #ifdef __STDC__
8672 # include <limits.h>
8673 #else
8674 # include <assert.h>
8675 #endif
8676 Syntax error
8677 _ACEOF
8678 if ac_fn_c_try_cpp "$LINENO"; then :
8679
8680 else
8681 # Broken: fails on valid input.
8682 continue
8683 fi
8684 rm -f conftest.err conftest.$ac_ext
8685
8686 # OK, works on sane cases. Now check whether nonexistent headers
8687 # can be detected and how.
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8690 #include <ac_nonexistent.h>
8691 _ACEOF
8692 if ac_fn_c_try_cpp "$LINENO"; then :
8693 # Broken: success on invalid input.
8694 continue
8695 else
8696 # Passes both tests.
8697 ac_preproc_ok=:
8698 break
8699 fi
8700 rm -f conftest.err conftest.$ac_ext
8701
8702 done
8703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8704 rm -f conftest.err conftest.$ac_ext
8705 if $ac_preproc_ok; then :
8706
8707 else
8708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8710 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8711 See \`config.log' for more details." "$LINENO" 5; }
8712 fi
8713
8714 ac_ext=c
8715 ac_cpp='$CPP $CPPFLAGS'
8716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8719
8720
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8722 $as_echo_n "checking for ANSI C header files... " >&6; }
8723 if test "${ac_cv_header_stdc+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8728 #include <stdlib.h>
8729 #include <stdarg.h>
8730 #include <string.h>
8731 #include <float.h>
8732
8733 int
8734 main ()
8735 {
8736
8737 ;
8738 return 0;
8739 }
8740 _ACEOF
8741 if ac_fn_c_try_compile "$LINENO"; then :
8742 ac_cv_header_stdc=yes
8743 else
8744 ac_cv_header_stdc=no
8745 fi
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747
8748 if test $ac_cv_header_stdc = yes; then
8749 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752 #include <string.h>
8753
8754 _ACEOF
8755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8756 $EGREP "memchr" >/dev/null 2>&1; then :
8757
8758 else
8759 ac_cv_header_stdc=no
8760 fi
8761 rm -f conftest*
8762
8763 fi
8764
8765 if test $ac_cv_header_stdc = yes; then
8766 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8769 #include <stdlib.h>
8770
8771 _ACEOF
8772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8773 $EGREP "free" >/dev/null 2>&1; then :
8774
8775 else
8776 ac_cv_header_stdc=no
8777 fi
8778 rm -f conftest*
8779
8780 fi
8781
8782 if test $ac_cv_header_stdc = yes; then
8783 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8784 if test "$cross_compiling" = yes; then :
8785 :
8786 else
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 #include <ctype.h>
8790 #include <stdlib.h>
8791 #if ((' ' & 0x0FF) == 0x020)
8792 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8793 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8794 #else
8795 # define ISLOWER(c) \
8796 (('a' <= (c) && (c) <= 'i') \
8797 || ('j' <= (c) && (c) <= 'r') \
8798 || ('s' <= (c) && (c) <= 'z'))
8799 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8800 #endif
8801
8802 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8803 int
8804 main ()
8805 {
8806 int i;
8807 for (i = 0; i < 256; i++)
8808 if (XOR (islower (i), ISLOWER (i))
8809 || toupper (i) != TOUPPER (i))
8810 return 2;
8811 return 0;
8812 }
8813 _ACEOF
8814 if ac_fn_c_try_run "$LINENO"; then :
8815
8816 else
8817 ac_cv_header_stdc=no
8818 fi
8819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8820 conftest.$ac_objext conftest.beam conftest.$ac_ext
8821 fi
8822
8823 fi
8824 fi
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8826 $as_echo "$ac_cv_header_stdc" >&6; }
8827 if test $ac_cv_header_stdc = yes; then
8828
8829 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8830
8831 fi
8832
8833 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8834 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8835 inttypes.h stdint.h unistd.h
8836 do :
8837 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8838 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8839 "
8840 eval as_val=\$$as_ac_Header
8841 if test "x$as_val" = x""yes; then :
8842 cat >>confdefs.h <<_ACEOF
8843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8844 _ACEOF
8845
8846 fi
8847
8848 done
8849
8850
8851 for ac_header in dlfcn.h
8852 do :
8853 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8854 "
8855 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8856 cat >>confdefs.h <<_ACEOF
8857 #define HAVE_DLFCN_H 1
8858 _ACEOF
8859
8860 fi
8861
8862 done
8863
8864
8865
8866 # Set options
8867
8868
8869
8870 enable_dlopen=no
8871
8872
8873 enable_win32_dll=no
8874
8875
8876 # Check whether --enable-shared was given.
8877 if test "${enable_shared+set}" = set; then :
8878 enableval=$enable_shared; p=${PACKAGE-default}
8879 case $enableval in
8880 yes) enable_shared=yes ;;
8881 no) enable_shared=no ;;
8882 *)
8883 enable_shared=no
8884 # Look at the argument we got. We use all the common list separators.
8885 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8886 for pkg in $enableval; do
8887 IFS="$lt_save_ifs"
8888 if test "X$pkg" = "X$p"; then
8889 enable_shared=yes
8890 fi
8891 done
8892 IFS="$lt_save_ifs"
8893 ;;
8894 esac
8895 else
8896 enable_shared=yes
8897 fi
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907 # Check whether --enable-static was given.
8908 if test "${enable_static+set}" = set; then :
8909 enableval=$enable_static; p=${PACKAGE-default}
8910 case $enableval in
8911 yes) enable_static=yes ;;
8912 no) enable_static=no ;;
8913 *)
8914 enable_static=no
8915 # Look at the argument we got. We use all the common list separators.
8916 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8917 for pkg in $enableval; do
8918 IFS="$lt_save_ifs"
8919 if test "X$pkg" = "X$p"; then
8920 enable_static=yes
8921 fi
8922 done
8923 IFS="$lt_save_ifs"
8924 ;;
8925 esac
8926 else
8927 enable_static=yes
8928 fi
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939 # Check whether --with-pic was given.
8940 if test "${with_pic+set}" = set; then :
8941 withval=$with_pic; pic_mode="$withval"
8942 else
8943 pic_mode=default
8944 fi
8945
8946
8947 test -z "$pic_mode" && pic_mode=default
8948
8949
8950
8951
8952
8953
8954
8955 # Check whether --enable-fast-install was given.
8956 if test "${enable_fast_install+set}" = set; then :
8957 enableval=$enable_fast_install; p=${PACKAGE-default}
8958 case $enableval in
8959 yes) enable_fast_install=yes ;;
8960 no) enable_fast_install=no ;;
8961 *)
8962 enable_fast_install=no
8963 # Look at the argument we got. We use all the common list separators.
8964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8965 for pkg in $enableval; do
8966 IFS="$lt_save_ifs"
8967 if test "X$pkg" = "X$p"; then
8968 enable_fast_install=yes
8969 fi
8970 done
8971 IFS="$lt_save_ifs"
8972 ;;
8973 esac
8974 else
8975 enable_fast_install=yes
8976 fi
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988 # This can be used to rebuild libtool when needed
8989 LIBTOOL_DEPS="$ltmain"
8990
8991 # Always use our own libtool.
8992 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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 test -z "$LN_S" && LN_S="ln -s"
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033 if test -n "${ZSH_VERSION+set}" ; then
9034 setopt NO_GLOB_SUBST
9035 fi
9036
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9038 $as_echo_n "checking for objdir... " >&6; }
9039 if test "${lt_cv_objdir+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 rm -f .libs 2>/dev/null
9043 mkdir .libs 2>/dev/null
9044 if test -d .libs; then
9045 lt_cv_objdir=.libs
9046 else
9047 # MS-DOS does not allow filenames that begin with a dot.
9048 lt_cv_objdir=_libs
9049 fi
9050 rmdir .libs 2>/dev/null
9051 fi
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9053 $as_echo "$lt_cv_objdir" >&6; }
9054 objdir=$lt_cv_objdir
9055
9056
9057
9058
9059
9060 cat >>confdefs.h <<_ACEOF
9061 #define LT_OBJDIR "$lt_cv_objdir/"
9062 _ACEOF
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080 case $host_os in
9081 aix3*)
9082 # AIX sometimes has problems with the GCC collect2 program. For some
9083 # reason, if we set the COLLECT_NAMES environment variable, the problems
9084 # vanish in a puff of smoke.
9085 if test "X${COLLECT_NAMES+set}" != Xset; then
9086 COLLECT_NAMES=
9087 export COLLECT_NAMES
9088 fi
9089 ;;
9090 esac
9091
9092 # Sed substitution that helps us do robust quoting. It backslashifies
9093 # metacharacters that are still active within double-quoted strings.
9094 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9095
9096 # Same as above, but do not quote variable references.
9097 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9098
9099 # Sed substitution to delay expansion of an escaped shell variable in a
9100 # double_quote_subst'ed string.
9101 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9102
9103 # Sed substitution to delay expansion of an escaped single quote.
9104 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9105
9106 # Sed substitution to avoid accidental globbing in evaled expressions
9107 no_glob_subst='s/\*/\\\*/g'
9108
9109 # Global variables:
9110 ofile=libtool
9111 can_build_shared=yes
9112
9113 # All known linkers require a `.a' archive for static linking (except MSVC,
9114 # which needs '.lib').
9115 libext=a
9116
9117 with_gnu_ld="$lt_cv_prog_gnu_ld"
9118
9119 old_CC="$CC"
9120 old_CFLAGS="$CFLAGS"
9121
9122 # Set sane defaults for various variables
9123 test -z "$CC" && CC=cc
9124 test -z "$LTCC" && LTCC=$CC
9125 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9126 test -z "$LD" && LD=ld
9127 test -z "$ac_objext" && ac_objext=o
9128
9129 for cc_temp in $compiler""; do
9130 case $cc_temp in
9131 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9132 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9133 \-*) ;;
9134 *) break;;
9135 esac
9136 done
9137 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9138
9139
9140 # Only perform the check for file, if the check method requires it
9141 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9142 case $deplibs_check_method in
9143 file_magic*)
9144 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9146 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9147 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 case $MAGIC_CMD in
9151 [\\/*] | ?:[\\/]*)
9152 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9153 ;;
9154 *)
9155 lt_save_MAGIC_CMD="$MAGIC_CMD"
9156 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9157 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9158 for ac_dir in $ac_dummy; do
9159 IFS="$lt_save_ifs"
9160 test -z "$ac_dir" && ac_dir=.
9161 if test -f $ac_dir/${ac_tool_prefix}file; then
9162 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9163 if test -n "$file_magic_test_file"; then
9164 case $deplibs_check_method in
9165 "file_magic "*)
9166 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9168 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9169 $EGREP "$file_magic_regex" > /dev/null; then
9170 :
9171 else
9172 cat <<_LT_EOF 1>&2
9173
9174 *** Warning: the command libtool uses to detect shared libraries,
9175 *** $file_magic_cmd, produces output that libtool cannot recognize.
9176 *** The result is that libtool may fail to recognize shared libraries
9177 *** as such. This will affect the creation of libtool libraries that
9178 *** depend on shared libraries, but programs linked with such libtool
9179 *** libraries will work regardless of this problem. Nevertheless, you
9180 *** may want to report the problem to your system manager and/or to
9181 *** [email protected]
9182
9183 _LT_EOF
9184 fi ;;
9185 esac
9186 fi
9187 break
9188 fi
9189 done
9190 IFS="$lt_save_ifs"
9191 MAGIC_CMD="$lt_save_MAGIC_CMD"
9192 ;;
9193 esac
9194 fi
9195
9196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9197 if test -n "$MAGIC_CMD"; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9199 $as_echo "$MAGIC_CMD" >&6; }
9200 else
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9202 $as_echo "no" >&6; }
9203 fi
9204
9205
9206
9207
9208
9209 if test -z "$lt_cv_path_MAGIC_CMD"; then
9210 if test -n "$ac_tool_prefix"; then
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9212 $as_echo_n "checking for file... " >&6; }
9213 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9214 $as_echo_n "(cached) " >&6
9215 else
9216 case $MAGIC_CMD in
9217 [\\/*] | ?:[\\/]*)
9218 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9219 ;;
9220 *)
9221 lt_save_MAGIC_CMD="$MAGIC_CMD"
9222 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9223 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9224 for ac_dir in $ac_dummy; do
9225 IFS="$lt_save_ifs"
9226 test -z "$ac_dir" && ac_dir=.
9227 if test -f $ac_dir/file; then
9228 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9229 if test -n "$file_magic_test_file"; then
9230 case $deplibs_check_method in
9231 "file_magic "*)
9232 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9234 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9235 $EGREP "$file_magic_regex" > /dev/null; then
9236 :
9237 else
9238 cat <<_LT_EOF 1>&2
9239
9240 *** Warning: the command libtool uses to detect shared libraries,
9241 *** $file_magic_cmd, produces output that libtool cannot recognize.
9242 *** The result is that libtool may fail to recognize shared libraries
9243 *** as such. This will affect the creation of libtool libraries that
9244 *** depend on shared libraries, but programs linked with such libtool
9245 *** libraries will work regardless of this problem. Nevertheless, you
9246 *** may want to report the problem to your system manager and/or to
9247 *** [email protected]
9248
9249 _LT_EOF
9250 fi ;;
9251 esac
9252 fi
9253 break
9254 fi
9255 done
9256 IFS="$lt_save_ifs"
9257 MAGIC_CMD="$lt_save_MAGIC_CMD"
9258 ;;
9259 esac
9260 fi
9261
9262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9263 if test -n "$MAGIC_CMD"; then
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9265 $as_echo "$MAGIC_CMD" >&6; }
9266 else
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9268 $as_echo "no" >&6; }
9269 fi
9270
9271
9272 else
9273 MAGIC_CMD=:
9274 fi
9275 fi
9276
9277 fi
9278 ;;
9279 esac
9280
9281 # Use C for the default configuration in the libtool script
9282
9283 lt_save_CC="$CC"
9284 ac_ext=c
9285 ac_cpp='$CPP $CPPFLAGS'
9286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9289
9290
9291 # Source file extension for C test sources.
9292 ac_ext=c
9293
9294 # Object file extension for compiled C test sources.
9295 objext=o
9296 objext=$objext
9297
9298 # Code to be used in simple compile tests
9299 lt_simple_compile_test_code="int some_variable = 0;"
9300
9301 # Code to be used in simple link tests
9302 lt_simple_link_test_code='int main(){return(0);}'
9303
9304
9305
9306
9307
9308
9309
9310 # If no C compiler was specified, use CC.
9311 LTCC=${LTCC-"$CC"}
9312
9313 # If no C compiler flags were specified, use CFLAGS.
9314 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9315
9316 # Allow CC to be a program name with arguments.
9317 compiler=$CC
9318
9319 # Save the default compiler, since it gets overwritten when the other
9320 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9321 compiler_DEFAULT=$CC
9322
9323 # save warnings/boilerplate of simple test code
9324 ac_outfile=conftest.$ac_objext
9325 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9326 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9327 _lt_compiler_boilerplate=`cat conftest.err`
9328 $RM conftest*
9329
9330 ac_outfile=conftest.$ac_objext
9331 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9332 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9333 _lt_linker_boilerplate=`cat conftest.err`
9334 $RM -r conftest*
9335
9336
9337 ## CAVEAT EMPTOR:
9338 ## There is no encapsulation within the following macros, do not change
9339 ## the running order or otherwise move them around unless you know exactly
9340 ## what you are doing...
9341 if test -n "$compiler"; then
9342
9343 lt_prog_compiler_no_builtin_flag=
9344
9345 if test "$GCC" = yes; then
9346 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9347
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9349 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9350 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 lt_cv_prog_compiler_rtti_exceptions=no
9354 ac_outfile=conftest.$ac_objext
9355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9356 lt_compiler_flag="-fno-rtti -fno-exceptions"
9357 # Insert the option either (1) after the last *FLAGS variable, or
9358 # (2) before a word containing "conftest.", or (3) at the end.
9359 # Note that $ac_compile itself does not contain backslashes and begins
9360 # with a dollar sign (not a hyphen), so the echo should work correctly.
9361 # The option is referenced via a variable to avoid confusing sed.
9362 lt_compile=`echo "$ac_compile" | $SED \
9363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9365 -e 's:$: $lt_compiler_flag:'`
9366 (eval echo "\"\$as_me:9366: $lt_compile\"" >&5)
9367 (eval "$lt_compile" 2>conftest.err)
9368 ac_status=$?
9369 cat conftest.err >&5
9370 echo "$as_me:9370: \$? = $ac_status" >&5
9371 if (exit $ac_status) && test -s "$ac_outfile"; then
9372 # The compiler can only warn and ignore the option if not recognized
9373 # So say no if there are warnings other than the usual output.
9374 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9376 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9377 lt_cv_prog_compiler_rtti_exceptions=yes
9378 fi
9379 fi
9380 $RM conftest*
9381
9382 fi
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9384 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9385
9386 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9387 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9388 else
9389 :
9390 fi
9391
9392 fi
9393
9394
9395
9396
9397
9398
9399 lt_prog_compiler_wl=
9400 lt_prog_compiler_pic=
9401 lt_prog_compiler_static=
9402
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9404 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9405
9406 if test "$GCC" = yes; then
9407 lt_prog_compiler_wl='-Wl,'
9408 lt_prog_compiler_static='-static'
9409
9410 case $host_os in
9411 aix*)
9412 # All AIX code is PIC.
9413 if test "$host_cpu" = ia64; then
9414 # AIX 5 now supports IA64 processor
9415 lt_prog_compiler_static='-Bstatic'
9416 fi
9417 ;;
9418
9419 amigaos*)
9420 case $host_cpu in
9421 powerpc)
9422 # see comment about AmigaOS4 .so support
9423 lt_prog_compiler_pic='-fPIC'
9424 ;;
9425 m68k)
9426 # FIXME: we need at least 68020 code to build shared libraries, but
9427 # adding the `-m68020' flag to GCC prevents building anything better,
9428 # like `-m68040'.
9429 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9430 ;;
9431 esac
9432 ;;
9433
9434 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9435 # PIC is the default for these OSes.
9436 ;;
9437
9438 mingw* | cygwin* | pw32* | os2* | cegcc*)
9439 # This hack is so that the source file can tell whether it is being
9440 # built for inclusion in a dll (and should export symbols for example).
9441 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9442 # (--disable-auto-import) libraries
9443 lt_prog_compiler_pic='-DDLL_EXPORT'
9444 ;;
9445
9446 darwin* | rhapsody*)
9447 # PIC is the default on this platform
9448 # Common symbols not allowed in MH_DYLIB files
9449 lt_prog_compiler_pic='-fno-common'
9450 ;;
9451
9452 hpux*)
9453 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9454 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9455 # sets the default TLS model and affects inlining.
9456 case $host_cpu in
9457 hppa*64*)
9458 # +Z the default
9459 ;;
9460 *)
9461 lt_prog_compiler_pic='-fPIC'
9462 ;;
9463 esac
9464 ;;
9465
9466 interix[3-9]*)
9467 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9468 # Instead, we relocate shared libraries at runtime.
9469 ;;
9470
9471 msdosdjgpp*)
9472 # Just because we use GCC doesn't mean we suddenly get shared libraries
9473 # on systems that don't support them.
9474 lt_prog_compiler_can_build_shared=no
9475 enable_shared=no
9476 ;;
9477
9478 *nto* | *qnx*)
9479 # QNX uses GNU C++, but need to define -shared option too, otherwise
9480 # it will coredump.
9481 lt_prog_compiler_pic='-fPIC -shared'
9482 ;;
9483
9484 sysv4*MP*)
9485 if test -d /usr/nec; then
9486 lt_prog_compiler_pic=-Kconform_pic
9487 fi
9488 ;;
9489
9490 *)
9491 lt_prog_compiler_pic='-fPIC'
9492 ;;
9493 esac
9494 else
9495 # PORTME Check for flag to pass linker flags through the system compiler.
9496 case $host_os in
9497 aix*)
9498 lt_prog_compiler_wl='-Wl,'
9499 if test "$host_cpu" = ia64; then
9500 # AIX 5 now supports IA64 processor
9501 lt_prog_compiler_static='-Bstatic'
9502 else
9503 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9504 fi
9505 ;;
9506
9507 mingw* | cygwin* | pw32* | os2* | cegcc*)
9508 # This hack is so that the source file can tell whether it is being
9509 # built for inclusion in a dll (and should export symbols for example).
9510 lt_prog_compiler_pic='-DDLL_EXPORT'
9511 ;;
9512
9513 hpux9* | hpux10* | hpux11*)
9514 lt_prog_compiler_wl='-Wl,'
9515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9516 # not for PA HP-UX.
9517 case $host_cpu in
9518 hppa*64*|ia64*)
9519 # +Z the default
9520 ;;
9521 *)
9522 lt_prog_compiler_pic='+Z'
9523 ;;
9524 esac
9525 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9526 lt_prog_compiler_static='${wl}-a ${wl}archive'
9527 ;;
9528
9529 irix5* | irix6* | nonstopux*)
9530 lt_prog_compiler_wl='-Wl,'
9531 # PIC (with -KPIC) is the default.
9532 lt_prog_compiler_static='-non_shared'
9533 ;;
9534
9535 linux* | k*bsd*-gnu)
9536 case $cc_basename in
9537 # old Intel for x86_64 which still supported -KPIC.
9538 ecc*)
9539 lt_prog_compiler_wl='-Wl,'
9540 lt_prog_compiler_pic='-KPIC'
9541 lt_prog_compiler_static='-static'
9542 ;;
9543 # icc used to be incompatible with GCC.
9544 # ICC 10 doesn't accept -KPIC any more.
9545 icc* | ifort*)
9546 lt_prog_compiler_wl='-Wl,'
9547 lt_prog_compiler_pic='-fPIC'
9548 lt_prog_compiler_static='-static'
9549 ;;
9550 # Lahey Fortran 8.1.
9551 lf95*)
9552 lt_prog_compiler_wl='-Wl,'
9553 lt_prog_compiler_pic='--shared'
9554 lt_prog_compiler_static='--static'
9555 ;;
9556 pgcc* | pgf77* | pgf90* | pgf95*)
9557 # Portland Group compilers (*not* the Pentium gcc compiler,
9558 # which looks to be a dead project)
9559 lt_prog_compiler_wl='-Wl,'
9560 lt_prog_compiler_pic='-fpic'
9561 lt_prog_compiler_static='-Bstatic'
9562 ;;
9563 ccc*)
9564 lt_prog_compiler_wl='-Wl,'
9565 # All Alpha code is PIC.
9566 lt_prog_compiler_static='-non_shared'
9567 ;;
9568 xl*)
9569 # IBM XL C 8.0/Fortran 10.1 on PPC
9570 lt_prog_compiler_wl='-Wl,'
9571 lt_prog_compiler_pic='-qpic'
9572 lt_prog_compiler_static='-qstaticlink'
9573 ;;
9574 *)
9575 case `$CC -V 2>&1 | sed 5q` in
9576 *Sun\ C*)
9577 # Sun C 5.9
9578 lt_prog_compiler_pic='-KPIC'
9579 lt_prog_compiler_static='-Bstatic'
9580 lt_prog_compiler_wl='-Wl,'
9581 ;;
9582 *Sun\ F*)
9583 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9584 lt_prog_compiler_pic='-KPIC'
9585 lt_prog_compiler_static='-Bstatic'
9586 lt_prog_compiler_wl=''
9587 ;;
9588 esac
9589 ;;
9590 esac
9591 ;;
9592
9593 newsos6)
9594 lt_prog_compiler_pic='-KPIC'
9595 lt_prog_compiler_static='-Bstatic'
9596 ;;
9597
9598 *nto* | *qnx*)
9599 # QNX uses GNU C++, but need to define -shared option too, otherwise
9600 # it will coredump.
9601 lt_prog_compiler_pic='-fPIC -shared'
9602 ;;
9603
9604 osf3* | osf4* | osf5*)
9605 lt_prog_compiler_wl='-Wl,'
9606 # All OSF/1 code is PIC.
9607 lt_prog_compiler_static='-non_shared'
9608 ;;
9609
9610 rdos*)
9611 lt_prog_compiler_static='-non_shared'
9612 ;;
9613
9614 solaris*)
9615 lt_prog_compiler_pic='-KPIC'
9616 lt_prog_compiler_static='-Bstatic'
9617 case $cc_basename in
9618 f77* | f90* | f95*)
9619 lt_prog_compiler_wl='-Qoption ld ';;
9620 *)
9621 lt_prog_compiler_wl='-Wl,';;
9622 esac
9623 ;;
9624
9625 sunos4*)
9626 lt_prog_compiler_wl='-Qoption ld '
9627 lt_prog_compiler_pic='-PIC'
9628 lt_prog_compiler_static='-Bstatic'
9629 ;;
9630
9631 sysv4 | sysv4.2uw2* | sysv4.3*)
9632 lt_prog_compiler_wl='-Wl,'
9633 lt_prog_compiler_pic='-KPIC'
9634 lt_prog_compiler_static='-Bstatic'
9635 ;;
9636
9637 sysv4*MP*)
9638 if test -d /usr/nec ;then
9639 lt_prog_compiler_pic='-Kconform_pic'
9640 lt_prog_compiler_static='-Bstatic'
9641 fi
9642 ;;
9643
9644 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9645 lt_prog_compiler_wl='-Wl,'
9646 lt_prog_compiler_pic='-KPIC'
9647 lt_prog_compiler_static='-Bstatic'
9648 ;;
9649
9650 unicos*)
9651 lt_prog_compiler_wl='-Wl,'
9652 lt_prog_compiler_can_build_shared=no
9653 ;;
9654
9655 uts4*)
9656 lt_prog_compiler_pic='-pic'
9657 lt_prog_compiler_static='-Bstatic'
9658 ;;
9659
9660 *)
9661 lt_prog_compiler_can_build_shared=no
9662 ;;
9663 esac
9664 fi
9665
9666 case $host_os in
9667 # For platforms which do not support PIC, -DPIC is meaningless:
9668 *djgpp*)
9669 lt_prog_compiler_pic=
9670 ;;
9671 *)
9672 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9673 ;;
9674 esac
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9676 $as_echo "$lt_prog_compiler_pic" >&6; }
9677
9678
9679
9680
9681
9682
9683 #
9684 # Check to make sure the PIC flag actually works.
9685 #
9686 if test -n "$lt_prog_compiler_pic"; then
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9688 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9689 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 lt_cv_prog_compiler_pic_works=no
9693 ac_outfile=conftest.$ac_objext
9694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9695 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9696 # Insert the option either (1) after the last *FLAGS variable, or
9697 # (2) before a word containing "conftest.", or (3) at the end.
9698 # Note that $ac_compile itself does not contain backslashes and begins
9699 # with a dollar sign (not a hyphen), so the echo should work correctly.
9700 # The option is referenced via a variable to avoid confusing sed.
9701 lt_compile=`echo "$ac_compile" | $SED \
9702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9704 -e 's:$: $lt_compiler_flag:'`
9705 (eval echo "\"\$as_me:9705: $lt_compile\"" >&5)
9706 (eval "$lt_compile" 2>conftest.err)
9707 ac_status=$?
9708 cat conftest.err >&5
9709 echo "$as_me:9709: \$? = $ac_status" >&5
9710 if (exit $ac_status) && test -s "$ac_outfile"; then
9711 # The compiler can only warn and ignore the option if not recognized
9712 # So say no if there are warnings other than the usual output.
9713 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9716 lt_cv_prog_compiler_pic_works=yes
9717 fi
9718 fi
9719 $RM conftest*
9720
9721 fi
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9723 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9724
9725 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9726 case $lt_prog_compiler_pic in
9727 "" | " "*) ;;
9728 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9729 esac
9730 else
9731 lt_prog_compiler_pic=
9732 lt_prog_compiler_can_build_shared=no
9733 fi
9734
9735 fi
9736
9737
9738
9739
9740
9741
9742 #
9743 # Check to make sure the static flag actually works.
9744 #
9745 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9747 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9748 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9749 $as_echo_n "(cached) " >&6
9750 else
9751 lt_cv_prog_compiler_static_works=no
9752 save_LDFLAGS="$LDFLAGS"
9753 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9754 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9756 # The linker can only warn and ignore the option if not recognized
9757 # So say no if there are warnings
9758 if test -s conftest.err; then
9759 # Append any errors to the config.log.
9760 cat conftest.err 1>&5
9761 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9763 if diff conftest.exp conftest.er2 >/dev/null; then
9764 lt_cv_prog_compiler_static_works=yes
9765 fi
9766 else
9767 lt_cv_prog_compiler_static_works=yes
9768 fi
9769 fi
9770 $RM -r conftest*
9771 LDFLAGS="$save_LDFLAGS"
9772
9773 fi
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9775 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9776
9777 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9778 :
9779 else
9780 lt_prog_compiler_static=
9781 fi
9782
9783
9784
9785
9786
9787
9788
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9790 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9791 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 lt_cv_prog_compiler_c_o=no
9795 $RM -r conftest 2>/dev/null
9796 mkdir conftest
9797 cd conftest
9798 mkdir out
9799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9800
9801 lt_compiler_flag="-o out/conftest2.$ac_objext"
9802 # Insert the option either (1) after the last *FLAGS variable, or
9803 # (2) before a word containing "conftest.", or (3) at the end.
9804 # Note that $ac_compile itself does not contain backslashes and begins
9805 # with a dollar sign (not a hyphen), so the echo should work correctly.
9806 lt_compile=`echo "$ac_compile" | $SED \
9807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9809 -e 's:$: $lt_compiler_flag:'`
9810 (eval echo "\"\$as_me:9810: $lt_compile\"" >&5)
9811 (eval "$lt_compile" 2>out/conftest.err)
9812 ac_status=$?
9813 cat out/conftest.err >&5
9814 echo "$as_me:9814: \$? = $ac_status" >&5
9815 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9816 then
9817 # The compiler can only warn and ignore the option if not recognized
9818 # So say no if there are warnings
9819 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9820 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9821 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9822 lt_cv_prog_compiler_c_o=yes
9823 fi
9824 fi
9825 chmod u+w . 2>&5
9826 $RM conftest*
9827 # SGI C++ compiler will create directory out/ii_files/ for
9828 # template instantiation
9829 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9830 $RM out/* && rmdir out
9831 cd ..
9832 $RM -r conftest
9833 $RM conftest*
9834
9835 fi
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9837 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9838
9839
9840
9841
9842
9843
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9845 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9846 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 lt_cv_prog_compiler_c_o=no
9850 $RM -r conftest 2>/dev/null
9851 mkdir conftest
9852 cd conftest
9853 mkdir out
9854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9855
9856 lt_compiler_flag="-o out/conftest2.$ac_objext"
9857 # Insert the option either (1) after the last *FLAGS variable, or
9858 # (2) before a word containing "conftest.", or (3) at the end.
9859 # Note that $ac_compile itself does not contain backslashes and begins
9860 # with a dollar sign (not a hyphen), so the echo should work correctly.
9861 lt_compile=`echo "$ac_compile" | $SED \
9862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9864 -e 's:$: $lt_compiler_flag:'`
9865 (eval echo "\"\$as_me:9865: $lt_compile\"" >&5)
9866 (eval "$lt_compile" 2>out/conftest.err)
9867 ac_status=$?
9868 cat out/conftest.err >&5
9869 echo "$as_me:9869: \$? = $ac_status" >&5
9870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9871 then
9872 # The compiler can only warn and ignore the option if not recognized
9873 # So say no if there are warnings
9874 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9877 lt_cv_prog_compiler_c_o=yes
9878 fi
9879 fi
9880 chmod u+w . 2>&5
9881 $RM conftest*
9882 # SGI C++ compiler will create directory out/ii_files/ for
9883 # template instantiation
9884 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9885 $RM out/* && rmdir out
9886 cd ..
9887 $RM -r conftest
9888 $RM conftest*
9889
9890 fi
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9892 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9893
9894
9895
9896
9897 hard_links="nottested"
9898 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9899 # do not overwrite the value of need_locks provided by the user
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9901 $as_echo_n "checking if we can lock with hard links... " >&6; }
9902 hard_links=yes
9903 $RM conftest*
9904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9905 touch conftest.a
9906 ln conftest.a conftest.b 2>&5 || hard_links=no
9907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9909 $as_echo "$hard_links" >&6; }
9910 if test "$hard_links" = no; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9912 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9913 need_locks=warn
9914 fi
9915 else
9916 need_locks=no
9917 fi
9918
9919
9920
9921
9922
9923
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9925 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9926
9927 runpath_var=
9928 allow_undefined_flag=
9929 always_export_symbols=no
9930 archive_cmds=
9931 archive_expsym_cmds=
9932 compiler_needs_object=no
9933 enable_shared_with_static_runtimes=no
9934 export_dynamic_flag_spec=
9935 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9936 hardcode_automatic=no
9937 hardcode_direct=no
9938 hardcode_direct_absolute=no
9939 hardcode_libdir_flag_spec=
9940 hardcode_libdir_flag_spec_ld=
9941 hardcode_libdir_separator=
9942 hardcode_minus_L=no
9943 hardcode_shlibpath_var=unsupported
9944 inherit_rpath=no
9945 link_all_deplibs=unknown
9946 module_cmds=
9947 module_expsym_cmds=
9948 old_archive_from_new_cmds=
9949 old_archive_from_expsyms_cmds=
9950 thread_safe_flag_spec=
9951 whole_archive_flag_spec=
9952 # include_expsyms should be a list of space-separated symbols to be *always*
9953 # included in the symbol list
9954 include_expsyms=
9955 # exclude_expsyms can be an extended regexp of symbols to exclude
9956 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9957 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9958 # as well as any symbol that contains `d'.
9959 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9960 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9961 # platforms (ab)use it in PIC code, but their linkers get confused if
9962 # the symbol is explicitly referenced. Since portable code cannot
9963 # rely on this symbol name, it's probably fine to never include it in
9964 # preloaded symbol tables.
9965 # Exclude shared library initialization/finalization symbols.
9966 extract_expsyms_cmds=
9967
9968 case $host_os in
9969 cygwin* | mingw* | pw32* | cegcc*)
9970 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9971 # When not using gcc, we currently assume that we are using
9972 # Microsoft Visual C++.
9973 if test "$GCC" != yes; then
9974 with_gnu_ld=no
9975 fi
9976 ;;
9977 interix*)
9978 # we just hope/assume this is gcc and not c89 (= MSVC++)
9979 with_gnu_ld=yes
9980 ;;
9981 openbsd*)
9982 with_gnu_ld=no
9983 ;;
9984 esac
9985
9986 ld_shlibs=yes
9987 if test "$with_gnu_ld" = yes; then
9988 # If archive_cmds runs LD, not CC, wlarc should be empty
9989 wlarc='${wl}'
9990
9991 # Set some defaults for GNU ld with shared library support. These
9992 # are reset later if shared libraries are not supported. Putting them
9993 # here allows them to be overridden if necessary.
9994 runpath_var=LD_RUN_PATH
9995 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9996 export_dynamic_flag_spec='${wl}--export-dynamic'
9997 # ancient GNU ld didn't support --whole-archive et. al.
9998 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9999 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10000 else
10001 whole_archive_flag_spec=
10002 fi
10003 supports_anon_versioning=no
10004 case `$LD -v 2>&1` in
10005 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10006 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10007 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10008 *\ 2.11.*) ;; # other 2.11 versions
10009 *) supports_anon_versioning=yes ;;
10010 esac
10011
10012 # See if GNU ld supports shared libraries.
10013 case $host_os in
10014 aix[3-9]*)
10015 # On AIX/PPC, the GNU linker is very broken
10016 if test "$host_cpu" != ia64; then
10017 ld_shlibs=no
10018 cat <<_LT_EOF 1>&2
10019
10020 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10021 *** to be unable to reliably create shared libraries on AIX.
10022 *** Therefore, libtool is disabling shared libraries support. If you
10023 *** really care for shared libraries, you may want to modify your PATH
10024 *** so that a non-GNU linker is found, and then restart.
10025
10026 _LT_EOF
10027 fi
10028 ;;
10029
10030 amigaos*)
10031 case $host_cpu in
10032 powerpc)
10033 # see comment about AmigaOS4 .so support
10034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10035 archive_expsym_cmds=''
10036 ;;
10037 m68k)
10038 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)'
10039 hardcode_libdir_flag_spec='-L$libdir'
10040 hardcode_minus_L=yes
10041 ;;
10042 esac
10043 ;;
10044
10045 beos*)
10046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10047 allow_undefined_flag=unsupported
10048 # Joseph Beckenbach <[email protected]> says some releases of gcc
10049 # support --undefined. This deserves some investigation. FIXME
10050 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10051 else
10052 ld_shlibs=no
10053 fi
10054 ;;
10055
10056 cygwin* | mingw* | pw32* | cegcc*)
10057 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10058 # as there is no search path for DLLs.
10059 hardcode_libdir_flag_spec='-L$libdir'
10060 allow_undefined_flag=unsupported
10061 always_export_symbols=no
10062 enable_shared_with_static_runtimes=yes
10063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10064
10065 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10067 # If the export-symbols file already is a .def file (1st line
10068 # is EXPORTS), use it as is; otherwise, prepend...
10069 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10070 cp $export_symbols $output_objdir/$soname.def;
10071 else
10072 echo EXPORTS > $output_objdir/$soname.def;
10073 cat $export_symbols >> $output_objdir/$soname.def;
10074 fi~
10075 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10076 else
10077 ld_shlibs=no
10078 fi
10079 ;;
10080
10081 interix[3-9]*)
10082 hardcode_direct=no
10083 hardcode_shlibpath_var=no
10084 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10085 export_dynamic_flag_spec='${wl}-E'
10086 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10087 # Instead, shared libraries are loaded at an image base (0x10000000 by
10088 # default) and relocated if they conflict, which is a slow very memory
10089 # consuming and fragmenting process. To avoid this, we pick a random,
10090 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10091 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10092 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10093 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'
10094 ;;
10095
10096 gnu* | linux* | tpf* | k*bsd*-gnu)
10097 tmp_diet=no
10098 if test "$host_os" = linux-dietlibc; then
10099 case $cc_basename in
10100 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10101 esac
10102 fi
10103 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10104 && test "$tmp_diet" = no
10105 then
10106 tmp_addflag=
10107 tmp_sharedflag='-shared'
10108 case $cc_basename,$host_cpu in
10109 pgcc*) # Portland Group C compiler
10110 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'
10111 tmp_addflag=' $pic_flag'
10112 ;;
10113 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10114 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'
10115 tmp_addflag=' $pic_flag -Mnomain' ;;
10116 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10117 tmp_addflag=' -i_dynamic' ;;
10118 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10119 tmp_addflag=' -i_dynamic -nofor_main' ;;
10120 ifc* | ifort*) # Intel Fortran compiler
10121 tmp_addflag=' -nofor_main' ;;
10122 lf95*) # Lahey Fortran 8.1
10123 whole_archive_flag_spec=
10124 tmp_sharedflag='--shared' ;;
10125 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10126 tmp_sharedflag='-qmkshrobj'
10127 tmp_addflag= ;;
10128 esac
10129 case `$CC -V 2>&1 | sed 5q` in
10130 *Sun\ C*) # Sun C 5.9
10131 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'
10132 compiler_needs_object=yes
10133 tmp_sharedflag='-G' ;;
10134 *Sun\ F*) # Sun Fortran 8.3
10135 tmp_sharedflag='-G' ;;
10136 esac
10137 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10138
10139 if test "x$supports_anon_versioning" = xyes; then
10140 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10141 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10142 echo "local: *; };" >> $output_objdir/$libname.ver~
10143 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10144 fi
10145
10146 case $cc_basename in
10147 xlf*)
10148 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10149 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10150 hardcode_libdir_flag_spec=
10151 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10152 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10153 if test "x$supports_anon_versioning" = xyes; then
10154 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10155 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10156 echo "local: *; };" >> $output_objdir/$libname.ver~
10157 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10158 fi
10159 ;;
10160 esac
10161 else
10162 ld_shlibs=no
10163 fi
10164 ;;
10165
10166 netbsd*)
10167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10168 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10169 wlarc=
10170 else
10171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10172 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10173 fi
10174 ;;
10175
10176 solaris*)
10177 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10178 ld_shlibs=no
10179 cat <<_LT_EOF 1>&2
10180
10181 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10182 *** create shared libraries on Solaris systems. Therefore, libtool
10183 *** is disabling shared libraries support. We urge you to upgrade GNU
10184 *** binutils to release 2.9.1 or newer. Another option is to modify
10185 *** your PATH or compiler configuration so that the native linker is
10186 *** used, and then restart.
10187
10188 _LT_EOF
10189 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10191 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10192 else
10193 ld_shlibs=no
10194 fi
10195 ;;
10196
10197 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10198 case `$LD -v 2>&1` in
10199 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10200 ld_shlibs=no
10201 cat <<_LT_EOF 1>&2
10202
10203 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10204 *** reliably create shared libraries on SCO systems. Therefore, libtool
10205 *** is disabling shared libraries support. We urge you to upgrade GNU
10206 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10207 *** your PATH or compiler configuration so that the native linker is
10208 *** used, and then restart.
10209
10210 _LT_EOF
10211 ;;
10212 *)
10213 # For security reasons, it is highly recommended that you always
10214 # use absolute paths for naming shared libraries, and exclude the
10215 # DT_RUNPATH tag from executables and libraries. But doing so
10216 # requires that you compile everything twice, which is a pain.
10217 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10218 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10220 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10221 else
10222 ld_shlibs=no
10223 fi
10224 ;;
10225 esac
10226 ;;
10227
10228 sunos4*)
10229 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10230 wlarc=
10231 hardcode_direct=yes
10232 hardcode_shlibpath_var=no
10233 ;;
10234
10235 *)
10236 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10238 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10239 else
10240 ld_shlibs=no
10241 fi
10242 ;;
10243 esac
10244
10245 if test "$ld_shlibs" = no; then
10246 runpath_var=
10247 hardcode_libdir_flag_spec=
10248 export_dynamic_flag_spec=
10249 whole_archive_flag_spec=
10250 fi
10251 else
10252 # PORTME fill in a description of your system's linker (not GNU ld)
10253 case $host_os in
10254 aix3*)
10255 allow_undefined_flag=unsupported
10256 always_export_symbols=yes
10257 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'
10258 # Note: this linker hardcodes the directories in LIBPATH if there
10259 # are no directories specified by -L.
10260 hardcode_minus_L=yes
10261 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10262 # Neither direct hardcoding nor static linking is supported with a
10263 # broken collect2.
10264 hardcode_direct=unsupported
10265 fi
10266 ;;
10267
10268 aix[4-9]*)
10269 if test "$host_cpu" = ia64; then
10270 # On IA64, the linker does run time linking by default, so we don't
10271 # have to do anything special.
10272 aix_use_runtimelinking=no
10273 exp_sym_flag='-Bexport'
10274 no_entry_flag=""
10275 else
10276 # If we're using GNU nm, then we don't want the "-C" option.
10277 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10278 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10279 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'
10280 else
10281 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'
10282 fi
10283 aix_use_runtimelinking=no
10284
10285 # Test if we are trying to use run time linking or normal
10286 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10287 # need to do runtime linking.
10288 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10289 for ld_flag in $LDFLAGS; do
10290 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10291 aix_use_runtimelinking=yes
10292 break
10293 fi
10294 done
10295 ;;
10296 esac
10297
10298 exp_sym_flag='-bexport'
10299 no_entry_flag='-bnoentry'
10300 fi
10301
10302 # When large executables or shared objects are built, AIX ld can
10303 # have problems creating the table of contents. If linking a library
10304 # or program results in "error TOC overflow" add -mminimal-toc to
10305 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10306 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10307
10308 archive_cmds=''
10309 hardcode_direct=yes
10310 hardcode_direct_absolute=yes
10311 hardcode_libdir_separator=':'
10312 link_all_deplibs=yes
10313 file_list_spec='${wl}-f,'
10314
10315 if test "$GCC" = yes; then
10316 case $host_os in aix4.[012]|aix4.[012].*)
10317 # We only want to do this on AIX 4.2 and lower, the check
10318 # below for broken collect2 doesn't work under 4.3+
10319 collect2name=`${CC} -print-prog-name=collect2`
10320 if test -f "$collect2name" &&
10321 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10322 then
10323 # We have reworked collect2
10324 :
10325 else
10326 # We have old collect2
10327 hardcode_direct=unsupported
10328 # It fails to find uninstalled libraries when the uninstalled
10329 # path is not listed in the libpath. Setting hardcode_minus_L
10330 # to unsupported forces relinking
10331 hardcode_minus_L=yes
10332 hardcode_libdir_flag_spec='-L$libdir'
10333 hardcode_libdir_separator=
10334 fi
10335 ;;
10336 esac
10337 shared_flag='-shared'
10338 if test "$aix_use_runtimelinking" = yes; then
10339 shared_flag="$shared_flag "'${wl}-G'
10340 fi
10341 else
10342 # not using gcc
10343 if test "$host_cpu" = ia64; then
10344 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10345 # chokes on -Wl,-G. The following line is correct:
10346 shared_flag='-G'
10347 else
10348 if test "$aix_use_runtimelinking" = yes; then
10349 shared_flag='${wl}-G'
10350 else
10351 shared_flag='${wl}-bM:SRE'
10352 fi
10353 fi
10354 fi
10355
10356 export_dynamic_flag_spec='${wl}-bexpall'
10357 # It seems that -bexpall does not export symbols beginning with
10358 # underscore (_), so it is better to generate a list of symbols to export.
10359 always_export_symbols=yes
10360 if test "$aix_use_runtimelinking" = yes; then
10361 # Warning - without using the other runtime loading flags (-brtl),
10362 # -berok will link without error, but may produce a broken library.
10363 allow_undefined_flag='-berok'
10364 # Determine the default libpath from the value encoded in an
10365 # empty executable.
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10368
10369 int
10370 main ()
10371 {
10372
10373 ;
10374 return 0;
10375 }
10376 _ACEOF
10377 if ac_fn_c_try_link "$LINENO"; then :
10378
10379 lt_aix_libpath_sed='
10380 /Import File Strings/,/^$/ {
10381 /^0/ {
10382 s/^0 *\(.*\)$/\1/
10383 p
10384 }
10385 }'
10386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10387 # Check for a 64-bit object if we didn't find anything.
10388 if test -z "$aix_libpath"; then
10389 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10390 fi
10391 fi
10392 rm -f core conftest.err conftest.$ac_objext \
10393 conftest$ac_exeext conftest.$ac_ext
10394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10395
10396 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10397 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"
10398 else
10399 if test "$host_cpu" = ia64; then
10400 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10401 allow_undefined_flag="-z nodefs"
10402 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"
10403 else
10404 # Determine the default libpath from the value encoded in an
10405 # empty executable.
10406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407 /* end confdefs.h. */
10408
10409 int
10410 main ()
10411 {
10412
10413 ;
10414 return 0;
10415 }
10416 _ACEOF
10417 if ac_fn_c_try_link "$LINENO"; then :
10418
10419 lt_aix_libpath_sed='
10420 /Import File Strings/,/^$/ {
10421 /^0/ {
10422 s/^0 *\(.*\)$/\1/
10423 p
10424 }
10425 }'
10426 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10427 # Check for a 64-bit object if we didn't find anything.
10428 if test -z "$aix_libpath"; then
10429 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10430 fi
10431 fi
10432 rm -f core conftest.err conftest.$ac_objext \
10433 conftest$ac_exeext conftest.$ac_ext
10434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10435
10436 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10437 # Warning - without using the other run time loading flags,
10438 # -berok will link without error, but may produce a broken library.
10439 no_undefined_flag=' ${wl}-bernotok'
10440 allow_undefined_flag=' ${wl}-berok'
10441 # Exported symbols can be pulled into shared objects from archives
10442 whole_archive_flag_spec='$convenience'
10443 archive_cmds_need_lc=yes
10444 # This is similar to how AIX traditionally builds its shared libraries.
10445 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'
10446 fi
10447 fi
10448 ;;
10449
10450 amigaos*)
10451 case $host_cpu in
10452 powerpc)
10453 # see comment about AmigaOS4 .so support
10454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10455 archive_expsym_cmds=''
10456 ;;
10457 m68k)
10458 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)'
10459 hardcode_libdir_flag_spec='-L$libdir'
10460 hardcode_minus_L=yes
10461 ;;
10462 esac
10463 ;;
10464
10465 bsdi[45]*)
10466 export_dynamic_flag_spec=-rdynamic
10467 ;;
10468
10469 cygwin* | mingw* | pw32* | cegcc*)
10470 # When not using gcc, we currently assume that we are using
10471 # Microsoft Visual C++.
10472 # hardcode_libdir_flag_spec is actually meaningless, as there is
10473 # no search path for DLLs.
10474 hardcode_libdir_flag_spec=' '
10475 allow_undefined_flag=unsupported
10476 # Tell ltmain to make .lib files, not .a files.
10477 libext=lib
10478 # Tell ltmain to make .dll files, not .so files.
10479 shrext_cmds=".dll"
10480 # FIXME: Setting linknames here is a bad hack.
10481 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10482 # The linker will automatically build a .lib file if we build a DLL.
10483 old_archive_from_new_cmds='true'
10484 # FIXME: Should let the user specify the lib program.
10485 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10486 fix_srcfile_path='`cygpath -w "$srcfile"`'
10487 enable_shared_with_static_runtimes=yes
10488 ;;
10489
10490 darwin* | rhapsody*)
10491
10492
10493 archive_cmds_need_lc=no
10494 hardcode_direct=no
10495 hardcode_automatic=yes
10496 hardcode_shlibpath_var=unsupported
10497 whole_archive_flag_spec=''
10498 link_all_deplibs=yes
10499 allow_undefined_flag="$_lt_dar_allow_undefined"
10500 case $cc_basename in
10501 ifort*) _lt_dar_can_shared=yes ;;
10502 *) _lt_dar_can_shared=$GCC ;;
10503 esac
10504 if test "$_lt_dar_can_shared" = "yes"; then
10505 output_verbose_link_cmd=echo
10506 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10507 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10508 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}"
10509 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}"
10510
10511 else
10512 ld_shlibs=no
10513 fi
10514
10515 ;;
10516
10517 dgux*)
10518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10519 hardcode_libdir_flag_spec='-L$libdir'
10520 hardcode_shlibpath_var=no
10521 ;;
10522
10523 freebsd1*)
10524 ld_shlibs=no
10525 ;;
10526
10527 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10528 # support. Future versions do this automatically, but an explicit c++rt0.o
10529 # does not break anything, and helps significantly (at the cost of a little
10530 # extra space).
10531 freebsd2.2*)
10532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10533 hardcode_libdir_flag_spec='-R$libdir'
10534 hardcode_direct=yes
10535 hardcode_shlibpath_var=no
10536 ;;
10537
10538 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10539 freebsd2*)
10540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10541 hardcode_direct=yes
10542 hardcode_minus_L=yes
10543 hardcode_shlibpath_var=no
10544 ;;
10545
10546 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10547 freebsd* | dragonfly*)
10548 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10549 hardcode_libdir_flag_spec='-R$libdir'
10550 hardcode_direct=yes
10551 hardcode_shlibpath_var=no
10552 ;;
10553
10554 hpux9*)
10555 if test "$GCC" = yes; then
10556 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'
10557 else
10558 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'
10559 fi
10560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10561 hardcode_libdir_separator=:
10562 hardcode_direct=yes
10563
10564 # hardcode_minus_L: Not really in the search PATH,
10565 # but as the default location of the library.
10566 hardcode_minus_L=yes
10567 export_dynamic_flag_spec='${wl}-E'
10568 ;;
10569
10570 hpux10*)
10571 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10572 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10573 else
10574 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10575 fi
10576 if test "$with_gnu_ld" = no; then
10577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10578 hardcode_libdir_flag_spec_ld='+b $libdir'
10579 hardcode_libdir_separator=:
10580 hardcode_direct=yes
10581 hardcode_direct_absolute=yes
10582 export_dynamic_flag_spec='${wl}-E'
10583 # hardcode_minus_L: Not really in the search PATH,
10584 # but as the default location of the library.
10585 hardcode_minus_L=yes
10586 fi
10587 ;;
10588
10589 hpux11*)
10590 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10591 case $host_cpu in
10592 hppa*64*)
10593 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10594 ;;
10595 ia64*)
10596 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10597 ;;
10598 *)
10599 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10600 ;;
10601 esac
10602 else
10603 case $host_cpu in
10604 hppa*64*)
10605 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10606 ;;
10607 ia64*)
10608 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10609 ;;
10610 *)
10611 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10612 ;;
10613 esac
10614 fi
10615 if test "$with_gnu_ld" = no; then
10616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10617 hardcode_libdir_separator=:
10618
10619 case $host_cpu in
10620 hppa*64*|ia64*)
10621 hardcode_direct=no
10622 hardcode_shlibpath_var=no
10623 ;;
10624 *)
10625 hardcode_direct=yes
10626 hardcode_direct_absolute=yes
10627 export_dynamic_flag_spec='${wl}-E'
10628
10629 # hardcode_minus_L: Not really in the search PATH,
10630 # but as the default location of the library.
10631 hardcode_minus_L=yes
10632 ;;
10633 esac
10634 fi
10635 ;;
10636
10637 irix5* | irix6* | nonstopux*)
10638 if test "$GCC" = yes; then
10639 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'
10640 # Try to use the -exported_symbol ld option, if it does not
10641 # work, assume that -exports_file does not work either and
10642 # implicitly export all symbols.
10643 save_LDFLAGS="$LDFLAGS"
10644 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10647 int foo(void) {}
10648 _ACEOF
10649 if ac_fn_c_try_link "$LINENO"; then :
10650 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'
10651
10652 fi
10653 rm -f core conftest.err conftest.$ac_objext \
10654 conftest$ac_exeext conftest.$ac_ext
10655 LDFLAGS="$save_LDFLAGS"
10656 else
10657 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'
10658 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'
10659 fi
10660 archive_cmds_need_lc='no'
10661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10662 hardcode_libdir_separator=:
10663 inherit_rpath=yes
10664 link_all_deplibs=yes
10665 ;;
10666
10667 netbsd*)
10668 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10670 else
10671 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10672 fi
10673 hardcode_libdir_flag_spec='-R$libdir'
10674 hardcode_direct=yes
10675 hardcode_shlibpath_var=no
10676 ;;
10677
10678 newsos6)
10679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10680 hardcode_direct=yes
10681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10682 hardcode_libdir_separator=:
10683 hardcode_shlibpath_var=no
10684 ;;
10685
10686 *nto* | *qnx*)
10687 ;;
10688
10689 openbsd*)
10690 if test -f /usr/libexec/ld.so; then
10691 hardcode_direct=yes
10692 hardcode_shlibpath_var=no
10693 hardcode_direct_absolute=yes
10694 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10695 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10696 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10697 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10698 export_dynamic_flag_spec='${wl}-E'
10699 else
10700 case $host_os in
10701 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10703 hardcode_libdir_flag_spec='-R$libdir'
10704 ;;
10705 *)
10706 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10707 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10708 ;;
10709 esac
10710 fi
10711 else
10712 ld_shlibs=no
10713 fi
10714 ;;
10715
10716 os2*)
10717 hardcode_libdir_flag_spec='-L$libdir'
10718 hardcode_minus_L=yes
10719 allow_undefined_flag=unsupported
10720 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'
10721 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10722 ;;
10723
10724 osf3*)
10725 if test "$GCC" = yes; then
10726 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10727 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'
10728 else
10729 allow_undefined_flag=' -expect_unresolved \*'
10730 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'
10731 fi
10732 archive_cmds_need_lc='no'
10733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10734 hardcode_libdir_separator=:
10735 ;;
10736
10737 osf4* | osf5*) # as osf3* with the addition of -msym flag
10738 if test "$GCC" = yes; then
10739 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10740 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'
10741 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10742 else
10743 allow_undefined_flag=' -expect_unresolved \*'
10744 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'
10745 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~
10746 $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'
10747
10748 # Both c and cxx compiler support -rpath directly
10749 hardcode_libdir_flag_spec='-rpath $libdir'
10750 fi
10751 archive_cmds_need_lc='no'
10752 hardcode_libdir_separator=:
10753 ;;
10754
10755 solaris*)
10756 no_undefined_flag=' -z defs'
10757 if test "$GCC" = yes; then
10758 wlarc='${wl}'
10759 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10760 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10761 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10762 else
10763 case `$CC -V 2>&1` in
10764 *"Compilers 5.0"*)
10765 wlarc=''
10766 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10767 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10768 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10769 ;;
10770 *)
10771 wlarc='${wl}'
10772 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10773 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10774 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10775 ;;
10776 esac
10777 fi
10778 hardcode_libdir_flag_spec='-R$libdir'
10779 hardcode_shlibpath_var=no
10780 case $host_os in
10781 solaris2.[0-5] | solaris2.[0-5].*) ;;
10782 *)
10783 # The compiler driver will combine and reorder linker options,
10784 # but understands `-z linker_flag'. GCC discards it without `$wl',
10785 # but is careful enough not to reorder.
10786 # Supported since Solaris 2.6 (maybe 2.5.1?)
10787 if test "$GCC" = yes; then
10788 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10789 else
10790 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10791 fi
10792 ;;
10793 esac
10794 link_all_deplibs=yes
10795 ;;
10796
10797 sunos4*)
10798 if test "x$host_vendor" = xsequent; then
10799 # Use $CC to link under sequent, because it throws in some extra .o
10800 # files that make .init and .fini sections work.
10801 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10802 else
10803 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10804 fi
10805 hardcode_libdir_flag_spec='-L$libdir'
10806 hardcode_direct=yes
10807 hardcode_minus_L=yes
10808 hardcode_shlibpath_var=no
10809 ;;
10810
10811 sysv4)
10812 case $host_vendor in
10813 sni)
10814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10815 hardcode_direct=yes # is this really true???
10816 ;;
10817 siemens)
10818 ## LD is ld it makes a PLAMLIB
10819 ## CC just makes a GrossModule.
10820 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10821 reload_cmds='$CC -r -o $output$reload_objs'
10822 hardcode_direct=no
10823 ;;
10824 motorola)
10825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10827 ;;
10828 esac
10829 runpath_var='LD_RUN_PATH'
10830 hardcode_shlibpath_var=no
10831 ;;
10832
10833 sysv4.3*)
10834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10835 hardcode_shlibpath_var=no
10836 export_dynamic_flag_spec='-Bexport'
10837 ;;
10838
10839 sysv4*MP*)
10840 if test -d /usr/nec; then
10841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10842 hardcode_shlibpath_var=no
10843 runpath_var=LD_RUN_PATH
10844 hardcode_runpath_var=yes
10845 ld_shlibs=yes
10846 fi
10847 ;;
10848
10849 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10850 no_undefined_flag='${wl}-z,text'
10851 archive_cmds_need_lc=no
10852 hardcode_shlibpath_var=no
10853 runpath_var='LD_RUN_PATH'
10854
10855 if test "$GCC" = yes; then
10856 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10857 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10858 else
10859 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10860 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10861 fi
10862 ;;
10863
10864 sysv5* | sco3.2v5* | sco5v6*)
10865 # Note: We can NOT use -z defs as we might desire, because we do not
10866 # link with -lc, and that would cause any symbols used from libc to
10867 # always be unresolved, which means just about no library would
10868 # ever link correctly. If we're not using GNU ld we use -z text
10869 # though, which does catch some bad symbols but isn't as heavy-handed
10870 # as -z defs.
10871 no_undefined_flag='${wl}-z,text'
10872 allow_undefined_flag='${wl}-z,nodefs'
10873 archive_cmds_need_lc=no
10874 hardcode_shlibpath_var=no
10875 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10876 hardcode_libdir_separator=':'
10877 link_all_deplibs=yes
10878 export_dynamic_flag_spec='${wl}-Bexport'
10879 runpath_var='LD_RUN_PATH'
10880
10881 if test "$GCC" = yes; then
10882 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10883 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10884 else
10885 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10886 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10887 fi
10888 ;;
10889
10890 uts4*)
10891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10892 hardcode_libdir_flag_spec='-L$libdir'
10893 hardcode_shlibpath_var=no
10894 ;;
10895
10896 *)
10897 ld_shlibs=no
10898 ;;
10899 esac
10900
10901 if test x$host_vendor = xsni; then
10902 case $host in
10903 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10904 export_dynamic_flag_spec='${wl}-Blargedynsym'
10905 ;;
10906 esac
10907 fi
10908 fi
10909
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10911 $as_echo "$ld_shlibs" >&6; }
10912 test "$ld_shlibs" = no && can_build_shared=no
10913
10914 with_gnu_ld=$with_gnu_ld
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930 #
10931 # Do we need to explicitly link libc?
10932 #
10933 case "x$archive_cmds_need_lc" in
10934 x|xyes)
10935 # Assume -lc should be added
10936 archive_cmds_need_lc=yes
10937
10938 if test "$enable_shared" = yes && test "$GCC" = yes; then
10939 case $archive_cmds in
10940 *'~'*)
10941 # FIXME: we may have to deal with multi-command sequences.
10942 ;;
10943 '$CC '*)
10944 # Test whether the compiler implicitly links with -lc since on some
10945 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10946 # to ld, don't add -lc before -lgcc.
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10948 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10949 $RM conftest*
10950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10951
10952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10953 (eval $ac_compile) 2>&5
10954 ac_status=$?
10955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10956 test $ac_status = 0; } 2>conftest.err; then
10957 soname=conftest
10958 lib=conftest
10959 libobjs=conftest.$ac_objext
10960 deplibs=
10961 wl=$lt_prog_compiler_wl
10962 pic_flag=$lt_prog_compiler_pic
10963 compiler_flags=-v
10964 linker_flags=-v
10965 verstring=
10966 output_objdir=.
10967 libname=conftest
10968 lt_save_allow_undefined_flag=$allow_undefined_flag
10969 allow_undefined_flag=
10970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10971 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10972 ac_status=$?
10973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10974 test $ac_status = 0; }
10975 then
10976 archive_cmds_need_lc=no
10977 else
10978 archive_cmds_need_lc=yes
10979 fi
10980 allow_undefined_flag=$lt_save_allow_undefined_flag
10981 else
10982 cat conftest.err 1>&5
10983 fi
10984 $RM conftest*
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10986 $as_echo "$archive_cmds_need_lc" >&6; }
10987 ;;
10988 esac
10989 fi
10990 ;;
10991 esac
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11150 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11151
11152 if test "$GCC" = yes; then
11153 case $host_os in
11154 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11155 *) lt_awk_arg="/^libraries:/" ;;
11156 esac
11157 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11158 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11159 # if the path contains ";" then we assume it to be the separator
11160 # otherwise default to the standard path separator (i.e. ":") - it is
11161 # assumed that no part of a normal pathname contains ";" but that should
11162 # okay in the real world where ";" in dirpaths is itself problematic.
11163 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11164 else
11165 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11166 fi
11167 # Ok, now we have the path, separated by spaces, we can step through it
11168 # and add multilib dir if necessary.
11169 lt_tmp_lt_search_path_spec=
11170 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11171 for lt_sys_path in $lt_search_path_spec; do
11172 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11173 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11174 else
11175 test -d "$lt_sys_path" && \
11176 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11177 fi
11178 done
11179 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11180 BEGIN {RS=" "; FS="/|\n";} {
11181 lt_foo="";
11182 lt_count=0;
11183 for (lt_i = NF; lt_i > 0; lt_i--) {
11184 if ($lt_i != "" && $lt_i != ".") {
11185 if ($lt_i == "..") {
11186 lt_count++;
11187 } else {
11188 if (lt_count == 0) {
11189 lt_foo="/" $lt_i lt_foo;
11190 } else {
11191 lt_count--;
11192 }
11193 }
11194 }
11195 }
11196 if (lt_foo != "") { lt_freq[lt_foo]++; }
11197 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11198 }'`
11199 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11200 else
11201 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11202 fi
11203 library_names_spec=
11204 libname_spec='lib$name'
11205 soname_spec=
11206 shrext_cmds=".so"
11207 postinstall_cmds=
11208 postuninstall_cmds=
11209 finish_cmds=
11210 finish_eval=
11211 shlibpath_var=
11212 shlibpath_overrides_runpath=unknown
11213 version_type=none
11214 dynamic_linker="$host_os ld.so"
11215 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11216 need_lib_prefix=unknown
11217 hardcode_into_libs=no
11218
11219 # when you set need_version to no, make sure it does not cause -set_version
11220 # flags to be left without arguments
11221 need_version=unknown
11222
11223 case $host_os in
11224 aix3*)
11225 version_type=linux
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11227 shlibpath_var=LIBPATH
11228
11229 # AIX 3 has no versioning support, so we append a major version to the name.
11230 soname_spec='${libname}${release}${shared_ext}$major'
11231 ;;
11232
11233 aix[4-9]*)
11234 version_type=linux
11235 need_lib_prefix=no
11236 need_version=no
11237 hardcode_into_libs=yes
11238 if test "$host_cpu" = ia64; then
11239 # AIX 5 supports IA64
11240 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11241 shlibpath_var=LD_LIBRARY_PATH
11242 else
11243 # With GCC up to 2.95.x, collect2 would create an import file
11244 # for dependence libraries. The import file would start with
11245 # the line `#! .'. This would cause the generated library to
11246 # depend on `.', always an invalid library. This was fixed in
11247 # development snapshots of GCC prior to 3.0.
11248 case $host_os in
11249 aix4 | aix4.[01] | aix4.[01].*)
11250 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11251 echo ' yes '
11252 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11253 :
11254 else
11255 can_build_shared=no
11256 fi
11257 ;;
11258 esac
11259 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11260 # soname into executable. Probably we can add versioning support to
11261 # collect2, so additional links can be useful in future.
11262 if test "$aix_use_runtimelinking" = yes; then
11263 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11264 # instead of lib<name>.a to let people know that these are not
11265 # typical AIX shared libraries.
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 else
11268 # We preserve .a as extension for shared libraries through AIX4.2
11269 # and later when we are not doing run time linking.
11270 library_names_spec='${libname}${release}.a $libname.a'
11271 soname_spec='${libname}${release}${shared_ext}$major'
11272 fi
11273 shlibpath_var=LIBPATH
11274 fi
11275 ;;
11276
11277 amigaos*)
11278 case $host_cpu in
11279 powerpc)
11280 # Since July 2007 AmigaOS4 officially supports .so libraries.
11281 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11283 ;;
11284 m68k)
11285 library_names_spec='$libname.ixlibrary $libname.a'
11286 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11287 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'
11288 ;;
11289 esac
11290 ;;
11291
11292 beos*)
11293 library_names_spec='${libname}${shared_ext}'
11294 dynamic_linker="$host_os ld.so"
11295 shlibpath_var=LIBRARY_PATH
11296 ;;
11297
11298 bsdi[45]*)
11299 version_type=linux
11300 need_version=no
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11304 shlibpath_var=LD_LIBRARY_PATH
11305 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11306 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11307 # the default ld.so.conf also contains /usr/contrib/lib and
11308 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11309 # libtool to hard-code these into programs
11310 ;;
11311
11312 cygwin* | mingw* | pw32* | cegcc*)
11313 version_type=windows
11314 shrext_cmds=".dll"
11315 need_version=no
11316 need_lib_prefix=no
11317
11318 case $GCC,$host_os in
11319 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11320 library_names_spec='$libname.dll.a'
11321 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11322 postinstall_cmds='base_file=`basename \${file}`~
11323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11324 dldir=$destdir/`dirname \$dlpath`~
11325 test -d \$dldir || mkdir -p \$dldir~
11326 $install_prog $dir/$dlname \$dldir/$dlname~
11327 chmod a+x \$dldir/$dlname~
11328 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11329 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11330 fi'
11331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11332 dlpath=$dir/\$dldll~
11333 $RM \$dlpath'
11334 shlibpath_overrides_runpath=yes
11335
11336 case $host_os in
11337 cygwin*)
11338 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11339 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11340 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11341 ;;
11342 mingw* | cegcc*)
11343 # MinGW DLLs use traditional 'lib' prefix
11344 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11345 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11346 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11347 # It is most probably a Windows format PATH printed by
11348 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11349 # path with ; separators, and with drive letters. We can handle the
11350 # drive letters (cygwin fileutils understands them), so leave them,
11351 # especially as we might pass files found there to a mingw objdump,
11352 # which wouldn't understand a cygwinified path. Ahh.
11353 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11354 else
11355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11356 fi
11357 ;;
11358 pw32*)
11359 # pw32 DLLs use 'pw' prefix rather than 'lib'
11360 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11361 ;;
11362 esac
11363 ;;
11364
11365 *)
11366 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11367 ;;
11368 esac
11369 dynamic_linker='Win32 ld.exe'
11370 # FIXME: first we should search . and the directory the executable is in
11371 shlibpath_var=PATH
11372 ;;
11373
11374 darwin* | rhapsody*)
11375 dynamic_linker="$host_os dyld"
11376 version_type=darwin
11377 need_lib_prefix=no
11378 need_version=no
11379 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11380 soname_spec='${libname}${release}${major}$shared_ext'
11381 shlibpath_overrides_runpath=yes
11382 shlibpath_var=DYLD_LIBRARY_PATH
11383 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11384
11385 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11386 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11387 ;;
11388
11389 dgux*)
11390 version_type=linux
11391 need_lib_prefix=no
11392 need_version=no
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11394 soname_spec='${libname}${release}${shared_ext}$major'
11395 shlibpath_var=LD_LIBRARY_PATH
11396 ;;
11397
11398 freebsd1*)
11399 dynamic_linker=no
11400 ;;
11401
11402 freebsd* | dragonfly*)
11403 # DragonFly does not have aout. When/if they implement a new
11404 # versioning mechanism, adjust this.
11405 if test -x /usr/bin/objformat; then
11406 objformat=`/usr/bin/objformat`
11407 else
11408 case $host_os in
11409 freebsd[123]*) objformat=aout ;;
11410 *) objformat=elf ;;
11411 esac
11412 fi
11413 version_type=freebsd-$objformat
11414 case $version_type in
11415 freebsd-elf*)
11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11417 need_version=no
11418 need_lib_prefix=no
11419 ;;
11420 freebsd-*)
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11422 need_version=yes
11423 ;;
11424 esac
11425 shlibpath_var=LD_LIBRARY_PATH
11426 case $host_os in
11427 freebsd2*)
11428 shlibpath_overrides_runpath=yes
11429 ;;
11430 freebsd3.[01]* | freebsdelf3.[01]*)
11431 shlibpath_overrides_runpath=yes
11432 hardcode_into_libs=yes
11433 ;;
11434 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11435 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11436 shlibpath_overrides_runpath=no
11437 hardcode_into_libs=yes
11438 ;;
11439 *) # from 4.6 on, and DragonFly
11440 shlibpath_overrides_runpath=yes
11441 hardcode_into_libs=yes
11442 ;;
11443 esac
11444 ;;
11445
11446 gnu*)
11447 version_type=linux
11448 need_lib_prefix=no
11449 need_version=no
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11451 soname_spec='${libname}${release}${shared_ext}$major'
11452 shlibpath_var=LD_LIBRARY_PATH
11453 hardcode_into_libs=yes
11454 ;;
11455
11456 hpux9* | hpux10* | hpux11*)
11457 # Give a soname corresponding to the major version so that dld.sl refuses to
11458 # link against other versions.
11459 version_type=sunos
11460 need_lib_prefix=no
11461 need_version=no
11462 case $host_cpu in
11463 ia64*)
11464 shrext_cmds='.so'
11465 hardcode_into_libs=yes
11466 dynamic_linker="$host_os dld.so"
11467 shlibpath_var=LD_LIBRARY_PATH
11468 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11470 soname_spec='${libname}${release}${shared_ext}$major'
11471 if test "X$HPUX_IA64_MODE" = X32; then
11472 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11473 else
11474 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11475 fi
11476 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11477 ;;
11478 hppa*64*)
11479 shrext_cmds='.sl'
11480 hardcode_into_libs=yes
11481 dynamic_linker="$host_os dld.sl"
11482 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11483 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11485 soname_spec='${libname}${release}${shared_ext}$major'
11486 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11487 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11488 ;;
11489 *)
11490 shrext_cmds='.sl'
11491 dynamic_linker="$host_os dld.sl"
11492 shlibpath_var=SHLIB_PATH
11493 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495 soname_spec='${libname}${release}${shared_ext}$major'
11496 ;;
11497 esac
11498 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11499 postinstall_cmds='chmod 555 $lib'
11500 ;;
11501
11502 interix[3-9]*)
11503 version_type=linux
11504 need_lib_prefix=no
11505 need_version=no
11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11507 soname_spec='${libname}${release}${shared_ext}$major'
11508 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11509 shlibpath_var=LD_LIBRARY_PATH
11510 shlibpath_overrides_runpath=no
11511 hardcode_into_libs=yes
11512 ;;
11513
11514 irix5* | irix6* | nonstopux*)
11515 case $host_os in
11516 nonstopux*) version_type=nonstopux ;;
11517 *)
11518 if test "$lt_cv_prog_gnu_ld" = yes; then
11519 version_type=linux
11520 else
11521 version_type=irix
11522 fi ;;
11523 esac
11524 need_lib_prefix=no
11525 need_version=no
11526 soname_spec='${libname}${release}${shared_ext}$major'
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11528 case $host_os in
11529 irix5* | nonstopux*)
11530 libsuff= shlibsuff=
11531 ;;
11532 *)
11533 case $LD in # libtool.m4 will add one of these switches to LD
11534 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11535 libsuff= shlibsuff= libmagic=32-bit;;
11536 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11537 libsuff=32 shlibsuff=N32 libmagic=N32;;
11538 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11539 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11540 *) libsuff= shlibsuff= libmagic=never-match;;
11541 esac
11542 ;;
11543 esac
11544 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11545 shlibpath_overrides_runpath=no
11546 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11547 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11548 hardcode_into_libs=yes
11549 ;;
11550
11551 # No shared lib support for Linux oldld, aout, or coff.
11552 linux*oldld* | linux*aout* | linux*coff*)
11553 dynamic_linker=no
11554 ;;
11555
11556 # This must be Linux ELF.
11557 linux* | k*bsd*-gnu)
11558 version_type=linux
11559 need_lib_prefix=no
11560 need_version=no
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562 soname_spec='${libname}${release}${shared_ext}$major'
11563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11564 shlibpath_var=LD_LIBRARY_PATH
11565 shlibpath_overrides_runpath=no
11566 # Some binutils ld are patched to set DT_RUNPATH
11567 save_LDFLAGS=$LDFLAGS
11568 save_libdir=$libdir
11569 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11570 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11573
11574 int
11575 main ()
11576 {
11577
11578 ;
11579 return 0;
11580 }
11581 _ACEOF
11582 if ac_fn_c_try_link "$LINENO"; then :
11583 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11584 shlibpath_overrides_runpath=yes
11585 fi
11586 fi
11587 rm -f core conftest.err conftest.$ac_objext \
11588 conftest$ac_exeext conftest.$ac_ext
11589 LDFLAGS=$save_LDFLAGS
11590 libdir=$save_libdir
11591
11592 # This implies no fast_install, which is unacceptable.
11593 # Some rework will be needed to allow for fast_install
11594 # before this can be enabled.
11595 hardcode_into_libs=yes
11596
11597 # Add ABI-specific directories to the system library path.
11598 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11599
11600 # Append ld.so.conf contents to the search path
11601 if test -f /etc/ld.so.conf; then
11602 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' ' '`
11603 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11604 fi
11605
11606 # We used to test for /lib/ld.so.1 and disable shared libraries on
11607 # powerpc, because MkLinux only supported shared libraries with the
11608 # GNU dynamic linker. Since this was broken with cross compilers,
11609 # most powerpc-linux boxes support dynamic linking these days and
11610 # people can always --disable-shared, the test was removed, and we
11611 # assume the GNU/Linux dynamic linker is in use.
11612 dynamic_linker='GNU/Linux ld.so'
11613 ;;
11614
11615 netbsd*)
11616 version_type=sunos
11617 need_lib_prefix=no
11618 need_version=no
11619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11622 dynamic_linker='NetBSD (a.out) ld.so'
11623 else
11624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11625 soname_spec='${libname}${release}${shared_ext}$major'
11626 dynamic_linker='NetBSD ld.elf_so'
11627 fi
11628 shlibpath_var=LD_LIBRARY_PATH
11629 shlibpath_overrides_runpath=yes
11630 hardcode_into_libs=yes
11631 ;;
11632
11633 newsos6)
11634 version_type=linux
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636 shlibpath_var=LD_LIBRARY_PATH
11637 shlibpath_overrides_runpath=yes
11638 ;;
11639
11640 *nto* | *qnx*)
11641 version_type=qnx
11642 need_lib_prefix=no
11643 need_version=no
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 shlibpath_overrides_runpath=no
11648 hardcode_into_libs=yes
11649 dynamic_linker='ldqnx.so'
11650 ;;
11651
11652 openbsd*)
11653 version_type=sunos
11654 sys_lib_dlsearch_path_spec="/usr/lib"
11655 need_lib_prefix=no
11656 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11657 case $host_os in
11658 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11659 *) need_version=no ;;
11660 esac
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11663 shlibpath_var=LD_LIBRARY_PATH
11664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11665 case $host_os in
11666 openbsd2.[89] | openbsd2.[89].*)
11667 shlibpath_overrides_runpath=no
11668 ;;
11669 *)
11670 shlibpath_overrides_runpath=yes
11671 ;;
11672 esac
11673 else
11674 shlibpath_overrides_runpath=yes
11675 fi
11676 ;;
11677
11678 os2*)
11679 libname_spec='$name'
11680 shrext_cmds=".dll"
11681 need_lib_prefix=no
11682 library_names_spec='$libname${shared_ext} $libname.a'
11683 dynamic_linker='OS/2 ld.exe'
11684 shlibpath_var=LIBPATH
11685 ;;
11686
11687 osf3* | osf4* | osf5*)
11688 version_type=osf
11689 need_lib_prefix=no
11690 need_version=no
11691 soname_spec='${libname}${release}${shared_ext}$major'
11692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11695 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11696 ;;
11697
11698 rdos*)
11699 dynamic_linker=no
11700 ;;
11701
11702 solaris*)
11703 version_type=linux
11704 need_lib_prefix=no
11705 need_version=no
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 shlibpath_overrides_runpath=yes
11710 hardcode_into_libs=yes
11711 # ldd complains unless libraries are executable
11712 postinstall_cmds='chmod +x $lib'
11713 ;;
11714
11715 sunos4*)
11716 version_type=sunos
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 shlibpath_overrides_runpath=yes
11721 if test "$with_gnu_ld" = yes; then
11722 need_lib_prefix=no
11723 fi
11724 need_version=yes
11725 ;;
11726
11727 sysv4 | sysv4.3*)
11728 version_type=linux
11729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730 soname_spec='${libname}${release}${shared_ext}$major'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 case $host_vendor in
11733 sni)
11734 shlibpath_overrides_runpath=no
11735 need_lib_prefix=no
11736 runpath_var=LD_RUN_PATH
11737 ;;
11738 siemens)
11739 need_lib_prefix=no
11740 ;;
11741 motorola)
11742 need_lib_prefix=no
11743 need_version=no
11744 shlibpath_overrides_runpath=no
11745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11746 ;;
11747 esac
11748 ;;
11749
11750 sysv4*MP*)
11751 if test -d /usr/nec ;then
11752 version_type=linux
11753 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11754 soname_spec='$libname${shared_ext}.$major'
11755 shlibpath_var=LD_LIBRARY_PATH
11756 fi
11757 ;;
11758
11759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11760 version_type=freebsd-elf
11761 need_lib_prefix=no
11762 need_version=no
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11764 soname_spec='${libname}${release}${shared_ext}$major'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 shlibpath_overrides_runpath=yes
11767 hardcode_into_libs=yes
11768 if test "$with_gnu_ld" = yes; then
11769 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11770 else
11771 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11772 case $host_os in
11773 sco3.2v5*)
11774 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11775 ;;
11776 esac
11777 fi
11778 sys_lib_dlsearch_path_spec='/usr/lib'
11779 ;;
11780
11781 tpf*)
11782 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11783 version_type=linux
11784 need_lib_prefix=no
11785 need_version=no
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11787 shlibpath_var=LD_LIBRARY_PATH
11788 shlibpath_overrides_runpath=no
11789 hardcode_into_libs=yes
11790 ;;
11791
11792 uts4*)
11793 version_type=linux
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795 soname_spec='${libname}${release}${shared_ext}$major'
11796 shlibpath_var=LD_LIBRARY_PATH
11797 ;;
11798
11799 *)
11800 dynamic_linker=no
11801 ;;
11802 esac
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11804 $as_echo "$dynamic_linker" >&6; }
11805 test "$dynamic_linker" = no && can_build_shared=no
11806
11807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11808 if test "$GCC" = yes; then
11809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11810 fi
11811
11812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11813 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11814 fi
11815 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11816 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11817 fi
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11906 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11907 hardcode_action=
11908 if test -n "$hardcode_libdir_flag_spec" ||
11909 test -n "$runpath_var" ||
11910 test "X$hardcode_automatic" = "Xyes" ; then
11911
11912 # We can hardcode non-existent directories.
11913 if test "$hardcode_direct" != no &&
11914 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11915 # have to relink, otherwise we might link with an installed library
11916 # when we should be linking with a yet-to-be-installed one
11917 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11918 test "$hardcode_minus_L" != no; then
11919 # Linking always hardcodes the temporary library directory.
11920 hardcode_action=relink
11921 else
11922 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11923 hardcode_action=immediate
11924 fi
11925 else
11926 # We cannot hardcode anything, or else we can only hardcode existing
11927 # directories.
11928 hardcode_action=unsupported
11929 fi
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11931 $as_echo "$hardcode_action" >&6; }
11932
11933 if test "$hardcode_action" = relink ||
11934 test "$inherit_rpath" = yes; then
11935 # Fast installation is not supported
11936 enable_fast_install=no
11937 elif test "$shlibpath_overrides_runpath" = yes ||
11938 test "$enable_shared" = no; then
11939 # Fast installation is not necessary
11940 enable_fast_install=needless
11941 fi
11942
11943
11944
11945
11946
11947
11948 if test "x$enable_dlopen" != xyes; then
11949 enable_dlopen=unknown
11950 enable_dlopen_self=unknown
11951 enable_dlopen_self_static=unknown
11952 else
11953 lt_cv_dlopen=no
11954 lt_cv_dlopen_libs=
11955
11956 case $host_os in
11957 beos*)
11958 lt_cv_dlopen="load_add_on"
11959 lt_cv_dlopen_libs=
11960 lt_cv_dlopen_self=yes
11961 ;;
11962
11963 mingw* | pw32* | cegcc*)
11964 lt_cv_dlopen="LoadLibrary"
11965 lt_cv_dlopen_libs=
11966 ;;
11967
11968 cygwin*)
11969 lt_cv_dlopen="dlopen"
11970 lt_cv_dlopen_libs=
11971 ;;
11972
11973 darwin*)
11974 # if libdl is installed we need to link against it
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11976 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11977 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-ldl $LIBS"
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11984
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char dlopen ();
11992 int
11993 main ()
11994 {
11995 return dlopen ();
11996 ;
11997 return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"; then :
12001 ac_cv_lib_dl_dlopen=yes
12002 else
12003 ac_cv_lib_dl_dlopen=no
12004 fi
12005 rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12010 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12011 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12013 else
12014
12015 lt_cv_dlopen="dyld"
12016 lt_cv_dlopen_libs=
12017 lt_cv_dlopen_self=yes
12018
12019 fi
12020
12021 ;;
12022
12023 *)
12024 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12025 if test "x$ac_cv_func_shl_load" = x""yes; then :
12026 lt_cv_dlopen="shl_load"
12027 else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12029 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12030 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12031 $as_echo_n "(cached) " >&6
12032 else
12033 ac_check_lib_save_LIBS=$LIBS
12034 LIBS="-ldld $LIBS"
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12037
12038 /* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12041 #ifdef __cplusplus
12042 extern "C"
12043 #endif
12044 char shl_load ();
12045 int
12046 main ()
12047 {
12048 return shl_load ();
12049 ;
12050 return 0;
12051 }
12052 _ACEOF
12053 if ac_fn_c_try_link "$LINENO"; then :
12054 ac_cv_lib_dld_shl_load=yes
12055 else
12056 ac_cv_lib_dld_shl_load=no
12057 fi
12058 rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060 LIBS=$ac_check_lib_save_LIBS
12061 fi
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12063 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12064 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12065 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12066 else
12067 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12068 if test "x$ac_cv_func_dlopen" = x""yes; then :
12069 lt_cv_dlopen="dlopen"
12070 else
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12072 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12073 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12074 $as_echo_n "(cached) " >&6
12075 else
12076 ac_check_lib_save_LIBS=$LIBS
12077 LIBS="-ldl $LIBS"
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080
12081 /* Override any GCC internal prototype to avoid an error.
12082 Use char because int might match the return type of a GCC
12083 builtin and then its argument prototype would still apply. */
12084 #ifdef __cplusplus
12085 extern "C"
12086 #endif
12087 char dlopen ();
12088 int
12089 main ()
12090 {
12091 return dlopen ();
12092 ;
12093 return 0;
12094 }
12095 _ACEOF
12096 if ac_fn_c_try_link "$LINENO"; then :
12097 ac_cv_lib_dl_dlopen=yes
12098 else
12099 ac_cv_lib_dl_dlopen=no
12100 fi
12101 rm -f core conftest.err conftest.$ac_objext \
12102 conftest$ac_exeext conftest.$ac_ext
12103 LIBS=$ac_check_lib_save_LIBS
12104 fi
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12106 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12107 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12108 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12109 else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12111 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12112 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12113 $as_echo_n "(cached) " >&6
12114 else
12115 ac_check_lib_save_LIBS=$LIBS
12116 LIBS="-lsvld $LIBS"
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12119
12120 /* Override any GCC internal prototype to avoid an error.
12121 Use char because int might match the return type of a GCC
12122 builtin and then its argument prototype would still apply. */
12123 #ifdef __cplusplus
12124 extern "C"
12125 #endif
12126 char dlopen ();
12127 int
12128 main ()
12129 {
12130 return dlopen ();
12131 ;
12132 return 0;
12133 }
12134 _ACEOF
12135 if ac_fn_c_try_link "$LINENO"; then :
12136 ac_cv_lib_svld_dlopen=yes
12137 else
12138 ac_cv_lib_svld_dlopen=no
12139 fi
12140 rm -f core conftest.err conftest.$ac_objext \
12141 conftest$ac_exeext conftest.$ac_ext
12142 LIBS=$ac_check_lib_save_LIBS
12143 fi
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12145 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12146 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12147 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12148 else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12150 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12151 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12152 $as_echo_n "(cached) " >&6
12153 else
12154 ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-ldld $LIBS"
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12158
12159 /* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12162 #ifdef __cplusplus
12163 extern "C"
12164 #endif
12165 char dld_link ();
12166 int
12167 main ()
12168 {
12169 return dld_link ();
12170 ;
12171 return 0;
12172 }
12173 _ACEOF
12174 if ac_fn_c_try_link "$LINENO"; then :
12175 ac_cv_lib_dld_dld_link=yes
12176 else
12177 ac_cv_lib_dld_dld_link=no
12178 fi
12179 rm -f core conftest.err conftest.$ac_objext \
12180 conftest$ac_exeext conftest.$ac_ext
12181 LIBS=$ac_check_lib_save_LIBS
12182 fi
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12184 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12185 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12186 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12187 fi
12188
12189
12190 fi
12191
12192
12193 fi
12194
12195
12196 fi
12197
12198
12199 fi
12200
12201
12202 fi
12203
12204 ;;
12205 esac
12206
12207 if test "x$lt_cv_dlopen" != xno; then
12208 enable_dlopen=yes
12209 else
12210 enable_dlopen=no
12211 fi
12212
12213 case $lt_cv_dlopen in
12214 dlopen)
12215 save_CPPFLAGS="$CPPFLAGS"
12216 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12217
12218 save_LDFLAGS="$LDFLAGS"
12219 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12220
12221 save_LIBS="$LIBS"
12222 LIBS="$lt_cv_dlopen_libs $LIBS"
12223
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12225 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12226 if test "${lt_cv_dlopen_self+set}" = set; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 if test "$cross_compiling" = yes; then :
12230 lt_cv_dlopen_self=cross
12231 else
12232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12233 lt_status=$lt_dlunknown
12234 cat > conftest.$ac_ext <<_LT_EOF
12235 #line 12235 "configure"
12236 #include "confdefs.h"
12237
12238 #if HAVE_DLFCN_H
12239 #include <dlfcn.h>
12240 #endif
12241
12242 #include <stdio.h>
12243
12244 #ifdef RTLD_GLOBAL
12245 # define LT_DLGLOBAL RTLD_GLOBAL
12246 #else
12247 # ifdef DL_GLOBAL
12248 # define LT_DLGLOBAL DL_GLOBAL
12249 # else
12250 # define LT_DLGLOBAL 0
12251 # endif
12252 #endif
12253
12254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12255 find out it does not work in some platform. */
12256 #ifndef LT_DLLAZY_OR_NOW
12257 # ifdef RTLD_LAZY
12258 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12259 # else
12260 # ifdef DL_LAZY
12261 # define LT_DLLAZY_OR_NOW DL_LAZY
12262 # else
12263 # ifdef RTLD_NOW
12264 # define LT_DLLAZY_OR_NOW RTLD_NOW
12265 # else
12266 # ifdef DL_NOW
12267 # define LT_DLLAZY_OR_NOW DL_NOW
12268 # else
12269 # define LT_DLLAZY_OR_NOW 0
12270 # endif
12271 # endif
12272 # endif
12273 # endif
12274 #endif
12275
12276 void fnord() { int i=42;}
12277 int main ()
12278 {
12279 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12280 int status = $lt_dlunknown;
12281
12282 if (self)
12283 {
12284 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12285 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12286 /* dlclose (self); */
12287 }
12288 else
12289 puts (dlerror ());
12290
12291 return status;
12292 }
12293 _LT_EOF
12294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12295 (eval $ac_link) 2>&5
12296 ac_status=$?
12297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12298 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12299 (./conftest; exit; ) >&5 2>/dev/null
12300 lt_status=$?
12301 case x$lt_status in
12302 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12303 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12304 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12305 esac
12306 else :
12307 # compilation failed
12308 lt_cv_dlopen_self=no
12309 fi
12310 fi
12311 rm -fr conftest*
12312
12313
12314 fi
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12316 $as_echo "$lt_cv_dlopen_self" >&6; }
12317
12318 if test "x$lt_cv_dlopen_self" = xyes; then
12319 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12321 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12322 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 if test "$cross_compiling" = yes; then :
12326 lt_cv_dlopen_self_static=cross
12327 else
12328 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12329 lt_status=$lt_dlunknown
12330 cat > conftest.$ac_ext <<_LT_EOF
12331 #line 12331 "configure"
12332 #include "confdefs.h"
12333
12334 #if HAVE_DLFCN_H
12335 #include <dlfcn.h>
12336 #endif
12337
12338 #include <stdio.h>
12339
12340 #ifdef RTLD_GLOBAL
12341 # define LT_DLGLOBAL RTLD_GLOBAL
12342 #else
12343 # ifdef DL_GLOBAL
12344 # define LT_DLGLOBAL DL_GLOBAL
12345 # else
12346 # define LT_DLGLOBAL 0
12347 # endif
12348 #endif
12349
12350 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12351 find out it does not work in some platform. */
12352 #ifndef LT_DLLAZY_OR_NOW
12353 # ifdef RTLD_LAZY
12354 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12355 # else
12356 # ifdef DL_LAZY
12357 # define LT_DLLAZY_OR_NOW DL_LAZY
12358 # else
12359 # ifdef RTLD_NOW
12360 # define LT_DLLAZY_OR_NOW RTLD_NOW
12361 # else
12362 # ifdef DL_NOW
12363 # define LT_DLLAZY_OR_NOW DL_NOW
12364 # else
12365 # define LT_DLLAZY_OR_NOW 0
12366 # endif
12367 # endif
12368 # endif
12369 # endif
12370 #endif
12371
12372 void fnord() { int i=42;}
12373 int main ()
12374 {
12375 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12376 int status = $lt_dlunknown;
12377
12378 if (self)
12379 {
12380 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12381 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12382 /* dlclose (self); */
12383 }
12384 else
12385 puts (dlerror ());
12386
12387 return status;
12388 }
12389 _LT_EOF
12390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12391 (eval $ac_link) 2>&5
12392 ac_status=$?
12393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12394 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12395 (./conftest; exit; ) >&5 2>/dev/null
12396 lt_status=$?
12397 case x$lt_status in
12398 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12399 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12400 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12401 esac
12402 else :
12403 # compilation failed
12404 lt_cv_dlopen_self_static=no
12405 fi
12406 fi
12407 rm -fr conftest*
12408
12409
12410 fi
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12412 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12413 fi
12414
12415 CPPFLAGS="$save_CPPFLAGS"
12416 LDFLAGS="$save_LDFLAGS"
12417 LIBS="$save_LIBS"
12418 ;;
12419 esac
12420
12421 case $lt_cv_dlopen_self in
12422 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12423 *) enable_dlopen_self=unknown ;;
12424 esac
12425
12426 case $lt_cv_dlopen_self_static in
12427 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12428 *) enable_dlopen_self_static=unknown ;;
12429 esac
12430 fi
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448 striplib=
12449 old_striplib=
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12451 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12452 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12453 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12454 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12456 $as_echo "yes" >&6; }
12457 else
12458 # FIXME - insert some real tests, host_os isn't really good enough
12459 case $host_os in
12460 darwin*)
12461 if test -n "$STRIP" ; then
12462 striplib="$STRIP -x"
12463 old_striplib="$STRIP -S"
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12465 $as_echo "yes" >&6; }
12466 else
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468 $as_echo "no" >&6; }
12469 fi
12470 ;;
12471 *)
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12474 ;;
12475 esac
12476 fi
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489 # Report which library types will actually be built
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12491 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12493 $as_echo "$can_build_shared" >&6; }
12494
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12496 $as_echo_n "checking whether to build shared libraries... " >&6; }
12497 test "$can_build_shared" = "no" && enable_shared=no
12498
12499 # On AIX, shared libraries and static libraries use the same namespace, and
12500 # are all built from PIC.
12501 case $host_os in
12502 aix3*)
12503 test "$enable_shared" = yes && enable_static=no
12504 if test -n "$RANLIB"; then
12505 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12506 postinstall_cmds='$RANLIB $lib'
12507 fi
12508 ;;
12509
12510 aix[4-9]*)
12511 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12512 test "$enable_shared" = yes && enable_static=no
12513 fi
12514 ;;
12515 esac
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12517 $as_echo "$enable_shared" >&6; }
12518
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12520 $as_echo_n "checking whether to build static libraries... " >&6; }
12521 # Make sure either enable_shared or enable_static is yes.
12522 test "$enable_shared" = yes || enable_static=yes
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12524 $as_echo "$enable_static" >&6; }
12525
12526
12527
12528
12529 fi
12530 ac_ext=c
12531 ac_cpp='$CPP $CPPFLAGS'
12532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12535
12536 CC="$lt_save_CC"
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550 ac_config_commands="$ac_config_commands libtool"
12551
12552
12553
12554
12555 # Only expand once:
12556
12557
12558
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
12560 $as_echo_n "checking for strerror in -lcposix... " >&6; }
12561 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
12562 $as_echo_n "(cached) " >&6
12563 else
12564 ac_check_lib_save_LIBS=$LIBS
12565 LIBS="-lcposix $LIBS"
12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12568
12569 /* Override any GCC internal prototype to avoid an error.
12570 Use char because int might match the return type of a GCC
12571 builtin and then its argument prototype would still apply. */
12572 #ifdef __cplusplus
12573 extern "C"
12574 #endif
12575 char strerror ();
12576 int
12577 main ()
12578 {
12579 return strerror ();
12580 ;
12581 return 0;
12582 }
12583 _ACEOF
12584 if ac_fn_c_try_link "$LINENO"; then :
12585 ac_cv_lib_cposix_strerror=yes
12586 else
12587 ac_cv_lib_cposix_strerror=no
12588 fi
12589 rm -f core conftest.err conftest.$ac_objext \
12590 conftest$ac_exeext conftest.$ac_ext
12591 LIBS=$ac_check_lib_save_LIBS
12592 fi
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
12594 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
12595 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
12596 LIBS="$LIBS -lcposix"
12597 fi
12598
12599
12600
12601 ac_ext=c
12602 ac_cpp='$CPP $CPPFLAGS'
12603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12606 if test -n "$ac_tool_prefix"; then
12607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12608 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12610 $as_echo_n "checking for $ac_word... " >&6; }
12611 if test "${ac_cv_prog_CC+set}" = set; then :
12612 $as_echo_n "(cached) " >&6
12613 else
12614 if test -n "$CC"; then
12615 ac_cv_prog_CC="$CC" # Let the user override the test.
12616 else
12617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12618 for as_dir in $PATH
12619 do
12620 IFS=$as_save_IFS
12621 test -z "$as_dir" && as_dir=.
12622 for ac_exec_ext in '' $ac_executable_extensions; do
12623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12626 break 2
12627 fi
12628 done
12629 done
12630 IFS=$as_save_IFS
12631
12632 fi
12633 fi
12634 CC=$ac_cv_prog_CC
12635 if test -n "$CC"; then
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12637 $as_echo "$CC" >&6; }
12638 else
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12640 $as_echo "no" >&6; }
12641 fi
12642
12643
12644 fi
12645 if test -z "$ac_cv_prog_CC"; then
12646 ac_ct_CC=$CC
12647 # Extract the first word of "gcc", so it can be a program name with args.
12648 set dummy gcc; ac_word=$2
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12650 $as_echo_n "checking for $ac_word... " >&6; }
12651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12653 else
12654 if test -n "$ac_ct_CC"; then
12655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12656 else
12657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12658 for as_dir in $PATH
12659 do
12660 IFS=$as_save_IFS
12661 test -z "$as_dir" && as_dir=.
12662 for ac_exec_ext in '' $ac_executable_extensions; do
12663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12664 ac_cv_prog_ac_ct_CC="gcc"
12665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12666 break 2
12667 fi
12668 done
12669 done
12670 IFS=$as_save_IFS
12671
12672 fi
12673 fi
12674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12675 if test -n "$ac_ct_CC"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12677 $as_echo "$ac_ct_CC" >&6; }
12678 else
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680 $as_echo "no" >&6; }
12681 fi
12682
12683 if test "x$ac_ct_CC" = x; then
12684 CC=""
12685 else
12686 case $cross_compiling:$ac_tool_warned in
12687 yes:)
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12690 ac_tool_warned=yes ;;
12691 esac
12692 CC=$ac_ct_CC
12693 fi
12694 else
12695 CC="$ac_cv_prog_CC"
12696 fi
12697
12698 if test -z "$CC"; then
12699 if test -n "$ac_tool_prefix"; then
12700 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12701 set dummy ${ac_tool_prefix}cc; ac_word=$2
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703 $as_echo_n "checking for $ac_word... " >&6; }
12704 if test "${ac_cv_prog_CC+set}" = set; then :
12705 $as_echo_n "(cached) " >&6
12706 else
12707 if test -n "$CC"; then
12708 ac_cv_prog_CC="$CC" # Let the user override the test.
12709 else
12710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711 for as_dir in $PATH
12712 do
12713 IFS=$as_save_IFS
12714 test -z "$as_dir" && as_dir=.
12715 for ac_exec_ext in '' $ac_executable_extensions; do
12716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12717 ac_cv_prog_CC="${ac_tool_prefix}cc"
12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12719 break 2
12720 fi
12721 done
12722 done
12723 IFS=$as_save_IFS
12724
12725 fi
12726 fi
12727 CC=$ac_cv_prog_CC
12728 if test -n "$CC"; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12730 $as_echo "$CC" >&6; }
12731 else
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 $as_echo "no" >&6; }
12734 fi
12735
12736
12737 fi
12738 fi
12739 if test -z "$CC"; then
12740 # Extract the first word of "cc", so it can be a program name with args.
12741 set dummy cc; ac_word=$2
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12743 $as_echo_n "checking for $ac_word... " >&6; }
12744 if test "${ac_cv_prog_CC+set}" = set; then :
12745 $as_echo_n "(cached) " >&6
12746 else
12747 if test -n "$CC"; then
12748 ac_cv_prog_CC="$CC" # Let the user override the test.
12749 else
12750 ac_prog_rejected=no
12751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12752 for as_dir in $PATH
12753 do
12754 IFS=$as_save_IFS
12755 test -z "$as_dir" && as_dir=.
12756 for ac_exec_ext in '' $ac_executable_extensions; do
12757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12758 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12759 ac_prog_rejected=yes
12760 continue
12761 fi
12762 ac_cv_prog_CC="cc"
12763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12764 break 2
12765 fi
12766 done
12767 done
12768 IFS=$as_save_IFS
12769
12770 if test $ac_prog_rejected = yes; then
12771 # We found a bogon in the path, so make sure we never use it.
12772 set dummy $ac_cv_prog_CC
12773 shift
12774 if test $# != 0; then
12775 # We chose a different compiler from the bogus one.
12776 # However, it has the same basename, so the bogon will be chosen
12777 # first if we set CC to just the basename; use the full file name.
12778 shift
12779 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12780 fi
12781 fi
12782 fi
12783 fi
12784 CC=$ac_cv_prog_CC
12785 if test -n "$CC"; then
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12787 $as_echo "$CC" >&6; }
12788 else
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 $as_echo "no" >&6; }
12791 fi
12792
12793
12794 fi
12795 if test -z "$CC"; then
12796 if test -n "$ac_tool_prefix"; then
12797 for ac_prog in cl.exe
12798 do
12799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802 $as_echo_n "checking for $ac_word... " >&6; }
12803 if test "${ac_cv_prog_CC+set}" = set; then :
12804 $as_echo_n "(cached) " >&6
12805 else
12806 if test -n "$CC"; then
12807 ac_cv_prog_CC="$CC" # Let the user override the test.
12808 else
12809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810 for as_dir in $PATH
12811 do
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12816 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818 break 2
12819 fi
12820 done
12821 done
12822 IFS=$as_save_IFS
12823
12824 fi
12825 fi
12826 CC=$ac_cv_prog_CC
12827 if test -n "$CC"; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12829 $as_echo "$CC" >&6; }
12830 else
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832 $as_echo "no" >&6; }
12833 fi
12834
12835
12836 test -n "$CC" && break
12837 done
12838 fi
12839 if test -z "$CC"; then
12840 ac_ct_CC=$CC
12841 for ac_prog in cl.exe
12842 do
12843 # Extract the first word of "$ac_prog", so it can be a program name with args.
12844 set dummy $ac_prog; ac_word=$2
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12846 $as_echo_n "checking for $ac_word... " >&6; }
12847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 if test -n "$ac_ct_CC"; then
12851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12852 else
12853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854 for as_dir in $PATH
12855 do
12856 IFS=$as_save_IFS
12857 test -z "$as_dir" && as_dir=.
12858 for ac_exec_ext in '' $ac_executable_extensions; do
12859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12860 ac_cv_prog_ac_ct_CC="$ac_prog"
12861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12862 break 2
12863 fi
12864 done
12865 done
12866 IFS=$as_save_IFS
12867
12868 fi
12869 fi
12870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12871 if test -n "$ac_ct_CC"; then
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12873 $as_echo "$ac_ct_CC" >&6; }
12874 else
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876 $as_echo "no" >&6; }
12877 fi
12878
12879
12880 test -n "$ac_ct_CC" && break
12881 done
12882
12883 if test "x$ac_ct_CC" = x; then
12884 CC=""
12885 else
12886 case $cross_compiling:$ac_tool_warned in
12887 yes:)
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12890 ac_tool_warned=yes ;;
12891 esac
12892 CC=$ac_ct_CC
12893 fi
12894 fi
12895
12896 fi
12897
12898
12899 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12901 as_fn_error "no acceptable C compiler found in \$PATH
12902 See \`config.log' for more details." "$LINENO" 5; }
12903
12904 # Provide some information about the compiler.
12905 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12906 set X $ac_compile
12907 ac_compiler=$2
12908 for ac_option in --version -v -V -qversion; do
12909 { { ac_try="$ac_compiler $ac_option >&5"
12910 case "(($ac_try" in
12911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912 *) ac_try_echo=$ac_try;;
12913 esac
12914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12915 $as_echo "$ac_try_echo"; } >&5
12916 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12917 ac_status=$?
12918 if test -s conftest.err; then
12919 sed '10a\
12920 ... rest of stderr output deleted ...
12921 10q' conftest.err >conftest.er1
12922 cat conftest.er1 >&5
12923 fi
12924 rm -f conftest.er1 conftest.err
12925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12926 test $ac_status = 0; }
12927 done
12928
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12930 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12931 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12936
12937 int
12938 main ()
12939 {
12940 #ifndef __GNUC__
12941 choke me
12942 #endif
12943
12944 ;
12945 return 0;
12946 }
12947 _ACEOF
12948 if ac_fn_c_try_compile "$LINENO"; then :
12949 ac_compiler_gnu=yes
12950 else
12951 ac_compiler_gnu=no
12952 fi
12953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12954 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12955
12956 fi
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12958 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12959 if test $ac_compiler_gnu = yes; then
12960 GCC=yes
12961 else
12962 GCC=
12963 fi
12964 ac_test_CFLAGS=${CFLAGS+set}
12965 ac_save_CFLAGS=$CFLAGS
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12967 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12968 if test "${ac_cv_prog_cc_g+set}" = set; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971 ac_save_c_werror_flag=$ac_c_werror_flag
12972 ac_c_werror_flag=yes
12973 ac_cv_prog_cc_g=no
12974 CFLAGS="-g"
12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12977
12978 int
12979 main ()
12980 {
12981
12982 ;
12983 return 0;
12984 }
12985 _ACEOF
12986 if ac_fn_c_try_compile "$LINENO"; then :
12987 ac_cv_prog_cc_g=yes
12988 else
12989 CFLAGS=""
12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991 /* end confdefs.h. */
12992
12993 int
12994 main ()
12995 {
12996
12997 ;
12998 return 0;
12999 }
13000 _ACEOF
13001 if ac_fn_c_try_compile "$LINENO"; then :
13002
13003 else
13004 ac_c_werror_flag=$ac_save_c_werror_flag
13005 CFLAGS="-g"
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008
13009 int
13010 main ()
13011 {
13012
13013 ;
13014 return 0;
13015 }
13016 _ACEOF
13017 if ac_fn_c_try_compile "$LINENO"; then :
13018 ac_cv_prog_cc_g=yes
13019 fi
13020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13021 fi
13022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13023 fi
13024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13025 ac_c_werror_flag=$ac_save_c_werror_flag
13026 fi
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13028 $as_echo "$ac_cv_prog_cc_g" >&6; }
13029 if test "$ac_test_CFLAGS" = set; then
13030 CFLAGS=$ac_save_CFLAGS
13031 elif test $ac_cv_prog_cc_g = yes; then
13032 if test "$GCC" = yes; then
13033 CFLAGS="-g -O2"
13034 else
13035 CFLAGS="-g"
13036 fi
13037 else
13038 if test "$GCC" = yes; then
13039 CFLAGS="-O2"
13040 else
13041 CFLAGS=
13042 fi
13043 fi
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13045 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13046 if test "${ac_cv_prog_cc_c89+set}" = set; then :
13047 $as_echo_n "(cached) " >&6
13048 else
13049 ac_cv_prog_cc_c89=no
13050 ac_save_CC=$CC
13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13053 #include <stdarg.h>
13054 #include <stdio.h>
13055 #include <sys/types.h>
13056 #include <sys/stat.h>
13057 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13058 struct buf { int x; };
13059 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13060 static char *e (p, i)
13061 char **p;
13062 int i;
13063 {
13064 return p[i];
13065 }
13066 static char *f (char * (*g) (char **, int), char **p, ...)
13067 {
13068 char *s;
13069 va_list v;
13070 va_start (v,p);
13071 s = g (p, va_arg (v,int));
13072 va_end (v);
13073 return s;
13074 }
13075
13076 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13077 function prototypes and stuff, but not '\xHH' hex character constants.
13078 These don't provoke an error unfortunately, instead are silently treated
13079 as 'x'. The following induces an error, until -std is added to get
13080 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13081 array size at least. It's necessary to write '\x00'==0 to get something
13082 that's true only with -std. */
13083 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13084
13085 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13086 inside strings and character constants. */
13087 #define FOO(x) 'x'
13088 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13089
13090 int test (int i, double x);
13091 struct s1 {int (*f) (int a);};
13092 struct s2 {int (*f) (double a);};
13093 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13094 int argc;
13095 char **argv;
13096 int
13097 main ()
13098 {
13099 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13100 ;
13101 return 0;
13102 }
13103 _ACEOF
13104 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13105 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13106 do
13107 CC="$ac_save_CC $ac_arg"
13108 if ac_fn_c_try_compile "$LINENO"; then :
13109 ac_cv_prog_cc_c89=$ac_arg
13110 fi
13111 rm -f core conftest.err conftest.$ac_objext
13112 test "x$ac_cv_prog_cc_c89" != "xno" && break
13113 done
13114 rm -f conftest.$ac_ext
13115 CC=$ac_save_CC
13116
13117 fi
13118 # AC_CACHE_VAL
13119 case "x$ac_cv_prog_cc_c89" in
13120 x)
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13122 $as_echo "none needed" >&6; } ;;
13123 xno)
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13125 $as_echo "unsupported" >&6; } ;;
13126 *)
13127 CC="$CC $ac_cv_prog_cc_c89"
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13129 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13130 esac
13131 if test "x$ac_cv_prog_cc_c89" != xno; then :
13132
13133 fi
13134
13135 ac_ext=c
13136 ac_cpp='$CPP $CPPFLAGS'
13137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13140
13141 depcc="$CC" am_compiler_list=
13142
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13144 $as_echo_n "checking dependency style of $depcc... " >&6; }
13145 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
13146 $as_echo_n "(cached) " >&6
13147 else
13148 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13149 # We make a subdir and do the tests there. Otherwise we can end up
13150 # making bogus files that we don't know about and never remove. For
13151 # instance it was reported that on HP-UX the gcc test will end up
13152 # making a dummy file named `D' -- because `-MD' means `put the output
13153 # in D'.
13154 mkdir conftest.dir
13155 # Copy depcomp to subdir because otherwise we won't find it if we're
13156 # using a relative directory.
13157 cp "$am_depcomp" conftest.dir
13158 cd conftest.dir
13159 # We will build objects and dependencies in a subdirectory because
13160 # it helps to detect inapplicable dependency modes. For instance
13161 # both Tru64's cc and ICC support -MD to output dependencies as a
13162 # side effect of compilation, but ICC will put the dependencies in
13163 # the current directory while Tru64 will put them in the object
13164 # directory.
13165 mkdir sub
13166
13167 am_cv_CC_dependencies_compiler_type=none
13168 if test "$am_compiler_list" = ""; then
13169 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13170 fi
13171 am__universal=false
13172 case " $depcc " in #(
13173 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13174 esac
13175
13176 for depmode in $am_compiler_list; do
13177 # Setup a source with many dependencies, because some compilers
13178 # like to wrap large dependency lists on column 80 (with \), and
13179 # we should not choose a depcomp mode which is confused by this.
13180 #
13181 # We need to recreate these files for each test, as the compiler may
13182 # overwrite some of them when testing with obscure command lines.
13183 # This happens at least with the AIX C compiler.
13184 : > sub/conftest.c
13185 for i in 1 2 3 4 5 6; do
13186 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13187 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13188 # Solaris 8's {/usr,}/bin/sh.
13189 touch sub/conftst$i.h
13190 done
13191 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13192
13193 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13194 # mode. It turns out that the SunPro C++ compiler does not properly
13195 # handle `-M -o', and we need to detect this. Also, some Intel
13196 # versions had trouble with output in subdirs
13197 am__obj=sub/conftest.${OBJEXT-o}
13198 am__minus_obj="-o $am__obj"
13199 case $depmode in
13200 gcc)
13201 # This depmode causes a compiler race in universal mode.
13202 test "$am__universal" = false || continue
13203 ;;
13204 nosideeffect)
13205 # after this tag, mechanisms are not by side-effect, so they'll
13206 # only be used when explicitly requested
13207 if test "x$enable_dependency_tracking" = xyes; then
13208 continue
13209 else
13210 break
13211 fi
13212 ;;
13213 msvisualcpp | msvcmsys)
13214 # This compiler won't grok `-c -o', but also, the minuso test has
13215 # not run yet. These depmodes are late enough in the game, and
13216 # so weak that their functioning should not be impacted.
13217 am__obj=conftest.${OBJEXT-o}
13218 am__minus_obj=
13219 ;;
13220 none) break ;;
13221 esac
13222 if depmode=$depmode \
13223 source=sub/conftest.c object=$am__obj \
13224 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13225 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13226 >/dev/null 2>conftest.err &&
13227 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13228 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13229 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13230 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13231 # icc doesn't choke on unknown options, it will just issue warnings
13232 # or remarks (even with -Werror). So we grep stderr for any message
13233 # that says an option was ignored or not supported.
13234 # When given -MP, icc 7.0 and 7.1 complain thusly:
13235 # icc: Command line warning: ignoring option '-M'; no argument required
13236 # The diagnosis changed in icc 8.0:
13237 # icc: Command line remark: option '-MP' not supported
13238 if (grep 'ignoring option' conftest.err ||
13239 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13240 am_cv_CC_dependencies_compiler_type=$depmode
13241 break
13242 fi
13243 fi
13244 done
13245
13246 cd ..
13247 rm -rf conftest.dir
13248 else
13249 am_cv_CC_dependencies_compiler_type=none
13250 fi
13251
13252 fi
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13254 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13255 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13256
13257 if
13258 test "x$enable_dependency_tracking" != xno \
13259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13260 am__fastdepCC_TRUE=
13261 am__fastdepCC_FALSE='#'
13262 else
13263 am__fastdepCC_TRUE='#'
13264 am__fastdepCC_FALSE=
13265 fi
13266
13267
13268 ac_ext=c
13269 ac_cpp='$CPP $CPPFLAGS'
13270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13273 if test -n "$ac_tool_prefix"; then
13274 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13275 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277 $as_echo_n "checking for $ac_word... " >&6; }
13278 if test "${ac_cv_prog_CC+set}" = set; then :
13279 $as_echo_n "(cached) " >&6
13280 else
13281 if test -n "$CC"; then
13282 ac_cv_prog_CC="$CC" # Let the user override the test.
13283 else
13284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285 for as_dir in $PATH
13286 do
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13291 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2
13294 fi
13295 done
13296 done
13297 IFS=$as_save_IFS
13298
13299 fi
13300 fi
13301 CC=$ac_cv_prog_CC
13302 if test -n "$CC"; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13304 $as_echo "$CC" >&6; }
13305 else
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307 $as_echo "no" >&6; }
13308 fi
13309
13310
13311 fi
13312 if test -z "$ac_cv_prog_CC"; then
13313 ac_ct_CC=$CC
13314 # Extract the first word of "gcc", so it can be a program name with args.
13315 set dummy gcc; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 if test -n "$ac_ct_CC"; then
13322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13323 else
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 for as_dir in $PATH
13326 do
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13331 ac_cv_prog_ac_ct_CC="gcc"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333 break 2
13334 fi
13335 done
13336 done
13337 IFS=$as_save_IFS
13338
13339 fi
13340 fi
13341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13342 if test -n "$ac_ct_CC"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13344 $as_echo "$ac_ct_CC" >&6; }
13345 else
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347 $as_echo "no" >&6; }
13348 fi
13349
13350 if test "x$ac_ct_CC" = x; then
13351 CC=""
13352 else
13353 case $cross_compiling:$ac_tool_warned in
13354 yes:)
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13357 ac_tool_warned=yes ;;
13358 esac
13359 CC=$ac_ct_CC
13360 fi
13361 else
13362 CC="$ac_cv_prog_CC"
13363 fi
13364
13365 if test -z "$CC"; then
13366 if test -n "$ac_tool_prefix"; then
13367 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13368 set dummy ${ac_tool_prefix}cc; ac_word=$2
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13370 $as_echo_n "checking for $ac_word... " >&6; }
13371 if test "${ac_cv_prog_CC+set}" = set; then :
13372 $as_echo_n "(cached) " >&6
13373 else
13374 if test -n "$CC"; then
13375 ac_cv_prog_CC="$CC" # Let the user override the test.
13376 else
13377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13378 for as_dir in $PATH
13379 do
13380 IFS=$as_save_IFS
13381 test -z "$as_dir" && as_dir=.
13382 for ac_exec_ext in '' $ac_executable_extensions; do
13383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13384 ac_cv_prog_CC="${ac_tool_prefix}cc"
13385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13386 break 2
13387 fi
13388 done
13389 done
13390 IFS=$as_save_IFS
13391
13392 fi
13393 fi
13394 CC=$ac_cv_prog_CC
13395 if test -n "$CC"; then
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13397 $as_echo "$CC" >&6; }
13398 else
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400 $as_echo "no" >&6; }
13401 fi
13402
13403
13404 fi
13405 fi
13406 if test -z "$CC"; then
13407 # Extract the first word of "cc", so it can be a program name with args.
13408 set dummy cc; ac_word=$2
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13410 $as_echo_n "checking for $ac_word... " >&6; }
13411 if test "${ac_cv_prog_CC+set}" = set; then :
13412 $as_echo_n "(cached) " >&6
13413 else
13414 if test -n "$CC"; then
13415 ac_cv_prog_CC="$CC" # Let the user override the test.
13416 else
13417 ac_prog_rejected=no
13418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419 for as_dir in $PATH
13420 do
13421 IFS=$as_save_IFS
13422 test -z "$as_dir" && as_dir=.
13423 for ac_exec_ext in '' $ac_executable_extensions; do
13424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13425 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13426 ac_prog_rejected=yes
13427 continue
13428 fi
13429 ac_cv_prog_CC="cc"
13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13431 break 2
13432 fi
13433 done
13434 done
13435 IFS=$as_save_IFS
13436
13437 if test $ac_prog_rejected = yes; then
13438 # We found a bogon in the path, so make sure we never use it.
13439 set dummy $ac_cv_prog_CC
13440 shift
13441 if test $# != 0; then
13442 # We chose a different compiler from the bogus one.
13443 # However, it has the same basename, so the bogon will be chosen
13444 # first if we set CC to just the basename; use the full file name.
13445 shift
13446 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13447 fi
13448 fi
13449 fi
13450 fi
13451 CC=$ac_cv_prog_CC
13452 if test -n "$CC"; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13454 $as_echo "$CC" >&6; }
13455 else
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13458 fi
13459
13460
13461 fi
13462 if test -z "$CC"; then
13463 if test -n "$ac_tool_prefix"; then
13464 for ac_prog in cl.exe
13465 do
13466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13469 $as_echo_n "checking for $ac_word... " >&6; }
13470 if test "${ac_cv_prog_CC+set}" = set; then :
13471 $as_echo_n "(cached) " >&6
13472 else
13473 if test -n "$CC"; then
13474 ac_cv_prog_CC="$CC" # Let the user override the test.
13475 else
13476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13477 for as_dir in $PATH
13478 do
13479 IFS=$as_save_IFS
13480 test -z "$as_dir" && as_dir=.
13481 for ac_exec_ext in '' $ac_executable_extensions; do
13482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13483 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13485 break 2
13486 fi
13487 done
13488 done
13489 IFS=$as_save_IFS
13490
13491 fi
13492 fi
13493 CC=$ac_cv_prog_CC
13494 if test -n "$CC"; then
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13496 $as_echo "$CC" >&6; }
13497 else
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13499 $as_echo "no" >&6; }
13500 fi
13501
13502
13503 test -n "$CC" && break
13504 done
13505 fi
13506 if test -z "$CC"; then
13507 ac_ct_CC=$CC
13508 for ac_prog in cl.exe
13509 do
13510 # Extract the first word of "$ac_prog", so it can be a program name with args.
13511 set dummy $ac_prog; ac_word=$2
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13513 $as_echo_n "checking for $ac_word... " >&6; }
13514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
13515 $as_echo_n "(cached) " >&6
13516 else
13517 if test -n "$ac_ct_CC"; then
13518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13519 else
13520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13521 for as_dir in $PATH
13522 do
13523 IFS=$as_save_IFS
13524 test -z "$as_dir" && as_dir=.
13525 for ac_exec_ext in '' $ac_executable_extensions; do
13526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13527 ac_cv_prog_ac_ct_CC="$ac_prog"
13528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13529 break 2
13530 fi
13531 done
13532 done
13533 IFS=$as_save_IFS
13534
13535 fi
13536 fi
13537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13538 if test -n "$ac_ct_CC"; then
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13540 $as_echo "$ac_ct_CC" >&6; }
13541 else
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543 $as_echo "no" >&6; }
13544 fi
13545
13546
13547 test -n "$ac_ct_CC" && break
13548 done
13549
13550 if test "x$ac_ct_CC" = x; then
13551 CC=""
13552 else
13553 case $cross_compiling:$ac_tool_warned in
13554 yes:)
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13557 ac_tool_warned=yes ;;
13558 esac
13559 CC=$ac_ct_CC
13560 fi
13561 fi
13562
13563 fi
13564
13565
13566 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13568 as_fn_error "no acceptable C compiler found in \$PATH
13569 See \`config.log' for more details." "$LINENO" 5; }
13570
13571 # Provide some information about the compiler.
13572 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13573 set X $ac_compile
13574 ac_compiler=$2
13575 for ac_option in --version -v -V -qversion; do
13576 { { ac_try="$ac_compiler $ac_option >&5"
13577 case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13580 esac
13581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13582 $as_echo "$ac_try_echo"; } >&5
13583 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13584 ac_status=$?
13585 if test -s conftest.err; then
13586 sed '10a\
13587 ... rest of stderr output deleted ...
13588 10q' conftest.err >conftest.er1
13589 cat conftest.er1 >&5
13590 fi
13591 rm -f conftest.er1 conftest.err
13592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13593 test $ac_status = 0; }
13594 done
13595
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13597 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13598 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
13599 $as_echo_n "(cached) " >&6
13600 else
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13603
13604 int
13605 main ()
13606 {
13607 #ifndef __GNUC__
13608 choke me
13609 #endif
13610
13611 ;
13612 return 0;
13613 }
13614 _ACEOF
13615 if ac_fn_c_try_compile "$LINENO"; then :
13616 ac_compiler_gnu=yes
13617 else
13618 ac_compiler_gnu=no
13619 fi
13620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13621 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13622
13623 fi
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13625 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13626 if test $ac_compiler_gnu = yes; then
13627 GCC=yes
13628 else
13629 GCC=
13630 fi
13631 ac_test_CFLAGS=${CFLAGS+set}
13632 ac_save_CFLAGS=$CFLAGS
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13634 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13635 if test "${ac_cv_prog_cc_g+set}" = set; then :
13636 $as_echo_n "(cached) " >&6
13637 else
13638 ac_save_c_werror_flag=$ac_c_werror_flag
13639 ac_c_werror_flag=yes
13640 ac_cv_prog_cc_g=no
13641 CFLAGS="-g"
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13644
13645 int
13646 main ()
13647 {
13648
13649 ;
13650 return 0;
13651 }
13652 _ACEOF
13653 if ac_fn_c_try_compile "$LINENO"; then :
13654 ac_cv_prog_cc_g=yes
13655 else
13656 CFLAGS=""
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13659
13660 int
13661 main ()
13662 {
13663
13664 ;
13665 return 0;
13666 }
13667 _ACEOF
13668 if ac_fn_c_try_compile "$LINENO"; then :
13669
13670 else
13671 ac_c_werror_flag=$ac_save_c_werror_flag
13672 CFLAGS="-g"
13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h. */
13675
13676 int
13677 main ()
13678 {
13679
13680 ;
13681 return 0;
13682 }
13683 _ACEOF
13684 if ac_fn_c_try_compile "$LINENO"; then :
13685 ac_cv_prog_cc_g=yes
13686 fi
13687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13688 fi
13689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690 fi
13691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13692 ac_c_werror_flag=$ac_save_c_werror_flag
13693 fi
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13695 $as_echo "$ac_cv_prog_cc_g" >&6; }
13696 if test "$ac_test_CFLAGS" = set; then
13697 CFLAGS=$ac_save_CFLAGS
13698 elif test $ac_cv_prog_cc_g = yes; then
13699 if test "$GCC" = yes; then
13700 CFLAGS="-g -O2"
13701 else
13702 CFLAGS="-g"
13703 fi
13704 else
13705 if test "$GCC" = yes; then
13706 CFLAGS="-O2"
13707 else
13708 CFLAGS=
13709 fi
13710 fi
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13712 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13713 if test "${ac_cv_prog_cc_c89+set}" = set; then :
13714 $as_echo_n "(cached) " >&6
13715 else
13716 ac_cv_prog_cc_c89=no
13717 ac_save_CC=$CC
13718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13719 /* end confdefs.h. */
13720 #include <stdarg.h>
13721 #include <stdio.h>
13722 #include <sys/types.h>
13723 #include <sys/stat.h>
13724 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13725 struct buf { int x; };
13726 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13727 static char *e (p, i)
13728 char **p;
13729 int i;
13730 {
13731 return p[i];
13732 }
13733 static char *f (char * (*g) (char **, int), char **p, ...)
13734 {
13735 char *s;
13736 va_list v;
13737 va_start (v,p);
13738 s = g (p, va_arg (v,int));
13739 va_end (v);
13740 return s;
13741 }
13742
13743 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13744 function prototypes and stuff, but not '\xHH' hex character constants.
13745 These don't provoke an error unfortunately, instead are silently treated
13746 as 'x'. The following induces an error, until -std is added to get
13747 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13748 array size at least. It's necessary to write '\x00'==0 to get something
13749 that's true only with -std. */
13750 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13751
13752 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13753 inside strings and character constants. */
13754 #define FOO(x) 'x'
13755 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13756
13757 int test (int i, double x);
13758 struct s1 {int (*f) (int a);};
13759 struct s2 {int (*f) (double a);};
13760 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13761 int argc;
13762 char **argv;
13763 int
13764 main ()
13765 {
13766 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13767 ;
13768 return 0;
13769 }
13770 _ACEOF
13771 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13772 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13773 do
13774 CC="$ac_save_CC $ac_arg"
13775 if ac_fn_c_try_compile "$LINENO"; then :
13776 ac_cv_prog_cc_c89=$ac_arg
13777 fi
13778 rm -f core conftest.err conftest.$ac_objext
13779 test "x$ac_cv_prog_cc_c89" != "xno" && break
13780 done
13781 rm -f conftest.$ac_ext
13782 CC=$ac_save_CC
13783
13784 fi
13785 # AC_CACHE_VAL
13786 case "x$ac_cv_prog_cc_c89" in
13787 x)
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13789 $as_echo "none needed" >&6; } ;;
13790 xno)
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13792 $as_echo "unsupported" >&6; } ;;
13793 *)
13794 CC="$CC $ac_cv_prog_cc_c89"
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13796 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13797 esac
13798 if test "x$ac_cv_prog_cc_c89" != xno; then :
13799
13800 fi
13801
13802 ac_ext=c
13803 ac_cpp='$CPP $CPPFLAGS'
13804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13807
13808 depcc="$CC" am_compiler_list=
13809
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13811 $as_echo_n "checking dependency style of $depcc... " >&6; }
13812 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
13813 $as_echo_n "(cached) " >&6
13814 else
13815 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13816 # We make a subdir and do the tests there. Otherwise we can end up
13817 # making bogus files that we don't know about and never remove. For
13818 # instance it was reported that on HP-UX the gcc test will end up
13819 # making a dummy file named `D' -- because `-MD' means `put the output
13820 # in D'.
13821 mkdir conftest.dir
13822 # Copy depcomp to subdir because otherwise we won't find it if we're
13823 # using a relative directory.
13824 cp "$am_depcomp" conftest.dir
13825 cd conftest.dir
13826 # We will build objects and dependencies in a subdirectory because
13827 # it helps to detect inapplicable dependency modes. For instance
13828 # both Tru64's cc and ICC support -MD to output dependencies as a
13829 # side effect of compilation, but ICC will put the dependencies in
13830 # the current directory while Tru64 will put them in the object
13831 # directory.
13832 mkdir sub
13833
13834 am_cv_CC_dependencies_compiler_type=none
13835 if test "$am_compiler_list" = ""; then
13836 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13837 fi
13838 am__universal=false
13839 case " $depcc " in #(
13840 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13841 esac
13842
13843 for depmode in $am_compiler_list; do
13844 # Setup a source with many dependencies, because some compilers
13845 # like to wrap large dependency lists on column 80 (with \), and
13846 # we should not choose a depcomp mode which is confused by this.
13847 #
13848 # We need to recreate these files for each test, as the compiler may
13849 # overwrite some of them when testing with obscure command lines.
13850 # This happens at least with the AIX C compiler.
13851 : > sub/conftest.c
13852 for i in 1 2 3 4 5 6; do
13853 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13854 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13855 # Solaris 8's {/usr,}/bin/sh.
13856 touch sub/conftst$i.h
13857 done
13858 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13859
13860 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13861 # mode. It turns out that the SunPro C++ compiler does not properly
13862 # handle `-M -o', and we need to detect this. Also, some Intel
13863 # versions had trouble with output in subdirs
13864 am__obj=sub/conftest.${OBJEXT-o}
13865 am__minus_obj="-o $am__obj"
13866 case $depmode in
13867 gcc)
13868 # This depmode causes a compiler race in universal mode.
13869 test "$am__universal" = false || continue
13870 ;;
13871 nosideeffect)
13872 # after this tag, mechanisms are not by side-effect, so they'll
13873 # only be used when explicitly requested
13874 if test "x$enable_dependency_tracking" = xyes; then
13875 continue
13876 else
13877 break
13878 fi
13879 ;;
13880 msvisualcpp | msvcmsys)
13881 # This compiler won't grok `-c -o', but also, the minuso test has
13882 # not run yet. These depmodes are late enough in the game, and
13883 # so weak that their functioning should not be impacted.
13884 am__obj=conftest.${OBJEXT-o}
13885 am__minus_obj=
13886 ;;
13887 none) break ;;
13888 esac
13889 if depmode=$depmode \
13890 source=sub/conftest.c object=$am__obj \
13891 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13892 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13893 >/dev/null 2>conftest.err &&
13894 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13895 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13896 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13897 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13898 # icc doesn't choke on unknown options, it will just issue warnings
13899 # or remarks (even with -Werror). So we grep stderr for any message
13900 # that says an option was ignored or not supported.
13901 # When given -MP, icc 7.0 and 7.1 complain thusly:
13902 # icc: Command line warning: ignoring option '-M'; no argument required
13903 # The diagnosis changed in icc 8.0:
13904 # icc: Command line remark: option '-MP' not supported
13905 if (grep 'ignoring option' conftest.err ||
13906 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13907 am_cv_CC_dependencies_compiler_type=$depmode
13908 break
13909 fi
13910 fi
13911 done
13912
13913 cd ..
13914 rm -rf conftest.dir
13915 else
13916 am_cv_CC_dependencies_compiler_type=none
13917 fi
13918
13919 fi
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13921 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13922 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13923
13924 if
13925 test "x$enable_dependency_tracking" != xno \
13926 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13927 am__fastdepCC_TRUE=
13928 am__fastdepCC_FALSE='#'
13929 else
13930 am__fastdepCC_TRUE='#'
13931 am__fastdepCC_FALSE=
13932 fi
13933
13934
13935
13936 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
13937
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13939 $as_echo_n "checking for ANSI C header files... " >&6; }
13940 if test "${ac_cv_header_stdc+set}" = set; then :
13941 $as_echo_n "(cached) " >&6
13942 else
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13945 #include <stdlib.h>
13946 #include <stdarg.h>
13947 #include <string.h>
13948 #include <float.h>
13949
13950 int
13951 main ()
13952 {
13953
13954 ;
13955 return 0;
13956 }
13957 _ACEOF
13958 if ac_fn_c_try_compile "$LINENO"; then :
13959 ac_cv_header_stdc=yes
13960 else
13961 ac_cv_header_stdc=no
13962 fi
13963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13964
13965 if test $ac_cv_header_stdc = yes; then
13966 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h. */
13969 #include <string.h>
13970
13971 _ACEOF
13972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13973 $EGREP "memchr" >/dev/null 2>&1; then :
13974
13975 else
13976 ac_cv_header_stdc=no
13977 fi
13978 rm -f conftest*
13979
13980 fi
13981
13982 if test $ac_cv_header_stdc = yes; then
13983 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h. */
13986 #include <stdlib.h>
13987
13988 _ACEOF
13989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13990 $EGREP "free" >/dev/null 2>&1; then :
13991
13992 else
13993 ac_cv_header_stdc=no
13994 fi
13995 rm -f conftest*
13996
13997 fi
13998
13999 if test $ac_cv_header_stdc = yes; then
14000 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14001 if test "$cross_compiling" = yes; then :
14002 :
14003 else
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14006 #include <ctype.h>
14007 #include <stdlib.h>
14008 #if ((' ' & 0x0FF) == 0x020)
14009 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14010 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14011 #else
14012 # define ISLOWER(c) \
14013 (('a' <= (c) && (c) <= 'i') \
14014 || ('j' <= (c) && (c) <= 'r') \
14015 || ('s' <= (c) && (c) <= 'z'))
14016 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14017 #endif
14018
14019 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14020 int
14021 main ()
14022 {
14023 int i;
14024 for (i = 0; i < 256; i++)
14025 if (XOR (islower (i), ISLOWER (i))
14026 || toupper (i) != TOUPPER (i))
14027 return 2;
14028 return 0;
14029 }
14030 _ACEOF
14031 if ac_fn_c_try_run "$LINENO"; then :
14032
14033 else
14034 ac_cv_header_stdc=no
14035 fi
14036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14037 conftest.$ac_objext conftest.beam conftest.$ac_ext
14038 fi
14039
14040 fi
14041 fi
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14043 $as_echo "$ac_cv_header_stdc" >&6; }
14044 if test $ac_cv_header_stdc = yes; then
14045
14046 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14047
14048 fi
14049
14050 for ac_prog in gawk mawk nawk awk
14051 do
14052 # Extract the first word of "$ac_prog", so it can be a program name with args.
14053 set dummy $ac_prog; ac_word=$2
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14055 $as_echo_n "checking for $ac_word... " >&6; }
14056 if test "${ac_cv_prog_AWK+set}" = set; then :
14057 $as_echo_n "(cached) " >&6
14058 else
14059 if test -n "$AWK"; then
14060 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14061 else
14062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14063 for as_dir in $PATH
14064 do
14065 IFS=$as_save_IFS
14066 test -z "$as_dir" && as_dir=.
14067 for ac_exec_ext in '' $ac_executable_extensions; do
14068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14069 ac_cv_prog_AWK="$ac_prog"
14070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14071 break 2
14072 fi
14073 done
14074 done
14075 IFS=$as_save_IFS
14076
14077 fi
14078 fi
14079 AWK=$ac_cv_prog_AWK
14080 if test -n "$AWK"; then
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
14082 $as_echo "$AWK" >&6; }
14083 else
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14085 $as_echo "no" >&6; }
14086 fi
14087
14088
14089 test -n "$AWK" && break
14090 done
14091
14092 ac_ext=cpp
14093 ac_cpp='$CXXCPP $CPPFLAGS'
14094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14097 if test -z "$CXX"; then
14098 if test -n "$CCC"; then
14099 CXX=$CCC
14100 else
14101 if test -n "$ac_tool_prefix"; then
14102 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14103 do
14104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14107 $as_echo_n "checking for $ac_word... " >&6; }
14108 if test "${ac_cv_prog_CXX+set}" = set; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 if test -n "$CXX"; then
14112 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14113 else
14114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14115 for as_dir in $PATH
14116 do
14117 IFS=$as_save_IFS
14118 test -z "$as_dir" && as_dir=.
14119 for ac_exec_ext in '' $ac_executable_extensions; do
14120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14121 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14123 break 2
14124 fi
14125 done
14126 done
14127 IFS=$as_save_IFS
14128
14129 fi
14130 fi
14131 CXX=$ac_cv_prog_CXX
14132 if test -n "$CXX"; then
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14134 $as_echo "$CXX" >&6; }
14135 else
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14137 $as_echo "no" >&6; }
14138 fi
14139
14140
14141 test -n "$CXX" && break
14142 done
14143 fi
14144 if test -z "$CXX"; then
14145 ac_ct_CXX=$CXX
14146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14147 do
14148 # Extract the first word of "$ac_prog", so it can be a program name with args.
14149 set dummy $ac_prog; ac_word=$2
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14151 $as_echo_n "checking for $ac_word... " >&6; }
14152 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
14153 $as_echo_n "(cached) " >&6
14154 else
14155 if test -n "$ac_ct_CXX"; then
14156 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14157 else
14158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14159 for as_dir in $PATH
14160 do
14161 IFS=$as_save_IFS
14162 test -z "$as_dir" && as_dir=.
14163 for ac_exec_ext in '' $ac_executable_extensions; do
14164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14165 ac_cv_prog_ac_ct_CXX="$ac_prog"
14166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14167 break 2
14168 fi
14169 done
14170 done
14171 IFS=$as_save_IFS
14172
14173 fi
14174 fi
14175 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14176 if test -n "$ac_ct_CXX"; then
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14178 $as_echo "$ac_ct_CXX" >&6; }
14179 else
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181 $as_echo "no" >&6; }
14182 fi
14183
14184
14185 test -n "$ac_ct_CXX" && break
14186 done
14187
14188 if test "x$ac_ct_CXX" = x; then
14189 CXX="g++"
14190 else
14191 case $cross_compiling:$ac_tool_warned in
14192 yes:)
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14195 ac_tool_warned=yes ;;
14196 esac
14197 CXX=$ac_ct_CXX
14198 fi
14199 fi
14200
14201 fi
14202 fi
14203 # Provide some information about the compiler.
14204 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14205 set X $ac_compile
14206 ac_compiler=$2
14207 for ac_option in --version -v -V -qversion; do
14208 { { ac_try="$ac_compiler $ac_option >&5"
14209 case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14212 esac
14213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14214 $as_echo "$ac_try_echo"; } >&5
14215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14216 ac_status=$?
14217 if test -s conftest.err; then
14218 sed '10a\
14219 ... rest of stderr output deleted ...
14220 10q' conftest.err >conftest.er1
14221 cat conftest.er1 >&5
14222 fi
14223 rm -f conftest.er1 conftest.err
14224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14225 test $ac_status = 0; }
14226 done
14227
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14229 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14230 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
14231 $as_echo_n "(cached) " >&6
14232 else
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14235
14236 int
14237 main ()
14238 {
14239 #ifndef __GNUC__
14240 choke me
14241 #endif
14242
14243 ;
14244 return 0;
14245 }
14246 _ACEOF
14247 if ac_fn_cxx_try_compile "$LINENO"; then :
14248 ac_compiler_gnu=yes
14249 else
14250 ac_compiler_gnu=no
14251 fi
14252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14253 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14254
14255 fi
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14257 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14258 if test $ac_compiler_gnu = yes; then
14259 GXX=yes
14260 else
14261 GXX=
14262 fi
14263 ac_test_CXXFLAGS=${CXXFLAGS+set}
14264 ac_save_CXXFLAGS=$CXXFLAGS
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14266 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14267 if test "${ac_cv_prog_cxx_g+set}" = set; then :
14268 $as_echo_n "(cached) " >&6
14269 else
14270 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14271 ac_cxx_werror_flag=yes
14272 ac_cv_prog_cxx_g=no
14273 CXXFLAGS="-g"
14274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14275 /* end confdefs.h. */
14276
14277 int
14278 main ()
14279 {
14280
14281 ;
14282 return 0;
14283 }
14284 _ACEOF
14285 if ac_fn_cxx_try_compile "$LINENO"; then :
14286 ac_cv_prog_cxx_g=yes
14287 else
14288 CXXFLAGS=""
14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14291
14292 int
14293 main ()
14294 {
14295
14296 ;
14297 return 0;
14298 }
14299 _ACEOF
14300 if ac_fn_cxx_try_compile "$LINENO"; then :
14301
14302 else
14303 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14304 CXXFLAGS="-g"
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14307
14308 int
14309 main ()
14310 {
14311
14312 ;
14313 return 0;
14314 }
14315 _ACEOF
14316 if ac_fn_cxx_try_compile "$LINENO"; then :
14317 ac_cv_prog_cxx_g=yes
14318 fi
14319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14320 fi
14321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14322 fi
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14325 fi
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14327 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14328 if test "$ac_test_CXXFLAGS" = set; then
14329 CXXFLAGS=$ac_save_CXXFLAGS
14330 elif test $ac_cv_prog_cxx_g = yes; then
14331 if test "$GXX" = yes; then
14332 CXXFLAGS="-g -O2"
14333 else
14334 CXXFLAGS="-g"
14335 fi
14336 else
14337 if test "$GXX" = yes; then
14338 CXXFLAGS="-O2"
14339 else
14340 CXXFLAGS=
14341 fi
14342 fi
14343 ac_ext=c
14344 ac_cpp='$CPP $CPPFLAGS'
14345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14348
14349 depcc="$CXX" am_compiler_list=
14350
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14352 $as_echo_n "checking dependency style of $depcc... " >&6; }
14353 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
14354 $as_echo_n "(cached) " >&6
14355 else
14356 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14357 # We make a subdir and do the tests there. Otherwise we can end up
14358 # making bogus files that we don't know about and never remove. For
14359 # instance it was reported that on HP-UX the gcc test will end up
14360 # making a dummy file named `D' -- because `-MD' means `put the output
14361 # in D'.
14362 mkdir conftest.dir
14363 # Copy depcomp to subdir because otherwise we won't find it if we're
14364 # using a relative directory.
14365 cp "$am_depcomp" conftest.dir
14366 cd conftest.dir
14367 # We will build objects and dependencies in a subdirectory because
14368 # it helps to detect inapplicable dependency modes. For instance
14369 # both Tru64's cc and ICC support -MD to output dependencies as a
14370 # side effect of compilation, but ICC will put the dependencies in
14371 # the current directory while Tru64 will put them in the object
14372 # directory.
14373 mkdir sub
14374
14375 am_cv_CXX_dependencies_compiler_type=none
14376 if test "$am_compiler_list" = ""; then
14377 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14378 fi
14379 am__universal=false
14380 case " $depcc " in #(
14381 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14382 esac
14383
14384 for depmode in $am_compiler_list; do
14385 # Setup a source with many dependencies, because some compilers
14386 # like to wrap large dependency lists on column 80 (with \), and
14387 # we should not choose a depcomp mode which is confused by this.
14388 #
14389 # We need to recreate these files for each test, as the compiler may
14390 # overwrite some of them when testing with obscure command lines.
14391 # This happens at least with the AIX C compiler.
14392 : > sub/conftest.c
14393 for i in 1 2 3 4 5 6; do
14394 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14395 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14396 # Solaris 8's {/usr,}/bin/sh.
14397 touch sub/conftst$i.h
14398 done
14399 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14400
14401 # We check with `-c' and `-o' for the sake of the "dashmstdout"
14402 # mode. It turns out that the SunPro C++ compiler does not properly
14403 # handle `-M -o', and we need to detect this. Also, some Intel
14404 # versions had trouble with output in subdirs
14405 am__obj=sub/conftest.${OBJEXT-o}
14406 am__minus_obj="-o $am__obj"
14407 case $depmode in
14408 gcc)
14409 # This depmode causes a compiler race in universal mode.
14410 test "$am__universal" = false || continue
14411 ;;
14412 nosideeffect)
14413 # after this tag, mechanisms are not by side-effect, so they'll
14414 # only be used when explicitly requested
14415 if test "x$enable_dependency_tracking" = xyes; then
14416 continue
14417 else
14418 break
14419 fi
14420 ;;
14421 msvisualcpp | msvcmsys)
14422 # This compiler won't grok `-c -o', but also, the minuso test has
14423 # not run yet. These depmodes are late enough in the game, and
14424 # so weak that their functioning should not be impacted.
14425 am__obj=conftest.${OBJEXT-o}
14426 am__minus_obj=
14427 ;;
14428 none) break ;;
14429 esac
14430 if depmode=$depmode \
14431 source=sub/conftest.c object=$am__obj \
14432 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14433 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14434 >/dev/null 2>conftest.err &&
14435 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14436 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14437 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14438 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14439 # icc doesn't choke on unknown options, it will just issue warnings
14440 # or remarks (even with -Werror). So we grep stderr for any message
14441 # that says an option was ignored or not supported.
14442 # When given -MP, icc 7.0 and 7.1 complain thusly:
14443 # icc: Command line warning: ignoring option '-M'; no argument required
14444 # The diagnosis changed in icc 8.0:
14445 # icc: Command line remark: option '-MP' not supported
14446 if (grep 'ignoring option' conftest.err ||
14447 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14448 am_cv_CXX_dependencies_compiler_type=$depmode
14449 break
14450 fi
14451 fi
14452 done
14453
14454 cd ..
14455 rm -rf conftest.dir
14456 else
14457 am_cv_CXX_dependencies_compiler_type=none
14458 fi
14459
14460 fi
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14462 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14463 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14464
14465 if
14466 test "x$enable_dependency_tracking" != xno \
14467 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14468 am__fastdepCXX_TRUE=
14469 am__fastdepCXX_FALSE='#'
14470 else
14471 am__fastdepCXX_TRUE='#'
14472 am__fastdepCXX_FALSE=
14473 fi
14474
14475
14476
14477 ac_ext=cpp
14478 ac_cpp='$CXXCPP $CPPFLAGS'
14479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14482 if test -z "$CXX"; then
14483 if test -n "$CCC"; then
14484 CXX=$CCC
14485 else
14486 if test -n "$ac_tool_prefix"; then
14487 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14488 do
14489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14492 $as_echo_n "checking for $ac_word... " >&6; }
14493 if test "${ac_cv_prog_CXX+set}" = set; then :
14494 $as_echo_n "(cached) " >&6
14495 else
14496 if test -n "$CXX"; then
14497 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14498 else
14499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14500 for as_dir in $PATH
14501 do
14502 IFS=$as_save_IFS
14503 test -z "$as_dir" && as_dir=.
14504 for ac_exec_ext in '' $ac_executable_extensions; do
14505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14506 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14508 break 2
14509 fi
14510 done
14511 done
14512 IFS=$as_save_IFS
14513
14514 fi
14515 fi
14516 CXX=$ac_cv_prog_CXX
14517 if test -n "$CXX"; then
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14519 $as_echo "$CXX" >&6; }
14520 else
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14522 $as_echo "no" >&6; }
14523 fi
14524
14525
14526 test -n "$CXX" && break
14527 done
14528 fi
14529 if test -z "$CXX"; then
14530 ac_ct_CXX=$CXX
14531 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14532 do
14533 # Extract the first word of "$ac_prog", so it can be a program name with args.
14534 set dummy $ac_prog; ac_word=$2
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14536 $as_echo_n "checking for $ac_word... " >&6; }
14537 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
14538 $as_echo_n "(cached) " >&6
14539 else
14540 if test -n "$ac_ct_CXX"; then
14541 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14542 else
14543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14544 for as_dir in $PATH
14545 do
14546 IFS=$as_save_IFS
14547 test -z "$as_dir" && as_dir=.
14548 for ac_exec_ext in '' $ac_executable_extensions; do
14549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14550 ac_cv_prog_ac_ct_CXX="$ac_prog"
14551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14552 break 2
14553 fi
14554 done
14555 done
14556 IFS=$as_save_IFS
14557
14558 fi
14559 fi
14560 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14561 if test -n "$ac_ct_CXX"; then
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14563 $as_echo "$ac_ct_CXX" >&6; }
14564 else
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566 $as_echo "no" >&6; }
14567 fi
14568
14569
14570 test -n "$ac_ct_CXX" && break
14571 done
14572
14573 if test "x$ac_ct_CXX" = x; then
14574 CXX="g++"
14575 else
14576 case $cross_compiling:$ac_tool_warned in
14577 yes:)
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14580 ac_tool_warned=yes ;;
14581 esac
14582 CXX=$ac_ct_CXX
14583 fi
14584 fi
14585
14586 fi
14587 fi
14588 # Provide some information about the compiler.
14589 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14590 set X $ac_compile
14591 ac_compiler=$2
14592 for ac_option in --version -v -V -qversion; do
14593 { { ac_try="$ac_compiler $ac_option >&5"
14594 case "(($ac_try" in
14595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14596 *) ac_try_echo=$ac_try;;
14597 esac
14598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14599 $as_echo "$ac_try_echo"; } >&5
14600 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14601 ac_status=$?
14602 if test -s conftest.err; then
14603 sed '10a\
14604 ... rest of stderr output deleted ...
14605 10q' conftest.err >conftest.er1
14606 cat conftest.er1 >&5
14607 fi
14608 rm -f conftest.er1 conftest.err
14609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14610 test $ac_status = 0; }
14611 done
14612
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14614 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14615 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
14616 $as_echo_n "(cached) " >&6
14617 else
14618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h. */
14620
14621 int
14622 main ()
14623 {
14624 #ifndef __GNUC__
14625 choke me
14626 #endif
14627
14628 ;
14629 return 0;
14630 }
14631 _ACEOF
14632 if ac_fn_cxx_try_compile "$LINENO"; then :
14633 ac_compiler_gnu=yes
14634 else
14635 ac_compiler_gnu=no
14636 fi
14637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14639
14640 fi
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14642 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14643 if test $ac_compiler_gnu = yes; then
14644 GXX=yes
14645 else
14646 GXX=
14647 fi
14648 ac_test_CXXFLAGS=${CXXFLAGS+set}
14649 ac_save_CXXFLAGS=$CXXFLAGS
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14651 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14652 if test "${ac_cv_prog_cxx_g+set}" = set; then :
14653 $as_echo_n "(cached) " >&6
14654 else
14655 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14656 ac_cxx_werror_flag=yes
14657 ac_cv_prog_cxx_g=no
14658 CXXFLAGS="-g"
14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h. */
14661
14662 int
14663 main ()
14664 {
14665
14666 ;
14667 return 0;
14668 }
14669 _ACEOF
14670 if ac_fn_cxx_try_compile "$LINENO"; then :
14671 ac_cv_prog_cxx_g=yes
14672 else
14673 CXXFLAGS=""
14674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675 /* end confdefs.h. */
14676
14677 int
14678 main ()
14679 {
14680
14681 ;
14682 return 0;
14683 }
14684 _ACEOF
14685 if ac_fn_cxx_try_compile "$LINENO"; then :
14686
14687 else
14688 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14689 CXXFLAGS="-g"
14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h. */
14692
14693 int
14694 main ()
14695 {
14696
14697 ;
14698 return 0;
14699 }
14700 _ACEOF
14701 if ac_fn_cxx_try_compile "$LINENO"; then :
14702 ac_cv_prog_cxx_g=yes
14703 fi
14704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14705 fi
14706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707 fi
14708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14709 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14710 fi
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14712 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14713 if test "$ac_test_CXXFLAGS" = set; then
14714 CXXFLAGS=$ac_save_CXXFLAGS
14715 elif test $ac_cv_prog_cxx_g = yes; then
14716 if test "$GXX" = yes; then
14717 CXXFLAGS="-g -O2"
14718 else
14719 CXXFLAGS="-g"
14720 fi
14721 else
14722 if test "$GXX" = yes; then
14723 CXXFLAGS="-O2"
14724 else
14725 CXXFLAGS=
14726 fi
14727 fi
14728 ac_ext=c
14729 ac_cpp='$CPP $CPPFLAGS'
14730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14733
14734 depcc="$CXX" am_compiler_list=
14735
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14737 $as_echo_n "checking dependency style of $depcc... " >&6; }
14738 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
14739 $as_echo_n "(cached) " >&6
14740 else
14741 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14742 # We make a subdir and do the tests there. Otherwise we can end up
14743 # making bogus files that we don't know about and never remove. For
14744 # instance it was reported that on HP-UX the gcc test will end up
14745 # making a dummy file named `D' -- because `-MD' means `put the output
14746 # in D'.
14747 mkdir conftest.dir
14748 # Copy depcomp to subdir because otherwise we won't find it if we're
14749 # using a relative directory.
14750 cp "$am_depcomp" conftest.dir
14751 cd conftest.dir
14752 # We will build objects and dependencies in a subdirectory because
14753 # it helps to detect inapplicable dependency modes. For instance
14754 # both Tru64's cc and ICC support -MD to output dependencies as a
14755 # side effect of compilation, but ICC will put the dependencies in
14756 # the current directory while Tru64 will put them in the object
14757 # directory.
14758 mkdir sub
14759
14760 am_cv_CXX_dependencies_compiler_type=none
14761 if test "$am_compiler_list" = ""; then
14762 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14763 fi
14764 am__universal=false
14765 case " $depcc " in #(
14766 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14767 esac
14768
14769 for depmode in $am_compiler_list; do
14770 # Setup a source with many dependencies, because some compilers
14771 # like to wrap large dependency lists on column 80 (with \), and
14772 # we should not choose a depcomp mode which is confused by this.
14773 #
14774 # We need to recreate these files for each test, as the compiler may
14775 # overwrite some of them when testing with obscure command lines.
14776 # This happens at least with the AIX C compiler.
14777 : > sub/conftest.c
14778 for i in 1 2 3 4 5 6; do
14779 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14780 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14781 # Solaris 8's {/usr,}/bin/sh.
14782 touch sub/conftst$i.h
14783 done
14784 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14785
14786 # We check with `-c' and `-o' for the sake of the "dashmstdout"
14787 # mode. It turns out that the SunPro C++ compiler does not properly
14788 # handle `-M -o', and we need to detect this. Also, some Intel
14789 # versions had trouble with output in subdirs
14790 am__obj=sub/conftest.${OBJEXT-o}
14791 am__minus_obj="-o $am__obj"
14792 case $depmode in
14793 gcc)
14794 # This depmode causes a compiler race in universal mode.
14795 test "$am__universal" = false || continue
14796 ;;
14797 nosideeffect)
14798 # after this tag, mechanisms are not by side-effect, so they'll
14799 # only be used when explicitly requested
14800 if test "x$enable_dependency_tracking" = xyes; then
14801 continue
14802 else
14803 break
14804 fi
14805 ;;
14806 msvisualcpp | msvcmsys)
14807 # This compiler won't grok `-c -o', but also, the minuso test has
14808 # not run yet. These depmodes are late enough in the game, and
14809 # so weak that their functioning should not be impacted.
14810 am__obj=conftest.${OBJEXT-o}
14811 am__minus_obj=
14812 ;;
14813 none) break ;;
14814 esac
14815 if depmode=$depmode \
14816 source=sub/conftest.c object=$am__obj \
14817 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14818 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14819 >/dev/null 2>conftest.err &&
14820 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14821 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14822 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14823 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14824 # icc doesn't choke on unknown options, it will just issue warnings
14825 # or remarks (even with -Werror). So we grep stderr for any message
14826 # that says an option was ignored or not supported.
14827 # When given -MP, icc 7.0 and 7.1 complain thusly:
14828 # icc: Command line warning: ignoring option '-M'; no argument required
14829 # The diagnosis changed in icc 8.0:
14830 # icc: Command line remark: option '-MP' not supported
14831 if (grep 'ignoring option' conftest.err ||
14832 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14833 am_cv_CXX_dependencies_compiler_type=$depmode
14834 break
14835 fi
14836 fi
14837 done
14838
14839 cd ..
14840 rm -rf conftest.dir
14841 else
14842 am_cv_CXX_dependencies_compiler_type=none
14843 fi
14844
14845 fi
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14847 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14848 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14849
14850 if
14851 test "x$enable_dependency_tracking" != xno \
14852 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14853 am__fastdepCXX_TRUE=
14854 am__fastdepCXX_FALSE='#'
14855 else
14856 am__fastdepCXX_TRUE='#'
14857 am__fastdepCXX_FALSE=
14858 fi
14859
14860
14861 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14862 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14863 (test "X$CXX" != "Xg++"))) ; then
14864 ac_ext=cpp
14865 ac_cpp='$CXXCPP $CPPFLAGS'
14866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14870 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14871 if test -z "$CXXCPP"; then
14872 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
14873 $as_echo_n "(cached) " >&6
14874 else
14875 # Double quotes because CXXCPP needs to be expanded
14876 for CXXCPP in "$CXX -E" "/lib/cpp"
14877 do
14878 ac_preproc_ok=false
14879 for ac_cxx_preproc_warn_flag in '' yes
14880 do
14881 # Use a header file that comes with gcc, so configuring glibc
14882 # with a fresh cross-compiler works.
14883 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14884 # <limits.h> exists even on freestanding compilers.
14885 # On the NeXT, cc -E runs the code through the compiler's parser,
14886 # not just through cpp. "Syntax error" is here to catch this case.
14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888 /* end confdefs.h. */
14889 #ifdef __STDC__
14890 # include <limits.h>
14891 #else
14892 # include <assert.h>
14893 #endif
14894 Syntax error
14895 _ACEOF
14896 if ac_fn_cxx_try_cpp "$LINENO"; then :
14897
14898 else
14899 # Broken: fails on valid input.
14900 continue
14901 fi
14902 rm -f conftest.err conftest.$ac_ext
14903
14904 # OK, works on sane cases. Now check whether nonexistent headers
14905 # can be detected and how.
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908 #include <ac_nonexistent.h>
14909 _ACEOF
14910 if ac_fn_cxx_try_cpp "$LINENO"; then :
14911 # Broken: success on invalid input.
14912 continue
14913 else
14914 # Passes both tests.
14915 ac_preproc_ok=:
14916 break
14917 fi
14918 rm -f conftest.err conftest.$ac_ext
14919
14920 done
14921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14922 rm -f conftest.err conftest.$ac_ext
14923 if $ac_preproc_ok; then :
14924 break
14925 fi
14926
14927 done
14928 ac_cv_prog_CXXCPP=$CXXCPP
14929
14930 fi
14931 CXXCPP=$ac_cv_prog_CXXCPP
14932 else
14933 ac_cv_prog_CXXCPP=$CXXCPP
14934 fi
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14936 $as_echo "$CXXCPP" >&6; }
14937 ac_preproc_ok=false
14938 for ac_cxx_preproc_warn_flag in '' yes
14939 do
14940 # Use a header file that comes with gcc, so configuring glibc
14941 # with a fresh cross-compiler works.
14942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14943 # <limits.h> exists even on freestanding compilers.
14944 # On the NeXT, cc -E runs the code through the compiler's parser,
14945 # not just through cpp. "Syntax error" is here to catch this case.
14946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947 /* end confdefs.h. */
14948 #ifdef __STDC__
14949 # include <limits.h>
14950 #else
14951 # include <assert.h>
14952 #endif
14953 Syntax error
14954 _ACEOF
14955 if ac_fn_cxx_try_cpp "$LINENO"; then :
14956
14957 else
14958 # Broken: fails on valid input.
14959 continue
14960 fi
14961 rm -f conftest.err conftest.$ac_ext
14962
14963 # OK, works on sane cases. Now check whether nonexistent headers
14964 # can be detected and how.
14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14967 #include <ac_nonexistent.h>
14968 _ACEOF
14969 if ac_fn_cxx_try_cpp "$LINENO"; then :
14970 # Broken: success on invalid input.
14971 continue
14972 else
14973 # Passes both tests.
14974 ac_preproc_ok=:
14975 break
14976 fi
14977 rm -f conftest.err conftest.$ac_ext
14978
14979 done
14980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14981 rm -f conftest.err conftest.$ac_ext
14982 if $ac_preproc_ok; then :
14983
14984 else
14985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14987 _lt_caught_CXX_error=yes; }
14988 fi
14989
14990 ac_ext=c
14991 ac_cpp='$CPP $CPPFLAGS'
14992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14995
14996 else
14997 _lt_caught_CXX_error=yes
14998 fi
14999
15000
15001
15002
15003 ac_ext=cpp
15004 ac_cpp='$CXXCPP $CPPFLAGS'
15005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15008
15009 archive_cmds_need_lc_CXX=no
15010 allow_undefined_flag_CXX=
15011 always_export_symbols_CXX=no
15012 archive_expsym_cmds_CXX=
15013 compiler_needs_object_CXX=no
15014 export_dynamic_flag_spec_CXX=
15015 hardcode_direct_CXX=no
15016 hardcode_direct_absolute_CXX=no
15017 hardcode_libdir_flag_spec_CXX=
15018 hardcode_libdir_flag_spec_ld_CXX=
15019 hardcode_libdir_separator_CXX=
15020 hardcode_minus_L_CXX=no
15021 hardcode_shlibpath_var_CXX=unsupported
15022 hardcode_automatic_CXX=no
15023 inherit_rpath_CXX=no
15024 module_cmds_CXX=
15025 module_expsym_cmds_CXX=
15026 link_all_deplibs_CXX=unknown
15027 old_archive_cmds_CXX=$old_archive_cmds
15028 no_undefined_flag_CXX=
15029 whole_archive_flag_spec_CXX=
15030 enable_shared_with_static_runtimes_CXX=no
15031
15032 # Source file extension for C++ test sources.
15033 ac_ext=cpp
15034
15035 # Object file extension for compiled C++ test sources.
15036 objext=o
15037 objext_CXX=$objext
15038
15039 # No sense in running all these tests if we already determined that
15040 # the CXX compiler isn't working. Some variables (like enable_shared)
15041 # are currently assumed to apply to all compilers on this platform,
15042 # and will be corrupted by setting them based on a non-working compiler.
15043 if test "$_lt_caught_CXX_error" != yes; then
15044 # Code to be used in simple compile tests
15045 lt_simple_compile_test_code="int some_variable = 0;"
15046
15047 # Code to be used in simple link tests
15048 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15049
15050 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15051
15052
15053
15054
15055
15056
15057 # If no C compiler was specified, use CC.
15058 LTCC=${LTCC-"$CC"}
15059
15060 # If no C compiler flags were specified, use CFLAGS.
15061 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15062
15063 # Allow CC to be a program name with arguments.
15064 compiler=$CC
15065
15066
15067 # save warnings/boilerplate of simple test code
15068 ac_outfile=conftest.$ac_objext
15069 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15070 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15071 _lt_compiler_boilerplate=`cat conftest.err`
15072 $RM conftest*
15073
15074 ac_outfile=conftest.$ac_objext
15075 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15076 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15077 _lt_linker_boilerplate=`cat conftest.err`
15078 $RM -r conftest*
15079
15080
15081 # Allow CC to be a program name with arguments.
15082 lt_save_CC=$CC
15083 lt_save_LD=$LD
15084 lt_save_GCC=$GCC
15085 GCC=$GXX
15086 lt_save_with_gnu_ld=$with_gnu_ld
15087 lt_save_path_LD=$lt_cv_path_LD
15088 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15089 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15090 else
15091 $as_unset lt_cv_prog_gnu_ld
15092 fi
15093 if test -n "${lt_cv_path_LDCXX+set}"; then
15094 lt_cv_path_LD=$lt_cv_path_LDCXX
15095 else
15096 $as_unset lt_cv_path_LD
15097 fi
15098 test -z "${LDCXX+set}" || LD=$LDCXX
15099 CC=${CXX-"c++"}
15100 compiler=$CC
15101 compiler_CXX=$CC
15102 for cc_temp in $compiler""; do
15103 case $cc_temp in
15104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15106 \-*) ;;
15107 *) break;;
15108 esac
15109 done
15110 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15111
15112
15113 if test -n "$compiler"; then
15114 # We don't want -fno-exception when compiling C++ code, so set the
15115 # no_builtin_flag separately
15116 if test "$GXX" = yes; then
15117 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15118 else
15119 lt_prog_compiler_no_builtin_flag_CXX=
15120 fi
15121
15122 if test "$GXX" = yes; then
15123 # Set up default GNU C++ configuration
15124
15125
15126
15127 # Check whether --with-gnu-ld was given.
15128 if test "${with_gnu_ld+set}" = set; then :
15129 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15130 else
15131 with_gnu_ld=no
15132 fi
15133
15134 ac_prog=ld
15135 if test "$GCC" = yes; then
15136 # Check if gcc -print-prog-name=ld gives a path.
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15138 $as_echo_n "checking for ld used by $CC... " >&6; }
15139 case $host in
15140 *-*-mingw*)
15141 # gcc leaves a trailing carriage return which upsets mingw
15142 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15143 *)
15144 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15145 esac
15146 case $ac_prog in
15147 # Accept absolute paths.
15148 [\\/]* | ?:[\\/]*)
15149 re_direlt='/[^/][^/]*/\.\./'
15150 # Canonicalize the pathname of ld
15151 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15152 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15153 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15154 done
15155 test -z "$LD" && LD="$ac_prog"
15156 ;;
15157 "")
15158 # If it fails, then pretend we aren't using GCC.
15159 ac_prog=ld
15160 ;;
15161 *)
15162 # If it is relative, then search for the first ld in PATH.
15163 with_gnu_ld=unknown
15164 ;;
15165 esac
15166 elif test "$with_gnu_ld" = yes; then
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15168 $as_echo_n "checking for GNU ld... " >&6; }
15169 else
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15171 $as_echo_n "checking for non-GNU ld... " >&6; }
15172 fi
15173 if test "${lt_cv_path_LD+set}" = set; then :
15174 $as_echo_n "(cached) " >&6
15175 else
15176 if test -z "$LD"; then
15177 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15178 for ac_dir in $PATH; do
15179 IFS="$lt_save_ifs"
15180 test -z "$ac_dir" && ac_dir=.
15181 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15182 lt_cv_path_LD="$ac_dir/$ac_prog"
15183 # Check to see if the program is GNU ld. I'd rather use --version,
15184 # but apparently some variants of GNU ld only accept -v.
15185 # Break only if it was the GNU/non-GNU ld that we prefer.
15186 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15187 *GNU* | *'with BFD'*)
15188 test "$with_gnu_ld" != no && break
15189 ;;
15190 *)
15191 test "$with_gnu_ld" != yes && break
15192 ;;
15193 esac
15194 fi
15195 done
15196 IFS="$lt_save_ifs"
15197 else
15198 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15199 fi
15200 fi
15201
15202 LD="$lt_cv_path_LD"
15203 if test -n "$LD"; then
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15205 $as_echo "$LD" >&6; }
15206 else
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15208 $as_echo "no" >&6; }
15209 fi
15210 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15212 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15213 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15214 $as_echo_n "(cached) " >&6
15215 else
15216 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15217 case `$LD -v 2>&1 </dev/null` in
15218 *GNU* | *'with BFD'*)
15219 lt_cv_prog_gnu_ld=yes
15220 ;;
15221 *)
15222 lt_cv_prog_gnu_ld=no
15223 ;;
15224 esac
15225 fi
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15227 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15228 with_gnu_ld=$lt_cv_prog_gnu_ld
15229
15230
15231
15232
15233
15234
15235
15236 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15237 # archiving commands below assume that GNU ld is being used.
15238 if test "$with_gnu_ld" = yes; then
15239 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15240 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15241
15242 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15243 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15244
15245 # If archive_cmds runs LD, not CC, wlarc should be empty
15246 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15247 # investigate it a little bit more. (MM)
15248 wlarc='${wl}'
15249
15250 # ancient GNU ld didn't support --whole-archive et. al.
15251 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15252 $GREP 'no-whole-archive' > /dev/null; then
15253 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15254 else
15255 whole_archive_flag_spec_CXX=
15256 fi
15257 else
15258 with_gnu_ld=no
15259 wlarc=
15260
15261 # A generic and very simple default shared library creation
15262 # command for GNU C++ for the case where it uses the native
15263 # linker, instead of GNU ld. If possible, this setting should
15264 # overridden to take advantage of the native linker features on
15265 # the platform it is being used on.
15266 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15267 fi
15268
15269 # Commands to make compiler produce verbose output that lists
15270 # what "hidden" libraries, object files and flags are used when
15271 # linking a shared library.
15272 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15273
15274 else
15275 GXX=no
15276 with_gnu_ld=no
15277 wlarc=
15278 fi
15279
15280 # PORTME: fill in a description of your system's C++ link characteristics
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15282 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15283 ld_shlibs_CXX=yes
15284 case $host_os in
15285 aix3*)
15286 # FIXME: insert proper C++ library support
15287 ld_shlibs_CXX=no
15288 ;;
15289 aix[4-9]*)
15290 if test "$host_cpu" = ia64; then
15291 # On IA64, the linker does run time linking by default, so we don't
15292 # have to do anything special.
15293 aix_use_runtimelinking=no
15294 exp_sym_flag='-Bexport'
15295 no_entry_flag=""
15296 else
15297 aix_use_runtimelinking=no
15298
15299 # Test if we are trying to use run time linking or normal
15300 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15301 # need to do runtime linking.
15302 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15303 for ld_flag in $LDFLAGS; do
15304 case $ld_flag in
15305 *-brtl*)
15306 aix_use_runtimelinking=yes
15307 break
15308 ;;
15309 esac
15310 done
15311 ;;
15312 esac
15313
15314 exp_sym_flag='-bexport'
15315 no_entry_flag='-bnoentry'
15316 fi
15317
15318 # When large executables or shared objects are built, AIX ld can
15319 # have problems creating the table of contents. If linking a library
15320 # or program results in "error TOC overflow" add -mminimal-toc to
15321 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15322 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15323
15324 archive_cmds_CXX=''
15325 hardcode_direct_CXX=yes
15326 hardcode_direct_absolute_CXX=yes
15327 hardcode_libdir_separator_CXX=':'
15328 link_all_deplibs_CXX=yes
15329 file_list_spec_CXX='${wl}-f,'
15330
15331 if test "$GXX" = yes; then
15332 case $host_os in aix4.[012]|aix4.[012].*)
15333 # We only want to do this on AIX 4.2 and lower, the check
15334 # below for broken collect2 doesn't work under 4.3+
15335 collect2name=`${CC} -print-prog-name=collect2`
15336 if test -f "$collect2name" &&
15337 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15338 then
15339 # We have reworked collect2
15340 :
15341 else
15342 # We have old collect2
15343 hardcode_direct_CXX=unsupported
15344 # It fails to find uninstalled libraries when the uninstalled
15345 # path is not listed in the libpath. Setting hardcode_minus_L
15346 # to unsupported forces relinking
15347 hardcode_minus_L_CXX=yes
15348 hardcode_libdir_flag_spec_CXX='-L$libdir'
15349 hardcode_libdir_separator_CXX=
15350 fi
15351 esac
15352 shared_flag='-shared'
15353 if test "$aix_use_runtimelinking" = yes; then
15354 shared_flag="$shared_flag "'${wl}-G'
15355 fi
15356 else
15357 # not using gcc
15358 if test "$host_cpu" = ia64; then
15359 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15360 # chokes on -Wl,-G. The following line is correct:
15361 shared_flag='-G'
15362 else
15363 if test "$aix_use_runtimelinking" = yes; then
15364 shared_flag='${wl}-G'
15365 else
15366 shared_flag='${wl}-bM:SRE'
15367 fi
15368 fi
15369 fi
15370
15371 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15372 # It seems that -bexpall does not export symbols beginning with
15373 # underscore (_), so it is better to generate a list of symbols to
15374 # export.
15375 always_export_symbols_CXX=yes
15376 if test "$aix_use_runtimelinking" = yes; then
15377 # Warning - without using the other runtime loading flags (-brtl),
15378 # -berok will link without error, but may produce a broken library.
15379 allow_undefined_flag_CXX='-berok'
15380 # Determine the default libpath from the value encoded in an empty
15381 # executable.
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h. */
15384
15385 int
15386 main ()
15387 {
15388
15389 ;
15390 return 0;
15391 }
15392 _ACEOF
15393 if ac_fn_cxx_try_link "$LINENO"; then :
15394
15395 lt_aix_libpath_sed='
15396 /Import File Strings/,/^$/ {
15397 /^0/ {
15398 s/^0 *\(.*\)$/\1/
15399 p
15400 }
15401 }'
15402 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15403 # Check for a 64-bit object if we didn't find anything.
15404 if test -z "$aix_libpath"; then
15405 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15406 fi
15407 fi
15408 rm -f core conftest.err conftest.$ac_objext \
15409 conftest$ac_exeext conftest.$ac_ext
15410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15411
15412 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15413
15414 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15415 else
15416 if test "$host_cpu" = ia64; then
15417 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15418 allow_undefined_flag_CXX="-z nodefs"
15419 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15420 else
15421 # Determine the default libpath from the value encoded in an
15422 # empty executable.
15423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424 /* end confdefs.h. */
15425
15426 int
15427 main ()
15428 {
15429
15430 ;
15431 return 0;
15432 }
15433 _ACEOF
15434 if ac_fn_cxx_try_link "$LINENO"; then :
15435
15436 lt_aix_libpath_sed='
15437 /Import File Strings/,/^$/ {
15438 /^0/ {
15439 s/^0 *\(.*\)$/\1/
15440 p
15441 }
15442 }'
15443 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15444 # Check for a 64-bit object if we didn't find anything.
15445 if test -z "$aix_libpath"; then
15446 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15447 fi
15448 fi
15449 rm -f core conftest.err conftest.$ac_objext \
15450 conftest$ac_exeext conftest.$ac_ext
15451 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15452
15453 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15454 # Warning - without using the other run time loading flags,
15455 # -berok will link without error, but may produce a broken library.
15456 no_undefined_flag_CXX=' ${wl}-bernotok'
15457 allow_undefined_flag_CXX=' ${wl}-berok'
15458 # Exported symbols can be pulled into shared objects from archives
15459 whole_archive_flag_spec_CXX='$convenience'
15460 archive_cmds_need_lc_CXX=yes
15461 # This is similar to how AIX traditionally builds its shared
15462 # libraries.
15463 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15464 fi
15465 fi
15466 ;;
15467
15468 beos*)
15469 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15470 allow_undefined_flag_CXX=unsupported
15471 # Joseph Beckenbach <[email protected]> says some releases of gcc
15472 # support --undefined. This deserves some investigation. FIXME
15473 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15474 else
15475 ld_shlibs_CXX=no
15476 fi
15477 ;;
15478
15479 chorus*)
15480 case $cc_basename in
15481 *)
15482 # FIXME: insert proper C++ library support
15483 ld_shlibs_CXX=no
15484 ;;
15485 esac
15486 ;;
15487
15488 cygwin* | mingw* | pw32* | cegcc*)
15489 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15490 # as there is no search path for DLLs.
15491 hardcode_libdir_flag_spec_CXX='-L$libdir'
15492 allow_undefined_flag_CXX=unsupported
15493 always_export_symbols_CXX=no
15494 enable_shared_with_static_runtimes_CXX=yes
15495
15496 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15497 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15498 # If the export-symbols file already is a .def file (1st line
15499 # is EXPORTS), use it as is; otherwise, prepend...
15500 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15501 cp $export_symbols $output_objdir/$soname.def;
15502 else
15503 echo EXPORTS > $output_objdir/$soname.def;
15504 cat $export_symbols >> $output_objdir/$soname.def;
15505 fi~
15506 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15507 else
15508 ld_shlibs_CXX=no
15509 fi
15510 ;;
15511 darwin* | rhapsody*)
15512
15513
15514 archive_cmds_need_lc_CXX=no
15515 hardcode_direct_CXX=no
15516 hardcode_automatic_CXX=yes
15517 hardcode_shlibpath_var_CXX=unsupported
15518 whole_archive_flag_spec_CXX=''
15519 link_all_deplibs_CXX=yes
15520 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15521 case $cc_basename in
15522 ifort*) _lt_dar_can_shared=yes ;;
15523 *) _lt_dar_can_shared=$GCC ;;
15524 esac
15525 if test "$_lt_dar_can_shared" = "yes"; then
15526 output_verbose_link_cmd=echo
15527 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15528 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15529 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15530 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15531 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15532 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
15533 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
15534 fi
15535
15536 else
15537 ld_shlibs_CXX=no
15538 fi
15539
15540 ;;
15541
15542 dgux*)
15543 case $cc_basename in
15544 ec++*)
15545 # FIXME: insert proper C++ library support
15546 ld_shlibs_CXX=no
15547 ;;
15548 ghcx*)
15549 # Green Hills C++ Compiler
15550 # FIXME: insert proper C++ library support
15551 ld_shlibs_CXX=no
15552 ;;
15553 *)
15554 # FIXME: insert proper C++ library support
15555 ld_shlibs_CXX=no
15556 ;;
15557 esac
15558 ;;
15559
15560 freebsd[12]*)
15561 # C++ shared libraries reported to be fairly broken before
15562 # switch to ELF
15563 ld_shlibs_CXX=no
15564 ;;
15565
15566 freebsd-elf*)
15567 archive_cmds_need_lc_CXX=no
15568 ;;
15569
15570 freebsd* | dragonfly*)
15571 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15572 # conventions
15573 ld_shlibs_CXX=yes
15574 ;;
15575
15576 gnu*)
15577 ;;
15578
15579 hpux9*)
15580 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15581 hardcode_libdir_separator_CXX=:
15582 export_dynamic_flag_spec_CXX='${wl}-E'
15583 hardcode_direct_CXX=yes
15584 hardcode_minus_L_CXX=yes # Not in the search PATH,
15585 # but as the default
15586 # location of the library.
15587
15588 case $cc_basename in
15589 CC*)
15590 # FIXME: insert proper C++ library support
15591 ld_shlibs_CXX=no
15592 ;;
15593 aCC*)
15594 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15595 # Commands to make compiler produce verbose output that lists
15596 # what "hidden" libraries, object files and flags are used when
15597 # linking a shared library.
15598 #
15599 # There doesn't appear to be a way to prevent this compiler from
15600 # explicitly linking system object files so we need to strip them
15601 # from the output so that they don't get included in the library
15602 # dependencies.
15603 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15604 ;;
15605 *)
15606 if test "$GXX" = yes; then
15607 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15608 else
15609 # FIXME: insert proper C++ library support
15610 ld_shlibs_CXX=no
15611 fi
15612 ;;
15613 esac
15614 ;;
15615
15616 hpux10*|hpux11*)
15617 if test $with_gnu_ld = no; then
15618 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15619 hardcode_libdir_separator_CXX=:
15620
15621 case $host_cpu in
15622 hppa*64*|ia64*)
15623 ;;
15624 *)
15625 export_dynamic_flag_spec_CXX='${wl}-E'
15626 ;;
15627 esac
15628 fi
15629 case $host_cpu in
15630 hppa*64*|ia64*)
15631 hardcode_direct_CXX=no
15632 hardcode_shlibpath_var_CXX=no
15633 ;;
15634 *)
15635 hardcode_direct_CXX=yes
15636 hardcode_direct_absolute_CXX=yes
15637 hardcode_minus_L_CXX=yes # Not in the search PATH,
15638 # but as the default
15639 # location of the library.
15640 ;;
15641 esac
15642
15643 case $cc_basename in
15644 CC*)
15645 # FIXME: insert proper C++ library support
15646 ld_shlibs_CXX=no
15647 ;;
15648 aCC*)
15649 case $host_cpu in
15650 hppa*64*)
15651 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15652 ;;
15653 ia64*)
15654 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15655 ;;
15656 *)
15657 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15658 ;;
15659 esac
15660 # Commands to make compiler produce verbose output that lists
15661 # what "hidden" libraries, object files and flags are used when
15662 # linking a shared library.
15663 #
15664 # There doesn't appear to be a way to prevent this compiler from
15665 # explicitly linking system object files so we need to strip them
15666 # from the output so that they don't get included in the library
15667 # dependencies.
15668 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15669 ;;
15670 *)
15671 if test "$GXX" = yes; then
15672 if test $with_gnu_ld = no; then
15673 case $host_cpu in
15674 hppa*64*)
15675 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15676 ;;
15677 ia64*)
15678 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15679 ;;
15680 *)
15681 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15682 ;;
15683 esac
15684 fi
15685 else
15686 # FIXME: insert proper C++ library support
15687 ld_shlibs_CXX=no
15688 fi
15689 ;;
15690 esac
15691 ;;
15692
15693 interix[3-9]*)
15694 hardcode_direct_CXX=no
15695 hardcode_shlibpath_var_CXX=no
15696 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15697 export_dynamic_flag_spec_CXX='${wl}-E'
15698 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15699 # Instead, shared libraries are loaded at an image base (0x10000000 by
15700 # default) and relocated if they conflict, which is a slow very memory
15701 # consuming and fragmenting process. To avoid this, we pick a random,
15702 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15703 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15704 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15705 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15706 ;;
15707 irix5* | irix6*)
15708 case $cc_basename in
15709 CC*)
15710 # SGI C++
15711 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15712
15713 # Archives containing C++ object files must be created using
15714 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15715 # necessary to make sure instantiated templates are included
15716 # in the archive.
15717 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15718 ;;
15719 *)
15720 if test "$GXX" = yes; then
15721 if test "$with_gnu_ld" = no; then
15722 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
15723 else
15724 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
15725 fi
15726 fi
15727 link_all_deplibs_CXX=yes
15728 ;;
15729 esac
15730 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15731 hardcode_libdir_separator_CXX=:
15732 inherit_rpath_CXX=yes
15733 ;;
15734
15735 linux* | k*bsd*-gnu)
15736 case $cc_basename in
15737 KCC*)
15738 # Kuck and Associates, Inc. (KAI) C++ Compiler
15739
15740 # KCC will only create a shared library if the output file
15741 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15742 # to its proper name (with version) after linking.
15743 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15744 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
15745 # Commands to make compiler produce verbose output that lists
15746 # what "hidden" libraries, object files and flags are used when
15747 # linking a shared library.
15748 #
15749 # There doesn't appear to be a way to prevent this compiler from
15750 # explicitly linking system object files so we need to strip them
15751 # from the output so that they don't get included in the library
15752 # dependencies.
15753 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15754
15755 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15756 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15757
15758 # Archives containing C++ object files must be created using
15759 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15760 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15761 ;;
15762 icpc* | ecpc* )
15763 # Intel C++
15764 with_gnu_ld=yes
15765 # version 8.0 and above of icpc choke on multiply defined symbols
15766 # if we add $predep_objects and $postdep_objects, however 7.1 and
15767 # earlier do not add the objects themselves.
15768 case `$CC -V 2>&1` in
15769 *"Version 7."*)
15770 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15771 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15772 ;;
15773 *) # Version 8.0 or newer
15774 tmp_idyn=
15775 case $host_cpu in
15776 ia64*) tmp_idyn=' -i_dynamic';;
15777 esac
15778 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15779 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15780 ;;
15781 esac
15782 archive_cmds_need_lc_CXX=no
15783 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15784 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15785 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15786 ;;
15787 pgCC* | pgcpp*)
15788 # Portland Group C++ compiler
15789 case `$CC -V` in
15790 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15791 prelink_cmds_CXX='tpldir=Template.dir~
15792 rm -rf $tpldir~
15793 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15794 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15795 old_archive_cmds_CXX='tpldir=Template.dir~
15796 rm -rf $tpldir~
15797 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15798 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15799 $RANLIB $oldlib'
15800 archive_cmds_CXX='tpldir=Template.dir~
15801 rm -rf $tpldir~
15802 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15803 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15804 archive_expsym_cmds_CXX='tpldir=Template.dir~
15805 rm -rf $tpldir~
15806 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15807 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15808 ;;
15809 *) # Version 6 will use weak symbols
15810 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15811 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15812 ;;
15813 esac
15814
15815 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15816 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15817 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15818 ;;
15819 cxx*)
15820 # Compaq C++
15821 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15822 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
15823
15824 runpath_var=LD_RUN_PATH
15825 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15826 hardcode_libdir_separator_CXX=:
15827
15828 # Commands to make compiler produce verbose output that lists
15829 # what "hidden" libraries, object files and flags are used when
15830 # linking a shared library.
15831 #
15832 # There doesn't appear to be a way to prevent this compiler from
15833 # explicitly linking system object files so we need to strip them
15834 # from the output so that they don't get included in the library
15835 # dependencies.
15836 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15837 ;;
15838 xl*)
15839 # IBM XL 8.0 on PPC, with GNU ld
15840 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15841 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15842 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15843 if test "x$supports_anon_versioning" = xyes; then
15844 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15845 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15846 echo "local: *; };" >> $output_objdir/$libname.ver~
15847 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15848 fi
15849 ;;
15850 *)
15851 case `$CC -V 2>&1 | sed 5q` in
15852 *Sun\ C*)
15853 # Sun C++ 5.9
15854 no_undefined_flag_CXX=' -zdefs'
15855 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15856 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15857 hardcode_libdir_flag_spec_CXX='-R$libdir'
15858 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15859 compiler_needs_object_CXX=yes
15860
15861 # Not sure whether something based on
15862 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15863 # would be better.
15864 output_verbose_link_cmd='echo'
15865
15866 # Archives containing C++ object files must be created using
15867 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15868 # necessary to make sure instantiated templates are included
15869 # in the archive.
15870 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15871 ;;
15872 esac
15873 ;;
15874 esac
15875 ;;
15876
15877 lynxos*)
15878 # FIXME: insert proper C++ library support
15879 ld_shlibs_CXX=no
15880 ;;
15881
15882 m88k*)
15883 # FIXME: insert proper C++ library support
15884 ld_shlibs_CXX=no
15885 ;;
15886
15887 mvs*)
15888 case $cc_basename in
15889 cxx*)
15890 # FIXME: insert proper C++ library support
15891 ld_shlibs_CXX=no
15892 ;;
15893 *)
15894 # FIXME: insert proper C++ library support
15895 ld_shlibs_CXX=no
15896 ;;
15897 esac
15898 ;;
15899
15900 netbsd*)
15901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15902 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15903 wlarc=
15904 hardcode_libdir_flag_spec_CXX='-R$libdir'
15905 hardcode_direct_CXX=yes
15906 hardcode_shlibpath_var_CXX=no
15907 fi
15908 # Workaround some broken pre-1.5 toolchains
15909 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15910 ;;
15911
15912 *nto* | *qnx*)
15913 ld_shlibs_CXX=yes
15914 ;;
15915
15916 openbsd2*)
15917 # C++ shared libraries are fairly broken
15918 ld_shlibs_CXX=no
15919 ;;
15920
15921 openbsd*)
15922 if test -f /usr/libexec/ld.so; then
15923 hardcode_direct_CXX=yes
15924 hardcode_shlibpath_var_CXX=no
15925 hardcode_direct_absolute_CXX=yes
15926 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15927 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15928 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15929 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15930 export_dynamic_flag_spec_CXX='${wl}-E'
15931 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15932 fi
15933 output_verbose_link_cmd=echo
15934 else
15935 ld_shlibs_CXX=no
15936 fi
15937 ;;
15938
15939 osf3* | osf4* | osf5*)
15940 case $cc_basename in
15941 KCC*)
15942 # Kuck and Associates, Inc. (KAI) C++ Compiler
15943
15944 # KCC will only create a shared library if the output file
15945 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15946 # to its proper name (with version) after linking.
15947 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15948
15949 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15950 hardcode_libdir_separator_CXX=:
15951
15952 # Archives containing C++ object files must be created using
15953 # the KAI C++ compiler.
15954 case $host in
15955 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15956 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15957 esac
15958 ;;
15959 RCC*)
15960 # Rational C++ 2.4.1
15961 # FIXME: insert proper C++ library support
15962 ld_shlibs_CXX=no
15963 ;;
15964 cxx*)
15965 case $host in
15966 osf3*)
15967 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15968 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15969 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15970 ;;
15971 *)
15972 allow_undefined_flag_CXX=' -expect_unresolved \*'
15973 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15974 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15975 echo "-hidden">> $lib.exp~
15976 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
15977 $RM $lib.exp'
15978 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15979 ;;
15980 esac
15981
15982 hardcode_libdir_separator_CXX=:
15983
15984 # Commands to make compiler produce verbose output that lists
15985 # what "hidden" libraries, object files and flags are used when
15986 # linking a shared library.
15987 #
15988 # There doesn't appear to be a way to prevent this compiler from
15989 # explicitly linking system object files so we need to strip them
15990 # from the output so that they don't get included in the library
15991 # dependencies.
15992 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15993 ;;
15994 *)
15995 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15996 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15997 case $host in
15998 osf3*)
15999 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16000 ;;
16001 *)
16002 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16003 ;;
16004 esac
16005
16006 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16007 hardcode_libdir_separator_CXX=:
16008
16009 # Commands to make compiler produce verbose output that lists
16010 # what "hidden" libraries, object files and flags are used when
16011 # linking a shared library.
16012 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16013
16014 else
16015 # FIXME: insert proper C++ library support
16016 ld_shlibs_CXX=no
16017 fi
16018 ;;
16019 esac
16020 ;;
16021
16022 psos*)
16023 # FIXME: insert proper C++ library support
16024 ld_shlibs_CXX=no
16025 ;;
16026
16027 sunos4*)
16028 case $cc_basename in
16029 CC*)
16030 # Sun C++ 4.x
16031 # FIXME: insert proper C++ library support
16032 ld_shlibs_CXX=no
16033 ;;
16034 lcc*)
16035 # Lucid
16036 # FIXME: insert proper C++ library support
16037 ld_shlibs_CXX=no
16038 ;;
16039 *)
16040 # FIXME: insert proper C++ library support
16041 ld_shlibs_CXX=no
16042 ;;
16043 esac
16044 ;;
16045
16046 solaris*)
16047 case $cc_basename in
16048 CC*)
16049 # Sun C++ 4.2, 5.x and Centerline C++
16050 archive_cmds_need_lc_CXX=yes
16051 no_undefined_flag_CXX=' -zdefs'
16052 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16053 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16054 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16055
16056 hardcode_libdir_flag_spec_CXX='-R$libdir'
16057 hardcode_shlibpath_var_CXX=no
16058 case $host_os in
16059 solaris2.[0-5] | solaris2.[0-5].*) ;;
16060 *)
16061 # The compiler driver will combine and reorder linker options,
16062 # but understands `-z linker_flag'.
16063 # Supported since Solaris 2.6 (maybe 2.5.1?)
16064 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16065 ;;
16066 esac
16067 link_all_deplibs_CXX=yes
16068
16069 output_verbose_link_cmd='echo'
16070
16071 # Archives containing C++ object files must be created using
16072 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16073 # necessary to make sure instantiated templates are included
16074 # in the archive.
16075 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16076 ;;
16077 gcx*)
16078 # Green Hills C++ Compiler
16079 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16080
16081 # The C++ compiler must be used to create the archive.
16082 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16083 ;;
16084 *)
16085 # GNU C++ compiler with Solaris linker
16086 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16087 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16088 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16089 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16090 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16091 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16092
16093 # Commands to make compiler produce verbose output that lists
16094 # what "hidden" libraries, object files and flags are used when
16095 # linking a shared library.
16096 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16097 else
16098 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16099 # platform.
16100 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16101 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16102 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16103
16104 # Commands to make compiler produce verbose output that lists
16105 # what "hidden" libraries, object files and flags are used when
16106 # linking a shared library.
16107 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16108 fi
16109
16110 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16111 case $host_os in
16112 solaris2.[0-5] | solaris2.[0-5].*) ;;
16113 *)
16114 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16115 ;;
16116 esac
16117 fi
16118 ;;
16119 esac
16120 ;;
16121
16122 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16123 no_undefined_flag_CXX='${wl}-z,text'
16124 archive_cmds_need_lc_CXX=no
16125 hardcode_shlibpath_var_CXX=no
16126 runpath_var='LD_RUN_PATH'
16127
16128 case $cc_basename in
16129 CC*)
16130 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16131 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16132 ;;
16133 *)
16134 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16135 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16136 ;;
16137 esac
16138 ;;
16139
16140 sysv5* | sco3.2v5* | sco5v6*)
16141 # Note: We can NOT use -z defs as we might desire, because we do not
16142 # link with -lc, and that would cause any symbols used from libc to
16143 # always be unresolved, which means just about no library would
16144 # ever link correctly. If we're not using GNU ld we use -z text
16145 # though, which does catch some bad symbols but isn't as heavy-handed
16146 # as -z defs.
16147 no_undefined_flag_CXX='${wl}-z,text'
16148 allow_undefined_flag_CXX='${wl}-z,nodefs'
16149 archive_cmds_need_lc_CXX=no
16150 hardcode_shlibpath_var_CXX=no
16151 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16152 hardcode_libdir_separator_CXX=':'
16153 link_all_deplibs_CXX=yes
16154 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16155 runpath_var='LD_RUN_PATH'
16156
16157 case $cc_basename in
16158 CC*)
16159 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16160 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16161 ;;
16162 *)
16163 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16164 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16165 ;;
16166 esac
16167 ;;
16168
16169 tandem*)
16170 case $cc_basename in
16171 NCC*)
16172 # NonStop-UX NCC 3.20
16173 # FIXME: insert proper C++ library support
16174 ld_shlibs_CXX=no
16175 ;;
16176 *)
16177 # FIXME: insert proper C++ library support
16178 ld_shlibs_CXX=no
16179 ;;
16180 esac
16181 ;;
16182
16183 vxworks*)
16184 # FIXME: insert proper C++ library support
16185 ld_shlibs_CXX=no
16186 ;;
16187
16188 *)
16189 # FIXME: insert proper C++ library support
16190 ld_shlibs_CXX=no
16191 ;;
16192 esac
16193
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16195 $as_echo "$ld_shlibs_CXX" >&6; }
16196 test "$ld_shlibs_CXX" = no && can_build_shared=no
16197
16198 GCC_CXX="$GXX"
16199 LD_CXX="$LD"
16200
16201 ## CAVEAT EMPTOR:
16202 ## There is no encapsulation within the following macros, do not change
16203 ## the running order or otherwise move them around unless you know exactly
16204 ## what you are doing...
16205 # Dependencies to place before and after the object being linked:
16206 predep_objects_CXX=
16207 postdep_objects_CXX=
16208 predeps_CXX=
16209 postdeps_CXX=
16210 compiler_lib_search_path_CXX=
16211
16212 cat > conftest.$ac_ext <<_LT_EOF
16213 class Foo
16214 {
16215 public:
16216 Foo (void) { a = 0; }
16217 private:
16218 int a;
16219 };
16220 _LT_EOF
16221
16222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16223 (eval $ac_compile) 2>&5
16224 ac_status=$?
16225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16226 test $ac_status = 0; }; then
16227 # Parse the compiler output and extract the necessary
16228 # objects, libraries and library flags.
16229
16230 # Sentinel used to keep track of whether or not we are before
16231 # the conftest object file.
16232 pre_test_object_deps_done=no
16233
16234 for p in `eval "$output_verbose_link_cmd"`; do
16235 case $p in
16236
16237 -L* | -R* | -l*)
16238 # Some compilers place space between "-{L,R}" and the path.
16239 # Remove the space.
16240 if test $p = "-L" ||
16241 test $p = "-R"; then
16242 prev=$p
16243 continue
16244 else
16245 prev=
16246 fi
16247
16248 if test "$pre_test_object_deps_done" = no; then
16249 case $p in
16250 -L* | -R*)
16251 # Internal compiler library paths should come after those
16252 # provided the user. The postdeps already come after the
16253 # user supplied libs so there is no need to process them.
16254 if test -z "$compiler_lib_search_path_CXX"; then
16255 compiler_lib_search_path_CXX="${prev}${p}"
16256 else
16257 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16258 fi
16259 ;;
16260 # The "-l" case would never come before the object being
16261 # linked, so don't bother handling this case.
16262 esac
16263 else
16264 if test -z "$postdeps_CXX"; then
16265 postdeps_CXX="${prev}${p}"
16266 else
16267 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16268 fi
16269 fi
16270 ;;
16271
16272 *.$objext)
16273 # This assumes that the test object file only shows up
16274 # once in the compiler output.
16275 if test "$p" = "conftest.$objext"; then
16276 pre_test_object_deps_done=yes
16277 continue
16278 fi
16279
16280 if test "$pre_test_object_deps_done" = no; then
16281 if test -z "$predep_objects_CXX"; then
16282 predep_objects_CXX="$p"
16283 else
16284 predep_objects_CXX="$predep_objects_CXX $p"
16285 fi
16286 else
16287 if test -z "$postdep_objects_CXX"; then
16288 postdep_objects_CXX="$p"
16289 else
16290 postdep_objects_CXX="$postdep_objects_CXX $p"
16291 fi
16292 fi
16293 ;;
16294
16295 *) ;; # Ignore the rest.
16296
16297 esac
16298 done
16299
16300 # Clean up.
16301 rm -f a.out a.exe
16302 else
16303 echo "libtool.m4: error: problem compiling CXX test program"
16304 fi
16305
16306 $RM -f confest.$objext
16307
16308 # PORTME: override above test on systems where it is broken
16309 case $host_os in
16310 interix[3-9]*)
16311 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16312 # hack all around it, let's just trust "g++" to DTRT.
16313 predep_objects_CXX=
16314 postdep_objects_CXX=
16315 postdeps_CXX=
16316 ;;
16317
16318 linux*)
16319 case `$CC -V 2>&1 | sed 5q` in
16320 *Sun\ C*)
16321 # Sun C++ 5.9
16322
16323 # The more standards-conforming stlport4 library is
16324 # incompatible with the Cstd library. Avoid specifying
16325 # it if it's in CXXFLAGS. Ignore libCrun as
16326 # -library=stlport4 depends on it.
16327 case " $CXX $CXXFLAGS " in
16328 *" -library=stlport4 "*)
16329 solaris_use_stlport4=yes
16330 ;;
16331 esac
16332
16333 if test "$solaris_use_stlport4" != yes; then
16334 postdeps_CXX='-library=Cstd -library=Crun'
16335 fi
16336 ;;
16337 esac
16338 ;;
16339
16340 solaris*)
16341 case $cc_basename in
16342 CC*)
16343 # The more standards-conforming stlport4 library is
16344 # incompatible with the Cstd library. Avoid specifying
16345 # it if it's in CXXFLAGS. Ignore libCrun as
16346 # -library=stlport4 depends on it.
16347 case " $CXX $CXXFLAGS " in
16348 *" -library=stlport4 "*)
16349 solaris_use_stlport4=yes
16350 ;;
16351 esac
16352
16353 # Adding this requires a known-good setup of shared libraries for
16354 # Sun compiler versions before 5.6, else PIC objects from an old
16355 # archive will be linked into the output, leading to subtle bugs.
16356 if test "$solaris_use_stlport4" != yes; then
16357 postdeps_CXX='-library=Cstd -library=Crun'
16358 fi
16359 ;;
16360 esac
16361 ;;
16362 esac
16363
16364
16365 case " $postdeps_CXX " in
16366 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16367 esac
16368 compiler_lib_search_dirs_CXX=
16369 if test -n "${compiler_lib_search_path_CXX}"; then
16370 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16371 fi
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403 lt_prog_compiler_wl_CXX=
16404 lt_prog_compiler_pic_CXX=
16405 lt_prog_compiler_static_CXX=
16406
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16408 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16409
16410 # C++ specific cases for pic, static, wl, etc.
16411 if test "$GXX" = yes; then
16412 lt_prog_compiler_wl_CXX='-Wl,'
16413 lt_prog_compiler_static_CXX='-static'
16414
16415 case $host_os in
16416 aix*)
16417 # All AIX code is PIC.
16418 if test "$host_cpu" = ia64; then
16419 # AIX 5 now supports IA64 processor
16420 lt_prog_compiler_static_CXX='-Bstatic'
16421 fi
16422 ;;
16423
16424 amigaos*)
16425 case $host_cpu in
16426 powerpc)
16427 # see comment about AmigaOS4 .so support
16428 lt_prog_compiler_pic_CXX='-fPIC'
16429 ;;
16430 m68k)
16431 # FIXME: we need at least 68020 code to build shared libraries, but
16432 # adding the `-m68020' flag to GCC prevents building anything better,
16433 # like `-m68040'.
16434 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16435 ;;
16436 esac
16437 ;;
16438
16439 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16440 # PIC is the default for these OSes.
16441 ;;
16442 mingw* | cygwin* | os2* | pw32* | cegcc*)
16443 # This hack is so that the source file can tell whether it is being
16444 # built for inclusion in a dll (and should export symbols for example).
16445 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16446 # (--disable-auto-import) libraries
16447 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16448 ;;
16449 darwin* | rhapsody*)
16450 # PIC is the default on this platform
16451 # Common symbols not allowed in MH_DYLIB files
16452 lt_prog_compiler_pic_CXX='-fno-common'
16453 ;;
16454 *djgpp*)
16455 # DJGPP does not support shared libraries at all
16456 lt_prog_compiler_pic_CXX=
16457 ;;
16458 interix[3-9]*)
16459 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16460 # Instead, we relocate shared libraries at runtime.
16461 ;;
16462 sysv4*MP*)
16463 if test -d /usr/nec; then
16464 lt_prog_compiler_pic_CXX=-Kconform_pic
16465 fi
16466 ;;
16467 hpux*)
16468 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16469 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16470 # sets the default TLS model and affects inlining.
16471 case $host_cpu in
16472 hppa*64*)
16473 ;;
16474 *)
16475 lt_prog_compiler_pic_CXX='-fPIC'
16476 ;;
16477 esac
16478 ;;
16479 *qnx* | *nto*)
16480 # QNX uses GNU C++, but need to define -shared option too, otherwise
16481 # it will coredump.
16482 lt_prog_compiler_pic_CXX='-fPIC -shared'
16483 ;;
16484 *)
16485 lt_prog_compiler_pic_CXX='-fPIC'
16486 ;;
16487 esac
16488 else
16489 case $host_os in
16490 aix[4-9]*)
16491 # All AIX code is PIC.
16492 if test "$host_cpu" = ia64; then
16493 # AIX 5 now supports IA64 processor
16494 lt_prog_compiler_static_CXX='-Bstatic'
16495 else
16496 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16497 fi
16498 ;;
16499 chorus*)
16500 case $cc_basename in
16501 cxch68*)
16502 # Green Hills C++ Compiler
16503 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16504 ;;
16505 esac
16506 ;;
16507 dgux*)
16508 case $cc_basename in
16509 ec++*)
16510 lt_prog_compiler_pic_CXX='-KPIC'
16511 ;;
16512 ghcx*)
16513 # Green Hills C++ Compiler
16514 lt_prog_compiler_pic_CXX='-pic'
16515 ;;
16516 *)
16517 ;;
16518 esac
16519 ;;
16520 freebsd* | dragonfly*)
16521 # FreeBSD uses GNU C++
16522 ;;
16523 hpux9* | hpux10* | hpux11*)
16524 case $cc_basename in
16525 CC*)
16526 lt_prog_compiler_wl_CXX='-Wl,'
16527 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16528 if test "$host_cpu" != ia64; then
16529 lt_prog_compiler_pic_CXX='+Z'
16530 fi
16531 ;;
16532 aCC*)
16533 lt_prog_compiler_wl_CXX='-Wl,'
16534 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16535 case $host_cpu in
16536 hppa*64*|ia64*)
16537 # +Z the default
16538 ;;
16539 *)
16540 lt_prog_compiler_pic_CXX='+Z'
16541 ;;
16542 esac
16543 ;;
16544 *)
16545 ;;
16546 esac
16547 ;;
16548 interix*)
16549 # This is c89, which is MS Visual C++ (no shared libs)
16550 # Anyone wants to do a port?
16551 ;;
16552 irix5* | irix6* | nonstopux*)
16553 case $cc_basename in
16554 CC*)
16555 lt_prog_compiler_wl_CXX='-Wl,'
16556 lt_prog_compiler_static_CXX='-non_shared'
16557 # CC pic flag -KPIC is the default.
16558 ;;
16559 *)
16560 ;;
16561 esac
16562 ;;
16563 linux* | k*bsd*-gnu)
16564 case $cc_basename in
16565 KCC*)
16566 # KAI C++ Compiler
16567 lt_prog_compiler_wl_CXX='--backend -Wl,'
16568 lt_prog_compiler_pic_CXX='-fPIC'
16569 ;;
16570 ecpc* )
16571 # old Intel C++ for x86_64 which still supported -KPIC.
16572 lt_prog_compiler_wl_CXX='-Wl,'
16573 lt_prog_compiler_pic_CXX='-KPIC'
16574 lt_prog_compiler_static_CXX='-static'
16575 ;;
16576 icpc* )
16577 # Intel C++, used to be incompatible with GCC.
16578 # ICC 10 doesn't accept -KPIC any more.
16579 lt_prog_compiler_wl_CXX='-Wl,'
16580 lt_prog_compiler_pic_CXX='-fPIC'
16581 lt_prog_compiler_static_CXX='-static'
16582 ;;
16583 pgCC* | pgcpp*)
16584 # Portland Group C++ compiler
16585 lt_prog_compiler_wl_CXX='-Wl,'
16586 lt_prog_compiler_pic_CXX='-fpic'
16587 lt_prog_compiler_static_CXX='-Bstatic'
16588 ;;
16589 cxx*)
16590 # Compaq C++
16591 # Make sure the PIC flag is empty. It appears that all Alpha
16592 # Linux and Compaq Tru64 Unix objects are PIC.
16593 lt_prog_compiler_pic_CXX=
16594 lt_prog_compiler_static_CXX='-non_shared'
16595 ;;
16596 xlc* | xlC*)
16597 # IBM XL 8.0 on PPC
16598 lt_prog_compiler_wl_CXX='-Wl,'
16599 lt_prog_compiler_pic_CXX='-qpic'
16600 lt_prog_compiler_static_CXX='-qstaticlink'
16601 ;;
16602 *)
16603 case `$CC -V 2>&1 | sed 5q` in
16604 *Sun\ C*)
16605 # Sun C++ 5.9
16606 lt_prog_compiler_pic_CXX='-KPIC'
16607 lt_prog_compiler_static_CXX='-Bstatic'
16608 lt_prog_compiler_wl_CXX='-Qoption ld '
16609 ;;
16610 esac
16611 ;;
16612 esac
16613 ;;
16614 lynxos*)
16615 ;;
16616 m88k*)
16617 ;;
16618 mvs*)
16619 case $cc_basename in
16620 cxx*)
16621 lt_prog_compiler_pic_CXX='-W c,exportall'
16622 ;;
16623 *)
16624 ;;
16625 esac
16626 ;;
16627 netbsd*)
16628 ;;
16629 *qnx* | *nto*)
16630 # QNX uses GNU C++, but need to define -shared option too, otherwise
16631 # it will coredump.
16632 lt_prog_compiler_pic_CXX='-fPIC -shared'
16633 ;;
16634 osf3* | osf4* | osf5*)
16635 case $cc_basename in
16636 KCC*)
16637 lt_prog_compiler_wl_CXX='--backend -Wl,'
16638 ;;
16639 RCC*)
16640 # Rational C++ 2.4.1
16641 lt_prog_compiler_pic_CXX='-pic'
16642 ;;
16643 cxx*)
16644 # Digital/Compaq C++
16645 lt_prog_compiler_wl_CXX='-Wl,'
16646 # Make sure the PIC flag is empty. It appears that all Alpha
16647 # Linux and Compaq Tru64 Unix objects are PIC.
16648 lt_prog_compiler_pic_CXX=
16649 lt_prog_compiler_static_CXX='-non_shared'
16650 ;;
16651 *)
16652 ;;
16653 esac
16654 ;;
16655 psos*)
16656 ;;
16657 solaris*)
16658 case $cc_basename in
16659 CC*)
16660 # Sun C++ 4.2, 5.x and Centerline C++
16661 lt_prog_compiler_pic_CXX='-KPIC'
16662 lt_prog_compiler_static_CXX='-Bstatic'
16663 lt_prog_compiler_wl_CXX='-Qoption ld '
16664 ;;
16665 gcx*)
16666 # Green Hills C++ Compiler
16667 lt_prog_compiler_pic_CXX='-PIC'
16668 ;;
16669 *)
16670 ;;
16671 esac
16672 ;;
16673 sunos4*)
16674 case $cc_basename in
16675 CC*)
16676 # Sun C++ 4.x
16677 lt_prog_compiler_pic_CXX='-pic'
16678 lt_prog_compiler_static_CXX='-Bstatic'
16679 ;;
16680 lcc*)
16681 # Lucid
16682 lt_prog_compiler_pic_CXX='-pic'
16683 ;;
16684 *)
16685 ;;
16686 esac
16687 ;;
16688 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16689 case $cc_basename in
16690 CC*)
16691 lt_prog_compiler_wl_CXX='-Wl,'
16692 lt_prog_compiler_pic_CXX='-KPIC'
16693 lt_prog_compiler_static_CXX='-Bstatic'
16694 ;;
16695 esac
16696 ;;
16697 tandem*)
16698 case $cc_basename in
16699 NCC*)
16700 # NonStop-UX NCC 3.20
16701 lt_prog_compiler_pic_CXX='-KPIC'
16702 ;;
16703 *)
16704 ;;
16705 esac
16706 ;;
16707 vxworks*)
16708 ;;
16709 *)
16710 lt_prog_compiler_can_build_shared_CXX=no
16711 ;;
16712 esac
16713 fi
16714
16715 case $host_os in
16716 # For platforms which do not support PIC, -DPIC is meaningless:
16717 *djgpp*)
16718 lt_prog_compiler_pic_CXX=
16719 ;;
16720 *)
16721 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16722 ;;
16723 esac
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16725 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16726
16727
16728
16729 #
16730 # Check to make sure the PIC flag actually works.
16731 #
16732 if test -n "$lt_prog_compiler_pic_CXX"; then
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16734 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16735 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16736 $as_echo_n "(cached) " >&6
16737 else
16738 lt_cv_prog_compiler_pic_works_CXX=no
16739 ac_outfile=conftest.$ac_objext
16740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16741 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16742 # Insert the option either (1) after the last *FLAGS variable, or
16743 # (2) before a word containing "conftest.", or (3) at the end.
16744 # Note that $ac_compile itself does not contain backslashes and begins
16745 # with a dollar sign (not a hyphen), so the echo should work correctly.
16746 # The option is referenced via a variable to avoid confusing sed.
16747 lt_compile=`echo "$ac_compile" | $SED \
16748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16750 -e 's:$: $lt_compiler_flag:'`
16751 (eval echo "\"\$as_me:16751: $lt_compile\"" >&5)
16752 (eval "$lt_compile" 2>conftest.err)
16753 ac_status=$?
16754 cat conftest.err >&5
16755 echo "$as_me:16755: \$? = $ac_status" >&5
16756 if (exit $ac_status) && test -s "$ac_outfile"; then
16757 # The compiler can only warn and ignore the option if not recognized
16758 # So say no if there are warnings other than the usual output.
16759 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16761 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16762 lt_cv_prog_compiler_pic_works_CXX=yes
16763 fi
16764 fi
16765 $RM conftest*
16766
16767 fi
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16769 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16770
16771 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16772 case $lt_prog_compiler_pic_CXX in
16773 "" | " "*) ;;
16774 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16775 esac
16776 else
16777 lt_prog_compiler_pic_CXX=
16778 lt_prog_compiler_can_build_shared_CXX=no
16779 fi
16780
16781 fi
16782
16783
16784
16785 #
16786 # Check to make sure the static flag actually works.
16787 #
16788 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16790 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16791 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
16792 $as_echo_n "(cached) " >&6
16793 else
16794 lt_cv_prog_compiler_static_works_CXX=no
16795 save_LDFLAGS="$LDFLAGS"
16796 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16797 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16798 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16799 # The linker can only warn and ignore the option if not recognized
16800 # So say no if there are warnings
16801 if test -s conftest.err; then
16802 # Append any errors to the config.log.
16803 cat conftest.err 1>&5
16804 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16806 if diff conftest.exp conftest.er2 >/dev/null; then
16807 lt_cv_prog_compiler_static_works_CXX=yes
16808 fi
16809 else
16810 lt_cv_prog_compiler_static_works_CXX=yes
16811 fi
16812 fi
16813 $RM -r conftest*
16814 LDFLAGS="$save_LDFLAGS"
16815
16816 fi
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16818 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16819
16820 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16821 :
16822 else
16823 lt_prog_compiler_static_CXX=
16824 fi
16825
16826
16827
16828
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16830 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16831 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16832 $as_echo_n "(cached) " >&6
16833 else
16834 lt_cv_prog_compiler_c_o_CXX=no
16835 $RM -r conftest 2>/dev/null
16836 mkdir conftest
16837 cd conftest
16838 mkdir out
16839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16840
16841 lt_compiler_flag="-o out/conftest2.$ac_objext"
16842 # Insert the option either (1) after the last *FLAGS variable, or
16843 # (2) before a word containing "conftest.", or (3) at the end.
16844 # Note that $ac_compile itself does not contain backslashes and begins
16845 # with a dollar sign (not a hyphen), so the echo should work correctly.
16846 lt_compile=`echo "$ac_compile" | $SED \
16847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16849 -e 's:$: $lt_compiler_flag:'`
16850 (eval echo "\"\$as_me:16850: $lt_compile\"" >&5)
16851 (eval "$lt_compile" 2>out/conftest.err)
16852 ac_status=$?
16853 cat out/conftest.err >&5
16854 echo "$as_me:16854: \$? = $ac_status" >&5
16855 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16856 then
16857 # The compiler can only warn and ignore the option if not recognized
16858 # So say no if there are warnings
16859 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16860 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16861 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16862 lt_cv_prog_compiler_c_o_CXX=yes
16863 fi
16864 fi
16865 chmod u+w . 2>&5
16866 $RM conftest*
16867 # SGI C++ compiler will create directory out/ii_files/ for
16868 # template instantiation
16869 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16870 $RM out/* && rmdir out
16871 cd ..
16872 $RM -r conftest
16873 $RM conftest*
16874
16875 fi
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16877 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16878
16879
16880
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16882 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16883 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16884 $as_echo_n "(cached) " >&6
16885 else
16886 lt_cv_prog_compiler_c_o_CXX=no
16887 $RM -r conftest 2>/dev/null
16888 mkdir conftest
16889 cd conftest
16890 mkdir out
16891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16892
16893 lt_compiler_flag="-o out/conftest2.$ac_objext"
16894 # Insert the option either (1) after the last *FLAGS variable, or
16895 # (2) before a word containing "conftest.", or (3) at the end.
16896 # Note that $ac_compile itself does not contain backslashes and begins
16897 # with a dollar sign (not a hyphen), so the echo should work correctly.
16898 lt_compile=`echo "$ac_compile" | $SED \
16899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16901 -e 's:$: $lt_compiler_flag:'`
16902 (eval echo "\"\$as_me:16902: $lt_compile\"" >&5)
16903 (eval "$lt_compile" 2>out/conftest.err)
16904 ac_status=$?
16905 cat out/conftest.err >&5
16906 echo "$as_me:16906: \$? = $ac_status" >&5
16907 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16908 then
16909 # The compiler can only warn and ignore the option if not recognized
16910 # So say no if there are warnings
16911 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16913 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16914 lt_cv_prog_compiler_c_o_CXX=yes
16915 fi
16916 fi
16917 chmod u+w . 2>&5
16918 $RM conftest*
16919 # SGI C++ compiler will create directory out/ii_files/ for
16920 # template instantiation
16921 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16922 $RM out/* && rmdir out
16923 cd ..
16924 $RM -r conftest
16925 $RM conftest*
16926
16927 fi
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16929 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16930
16931
16932
16933
16934 hard_links="nottested"
16935 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16936 # do not overwrite the value of need_locks provided by the user
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16938 $as_echo_n "checking if we can lock with hard links... " >&6; }
16939 hard_links=yes
16940 $RM conftest*
16941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16942 touch conftest.a
16943 ln conftest.a conftest.b 2>&5 || hard_links=no
16944 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16946 $as_echo "$hard_links" >&6; }
16947 if test "$hard_links" = no; then
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16949 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16950 need_locks=warn
16951 fi
16952 else
16953 need_locks=no
16954 fi
16955
16956
16957
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16959 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16960
16961 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16962 case $host_os in
16963 aix[4-9]*)
16964 # If we're using GNU nm, then we don't want the "-C" option.
16965 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16966 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16967 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16968 else
16969 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16970 fi
16971 ;;
16972 pw32*)
16973 export_symbols_cmds_CXX="$ltdll_cmds"
16974 ;;
16975 cygwin* | mingw* | cegcc*)
16976 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16977 ;;
16978 *)
16979 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16980 ;;
16981 esac
16982 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16983
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16985 $as_echo "$ld_shlibs_CXX" >&6; }
16986 test "$ld_shlibs_CXX" = no && can_build_shared=no
16987
16988 with_gnu_ld_CXX=$with_gnu_ld
16989
16990
16991
16992
16993
16994
16995 #
16996 # Do we need to explicitly link libc?
16997 #
16998 case "x$archive_cmds_need_lc_CXX" in
16999 x|xyes)
17000 # Assume -lc should be added
17001 archive_cmds_need_lc_CXX=yes
17002
17003 if test "$enable_shared" = yes && test "$GCC" = yes; then
17004 case $archive_cmds_CXX in
17005 *'~'*)
17006 # FIXME: we may have to deal with multi-command sequences.
17007 ;;
17008 '$CC '*)
17009 # Test whether the compiler implicitly links with -lc since on some
17010 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17011 # to ld, don't add -lc before -lgcc.
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17013 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17014 $RM conftest*
17015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17016
17017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17018 (eval $ac_compile) 2>&5
17019 ac_status=$?
17020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17021 test $ac_status = 0; } 2>conftest.err; then
17022 soname=conftest
17023 lib=conftest
17024 libobjs=conftest.$ac_objext
17025 deplibs=
17026 wl=$lt_prog_compiler_wl_CXX
17027 pic_flag=$lt_prog_compiler_pic_CXX
17028 compiler_flags=-v
17029 linker_flags=-v
17030 verstring=
17031 output_objdir=.
17032 libname=conftest
17033 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17034 allow_undefined_flag_CXX=
17035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17036 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17037 ac_status=$?
17038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17039 test $ac_status = 0; }
17040 then
17041 archive_cmds_need_lc_CXX=no
17042 else
17043 archive_cmds_need_lc_CXX=yes
17044 fi
17045 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17046 else
17047 cat conftest.err 1>&5
17048 fi
17049 $RM conftest*
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
17051 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
17052 ;;
17053 esac
17054 fi
17055 ;;
17056 esac
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17122 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17123
17124 library_names_spec=
17125 libname_spec='lib$name'
17126 soname_spec=
17127 shrext_cmds=".so"
17128 postinstall_cmds=
17129 postuninstall_cmds=
17130 finish_cmds=
17131 finish_eval=
17132 shlibpath_var=
17133 shlibpath_overrides_runpath=unknown
17134 version_type=none
17135 dynamic_linker="$host_os ld.so"
17136 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17137 need_lib_prefix=unknown
17138 hardcode_into_libs=no
17139
17140 # when you set need_version to no, make sure it does not cause -set_version
17141 # flags to be left without arguments
17142 need_version=unknown
17143
17144 case $host_os in
17145 aix3*)
17146 version_type=linux
17147 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17148 shlibpath_var=LIBPATH
17149
17150 # AIX 3 has no versioning support, so we append a major version to the name.
17151 soname_spec='${libname}${release}${shared_ext}$major'
17152 ;;
17153
17154 aix[4-9]*)
17155 version_type=linux
17156 need_lib_prefix=no
17157 need_version=no
17158 hardcode_into_libs=yes
17159 if test "$host_cpu" = ia64; then
17160 # AIX 5 supports IA64
17161 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17162 shlibpath_var=LD_LIBRARY_PATH
17163 else
17164 # With GCC up to 2.95.x, collect2 would create an import file
17165 # for dependence libraries. The import file would start with
17166 # the line `#! .'. This would cause the generated library to
17167 # depend on `.', always an invalid library. This was fixed in
17168 # development snapshots of GCC prior to 3.0.
17169 case $host_os in
17170 aix4 | aix4.[01] | aix4.[01].*)
17171 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17172 echo ' yes '
17173 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17174 :
17175 else
17176 can_build_shared=no
17177 fi
17178 ;;
17179 esac
17180 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17181 # soname into executable. Probably we can add versioning support to
17182 # collect2, so additional links can be useful in future.
17183 if test "$aix_use_runtimelinking" = yes; then
17184 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17185 # instead of lib<name>.a to let people know that these are not
17186 # typical AIX shared libraries.
17187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17188 else
17189 # We preserve .a as extension for shared libraries through AIX4.2
17190 # and later when we are not doing run time linking.
17191 library_names_spec='${libname}${release}.a $libname.a'
17192 soname_spec='${libname}${release}${shared_ext}$major'
17193 fi
17194 shlibpath_var=LIBPATH
17195 fi
17196 ;;
17197
17198 amigaos*)
17199 case $host_cpu in
17200 powerpc)
17201 # Since July 2007 AmigaOS4 officially supports .so libraries.
17202 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17204 ;;
17205 m68k)
17206 library_names_spec='$libname.ixlibrary $libname.a'
17207 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17208 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'
17209 ;;
17210 esac
17211 ;;
17212
17213 beos*)
17214 library_names_spec='${libname}${shared_ext}'
17215 dynamic_linker="$host_os ld.so"
17216 shlibpath_var=LIBRARY_PATH
17217 ;;
17218
17219 bsdi[45]*)
17220 version_type=linux
17221 need_version=no
17222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17223 soname_spec='${libname}${release}${shared_ext}$major'
17224 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17225 shlibpath_var=LD_LIBRARY_PATH
17226 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17227 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17228 # the default ld.so.conf also contains /usr/contrib/lib and
17229 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17230 # libtool to hard-code these into programs
17231 ;;
17232
17233 cygwin* | mingw* | pw32* | cegcc*)
17234 version_type=windows
17235 shrext_cmds=".dll"
17236 need_version=no
17237 need_lib_prefix=no
17238
17239 case $GCC,$host_os in
17240 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17241 library_names_spec='$libname.dll.a'
17242 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17243 postinstall_cmds='base_file=`basename \${file}`~
17244 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17245 dldir=$destdir/`dirname \$dlpath`~
17246 test -d \$dldir || mkdir -p \$dldir~
17247 $install_prog $dir/$dlname \$dldir/$dlname~
17248 chmod a+x \$dldir/$dlname~
17249 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17250 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17251 fi'
17252 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17253 dlpath=$dir/\$dldll~
17254 $RM \$dlpath'
17255 shlibpath_overrides_runpath=yes
17256
17257 case $host_os in
17258 cygwin*)
17259 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17260 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17261 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17262 ;;
17263 mingw* | cegcc*)
17264 # MinGW DLLs use traditional 'lib' prefix
17265 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17266 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17267 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17268 # It is most probably a Windows format PATH printed by
17269 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17270 # path with ; separators, and with drive letters. We can handle the
17271 # drive letters (cygwin fileutils understands them), so leave them,
17272 # especially as we might pass files found there to a mingw objdump,
17273 # which wouldn't understand a cygwinified path. Ahh.
17274 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17275 else
17276 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17277 fi
17278 ;;
17279 pw32*)
17280 # pw32 DLLs use 'pw' prefix rather than 'lib'
17281 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17282 ;;
17283 esac
17284 ;;
17285
17286 *)
17287 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17288 ;;
17289 esac
17290 dynamic_linker='Win32 ld.exe'
17291 # FIXME: first we should search . and the directory the executable is in
17292 shlibpath_var=PATH
17293 ;;
17294
17295 darwin* | rhapsody*)
17296 dynamic_linker="$host_os dyld"
17297 version_type=darwin
17298 need_lib_prefix=no
17299 need_version=no
17300 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17301 soname_spec='${libname}${release}${major}$shared_ext'
17302 shlibpath_overrides_runpath=yes
17303 shlibpath_var=DYLD_LIBRARY_PATH
17304 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17305
17306 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17307 ;;
17308
17309 dgux*)
17310 version_type=linux
17311 need_lib_prefix=no
17312 need_version=no
17313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17314 soname_spec='${libname}${release}${shared_ext}$major'
17315 shlibpath_var=LD_LIBRARY_PATH
17316 ;;
17317
17318 freebsd1*)
17319 dynamic_linker=no
17320 ;;
17321
17322 freebsd* | dragonfly*)
17323 # DragonFly does not have aout. When/if they implement a new
17324 # versioning mechanism, adjust this.
17325 if test -x /usr/bin/objformat; then
17326 objformat=`/usr/bin/objformat`
17327 else
17328 case $host_os in
17329 freebsd[123]*) objformat=aout ;;
17330 *) objformat=elf ;;
17331 esac
17332 fi
17333 version_type=freebsd-$objformat
17334 case $version_type in
17335 freebsd-elf*)
17336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17337 need_version=no
17338 need_lib_prefix=no
17339 ;;
17340 freebsd-*)
17341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17342 need_version=yes
17343 ;;
17344 esac
17345 shlibpath_var=LD_LIBRARY_PATH
17346 case $host_os in
17347 freebsd2*)
17348 shlibpath_overrides_runpath=yes
17349 ;;
17350 freebsd3.[01]* | freebsdelf3.[01]*)
17351 shlibpath_overrides_runpath=yes
17352 hardcode_into_libs=yes
17353 ;;
17354 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17355 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17356 shlibpath_overrides_runpath=no
17357 hardcode_into_libs=yes
17358 ;;
17359 *) # from 4.6 on, and DragonFly
17360 shlibpath_overrides_runpath=yes
17361 hardcode_into_libs=yes
17362 ;;
17363 esac
17364 ;;
17365
17366 gnu*)
17367 version_type=linux
17368 need_lib_prefix=no
17369 need_version=no
17370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17371 soname_spec='${libname}${release}${shared_ext}$major'
17372 shlibpath_var=LD_LIBRARY_PATH
17373 hardcode_into_libs=yes
17374 ;;
17375
17376 hpux9* | hpux10* | hpux11*)
17377 # Give a soname corresponding to the major version so that dld.sl refuses to
17378 # link against other versions.
17379 version_type=sunos
17380 need_lib_prefix=no
17381 need_version=no
17382 case $host_cpu in
17383 ia64*)
17384 shrext_cmds='.so'
17385 hardcode_into_libs=yes
17386 dynamic_linker="$host_os dld.so"
17387 shlibpath_var=LD_LIBRARY_PATH
17388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17390 soname_spec='${libname}${release}${shared_ext}$major'
17391 if test "X$HPUX_IA64_MODE" = X32; then
17392 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17393 else
17394 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17395 fi
17396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17397 ;;
17398 hppa*64*)
17399 shrext_cmds='.sl'
17400 hardcode_into_libs=yes
17401 dynamic_linker="$host_os dld.sl"
17402 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17403 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17405 soname_spec='${libname}${release}${shared_ext}$major'
17406 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17408 ;;
17409 *)
17410 shrext_cmds='.sl'
17411 dynamic_linker="$host_os dld.sl"
17412 shlibpath_var=SHLIB_PATH
17413 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17415 soname_spec='${libname}${release}${shared_ext}$major'
17416 ;;
17417 esac
17418 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17419 postinstall_cmds='chmod 555 $lib'
17420 ;;
17421
17422 interix[3-9]*)
17423 version_type=linux
17424 need_lib_prefix=no
17425 need_version=no
17426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17427 soname_spec='${libname}${release}${shared_ext}$major'
17428 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17429 shlibpath_var=LD_LIBRARY_PATH
17430 shlibpath_overrides_runpath=no
17431 hardcode_into_libs=yes
17432 ;;
17433
17434 irix5* | irix6* | nonstopux*)
17435 case $host_os in
17436 nonstopux*) version_type=nonstopux ;;
17437 *)
17438 if test "$lt_cv_prog_gnu_ld" = yes; then
17439 version_type=linux
17440 else
17441 version_type=irix
17442 fi ;;
17443 esac
17444 need_lib_prefix=no
17445 need_version=no
17446 soname_spec='${libname}${release}${shared_ext}$major'
17447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17448 case $host_os in
17449 irix5* | nonstopux*)
17450 libsuff= shlibsuff=
17451 ;;
17452 *)
17453 case $LD in # libtool.m4 will add one of these switches to LD
17454 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17455 libsuff= shlibsuff= libmagic=32-bit;;
17456 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17457 libsuff=32 shlibsuff=N32 libmagic=N32;;
17458 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17459 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17460 *) libsuff= shlibsuff= libmagic=never-match;;
17461 esac
17462 ;;
17463 esac
17464 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17465 shlibpath_overrides_runpath=no
17466 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17467 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17468 hardcode_into_libs=yes
17469 ;;
17470
17471 # No shared lib support for Linux oldld, aout, or coff.
17472 linux*oldld* | linux*aout* | linux*coff*)
17473 dynamic_linker=no
17474 ;;
17475
17476 # This must be Linux ELF.
17477 linux* | k*bsd*-gnu)
17478 version_type=linux
17479 need_lib_prefix=no
17480 need_version=no
17481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17482 soname_spec='${libname}${release}${shared_ext}$major'
17483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17484 shlibpath_var=LD_LIBRARY_PATH
17485 shlibpath_overrides_runpath=no
17486 # Some binutils ld are patched to set DT_RUNPATH
17487 save_LDFLAGS=$LDFLAGS
17488 save_libdir=$libdir
17489 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17490 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h. */
17493
17494 int
17495 main ()
17496 {
17497
17498 ;
17499 return 0;
17500 }
17501 _ACEOF
17502 if ac_fn_cxx_try_link "$LINENO"; then :
17503 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17504 shlibpath_overrides_runpath=yes
17505 fi
17506 fi
17507 rm -f core conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17509 LDFLAGS=$save_LDFLAGS
17510 libdir=$save_libdir
17511
17512 # This implies no fast_install, which is unacceptable.
17513 # Some rework will be needed to allow for fast_install
17514 # before this can be enabled.
17515 hardcode_into_libs=yes
17516
17517 # Add ABI-specific directories to the system library path.
17518 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17519
17520 # Append ld.so.conf contents to the search path
17521 if test -f /etc/ld.so.conf; then
17522 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' ' '`
17523 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17524 fi
17525
17526 # We used to test for /lib/ld.so.1 and disable shared libraries on
17527 # powerpc, because MkLinux only supported shared libraries with the
17528 # GNU dynamic linker. Since this was broken with cross compilers,
17529 # most powerpc-linux boxes support dynamic linking these days and
17530 # people can always --disable-shared, the test was removed, and we
17531 # assume the GNU/Linux dynamic linker is in use.
17532 dynamic_linker='GNU/Linux ld.so'
17533 ;;
17534
17535 netbsd*)
17536 version_type=sunos
17537 need_lib_prefix=no
17538 need_version=no
17539 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17542 dynamic_linker='NetBSD (a.out) ld.so'
17543 else
17544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17545 soname_spec='${libname}${release}${shared_ext}$major'
17546 dynamic_linker='NetBSD ld.elf_so'
17547 fi
17548 shlibpath_var=LD_LIBRARY_PATH
17549 shlibpath_overrides_runpath=yes
17550 hardcode_into_libs=yes
17551 ;;
17552
17553 newsos6)
17554 version_type=linux
17555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17556 shlibpath_var=LD_LIBRARY_PATH
17557 shlibpath_overrides_runpath=yes
17558 ;;
17559
17560 *nto* | *qnx*)
17561 version_type=qnx
17562 need_lib_prefix=no
17563 need_version=no
17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17565 soname_spec='${libname}${release}${shared_ext}$major'
17566 shlibpath_var=LD_LIBRARY_PATH
17567 shlibpath_overrides_runpath=no
17568 hardcode_into_libs=yes
17569 dynamic_linker='ldqnx.so'
17570 ;;
17571
17572 openbsd*)
17573 version_type=sunos
17574 sys_lib_dlsearch_path_spec="/usr/lib"
17575 need_lib_prefix=no
17576 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17577 case $host_os in
17578 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17579 *) need_version=no ;;
17580 esac
17581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17583 shlibpath_var=LD_LIBRARY_PATH
17584 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17585 case $host_os in
17586 openbsd2.[89] | openbsd2.[89].*)
17587 shlibpath_overrides_runpath=no
17588 ;;
17589 *)
17590 shlibpath_overrides_runpath=yes
17591 ;;
17592 esac
17593 else
17594 shlibpath_overrides_runpath=yes
17595 fi
17596 ;;
17597
17598 os2*)
17599 libname_spec='$name'
17600 shrext_cmds=".dll"
17601 need_lib_prefix=no
17602 library_names_spec='$libname${shared_ext} $libname.a'
17603 dynamic_linker='OS/2 ld.exe'
17604 shlibpath_var=LIBPATH
17605 ;;
17606
17607 osf3* | osf4* | osf5*)
17608 version_type=osf
17609 need_lib_prefix=no
17610 need_version=no
17611 soname_spec='${libname}${release}${shared_ext}$major'
17612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17613 shlibpath_var=LD_LIBRARY_PATH
17614 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17615 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17616 ;;
17617
17618 rdos*)
17619 dynamic_linker=no
17620 ;;
17621
17622 solaris*)
17623 version_type=linux
17624 need_lib_prefix=no
17625 need_version=no
17626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17627 soname_spec='${libname}${release}${shared_ext}$major'
17628 shlibpath_var=LD_LIBRARY_PATH
17629 shlibpath_overrides_runpath=yes
17630 hardcode_into_libs=yes
17631 # ldd complains unless libraries are executable
17632 postinstall_cmds='chmod +x $lib'
17633 ;;
17634
17635 sunos4*)
17636 version_type=sunos
17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17638 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17639 shlibpath_var=LD_LIBRARY_PATH
17640 shlibpath_overrides_runpath=yes
17641 if test "$with_gnu_ld" = yes; then
17642 need_lib_prefix=no
17643 fi
17644 need_version=yes
17645 ;;
17646
17647 sysv4 | sysv4.3*)
17648 version_type=linux
17649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17650 soname_spec='${libname}${release}${shared_ext}$major'
17651 shlibpath_var=LD_LIBRARY_PATH
17652 case $host_vendor in
17653 sni)
17654 shlibpath_overrides_runpath=no
17655 need_lib_prefix=no
17656 runpath_var=LD_RUN_PATH
17657 ;;
17658 siemens)
17659 need_lib_prefix=no
17660 ;;
17661 motorola)
17662 need_lib_prefix=no
17663 need_version=no
17664 shlibpath_overrides_runpath=no
17665 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17666 ;;
17667 esac
17668 ;;
17669
17670 sysv4*MP*)
17671 if test -d /usr/nec ;then
17672 version_type=linux
17673 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17674 soname_spec='$libname${shared_ext}.$major'
17675 shlibpath_var=LD_LIBRARY_PATH
17676 fi
17677 ;;
17678
17679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17680 version_type=freebsd-elf
17681 need_lib_prefix=no
17682 need_version=no
17683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17684 soname_spec='${libname}${release}${shared_ext}$major'
17685 shlibpath_var=LD_LIBRARY_PATH
17686 shlibpath_overrides_runpath=yes
17687 hardcode_into_libs=yes
17688 if test "$with_gnu_ld" = yes; then
17689 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17690 else
17691 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17692 case $host_os in
17693 sco3.2v5*)
17694 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17695 ;;
17696 esac
17697 fi
17698 sys_lib_dlsearch_path_spec='/usr/lib'
17699 ;;
17700
17701 tpf*)
17702 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17703 version_type=linux
17704 need_lib_prefix=no
17705 need_version=no
17706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17707 shlibpath_var=LD_LIBRARY_PATH
17708 shlibpath_overrides_runpath=no
17709 hardcode_into_libs=yes
17710 ;;
17711
17712 uts4*)
17713 version_type=linux
17714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17715 soname_spec='${libname}${release}${shared_ext}$major'
17716 shlibpath_var=LD_LIBRARY_PATH
17717 ;;
17718
17719 *)
17720 dynamic_linker=no
17721 ;;
17722 esac
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17724 $as_echo "$dynamic_linker" >&6; }
17725 test "$dynamic_linker" = no && can_build_shared=no
17726
17727 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17728 if test "$GCC" = yes; then
17729 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17730 fi
17731
17732 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17733 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17734 fi
17735 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17736 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17737 fi
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17775 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17776 hardcode_action_CXX=
17777 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17778 test -n "$runpath_var_CXX" ||
17779 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17780
17781 # We can hardcode non-existent directories.
17782 if test "$hardcode_direct_CXX" != no &&
17783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17784 # have to relink, otherwise we might link with an installed library
17785 # when we should be linking with a yet-to-be-installed one
17786 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17787 test "$hardcode_minus_L_CXX" != no; then
17788 # Linking always hardcodes the temporary library directory.
17789 hardcode_action_CXX=relink
17790 else
17791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17792 hardcode_action_CXX=immediate
17793 fi
17794 else
17795 # We cannot hardcode anything, or else we can only hardcode existing
17796 # directories.
17797 hardcode_action_CXX=unsupported
17798 fi
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17800 $as_echo "$hardcode_action_CXX" >&6; }
17801
17802 if test "$hardcode_action_CXX" = relink ||
17803 test "$inherit_rpath_CXX" = yes; then
17804 # Fast installation is not supported
17805 enable_fast_install=no
17806 elif test "$shlibpath_overrides_runpath" = yes ||
17807 test "$enable_shared" = no; then
17808 # Fast installation is not necessary
17809 enable_fast_install=needless
17810 fi
17811
17812
17813
17814
17815
17816
17817
17818 fi # test -n "$compiler"
17819
17820 CC=$lt_save_CC
17821 LDCXX=$LD
17822 LD=$lt_save_LD
17823 GCC=$lt_save_GCC
17824 with_gnu_ld=$lt_save_with_gnu_ld
17825 lt_cv_path_LDCXX=$lt_cv_path_LD
17826 lt_cv_path_LD=$lt_save_path_LD
17827 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17828 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17829 fi # test "$_lt_caught_CXX_error" != yes
17830
17831 ac_ext=c
17832 ac_cpp='$CPP $CPPFLAGS'
17833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17836
17837
17838 ac_ext=c
17839 ac_cpp='$CPP $CPPFLAGS'
17840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
17844 $as_echo_n "checking how to run the C preprocessor... " >&6; }
17845 # On Suns, sometimes $CPP names a directory.
17846 if test -n "$CPP" && test -d "$CPP"; then
17847 CPP=
17848 fi
17849 if test -z "$CPP"; then
17850 if test "${ac_cv_prog_CPP+set}" = set; then :
17851 $as_echo_n "(cached) " >&6
17852 else
17853 # Double quotes because CPP needs to be expanded
17854 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17855 do
17856 ac_preproc_ok=false
17857 for ac_c_preproc_warn_flag in '' yes
17858 do
17859 # Use a header file that comes with gcc, so configuring glibc
17860 # with a fresh cross-compiler works.
17861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17862 # <limits.h> exists even on freestanding compilers.
17863 # On the NeXT, cc -E runs the code through the compiler's parser,
17864 # not just through cpp. "Syntax error" is here to catch this case.
17865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866 /* end confdefs.h. */
17867 #ifdef __STDC__
17868 # include <limits.h>
17869 #else
17870 # include <assert.h>
17871 #endif
17872 Syntax error
17873 _ACEOF
17874 if ac_fn_c_try_cpp "$LINENO"; then :
17875
17876 else
17877 # Broken: fails on valid input.
17878 continue
17879 fi
17880 rm -f conftest.err conftest.$ac_ext
17881
17882 # OK, works on sane cases. Now check whether nonexistent headers
17883 # can be detected and how.
17884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885 /* end confdefs.h. */
17886 #include <ac_nonexistent.h>
17887 _ACEOF
17888 if ac_fn_c_try_cpp "$LINENO"; then :
17889 # Broken: success on invalid input.
17890 continue
17891 else
17892 # Passes both tests.
17893 ac_preproc_ok=:
17894 break
17895 fi
17896 rm -f conftest.err conftest.$ac_ext
17897
17898 done
17899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17900 rm -f conftest.err conftest.$ac_ext
17901 if $ac_preproc_ok; then :
17902 break
17903 fi
17904
17905 done
17906 ac_cv_prog_CPP=$CPP
17907
17908 fi
17909 CPP=$ac_cv_prog_CPP
17910 else
17911 ac_cv_prog_CPP=$CPP
17912 fi
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
17914 $as_echo "$CPP" >&6; }
17915 ac_preproc_ok=false
17916 for ac_c_preproc_warn_flag in '' yes
17917 do
17918 # Use a header file that comes with gcc, so configuring glibc
17919 # with a fresh cross-compiler works.
17920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17921 # <limits.h> exists even on freestanding compilers.
17922 # On the NeXT, cc -E runs the code through the compiler's parser,
17923 # not just through cpp. "Syntax error" is here to catch this case.
17924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17925 /* end confdefs.h. */
17926 #ifdef __STDC__
17927 # include <limits.h>
17928 #else
17929 # include <assert.h>
17930 #endif
17931 Syntax error
17932 _ACEOF
17933 if ac_fn_c_try_cpp "$LINENO"; then :
17934
17935 else
17936 # Broken: fails on valid input.
17937 continue
17938 fi
17939 rm -f conftest.err conftest.$ac_ext
17940
17941 # OK, works on sane cases. Now check whether nonexistent headers
17942 # can be detected and how.
17943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17944 /* end confdefs.h. */
17945 #include <ac_nonexistent.h>
17946 _ACEOF
17947 if ac_fn_c_try_cpp "$LINENO"; then :
17948 # Broken: success on invalid input.
17949 continue
17950 else
17951 # Passes both tests.
17952 ac_preproc_ok=:
17953 break
17954 fi
17955 rm -f conftest.err conftest.$ac_ext
17956
17957 done
17958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17959 rm -f conftest.err conftest.$ac_ext
17960 if $ac_preproc_ok; then :
17961
17962 else
17963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17965 as_fn_error "C preprocessor \"$CPP\" fails sanity check
17966 See \`config.log' for more details." "$LINENO" 5; }
17967 fi
17968
17969 ac_ext=c
17970 ac_cpp='$CPP $CPPFLAGS'
17971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17974
17975
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
17977 $as_echo_n "checking whether ln -s works... " >&6; }
17978 LN_S=$as_ln_s
17979 if test "$LN_S" = "ln -s"; then
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17981 $as_echo "yes" >&6; }
17982 else
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
17984 $as_echo "no, using $LN_S" >&6; }
17985 fi
17986
17987
17988
17989 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
17990
17991 # Check whether --enable-largefile was given.
17992 if test "${enable_largefile+set}" = set; then :
17993 enableval=$enable_largefile;
17994 fi
17995
17996 if test "$enable_largefile" != no; then
17997
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17999 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18000 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
18001 $as_echo_n "(cached) " >&6
18002 else
18003 ac_cv_sys_largefile_CC=no
18004 if test "$GCC" != yes; then
18005 ac_save_CC=$CC
18006 while :; do
18007 # IRIX 6.2 and later do not support large files by default,
18008 # so use the C compiler's -n32 option if that helps.
18009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18010 /* end confdefs.h. */
18011 #include <sys/types.h>
18012 /* Check that off_t can represent 2**63 - 1 correctly.
18013 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18014 since some C++ compilers masquerading as C compilers
18015 incorrectly reject 9223372036854775807. */
18016 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18017 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18018 && LARGE_OFF_T % 2147483647 == 1)
18019 ? 1 : -1];
18020 int
18021 main ()
18022 {
18023
18024 ;
18025 return 0;
18026 }
18027 _ACEOF
18028 if ac_fn_c_try_compile "$LINENO"; then :
18029 break
18030 fi
18031 rm -f core conftest.err conftest.$ac_objext
18032 CC="$CC -n32"
18033 if ac_fn_c_try_compile "$LINENO"; then :
18034 ac_cv_sys_largefile_CC=' -n32'; break
18035 fi
18036 rm -f core conftest.err conftest.$ac_objext
18037 break
18038 done
18039 CC=$ac_save_CC
18040 rm -f conftest.$ac_ext
18041 fi
18042 fi
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18044 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18045 if test "$ac_cv_sys_largefile_CC" != no; then
18046 CC=$CC$ac_cv_sys_largefile_CC
18047 fi
18048
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18050 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18051 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
18052 $as_echo_n "(cached) " >&6
18053 else
18054 while :; do
18055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18056 /* end confdefs.h. */
18057 #include <sys/types.h>
18058 /* Check that off_t can represent 2**63 - 1 correctly.
18059 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18060 since some C++ compilers masquerading as C compilers
18061 incorrectly reject 9223372036854775807. */
18062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18063 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18064 && LARGE_OFF_T % 2147483647 == 1)
18065 ? 1 : -1];
18066 int
18067 main ()
18068 {
18069
18070 ;
18071 return 0;
18072 }
18073 _ACEOF
18074 if ac_fn_c_try_compile "$LINENO"; then :
18075 ac_cv_sys_file_offset_bits=no; break
18076 fi
18077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h. */
18080 #define _FILE_OFFSET_BITS 64
18081 #include <sys/types.h>
18082 /* Check that off_t can represent 2**63 - 1 correctly.
18083 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18084 since some C++ compilers masquerading as C compilers
18085 incorrectly reject 9223372036854775807. */
18086 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18087 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18088 && LARGE_OFF_T % 2147483647 == 1)
18089 ? 1 : -1];
18090 int
18091 main ()
18092 {
18093
18094 ;
18095 return 0;
18096 }
18097 _ACEOF
18098 if ac_fn_c_try_compile "$LINENO"; then :
18099 ac_cv_sys_file_offset_bits=64; break
18100 fi
18101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18102 ac_cv_sys_file_offset_bits=unknown
18103 break
18104 done
18105 fi
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18107 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18108 case $ac_cv_sys_file_offset_bits in #(
18109 no | unknown) ;;
18110 *)
18111 cat >>confdefs.h <<_ACEOF
18112 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18113 _ACEOF
18114 ;;
18115 esac
18116 rm -rf conftest*
18117 if test $ac_cv_sys_file_offset_bits = unknown; then
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18119 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18120 if test "${ac_cv_sys_large_files+set}" = set; then :
18121 $as_echo_n "(cached) " >&6
18122 else
18123 while :; do
18124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18125 /* end confdefs.h. */
18126 #include <sys/types.h>
18127 /* Check that off_t can represent 2**63 - 1 correctly.
18128 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18129 since some C++ compilers masquerading as C compilers
18130 incorrectly reject 9223372036854775807. */
18131 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18132 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18133 && LARGE_OFF_T % 2147483647 == 1)
18134 ? 1 : -1];
18135 int
18136 main ()
18137 {
18138
18139 ;
18140 return 0;
18141 }
18142 _ACEOF
18143 if ac_fn_c_try_compile "$LINENO"; then :
18144 ac_cv_sys_large_files=no; break
18145 fi
18146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18149 #define _LARGE_FILES 1
18150 #include <sys/types.h>
18151 /* Check that off_t can represent 2**63 - 1 correctly.
18152 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18153 since some C++ compilers masquerading as C compilers
18154 incorrectly reject 9223372036854775807. */
18155 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18157 && LARGE_OFF_T % 2147483647 == 1)
18158 ? 1 : -1];
18159 int
18160 main ()
18161 {
18162
18163 ;
18164 return 0;
18165 }
18166 _ACEOF
18167 if ac_fn_c_try_compile "$LINENO"; then :
18168 ac_cv_sys_large_files=1; break
18169 fi
18170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18171 ac_cv_sys_large_files=unknown
18172 break
18173 done
18174 fi
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18176 $as_echo "$ac_cv_sys_large_files" >&6; }
18177 case $ac_cv_sys_large_files in #(
18178 no | unknown) ;;
18179 *)
18180 cat >>confdefs.h <<_ACEOF
18181 #define _LARGE_FILES $ac_cv_sys_large_files
18182 _ACEOF
18183 ;;
18184 esac
18185 rm -rf conftest*
18186 fi
18187 fi
18188
18189
18190
18191
18192 case "$target_os" in
18193
18194 linux*)
18195
18196 $as_echo "#define OS_LINUX 1" >>confdefs.h
18197
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
18199 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
18200 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
18201 $as_echo_n "(cached) " >&6
18202 else
18203 ac_check_lib_save_LIBS=$LIBS
18204 LIBS="-lpthread $LIBS"
18205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18206 /* end confdefs.h. */
18207
18208 /* Override any GCC internal prototype to avoid an error.
18209 Use char because int might match the return type of a GCC
18210 builtin and then its argument prototype would still apply. */
18211 #ifdef __cplusplus
18212 extern "C"
18213 #endif
18214 char pthread_create ();
18215 int
18216 main ()
18217 {
18218 return pthread_create ();
18219 ;
18220 return 0;
18221 }
18222 _ACEOF
18223 if ac_fn_c_try_link "$LINENO"; then :
18224 ac_cv_lib_pthread_pthread_create=yes
18225 else
18226 ac_cv_lib_pthread_pthread_create=no
18227 fi
18228 rm -f core conftest.err conftest.$ac_objext \
18229 conftest$ac_exeext conftest.$ac_ext
18230 LIBS=$ac_check_lib_save_LIBS
18231 fi
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
18233 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
18234 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
18235 cat >>confdefs.h <<_ACEOF
18236 #define HAVE_LIBPTHREAD 1
18237 _ACEOF
18238
18239 LIBS="-lpthread $LIBS"
18240
18241 else
18242 as_fn_error "*** pthread library (libpthread) not found" "$LINENO" 5
18243 fi
18244
18245 ;;
18246 freebsd*)
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Partimage not yet fully ported to BSDish" >&5
18248 $as_echo "$as_me: WARNING: Partimage not yet fully ported to BSDish" >&2;}
18249
18250 $as_echo "#define OS_FBSD 1" >>confdefs.h
18251
18252 CPPFLAGS="$CPPFLAGS -I../../intl -I/usr/local/include"
18253 CPPFLAGS="$CPPFLAGS -I../../src/client/fs"
18254 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
18255 PARTIMAGE_LDFLAGS="$PARTIMAGE_LDFLAGS -pthread"
18256 LIBS="$LIBS -L/usr/local/lib"
18257 ;;
18258 *)
18259 as_fn_error "Unsupported system type $target_os" "$LINENO" 5
18260 ;;
18261 esac
18262
18263 # Check whether --enable-efence was given.
18264 if test "${enable_efence+set}" = set; then :
18265 enableval=$enable_efence; efence_support=$enableval
18266 else
18267 efence_support=no
18268
18269 fi
18270
18271 if test "$efence_support" = "yes" ; then
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EF_Print in -lefence" >&5
18273 $as_echo_n "checking for EF_Print in -lefence... " >&6; }
18274 if test "${ac_cv_lib_efence_EF_Print+set}" = set; then :
18275 $as_echo_n "(cached) " >&6
18276 else
18277 ac_check_lib_save_LIBS=$LIBS
18278 LIBS="-lefence $LIBS"
18279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18280 /* end confdefs.h. */
18281
18282 /* Override any GCC internal prototype to avoid an error.
18283 Use char because int might match the return type of a GCC
18284 builtin and then its argument prototype would still apply. */
18285 #ifdef __cplusplus
18286 extern "C"
18287 #endif
18288 char EF_Print ();
18289 int
18290 main ()
18291 {
18292 return EF_Print ();
18293 ;
18294 return 0;
18295 }
18296 _ACEOF
18297 if ac_fn_c_try_link "$LINENO"; then :
18298 ac_cv_lib_efence_EF_Print=yes
18299 else
18300 ac_cv_lib_efence_EF_Print=no
18301 fi
18302 rm -f core conftest.err conftest.$ac_objext \
18303 conftest$ac_exeext conftest.$ac_ext
18304 LIBS=$ac_check_lib_save_LIBS
18305 fi
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_EF_Print" >&5
18307 $as_echo "$ac_cv_lib_efence_EF_Print" >&6; }
18308 if test "x$ac_cv_lib_efence_EF_Print" = x""yes; then :
18309 cat >>confdefs.h <<_ACEOF
18310 #define HAVE_LIBEFENCE 1
18311 _ACEOF
18312
18313 LIBS="-lefence $LIBS"
18314
18315 else
18316 as_fn_error "*** efence library \
18317 (libefence) not found" "$LINENO" 5
18318 fi
18319
18320 fi
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
18322 $as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
18323 if test "${ac_cv_lib_bz2_BZ2_bzopen+set}" = set; then :
18324 $as_echo_n "(cached) " >&6
18325 else
18326 ac_check_lib_save_LIBS=$LIBS
18327 LIBS="-lbz2 $LIBS"
18328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18329 /* end confdefs.h. */
18330
18331 /* Override any GCC internal prototype to avoid an error.
18332 Use char because int might match the return type of a GCC
18333 builtin and then its argument prototype would still apply. */
18334 #ifdef __cplusplus
18335 extern "C"
18336 #endif
18337 char BZ2_bzopen ();
18338 int
18339 main ()
18340 {
18341 return BZ2_bzopen ();
18342 ;
18343 return 0;
18344 }
18345 _ACEOF
18346 if ac_fn_c_try_link "$LINENO"; then :
18347 ac_cv_lib_bz2_BZ2_bzopen=yes
18348 else
18349 ac_cv_lib_bz2_BZ2_bzopen=no
18350 fi
18351 rm -f core conftest.err conftest.$ac_objext \
18352 conftest$ac_exeext conftest.$ac_ext
18353 LIBS=$ac_check_lib_save_LIBS
18354 fi
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
18356 $as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
18357 if test "x$ac_cv_lib_bz2_BZ2_bzopen" = x""yes; then :
18358 cat >>confdefs.h <<_ACEOF
18359 #define HAVE_LIBBZ2 1
18360 _ACEOF
18361
18362 LIBS="-lbz2 $LIBS"
18363
18364 else
18365 as_fn_error "*** bzip2 library (libbz2) not found or too old: version 1.0.0 or more recent is need" "$LINENO" 5
18366 fi
18367
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for newtCenteredWindow in -lnewt" >&5
18369 $as_echo_n "checking for newtCenteredWindow in -lnewt... " >&6; }
18370 if test "${ac_cv_lib_newt_newtCenteredWindow+set}" = set; then :
18371 $as_echo_n "(cached) " >&6
18372 else
18373 ac_check_lib_save_LIBS=$LIBS
18374 LIBS="-lnewt $LIBS"
18375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376 /* end confdefs.h. */
18377
18378 /* Override any GCC internal prototype to avoid an error.
18379 Use char because int might match the return type of a GCC
18380 builtin and then its argument prototype would still apply. */
18381 #ifdef __cplusplus
18382 extern "C"
18383 #endif
18384 char newtCenteredWindow ();
18385 int
18386 main ()
18387 {
18388 return newtCenteredWindow ();
18389 ;
18390 return 0;
18391 }
18392 _ACEOF
18393 if ac_fn_c_try_link "$LINENO"; then :
18394 ac_cv_lib_newt_newtCenteredWindow=yes
18395 else
18396 ac_cv_lib_newt_newtCenteredWindow=no
18397 fi
18398 rm -f core conftest.err conftest.$ac_objext \
18399 conftest$ac_exeext conftest.$ac_ext
18400 LIBS=$ac_check_lib_save_LIBS
18401 fi
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_newt_newtCenteredWindow" >&5
18403 $as_echo "$ac_cv_lib_newt_newtCenteredWindow" >&6; }
18404 if test "x$ac_cv_lib_newt_newtCenteredWindow" = x""yes; then :
18405 cat >>confdefs.h <<_ACEOF
18406 #define HAVE_LIBNEWT 1
18407 _ACEOF
18408
18409 LIBS="-lnewt $LIBS"
18410
18411 else
18412 as_fn_error "*** newt library (libnewt) not found" "$LINENO" 5
18413 fi
18414
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzwrite in -lz" >&5
18416 $as_echo_n "checking for gzwrite in -lz... " >&6; }
18417 if test "${ac_cv_lib_z_gzwrite+set}" = set; then :
18418 $as_echo_n "(cached) " >&6
18419 else
18420 ac_check_lib_save_LIBS=$LIBS
18421 LIBS="-lz $LIBS"
18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18424
18425 /* Override any GCC internal prototype to avoid an error.
18426 Use char because int might match the return type of a GCC
18427 builtin and then its argument prototype would still apply. */
18428 #ifdef __cplusplus
18429 extern "C"
18430 #endif
18431 char gzwrite ();
18432 int
18433 main ()
18434 {
18435 return gzwrite ();
18436 ;
18437 return 0;
18438 }
18439 _ACEOF
18440 if ac_fn_c_try_link "$LINENO"; then :
18441 ac_cv_lib_z_gzwrite=yes
18442 else
18443 ac_cv_lib_z_gzwrite=no
18444 fi
18445 rm -f core conftest.err conftest.$ac_objext \
18446 conftest$ac_exeext conftest.$ac_ext
18447 LIBS=$ac_check_lib_save_LIBS
18448 fi
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzwrite" >&5
18450 $as_echo "$ac_cv_lib_z_gzwrite" >&6; }
18451 if test "x$ac_cv_lib_z_gzwrite" = x""yes; then :
18452 cat >>confdefs.h <<_ACEOF
18453 #define HAVE_LIBZ 1
18454 _ACEOF
18455
18456 LIBS="-lz $LIBS"
18457
18458 else
18459 as_fn_error "*** gzip library (libz) not found" "$LINENO" 5
18460 fi
18461
18462
18463
18464
18465 CPPFLAGS="$CPPFLAGS -Wno-deprecated"
18466
18467 # Check whether --enable-ssl was given.
18468 if test "${enable_ssl+set}" = set; then :
18469 enableval=$enable_ssl; SSL=$enableval
18470 else
18471 SSL=yes
18472
18473 fi
18474
18475
18476 # Check whether --with-ssl-headers was given.
18477 if test "${with_ssl_headers+set}" = set; then :
18478 withval=$with_ssl_headers; SSL_HDR_DIR="$withval"
18479 CPPFLAGS="$CPPFLAGS -I$withval"
18480
18481 fi
18482
18483
18484 # Check whether --with-ssl-lib was given.
18485 if test "${with_ssl_lib+set}" = set; then :
18486 withval=$with_ssl_lib; LIBS="$LIBS -L$withval"
18487
18488 fi
18489
18490
18491
18492 # Check whether --with-slang-headers was given.
18493 if test "${with_slang_headers+set}" = set; then :
18494 withval=$with_slang_headers; CPPFLAGS="$CPPFLAGS -I$withval"
18495
18496 fi
18497
18498
18499 # Check whether --enable-devel was given.
18500 if test "${enable_devel+set}" = set; then :
18501 enableval=$enable_devel;
18502 $as_echo "#define DEVEL_SUPPORT 1" >>confdefs.h
18503
18504
18505 fi
18506
18507
18508 # Check whether --enable-pam was given.
18509 if test "${enable_pam+set}" = set; then :
18510 enableval=$enable_pam; pamsupport=$enableval
18511 else
18512 pamsupport=no
18513
18514 fi
18515
18516
18517 # Check whether --enable-all-static was given.
18518 if test "${enable_all_static+set}" = set; then :
18519 enableval=$enable_all_static; allstatic=$enableval
18520 else
18521 allstatic=no
18522
18523 fi
18524
18525
18526 if test "$allstatic" = "yes"; then
18527 PARTIMAGE_LDFLAGS="$PARTIMAGE_LDFLAGS -all-static"
18528 PARTIMAGED_LDFLAGS="$PARTIMAGED_LDFLAGS -all-static"
18529
18530
18531 LIBS="$LIBS /usr/lib/libslang.a /usr/lib/libnewt.a /usr/lib/libdl.a"
18532
18533 if test "$SSL" = "yes"; then
18534 LIBS="$LIBS /usr/lib/libssl.a /usr/lib/libcrypto.a"
18535 fi
18536 fi
18537
18538
18539 for ac_header in fcntl.h strings.h limit.h malloc.h strings.h unistd.h
18540 do :
18541 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18542 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18543 eval as_val=\$$as_ac_Header
18544 if test "x$as_val" = x""yes; then :
18545 cat >>confdefs.h <<_ACEOF
18546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18547 _ACEOF
18548
18549 fi
18550
18551 done
18552
18553 for ac_header in pthread.h crypt.h shadow.h mntent.h
18554 do :
18555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18556 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18557 eval as_val=\$$as_ac_Header
18558 if test "x$as_val" = x""yes; then :
18559 cat >>confdefs.h <<_ACEOF
18560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18561 _ACEOF
18562
18563 fi
18564
18565 done
18566
18567 for ac_header in sys/param.h sys/statfs.h sys/mount.h
18568 do :
18569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18570 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18571 eval as_val=\$$as_ac_Header
18572 if test "x$as_val" = x""yes; then :
18573 cat >>confdefs.h <<_ACEOF
18574 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18575 _ACEOF
18576
18577 fi
18578
18579 done
18580
18581 for ac_header in getopt.h
18582 do :
18583 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18584 if test "x$ac_cv_header_getopt_h" = x""yes; then :
18585 cat >>confdefs.h <<_ACEOF
18586 #define HAVE_GETOPT_H 1
18587 _ACEOF
18588
18589 else
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameter can be used on cmdline" >&5
18591 $as_echo "$as_me: WARNING: getopt.h not found: only short parameter can be used on cmdline" >&2;}
18592
18593 fi
18594
18595 done
18596
18597
18598
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18600 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18601 if test "${ac_cv_c_const+set}" = set; then :
18602 $as_echo_n "(cached) " >&6
18603 else
18604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18605 /* end confdefs.h. */
18606
18607 int
18608 main ()
18609 {
18610 /* FIXME: Include the comments suggested by Paul. */
18611 #ifndef __cplusplus
18612 /* Ultrix mips cc rejects this. */
18613 typedef int charset[2];
18614 const charset cs;
18615 /* SunOS 4.1.1 cc rejects this. */
18616 char const *const *pcpcc;
18617 char **ppc;
18618 /* NEC SVR4.0.2 mips cc rejects this. */
18619 struct point {int x, y;};
18620 static struct point const zero = {0,0};
18621 /* AIX XL C 1.02.0.0 rejects this.
18622 It does not let you subtract one const X* pointer from another in
18623 an arm of an if-expression whose if-part is not a constant
18624 expression */
18625 const char *g = "string";
18626 pcpcc = &g + (g ? g-g : 0);
18627 /* HPUX 7.0 cc rejects these. */
18628 ++pcpcc;
18629 ppc = (char**) pcpcc;
18630 pcpcc = (char const *const *) ppc;
18631 { /* SCO 3.2v4 cc rejects this. */
18632 char *t;
18633 char const *s = 0 ? (char *) 0 : (char const *) 0;
18634
18635 *t++ = 0;
18636 if (s) return 0;
18637 }
18638 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18639 int x[] = {25, 17};
18640 const int *foo = &x[0];
18641 ++foo;
18642 }
18643 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18644 typedef const int *iptr;
18645 iptr p = 0;
18646 ++p;
18647 }
18648 { /* AIX XL C 1.02.0.0 rejects this saying
18649 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18650 struct s { int j; const int *ap[3]; };
18651 struct s *b; b->j = 5;
18652 }
18653 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18654 const int foo = 10;
18655 if (!foo) return 0;
18656 }
18657 return !cs[0] && !zero.x;
18658 #endif
18659
18660 ;
18661 return 0;
18662 }
18663 _ACEOF
18664 if ac_fn_c_try_compile "$LINENO"; then :
18665 ac_cv_c_const=yes
18666 else
18667 ac_cv_c_const=no
18668 fi
18669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18670 fi
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18672 $as_echo "$ac_cv_c_const" >&6; }
18673 if test $ac_cv_c_const = no; then
18674
18675 $as_echo "#define const /**/" >>confdefs.h
18676
18677 fi
18678
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18680 $as_echo_n "checking for inline... " >&6; }
18681 if test "${ac_cv_c_inline+set}" = set; then :
18682 $as_echo_n "(cached) " >&6
18683 else
18684 ac_cv_c_inline=no
18685 for ac_kw in inline __inline__ __inline; do
18686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18687 /* end confdefs.h. */
18688 #ifndef __cplusplus
18689 typedef int foo_t;
18690 static $ac_kw foo_t static_foo () {return 0; }
18691 $ac_kw foo_t foo () {return 0; }
18692 #endif
18693
18694 _ACEOF
18695 if ac_fn_c_try_compile "$LINENO"; then :
18696 ac_cv_c_inline=$ac_kw
18697 fi
18698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18699 test "$ac_cv_c_inline" != no && break
18700 done
18701
18702 fi
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18704 $as_echo "$ac_cv_c_inline" >&6; }
18705
18706 case $ac_cv_c_inline in
18707 inline | yes) ;;
18708 *)
18709 case $ac_cv_c_inline in
18710 no) ac_val=;;
18711 *) ac_val=$ac_cv_c_inline;;
18712 esac
18713 cat >>confdefs.h <<_ACEOF
18714 #ifndef __cplusplus
18715 #define inline $ac_val
18716 #endif
18717 _ACEOF
18718 ;;
18719 esac
18720
18721 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18722 if test "x$ac_cv_type_size_t" = x""yes; then :
18723
18724 else
18725
18726 cat >>confdefs.h <<_ACEOF
18727 #define size_t unsigned int
18728 _ACEOF
18729
18730 fi
18731
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18733 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18734 if test "${ac_cv_struct_tm+set}" = set; then :
18735 $as_echo_n "(cached) " >&6
18736 else
18737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738 /* end confdefs.h. */
18739 #include <sys/types.h>
18740 #include <time.h>
18741
18742 int
18743 main ()
18744 {
18745 struct tm tm;
18746 int *p = &tm.tm_sec;
18747 return !p;
18748 ;
18749 return 0;
18750 }
18751 _ACEOF
18752 if ac_fn_c_try_compile "$LINENO"; then :
18753 ac_cv_struct_tm=time.h
18754 else
18755 ac_cv_struct_tm=sys/time.h
18756 fi
18757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18758 fi
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18760 $as_echo "$ac_cv_struct_tm" >&6; }
18761 if test $ac_cv_struct_tm = sys/time.h; then
18762
18763 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18764
18765 fi
18766
18767
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
18769 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
18770 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
18771 $as_echo_n "(cached) " >&6
18772 else
18773 if test "$cross_compiling" = yes; then :
18774 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
18775 else
18776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18777 /* end confdefs.h. */
18778 $ac_includes_default
18779 int
18780 main ()
18781 {
18782 /* If this system has a BSD-style setpgrp which takes arguments,
18783 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18784 exit successfully. */
18785 return setpgrp (1,1) != -1;
18786 ;
18787 return 0;
18788 }
18789 _ACEOF
18790 if ac_fn_c_try_run "$LINENO"; then :
18791 ac_cv_func_setpgrp_void=no
18792 else
18793 ac_cv_func_setpgrp_void=yes
18794 fi
18795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18796 conftest.$ac_objext conftest.beam conftest.$ac_ext
18797 fi
18798
18799 fi
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
18801 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
18802 if test $ac_cv_func_setpgrp_void = yes; then
18803
18804 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
18805
18806 fi
18807
18808 for ac_func in getwd strerror strdup atoll strtoll setpgid
18809 do :
18810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18811 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18812 eval as_val=\$$as_ac_var
18813 if test "x$as_val" = x""yes; then :
18814 cat >>confdefs.h <<_ACEOF
18815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18816 _ACEOF
18817
18818 fi
18819 done
18820
18821 for ac_func in fstat64 fstatfs64 open64
18822 do :
18823 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18824 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18825 eval as_val=\$$as_ac_var
18826 if test "x$as_val" = x""yes; then :
18827 cat >>confdefs.h <<_ACEOF
18828 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18829 _ACEOF
18830
18831 fi
18832 done
18833
18834
18835
18836 # Check whether --with-log-dir was given.
18837 if test "${with_log_dir+set}" = set; then :
18838 withval=$with_log_dir; LOGDIR=$with_log_dir
18839 else
18840 LOGDIR=/var/log
18841 fi
18842
18843
18844
18845 # The cast to long int works around a bug in the HP C Compiler
18846 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18847 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18848 # This bug is HP SR number 8606223364.
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
18850 $as_echo_n "checking size of char... " >&6; }
18851 if test "${ac_cv_sizeof_char+set}" = set; then :
18852 $as_echo_n "(cached) " >&6
18853 else
18854 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
18855
18856 else
18857 if test "$ac_cv_type_char" = yes; then
18858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18860 { as_fn_set_status 77
18861 as_fn_error "cannot compute sizeof (char)
18862 See \`config.log' for more details." "$LINENO" 5; }; }
18863 else
18864 ac_cv_sizeof_char=0
18865 fi
18866 fi
18867
18868 fi
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
18870 $as_echo "$ac_cv_sizeof_char" >&6; }
18871
18872
18873
18874 cat >>confdefs.h <<_ACEOF
18875 #define SIZEOF_CHAR $ac_cv_sizeof_char
18876 _ACEOF
18877
18878
18879 # The cast to long int works around a bug in the HP C Compiler
18880 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18881 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18882 # This bug is HP SR number 8606223364.
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
18884 $as_echo_n "checking size of short... " >&6; }
18885 if test "${ac_cv_sizeof_short+set}" = set; then :
18886 $as_echo_n "(cached) " >&6
18887 else
18888 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
18889
18890 else
18891 if test "$ac_cv_type_short" = yes; then
18892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18894 { as_fn_set_status 77
18895 as_fn_error "cannot compute sizeof (short)
18896 See \`config.log' for more details." "$LINENO" 5; }; }
18897 else
18898 ac_cv_sizeof_short=0
18899 fi
18900 fi
18901
18902 fi
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
18904 $as_echo "$ac_cv_sizeof_short" >&6; }
18905
18906
18907
18908 cat >>confdefs.h <<_ACEOF
18909 #define SIZEOF_SHORT $ac_cv_sizeof_short
18910 _ACEOF
18911
18912
18913 # The cast to long int works around a bug in the HP C Compiler
18914 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18915 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18916 # This bug is HP SR number 8606223364.
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18918 $as_echo_n "checking size of int... " >&6; }
18919 if test "${ac_cv_sizeof_int+set}" = set; then :
18920 $as_echo_n "(cached) " >&6
18921 else
18922 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
18923
18924 else
18925 if test "$ac_cv_type_int" = yes; then
18926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18928 { as_fn_set_status 77
18929 as_fn_error "cannot compute sizeof (int)
18930 See \`config.log' for more details." "$LINENO" 5; }; }
18931 else
18932 ac_cv_sizeof_int=0
18933 fi
18934 fi
18935
18936 fi
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18938 $as_echo "$ac_cv_sizeof_int" >&6; }
18939
18940
18941
18942 cat >>confdefs.h <<_ACEOF
18943 #define SIZEOF_INT $ac_cv_sizeof_int
18944 _ACEOF
18945
18946
18947 # The cast to long int works around a bug in the HP C Compiler
18948 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18949 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18950 # This bug is HP SR number 8606223364.
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
18952 $as_echo_n "checking size of long int... " >&6; }
18953 if test "${ac_cv_sizeof_long_int+set}" = set; then :
18954 $as_echo_n "(cached) " >&6
18955 else
18956 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
18957
18958 else
18959 if test "$ac_cv_type_long_int" = yes; then
18960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18962 { as_fn_set_status 77
18963 as_fn_error "cannot compute sizeof (long int)
18964 See \`config.log' for more details." "$LINENO" 5; }; }
18965 else
18966 ac_cv_sizeof_long_int=0
18967 fi
18968 fi
18969
18970 fi
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
18972 $as_echo "$ac_cv_sizeof_long_int" >&6; }
18973
18974
18975
18976 cat >>confdefs.h <<_ACEOF
18977 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
18978 _ACEOF
18979
18980
18981 # The cast to long int works around a bug in the HP C Compiler
18982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18984 # This bug is HP SR number 8606223364.
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
18986 $as_echo_n "checking size of unsigned long long... " >&6; }
18987 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
18988 $as_echo_n "(cached) " >&6
18989 else
18990 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
18991
18992 else
18993 if test "$ac_cv_type_unsigned_long_long" = yes; then
18994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18996 { as_fn_set_status 77
18997 as_fn_error "cannot compute sizeof (unsigned long long)
18998 See \`config.log' for more details." "$LINENO" 5; }; }
18999 else
19000 ac_cv_sizeof_unsigned_long_long=0
19001 fi
19002 fi
19003
19004 fi
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
19006 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
19007
19008
19009
19010 cat >>confdefs.h <<_ACEOF
19011 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
19012 _ACEOF
19013
19014
19015
19016 # Checks for header files.
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19018 $as_echo_n "checking for ANSI C header files... " >&6; }
19019 if test "${ac_cv_header_stdc+set}" = set; then :
19020 $as_echo_n "(cached) " >&6
19021 else
19022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19023 /* end confdefs.h. */
19024 #include <stdlib.h>
19025 #include <stdarg.h>
19026 #include <string.h>
19027 #include <float.h>
19028
19029 int
19030 main ()
19031 {
19032
19033 ;
19034 return 0;
19035 }
19036 _ACEOF
19037 if ac_fn_c_try_compile "$LINENO"; then :
19038 ac_cv_header_stdc=yes
19039 else
19040 ac_cv_header_stdc=no
19041 fi
19042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19043
19044 if test $ac_cv_header_stdc = yes; then
19045 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19048 #include <string.h>
19049
19050 _ACEOF
19051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19052 $EGREP "memchr" >/dev/null 2>&1; then :
19053
19054 else
19055 ac_cv_header_stdc=no
19056 fi
19057 rm -f conftest*
19058
19059 fi
19060
19061 if test $ac_cv_header_stdc = yes; then
19062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19064 /* end confdefs.h. */
19065 #include <stdlib.h>
19066
19067 _ACEOF
19068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19069 $EGREP "free" >/dev/null 2>&1; then :
19070
19071 else
19072 ac_cv_header_stdc=no
19073 fi
19074 rm -f conftest*
19075
19076 fi
19077
19078 if test $ac_cv_header_stdc = yes; then
19079 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19080 if test "$cross_compiling" = yes; then :
19081 :
19082 else
19083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19084 /* end confdefs.h. */
19085 #include <ctype.h>
19086 #include <stdlib.h>
19087 #if ((' ' & 0x0FF) == 0x020)
19088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19090 #else
19091 # define ISLOWER(c) \
19092 (('a' <= (c) && (c) <= 'i') \
19093 || ('j' <= (c) && (c) <= 'r') \
19094 || ('s' <= (c) && (c) <= 'z'))
19095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19096 #endif
19097
19098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19099 int
19100 main ()
19101 {
19102 int i;
19103 for (i = 0; i < 256; i++)
19104 if (XOR (islower (i), ISLOWER (i))
19105 || toupper (i) != TOUPPER (i))
19106 return 2;
19107 return 0;
19108 }
19109 _ACEOF
19110 if ac_fn_c_try_run "$LINENO"; then :
19111
19112 else
19113 ac_cv_header_stdc=no
19114 fi
19115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19116 conftest.$ac_objext conftest.beam conftest.$ac_ext
19117 fi
19118
19119 fi
19120 fi
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19122 $as_echo "$ac_cv_header_stdc" >&6; }
19123 if test $ac_cv_header_stdc = yes; then
19124
19125 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19126
19127 fi
19128
19129 for ac_header in stdint.h stdlib.h stdio.h string.h strings.h getopt.h sys/types.h
19130 do :
19131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19132 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19133 eval as_val=\$$as_ac_Header
19134 if test "x$as_val" = x""yes; then :
19135 cat >>confdefs.h <<_ACEOF
19136 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19137 _ACEOF
19138
19139 fi
19140
19141 done
19142
19143
19144 if test "$pamsupport" = "yes"; then
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
19146 $as_echo_n "checking for pam_start in -lpam... " >&6; }
19147 if test "${ac_cv_lib_pam_pam_start+set}" = set; then :
19148 $as_echo_n "(cached) " >&6
19149 else
19150 ac_check_lib_save_LIBS=$LIBS
19151 LIBS="-lpam $LIBS"
19152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19153 /* end confdefs.h. */
19154
19155 /* Override any GCC internal prototype to avoid an error.
19156 Use char because int might match the return type of a GCC
19157 builtin and then its argument prototype would still apply. */
19158 #ifdef __cplusplus
19159 extern "C"
19160 #endif
19161 char pam_start ();
19162 int
19163 main ()
19164 {
19165 return pam_start ();
19166 ;
19167 return 0;
19168 }
19169 _ACEOF
19170 if ac_fn_c_try_link "$LINENO"; then :
19171 ac_cv_lib_pam_pam_start=yes
19172 else
19173 ac_cv_lib_pam_pam_start=no
19174 fi
19175 rm -f core conftest.err conftest.$ac_objext \
19176 conftest$ac_exeext conftest.$ac_ext
19177 LIBS=$ac_check_lib_save_LIBS
19178 fi
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
19180 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
19181 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then :
19182 cat >>confdefs.h <<_ACEOF
19183 #define HAVE_LIBPAM 1
19184 _ACEOF
19185
19186 LIBS="-lpam $LIBS"
19187
19188 else
19189 as_fn_error "*** pam library (libpam) not found" "$LINENO" 5
19190 fi
19191
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19193 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19194 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
19195 $as_echo_n "(cached) " >&6
19196 else
19197 ac_check_lib_save_LIBS=$LIBS
19198 LIBS="-ldl $LIBS"
19199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200 /* end confdefs.h. */
19201
19202 /* Override any GCC internal prototype to avoid an error.
19203 Use char because int might match the return type of a GCC
19204 builtin and then its argument prototype would still apply. */
19205 #ifdef __cplusplus
19206 extern "C"
19207 #endif
19208 char dlopen ();
19209 int
19210 main ()
19211 {
19212 return dlopen ();
19213 ;
19214 return 0;
19215 }
19216 _ACEOF
19217 if ac_fn_c_try_link "$LINENO"; then :
19218 ac_cv_lib_dl_dlopen=yes
19219 else
19220 ac_cv_lib_dl_dlopen=no
19221 fi
19222 rm -f core conftest.err conftest.$ac_objext \
19223 conftest$ac_exeext conftest.$ac_ext
19224 LIBS=$ac_check_lib_save_LIBS
19225 fi
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19227 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19228 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
19229 cat >>confdefs.h <<_ACEOF
19230 #define HAVE_LIBDL 1
19231 _ACEOF
19232
19233 LIBS="-ldl $LIBS"
19234
19235 else
19236 as_fn_error "*** dl library (libdl) not found" "$LINENO" 5
19237 fi
19238
19239
19240 $as_echo "#define HAVE_PAM 1" >>confdefs.h
19241
19242 fi
19243
19244 if test "$SSL" = "yes"; then
19245
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
19247 $as_echo "" >&6; }
19248 # Extract the first word of "openssl", so it can be a program name with args.
19249 set dummy openssl; ac_word=$2
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19251 $as_echo_n "checking for $ac_word... " >&6; }
19252 if test "${ac_cv_path_opensslpath+set}" = set; then :
19253 $as_echo_n "(cached) " >&6
19254 else
19255 case $opensslpath in
19256 [\\/]* | ?:[\\/]*)
19257 ac_cv_path_opensslpath="$opensslpath" # Let the user override the test with a path.
19258 ;;
19259 *)
19260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19261 for as_dir in $PATH
19262 do
19263 IFS=$as_save_IFS
19264 test -z "$as_dir" && as_dir=.
19265 for ac_exec_ext in '' $ac_executable_extensions; do
19266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19267 ac_cv_path_opensslpath="$as_dir/$ac_word$ac_exec_ext"
19268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19269 break 2
19270 fi
19271 done
19272 done
19273 IFS=$as_save_IFS
19274
19275 ;;
19276 esac
19277 fi
19278 opensslpath=$ac_cv_path_opensslpath
19279 if test -n "$opensslpath"; then
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opensslpath" >&5
19281 $as_echo "$opensslpath" >&6; }
19282 else
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19284 $as_echo "no" >&6; }
19285 fi
19286
19287
19288 if test x$opensslpath = x ; then
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: openssl is required for building partimaged certificates." >&5
19290 $as_echo "$as_me: WARNING: openssl is required for building partimaged certificates." >&2;}
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --disable-ssl if you don't want to install openssl." >&5
19292 $as_echo "$as_me: WARNING: Use --disable-ssl if you don't want to install openssl." >&2;}
19293 fi
19294
19295
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL Library and Header files ... ..." >&5
19297 $as_echo "$as_me: checking for SSL Library and Header files ... ..." >&6;}
19298
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for rsa.h crypto.h x509.h pem.h ssl.h err.h\"" >&5
19300 $as_echo_n "checking \"for rsa.h crypto.h x509.h pem.h ssl.h err.h\"... " >&6; }
19301 ac_hdr_found=no
19302 for p in $SSL_HDR_DIR /usr/include/ssl /usr/include/openssl /usr/include; do
19303
19304 ac_file_found=yes
19305 for f in rsa.h crypto.h x509.h pem.h ssl.h err.h; do
19306 if test ! -f $p/$f; then
19307 ac_file_found=no
19308 break;
19309 fi
19310 done
19311
19312 if test "$ac_file_found" = "yes" ; then
19313
19314 ac_hdr_found=yes
19315 break
19316
19317
19318 else
19319 :
19320 fi
19321
19322 done
19323 if test "$ac_hdr_found" = "yes" ; then
19324 CPPFLAGS="$CPPFLAGS -I$p"
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($p) yes " >&5
19326 $as_echo "($p) yes " >&6; }
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
19328 $as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
19329 if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then :
19330 $as_echo_n "(cached) " >&6
19331 else
19332 ac_check_lib_save_LIBS=$LIBS
19333 LIBS="-lcrypto $LIBS"
19334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19335 /* end confdefs.h. */
19336
19337 /* Override any GCC internal prototype to avoid an error.
19338 Use char because int might match the return type of a GCC
19339 builtin and then its argument prototype would still apply. */
19340 #ifdef __cplusplus
19341 extern "C"
19342 #endif
19343 char CRYPTO_lock ();
19344 int
19345 main ()
19346 {
19347 return CRYPTO_lock ();
19348 ;
19349 return 0;
19350 }
19351 _ACEOF
19352 if ac_fn_c_try_link "$LINENO"; then :
19353 ac_cv_lib_crypto_CRYPTO_lock=yes
19354 else
19355 ac_cv_lib_crypto_CRYPTO_lock=no
19356 fi
19357 rm -f core conftest.err conftest.$ac_objext \
19358 conftest$ac_exeext conftest.$ac_ext
19359 LIBS=$ac_check_lib_save_LIBS
19360 fi
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
19362 $as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
19363 if test "x$ac_cv_lib_crypto_CRYPTO_lock" = x""yes; then :
19364 LIBS="$LIBS -lcrypto"
19365 else
19366 as_fn_error " Required for SSL Crypto Library not found. " "$LINENO" 5
19367
19368 fi
19369
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
19371 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
19372 if test "${ac_cv_lib_ssl_SSL_CTX_new+set}" = set; then :
19373 $as_echo_n "(cached) " >&6
19374 else
19375 ac_check_lib_save_LIBS=$LIBS
19376 LIBS="-lssl $LIBS"
19377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19378 /* end confdefs.h. */
19379
19380 /* Override any GCC internal prototype to avoid an error.
19381 Use char because int might match the return type of a GCC
19382 builtin and then its argument prototype would still apply. */
19383 #ifdef __cplusplus
19384 extern "C"
19385 #endif
19386 char SSL_CTX_new ();
19387 int
19388 main ()
19389 {
19390 return SSL_CTX_new ();
19391 ;
19392 return 0;
19393 }
19394 _ACEOF
19395 if ac_fn_c_try_link "$LINENO"; then :
19396 ac_cv_lib_ssl_SSL_CTX_new=yes
19397 else
19398 ac_cv_lib_ssl_SSL_CTX_new=no
19399 fi
19400 rm -f core conftest.err conftest.$ac_objext \
19401 conftest$ac_exeext conftest.$ac_ext
19402 LIBS=$ac_check_lib_save_LIBS
19403 fi
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
19405 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
19406 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = x""yes; then :
19407
19408 LIBS="$LIBS -lssl"
19409
19410 $as_echo "#define HAVE_SSL 1" >>confdefs.h
19411
19412
19413 else
19414 as_fn_error " SSL Library not found. " "$LINENO" 5
19415
19416 fi
19417
19418
19419 else
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
19421 $as_echo "\"no\"" >&6; }
19422 as_fn_error " SSL Headers not found. " "$LINENO" 5
19423
19424 fi
19425
19426 fi
19427
19428 # Check whether --enable-login was given.
19429 if test "${enable_login+set}" = set; then :
19430 enableval=$enable_login;
19431 else
19432
19433 $as_echo "#define MUST_LOGIN 1" >>confdefs.h
19434
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
19436 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
19437 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
19438 $as_echo_n "(cached) " >&6
19439 else
19440 ac_check_lib_save_LIBS=$LIBS
19441 LIBS="-lcrypt $LIBS"
19442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19443 /* end confdefs.h. */
19444
19445 /* Override any GCC internal prototype to avoid an error.
19446 Use char because int might match the return type of a GCC
19447 builtin and then its argument prototype would still apply. */
19448 #ifdef __cplusplus
19449 extern "C"
19450 #endif
19451 char crypt ();
19452 int
19453 main ()
19454 {
19455 return crypt ();
19456 ;
19457 return 0;
19458 }
19459 _ACEOF
19460 if ac_fn_c_try_link "$LINENO"; then :
19461 ac_cv_lib_crypt_crypt=yes
19462 else
19463 ac_cv_lib_crypt_crypt=no
19464 fi
19465 rm -f core conftest.err conftest.$ac_objext \
19466 conftest$ac_exeext conftest.$ac_ext
19467 LIBS=$ac_check_lib_save_LIBS
19468 fi
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
19470 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
19471 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
19472 cat >>confdefs.h <<_ACEOF
19473 #define HAVE_LIBCRYPT 1
19474 _ACEOF
19475
19476 LIBS="-lcrypt $LIBS"
19477
19478 else
19479 as_fn_error "*** crypt library (libcrypt) not found" "$LINENO" 5
19480 fi
19481
19482
19483
19484 fi
19485
19486
19487 # Check whether --enable-cheuid was given.
19488 if test "${enable_cheuid+set}" = set; then :
19489 enableval=$enable_cheuid;
19490 else
19491
19492 $as_echo "#define MUST_CHEUID 1" >>confdefs.h
19493
19494
19495 fi
19496
19497
19498
19499 # Check whether --with-debug-level was given.
19500 if test "${with_debug_level+set}" = set; then :
19501 withval=$with_debug_level; DEFAULT_DEBUG_LEVEL=$with_debug_level
19502 else
19503 DEFAULT_DEBUG_LEVEL=1
19504
19505 fi
19506
19507
19508
19509 if test "${sysconfdir}" = "\${prefix}/etc" ; then
19510 if test "${prefix}" = "NONE" ; then
19511 SYSCONFDIR="$ac_default_prefix/etc"
19512 else
19513 SYSCONFDIR="${prefix}/etc"
19514 fi
19515 else
19516 SYSCONFDIR=${sysconfdir}
19517 fi
19518
19519
19520 ac_config_files="$ac_config_files Makefile src/Makefile src/shared/Makefile src/shared/pathnames.h src/client/Makefile src/client/fs/Makefile src/server/Makefile m4/Makefile po/Makefile.in"
19521
19522
19523 cat >confcache <<\_ACEOF
19524 # This file is a shell script that caches the results of configure
19525 # tests run on this system so they can be shared between configure
19526 # scripts and configure runs, see configure's option --config-cache.
19527 # It is not useful on other systems. If it contains results you don't
19528 # want to keep, you may remove or edit it.
19529 #
19530 # config.status only pays attention to the cache file if you give it
19531 # the --recheck option to rerun configure.
19532 #
19533 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19534 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19535 # following values.
19536
19537 _ACEOF
19538
19539 # The following way of writing the cache mishandles newlines in values,
19540 # but we know of no workaround that is simple, portable, and efficient.
19541 # So, we kill variables containing newlines.
19542 # Ultrix sh set writes to stderr and can't be redirected directly,
19543 # and sets the high bit in the cache file unless we assign to the vars.
19544 (
19545 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19546 eval ac_val=\$$ac_var
19547 case $ac_val in #(
19548 *${as_nl}*)
19549 case $ac_var in #(
19550 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19551 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19552 esac
19553 case $ac_var in #(
19554 _ | IFS | as_nl) ;; #(
19555 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19556 *) { eval $ac_var=; unset $ac_var;} ;;
19557 esac ;;
19558 esac
19559 done
19560
19561 (set) 2>&1 |
19562 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19563 *${as_nl}ac_space=\ *)
19564 # `set' does not quote correctly, so add quotes: double-quote
19565 # substitution turns \\\\ into \\, and sed turns \\ into \.
19566 sed -n \
19567 "s/'/'\\\\''/g;
19568 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19569 ;; #(
19570 *)
19571 # `set' quotes correctly as required by POSIX, so do not add quotes.
19572 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19573 ;;
19574 esac |
19575 sort
19576 ) |
19577 sed '
19578 /^ac_cv_env_/b end
19579 t clear
19580 :clear
19581 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19582 t end
19583 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19584 :end' >>confcache
19585 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19586 if test -w "$cache_file"; then
19587 test "x$cache_file" != "x/dev/null" &&
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19589 $as_echo "$as_me: updating cache $cache_file" >&6;}
19590 cat confcache >$cache_file
19591 else
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19593 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19594 fi
19595 fi
19596 rm -f confcache
19597
19598 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19599 # Let make expand exec_prefix.
19600 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19601
19602 DEFS=-DHAVE_CONFIG_H
19603
19604 ac_libobjs=
19605 ac_ltlibobjs=
19606 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19607 # 1. Remove the extension, and $U if already installed.
19608 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19609 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19610 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19611 # will be set to the directory where LIBOBJS objects are built.
19612 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19613 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19614 done
19615 LIBOBJS=$ac_libobjs
19616
19617 LTLIBOBJS=$ac_ltlibobjs
19618
19619
19620 if test -n "$EXEEXT"; then
19621 am__EXEEXT_TRUE=
19622 am__EXEEXT_FALSE='#'
19623 else
19624 am__EXEEXT_TRUE='#'
19625 am__EXEEXT_FALSE=
19626 fi
19627
19628 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19629 as_fn_error "conditional \"AMDEP\" was never defined.
19630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19631 fi
19632 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19633 as_fn_error "conditional \"am__fastdepCC\" was never defined.
19634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19635 fi
19636 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19637 as_fn_error "conditional \"am__fastdepCC\" was never defined.
19638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19639 fi
19640 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19641 as_fn_error "conditional \"am__fastdepCC\" was never defined.
19642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19643 fi
19644 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19645 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19647 fi
19648 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19649 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19651 fi
19652
19653 : ${CONFIG_STATUS=./config.status}
19654 ac_write_fail=0
19655 ac_clean_files_save=$ac_clean_files
19656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19658 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19659 as_write_fail=0
19660 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19661 #! $SHELL
19662 # Generated by $as_me.
19663 # Run this file to recreate the current configuration.
19664 # Compiler output produced by configure, useful for debugging
19665 # configure, is in config.log if it exists.
19666
19667 debug=false
19668 ac_cs_recheck=false
19669 ac_cs_silent=false
19670
19671 SHELL=\${CONFIG_SHELL-$SHELL}
19672 export SHELL
19673 _ASEOF
19674 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19675 ## -------------------- ##
19676 ## M4sh Initialization. ##
19677 ## -------------------- ##
19678
19679 # Be more Bourne compatible
19680 DUALCASE=1; export DUALCASE # for MKS sh
19681 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19682 emulate sh
19683 NULLCMD=:
19684 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19685 # is contrary to our usage. Disable this feature.
19686 alias -g '${1+"$@"}'='"$@"'
19687 setopt NO_GLOB_SUBST
19688 else
19689 case `(set -o) 2>/dev/null` in #(
19690 *posix*) :
19691 set -o posix ;; #(
19692 *) :
19693 ;;
19694 esac
19695 fi
19696
19697
19698 as_nl='
19699 '
19700 export as_nl
19701 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19702 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19703 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19705 # Prefer a ksh shell builtin over an external printf program on Solaris,
19706 # but without wasting forks for bash or zsh.
19707 if test -z "$BASH_VERSION$ZSH_VERSION" \
19708 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19709 as_echo='print -r --'
19710 as_echo_n='print -rn --'
19711 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19712 as_echo='printf %s\n'
19713 as_echo_n='printf %s'
19714 else
19715 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19716 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19717 as_echo_n='/usr/ucb/echo -n'
19718 else
19719 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19720 as_echo_n_body='eval
19721 arg=$1;
19722 case $arg in #(
19723 *"$as_nl"*)
19724 expr "X$arg" : "X\\(.*\\)$as_nl";
19725 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19726 esac;
19727 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19728 '
19729 export as_echo_n_body
19730 as_echo_n='sh -c $as_echo_n_body as_echo'
19731 fi
19732 export as_echo_body
19733 as_echo='sh -c $as_echo_body as_echo'
19734 fi
19735
19736 # The user is always right.
19737 if test "${PATH_SEPARATOR+set}" != set; then
19738 PATH_SEPARATOR=:
19739 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19740 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19741 PATH_SEPARATOR=';'
19742 }
19743 fi
19744
19745
19746 # IFS
19747 # We need space, tab and new line, in precisely that order. Quoting is
19748 # there to prevent editors from complaining about space-tab.
19749 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19750 # splitting by setting IFS to empty value.)
19751 IFS=" "" $as_nl"
19752
19753 # Find who we are. Look in the path if we contain no directory separator.
19754 case $0 in #((
19755 *[\\/]* ) as_myself=$0 ;;
19756 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19757 for as_dir in $PATH
19758 do
19759 IFS=$as_save_IFS
19760 test -z "$as_dir" && as_dir=.
19761 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19762 done
19763 IFS=$as_save_IFS
19764
19765 ;;
19766 esac
19767 # We did not find ourselves, most probably we were run as `sh COMMAND'
19768 # in which case we are not to be found in the path.
19769 if test "x$as_myself" = x; then
19770 as_myself=$0
19771 fi
19772 if test ! -f "$as_myself"; then
19773 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19774 exit 1
19775 fi
19776
19777 # Unset variables that we do not need and which cause bugs (e.g. in
19778 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19779 # suppresses any "Segmentation fault" message there. '((' could
19780 # trigger a bug in pdksh 5.2.14.
19781 for as_var in BASH_ENV ENV MAIL MAILPATH
19782 do eval test x\${$as_var+set} = xset \
19783 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19784 done
19785 PS1='$ '
19786 PS2='> '
19787 PS4='+ '
19788
19789 # NLS nuisances.
19790 LC_ALL=C
19791 export LC_ALL
19792 LANGUAGE=C
19793 export LANGUAGE
19794
19795 # CDPATH.
19796 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19797
19798
19799 # as_fn_error ERROR [LINENO LOG_FD]
19800 # ---------------------------------
19801 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19802 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19803 # script with status $?, using 1 if that was 0.
19804 as_fn_error ()
19805 {
19806 as_status=$?; test $as_status -eq 0 && as_status=1
19807 if test "$3"; then
19808 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19809 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19810 fi
19811 $as_echo "$as_me: error: $1" >&2
19812 as_fn_exit $as_status
19813 } # as_fn_error
19814
19815
19816 # as_fn_set_status STATUS
19817 # -----------------------
19818 # Set $? to STATUS, without forking.
19819 as_fn_set_status ()
19820 {
19821 return $1
19822 } # as_fn_set_status
19823
19824 # as_fn_exit STATUS
19825 # -----------------
19826 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19827 as_fn_exit ()
19828 {
19829 set +e
19830 as_fn_set_status $1
19831 exit $1
19832 } # as_fn_exit
19833
19834 # as_fn_unset VAR
19835 # ---------------
19836 # Portably unset VAR.
19837 as_fn_unset ()
19838 {
19839 { eval $1=; unset $1;}
19840 }
19841 as_unset=as_fn_unset
19842 # as_fn_append VAR VALUE
19843 # ----------------------
19844 # Append the text in VALUE to the end of the definition contained in VAR. Take
19845 # advantage of any shell optimizations that allow amortized linear growth over
19846 # repeated appends, instead of the typical quadratic growth present in naive
19847 # implementations.
19848 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19849 eval 'as_fn_append ()
19850 {
19851 eval $1+=\$2
19852 }'
19853 else
19854 as_fn_append ()
19855 {
19856 eval $1=\$$1\$2
19857 }
19858 fi # as_fn_append
19859
19860 # as_fn_arith ARG...
19861 # ------------------
19862 # Perform arithmetic evaluation on the ARGs, and store the result in the
19863 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19864 # must be portable across $(()) and expr.
19865 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19866 eval 'as_fn_arith ()
19867 {
19868 as_val=$(( $* ))
19869 }'
19870 else
19871 as_fn_arith ()
19872 {
19873 as_val=`expr "$@" || test $? -eq 1`
19874 }
19875 fi # as_fn_arith
19876
19877
19878 if expr a : '\(a\)' >/dev/null 2>&1 &&
19879 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19880 as_expr=expr
19881 else
19882 as_expr=false
19883 fi
19884
19885 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19886 as_basename=basename
19887 else
19888 as_basename=false
19889 fi
19890
19891 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19892 as_dirname=dirname
19893 else
19894 as_dirname=false
19895 fi
19896
19897 as_me=`$as_basename -- "$0" ||
19898 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19899 X"$0" : 'X\(//\)$' \| \
19900 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19901 $as_echo X/"$0" |
19902 sed '/^.*\/\([^/][^/]*\)\/*$/{
19903 s//\1/
19904 q
19905 }
19906 /^X\/\(\/\/\)$/{
19907 s//\1/
19908 q
19909 }
19910 /^X\/\(\/\).*/{
19911 s//\1/
19912 q
19913 }
19914 s/.*/./; q'`
19915
19916 # Avoid depending upon Character Ranges.
19917 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19918 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19919 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19920 as_cr_digits='0123456789'
19921 as_cr_alnum=$as_cr_Letters$as_cr_digits
19922
19923 ECHO_C= ECHO_N= ECHO_T=
19924 case `echo -n x` in #(((((
19925 -n*)
19926 case `echo 'xy\c'` in
19927 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19928 xy) ECHO_C='\c';;
19929 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19930 ECHO_T=' ';;
19931 esac;;
19932 *)
19933 ECHO_N='-n';;
19934 esac
19935
19936 rm -f conf$$ conf$$.exe conf$$.file
19937 if test -d conf$$.dir; then
19938 rm -f conf$$.dir/conf$$.file
19939 else
19940 rm -f conf$$.dir
19941 mkdir conf$$.dir 2>/dev/null
19942 fi
19943 if (echo >conf$$.file) 2>/dev/null; then
19944 if ln -s conf$$.file conf$$ 2>/dev/null; then
19945 as_ln_s='ln -s'
19946 # ... but there are two gotchas:
19947 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19948 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19949 # In both cases, we have to default to `cp -p'.
19950 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19951 as_ln_s='cp -p'
19952 elif ln conf$$.file conf$$ 2>/dev/null; then
19953 as_ln_s=ln
19954 else
19955 as_ln_s='cp -p'
19956 fi
19957 else
19958 as_ln_s='cp -p'
19959 fi
19960 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19961 rmdir conf$$.dir 2>/dev/null
19962
19963
19964 # as_fn_mkdir_p
19965 # -------------
19966 # Create "$as_dir" as a directory, including parents if necessary.
19967 as_fn_mkdir_p ()
19968 {
19969
19970 case $as_dir in #(
19971 -*) as_dir=./$as_dir;;
19972 esac
19973 test -d "$as_dir" || eval $as_mkdir_p || {
19974 as_dirs=
19975 while :; do
19976 case $as_dir in #(
19977 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19978 *) as_qdir=$as_dir;;
19979 esac
19980 as_dirs="'$as_qdir' $as_dirs"
19981 as_dir=`$as_dirname -- "$as_dir" ||
19982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19983 X"$as_dir" : 'X\(//\)[^/]' \| \
19984 X"$as_dir" : 'X\(//\)$' \| \
19985 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19986 $as_echo X"$as_dir" |
19987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19988 s//\1/
19989 q
19990 }
19991 /^X\(\/\/\)[^/].*/{
19992 s//\1/
19993 q
19994 }
19995 /^X\(\/\/\)$/{
19996 s//\1/
19997 q
19998 }
19999 /^X\(\/\).*/{
20000 s//\1/
20001 q
20002 }
20003 s/.*/./; q'`
20004 test -d "$as_dir" && break
20005 done
20006 test -z "$as_dirs" || eval "mkdir $as_dirs"
20007 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
20008
20009
20010 } # as_fn_mkdir_p
20011 if mkdir -p . 2>/dev/null; then
20012 as_mkdir_p='mkdir -p "$as_dir"'
20013 else
20014 test -d ./-p && rmdir ./-p
20015 as_mkdir_p=false
20016 fi
20017
20018 if test -x / >/dev/null 2>&1; then
20019 as_test_x='test -x'
20020 else
20021 if ls -dL / >/dev/null 2>&1; then
20022 as_ls_L_option=L
20023 else
20024 as_ls_L_option=
20025 fi
20026 as_test_x='
20027 eval sh -c '\''
20028 if test -d "$1"; then
20029 test -d "$1/.";
20030 else
20031 case $1 in #(
20032 -*)set "./$1";;
20033 esac;
20034 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20035 ???[sx]*):;;*)false;;esac;fi
20036 '\'' sh
20037 '
20038 fi
20039 as_executable_p=$as_test_x
20040
20041 # Sed expression to map a string onto a valid CPP name.
20042 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20043
20044 # Sed expression to map a string onto a valid variable name.
20045 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20046
20047
20048 exec 6>&1
20049 ## ----------------------------------- ##
20050 ## Main body of $CONFIG_STATUS script. ##
20051 ## ----------------------------------- ##
20052 _ASEOF
20053 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20054
20055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20056 # Save the log message, to keep $0 and so on meaningful, and to
20057 # report actual input values of CONFIG_FILES etc. instead of their
20058 # values after options handling.
20059 ac_log="
20060 This file was extended by partimage $as_me 0.6.9, which was
20061 generated by GNU Autoconf 2.65. Invocation command line was
20062
20063 CONFIG_FILES = $CONFIG_FILES
20064 CONFIG_HEADERS = $CONFIG_HEADERS
20065 CONFIG_LINKS = $CONFIG_LINKS
20066 CONFIG_COMMANDS = $CONFIG_COMMANDS
20067 $ $0 $@
20068
20069 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20070 "
20071
20072 _ACEOF
20073
20074 case $ac_config_files in *"
20075 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20076 esac
20077
20078 case $ac_config_headers in *"
20079 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20080 esac
20081
20082
20083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20084 # Files that config.status was made for.
20085 config_files="$ac_config_files"
20086 config_headers="$ac_config_headers"
20087 config_commands="$ac_config_commands"
20088
20089 _ACEOF
20090
20091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20092 ac_cs_usage="\
20093 \`$as_me' instantiates files and other configuration actions
20094 from templates according to the current configuration. Unless the files
20095 and actions are specified as TAGs, all are instantiated by default.
20096
20097 Usage: $0 [OPTION]... [TAG]...
20098
20099 -h, --help print this help, then exit
20100 -V, --version print version number and configuration settings, then exit
20101 --config print configuration, then exit
20102 -q, --quiet, --silent
20103 do not print progress messages
20104 -d, --debug don't remove temporary files
20105 --recheck update $as_me by reconfiguring in the same conditions
20106 --file=FILE[:TEMPLATE]
20107 instantiate the configuration file FILE
20108 --header=FILE[:TEMPLATE]
20109 instantiate the configuration header FILE
20110
20111 Configuration files:
20112 $config_files
20113
20114 Configuration headers:
20115 $config_headers
20116
20117 Configuration commands:
20118 $config_commands
20119
20120 Report bugs to the package provider."
20121
20122 _ACEOF
20123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20124 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20125 ac_cs_version="\\
20126 partimage config.status 0.6.9
20127 configured by $0, generated by GNU Autoconf 2.65,
20128 with options \\"\$ac_cs_config\\"
20129
20130 Copyright (C) 2009 Free Software Foundation, Inc.
20131 This config.status script is free software; the Free Software Foundation
20132 gives unlimited permission to copy, distribute and modify it."
20133
20134 ac_pwd='$ac_pwd'
20135 srcdir='$srcdir'
20136 INSTALL='$INSTALL'
20137 MKDIR_P='$MKDIR_P'
20138 AWK='$AWK'
20139 test -n "\$AWK" || AWK=awk
20140 _ACEOF
20141
20142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20143 # The default lists apply if the user does not specify any file.
20144 ac_need_defaults=:
20145 while test $# != 0
20146 do
20147 case $1 in
20148 --*=*)
20149 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20150 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20151 ac_shift=:
20152 ;;
20153 *)
20154 ac_option=$1
20155 ac_optarg=$2
20156 ac_shift=shift
20157 ;;
20158 esac
20159
20160 case $ac_option in
20161 # Handling of the options.
20162 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20163 ac_cs_recheck=: ;;
20164 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20165 $as_echo "$ac_cs_version"; exit ;;
20166 --config | --confi | --conf | --con | --co | --c )
20167 $as_echo "$ac_cs_config"; exit ;;
20168 --debug | --debu | --deb | --de | --d | -d )
20169 debug=: ;;
20170 --file | --fil | --fi | --f )
20171 $ac_shift
20172 case $ac_optarg in
20173 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20174 esac
20175 as_fn_append CONFIG_FILES " '$ac_optarg'"
20176 ac_need_defaults=false;;
20177 --header | --heade | --head | --hea )
20178 $ac_shift
20179 case $ac_optarg in
20180 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20181 esac
20182 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20183 ac_need_defaults=false;;
20184 --he | --h)
20185 # Conflict between --help and --header
20186 as_fn_error "ambiguous option: \`$1'
20187 Try \`$0 --help' for more information.";;
20188 --help | --hel | -h )
20189 $as_echo "$ac_cs_usage"; exit ;;
20190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20191 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20192 ac_cs_silent=: ;;
20193
20194 # This is an error.
20195 -*) as_fn_error "unrecognized option: \`$1'
20196 Try \`$0 --help' for more information." ;;
20197
20198 *) as_fn_append ac_config_targets " $1"
20199 ac_need_defaults=false ;;
20200
20201 esac
20202 shift
20203 done
20204
20205 ac_configure_extra_args=
20206
20207 if $ac_cs_silent; then
20208 exec 6>/dev/null
20209 ac_configure_extra_args="$ac_configure_extra_args --silent"
20210 fi
20211
20212 _ACEOF
20213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20214 if \$ac_cs_recheck; then
20215 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20216 shift
20217 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20218 CONFIG_SHELL='$SHELL'
20219 export CONFIG_SHELL
20220 exec "\$@"
20221 fi
20222
20223 _ACEOF
20224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20225 exec 5>>config.log
20226 {
20227 echo
20228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20229 ## Running $as_me. ##
20230 _ASBOX
20231 $as_echo "$ac_log"
20232 } >&5
20233
20234 _ACEOF
20235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20236 #
20237 # INIT-COMMANDS
20238 #
20239 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20240 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
20241 # from automake.
20242 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20243 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20244 LINGUAS="${LINGUAS-%UNSET%}"
20245
20246 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20247
20248
20249 # The HP-UX ksh and POSIX shell print the target directory to stdout
20250 # if CDPATH is set.
20251 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20252
20253 sed_quote_subst='$sed_quote_subst'
20254 double_quote_subst='$double_quote_subst'
20255 delay_variable_subst='$delay_variable_subst'
20256 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20257 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20258 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20259 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20260 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20261 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20262 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20263 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20264 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20265 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20266 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20267 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20268 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20269 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20270 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20271 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20272 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20273 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20274 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20275 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20276 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20277 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20278 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20279 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20280 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20281 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20282 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20283 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20284 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20285 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20286 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20287 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20288 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20289 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20290 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20291 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20292 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20293 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20294 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20295 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20296 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20297 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20298 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20299 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20300 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"`'
20301 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"`'
20302 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20303 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20304 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20305 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20306 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20307 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20308 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20309 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20310 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20311 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20312 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20313 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20314 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20315 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20316 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20317 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20318 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20319 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20320 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20321 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20322 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20323 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20324 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20325 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20326 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20327 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20328 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20329 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20330 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20331 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20332 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20333 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20334 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20335 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20336 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20337 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20338 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20339 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20340 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20341 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20342 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20343 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20344 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20345 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20346 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20347 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20348 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20349 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20350 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20351 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20352 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20353 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20354 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20355 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20356 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20357 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20358 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20359 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20360 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20361 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20362 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20363 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20364 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20365 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20366 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20367 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20368 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20369 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20370 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20371 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20372 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20373 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20374 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20375 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20376 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20377 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20378 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20379 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20380 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20381 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20382 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20383 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20384 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20385 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20386 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20387 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20388 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20389 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20390 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20391 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20392 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20393 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20394 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20395 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20396 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20397 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20398 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20399 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20400 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20401 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20402 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20403 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20404 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20405 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20406 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20407 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20408 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20409 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20410 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20411 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20412 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20413 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20414 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20415 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20416 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20417 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20418 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20419 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20420 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20421 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20422 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20423 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20424 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20425 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20426 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20427
20428 LTCC='$LTCC'
20429 LTCFLAGS='$LTCFLAGS'
20430 compiler='$compiler_DEFAULT'
20431
20432 # Quote evaled strings.
20433 for var in SED \
20434 GREP \
20435 EGREP \
20436 FGREP \
20437 LD \
20438 NM \
20439 LN_S \
20440 lt_SP2NL \
20441 lt_NL2SP \
20442 reload_flag \
20443 OBJDUMP \
20444 deplibs_check_method \
20445 file_magic_cmd \
20446 AR \
20447 AR_FLAGS \
20448 STRIP \
20449 RANLIB \
20450 CC \
20451 CFLAGS \
20452 compiler \
20453 lt_cv_sys_global_symbol_pipe \
20454 lt_cv_sys_global_symbol_to_cdecl \
20455 lt_cv_sys_global_symbol_to_c_name_address \
20456 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20457 SHELL \
20458 ECHO \
20459 lt_prog_compiler_no_builtin_flag \
20460 lt_prog_compiler_wl \
20461 lt_prog_compiler_pic \
20462 lt_prog_compiler_static \
20463 lt_cv_prog_compiler_c_o \
20464 need_locks \
20465 DSYMUTIL \
20466 NMEDIT \
20467 LIPO \
20468 OTOOL \
20469 OTOOL64 \
20470 shrext_cmds \
20471 export_dynamic_flag_spec \
20472 whole_archive_flag_spec \
20473 compiler_needs_object \
20474 with_gnu_ld \
20475 allow_undefined_flag \
20476 no_undefined_flag \
20477 hardcode_libdir_flag_spec \
20478 hardcode_libdir_flag_spec_ld \
20479 hardcode_libdir_separator \
20480 fix_srcfile_path \
20481 exclude_expsyms \
20482 include_expsyms \
20483 file_list_spec \
20484 variables_saved_for_relink \
20485 libname_spec \
20486 library_names_spec \
20487 soname_spec \
20488 finish_eval \
20489 old_striplib \
20490 striplib \
20491 compiler_lib_search_dirs \
20492 predep_objects \
20493 postdep_objects \
20494 predeps \
20495 postdeps \
20496 compiler_lib_search_path \
20497 LD_CXX \
20498 compiler_CXX \
20499 lt_prog_compiler_no_builtin_flag_CXX \
20500 lt_prog_compiler_wl_CXX \
20501 lt_prog_compiler_pic_CXX \
20502 lt_prog_compiler_static_CXX \
20503 lt_cv_prog_compiler_c_o_CXX \
20504 export_dynamic_flag_spec_CXX \
20505 whole_archive_flag_spec_CXX \
20506 compiler_needs_object_CXX \
20507 with_gnu_ld_CXX \
20508 allow_undefined_flag_CXX \
20509 no_undefined_flag_CXX \
20510 hardcode_libdir_flag_spec_CXX \
20511 hardcode_libdir_flag_spec_ld_CXX \
20512 hardcode_libdir_separator_CXX \
20513 fix_srcfile_path_CXX \
20514 exclude_expsyms_CXX \
20515 include_expsyms_CXX \
20516 file_list_spec_CXX \
20517 compiler_lib_search_dirs_CXX \
20518 predep_objects_CXX \
20519 postdep_objects_CXX \
20520 predeps_CXX \
20521 postdeps_CXX \
20522 compiler_lib_search_path_CXX; do
20523 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20524 *[\\\\\\\`\\"\\\$]*)
20525 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20526 ;;
20527 *)
20528 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20529 ;;
20530 esac
20531 done
20532
20533 # Double-quote double-evaled strings.
20534 for var in reload_cmds \
20535 old_postinstall_cmds \
20536 old_postuninstall_cmds \
20537 old_archive_cmds \
20538 extract_expsyms_cmds \
20539 old_archive_from_new_cmds \
20540 old_archive_from_expsyms_cmds \
20541 archive_cmds \
20542 archive_expsym_cmds \
20543 module_cmds \
20544 module_expsym_cmds \
20545 export_symbols_cmds \
20546 prelink_cmds \
20547 postinstall_cmds \
20548 postuninstall_cmds \
20549 finish_cmds \
20550 sys_lib_search_path_spec \
20551 sys_lib_dlsearch_path_spec \
20552 old_archive_cmds_CXX \
20553 old_archive_from_new_cmds_CXX \
20554 old_archive_from_expsyms_cmds_CXX \
20555 archive_cmds_CXX \
20556 archive_expsym_cmds_CXX \
20557 module_cmds_CXX \
20558 module_expsym_cmds_CXX \
20559 export_symbols_cmds_CXX \
20560 prelink_cmds_CXX; do
20561 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20562 *[\\\\\\\`\\"\\\$]*)
20563 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20564 ;;
20565 *)
20566 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20567 ;;
20568 esac
20569 done
20570
20571 # Fix-up fallback echo if it was mangled by the above quoting rules.
20572 case \$lt_ECHO in
20573 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20574 ;;
20575 esac
20576
20577 ac_aux_dir='$ac_aux_dir'
20578 xsi_shell='$xsi_shell'
20579 lt_shell_append='$lt_shell_append'
20580
20581 # See if we are running on zsh, and set the options which allow our
20582 # commands through without removal of \ escapes INIT.
20583 if test -n "\${ZSH_VERSION+set}" ; then
20584 setopt NO_GLOB_SUBST
20585 fi
20586
20587
20588 PACKAGE='$PACKAGE'
20589 VERSION='$VERSION'
20590 TIMESTAMP='$TIMESTAMP'
20591 RM='$RM'
20592 ofile='$ofile'
20593
20594
20595
20596
20597
20598
20599 _ACEOF
20600
20601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20602
20603 # Handling of arguments.
20604 for ac_config_target in $ac_config_targets
20605 do
20606 case $ac_config_target in
20607 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20608 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20609 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20610 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20611 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20612 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20613 "src/shared/Makefile") CONFIG_FILES="$CONFIG_FILES src/shared/Makefile" ;;
20614 "src/shared/pathnames.h") CONFIG_FILES="$CONFIG_FILES src/shared/pathnames.h" ;;
20615 "src/client/Makefile") CONFIG_FILES="$CONFIG_FILES src/client/Makefile" ;;
20616 "src/client/fs/Makefile") CONFIG_FILES="$CONFIG_FILES src/client/fs/Makefile" ;;
20617 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
20618 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20619 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20620
20621 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20622 esac
20623 done
20624
20625
20626 # If the user did not use the arguments to specify the items to instantiate,
20627 # then the envvar interface is used. Set only those that are not.
20628 # We use the long form for the default assignment because of an extremely
20629 # bizarre bug on SunOS 4.1.3.
20630 if $ac_need_defaults; then
20631 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20632 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20633 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20634 fi
20635
20636 # Have a temporary directory for convenience. Make it in the build tree
20637 # simply because there is no reason against having it here, and in addition,
20638 # creating and moving files from /tmp can sometimes cause problems.
20639 # Hook for its removal unless debugging.
20640 # Note that there is a small window in which the directory will not be cleaned:
20641 # after its creation but before its name has been assigned to `$tmp'.
20642 $debug ||
20643 {
20644 tmp=
20645 trap 'exit_status=$?
20646 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20647 ' 0
20648 trap 'as_fn_exit 1' 1 2 13 15
20649 }
20650 # Create a (secure) tmp directory for tmp files.
20651
20652 {
20653 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20654 test -n "$tmp" && test -d "$tmp"
20655 } ||
20656 {
20657 tmp=./conf$$-$RANDOM
20658 (umask 077 && mkdir "$tmp")
20659 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20660
20661 # Set up the scripts for CONFIG_FILES section.
20662 # No need to generate them if there are no CONFIG_FILES.
20663 # This happens for instance with `./config.status config.h'.
20664 if test -n "$CONFIG_FILES"; then
20665
20666
20667 ac_cr=`echo X | tr X '\015'`
20668 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20669 # But we know of no other shell where ac_cr would be empty at this
20670 # point, so we can use a bashism as a fallback.
20671 if test "x$ac_cr" = x; then
20672 eval ac_cr=\$\'\\r\'
20673 fi
20674 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20675 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20676 ac_cs_awk_cr='\r'
20677 else
20678 ac_cs_awk_cr=$ac_cr
20679 fi
20680
20681 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20682 _ACEOF
20683
20684
20685 {
20686 echo "cat >conf$$subs.awk <<_ACEOF" &&
20687 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20688 echo "_ACEOF"
20689 } >conf$$subs.sh ||
20690 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20691 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20692 ac_delim='%!_!# '
20693 for ac_last_try in false false false false false :; do
20694 . ./conf$$subs.sh ||
20695 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20696
20697 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20698 if test $ac_delim_n = $ac_delim_num; then
20699 break
20700 elif $ac_last_try; then
20701 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20702 else
20703 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20704 fi
20705 done
20706 rm -f conf$$subs.sh
20707
20708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20709 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20710 _ACEOF
20711 sed -n '
20712 h
20713 s/^/S["/; s/!.*/"]=/
20714 p
20715 g
20716 s/^[^!]*!//
20717 :repl
20718 t repl
20719 s/'"$ac_delim"'$//
20720 t delim
20721 :nl
20722 h
20723 s/\(.\{148\}\)..*/\1/
20724 t more1
20725 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20726 p
20727 n
20728 b repl
20729 :more1
20730 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20731 p
20732 g
20733 s/.\{148\}//
20734 t nl
20735 :delim
20736 h
20737 s/\(.\{148\}\)..*/\1/
20738 t more2
20739 s/["\\]/\\&/g; s/^/"/; s/$/"/
20740 p
20741 b
20742 :more2
20743 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20744 p
20745 g
20746 s/.\{148\}//
20747 t delim
20748 ' <conf$$subs.awk | sed '
20749 /^[^""]/{
20750 N
20751 s/\n//
20752 }
20753 ' >>$CONFIG_STATUS || ac_write_fail=1
20754 rm -f conf$$subs.awk
20755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20756 _ACAWK
20757 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20758 for (key in S) S_is_set[key] = 1
20759 FS = ""
20760
20761 }
20762 {
20763 line = $ 0
20764 nfields = split(line, field, "@")
20765 substed = 0
20766 len = length(field[1])
20767 for (i = 2; i < nfields; i++) {
20768 key = field[i]
20769 keylen = length(key)
20770 if (S_is_set[key]) {
20771 value = S[key]
20772 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20773 len += length(value) + length(field[++i])
20774 substed = 1
20775 } else
20776 len += 1 + keylen
20777 }
20778
20779 print line
20780 }
20781
20782 _ACAWK
20783 _ACEOF
20784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20785 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20786 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20787 else
20788 cat
20789 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20790 || as_fn_error "could not setup config files machinery" "$LINENO" 5
20791 _ACEOF
20792
20793 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20794 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20795 # trailing colons and then remove the whole line if VPATH becomes empty
20796 # (actually we leave an empty line to preserve line numbers).
20797 if test "x$srcdir" = x.; then
20798 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20799 s/:*\$(srcdir):*/:/
20800 s/:*\${srcdir}:*/:/
20801 s/:*@srcdir@:*/:/
20802 s/^\([^=]*=[ ]*\):*/\1/
20803 s/:*$//
20804 s/^[^=]*=[ ]*$//
20805 }'
20806 fi
20807
20808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20809 fi # test -n "$CONFIG_FILES"
20810
20811 # Set up the scripts for CONFIG_HEADERS section.
20812 # No need to generate them if there are no CONFIG_HEADERS.
20813 # This happens for instance with `./config.status Makefile'.
20814 if test -n "$CONFIG_HEADERS"; then
20815 cat >"$tmp/defines.awk" <<\_ACAWK ||
20816 BEGIN {
20817 _ACEOF
20818
20819 # Transform confdefs.h into an awk script `defines.awk', embedded as
20820 # here-document in config.status, that substitutes the proper values into
20821 # config.h.in to produce config.h.
20822
20823 # Create a delimiter string that does not exist in confdefs.h, to ease
20824 # handling of long lines.
20825 ac_delim='%!_!# '
20826 for ac_last_try in false false :; do
20827 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20828 if test -z "$ac_t"; then
20829 break
20830 elif $ac_last_try; then
20831 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20832 else
20833 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20834 fi
20835 done
20836
20837 # For the awk script, D is an array of macro values keyed by name,
20838 # likewise P contains macro parameters if any. Preserve backslash
20839 # newline sequences.
20840
20841 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20842 sed -n '
20843 s/.\{148\}/&'"$ac_delim"'/g
20844 t rset
20845 :rset
20846 s/^[ ]*#[ ]*define[ ][ ]*/ /
20847 t def
20848 d
20849 :def
20850 s/\\$//
20851 t bsnl
20852 s/["\\]/\\&/g
20853 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20854 D["\1"]=" \3"/p
20855 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20856 d
20857 :bsnl
20858 s/["\\]/\\&/g
20859 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20860 D["\1"]=" \3\\\\\\n"\\/p
20861 t cont
20862 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20863 t cont
20864 d
20865 :cont
20866 n
20867 s/.\{148\}/&'"$ac_delim"'/g
20868 t clear
20869 :clear
20870 s/\\$//
20871 t bsnlc
20872 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20873 d
20874 :bsnlc
20875 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20876 b cont
20877 ' <confdefs.h | sed '
20878 s/'"$ac_delim"'/"\\\
20879 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20880
20881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20882 for (key in D) D_is_set[key] = 1
20883 FS = ""
20884 }
20885 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20886 line = \$ 0
20887 split(line, arg, " ")
20888 if (arg[1] == "#") {
20889 defundef = arg[2]
20890 mac1 = arg[3]
20891 } else {
20892 defundef = substr(arg[1], 2)
20893 mac1 = arg[2]
20894 }
20895 split(mac1, mac2, "(") #)
20896 macro = mac2[1]
20897 prefix = substr(line, 1, index(line, defundef) - 1)
20898 if (D_is_set[macro]) {
20899 # Preserve the white space surrounding the "#".
20900 print prefix "define", macro P[macro] D[macro]
20901 next
20902 } else {
20903 # Replace #undef with comments. This is necessary, for example,
20904 # in the case of _POSIX_SOURCE, which is predefined and required
20905 # on some systems where configure will not decide to define it.
20906 if (defundef == "undef") {
20907 print "/*", prefix defundef, macro, "*/"
20908 next
20909 }
20910 }
20911 }
20912 { print }
20913 _ACAWK
20914 _ACEOF
20915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20916 as_fn_error "could not setup config headers machinery" "$LINENO" 5
20917 fi # test -n "$CONFIG_HEADERS"
20918
20919
20920 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20921 shift
20922 for ac_tag
20923 do
20924 case $ac_tag in
20925 :[FHLC]) ac_mode=$ac_tag; continue;;
20926 esac
20927 case $ac_mode$ac_tag in
20928 :[FHL]*:*);;
20929 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20930 :[FH]-) ac_tag=-:-;;
20931 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20932 esac
20933 ac_save_IFS=$IFS
20934 IFS=:
20935 set x $ac_tag
20936 IFS=$ac_save_IFS
20937 shift
20938 ac_file=$1
20939 shift
20940
20941 case $ac_mode in
20942 :L) ac_source=$1;;
20943 :[FH])
20944 ac_file_inputs=
20945 for ac_f
20946 do
20947 case $ac_f in
20948 -) ac_f="$tmp/stdin";;
20949 *) # Look for the file first in the build tree, then in the source tree
20950 # (if the path is not absolute). The absolute path cannot be DOS-style,
20951 # because $ac_f cannot contain `:'.
20952 test -f "$ac_f" ||
20953 case $ac_f in
20954 [\\/$]*) false;;
20955 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20956 esac ||
20957 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20958 esac
20959 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20960 as_fn_append ac_file_inputs " '$ac_f'"
20961 done
20962
20963 # Let's still pretend it is `configure' which instantiates (i.e., don't
20964 # use $as_me), people would be surprised to read:
20965 # /* config.h. Generated by config.status. */
20966 configure_input='Generated from '`
20967 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20968 `' by configure.'
20969 if test x"$ac_file" != x-; then
20970 configure_input="$ac_file. $configure_input"
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20972 $as_echo "$as_me: creating $ac_file" >&6;}
20973 fi
20974 # Neutralize special characters interpreted by sed in replacement strings.
20975 case $configure_input in #(
20976 *\&* | *\|* | *\\* )
20977 ac_sed_conf_input=`$as_echo "$configure_input" |
20978 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20979 *) ac_sed_conf_input=$configure_input;;
20980 esac
20981
20982 case $ac_tag in
20983 *:-:* | *:-) cat >"$tmp/stdin" \
20984 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20985 esac
20986 ;;
20987 esac
20988
20989 ac_dir=`$as_dirname -- "$ac_file" ||
20990 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20991 X"$ac_file" : 'X\(//\)[^/]' \| \
20992 X"$ac_file" : 'X\(//\)$' \| \
20993 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20994 $as_echo X"$ac_file" |
20995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20996 s//\1/
20997 q
20998 }
20999 /^X\(\/\/\)[^/].*/{
21000 s//\1/
21001 q
21002 }
21003 /^X\(\/\/\)$/{
21004 s//\1/
21005 q
21006 }
21007 /^X\(\/\).*/{
21008 s//\1/
21009 q
21010 }
21011 s/.*/./; q'`
21012 as_dir="$ac_dir"; as_fn_mkdir_p
21013 ac_builddir=.
21014
21015 case "$ac_dir" in
21016 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21017 *)
21018 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21019 # A ".." for each directory in $ac_dir_suffix.
21020 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21021 case $ac_top_builddir_sub in
21022 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21023 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21024 esac ;;
21025 esac
21026 ac_abs_top_builddir=$ac_pwd
21027 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21028 # for backward compatibility:
21029 ac_top_builddir=$ac_top_build_prefix
21030
21031 case $srcdir in
21032 .) # We are building in place.
21033 ac_srcdir=.
21034 ac_top_srcdir=$ac_top_builddir_sub
21035 ac_abs_top_srcdir=$ac_pwd ;;
21036 [\\/]* | ?:[\\/]* ) # Absolute name.
21037 ac_srcdir=$srcdir$ac_dir_suffix;
21038 ac_top_srcdir=$srcdir
21039 ac_abs_top_srcdir=$srcdir ;;
21040 *) # Relative name.
21041 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21042 ac_top_srcdir=$ac_top_build_prefix$srcdir
21043 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21044 esac
21045 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21046
21047
21048 case $ac_mode in
21049 :F)
21050 #
21051 # CONFIG_FILE
21052 #
21053
21054 case $INSTALL in
21055 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21056 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21057 esac
21058 ac_MKDIR_P=$MKDIR_P
21059 case $MKDIR_P in
21060 [\\/$]* | ?:[\\/]* ) ;;
21061 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21062 esac
21063 _ACEOF
21064
21065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21066 # If the template does not know about datarootdir, expand it.
21067 # FIXME: This hack should be removed a few years after 2.60.
21068 ac_datarootdir_hack=; ac_datarootdir_seen=
21069 ac_sed_dataroot='
21070 /datarootdir/ {
21071 p
21072 q
21073 }
21074 /@datadir@/p
21075 /@docdir@/p
21076 /@infodir@/p
21077 /@localedir@/p
21078 /@mandir@/p'
21079 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21080 *datarootdir*) ac_datarootdir_seen=yes;;
21081 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21083 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21084 _ACEOF
21085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21086 ac_datarootdir_hack='
21087 s&@datadir@&$datadir&g
21088 s&@docdir@&$docdir&g
21089 s&@infodir@&$infodir&g
21090 s&@localedir@&$localedir&g
21091 s&@mandir@&$mandir&g
21092 s&\\\${datarootdir}&$datarootdir&g' ;;
21093 esac
21094 _ACEOF
21095
21096 # Neutralize VPATH when `$srcdir' = `.'.
21097 # Shell code in configure.ac might set extrasub.
21098 # FIXME: do we really want to maintain this feature?
21099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21100 ac_sed_extra="$ac_vpsub
21101 $extrasub
21102 _ACEOF
21103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21104 :t
21105 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21106 s|@configure_input@|$ac_sed_conf_input|;t t
21107 s&@top_builddir@&$ac_top_builddir_sub&;t t
21108 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21109 s&@srcdir@&$ac_srcdir&;t t
21110 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21111 s&@top_srcdir@&$ac_top_srcdir&;t t
21112 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21113 s&@builddir@&$ac_builddir&;t t
21114 s&@abs_builddir@&$ac_abs_builddir&;t t
21115 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21116 s&@INSTALL@&$ac_INSTALL&;t t
21117 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21118 $ac_datarootdir_hack
21119 "
21120 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21121 || as_fn_error "could not create $ac_file" "$LINENO" 5
21122
21123 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21124 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21125 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21127 which seems to be undefined. Please make sure it is defined." >&5
21128 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21129 which seems to be undefined. Please make sure it is defined." >&2;}
21130
21131 rm -f "$tmp/stdin"
21132 case $ac_file in
21133 -) cat "$tmp/out" && rm -f "$tmp/out";;
21134 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21135 esac \
21136 || as_fn_error "could not create $ac_file" "$LINENO" 5
21137 ;;
21138 :H)
21139 #
21140 # CONFIG_HEADER
21141 #
21142 if test x"$ac_file" != x-; then
21143 {
21144 $as_echo "/* $configure_input */" \
21145 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21146 } >"$tmp/config.h" \
21147 || as_fn_error "could not create $ac_file" "$LINENO" 5
21148 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21150 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21151 else
21152 rm -f "$ac_file"
21153 mv "$tmp/config.h" "$ac_file" \
21154 || as_fn_error "could not create $ac_file" "$LINENO" 5
21155 fi
21156 else
21157 $as_echo "/* $configure_input */" \
21158 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21159 || as_fn_error "could not create -" "$LINENO" 5
21160 fi
21161 # Compute "$ac_file"'s index in $config_headers.
21162 _am_arg="$ac_file"
21163 _am_stamp_count=1
21164 for _am_header in $config_headers :; do
21165 case $_am_header in
21166 $_am_arg | $_am_arg:* )
21167 break ;;
21168 * )
21169 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21170 esac
21171 done
21172 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21173 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21174 X"$_am_arg" : 'X\(//\)[^/]' \| \
21175 X"$_am_arg" : 'X\(//\)$' \| \
21176 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21177 $as_echo X"$_am_arg" |
21178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21179 s//\1/
21180 q
21181 }
21182 /^X\(\/\/\)[^/].*/{
21183 s//\1/
21184 q
21185 }
21186 /^X\(\/\/\)$/{
21187 s//\1/
21188 q
21189 }
21190 /^X\(\/\).*/{
21191 s//\1/
21192 q
21193 }
21194 s/.*/./; q'`/stamp-h$_am_stamp_count
21195 ;;
21196
21197 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21198 $as_echo "$as_me: executing $ac_file commands" >&6;}
21199 ;;
21200 esac
21201
21202
21203 case $ac_file$ac_mode in
21204 "default-1":C)
21205 for ac_file in $CONFIG_FILES; do
21206 # Support "outfile[:infile[:infile...]]"
21207 case "$ac_file" in
21208 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21209 esac
21210 # PO directories have a Makefile.in generated from Makefile.in.in.
21211 case "$ac_file" in */Makefile.in)
21212 # Adjust a relative srcdir.
21213 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21214 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21215 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21216 # In autoconf-2.13 it is called $ac_given_srcdir.
21217 # In autoconf-2.50 it is called $srcdir.
21218 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21219 case "$ac_given_srcdir" in
21220 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21221 /*) top_srcdir="$ac_given_srcdir" ;;
21222 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21223 esac
21224 # Treat a directory as a PO directory if and only if it has a
21225 # POTFILES.in file. This allows packages to have multiple PO
21226 # directories under different names or in different locations.
21227 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21228 rm -f "$ac_dir/POTFILES"
21229 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21230 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21231 POMAKEFILEDEPS="POTFILES.in"
21232 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21233 # on $ac_dir but don't depend on user-specified configuration
21234 # parameters.
21235 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21236 # The LINGUAS file contains the set of available languages.
21237 if test -n "$OBSOLETE_ALL_LINGUAS"; then
21238 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21239 fi
21240 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21241 # Hide the ALL_LINGUAS assigment from automake.
21242 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21243 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21244 else
21245 # The set of available languages was given in configure.in.
21246 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
21247 fi
21248 # Compute POFILES
21249 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21250 # Compute UPDATEPOFILES
21251 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21252 # Compute DUMMYPOFILES
21253 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21254 # Compute GMOFILES
21255 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21256 case "$ac_given_srcdir" in
21257 .) srcdirpre= ;;
21258 *) srcdirpre='$(srcdir)/' ;;
21259 esac
21260 POFILES=
21261 UPDATEPOFILES=
21262 DUMMYPOFILES=
21263 GMOFILES=
21264 for lang in $ALL_LINGUAS; do
21265 POFILES="$POFILES $srcdirpre$lang.po"
21266 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21267 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21268 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21269 done
21270 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21271 # environment variable.
21272 INST_LINGUAS=
21273 if test -n "$ALL_LINGUAS"; then
21274 for presentlang in $ALL_LINGUAS; do
21275 useit=no
21276 if test "%UNSET%" != "$LINGUAS"; then
21277 desiredlanguages="$LINGUAS"
21278 else
21279 desiredlanguages="$ALL_LINGUAS"
21280 fi
21281 for desiredlang in $desiredlanguages; do
21282 # Use the presentlang catalog if desiredlang is
21283 # a. equal to presentlang, or
21284 # b. a variant of presentlang (because in this case,
21285 # presentlang can be used as a fallback for messages
21286 # which are not translated in the desiredlang catalog).
21287 case "$desiredlang" in
21288 "$presentlang"*) useit=yes;;
21289 esac
21290 done
21291 if test $useit = yes; then
21292 INST_LINGUAS="$INST_LINGUAS $presentlang"
21293 fi
21294 done
21295 fi
21296 CATALOGS=
21297 if test -n "$INST_LINGUAS"; then
21298 for lang in $INST_LINGUAS; do
21299 CATALOGS="$CATALOGS $lang.gmo"
21300 done
21301 fi
21302 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21303 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21304 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21305 if test -f "$f"; then
21306 case "$f" in
21307 *.orig | *.bak | *~) ;;
21308 *) cat "$f" >> "$ac_dir/Makefile" ;;
21309 esac
21310 fi
21311 done
21312 fi
21313 ;;
21314 esac
21315 done ;;
21316 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21317 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21318 # are listed without --file. Let's play safe and only enable the eval
21319 # if we detect the quoting.
21320 case $CONFIG_FILES in
21321 *\'*) eval set x "$CONFIG_FILES" ;;
21322 *) set x $CONFIG_FILES ;;
21323 esac
21324 shift
21325 for mf
21326 do
21327 # Strip MF so we end up with the name of the file.
21328 mf=`echo "$mf" | sed -e 's/:.*$//'`
21329 # Check whether this is an Automake generated Makefile or not.
21330 # We used to match only the files named `Makefile.in', but
21331 # some people rename them; so instead we look at the file content.
21332 # Grep'ing the first line is not enough: some people post-process
21333 # each Makefile.in and add a new line on top of each file to say so.
21334 # Grep'ing the whole file is not good either: AIX grep has a line
21335 # limit of 2048, but all sed's we know have understand at least 4000.
21336 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21337 dirpart=`$as_dirname -- "$mf" ||
21338 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21339 X"$mf" : 'X\(//\)[^/]' \| \
21340 X"$mf" : 'X\(//\)$' \| \
21341 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21342 $as_echo X"$mf" |
21343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21344 s//\1/
21345 q
21346 }
21347 /^X\(\/\/\)[^/].*/{
21348 s//\1/
21349 q
21350 }
21351 /^X\(\/\/\)$/{
21352 s//\1/
21353 q
21354 }
21355 /^X\(\/\).*/{
21356 s//\1/
21357 q
21358 }
21359 s/.*/./; q'`
21360 else
21361 continue
21362 fi
21363 # Extract the definition of DEPDIR, am__include, and am__quote
21364 # from the Makefile without running `make'.
21365 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21366 test -z "$DEPDIR" && continue
21367 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21368 test -z "am__include" && continue
21369 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21370 # When using ansi2knr, U may be empty or an underscore; expand it
21371 U=`sed -n 's/^U = //p' < "$mf"`
21372 # Find all dependency output files, they are included files with
21373 # $(DEPDIR) in their names. We invoke sed twice because it is the
21374 # simplest approach to changing $(DEPDIR) to its actual value in the
21375 # expansion.
21376 for file in `sed -n "
21377 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21378 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21379 # Make sure the directory exists.
21380 test -f "$dirpart/$file" && continue
21381 fdir=`$as_dirname -- "$file" ||
21382 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21383 X"$file" : 'X\(//\)[^/]' \| \
21384 X"$file" : 'X\(//\)$' \| \
21385 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21386 $as_echo X"$file" |
21387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21388 s//\1/
21389 q
21390 }
21391 /^X\(\/\/\)[^/].*/{
21392 s//\1/
21393 q
21394 }
21395 /^X\(\/\/\)$/{
21396 s//\1/
21397 q
21398 }
21399 /^X\(\/\).*/{
21400 s//\1/
21401 q
21402 }
21403 s/.*/./; q'`
21404 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21405 # echo "creating $dirpart/$file"
21406 echo '# dummy' > "$dirpart/$file"
21407 done
21408 done
21409 }
21410 ;;
21411 "libtool":C)
21412
21413 # See if we are running on zsh, and set the options which allow our
21414 # commands through without removal of \ escapes.
21415 if test -n "${ZSH_VERSION+set}" ; then
21416 setopt NO_GLOB_SUBST
21417 fi
21418
21419 cfgfile="${ofile}T"
21420 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21421 $RM "$cfgfile"
21422
21423 cat <<_LT_EOF >> "$cfgfile"
21424 #! $SHELL
21425
21426 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21427 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21428 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21429 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21430 #
21431 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21432 # 2006, 2007, 2008 Free Software Foundation, Inc.
21433 # Written by Gordon Matzigkeit, 1996
21434 #
21435 # This file is part of GNU Libtool.
21436 #
21437 # GNU Libtool is free software; you can redistribute it and/or
21438 # modify it under the terms of the GNU General Public License as
21439 # published by the Free Software Foundation; either version 2 of
21440 # the License, or (at your option) any later version.
21441 #
21442 # As a special exception to the GNU General Public License,
21443 # if you distribute this file as part of a program or library that
21444 # is built using GNU Libtool, you may include this file under the
21445 # same distribution terms that you use for the rest of that program.
21446 #
21447 # GNU Libtool is distributed in the hope that it will be useful,
21448 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21449 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21450 # GNU General Public License for more details.
21451 #
21452 # You should have received a copy of the GNU General Public License
21453 # along with GNU Libtool; see the file COPYING. If not, a copy
21454 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21455 # obtained by writing to the Free Software Foundation, Inc.,
21456 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21457
21458
21459 # The names of the tagged configurations supported by this script.
21460 available_tags="CXX "
21461
21462 # ### BEGIN LIBTOOL CONFIG
21463
21464 # Which release of libtool.m4 was used?
21465 macro_version=$macro_version
21466 macro_revision=$macro_revision
21467
21468 # Whether or not to build shared libraries.
21469 build_libtool_libs=$enable_shared
21470
21471 # Whether or not to build static libraries.
21472 build_old_libs=$enable_static
21473
21474 # What type of objects to build.
21475 pic_mode=$pic_mode
21476
21477 # Whether or not to optimize for fast installation.
21478 fast_install=$enable_fast_install
21479
21480 # The host system.
21481 host_alias=$host_alias
21482 host=$host
21483 host_os=$host_os
21484
21485 # The build system.
21486 build_alias=$build_alias
21487 build=$build
21488 build_os=$build_os
21489
21490 # A sed program that does not truncate output.
21491 SED=$lt_SED
21492
21493 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21494 Xsed="\$SED -e 1s/^X//"
21495
21496 # A grep program that handles long lines.
21497 GREP=$lt_GREP
21498
21499 # An ERE matcher.
21500 EGREP=$lt_EGREP
21501
21502 # A literal string matcher.
21503 FGREP=$lt_FGREP
21504
21505 # A BSD- or MS-compatible name lister.
21506 NM=$lt_NM
21507
21508 # Whether we need soft or hard links.
21509 LN_S=$lt_LN_S
21510
21511 # What is the maximum length of a command?
21512 max_cmd_len=$max_cmd_len
21513
21514 # Object file suffix (normally "o").
21515 objext=$ac_objext
21516
21517 # Executable file suffix (normally "").
21518 exeext=$exeext
21519
21520 # whether the shell understands "unset".
21521 lt_unset=$lt_unset
21522
21523 # turn spaces into newlines.
21524 SP2NL=$lt_lt_SP2NL
21525
21526 # turn newlines into spaces.
21527 NL2SP=$lt_lt_NL2SP
21528
21529 # How to create reloadable object files.
21530 reload_flag=$lt_reload_flag
21531 reload_cmds=$lt_reload_cmds
21532
21533 # An object symbol dumper.
21534 OBJDUMP=$lt_OBJDUMP
21535
21536 # Method to check whether dependent libraries are shared objects.
21537 deplibs_check_method=$lt_deplibs_check_method
21538
21539 # Command to use when deplibs_check_method == "file_magic".
21540 file_magic_cmd=$lt_file_magic_cmd
21541
21542 # The archiver.
21543 AR=$lt_AR
21544 AR_FLAGS=$lt_AR_FLAGS
21545
21546 # A symbol stripping program.
21547 STRIP=$lt_STRIP
21548
21549 # Commands used to install an old-style archive.
21550 RANLIB=$lt_RANLIB
21551 old_postinstall_cmds=$lt_old_postinstall_cmds
21552 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21553
21554 # A C compiler.
21555 LTCC=$lt_CC
21556
21557 # LTCC compiler flags.
21558 LTCFLAGS=$lt_CFLAGS
21559
21560 # Take the output of nm and produce a listing of raw symbols and C names.
21561 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21562
21563 # Transform the output of nm in a proper C declaration.
21564 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21565
21566 # Transform the output of nm in a C name address pair.
21567 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21568
21569 # Transform the output of nm in a C name address pair when lib prefix is needed.
21570 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21571
21572 # The name of the directory that contains temporary libtool files.
21573 objdir=$objdir
21574
21575 # Shell to use when invoking shell scripts.
21576 SHELL=$lt_SHELL
21577
21578 # An echo program that does not interpret backslashes.
21579 ECHO=$lt_ECHO
21580
21581 # Used to examine libraries when file_magic_cmd begins with "file".
21582 MAGIC_CMD=$MAGIC_CMD
21583
21584 # Must we lock files when doing compilation?
21585 need_locks=$lt_need_locks
21586
21587 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21588 DSYMUTIL=$lt_DSYMUTIL
21589
21590 # Tool to change global to local symbols on Mac OS X.
21591 NMEDIT=$lt_NMEDIT
21592
21593 # Tool to manipulate fat objects and archives on Mac OS X.
21594 LIPO=$lt_LIPO
21595
21596 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21597 OTOOL=$lt_OTOOL
21598
21599 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21600 OTOOL64=$lt_OTOOL64
21601
21602 # Old archive suffix (normally "a").
21603 libext=$libext
21604
21605 # Shared library suffix (normally ".so").
21606 shrext_cmds=$lt_shrext_cmds
21607
21608 # The commands to extract the exported symbol list from a shared archive.
21609 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21610
21611 # Variables whose values should be saved in libtool wrapper scripts and
21612 # restored at link time.
21613 variables_saved_for_relink=$lt_variables_saved_for_relink
21614
21615 # Do we need the "lib" prefix for modules?
21616 need_lib_prefix=$need_lib_prefix
21617
21618 # Do we need a version for libraries?
21619 need_version=$need_version
21620
21621 # Library versioning type.
21622 version_type=$version_type
21623
21624 # Shared library runtime path variable.
21625 runpath_var=$runpath_var
21626
21627 # Shared library path variable.
21628 shlibpath_var=$shlibpath_var
21629
21630 # Is shlibpath searched before the hard-coded library search path?
21631 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21632
21633 # Format of library name prefix.
21634 libname_spec=$lt_libname_spec
21635
21636 # List of archive names. First name is the real one, the rest are links.
21637 # The last name is the one that the linker finds with -lNAME
21638 library_names_spec=$lt_library_names_spec
21639
21640 # The coded name of the library, if different from the real name.
21641 soname_spec=$lt_soname_spec
21642
21643 # Command to use after installation of a shared archive.
21644 postinstall_cmds=$lt_postinstall_cmds
21645
21646 # Command to use after uninstallation of a shared archive.
21647 postuninstall_cmds=$lt_postuninstall_cmds
21648
21649 # Commands used to finish a libtool library installation in a directory.
21650 finish_cmds=$lt_finish_cmds
21651
21652 # As "finish_cmds", except a single script fragment to be evaled but
21653 # not shown.
21654 finish_eval=$lt_finish_eval
21655
21656 # Whether we should hardcode library paths into libraries.
21657 hardcode_into_libs=$hardcode_into_libs
21658
21659 # Compile-time system search path for libraries.
21660 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21661
21662 # Run-time system search path for libraries.
21663 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21664
21665 # Whether dlopen is supported.
21666 dlopen_support=$enable_dlopen
21667
21668 # Whether dlopen of programs is supported.
21669 dlopen_self=$enable_dlopen_self
21670
21671 # Whether dlopen of statically linked programs is supported.
21672 dlopen_self_static=$enable_dlopen_self_static
21673
21674 # Commands to strip libraries.
21675 old_striplib=$lt_old_striplib
21676 striplib=$lt_striplib
21677
21678
21679 # The linker used to build libraries.
21680 LD=$lt_LD
21681
21682 # Commands used to build an old-style archive.
21683 old_archive_cmds=$lt_old_archive_cmds
21684
21685 # A language specific compiler.
21686 CC=$lt_compiler
21687
21688 # Is the compiler the GNU compiler?
21689 with_gcc=$GCC
21690
21691 # Compiler flag to turn off builtin functions.
21692 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21693
21694 # How to pass a linker flag through the compiler.
21695 wl=$lt_lt_prog_compiler_wl
21696
21697 # Additional compiler flags for building library objects.
21698 pic_flag=$lt_lt_prog_compiler_pic
21699
21700 # Compiler flag to prevent dynamic linking.
21701 link_static_flag=$lt_lt_prog_compiler_static
21702
21703 # Does compiler simultaneously support -c and -o options?
21704 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21705
21706 # Whether or not to add -lc for building shared libraries.
21707 build_libtool_need_lc=$archive_cmds_need_lc
21708
21709 # Whether or not to disallow shared libs when runtime libs are static.
21710 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21711
21712 # Compiler flag to allow reflexive dlopens.
21713 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21714
21715 # Compiler flag to generate shared objects directly from archives.
21716 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21717
21718 # Whether the compiler copes with passing no objects directly.
21719 compiler_needs_object=$lt_compiler_needs_object
21720
21721 # Create an old-style archive from a shared archive.
21722 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21723
21724 # Create a temporary old-style archive to link instead of a shared archive.
21725 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21726
21727 # Commands used to build a shared archive.
21728 archive_cmds=$lt_archive_cmds
21729 archive_expsym_cmds=$lt_archive_expsym_cmds
21730
21731 # Commands used to build a loadable module if different from building
21732 # a shared archive.
21733 module_cmds=$lt_module_cmds
21734 module_expsym_cmds=$lt_module_expsym_cmds
21735
21736 # Whether we are building with GNU ld or not.
21737 with_gnu_ld=$lt_with_gnu_ld
21738
21739 # Flag that allows shared libraries with undefined symbols to be built.
21740 allow_undefined_flag=$lt_allow_undefined_flag
21741
21742 # Flag that enforces no undefined symbols.
21743 no_undefined_flag=$lt_no_undefined_flag
21744
21745 # Flag to hardcode \$libdir into a binary during linking.
21746 # This must work even if \$libdir does not exist
21747 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21748
21749 # If ld is used when linking, flag to hardcode \$libdir into a binary
21750 # during linking. This must work even if \$libdir does not exist.
21751 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21752
21753 # Whether we need a single "-rpath" flag with a separated argument.
21754 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21755
21756 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21757 # DIR into the resulting binary.
21758 hardcode_direct=$hardcode_direct
21759
21760 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21761 # DIR into the resulting binary and the resulting library dependency is
21762 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21763 # library is relocated.
21764 hardcode_direct_absolute=$hardcode_direct_absolute
21765
21766 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21767 # into the resulting binary.
21768 hardcode_minus_L=$hardcode_minus_L
21769
21770 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21771 # into the resulting binary.
21772 hardcode_shlibpath_var=$hardcode_shlibpath_var
21773
21774 # Set to "yes" if building a shared library automatically hardcodes DIR
21775 # into the library and all subsequent libraries and executables linked
21776 # against it.
21777 hardcode_automatic=$hardcode_automatic
21778
21779 # Set to yes if linker adds runtime paths of dependent libraries
21780 # to runtime path list.
21781 inherit_rpath=$inherit_rpath
21782
21783 # Whether libtool must link a program against all its dependency libraries.
21784 link_all_deplibs=$link_all_deplibs
21785
21786 # Fix the shell variable \$srcfile for the compiler.
21787 fix_srcfile_path=$lt_fix_srcfile_path
21788
21789 # Set to "yes" if exported symbols are required.
21790 always_export_symbols=$always_export_symbols
21791
21792 # The commands to list exported symbols.
21793 export_symbols_cmds=$lt_export_symbols_cmds
21794
21795 # Symbols that should not be listed in the preloaded symbols.
21796 exclude_expsyms=$lt_exclude_expsyms
21797
21798 # Symbols that must always be exported.
21799 include_expsyms=$lt_include_expsyms
21800
21801 # Commands necessary for linking programs (against libraries) with templates.
21802 prelink_cmds=$lt_prelink_cmds
21803
21804 # Specify filename containing input files.
21805 file_list_spec=$lt_file_list_spec
21806
21807 # How to hardcode a shared library path into an executable.
21808 hardcode_action=$hardcode_action
21809
21810 # The directories searched by this compiler when creating a shared library.
21811 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21812
21813 # Dependencies to place before and after the objects being linked to
21814 # create a shared library.
21815 predep_objects=$lt_predep_objects
21816 postdep_objects=$lt_postdep_objects
21817 predeps=$lt_predeps
21818 postdeps=$lt_postdeps
21819
21820 # The library search path used internally by the compiler when linking
21821 # a shared library.
21822 compiler_lib_search_path=$lt_compiler_lib_search_path
21823
21824 # ### END LIBTOOL CONFIG
21825
21826 _LT_EOF
21827
21828 case $host_os in
21829 aix3*)
21830 cat <<\_LT_EOF >> "$cfgfile"
21831 # AIX sometimes has problems with the GCC collect2 program. For some
21832 # reason, if we set the COLLECT_NAMES environment variable, the problems
21833 # vanish in a puff of smoke.
21834 if test "X${COLLECT_NAMES+set}" != Xset; then
21835 COLLECT_NAMES=
21836 export COLLECT_NAMES
21837 fi
21838 _LT_EOF
21839 ;;
21840 esac
21841
21842
21843 ltmain="$ac_aux_dir/ltmain.sh"
21844
21845
21846 # We use sed instead of cat because bash on DJGPP gets confused if
21847 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21848 # text mode, it properly converts lines to CR/LF. This bash problem
21849 # is reportedly fixed, but why not run on old versions too?
21850 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21851 || (rm -f "$cfgfile"; exit 1)
21852
21853 case $xsi_shell in
21854 yes)
21855 cat << \_LT_EOF >> "$cfgfile"
21856
21857 # func_dirname file append nondir_replacement
21858 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21859 # otherwise set result to NONDIR_REPLACEMENT.
21860 func_dirname ()
21861 {
21862 case ${1} in
21863 */*) func_dirname_result="${1%/*}${2}" ;;
21864 * ) func_dirname_result="${3}" ;;
21865 esac
21866 }
21867
21868 # func_basename file
21869 func_basename ()
21870 {
21871 func_basename_result="${1##*/}"
21872 }
21873
21874 # func_dirname_and_basename file append nondir_replacement
21875 # perform func_basename and func_dirname in a single function
21876 # call:
21877 # dirname: Compute the dirname of FILE. If nonempty,
21878 # add APPEND to the result, otherwise set result
21879 # to NONDIR_REPLACEMENT.
21880 # value returned in "$func_dirname_result"
21881 # basename: Compute filename of FILE.
21882 # value retuned in "$func_basename_result"
21883 # Implementation must be kept synchronized with func_dirname
21884 # and func_basename. For efficiency, we do not delegate to
21885 # those functions but instead duplicate the functionality here.
21886 func_dirname_and_basename ()
21887 {
21888 case ${1} in
21889 */*) func_dirname_result="${1%/*}${2}" ;;
21890 * ) func_dirname_result="${3}" ;;
21891 esac
21892 func_basename_result="${1##*/}"
21893 }
21894
21895 # func_stripname prefix suffix name
21896 # strip PREFIX and SUFFIX off of NAME.
21897 # PREFIX and SUFFIX must not contain globbing or regex special
21898 # characters, hashes, percent signs, but SUFFIX may contain a leading
21899 # dot (in which case that matches only a dot).
21900 func_stripname ()
21901 {
21902 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21903 # positional parameters, so assign one to ordinary parameter first.
21904 func_stripname_result=${3}
21905 func_stripname_result=${func_stripname_result#"${1}"}
21906 func_stripname_result=${func_stripname_result%"${2}"}
21907 }
21908
21909 # func_opt_split
21910 func_opt_split ()
21911 {
21912 func_opt_split_opt=${1%%=*}
21913 func_opt_split_arg=${1#*=}
21914 }
21915
21916 # func_lo2o object
21917 func_lo2o ()
21918 {
21919 case ${1} in
21920 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21921 *) func_lo2o_result=${1} ;;
21922 esac
21923 }
21924
21925 # func_xform libobj-or-source
21926 func_xform ()
21927 {
21928 func_xform_result=${1%.*}.lo
21929 }
21930
21931 # func_arith arithmetic-term...
21932 func_arith ()
21933 {
21934 func_arith_result=$(( $* ))
21935 }
21936
21937 # func_len string
21938 # STRING may not start with a hyphen.
21939 func_len ()
21940 {
21941 func_len_result=${#1}
21942 }
21943
21944 _LT_EOF
21945 ;;
21946 *) # Bourne compatible functions.
21947 cat << \_LT_EOF >> "$cfgfile"
21948
21949 # func_dirname file append nondir_replacement
21950 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21951 # otherwise set result to NONDIR_REPLACEMENT.
21952 func_dirname ()
21953 {
21954 # Extract subdirectory from the argument.
21955 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21956 if test "X$func_dirname_result" = "X${1}"; then
21957 func_dirname_result="${3}"
21958 else
21959 func_dirname_result="$func_dirname_result${2}"
21960 fi
21961 }
21962
21963 # func_basename file
21964 func_basename ()
21965 {
21966 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21967 }
21968
21969
21970 # func_stripname prefix suffix name
21971 # strip PREFIX and SUFFIX off of NAME.
21972 # PREFIX and SUFFIX must not contain globbing or regex special
21973 # characters, hashes, percent signs, but SUFFIX may contain a leading
21974 # dot (in which case that matches only a dot).
21975 # func_strip_suffix prefix name
21976 func_stripname ()
21977 {
21978 case ${2} in
21979 .*) func_stripname_result=`$ECHO "X${3}" \
21980 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21981 *) func_stripname_result=`$ECHO "X${3}" \
21982 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21983 esac
21984 }
21985
21986 # sed scripts:
21987 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21988 my_sed_long_arg='1s/^-[^=]*=//'
21989
21990 # func_opt_split
21991 func_opt_split ()
21992 {
21993 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21994 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21995 }
21996
21997 # func_lo2o object
21998 func_lo2o ()
21999 {
22000 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22001 }
22002
22003 # func_xform libobj-or-source
22004 func_xform ()
22005 {
22006 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22007 }
22008
22009 # func_arith arithmetic-term...
22010 func_arith ()
22011 {
22012 func_arith_result=`expr "$@"`
22013 }
22014
22015 # func_len string
22016 # STRING may not start with a hyphen.
22017 func_len ()
22018 {
22019 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22020 }
22021
22022 _LT_EOF
22023 esac
22024
22025 case $lt_shell_append in
22026 yes)
22027 cat << \_LT_EOF >> "$cfgfile"
22028
22029 # func_append var value
22030 # Append VALUE to the end of shell variable VAR.
22031 func_append ()
22032 {
22033 eval "$1+=\$2"
22034 }
22035 _LT_EOF
22036 ;;
22037 *)
22038 cat << \_LT_EOF >> "$cfgfile"
22039
22040 # func_append var value
22041 # Append VALUE to the end of shell variable VAR.
22042 func_append ()
22043 {
22044 eval "$1=\$$1\$2"
22045 }
22046
22047 _LT_EOF
22048 ;;
22049 esac
22050
22051
22052 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22053 || (rm -f "$cfgfile"; exit 1)
22054
22055 mv -f "$cfgfile" "$ofile" ||
22056 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22057 chmod +x "$ofile"
22058
22059
22060 cat <<_LT_EOF >> "$ofile"
22061
22062 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22063
22064 # The linker used to build libraries.
22065 LD=$lt_LD_CXX
22066
22067 # Commands used to build an old-style archive.
22068 old_archive_cmds=$lt_old_archive_cmds_CXX
22069
22070 # A language specific compiler.
22071 CC=$lt_compiler_CXX
22072
22073 # Is the compiler the GNU compiler?
22074 with_gcc=$GCC_CXX
22075
22076 # Compiler flag to turn off builtin functions.
22077 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22078
22079 # How to pass a linker flag through the compiler.
22080 wl=$lt_lt_prog_compiler_wl_CXX
22081
22082 # Additional compiler flags for building library objects.
22083 pic_flag=$lt_lt_prog_compiler_pic_CXX
22084
22085 # Compiler flag to prevent dynamic linking.
22086 link_static_flag=$lt_lt_prog_compiler_static_CXX
22087
22088 # Does compiler simultaneously support -c and -o options?
22089 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22090
22091 # Whether or not to add -lc for building shared libraries.
22092 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22093
22094 # Whether or not to disallow shared libs when runtime libs are static.
22095 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22096
22097 # Compiler flag to allow reflexive dlopens.
22098 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22099
22100 # Compiler flag to generate shared objects directly from archives.
22101 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22102
22103 # Whether the compiler copes with passing no objects directly.
22104 compiler_needs_object=$lt_compiler_needs_object_CXX
22105
22106 # Create an old-style archive from a shared archive.
22107 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22108
22109 # Create a temporary old-style archive to link instead of a shared archive.
22110 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22111
22112 # Commands used to build a shared archive.
22113 archive_cmds=$lt_archive_cmds_CXX
22114 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22115
22116 # Commands used to build a loadable module if different from building
22117 # a shared archive.
22118 module_cmds=$lt_module_cmds_CXX
22119 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22120
22121 # Whether we are building with GNU ld or not.
22122 with_gnu_ld=$lt_with_gnu_ld_CXX
22123
22124 # Flag that allows shared libraries with undefined symbols to be built.
22125 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22126
22127 # Flag that enforces no undefined symbols.
22128 no_undefined_flag=$lt_no_undefined_flag_CXX
22129
22130 # Flag to hardcode \$libdir into a binary during linking.
22131 # This must work even if \$libdir does not exist
22132 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22133
22134 # If ld is used when linking, flag to hardcode \$libdir into a binary
22135 # during linking. This must work even if \$libdir does not exist.
22136 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22137
22138 # Whether we need a single "-rpath" flag with a separated argument.
22139 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22140
22141 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22142 # DIR into the resulting binary.
22143 hardcode_direct=$hardcode_direct_CXX
22144
22145 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22146 # DIR into the resulting binary and the resulting library dependency is
22147 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22148 # library is relocated.
22149 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22150
22151 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22152 # into the resulting binary.
22153 hardcode_minus_L=$hardcode_minus_L_CXX
22154
22155 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22156 # into the resulting binary.
22157 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22158
22159 # Set to "yes" if building a shared library automatically hardcodes DIR
22160 # into the library and all subsequent libraries and executables linked
22161 # against it.
22162 hardcode_automatic=$hardcode_automatic_CXX
22163
22164 # Set to yes if linker adds runtime paths of dependent libraries
22165 # to runtime path list.
22166 inherit_rpath=$inherit_rpath_CXX
22167
22168 # Whether libtool must link a program against all its dependency libraries.
22169 link_all_deplibs=$link_all_deplibs_CXX
22170
22171 # Fix the shell variable \$srcfile for the compiler.
22172 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22173
22174 # Set to "yes" if exported symbols are required.
22175 always_export_symbols=$always_export_symbols_CXX
22176
22177 # The commands to list exported symbols.
22178 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22179
22180 # Symbols that should not be listed in the preloaded symbols.
22181 exclude_expsyms=$lt_exclude_expsyms_CXX
22182
22183 # Symbols that must always be exported.
22184 include_expsyms=$lt_include_expsyms_CXX
22185
22186 # Commands necessary for linking programs (against libraries) with templates.
22187 prelink_cmds=$lt_prelink_cmds_CXX
22188
22189 # Specify filename containing input files.
22190 file_list_spec=$lt_file_list_spec_CXX
22191
22192 # How to hardcode a shared library path into an executable.
22193 hardcode_action=$hardcode_action_CXX
22194
22195 # The directories searched by this compiler when creating a shared library.
22196 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22197
22198 # Dependencies to place before and after the objects being linked to
22199 # create a shared library.
22200 predep_objects=$lt_predep_objects_CXX
22201 postdep_objects=$lt_postdep_objects_CXX
22202 predeps=$lt_predeps_CXX
22203 postdeps=$lt_postdeps_CXX
22204
22205 # The library search path used internally by the compiler when linking
22206 # a shared library.
22207 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22208
22209 # ### END LIBTOOL TAG CONFIG: CXX
22210 _LT_EOF
22211
22212 ;;
22213
22214 esac
22215 done # for ac_tag
22216
22217
22218 as_fn_exit 0
22219 _ACEOF
22220 ac_clean_files=$ac_clean_files_save
22221
22222 test $ac_write_fail = 0 ||
22223 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
22224
22225
22226 # configure is writing to config.log, and then calls config.status.
22227 # config.status does its own redirection, appending to config.log.
22228 # Unfortunately, on DOS this fails, as config.log is still kept open
22229 # by configure, so config.status won't be able to write to it; its
22230 # output is simply discarded. So we exec the FD to /dev/null,
22231 # effectively closing config.log, so it can be properly (re)opened and
22232 # appended to by config.status. When coming back to configure, we
22233 # need to make the FD available again.
22234 if test "$no_create" != yes; then
22235 ac_cs_success=:
22236 ac_config_status_args=
22237 test "$silent" = yes &&
22238 ac_config_status_args="$ac_config_status_args --quiet"
22239 exec 5>/dev/null
22240 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22241 exec 5>>config.log
22242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22243 # would make configure fail if this is the last instruction.
22244 $ac_cs_success || as_fn_exit $?
22245 fi
22246 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22248 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22249 fi
22250