]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gprofng/libcollector/configure
9dfc4ab399479d87b054ce263399f42c374a620c
[thirdparty/binutils-gdb.git] / gprofng / libcollector / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gprofng 2.41.50.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='gprofng'
589 PACKAGE_TARNAME='gprofng'
590 PACKAGE_VERSION='2.41.50'
591 PACKAGE_STRING='gprofng 2.41.50'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="libcol_util.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 GPROFNG_NO_NONNULL_COMPARE_CFLAGS
637 CXXCPP
638 OTOOL64
639 OTOOL
640 LIPO
641 NMEDIT
642 DSYMUTIL
643 OBJDUMP
644 LN_S
645 NM
646 ac_ct_DUMPBIN
647 DUMPBIN
648 LD
649 FGREP
650 SED
651 LIBTOOL
652 ac_ct_AR
653 AR
654 RANLIB
655 am__fastdepCXX_FALSE
656 am__fastdepCXX_TRUE
657 CXXDEPMODE
658 ac_ct_CXX
659 CXXFLAGS
660 CXX
661 EGREP
662 GREP
663 CPP
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 am__nodep
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 MAINT
682 MAINTAINER_MODE_FALSE
683 MAINTAINER_MODE_TRUE
684 AM_BACKSLASH
685 AM_DEFAULT_VERBOSITY
686 AM_DEFAULT_V
687 AM_V
688 am__untar
689 am__tar
690 AMTAR
691 am__leading_dot
692 SET_MAKE
693 AWK
694 mkdir_p
695 MKDIR_P
696 INSTALL_STRIP_PROGRAM
697 STRIP
698 install_sh
699 MAKEINFO
700 AUTOHEADER
701 AUTOMAKE
702 AUTOCONF
703 ACLOCAL
704 VERSION
705 PACKAGE
706 CYGPATH_W
707 am__isrc
708 INSTALL_DATA
709 INSTALL_SCRIPT
710 INSTALL_PROGRAM
711 target_os
712 target_vendor
713 target_cpu
714 target
715 host_os
716 host_vendor
717 host_cpu
718 host
719 build_os
720 build_vendor
721 build_cpu
722 build
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_silent_rules
765 enable_maintainer_mode
766 enable_dependency_tracking
767 enable_shared
768 enable_static
769 with_pic
770 enable_fast_install
771 with_gnu_ld
772 enable_libtool_lock
773 '
774 ac_precious_vars='build_alias
775 host_alias
776 target_alias
777 CC
778 CFLAGS
779 LDFLAGS
780 LIBS
781 CPPFLAGS
782 CPP
783 CXX
784 CXXFLAGS
785 CCC
786 CXXCPP'
787
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
846 fi
847
848 case $ac_option in
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *=) ac_optarg= ;;
851 *) ac_optarg=yes ;;
852 esac
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
864
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
879
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
884
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
917
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
953
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
958
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
988
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1062
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1098
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1121
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1137
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
1172 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192 ;;
1193
1194 esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error $? "missing argument to $ac_option"
1200 fi
1201
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1208 fi
1209
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1215 do
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1291 fi
1292 else
1293 ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327 \`configure' configures gprofng 2.41.50 to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/gprofng]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1380 _ACEOF
1381
1382 cat <<\_ACEOF
1383
1384 Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of gprofng 2.41.50:";;
1399 esac
1400 cat <<\_ACEOF
1401
1402 Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-silent-rules less verbose build output (undo: "make V=1")
1407 --disable-silent-rules verbose build output (undo: "make V=0")
1408 --enable-maintainer-mode
1409 enable make rules and dependencies not useful (and
1410 sometimes confusing) to the casual installer
1411 --enable-dependency-tracking
1412 do not reject slow dependency extractors
1413 --disable-dependency-tracking
1414 speeds up one-time build
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --disable-libtool-lock avoid locking (might break parallel builds)
1420
1421 Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-pic try to use only PIC/non-PIC objects [default=use
1425 both]
1426 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1427
1428 Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
1433 LIBS libraries to pass to the linker, e.g. -l<library>
1434 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435 you have headers in a nonstandard directory <include dir>
1436 CPP C preprocessor
1437 CXX C++ compiler command
1438 CXXFLAGS C++ compiler flags
1439 CXXCPP C++ preprocessor
1440
1441 Use these variables to override the choices made by `configure' or to help
1442 it to find libraries and programs with nonstandard names/locations.
1443
1444 Report bugs to the package provider.
1445 _ACEOF
1446 ac_status=$?
1447 fi
1448
1449 if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454 continue
1455 ac_builddir=.
1456
1457 case "$ac_dir" in
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *)
1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467 esac
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1472
1473 case $srcdir in
1474 .) # We are building in place.
1475 ac_srcdir=.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 esac
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1497 else
1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1501 done
1502 fi
1503
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1506 cat <<\_ACEOF
1507 gprofng configure 2.41.50
1508 generated by GNU Autoconf 2.69
1509
1510 Copyright (C) 2012 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1513 _ACEOF
1514 exit
1515 fi
1516
1517 ## ------------------------ ##
1518 ## Autoconf initialization. ##
1519 ## ------------------------ ##
1520
1521 # ac_fn_c_try_compile LINENO
1522 # --------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_compile ()
1525 {
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1529 case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532 esac
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1541 fi
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1547 ac_retval=0
1548 else
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1551
1552 ac_retval=1
1553 fi
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1556
1557 } # ac_fn_c_try_compile
1558
1559 # ac_fn_c_try_cpp LINENO
1560 # ----------------------
1561 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_cpp ()
1563 {
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 if { { ac_try="$ac_cpp conftest.$ac_ext"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } > conftest.i && {
1581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 }; then :
1584 ac_retval=0
1585 else
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589 ac_retval=1
1590 fi
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1593
1594 } # ac_fn_c_try_cpp
1595
1596 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1599 # the include files in INCLUDES and setting the cache variable VAR
1600 # accordingly.
1601 ac_fn_c_check_header_mongrel ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if eval \${$3+:} false; then :
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606 $as_echo_n "checking for $2... " >&6; }
1607 if eval \${$3+:} false; then :
1608 $as_echo_n "(cached) " >&6
1609 fi
1610 eval ac_res=\$$3
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612 $as_echo "$ac_res" >&6; }
1613 else
1614 # Is the header compilable?
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1616 $as_echo_n "checking $2 usability... " >&6; }
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1619 $4
1620 #include <$2>
1621 _ACEOF
1622 if ac_fn_c_try_compile "$LINENO"; then :
1623 ac_header_compiler=yes
1624 else
1625 ac_header_compiler=no
1626 fi
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1629 $as_echo "$ac_header_compiler" >&6; }
1630
1631 # Is the header present?
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1633 $as_echo_n "checking $2 presence... " >&6; }
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1636 #include <$2>
1637 _ACEOF
1638 if ac_fn_c_try_cpp "$LINENO"; then :
1639 ac_header_preproc=yes
1640 else
1641 ac_header_preproc=no
1642 fi
1643 rm -f conftest.err conftest.i conftest.$ac_ext
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1645 $as_echo "$ac_header_preproc" >&6; }
1646
1647 # So? What about this header?
1648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1649 yes:no: )
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1651 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654 ;;
1655 no:yes:* )
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1657 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1659 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1661 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1663 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1665 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1666 ;;
1667 esac
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1672 else
1673 eval "$3=\$ac_header_compiler"
1674 fi
1675 eval ac_res=\$$3
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1678 fi
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680
1681 } # ac_fn_c_check_header_mongrel
1682
1683 # ac_fn_c_try_run LINENO
1684 # ----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686 # that executables *can* be run.
1687 ac_fn_c_try_run ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701 { { case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_try") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; }; }; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: program exited with status $ac_status" >&5
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=$ac_status
1718 fi
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_run
1724
1725 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists and can be compiled using the include files in
1728 # INCLUDES, setting the cache variable VAR accordingly.
1729 ac_fn_c_check_header_compile ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736 else
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 $4
1740 #include <$2>
1741 _ACEOF
1742 if ac_fn_c_try_compile "$LINENO"; then :
1743 eval "$3=yes"
1744 else
1745 eval "$3=no"
1746 fi
1747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748 fi
1749 eval ac_res=\$$3
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_header_compile
1755
1756 # ac_fn_cxx_try_compile LINENO
1757 # ----------------------------
1758 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_cxx_try_compile ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext
1763 if { { ac_try="$ac_compile"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_compile") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1776 fi
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_cxx_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest.$ac_objext; then :
1782 ac_retval=0
1783 else
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787 ac_retval=1
1788 fi
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1791
1792 } # ac_fn_cxx_try_compile
1793
1794 # ac_fn_c_try_link LINENO
1795 # -----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_c_try_link ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext conftest$ac_exeext
1801 if { { ac_try="$ac_link"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>conftest.err
1809 ac_status=$?
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1814 fi
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest$ac_exeext && {
1820 test "$cross_compiling" = yes ||
1821 test -x conftest$ac_exeext
1822 }; then :
1823 ac_retval=0
1824 else
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 ac_retval=1
1829 fi
1830 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1831 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1832 # interfere with the next link command; also delete a directory that is
1833 # left behind by Apple's compiler. We do this before executing the actions.
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_link
1839
1840 # ac_fn_c_check_func LINENO FUNC VAR
1841 # ----------------------------------
1842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1843 ac_fn_c_check_func ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1850 else
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1855 #define $2 innocuous_$2
1856
1857 /* System header to define __stub macros and hopefully few prototypes,
1858 which can conflict with char $2 (); below.
1859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1860 <limits.h> exists even on freestanding compilers. */
1861
1862 #ifdef __STDC__
1863 # include <limits.h>
1864 #else
1865 # include <assert.h>
1866 #endif
1867
1868 #undef $2
1869
1870 /* Override any GCC internal prototype to avoid an error.
1871 Use char because int might match the return type of a GCC
1872 builtin and then its argument prototype would still apply. */
1873 #ifdef __cplusplus
1874 extern "C"
1875 #endif
1876 char $2 ();
1877 /* The GNU C library defines this for functions which it implements
1878 to always fail with ENOSYS. Some functions are actually named
1879 something starting with __ and the normal name is an alias. */
1880 #if defined __stub_$2 || defined __stub___$2
1881 choke me
1882 #endif
1883
1884 int
1885 main ()
1886 {
1887 return $2 ();
1888 ;
1889 return 0;
1890 }
1891 _ACEOF
1892 if ac_fn_c_try_link "$LINENO"; then :
1893 eval "$3=yes"
1894 else
1895 eval "$3=no"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext \
1898 conftest$ac_exeext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905 } # ac_fn_c_check_func
1906
1907 # ac_fn_cxx_try_cpp LINENO
1908 # ------------------------
1909 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_cxx_try_cpp ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if { { ac_try="$ac_cpp conftest.$ac_ext"
1914 case "(($ac_try" in
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1921 ac_status=$?
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1926 fi
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } > conftest.i && {
1929 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1930 test ! -s conftest.err
1931 }; then :
1932 ac_retval=0
1933 else
1934 $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1936
1937 ac_retval=1
1938 fi
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status $ac_retval
1941
1942 } # ac_fn_cxx_try_cpp
1943
1944 # ac_fn_cxx_try_link LINENO
1945 # -------------------------
1946 # Try to link conftest.$ac_ext, and return whether this succeeded.
1947 ac_fn_cxx_try_link ()
1948 {
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 rm -f conftest.$ac_objext conftest$ac_exeext
1951 if { { ac_try="$ac_link"
1952 case "(($ac_try" in
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1955 esac
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_link") 2>conftest.err
1959 ac_status=$?
1960 if test -s conftest.err; then
1961 grep -v '^ *+' conftest.err >conftest.er1
1962 cat conftest.er1 >&5
1963 mv -f conftest.er1 conftest.err
1964 fi
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } && {
1967 test -z "$ac_cxx_werror_flag" ||
1968 test ! -s conftest.err
1969 } && test -s conftest$ac_exeext && {
1970 test "$cross_compiling" = yes ||
1971 test -x conftest$ac_exeext
1972 }; then :
1973 ac_retval=0
1974 else
1975 $as_echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1977
1978 ac_retval=1
1979 fi
1980 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1981 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1982 # interfere with the next link command; also delete a directory that is
1983 # left behind by Apple's compiler. We do this before executing the actions.
1984 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 as_fn_set_status $ac_retval
1987
1988 } # ac_fn_cxx_try_link
1989 cat >config.log <<_ACEOF
1990 This file contains any messages produced by compilers while
1991 running configure, to aid debugging if configure makes a mistake.
1992
1993 It was created by gprofng $as_me 2.41.50, which was
1994 generated by GNU Autoconf 2.69. Invocation command line was
1995
1996 $ $0 $@
1997
1998 _ACEOF
1999 exec 5>>config.log
2000 {
2001 cat <<_ASUNAME
2002 ## --------- ##
2003 ## Platform. ##
2004 ## --------- ##
2005
2006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2011
2012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2014
2015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2018 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2022
2023 _ASUNAME
2024
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
2027 do
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
2030 $as_echo "PATH: $as_dir"
2031 done
2032 IFS=$as_save_IFS
2033
2034 } >&5
2035
2036 cat >&5 <<_ACEOF
2037
2038
2039 ## ----------- ##
2040 ## Core tests. ##
2041 ## ----------- ##
2042
2043 _ACEOF
2044
2045
2046 # Keep a trace of the command line.
2047 # Strip out --no-create and --no-recursion so they do not pile up.
2048 # Strip out --silent because we don't want to record it for future runs.
2049 # Also quote any args containing shell meta-characters.
2050 # Make two passes to allow for proper duplicate-argument suppression.
2051 ac_configure_args=
2052 ac_configure_args0=
2053 ac_configure_args1=
2054 ac_must_keep_next=false
2055 for ac_pass in 1 2
2056 do
2057 for ac_arg
2058 do
2059 case $ac_arg in
2060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2062 | -silent | --silent | --silen | --sile | --sil)
2063 continue ;;
2064 *\'*)
2065 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2066 esac
2067 case $ac_pass in
2068 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2069 2)
2070 as_fn_append ac_configure_args1 " '$ac_arg'"
2071 if test $ac_must_keep_next = true; then
2072 ac_must_keep_next=false # Got value, back to normal.
2073 else
2074 case $ac_arg in
2075 *=* | --config-cache | -C | -disable-* | --disable-* \
2076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2078 | -with-* | --with-* | -without-* | --without-* | --x)
2079 case "$ac_configure_args0 " in
2080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2081 esac
2082 ;;
2083 -* ) ac_must_keep_next=true ;;
2084 esac
2085 fi
2086 as_fn_append ac_configure_args " '$ac_arg'"
2087 ;;
2088 esac
2089 done
2090 done
2091 { ac_configure_args0=; unset ac_configure_args0;}
2092 { ac_configure_args1=; unset ac_configure_args1;}
2093
2094 # When interrupted or exit'd, cleanup temporary files, and complete
2095 # config.log. We remove comments because anyway the quotes in there
2096 # would cause problems or look ugly.
2097 # WARNING: Use '\'' to represent an apostrophe within the trap.
2098 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2099 trap 'exit_status=$?
2100 # Save into config.log some information that might help in debugging.
2101 {
2102 echo
2103
2104 $as_echo "## ---------------- ##
2105 ## Cache variables. ##
2106 ## ---------------- ##"
2107 echo
2108 # The following way of writing the cache mishandles newlines in values,
2109 (
2110 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2111 eval ac_val=\$$ac_var
2112 case $ac_val in #(
2113 *${as_nl}*)
2114 case $ac_var in #(
2115 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2116 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2117 esac
2118 case $ac_var in #(
2119 _ | IFS | as_nl) ;; #(
2120 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2121 *) { eval $ac_var=; unset $ac_var;} ;;
2122 esac ;;
2123 esac
2124 done
2125 (set) 2>&1 |
2126 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2127 *${as_nl}ac_space=\ *)
2128 sed -n \
2129 "s/'\''/'\''\\\\'\'''\''/g;
2130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2131 ;; #(
2132 *)
2133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2134 ;;
2135 esac |
2136 sort
2137 )
2138 echo
2139
2140 $as_echo "## ----------------- ##
2141 ## Output variables. ##
2142 ## ----------------- ##"
2143 echo
2144 for ac_var in $ac_subst_vars
2145 do
2146 eval ac_val=\$$ac_var
2147 case $ac_val in
2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2149 esac
2150 $as_echo "$ac_var='\''$ac_val'\''"
2151 done | sort
2152 echo
2153
2154 if test -n "$ac_subst_files"; then
2155 $as_echo "## ------------------- ##
2156 ## File substitutions. ##
2157 ## ------------------- ##"
2158 echo
2159 for ac_var in $ac_subst_files
2160 do
2161 eval ac_val=\$$ac_var
2162 case $ac_val in
2163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164 esac
2165 $as_echo "$ac_var='\''$ac_val'\''"
2166 done | sort
2167 echo
2168 fi
2169
2170 if test -s confdefs.h; then
2171 $as_echo "## ----------- ##
2172 ## confdefs.h. ##
2173 ## ----------- ##"
2174 echo
2175 cat confdefs.h
2176 echo
2177 fi
2178 test "$ac_signal" != 0 &&
2179 $as_echo "$as_me: caught signal $ac_signal"
2180 $as_echo "$as_me: exit $exit_status"
2181 } >&5
2182 rm -f core *.core core.conftest.* &&
2183 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2184 exit $exit_status
2185 ' 0
2186 for ac_signal in 1 2 13 15; do
2187 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2188 done
2189 ac_signal=0
2190
2191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2192 rm -f -r conftest* confdefs.h
2193
2194 $as_echo "/* confdefs.h */" > confdefs.h
2195
2196 # Predefined preprocessor variables.
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_NAME "$PACKAGE_NAME"
2200 _ACEOF
2201
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2204 _ACEOF
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2208 _ACEOF
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_STRING "$PACKAGE_STRING"
2212 _ACEOF
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2216 _ACEOF
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_URL "$PACKAGE_URL"
2220 _ACEOF
2221
2222
2223 # Let the site file select an alternate cache file if it wants to.
2224 # Prefer an explicitly selected file to automatically selected ones.
2225 ac_site_file1=NONE
2226 ac_site_file2=NONE
2227 if test -n "$CONFIG_SITE"; then
2228 # We do not want a PATH search for config.site.
2229 case $CONFIG_SITE in #((
2230 -*) ac_site_file1=./$CONFIG_SITE;;
2231 */*) ac_site_file1=$CONFIG_SITE;;
2232 *) ac_site_file1=./$CONFIG_SITE;;
2233 esac
2234 elif test "x$prefix" != xNONE; then
2235 ac_site_file1=$prefix/share/config.site
2236 ac_site_file2=$prefix/etc/config.site
2237 else
2238 ac_site_file1=$ac_default_prefix/share/config.site
2239 ac_site_file2=$ac_default_prefix/etc/config.site
2240 fi
2241 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2242 do
2243 test "x$ac_site_file" = xNONE && continue
2244 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2246 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2247 sed 's/^/| /' "$ac_site_file" >&5
2248 . "$ac_site_file" \
2249 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251 as_fn_error $? "failed to load site script $ac_site_file
2252 See \`config.log' for more details" "$LINENO" 5; }
2253 fi
2254 done
2255
2256 if test -r "$cache_file"; then
2257 # Some versions of bash will fail to source /dev/null (special files
2258 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2259 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2261 $as_echo "$as_me: loading cache $cache_file" >&6;}
2262 case $cache_file in
2263 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2264 *) . "./$cache_file";;
2265 esac
2266 fi
2267 else
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2269 $as_echo "$as_me: creating cache $cache_file" >&6;}
2270 >$cache_file
2271 fi
2272
2273 # Check that the precious variables saved in the cache have kept the same
2274 # value.
2275 ac_cache_corrupted=false
2276 for ac_var in $ac_precious_vars; do
2277 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2278 eval ac_new_set=\$ac_env_${ac_var}_set
2279 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2280 eval ac_new_val=\$ac_env_${ac_var}_value
2281 case $ac_old_set,$ac_new_set in
2282 set,)
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2284 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2285 ac_cache_corrupted=: ;;
2286 ,set)
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2288 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2289 ac_cache_corrupted=: ;;
2290 ,);;
2291 *)
2292 if test "x$ac_old_val" != "x$ac_new_val"; then
2293 # differences in whitespace do not lead to failure.
2294 ac_old_val_w=`echo x $ac_old_val`
2295 ac_new_val_w=`echo x $ac_new_val`
2296 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2298 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2299 ac_cache_corrupted=:
2300 else
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2302 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2303 eval $ac_var=\$ac_old_val
2304 fi
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2306 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2308 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2309 fi;;
2310 esac
2311 # Pass precious variables to config.status.
2312 if test "$ac_new_set" = set; then
2313 case $ac_new_val in
2314 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2315 *) ac_arg=$ac_var=$ac_new_val ;;
2316 esac
2317 case " $ac_configure_args " in
2318 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2319 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2320 esac
2321 fi
2322 done
2323 if $ac_cache_corrupted; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2327 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2328 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2329 fi
2330 ## -------------------- ##
2331 ## Main body of script. ##
2332 ## -------------------- ##
2333
2334 ac_ext=c
2335 ac_cpp='$CPP $CPPFLAGS'
2336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2339
2340
2341
2342
2343
2344
2345 ac_aux_dir=
2346 for ac_dir in ../.. "$srcdir"/../..; do
2347 if test -f "$ac_dir/install-sh"; then
2348 ac_aux_dir=$ac_dir
2349 ac_install_sh="$ac_aux_dir/install-sh -c"
2350 break
2351 elif test -f "$ac_dir/install.sh"; then
2352 ac_aux_dir=$ac_dir
2353 ac_install_sh="$ac_aux_dir/install.sh -c"
2354 break
2355 elif test -f "$ac_dir/shtool"; then
2356 ac_aux_dir=$ac_dir
2357 ac_install_sh="$ac_aux_dir/shtool install -c"
2358 break
2359 fi
2360 done
2361 if test -z "$ac_aux_dir"; then
2362 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2363 fi
2364
2365 # These three variables are undocumented and unsupported,
2366 # and are intended to be withdrawn in a future Autoconf release.
2367 # They can cause serious problems if a builder's source tree is in a directory
2368 # whose full name contains unusual characters.
2369 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2370 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2371 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2372
2373
2374 # Make sure we can run config.sub.
2375 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2376 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2377
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2379 $as_echo_n "checking build system type... " >&6; }
2380 if ${ac_cv_build+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 ac_build_alias=$build_alias
2384 test "x$ac_build_alias" = x &&
2385 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2386 test "x$ac_build_alias" = x &&
2387 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2388 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2389 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2390
2391 fi
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2393 $as_echo "$ac_cv_build" >&6; }
2394 case $ac_cv_build in
2395 *-*-*) ;;
2396 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2397 esac
2398 build=$ac_cv_build
2399 ac_save_IFS=$IFS; IFS='-'
2400 set x $ac_cv_build
2401 shift
2402 build_cpu=$1
2403 build_vendor=$2
2404 shift; shift
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2407 build_os=$*
2408 IFS=$ac_save_IFS
2409 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2410
2411
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2413 $as_echo_n "checking host system type... " >&6; }
2414 if ${ac_cv_host+:} false; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 if test "x$host_alias" = x; then
2418 ac_cv_host=$ac_cv_build
2419 else
2420 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2421 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2422 fi
2423
2424 fi
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2426 $as_echo "$ac_cv_host" >&6; }
2427 case $ac_cv_host in
2428 *-*-*) ;;
2429 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2430 esac
2431 host=$ac_cv_host
2432 ac_save_IFS=$IFS; IFS='-'
2433 set x $ac_cv_host
2434 shift
2435 host_cpu=$1
2436 host_vendor=$2
2437 shift; shift
2438 # Remember, the first character of IFS is used to create $*,
2439 # except with old shells:
2440 host_os=$*
2441 IFS=$ac_save_IFS
2442 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2443
2444
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2446 $as_echo_n "checking target system type... " >&6; }
2447 if ${ac_cv_target+:} false; then :
2448 $as_echo_n "(cached) " >&6
2449 else
2450 if test "x$target_alias" = x; then
2451 ac_cv_target=$ac_cv_host
2452 else
2453 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2454 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2455 fi
2456
2457 fi
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2459 $as_echo "$ac_cv_target" >&6; }
2460 case $ac_cv_target in
2461 *-*-*) ;;
2462 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2463 esac
2464 target=$ac_cv_target
2465 ac_save_IFS=$IFS; IFS='-'
2466 set x $ac_cv_target
2467 shift
2468 target_cpu=$1
2469 target_vendor=$2
2470 shift; shift
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2473 target_os=$*
2474 IFS=$ac_save_IFS
2475 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2476
2477
2478 # The aliases save the names the user supplied, while $host etc.
2479 # will get canonicalized.
2480 test -n "$target_alias" &&
2481 test "$program_prefix$program_suffix$program_transform_name" = \
2482 NONENONEs,x,x, &&
2483 program_prefix=${target_alias}-
2484 am__api_version='1.15'
2485
2486 # Find a good install program. We prefer a C program (faster),
2487 # so one script is as good as another. But avoid the broken or
2488 # incompatible versions:
2489 # SysV /etc/install, /usr/sbin/install
2490 # SunOS /usr/etc/install
2491 # IRIX /sbin/install
2492 # AIX /bin/install
2493 # AmigaOS /C/install, which installs bootblocks on floppy discs
2494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2497 # OS/2's system install, which has a completely different semantic
2498 # ./install, which can be erroneously created by make from ./install.sh.
2499 # Reject install programs that cannot install multiple files.
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2501 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2502 if test -z "$INSTALL"; then
2503 if ${ac_cv_path_install+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 # Account for people who put trailing slashes in PATH elements.
2512 case $as_dir/ in #((
2513 ./ | .// | /[cC]/* | \
2514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2515 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2516 /usr/ucb/* ) ;;
2517 *)
2518 # OSF1 and SCO ODT 3.0 have their own names for install.
2519 # Don't use installbsd from OSF since it installs stuff as root
2520 # by default.
2521 for ac_prog in ginstall scoinst install; do
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2524 if test $ac_prog = install &&
2525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526 # AIX install. It has an incompatible calling convention.
2527 :
2528 elif test $ac_prog = install &&
2529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530 # program-specific install script used by HP pwplus--don't use.
2531 :
2532 else
2533 rm -rf conftest.one conftest.two conftest.dir
2534 echo one > conftest.one
2535 echo two > conftest.two
2536 mkdir conftest.dir
2537 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2538 test -s conftest.one && test -s conftest.two &&
2539 test -s conftest.dir/conftest.one &&
2540 test -s conftest.dir/conftest.two
2541 then
2542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2543 break 3
2544 fi
2545 fi
2546 fi
2547 done
2548 done
2549 ;;
2550 esac
2551
2552 done
2553 IFS=$as_save_IFS
2554
2555 rm -rf conftest.one conftest.two conftest.dir
2556
2557 fi
2558 if test "${ac_cv_path_install+set}" = set; then
2559 INSTALL=$ac_cv_path_install
2560 else
2561 # As a last resort, use the slow shell script. Don't cache a
2562 # value for INSTALL within a source directory, because that will
2563 # break other packages using the cache if that directory is
2564 # removed, or if the value is a relative name.
2565 INSTALL=$ac_install_sh
2566 fi
2567 fi
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2569 $as_echo "$INSTALL" >&6; }
2570
2571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2572 # It thinks the first close brace ends the variable substitution.
2573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2574
2575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2576
2577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2578
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2580 $as_echo_n "checking whether build environment is sane... " >&6; }
2581 # Reject unsafe characters in $srcdir or the absolute working directory
2582 # name. Accept space and tab only in the latter.
2583 am_lf='
2584 '
2585 case `pwd` in
2586 *[\\\"\#\$\&\'\`$am_lf]*)
2587 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2588 esac
2589 case $srcdir in
2590 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2591 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2592 esac
2593
2594 # Do 'set' in a subshell so we don't clobber the current shell's
2595 # arguments. Must try -L first in case configure is actually a
2596 # symlink; some systems play weird games with the mod time of symlinks
2597 # (eg FreeBSD returns the mod time of the symlink's containing
2598 # directory).
2599 if (
2600 am_has_slept=no
2601 for am_try in 1 2; do
2602 echo "timestamp, slept: $am_has_slept" > conftest.file
2603 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2604 if test "$*" = "X"; then
2605 # -L didn't work.
2606 set X `ls -t "$srcdir/configure" conftest.file`
2607 fi
2608 if test "$*" != "X $srcdir/configure conftest.file" \
2609 && test "$*" != "X conftest.file $srcdir/configure"; then
2610
2611 # If neither matched, then we have a broken ls. This can happen
2612 # if, for instance, CONFIG_SHELL is bash and it inherits a
2613 # broken ls alias from the environment. This has actually
2614 # happened. Such a system could not be considered "sane".
2615 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2616 alias in your environment" "$LINENO" 5
2617 fi
2618 if test "$2" = conftest.file || test $am_try -eq 2; then
2619 break
2620 fi
2621 # Just in case.
2622 sleep 1
2623 am_has_slept=yes
2624 done
2625 test "$2" = conftest.file
2626 )
2627 then
2628 # Ok.
2629 :
2630 else
2631 as_fn_error $? "newly created file is older than distributed files!
2632 Check your system clock" "$LINENO" 5
2633 fi
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2636 # If we didn't sleep, we still need to ensure time stamps of config.status and
2637 # generated files are strictly newer.
2638 am_sleep_pid=
2639 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2640 ( sleep 1 ) &
2641 am_sleep_pid=$!
2642 fi
2643
2644 rm -f conftest.file
2645
2646 test "$program_prefix" != NONE &&
2647 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2648 # Use a double $ so make ignores it.
2649 test "$program_suffix" != NONE &&
2650 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2651 # Double any \ or $.
2652 # By default was `s,x,x', remove it if useless.
2653 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2654 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2655
2656 # Expand $ac_aux_dir to an absolute path.
2657 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2658
2659 if test x"${MISSING+set}" != xset; then
2660 case $am_aux_dir in
2661 *\ * | *\ *)
2662 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2663 *)
2664 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2665 esac
2666 fi
2667 # Use eval to expand $SHELL
2668 if eval "$MISSING --is-lightweight"; then
2669 am_missing_run="$MISSING "
2670 else
2671 am_missing_run=
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2673 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2674 fi
2675
2676 if test x"${install_sh+set}" != xset; then
2677 case $am_aux_dir in
2678 *\ * | *\ *)
2679 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2680 *)
2681 install_sh="\${SHELL} $am_aux_dir/install-sh"
2682 esac
2683 fi
2684
2685 # Installed binaries are usually stripped using 'strip' when the user
2686 # run "make install-strip". However 'strip' might not be the right
2687 # tool to use in cross-compilation environments, therefore Automake
2688 # will honor the 'STRIP' environment variable to overrule this program.
2689 if test "$cross_compiling" != no; then
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}strip; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if ${ac_cv_prog_STRIP+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test -n "$STRIP"; then
2699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712 done
2713 done
2714 IFS=$as_save_IFS
2715
2716 fi
2717 fi
2718 STRIP=$ac_cv_prog_STRIP
2719 if test -n "$STRIP"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2721 $as_echo "$STRIP" >&6; }
2722 else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2725 fi
2726
2727
2728 fi
2729 if test -z "$ac_cv_prog_STRIP"; then
2730 ac_ct_STRIP=$STRIP
2731 # Extract the first word of "strip", so it can be a program name with args.
2732 set dummy strip; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 if test -n "$ac_ct_STRIP"; then
2739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_ac_ct_STRIP="strip"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 fi
2757 fi
2758 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2759 if test -n "$ac_ct_STRIP"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2761 $as_echo "$ac_ct_STRIP" >&6; }
2762 else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2765 fi
2766
2767 if test "x$ac_ct_STRIP" = x; then
2768 STRIP=":"
2769 else
2770 case $cross_compiling:$ac_tool_warned in
2771 yes:)
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2774 ac_tool_warned=yes ;;
2775 esac
2776 STRIP=$ac_ct_STRIP
2777 fi
2778 else
2779 STRIP="$ac_cv_prog_STRIP"
2780 fi
2781
2782 fi
2783 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2784
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2786 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2787 if test -z "$MKDIR_P"; then
2788 if ${ac_cv_path_mkdir+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2793 do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_prog in mkdir gmkdir; do
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2799 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2800 'mkdir (GNU coreutils) '* | \
2801 'mkdir (coreutils) '* | \
2802 'mkdir (fileutils) '4.1*)
2803 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2804 break 3;;
2805 esac
2806 done
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 fi
2812
2813 test -d ./--version && rmdir ./--version
2814 if test "${ac_cv_path_mkdir+set}" = set; then
2815 MKDIR_P="$ac_cv_path_mkdir -p"
2816 else
2817 # As a last resort, use the slow shell script. Don't cache a
2818 # value for MKDIR_P within a source directory, because that will
2819 # break other packages using the cache if that directory is
2820 # removed, or if the value is a relative name.
2821 MKDIR_P="$ac_install_sh -d"
2822 fi
2823 fi
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2825 $as_echo "$MKDIR_P" >&6; }
2826
2827 for ac_prog in gawk mawk nawk awk
2828 do
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_AWK+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test -n "$AWK"; then
2837 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_AWK="$ac_prog"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 AWK=$ac_cv_prog_AWK
2857 if test -n "$AWK"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2859 $as_echo "$AWK" >&6; }
2860 else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2863 fi
2864
2865
2866 test -n "$AWK" && break
2867 done
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2870 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2871 set x ${MAKE-make}
2872 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2873 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 cat >conftest.make <<\_ACEOF
2877 SHELL = /bin/sh
2878 all:
2879 @echo '@@@%%%=$(MAKE)=@@@%%%'
2880 _ACEOF
2881 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2882 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2883 *@@@%%%=?*=@@@%%%*)
2884 eval ac_cv_prog_make_${ac_make}_set=yes;;
2885 *)
2886 eval ac_cv_prog_make_${ac_make}_set=no;;
2887 esac
2888 rm -f conftest.make
2889 fi
2890 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892 $as_echo "yes" >&6; }
2893 SET_MAKE=
2894 else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 SET_MAKE="MAKE=${MAKE-make}"
2898 fi
2899
2900 rm -rf .tst 2>/dev/null
2901 mkdir .tst 2>/dev/null
2902 if test -d .tst; then
2903 am__leading_dot=.
2904 else
2905 am__leading_dot=_
2906 fi
2907 rmdir .tst 2>/dev/null
2908
2909 # Check whether --enable-silent-rules was given.
2910 if test "${enable_silent_rules+set}" = set; then :
2911 enableval=$enable_silent_rules;
2912 fi
2913
2914 case $enable_silent_rules in # (((
2915 yes) AM_DEFAULT_VERBOSITY=0;;
2916 no) AM_DEFAULT_VERBOSITY=1;;
2917 *) AM_DEFAULT_VERBOSITY=1;;
2918 esac
2919 am_make=${MAKE-make}
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2921 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2922 if ${am_cv_make_support_nested_variables+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if $as_echo 'TRUE=$(BAR$(V))
2926 BAR0=false
2927 BAR1=true
2928 V=1
2929 am__doit:
2930 @$(TRUE)
2931 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2932 am_cv_make_support_nested_variables=yes
2933 else
2934 am_cv_make_support_nested_variables=no
2935 fi
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2938 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2939 if test $am_cv_make_support_nested_variables = yes; then
2940 AM_V='$(V)'
2941 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2942 else
2943 AM_V=$AM_DEFAULT_VERBOSITY
2944 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2945 fi
2946 AM_BACKSLASH='\'
2947
2948 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2949 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2950 # is not polluted with repeated "-I."
2951 am__isrc=' -I$(srcdir)'
2952 # test to see if srcdir already configured
2953 if test -f $srcdir/config.status; then
2954 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2955 fi
2956 fi
2957
2958 # test whether we have cygpath
2959 if test -z "$CYGPATH_W"; then
2960 if (cygpath --version) >/dev/null 2>/dev/null; then
2961 CYGPATH_W='cygpath -w'
2962 else
2963 CYGPATH_W=echo
2964 fi
2965 fi
2966
2967
2968 # Define the identity of the package.
2969 PACKAGE='gprofng'
2970 VERSION='2.41.50'
2971
2972
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE "$PACKAGE"
2975 _ACEOF
2976
2977
2978 cat >>confdefs.h <<_ACEOF
2979 #define VERSION "$VERSION"
2980 _ACEOF
2981
2982 # Some tools Automake needs.
2983
2984 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2985
2986
2987 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2988
2989
2990 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2991
2992
2993 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2994
2995
2996 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2997
2998 # For better backward compatibility. To be removed once Automake 1.9.x
2999 # dies out for good. For more background, see:
3000 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3001 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3002 mkdir_p='$(MKDIR_P)'
3003
3004 # We need awk for the "check" target (and possibly the TAP driver). The
3005 # system "awk" is bad on some platforms.
3006 # Always define AMTAR for backward compatibility. Yes, it's still used
3007 # in the wild :-( We should find a proper way to deprecate it ...
3008 AMTAR='$${TAR-tar}'
3009
3010
3011 # We'll loop over all known methods to create a tar archive until one works.
3012 _am_tools='gnutar pax cpio none'
3013
3014 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3015
3016
3017
3018
3019
3020
3021 # POSIX will say in a future version that running "rm -f" with no argument
3022 # is OK; and we want to be able to make that assumption in our Makefile
3023 # recipes. So use an aggressive probe to check that the usage we want is
3024 # actually supported "in the wild" to an acceptable degree.
3025 # See automake bug#10828.
3026 # To make any issue more visible, cause the running configure to be aborted
3027 # by default if the 'rm' program in use doesn't match our expectations; the
3028 # user can still override this though.
3029 if rm -f && rm -fr && rm -rf; then : OK; else
3030 cat >&2 <<'END'
3031 Oops!
3032
3033 Your 'rm' program seems unable to run without file operands specified
3034 on the command line, even when the '-f' option is present. This is contrary
3035 to the behaviour of most rm programs out there, and not conforming with
3036 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3037
3038 Please tell bug-automake@gnu.org about your system, including the value
3039 of your $PATH and any error possibly output before this message. This
3040 can help us improve future automake versions.
3041
3042 END
3043 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3044 echo 'Configuration will proceed anyway, since you have set the' >&2
3045 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3046 echo >&2
3047 else
3048 cat >&2 <<'END'
3049 Aborting the configuration process, to ensure you take notice of the issue.
3050
3051 You can download and install GNU coreutils to get an 'rm' implementation
3052 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3053
3054 If you want to complete the configuration process using your problematic
3055 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3056 to "yes", and re-run configure.
3057
3058 END
3059 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3060 fi
3061 fi
3062
3063
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3065 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3066 # Check whether --enable-maintainer-mode was given.
3067 if test "${enable_maintainer_mode+set}" = set; then :
3068 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3069 else
3070 USE_MAINTAINER_MODE=no
3071 fi
3072
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3074 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3075 if test $USE_MAINTAINER_MODE = yes; then
3076 MAINTAINER_MODE_TRUE=
3077 MAINTAINER_MODE_FALSE='#'
3078 else
3079 MAINTAINER_MODE_TRUE='#'
3080 MAINTAINER_MODE_FALSE=
3081 fi
3082
3083 MAINT=$MAINTAINER_MODE_TRUE
3084
3085
3086
3087
3088
3089 DEPDIR="${am__leading_dot}deps"
3090
3091 ac_config_commands="$ac_config_commands depfiles"
3092
3093
3094 am_make=${MAKE-make}
3095 cat > confinc << 'END'
3096 am__doit:
3097 @echo this is the am__doit target
3098 .PHONY: am__doit
3099 END
3100 # If we don't find an include directive, just comment out the code.
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3102 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3103 am__include="#"
3104 am__quote=
3105 _am_result=none
3106 # First try GNU make style include.
3107 echo "include confinc" > confmf
3108 # Ignore all kinds of additional output from 'make'.
3109 case `$am_make -s -f confmf 2> /dev/null` in #(
3110 *the\ am__doit\ target*)
3111 am__include=include
3112 am__quote=
3113 _am_result=GNU
3114 ;;
3115 esac
3116 # Now try BSD make style include.
3117 if test "$am__include" = "#"; then
3118 echo '.include "confinc"' > confmf
3119 case `$am_make -s -f confmf 2> /dev/null` in #(
3120 *the\ am__doit\ target*)
3121 am__include=.include
3122 am__quote="\""
3123 _am_result=BSD
3124 ;;
3125 esac
3126 fi
3127
3128
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3130 $as_echo "$_am_result" >&6; }
3131 rm -f confinc confmf
3132
3133 # Check whether --enable-dependency-tracking was given.
3134 if test "${enable_dependency_tracking+set}" = set; then :
3135 enableval=$enable_dependency_tracking;
3136 fi
3137
3138 if test "x$enable_dependency_tracking" != xno; then
3139 am_depcomp="$ac_aux_dir/depcomp"
3140 AMDEPBACKSLASH='\'
3141 am__nodep='_no'
3142 fi
3143 if test "x$enable_dependency_tracking" != xno; then
3144 AMDEP_TRUE=
3145 AMDEP_FALSE='#'
3146 else
3147 AMDEP_TRUE='#'
3148 AMDEP_FALSE=
3149 fi
3150
3151
3152 ac_ext=c
3153 ac_cpp='$CPP $CPPFLAGS'
3154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157 if test -n "$ac_tool_prefix"; then
3158 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3159 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_prog_CC+:} false; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC="$CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179 done
3180 done
3181 IFS=$as_save_IFS
3182
3183 fi
3184 fi
3185 CC=$ac_cv_prog_CC
3186 if test -n "$CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3188 $as_echo "$CC" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194
3195 fi
3196 if test -z "$ac_cv_prog_CC"; then
3197 ac_ct_CC=$CC
3198 # Extract the first word of "gcc", so it can be a program name with args.
3199 set dummy gcc; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test -n "$ac_ct_CC"; then
3206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3210 do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_ac_ct_CC="gcc"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3218 fi
3219 done
3220 done
3221 IFS=$as_save_IFS
3222
3223 fi
3224 fi
3225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226 if test -n "$ac_ct_CC"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3228 $as_echo "$ac_ct_CC" >&6; }
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3232 fi
3233
3234 if test "x$ac_ct_CC" = x; then
3235 CC=""
3236 else
3237 case $cross_compiling:$ac_tool_warned in
3238 yes:)
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3241 ac_tool_warned=yes ;;
3242 esac
3243 CC=$ac_ct_CC
3244 fi
3245 else
3246 CC="$ac_cv_prog_CC"
3247 fi
3248
3249 if test -z "$CC"; then
3250 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}cc; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if ${ac_cv_prog_CC+:} false; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 if test -n "$CC"; then
3259 ac_cv_prog_CC="$CC" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_CC="${ac_tool_prefix}cc"
3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272 done
3273 done
3274 IFS=$as_save_IFS
3275
3276 fi
3277 fi
3278 CC=$ac_cv_prog_CC
3279 if test -n "$CC"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281 $as_echo "$CC" >&6; }
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 fi
3286
3287
3288 fi
3289 fi
3290 if test -z "$CC"; then
3291 # Extract the first word of "cc", so it can be a program name with args.
3292 set dummy cc; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if ${ac_cv_prog_CC+:} false; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 if test -n "$CC"; then
3299 ac_cv_prog_CC="$CC" # Let the user override the test.
3300 else
3301 ac_prog_rejected=no
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3310 ac_prog_rejected=yes
3311 continue
3312 fi
3313 ac_cv_prog_CC="cc"
3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 break 2
3316 fi
3317 done
3318 done
3319 IFS=$as_save_IFS
3320
3321 if test $ac_prog_rejected = yes; then
3322 # We found a bogon in the path, so make sure we never use it.
3323 set dummy $ac_cv_prog_CC
3324 shift
3325 if test $# != 0; then
3326 # We chose a different compiler from the bogus one.
3327 # However, it has the same basename, so the bogon will be chosen
3328 # first if we set CC to just the basename; use the full file name.
3329 shift
3330 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3331 fi
3332 fi
3333 fi
3334 fi
3335 CC=$ac_cv_prog_CC
3336 if test -n "$CC"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3338 $as_echo "$CC" >&6; }
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 fi
3343
3344
3345 fi
3346 if test -z "$CC"; then
3347 if test -n "$ac_tool_prefix"; then
3348 for ac_prog in cl.exe
3349 do
3350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if ${ac_cv_prog_CC+:} false; then :
3355 $as_echo_n "(cached) " >&6
3356 else
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 break 2
3370 fi
3371 done
3372 done
3373 IFS=$as_save_IFS
3374
3375 fi
3376 fi
3377 CC=$ac_cv_prog_CC
3378 if test -n "$CC"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3380 $as_echo "$CC" >&6; }
3381 else
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3384 fi
3385
3386
3387 test -n "$CC" && break
3388 done
3389 fi
3390 if test -z "$CC"; then
3391 ac_ct_CC=$CC
3392 for ac_prog in cl.exe
3393 do
3394 # Extract the first word of "$ac_prog", so it can be a program name with args.
3395 set dummy $ac_prog; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 if test -n "$ac_ct_CC"; then
3402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_ac_ct_CC="$ac_prog"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415 done
3416 done
3417 IFS=$as_save_IFS
3418
3419 fi
3420 fi
3421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3422 if test -n "$ac_ct_CC"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3424 $as_echo "$ac_ct_CC" >&6; }
3425 else
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3428 fi
3429
3430
3431 test -n "$ac_ct_CC" && break
3432 done
3433
3434 if test "x$ac_ct_CC" = x; then
3435 CC=""
3436 else
3437 case $cross_compiling:$ac_tool_warned in
3438 yes:)
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3441 ac_tool_warned=yes ;;
3442 esac
3443 CC=$ac_ct_CC
3444 fi
3445 fi
3446
3447 fi
3448
3449
3450 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error $? "no acceptable C compiler found in \$PATH
3453 See \`config.log' for more details" "$LINENO" 5; }
3454
3455 # Provide some information about the compiler.
3456 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3457 set X $ac_compile
3458 ac_compiler=$2
3459 for ac_option in --version -v -V -qversion; do
3460 { { ac_try="$ac_compiler $ac_option >&5"
3461 case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464 esac
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3468 ac_status=$?
3469 if test -s conftest.err; then
3470 sed '10a\
3471 ... rest of stderr output deleted ...
3472 10q' conftest.err >conftest.er1
3473 cat conftest.er1 >&5
3474 fi
3475 rm -f conftest.er1 conftest.err
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }
3478 done
3479
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482
3483 int
3484 main ()
3485 {
3486
3487 ;
3488 return 0;
3489 }
3490 _ACEOF
3491 ac_clean_files_save=$ac_clean_files
3492 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3493 # Try to create an executable without -o first, disregard a.out.
3494 # It will help us diagnose broken compilers, and finding out an intuition
3495 # of exeext.
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3497 $as_echo_n "checking whether the C compiler works... " >&6; }
3498 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3499
3500 # The possible output files:
3501 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3502
3503 ac_rmfiles=
3504 for ac_file in $ac_files
3505 do
3506 case $ac_file in
3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3508 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3509 esac
3510 done
3511 rm -f $ac_rmfiles
3512
3513 if { { ac_try="$ac_link_default"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_link_default") 2>&5
3521 ac_status=$?
3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523 test $ac_status = 0; }; then :
3524 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3525 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3526 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3527 # so that the user can short-circuit this test for compilers unknown to
3528 # Autoconf.
3529 for ac_file in $ac_files ''
3530 do
3531 test -f "$ac_file" || continue
3532 case $ac_file in
3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3534 ;;
3535 [ab].out )
3536 # We found the default executable, but exeext='' is most
3537 # certainly right.
3538 break;;
3539 *.* )
3540 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3541 then :; else
3542 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3543 fi
3544 # We set ac_cv_exeext here because the later test for it is not
3545 # safe: cross compilers may not add the suffix if given an `-o'
3546 # argument, so we may need to know it at that point already.
3547 # Even if this section looks crufty: it has the advantage of
3548 # actually working.
3549 break;;
3550 * )
3551 break;;
3552 esac
3553 done
3554 test "$ac_cv_exeext" = no && ac_cv_exeext=
3555
3556 else
3557 ac_file=''
3558 fi
3559 if test -z "$ac_file"; then :
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3562 $as_echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error 77 "C compiler cannot create executables
3568 See \`config.log' for more details" "$LINENO" 5; }
3569 else
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3571 $as_echo "yes" >&6; }
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3574 $as_echo_n "checking for C compiler default output file name... " >&6; }
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3576 $as_echo "$ac_file" >&6; }
3577 ac_exeext=$ac_cv_exeext
3578
3579 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3580 ac_clean_files=$ac_clean_files_save
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3582 $as_echo_n "checking for suffix of executables... " >&6; }
3583 if { { ac_try="$ac_link"
3584 case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587 esac
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_link") 2>&5
3591 ac_status=$?
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }; then :
3594 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3595 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3596 # work properly (i.e., refer to `conftest.exe'), while it won't with
3597 # `rm'.
3598 for ac_file in conftest.exe conftest conftest.*; do
3599 test -f "$ac_file" || continue
3600 case $ac_file in
3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3602 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3603 break;;
3604 * ) break;;
3605 esac
3606 done
3607 else
3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3611 See \`config.log' for more details" "$LINENO" 5; }
3612 fi
3613 rm -f conftest conftest$ac_cv_exeext
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3615 $as_echo "$ac_cv_exeext" >&6; }
3616
3617 rm -f conftest.$ac_ext
3618 EXEEXT=$ac_cv_exeext
3619 ac_exeext=$EXEEXT
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3622 #include <stdio.h>
3623 int
3624 main ()
3625 {
3626 FILE *f = fopen ("conftest.out", "w");
3627 return ferror (f) || fclose (f) != 0;
3628
3629 ;
3630 return 0;
3631 }
3632 _ACEOF
3633 ac_clean_files="$ac_clean_files conftest.out"
3634 # Check that the compiler produces executables we can run. If not, either
3635 # the compiler is broken, or we cross compile.
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3637 $as_echo_n "checking whether we are cross compiling... " >&6; }
3638 if test "$cross_compiling" != yes; then
3639 { { ac_try="$ac_link"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646 (eval "$ac_link") 2>&5
3647 ac_status=$?
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }
3650 if { ac_try='./conftest$ac_cv_exeext'
3651 { { case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_try") 2>&5
3658 ac_status=$?
3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660 test $ac_status = 0; }; }; then
3661 cross_compiling=no
3662 else
3663 if test "$cross_compiling" = maybe; then
3664 cross_compiling=yes
3665 else
3666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error $? "cannot run C compiled programs.
3669 If you meant to cross compile, use \`--host'.
3670 See \`config.log' for more details" "$LINENO" 5; }
3671 fi
3672 fi
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3675 $as_echo "$cross_compiling" >&6; }
3676
3677 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3678 ac_clean_files=$ac_clean_files_save
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3680 $as_echo_n "checking for suffix of object files... " >&6; }
3681 if ${ac_cv_objext+:} false; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686
3687 int
3688 main ()
3689 {
3690
3691 ;
3692 return 0;
3693 }
3694 _ACEOF
3695 rm -f conftest.o conftest.obj
3696 if { { ac_try="$ac_compile"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 $as_echo "$ac_try_echo"; } >&5
3703 (eval "$ac_compile") 2>&5
3704 ac_status=$?
3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706 test $ac_status = 0; }; then :
3707 for ac_file in conftest.o conftest.obj conftest.*; do
3708 test -f "$ac_file" || continue;
3709 case $ac_file in
3710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3711 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3712 break;;
3713 esac
3714 done
3715 else
3716 $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721 as_fn_error $? "cannot compute suffix of object files: cannot compile
3722 See \`config.log' for more details" "$LINENO" 5; }
3723 fi
3724 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3725 fi
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3727 $as_echo "$ac_cv_objext" >&6; }
3728 OBJEXT=$ac_cv_objext
3729 ac_objext=$OBJEXT
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3731 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3732 if ${ac_cv_c_compiler_gnu+:} false; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737
3738 int
3739 main ()
3740 {
3741 #ifndef __GNUC__
3742 choke me
3743 #endif
3744
3745 ;
3746 return 0;
3747 }
3748 _ACEOF
3749 if ac_fn_c_try_compile "$LINENO"; then :
3750 ac_compiler_gnu=yes
3751 else
3752 ac_compiler_gnu=no
3753 fi
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3756
3757 fi
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3759 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3760 if test $ac_compiler_gnu = yes; then
3761 GCC=yes
3762 else
3763 GCC=
3764 fi
3765 ac_test_CFLAGS=${CFLAGS+set}
3766 ac_save_CFLAGS=$CFLAGS
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3768 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3769 if ${ac_cv_prog_cc_g+:} false; then :
3770 $as_echo_n "(cached) " >&6
3771 else
3772 ac_save_c_werror_flag=$ac_c_werror_flag
3773 ac_c_werror_flag=yes
3774 ac_cv_prog_cc_g=no
3775 CFLAGS="-g"
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3778
3779 int
3780 main ()
3781 {
3782
3783 ;
3784 return 0;
3785 }
3786 _ACEOF
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788 ac_cv_prog_cc_g=yes
3789 else
3790 CFLAGS=""
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3793
3794 int
3795 main ()
3796 {
3797
3798 ;
3799 return 0;
3800 }
3801 _ACEOF
3802 if ac_fn_c_try_compile "$LINENO"; then :
3803
3804 else
3805 ac_c_werror_flag=$ac_save_c_werror_flag
3806 CFLAGS="-g"
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3809
3810 int
3811 main ()
3812 {
3813
3814 ;
3815 return 0;
3816 }
3817 _ACEOF
3818 if ac_fn_c_try_compile "$LINENO"; then :
3819 ac_cv_prog_cc_g=yes
3820 fi
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 fi
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 ac_c_werror_flag=$ac_save_c_werror_flag
3827 fi
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3829 $as_echo "$ac_cv_prog_cc_g" >&6; }
3830 if test "$ac_test_CFLAGS" = set; then
3831 CFLAGS=$ac_save_CFLAGS
3832 elif test $ac_cv_prog_cc_g = yes; then
3833 if test "$GCC" = yes; then
3834 CFLAGS="-g -O2"
3835 else
3836 CFLAGS="-g"
3837 fi
3838 else
3839 if test "$GCC" = yes; then
3840 CFLAGS="-O2"
3841 else
3842 CFLAGS=
3843 fi
3844 fi
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3846 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3847 if ${ac_cv_prog_cc_c89+:} false; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 ac_cv_prog_cc_c89=no
3851 ac_save_CC=$CC
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854 #include <stdarg.h>
3855 #include <stdio.h>
3856 struct stat;
3857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3858 struct buf { int x; };
3859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3860 static char *e (p, i)
3861 char **p;
3862 int i;
3863 {
3864 return p[i];
3865 }
3866 static char *f (char * (*g) (char **, int), char **p, ...)
3867 {
3868 char *s;
3869 va_list v;
3870 va_start (v,p);
3871 s = g (p, va_arg (v,int));
3872 va_end (v);
3873 return s;
3874 }
3875
3876 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3877 function prototypes and stuff, but not '\xHH' hex character constants.
3878 These don't provoke an error unfortunately, instead are silently treated
3879 as 'x'. The following induces an error, until -std is added to get
3880 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3881 array size at least. It's necessary to write '\x00'==0 to get something
3882 that's true only with -std. */
3883 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3884
3885 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3886 inside strings and character constants. */
3887 #define FOO(x) 'x'
3888 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3889
3890 int test (int i, double x);
3891 struct s1 {int (*f) (int a);};
3892 struct s2 {int (*f) (double a);};
3893 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3894 int argc;
3895 char **argv;
3896 int
3897 main ()
3898 {
3899 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3900 ;
3901 return 0;
3902 }
3903 _ACEOF
3904 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3905 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3906 do
3907 CC="$ac_save_CC $ac_arg"
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909 ac_cv_prog_cc_c89=$ac_arg
3910 fi
3911 rm -f core conftest.err conftest.$ac_objext
3912 test "x$ac_cv_prog_cc_c89" != "xno" && break
3913 done
3914 rm -f conftest.$ac_ext
3915 CC=$ac_save_CC
3916
3917 fi
3918 # AC_CACHE_VAL
3919 case "x$ac_cv_prog_cc_c89" in
3920 x)
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3922 $as_echo "none needed" >&6; } ;;
3923 xno)
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3925 $as_echo "unsupported" >&6; } ;;
3926 *)
3927 CC="$CC $ac_cv_prog_cc_c89"
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3929 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3930 esac
3931 if test "x$ac_cv_prog_cc_c89" != xno; then :
3932
3933 fi
3934
3935 ac_ext=c
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940
3941 ac_ext=c
3942 ac_cpp='$CPP $CPPFLAGS'
3943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3947 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3948 if ${am_cv_prog_cc_c_o+:} false; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953
3954 int
3955 main ()
3956 {
3957
3958 ;
3959 return 0;
3960 }
3961 _ACEOF
3962 # Make sure it works both with $CC and with simple cc.
3963 # Following AC_PROG_CC_C_O, we do the test twice because some
3964 # compilers refuse to overwrite an existing .o file with -o,
3965 # though they will create one.
3966 am_cv_prog_cc_c_o=yes
3967 for am_i in 1 2; do
3968 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3969 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } \
3973 && test -f conftest2.$ac_objext; then
3974 : OK
3975 else
3976 am_cv_prog_cc_c_o=no
3977 break
3978 fi
3979 done
3980 rm -f core conftest*
3981 unset am_i
3982 fi
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3984 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3985 if test "$am_cv_prog_cc_c_o" != yes; then
3986 # Losing compiler, so override with the script.
3987 # FIXME: It is wrong to rewrite CC.
3988 # But if we don't then we get into trouble of one sort or another.
3989 # A longer-term fix would be to have automake use am__CC in this case,
3990 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3991 CC="$am_aux_dir/compile $CC"
3992 fi
3993 ac_ext=c
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998
3999
4000 depcc="$CC" am_compiler_list=
4001
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4003 $as_echo_n "checking dependency style of $depcc... " >&6; }
4004 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4005 $as_echo_n "(cached) " >&6
4006 else
4007 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4008 # We make a subdir and do the tests there. Otherwise we can end up
4009 # making bogus files that we don't know about and never remove. For
4010 # instance it was reported that on HP-UX the gcc test will end up
4011 # making a dummy file named 'D' -- because '-MD' means "put the output
4012 # in D".
4013 rm -rf conftest.dir
4014 mkdir conftest.dir
4015 # Copy depcomp to subdir because otherwise we won't find it if we're
4016 # using a relative directory.
4017 cp "$am_depcomp" conftest.dir
4018 cd conftest.dir
4019 # We will build objects and dependencies in a subdirectory because
4020 # it helps to detect inapplicable dependency modes. For instance
4021 # both Tru64's cc and ICC support -MD to output dependencies as a
4022 # side effect of compilation, but ICC will put the dependencies in
4023 # the current directory while Tru64 will put them in the object
4024 # directory.
4025 mkdir sub
4026
4027 am_cv_CC_dependencies_compiler_type=none
4028 if test "$am_compiler_list" = ""; then
4029 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4030 fi
4031 am__universal=false
4032 case " $depcc " in #(
4033 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4034 esac
4035
4036 for depmode in $am_compiler_list; do
4037 # Setup a source with many dependencies, because some compilers
4038 # like to wrap large dependency lists on column 80 (with \), and
4039 # we should not choose a depcomp mode which is confused by this.
4040 #
4041 # We need to recreate these files for each test, as the compiler may
4042 # overwrite some of them when testing with obscure command lines.
4043 # This happens at least with the AIX C compiler.
4044 : > sub/conftest.c
4045 for i in 1 2 3 4 5 6; do
4046 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4047 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4048 # Solaris 10 /bin/sh.
4049 echo '/* dummy */' > sub/conftst$i.h
4050 done
4051 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4052
4053 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4054 # mode. It turns out that the SunPro C++ compiler does not properly
4055 # handle '-M -o', and we need to detect this. Also, some Intel
4056 # versions had trouble with output in subdirs.
4057 am__obj=sub/conftest.${OBJEXT-o}
4058 am__minus_obj="-o $am__obj"
4059 case $depmode in
4060 gcc)
4061 # This depmode causes a compiler race in universal mode.
4062 test "$am__universal" = false || continue
4063 ;;
4064 nosideeffect)
4065 # After this tag, mechanisms are not by side-effect, so they'll
4066 # only be used when explicitly requested.
4067 if test "x$enable_dependency_tracking" = xyes; then
4068 continue
4069 else
4070 break
4071 fi
4072 ;;
4073 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4074 # This compiler won't grok '-c -o', but also, the minuso test has
4075 # not run yet. These depmodes are late enough in the game, and
4076 # so weak that their functioning should not be impacted.
4077 am__obj=conftest.${OBJEXT-o}
4078 am__minus_obj=
4079 ;;
4080 none) break ;;
4081 esac
4082 if depmode=$depmode \
4083 source=sub/conftest.c object=$am__obj \
4084 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4085 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4086 >/dev/null 2>conftest.err &&
4087 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4088 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4089 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4090 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4091 # icc doesn't choke on unknown options, it will just issue warnings
4092 # or remarks (even with -Werror). So we grep stderr for any message
4093 # that says an option was ignored or not supported.
4094 # When given -MP, icc 7.0 and 7.1 complain thusly:
4095 # icc: Command line warning: ignoring option '-M'; no argument required
4096 # The diagnosis changed in icc 8.0:
4097 # icc: Command line remark: option '-MP' not supported
4098 if (grep 'ignoring option' conftest.err ||
4099 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4100 am_cv_CC_dependencies_compiler_type=$depmode
4101 break
4102 fi
4103 fi
4104 done
4105
4106 cd ..
4107 rm -rf conftest.dir
4108 else
4109 am_cv_CC_dependencies_compiler_type=none
4110 fi
4111
4112 fi
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4114 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4115 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4116
4117 if
4118 test "x$enable_dependency_tracking" != xno \
4119 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4120 am__fastdepCC_TRUE=
4121 am__fastdepCC_FALSE='#'
4122 else
4123 am__fastdepCC_TRUE='#'
4124 am__fastdepCC_FALSE=
4125 fi
4126
4127
4128
4129 ac_ext=c
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4135 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4136 # On Suns, sometimes $CPP names a directory.
4137 if test -n "$CPP" && test -d "$CPP"; then
4138 CPP=
4139 fi
4140 if test -z "$CPP"; then
4141 if ${ac_cv_prog_CPP+:} false; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 # Double quotes because CPP needs to be expanded
4145 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4146 do
4147 ac_preproc_ok=false
4148 for ac_c_preproc_warn_flag in '' yes
4149 do
4150 # Use a header file that comes with gcc, so configuring glibc
4151 # with a fresh cross-compiler works.
4152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4153 # <limits.h> exists even on freestanding compilers.
4154 # On the NeXT, cc -E runs the code through the compiler's parser,
4155 # not just through cpp. "Syntax error" is here to catch this case.
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4158 #ifdef __STDC__
4159 # include <limits.h>
4160 #else
4161 # include <assert.h>
4162 #endif
4163 Syntax error
4164 _ACEOF
4165 if ac_fn_c_try_cpp "$LINENO"; then :
4166
4167 else
4168 # Broken: fails on valid input.
4169 continue
4170 fi
4171 rm -f conftest.err conftest.i conftest.$ac_ext
4172
4173 # OK, works on sane cases. Now check whether nonexistent headers
4174 # can be detected and how.
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4177 #include <ac_nonexistent.h>
4178 _ACEOF
4179 if ac_fn_c_try_cpp "$LINENO"; then :
4180 # Broken: success on invalid input.
4181 continue
4182 else
4183 # Passes both tests.
4184 ac_preproc_ok=:
4185 break
4186 fi
4187 rm -f conftest.err conftest.i conftest.$ac_ext
4188
4189 done
4190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4191 rm -f conftest.i conftest.err conftest.$ac_ext
4192 if $ac_preproc_ok; then :
4193 break
4194 fi
4195
4196 done
4197 ac_cv_prog_CPP=$CPP
4198
4199 fi
4200 CPP=$ac_cv_prog_CPP
4201 else
4202 ac_cv_prog_CPP=$CPP
4203 fi
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4205 $as_echo "$CPP" >&6; }
4206 ac_preproc_ok=false
4207 for ac_c_preproc_warn_flag in '' yes
4208 do
4209 # Use a header file that comes with gcc, so configuring glibc
4210 # with a fresh cross-compiler works.
4211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4212 # <limits.h> exists even on freestanding compilers.
4213 # On the NeXT, cc -E runs the code through the compiler's parser,
4214 # not just through cpp. "Syntax error" is here to catch this case.
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 #ifdef __STDC__
4218 # include <limits.h>
4219 #else
4220 # include <assert.h>
4221 #endif
4222 Syntax error
4223 _ACEOF
4224 if ac_fn_c_try_cpp "$LINENO"; then :
4225
4226 else
4227 # Broken: fails on valid input.
4228 continue
4229 fi
4230 rm -f conftest.err conftest.i conftest.$ac_ext
4231
4232 # OK, works on sane cases. Now check whether nonexistent headers
4233 # can be detected and how.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 #include <ac_nonexistent.h>
4237 _ACEOF
4238 if ac_fn_c_try_cpp "$LINENO"; then :
4239 # Broken: success on invalid input.
4240 continue
4241 else
4242 # Passes both tests.
4243 ac_preproc_ok=:
4244 break
4245 fi
4246 rm -f conftest.err conftest.i conftest.$ac_ext
4247
4248 done
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.i conftest.err conftest.$ac_ext
4251 if $ac_preproc_ok; then :
4252
4253 else
4254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4256 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4257 See \`config.log' for more details" "$LINENO" 5; }
4258 fi
4259
4260 ac_ext=c
4261 ac_cpp='$CPP $CPPFLAGS'
4262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265
4266
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4268 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4269 if ${ac_cv_path_GREP+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 if test -z "$GREP"; then
4273 ac_path_GREP_found=false
4274 # Loop through the user's path and test for each of PROGNAME-LIST
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4277 do
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for ac_prog in grep ggrep; do
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4283 as_fn_executable_p "$ac_path_GREP" || continue
4284 # Check for GNU ac_path_GREP and select it if it is found.
4285 # Check for GNU $ac_path_GREP
4286 case `"$ac_path_GREP" --version 2>&1` in
4287 *GNU*)
4288 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4289 *)
4290 ac_count=0
4291 $as_echo_n 0123456789 >"conftest.in"
4292 while :
4293 do
4294 cat "conftest.in" "conftest.in" >"conftest.tmp"
4295 mv "conftest.tmp" "conftest.in"
4296 cp "conftest.in" "conftest.nl"
4297 $as_echo 'GREP' >> "conftest.nl"
4298 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4300 as_fn_arith $ac_count + 1 && ac_count=$as_val
4301 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4302 # Best one so far, save it but keep looking for a better one
4303 ac_cv_path_GREP="$ac_path_GREP"
4304 ac_path_GREP_max=$ac_count
4305 fi
4306 # 10*(2^10) chars as input seems more than enough
4307 test $ac_count -gt 10 && break
4308 done
4309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4310 esac
4311
4312 $ac_path_GREP_found && break 3
4313 done
4314 done
4315 done
4316 IFS=$as_save_IFS
4317 if test -z "$ac_cv_path_GREP"; then
4318 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4319 fi
4320 else
4321 ac_cv_path_GREP=$GREP
4322 fi
4323
4324 fi
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4326 $as_echo "$ac_cv_path_GREP" >&6; }
4327 GREP="$ac_cv_path_GREP"
4328
4329
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4331 $as_echo_n "checking for egrep... " >&6; }
4332 if ${ac_cv_path_EGREP+:} false; then :
4333 $as_echo_n "(cached) " >&6
4334 else
4335 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4336 then ac_cv_path_EGREP="$GREP -E"
4337 else
4338 if test -z "$EGREP"; then
4339 ac_path_EGREP_found=false
4340 # Loop through the user's path and test for each of PROGNAME-LIST
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4343 do
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 for ac_prog in egrep; do
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4349 as_fn_executable_p "$ac_path_EGREP" || continue
4350 # Check for GNU ac_path_EGREP and select it if it is found.
4351 # Check for GNU $ac_path_EGREP
4352 case `"$ac_path_EGREP" --version 2>&1` in
4353 *GNU*)
4354 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4355 *)
4356 ac_count=0
4357 $as_echo_n 0123456789 >"conftest.in"
4358 while :
4359 do
4360 cat "conftest.in" "conftest.in" >"conftest.tmp"
4361 mv "conftest.tmp" "conftest.in"
4362 cp "conftest.in" "conftest.nl"
4363 $as_echo 'EGREP' >> "conftest.nl"
4364 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4366 as_fn_arith $ac_count + 1 && ac_count=$as_val
4367 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4368 # Best one so far, save it but keep looking for a better one
4369 ac_cv_path_EGREP="$ac_path_EGREP"
4370 ac_path_EGREP_max=$ac_count
4371 fi
4372 # 10*(2^10) chars as input seems more than enough
4373 test $ac_count -gt 10 && break
4374 done
4375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4376 esac
4377
4378 $ac_path_EGREP_found && break 3
4379 done
4380 done
4381 done
4382 IFS=$as_save_IFS
4383 if test -z "$ac_cv_path_EGREP"; then
4384 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4385 fi
4386 else
4387 ac_cv_path_EGREP=$EGREP
4388 fi
4389
4390 fi
4391 fi
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4393 $as_echo "$ac_cv_path_EGREP" >&6; }
4394 EGREP="$ac_cv_path_EGREP"
4395
4396
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4398 $as_echo_n "checking for ANSI C header files... " >&6; }
4399 if ${ac_cv_header_stdc+:} false; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4404 #include <stdlib.h>
4405 #include <stdarg.h>
4406 #include <string.h>
4407 #include <float.h>
4408
4409 int
4410 main ()
4411 {
4412
4413 ;
4414 return 0;
4415 }
4416 _ACEOF
4417 if ac_fn_c_try_compile "$LINENO"; then :
4418 ac_cv_header_stdc=yes
4419 else
4420 ac_cv_header_stdc=no
4421 fi
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423
4424 if test $ac_cv_header_stdc = yes; then
4425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428 #include <string.h>
4429
4430 _ACEOF
4431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4432 $EGREP "memchr" >/dev/null 2>&1; then :
4433
4434 else
4435 ac_cv_header_stdc=no
4436 fi
4437 rm -f conftest*
4438
4439 fi
4440
4441 if test $ac_cv_header_stdc = yes; then
4442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445 #include <stdlib.h>
4446
4447 _ACEOF
4448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4449 $EGREP "free" >/dev/null 2>&1; then :
4450
4451 else
4452 ac_cv_header_stdc=no
4453 fi
4454 rm -f conftest*
4455
4456 fi
4457
4458 if test $ac_cv_header_stdc = yes; then
4459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4460 if test "$cross_compiling" = yes; then :
4461 :
4462 else
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465 #include <ctype.h>
4466 #include <stdlib.h>
4467 #if ((' ' & 0x0FF) == 0x020)
4468 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4469 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4470 #else
4471 # define ISLOWER(c) \
4472 (('a' <= (c) && (c) <= 'i') \
4473 || ('j' <= (c) && (c) <= 'r') \
4474 || ('s' <= (c) && (c) <= 'z'))
4475 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4476 #endif
4477
4478 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4479 int
4480 main ()
4481 {
4482 int i;
4483 for (i = 0; i < 256; i++)
4484 if (XOR (islower (i), ISLOWER (i))
4485 || toupper (i) != TOUPPER (i))
4486 return 2;
4487 return 0;
4488 }
4489 _ACEOF
4490 if ac_fn_c_try_run "$LINENO"; then :
4491
4492 else
4493 ac_cv_header_stdc=no
4494 fi
4495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4496 conftest.$ac_objext conftest.beam conftest.$ac_ext
4497 fi
4498
4499 fi
4500 fi
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4502 $as_echo "$ac_cv_header_stdc" >&6; }
4503 if test $ac_cv_header_stdc = yes; then
4504
4505 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4506
4507 fi
4508
4509 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4510 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4511 inttypes.h stdint.h unistd.h
4512 do :
4513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4514 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4515 "
4516 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4517 cat >>confdefs.h <<_ACEOF
4518 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4519 _ACEOF
4520
4521 fi
4522
4523 done
4524
4525
4526
4527 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4528 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4529 MINIX=yes
4530 else
4531 MINIX=
4532 fi
4533
4534
4535 if test "$MINIX" = yes; then
4536
4537 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4538
4539
4540 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4541
4542
4543 $as_echo "#define _MINIX 1" >>confdefs.h
4544
4545 fi
4546
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4549 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4550 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555
4556 # define __EXTENSIONS__ 1
4557 $ac_includes_default
4558 int
4559 main ()
4560 {
4561
4562 ;
4563 return 0;
4564 }
4565 _ACEOF
4566 if ac_fn_c_try_compile "$LINENO"; then :
4567 ac_cv_safe_to_define___extensions__=yes
4568 else
4569 ac_cv_safe_to_define___extensions__=no
4570 fi
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4574 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4575 test $ac_cv_safe_to_define___extensions__ = yes &&
4576 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4577
4578 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4579
4580 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4581
4582 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4583
4584 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4585
4586
4587 ac_ext=c
4588 ac_cpp='$CPP $CPPFLAGS'
4589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592 if test -n "$ac_tool_prefix"; then
4593 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4594 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_CC+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$CC"; then
4601 ac_cv_prog_CC="$CC" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614 done
4615 done
4616 IFS=$as_save_IFS
4617
4618 fi
4619 fi
4620 CC=$ac_cv_prog_CC
4621 if test -n "$CC"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4623 $as_echo "$CC" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4627 fi
4628
4629
4630 fi
4631 if test -z "$ac_cv_prog_CC"; then
4632 ac_ct_CC=$CC
4633 # Extract the first word of "gcc", so it can be a program name with args.
4634 set dummy gcc; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 if test -n "$ac_ct_CC"; then
4641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 ac_cv_prog_ac_ct_CC="gcc"
4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654 done
4655 done
4656 IFS=$as_save_IFS
4657
4658 fi
4659 fi
4660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4661 if test -n "$ac_ct_CC"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4663 $as_echo "$ac_ct_CC" >&6; }
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4667 fi
4668
4669 if test "x$ac_ct_CC" = x; then
4670 CC=""
4671 else
4672 case $cross_compiling:$ac_tool_warned in
4673 yes:)
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4676 ac_tool_warned=yes ;;
4677 esac
4678 CC=$ac_ct_CC
4679 fi
4680 else
4681 CC="$ac_cv_prog_CC"
4682 fi
4683
4684 if test -z "$CC"; then
4685 if test -n "$ac_tool_prefix"; then
4686 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4687 set dummy ${ac_tool_prefix}cc; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_CC+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if test -n "$CC"; then
4694 ac_cv_prog_CC="$CC" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703 ac_cv_prog_CC="${ac_tool_prefix}cc"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4706 fi
4707 done
4708 done
4709 IFS=$as_save_IFS
4710
4711 fi
4712 fi
4713 CC=$ac_cv_prog_CC
4714 if test -n "$CC"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4716 $as_echo "$CC" >&6; }
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4720 fi
4721
4722
4723 fi
4724 fi
4725 if test -z "$CC"; then
4726 # Extract the first word of "cc", so it can be a program name with args.
4727 set dummy cc; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if ${ac_cv_prog_CC+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 if test -n "$CC"; then
4734 ac_cv_prog_CC="$CC" # Let the user override the test.
4735 else
4736 ac_prog_rejected=no
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4745 ac_prog_rejected=yes
4746 continue
4747 fi
4748 ac_cv_prog_CC="cc"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4751 fi
4752 done
4753 done
4754 IFS=$as_save_IFS
4755
4756 if test $ac_prog_rejected = yes; then
4757 # We found a bogon in the path, so make sure we never use it.
4758 set dummy $ac_cv_prog_CC
4759 shift
4760 if test $# != 0; then
4761 # We chose a different compiler from the bogus one.
4762 # However, it has the same basename, so the bogon will be chosen
4763 # first if we set CC to just the basename; use the full file name.
4764 shift
4765 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4766 fi
4767 fi
4768 fi
4769 fi
4770 CC=$ac_cv_prog_CC
4771 if test -n "$CC"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4773 $as_echo "$CC" >&6; }
4774 else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4777 fi
4778
4779
4780 fi
4781 if test -z "$CC"; then
4782 if test -n "$ac_tool_prefix"; then
4783 for ac_prog in cl.exe
4784 do
4785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4788 $as_echo_n "checking for $ac_word... " >&6; }
4789 if ${ac_cv_prog_CC+:} false; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 if test -n "$CC"; then
4793 ac_cv_prog_CC="$CC" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 break 2
4805 fi
4806 done
4807 done
4808 IFS=$as_save_IFS
4809
4810 fi
4811 fi
4812 CC=$ac_cv_prog_CC
4813 if test -n "$CC"; then
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4815 $as_echo "$CC" >&6; }
4816 else
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4819 fi
4820
4821
4822 test -n "$CC" && break
4823 done
4824 fi
4825 if test -z "$CC"; then
4826 ac_ct_CC=$CC
4827 for ac_prog in cl.exe
4828 do
4829 # Extract the first word of "$ac_prog", so it can be a program name with args.
4830 set dummy $ac_prog; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4834 $as_echo_n "(cached) " >&6
4835 else
4836 if test -n "$ac_ct_CC"; then
4837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4838 else
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4841 do
4842 IFS=$as_save_IFS
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4846 ac_cv_prog_ac_ct_CC="$ac_prog"
4847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 break 2
4849 fi
4850 done
4851 done
4852 IFS=$as_save_IFS
4853
4854 fi
4855 fi
4856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4857 if test -n "$ac_ct_CC"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4859 $as_echo "$ac_ct_CC" >&6; }
4860 else
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4863 fi
4864
4865
4866 test -n "$ac_ct_CC" && break
4867 done
4868
4869 if test "x$ac_ct_CC" = x; then
4870 CC=""
4871 else
4872 case $cross_compiling:$ac_tool_warned in
4873 yes:)
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4876 ac_tool_warned=yes ;;
4877 esac
4878 CC=$ac_ct_CC
4879 fi
4880 fi
4881
4882 fi
4883
4884
4885 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4887 as_fn_error $? "no acceptable C compiler found in \$PATH
4888 See \`config.log' for more details" "$LINENO" 5; }
4889
4890 # Provide some information about the compiler.
4891 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4892 set X $ac_compile
4893 ac_compiler=$2
4894 for ac_option in --version -v -V -qversion; do
4895 { { ac_try="$ac_compiler $ac_option >&5"
4896 case "(($ac_try" in
4897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898 *) ac_try_echo=$ac_try;;
4899 esac
4900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4901 $as_echo "$ac_try_echo"; } >&5
4902 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4903 ac_status=$?
4904 if test -s conftest.err; then
4905 sed '10a\
4906 ... rest of stderr output deleted ...
4907 10q' conftest.err >conftest.er1
4908 cat conftest.er1 >&5
4909 fi
4910 rm -f conftest.er1 conftest.err
4911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4912 test $ac_status = 0; }
4913 done
4914
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4916 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4917 if ${ac_cv_c_compiler_gnu+:} false; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4922
4923 int
4924 main ()
4925 {
4926 #ifndef __GNUC__
4927 choke me
4928 #endif
4929
4930 ;
4931 return 0;
4932 }
4933 _ACEOF
4934 if ac_fn_c_try_compile "$LINENO"; then :
4935 ac_compiler_gnu=yes
4936 else
4937 ac_compiler_gnu=no
4938 fi
4939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4941
4942 fi
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4944 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4945 if test $ac_compiler_gnu = yes; then
4946 GCC=yes
4947 else
4948 GCC=
4949 fi
4950 ac_test_CFLAGS=${CFLAGS+set}
4951 ac_save_CFLAGS=$CFLAGS
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4953 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4954 if ${ac_cv_prog_cc_g+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 ac_save_c_werror_flag=$ac_c_werror_flag
4958 ac_c_werror_flag=yes
4959 ac_cv_prog_cc_g=no
4960 CFLAGS="-g"
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963
4964 int
4965 main ()
4966 {
4967
4968 ;
4969 return 0;
4970 }
4971 _ACEOF
4972 if ac_fn_c_try_compile "$LINENO"; then :
4973 ac_cv_prog_cc_g=yes
4974 else
4975 CFLAGS=""
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978
4979 int
4980 main ()
4981 {
4982
4983 ;
4984 return 0;
4985 }
4986 _ACEOF
4987 if ac_fn_c_try_compile "$LINENO"; then :
4988
4989 else
4990 ac_c_werror_flag=$ac_save_c_werror_flag
4991 CFLAGS="-g"
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4994
4995 int
4996 main ()
4997 {
4998
4999 ;
5000 return 0;
5001 }
5002 _ACEOF
5003 if ac_fn_c_try_compile "$LINENO"; then :
5004 ac_cv_prog_cc_g=yes
5005 fi
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 fi
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 fi
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 ac_c_werror_flag=$ac_save_c_werror_flag
5012 fi
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5014 $as_echo "$ac_cv_prog_cc_g" >&6; }
5015 if test "$ac_test_CFLAGS" = set; then
5016 CFLAGS=$ac_save_CFLAGS
5017 elif test $ac_cv_prog_cc_g = yes; then
5018 if test "$GCC" = yes; then
5019 CFLAGS="-g -O2"
5020 else
5021 CFLAGS="-g"
5022 fi
5023 else
5024 if test "$GCC" = yes; then
5025 CFLAGS="-O2"
5026 else
5027 CFLAGS=
5028 fi
5029 fi
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5031 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5032 if ${ac_cv_prog_cc_c89+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 ac_cv_prog_cc_c89=no
5036 ac_save_CC=$CC
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039 #include <stdarg.h>
5040 #include <stdio.h>
5041 struct stat;
5042 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5043 struct buf { int x; };
5044 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5045 static char *e (p, i)
5046 char **p;
5047 int i;
5048 {
5049 return p[i];
5050 }
5051 static char *f (char * (*g) (char **, int), char **p, ...)
5052 {
5053 char *s;
5054 va_list v;
5055 va_start (v,p);
5056 s = g (p, va_arg (v,int));
5057 va_end (v);
5058 return s;
5059 }
5060
5061 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5062 function prototypes and stuff, but not '\xHH' hex character constants.
5063 These don't provoke an error unfortunately, instead are silently treated
5064 as 'x'. The following induces an error, until -std is added to get
5065 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5066 array size at least. It's necessary to write '\x00'==0 to get something
5067 that's true only with -std. */
5068 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5069
5070 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5071 inside strings and character constants. */
5072 #define FOO(x) 'x'
5073 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5074
5075 int test (int i, double x);
5076 struct s1 {int (*f) (int a);};
5077 struct s2 {int (*f) (double a);};
5078 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5079 int argc;
5080 char **argv;
5081 int
5082 main ()
5083 {
5084 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5085 ;
5086 return 0;
5087 }
5088 _ACEOF
5089 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5090 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5091 do
5092 CC="$ac_save_CC $ac_arg"
5093 if ac_fn_c_try_compile "$LINENO"; then :
5094 ac_cv_prog_cc_c89=$ac_arg
5095 fi
5096 rm -f core conftest.err conftest.$ac_objext
5097 test "x$ac_cv_prog_cc_c89" != "xno" && break
5098 done
5099 rm -f conftest.$ac_ext
5100 CC=$ac_save_CC
5101
5102 fi
5103 # AC_CACHE_VAL
5104 case "x$ac_cv_prog_cc_c89" in
5105 x)
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5107 $as_echo "none needed" >&6; } ;;
5108 xno)
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5110 $as_echo "unsupported" >&6; } ;;
5111 *)
5112 CC="$CC $ac_cv_prog_cc_c89"
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5114 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5115 esac
5116 if test "x$ac_cv_prog_cc_c89" != xno; then :
5117
5118 fi
5119
5120 ac_ext=c
5121 ac_cpp='$CPP $CPPFLAGS'
5122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5125
5126 ac_ext=c
5127 ac_cpp='$CPP $CPPFLAGS'
5128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5132 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5133 if ${am_cv_prog_cc_c_o+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138
5139 int
5140 main ()
5141 {
5142
5143 ;
5144 return 0;
5145 }
5146 _ACEOF
5147 # Make sure it works both with $CC and with simple cc.
5148 # Following AC_PROG_CC_C_O, we do the test twice because some
5149 # compilers refuse to overwrite an existing .o file with -o,
5150 # though they will create one.
5151 am_cv_prog_cc_c_o=yes
5152 for am_i in 1 2; do
5153 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5154 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5155 ac_status=$?
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } \
5158 && test -f conftest2.$ac_objext; then
5159 : OK
5160 else
5161 am_cv_prog_cc_c_o=no
5162 break
5163 fi
5164 done
5165 rm -f core conftest*
5166 unset am_i
5167 fi
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5169 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5170 if test "$am_cv_prog_cc_c_o" != yes; then
5171 # Losing compiler, so override with the script.
5172 # FIXME: It is wrong to rewrite CC.
5173 # But if we don't then we get into trouble of one sort or another.
5174 # A longer-term fix would be to have automake use am__CC in this case,
5175 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5176 CC="$am_aux_dir/compile $CC"
5177 fi
5178 ac_ext=c
5179 ac_cpp='$CPP $CPPFLAGS'
5180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5183
5184
5185 depcc="$CC" am_compiler_list=
5186
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5188 $as_echo_n "checking dependency style of $depcc... " >&6; }
5189 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5193 # We make a subdir and do the tests there. Otherwise we can end up
5194 # making bogus files that we don't know about and never remove. For
5195 # instance it was reported that on HP-UX the gcc test will end up
5196 # making a dummy file named 'D' -- because '-MD' means "put the output
5197 # in D".
5198 rm -rf conftest.dir
5199 mkdir conftest.dir
5200 # Copy depcomp to subdir because otherwise we won't find it if we're
5201 # using a relative directory.
5202 cp "$am_depcomp" conftest.dir
5203 cd conftest.dir
5204 # We will build objects and dependencies in a subdirectory because
5205 # it helps to detect inapplicable dependency modes. For instance
5206 # both Tru64's cc and ICC support -MD to output dependencies as a
5207 # side effect of compilation, but ICC will put the dependencies in
5208 # the current directory while Tru64 will put them in the object
5209 # directory.
5210 mkdir sub
5211
5212 am_cv_CC_dependencies_compiler_type=none
5213 if test "$am_compiler_list" = ""; then
5214 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5215 fi
5216 am__universal=false
5217 case " $depcc " in #(
5218 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5219 esac
5220
5221 for depmode in $am_compiler_list; do
5222 # Setup a source with many dependencies, because some compilers
5223 # like to wrap large dependency lists on column 80 (with \), and
5224 # we should not choose a depcomp mode which is confused by this.
5225 #
5226 # We need to recreate these files for each test, as the compiler may
5227 # overwrite some of them when testing with obscure command lines.
5228 # This happens at least with the AIX C compiler.
5229 : > sub/conftest.c
5230 for i in 1 2 3 4 5 6; do
5231 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5232 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5233 # Solaris 10 /bin/sh.
5234 echo '/* dummy */' > sub/conftst$i.h
5235 done
5236 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5237
5238 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5239 # mode. It turns out that the SunPro C++ compiler does not properly
5240 # handle '-M -o', and we need to detect this. Also, some Intel
5241 # versions had trouble with output in subdirs.
5242 am__obj=sub/conftest.${OBJEXT-o}
5243 am__minus_obj="-o $am__obj"
5244 case $depmode in
5245 gcc)
5246 # This depmode causes a compiler race in universal mode.
5247 test "$am__universal" = false || continue
5248 ;;
5249 nosideeffect)
5250 # After this tag, mechanisms are not by side-effect, so they'll
5251 # only be used when explicitly requested.
5252 if test "x$enable_dependency_tracking" = xyes; then
5253 continue
5254 else
5255 break
5256 fi
5257 ;;
5258 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5259 # This compiler won't grok '-c -o', but also, the minuso test has
5260 # not run yet. These depmodes are late enough in the game, and
5261 # so weak that their functioning should not be impacted.
5262 am__obj=conftest.${OBJEXT-o}
5263 am__minus_obj=
5264 ;;
5265 none) break ;;
5266 esac
5267 if depmode=$depmode \
5268 source=sub/conftest.c object=$am__obj \
5269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5270 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5271 >/dev/null 2>conftest.err &&
5272 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5273 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5274 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5275 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5276 # icc doesn't choke on unknown options, it will just issue warnings
5277 # or remarks (even with -Werror). So we grep stderr for any message
5278 # that says an option was ignored or not supported.
5279 # When given -MP, icc 7.0 and 7.1 complain thusly:
5280 # icc: Command line warning: ignoring option '-M'; no argument required
5281 # The diagnosis changed in icc 8.0:
5282 # icc: Command line remark: option '-MP' not supported
5283 if (grep 'ignoring option' conftest.err ||
5284 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5285 am_cv_CC_dependencies_compiler_type=$depmode
5286 break
5287 fi
5288 fi
5289 done
5290
5291 cd ..
5292 rm -rf conftest.dir
5293 else
5294 am_cv_CC_dependencies_compiler_type=none
5295 fi
5296
5297 fi
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5299 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5300 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5301
5302 if
5303 test "x$enable_dependency_tracking" != xno \
5304 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5305 am__fastdepCC_TRUE=
5306 am__fastdepCC_FALSE='#'
5307 else
5308 am__fastdepCC_TRUE='#'
5309 am__fastdepCC_FALSE=
5310 fi
5311
5312
5313 ac_ext=cpp
5314 ac_cpp='$CXXCPP $CPPFLAGS'
5315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5318 if test -z "$CXX"; then
5319 if test -n "$CCC"; then
5320 CXX=$CCC
5321 else
5322 if test -n "$ac_tool_prefix"; then
5323 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5324 do
5325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_prog_CXX+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 if test -n "$CXX"; then
5333 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5337 do
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5345 fi
5346 done
5347 done
5348 IFS=$as_save_IFS
5349
5350 fi
5351 fi
5352 CXX=$ac_cv_prog_CXX
5353 if test -n "$CXX"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5355 $as_echo "$CXX" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5359 fi
5360
5361
5362 test -n "$CXX" && break
5363 done
5364 fi
5365 if test -z "$CXX"; then
5366 ac_ct_CXX=$CXX
5367 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5368 do
5369 # Extract the first word of "$ac_prog", so it can be a program name with args.
5370 set dummy $ac_prog; ac_word=$2
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5372 $as_echo_n "checking for $ac_word... " >&6; }
5373 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376 if test -n "$ac_ct_CXX"; then
5377 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5378 else
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH
5381 do
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386 ac_cv_prog_ac_ct_CXX="$ac_prog"
5387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 break 2
5389 fi
5390 done
5391 done
5392 IFS=$as_save_IFS
5393
5394 fi
5395 fi
5396 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5397 if test -n "$ac_ct_CXX"; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5399 $as_echo "$ac_ct_CXX" >&6; }
5400 else
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 $as_echo "no" >&6; }
5403 fi
5404
5405
5406 test -n "$ac_ct_CXX" && break
5407 done
5408
5409 if test "x$ac_ct_CXX" = x; then
5410 CXX="g++"
5411 else
5412 case $cross_compiling:$ac_tool_warned in
5413 yes:)
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5416 ac_tool_warned=yes ;;
5417 esac
5418 CXX=$ac_ct_CXX
5419 fi
5420 fi
5421
5422 fi
5423 fi
5424 # Provide some information about the compiler.
5425 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5426 set X $ac_compile
5427 ac_compiler=$2
5428 for ac_option in --version -v -V -qversion; do
5429 { { ac_try="$ac_compiler $ac_option >&5"
5430 case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433 esac
5434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5435 $as_echo "$ac_try_echo"; } >&5
5436 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5437 ac_status=$?
5438 if test -s conftest.err; then
5439 sed '10a\
5440 ... rest of stderr output deleted ...
5441 10q' conftest.err >conftest.er1
5442 cat conftest.er1 >&5
5443 fi
5444 rm -f conftest.er1 conftest.err
5445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5446 test $ac_status = 0; }
5447 done
5448
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5450 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5451 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456
5457 int
5458 main ()
5459 {
5460 #ifndef __GNUC__
5461 choke me
5462 #endif
5463
5464 ;
5465 return 0;
5466 }
5467 _ACEOF
5468 if ac_fn_cxx_try_compile "$LINENO"; then :
5469 ac_compiler_gnu=yes
5470 else
5471 ac_compiler_gnu=no
5472 fi
5473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5475
5476 fi
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5478 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5479 if test $ac_compiler_gnu = yes; then
5480 GXX=yes
5481 else
5482 GXX=
5483 fi
5484 ac_test_CXXFLAGS=${CXXFLAGS+set}
5485 ac_save_CXXFLAGS=$CXXFLAGS
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5487 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5488 if ${ac_cv_prog_cxx_g+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5492 ac_cxx_werror_flag=yes
5493 ac_cv_prog_cxx_g=no
5494 CXXFLAGS="-g"
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5497
5498 int
5499 main ()
5500 {
5501
5502 ;
5503 return 0;
5504 }
5505 _ACEOF
5506 if ac_fn_cxx_try_compile "$LINENO"; then :
5507 ac_cv_prog_cxx_g=yes
5508 else
5509 CXXFLAGS=""
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512
5513 int
5514 main ()
5515 {
5516
5517 ;
5518 return 0;
5519 }
5520 _ACEOF
5521 if ac_fn_cxx_try_compile "$LINENO"; then :
5522
5523 else
5524 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5525 CXXFLAGS="-g"
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528
5529 int
5530 main ()
5531 {
5532
5533 ;
5534 return 0;
5535 }
5536 _ACEOF
5537 if ac_fn_cxx_try_compile "$LINENO"; then :
5538 ac_cv_prog_cxx_g=yes
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541 fi
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543 fi
5544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5546 fi
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5548 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5549 if test "$ac_test_CXXFLAGS" = set; then
5550 CXXFLAGS=$ac_save_CXXFLAGS
5551 elif test $ac_cv_prog_cxx_g = yes; then
5552 if test "$GXX" = yes; then
5553 CXXFLAGS="-g -O2"
5554 else
5555 CXXFLAGS="-g"
5556 fi
5557 else
5558 if test "$GXX" = yes; then
5559 CXXFLAGS="-O2"
5560 else
5561 CXXFLAGS=
5562 fi
5563 fi
5564 ac_ext=c
5565 ac_cpp='$CPP $CPPFLAGS'
5566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5569
5570 depcc="$CXX" am_compiler_list=
5571
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5573 $as_echo_n "checking dependency style of $depcc... " >&6; }
5574 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5578 # We make a subdir and do the tests there. Otherwise we can end up
5579 # making bogus files that we don't know about and never remove. For
5580 # instance it was reported that on HP-UX the gcc test will end up
5581 # making a dummy file named 'D' -- because '-MD' means "put the output
5582 # in D".
5583 rm -rf conftest.dir
5584 mkdir conftest.dir
5585 # Copy depcomp to subdir because otherwise we won't find it if we're
5586 # using a relative directory.
5587 cp "$am_depcomp" conftest.dir
5588 cd conftest.dir
5589 # We will build objects and dependencies in a subdirectory because
5590 # it helps to detect inapplicable dependency modes. For instance
5591 # both Tru64's cc and ICC support -MD to output dependencies as a
5592 # side effect of compilation, but ICC will put the dependencies in
5593 # the current directory while Tru64 will put them in the object
5594 # directory.
5595 mkdir sub
5596
5597 am_cv_CXX_dependencies_compiler_type=none
5598 if test "$am_compiler_list" = ""; then
5599 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5600 fi
5601 am__universal=false
5602 case " $depcc " in #(
5603 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5604 esac
5605
5606 for depmode in $am_compiler_list; do
5607 # Setup a source with many dependencies, because some compilers
5608 # like to wrap large dependency lists on column 80 (with \), and
5609 # we should not choose a depcomp mode which is confused by this.
5610 #
5611 # We need to recreate these files for each test, as the compiler may
5612 # overwrite some of them when testing with obscure command lines.
5613 # This happens at least with the AIX C compiler.
5614 : > sub/conftest.c
5615 for i in 1 2 3 4 5 6; do
5616 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5617 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5618 # Solaris 10 /bin/sh.
5619 echo '/* dummy */' > sub/conftst$i.h
5620 done
5621 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5622
5623 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5624 # mode. It turns out that the SunPro C++ compiler does not properly
5625 # handle '-M -o', and we need to detect this. Also, some Intel
5626 # versions had trouble with output in subdirs.
5627 am__obj=sub/conftest.${OBJEXT-o}
5628 am__minus_obj="-o $am__obj"
5629 case $depmode in
5630 gcc)
5631 # This depmode causes a compiler race in universal mode.
5632 test "$am__universal" = false || continue
5633 ;;
5634 nosideeffect)
5635 # After this tag, mechanisms are not by side-effect, so they'll
5636 # only be used when explicitly requested.
5637 if test "x$enable_dependency_tracking" = xyes; then
5638 continue
5639 else
5640 break
5641 fi
5642 ;;
5643 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5644 # This compiler won't grok '-c -o', but also, the minuso test has
5645 # not run yet. These depmodes are late enough in the game, and
5646 # so weak that their functioning should not be impacted.
5647 am__obj=conftest.${OBJEXT-o}
5648 am__minus_obj=
5649 ;;
5650 none) break ;;
5651 esac
5652 if depmode=$depmode \
5653 source=sub/conftest.c object=$am__obj \
5654 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5655 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5656 >/dev/null 2>conftest.err &&
5657 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5658 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5659 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5660 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5661 # icc doesn't choke on unknown options, it will just issue warnings
5662 # or remarks (even with -Werror). So we grep stderr for any message
5663 # that says an option was ignored or not supported.
5664 # When given -MP, icc 7.0 and 7.1 complain thusly:
5665 # icc: Command line warning: ignoring option '-M'; no argument required
5666 # The diagnosis changed in icc 8.0:
5667 # icc: Command line remark: option '-MP' not supported
5668 if (grep 'ignoring option' conftest.err ||
5669 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5670 am_cv_CXX_dependencies_compiler_type=$depmode
5671 break
5672 fi
5673 fi
5674 done
5675
5676 cd ..
5677 rm -rf conftest.dir
5678 else
5679 am_cv_CXX_dependencies_compiler_type=none
5680 fi
5681
5682 fi
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5684 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5685 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5686
5687 if
5688 test "x$enable_dependency_tracking" != xno \
5689 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5690 am__fastdepCXX_TRUE=
5691 am__fastdepCXX_FALSE='#'
5692 else
5693 am__fastdepCXX_TRUE='#'
5694 am__fastdepCXX_FALSE=
5695 fi
5696
5697
5698
5699 if test -n "$ac_tool_prefix"; then
5700 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5701 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if ${ac_cv_prog_RANLIB+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -n "$RANLIB"; then
5708 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721 done
5722 done
5723 IFS=$as_save_IFS
5724
5725 fi
5726 fi
5727 RANLIB=$ac_cv_prog_RANLIB
5728 if test -n "$RANLIB"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5730 $as_echo "$RANLIB" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5735
5736
5737 fi
5738 if test -z "$ac_cv_prog_RANLIB"; then
5739 ac_ct_RANLIB=$RANLIB
5740 # Extract the first word of "ranlib", so it can be a program name with args.
5741 set dummy ranlib; ac_word=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 if test -n "$ac_ct_RANLIB"; then
5748 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753 IFS=$as_save_IFS
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_ac_ct_RANLIB="ranlib"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765 fi
5766 fi
5767 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5768 if test -n "$ac_ct_RANLIB"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5770 $as_echo "$ac_ct_RANLIB" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774 fi
5775
5776 if test "x$ac_ct_RANLIB" = x; then
5777 RANLIB=":"
5778 else
5779 case $cross_compiling:$ac_tool_warned in
5780 yes:)
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5783 ac_tool_warned=yes ;;
5784 esac
5785 RANLIB=$ac_ct_RANLIB
5786 fi
5787 else
5788 RANLIB="$ac_cv_prog_RANLIB"
5789 fi
5790
5791 if test -n "$ac_tool_prefix"; then
5792 for ac_prog in ar lib "link -lib"
5793 do
5794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5795 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_AR+:} false; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 if test -n "$AR"; then
5802 ac_cv_prog_AR="$AR" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815 done
5816 done
5817 IFS=$as_save_IFS
5818
5819 fi
5820 fi
5821 AR=$ac_cv_prog_AR
5822 if test -n "$AR"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5824 $as_echo "$AR" >&6; }
5825 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 fi
5829
5830
5831 test -n "$AR" && break
5832 done
5833 fi
5834 if test -z "$AR"; then
5835 ac_ct_AR=$AR
5836 for ac_prog in ar lib "link -lib"
5837 do
5838 # Extract the first word of "$ac_prog", so it can be a program name with args.
5839 set dummy $ac_prog; ac_word=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 if test -n "$ac_ct_AR"; then
5846 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_ac_ct_AR="$ac_prog"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 break 2
5858 fi
5859 done
5860 done
5861 IFS=$as_save_IFS
5862
5863 fi
5864 fi
5865 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5866 if test -n "$ac_ct_AR"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5868 $as_echo "$ac_ct_AR" >&6; }
5869 else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5872 fi
5873
5874
5875 test -n "$ac_ct_AR" && break
5876 done
5877
5878 if test "x$ac_ct_AR" = x; then
5879 AR="false"
5880 else
5881 case $cross_compiling:$ac_tool_warned in
5882 yes:)
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5885 ac_tool_warned=yes ;;
5886 esac
5887 AR=$ac_ct_AR
5888 fi
5889 fi
5890
5891 : ${AR=ar}
5892
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5894 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5895 if ${am_cv_ar_interface+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 ac_ext=c
5899 ac_cpp='$CPP $CPPFLAGS'
5900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5903
5904 am_cv_ar_interface=ar
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 int some_variable = 0;
5908 _ACEOF
5909 if ac_fn_c_try_compile "$LINENO"; then :
5910 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5912 (eval $am_ar_try) 2>&5
5913 ac_status=$?
5914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5915 test $ac_status = 0; }
5916 if test "$ac_status" -eq 0; then
5917 am_cv_ar_interface=ar
5918 else
5919 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5921 (eval $am_ar_try) 2>&5
5922 ac_status=$?
5923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5924 test $ac_status = 0; }
5925 if test "$ac_status" -eq 0; then
5926 am_cv_ar_interface=lib
5927 else
5928 am_cv_ar_interface=unknown
5929 fi
5930 fi
5931 rm -f conftest.lib libconftest.a
5932
5933 fi
5934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935 ac_ext=c
5936 ac_cpp='$CPP $CPPFLAGS'
5937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5940
5941 fi
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5943 $as_echo "$am_cv_ar_interface" >&6; }
5944
5945 case $am_cv_ar_interface in
5946 ar)
5947 ;;
5948 lib)
5949 # Microsoft lib, so override with the ar-lib wrapper script.
5950 # FIXME: It is wrong to rewrite AR.
5951 # But if we don't then we get into trouble of one sort or another.
5952 # A longer-term fix would be to have automake use am__AR in this case,
5953 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5954 # similar.
5955 AR="$am_aux_dir/ar-lib $AR"
5956 ;;
5957 unknown)
5958 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5959 ;;
5960 esac
5961
5962
5963 case `pwd` in
5964 *\ * | *\ *)
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5966 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5967 esac
5968
5969
5970
5971 macro_version='2.2.7a'
5972 macro_revision='1.3134'
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986 ltmain="$ac_aux_dir/ltmain.sh"
5987
5988 # Backslashify metacharacters that are still active within
5989 # double-quoted strings.
5990 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5991
5992 # Same as above, but do not quote variable references.
5993 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5994
5995 # Sed substitution to delay expansion of an escaped shell variable in a
5996 # double_quote_subst'ed string.
5997 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5998
5999 # Sed substitution to delay expansion of an escaped single quote.
6000 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6001
6002 # Sed substitution to avoid accidental globbing in evaled expressions
6003 no_glob_subst='s/\*/\\\*/g'
6004
6005 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6006 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6007 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6008
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6010 $as_echo_n "checking how to print strings... " >&6; }
6011 # Test print first, because it will be a builtin if present.
6012 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6013 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6014 ECHO='print -r --'
6015 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6016 ECHO='printf %s\n'
6017 else
6018 # Use this function as a fallback that always works.
6019 func_fallback_echo ()
6020 {
6021 eval 'cat <<_LTECHO_EOF
6022 $1
6023 _LTECHO_EOF'
6024 }
6025 ECHO='func_fallback_echo'
6026 fi
6027
6028 # func_echo_all arg...
6029 # Invoke $ECHO with all args, space-separated.
6030 func_echo_all ()
6031 {
6032 $ECHO ""
6033 }
6034
6035 case "$ECHO" in
6036 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6037 $as_echo "printf" >&6; } ;;
6038 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6039 $as_echo "print -r" >&6; } ;;
6040 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6041 $as_echo "cat" >&6; } ;;
6042 esac
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6058 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6059 if ${ac_cv_path_SED+:} false; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6063 for ac_i in 1 2 3 4 5 6 7; do
6064 ac_script="$ac_script$as_nl$ac_script"
6065 done
6066 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6067 { ac_script=; unset ac_script;}
6068 if test -z "$SED"; then
6069 ac_path_SED_found=false
6070 # Loop through the user's path and test for each of PROGNAME-LIST
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6073 do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_prog in sed gsed; do
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6079 as_fn_executable_p "$ac_path_SED" || continue
6080 # Check for GNU ac_path_SED and select it if it is found.
6081 # Check for GNU $ac_path_SED
6082 case `"$ac_path_SED" --version 2>&1` in
6083 *GNU*)
6084 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6085 *)
6086 ac_count=0
6087 $as_echo_n 0123456789 >"conftest.in"
6088 while :
6089 do
6090 cat "conftest.in" "conftest.in" >"conftest.tmp"
6091 mv "conftest.tmp" "conftest.in"
6092 cp "conftest.in" "conftest.nl"
6093 $as_echo '' >> "conftest.nl"
6094 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6096 as_fn_arith $ac_count + 1 && ac_count=$as_val
6097 if test $ac_count -gt ${ac_path_SED_max-0}; then
6098 # Best one so far, save it but keep looking for a better one
6099 ac_cv_path_SED="$ac_path_SED"
6100 ac_path_SED_max=$ac_count
6101 fi
6102 # 10*(2^10) chars as input seems more than enough
6103 test $ac_count -gt 10 && break
6104 done
6105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6106 esac
6107
6108 $ac_path_SED_found && break 3
6109 done
6110 done
6111 done
6112 IFS=$as_save_IFS
6113 if test -z "$ac_cv_path_SED"; then
6114 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6115 fi
6116 else
6117 ac_cv_path_SED=$SED
6118 fi
6119
6120 fi
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6122 $as_echo "$ac_cv_path_SED" >&6; }
6123 SED="$ac_cv_path_SED"
6124 rm -f conftest.sed
6125
6126 test -z "$SED" && SED=sed
6127 Xsed="$SED -e 1s/^X//"
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6140 $as_echo_n "checking for fgrep... " >&6; }
6141 if ${ac_cv_path_FGREP+:} false; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6144 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6145 then ac_cv_path_FGREP="$GREP -F"
6146 else
6147 if test -z "$FGREP"; then
6148 ac_path_FGREP_found=false
6149 # Loop through the user's path and test for each of PROGNAME-LIST
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6152 do
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
6155 for ac_prog in fgrep; do
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6158 as_fn_executable_p "$ac_path_FGREP" || continue
6159 # Check for GNU ac_path_FGREP and select it if it is found.
6160 # Check for GNU $ac_path_FGREP
6161 case `"$ac_path_FGREP" --version 2>&1` in
6162 *GNU*)
6163 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6164 *)
6165 ac_count=0
6166 $as_echo_n 0123456789 >"conftest.in"
6167 while :
6168 do
6169 cat "conftest.in" "conftest.in" >"conftest.tmp"
6170 mv "conftest.tmp" "conftest.in"
6171 cp "conftest.in" "conftest.nl"
6172 $as_echo 'FGREP' >> "conftest.nl"
6173 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6175 as_fn_arith $ac_count + 1 && ac_count=$as_val
6176 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6177 # Best one so far, save it but keep looking for a better one
6178 ac_cv_path_FGREP="$ac_path_FGREP"
6179 ac_path_FGREP_max=$ac_count
6180 fi
6181 # 10*(2^10) chars as input seems more than enough
6182 test $ac_count -gt 10 && break
6183 done
6184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6185 esac
6186
6187 $ac_path_FGREP_found && break 3
6188 done
6189 done
6190 done
6191 IFS=$as_save_IFS
6192 if test -z "$ac_cv_path_FGREP"; then
6193 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6194 fi
6195 else
6196 ac_cv_path_FGREP=$FGREP
6197 fi
6198
6199 fi
6200 fi
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6202 $as_echo "$ac_cv_path_FGREP" >&6; }
6203 FGREP="$ac_cv_path_FGREP"
6204
6205
6206 test -z "$GREP" && GREP=grep
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226 # Check whether --with-gnu-ld was given.
6227 if test "${with_gnu_ld+set}" = set; then :
6228 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6229 else
6230 with_gnu_ld=no
6231 fi
6232
6233 ac_prog=ld
6234 if test "$GCC" = yes; then
6235 # Check if gcc -print-prog-name=ld gives a path.
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6237 $as_echo_n "checking for ld used by $CC... " >&6; }
6238 case $host in
6239 *-*-mingw*)
6240 # gcc leaves a trailing carriage return which upsets mingw
6241 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6242 *)
6243 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6244 esac
6245 case $ac_prog in
6246 # Accept absolute paths.
6247 [\\/]* | ?:[\\/]*)
6248 re_direlt='/[^/][^/]*/\.\./'
6249 # Canonicalize the pathname of ld
6250 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6251 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6252 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6253 done
6254 test -z "$LD" && LD="$ac_prog"
6255 ;;
6256 "")
6257 # If it fails, then pretend we aren't using GCC.
6258 ac_prog=ld
6259 ;;
6260 *)
6261 # If it is relative, then search for the first ld in PATH.
6262 with_gnu_ld=unknown
6263 ;;
6264 esac
6265 elif test "$with_gnu_ld" = yes; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6267 $as_echo_n "checking for GNU ld... " >&6; }
6268 else
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6270 $as_echo_n "checking for non-GNU ld... " >&6; }
6271 fi
6272 if ${lt_cv_path_LD+:} false; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 if test -z "$LD"; then
6276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6277 for ac_dir in $PATH; do
6278 IFS="$lt_save_ifs"
6279 test -z "$ac_dir" && ac_dir=.
6280 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6281 lt_cv_path_LD="$ac_dir/$ac_prog"
6282 # Check to see if the program is GNU ld. I'd rather use --version,
6283 # but apparently some variants of GNU ld only accept -v.
6284 # Break only if it was the GNU/non-GNU ld that we prefer.
6285 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6286 *GNU* | *'with BFD'*)
6287 test "$with_gnu_ld" != no && break
6288 ;;
6289 *)
6290 test "$with_gnu_ld" != yes && break
6291 ;;
6292 esac
6293 fi
6294 done
6295 IFS="$lt_save_ifs"
6296 else
6297 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6298 fi
6299 fi
6300
6301 LD="$lt_cv_path_LD"
6302 if test -n "$LD"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6304 $as_echo "$LD" >&6; }
6305 else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6308 fi
6309 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6311 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6312 if ${lt_cv_prog_gnu_ld+:} false; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6316 case `$LD -v 2>&1 </dev/null` in
6317 *GNU* | *'with BFD'*)
6318 lt_cv_prog_gnu_ld=yes
6319 ;;
6320 *)
6321 lt_cv_prog_gnu_ld=no
6322 ;;
6323 esac
6324 fi
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6326 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6327 with_gnu_ld=$lt_cv_prog_gnu_ld
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6338 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6339 if ${lt_cv_path_NM+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 if test -n "$NM"; then
6343 # Let the user override the nm to test.
6344 lt_nm_to_check="$NM"
6345 else
6346 lt_nm_to_check="${ac_tool_prefix}nm"
6347 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6348 lt_nm_to_check="$lt_nm_to_check nm"
6349 fi
6350 fi
6351 for lt_tmp_nm in "$lt_nm_to_check"; do
6352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6353 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6354 IFS="$lt_save_ifs"
6355 test -z "$ac_dir" && ac_dir=.
6356 # Strip out any user-provided options from the nm to test twice,
6357 # the first time to test to see if nm (rather than its options) has
6358 # an explicit path, the second time to yield a file which can be
6359 # nm'ed itself.
6360 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6361 case "$tmp_nm_path" in
6362 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6363 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6364 esac
6365 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6366 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6367 # Check to see if the nm accepts a BSD-compat flag.
6368 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6369 # nm: unknown option "B" ignored
6370 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6371 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6372 break
6373 ;;
6374 *)
6375 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6376 *$tmp_nm*)
6377 lt_cv_path_NM="$tmp_nm -p"
6378 break
6379 ;;
6380 *)
6381 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6382 continue # so that we can try to find one that supports BSD flags
6383 ;;
6384 esac
6385 ;;
6386 esac
6387 fi
6388 done
6389 IFS="$lt_save_ifs"
6390 done
6391 : ${lt_cv_path_NM=no}
6392 fi
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6394 $as_echo "$lt_cv_path_NM" >&6; }
6395 if test "$lt_cv_path_NM" != "no"; then
6396 NM="$lt_cv_path_NM"
6397 else
6398 # Didn't find any BSD compatible name lister, look for dumpbin.
6399 if test -n "$DUMPBIN"; then :
6400 # Let the user override the test.
6401 else
6402 if test -n "$ac_tool_prefix"; then
6403 for ac_prog in dumpbin "link -dump"
6404 do
6405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6406 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 $as_echo_n "checking for $ac_word... " >&6; }
6409 if ${ac_cv_prog_DUMPBIN+:} false; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 if test -n "$DUMPBIN"; then
6413 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6414 else
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6417 do
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6422 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 break 2
6425 fi
6426 done
6427 done
6428 IFS=$as_save_IFS
6429
6430 fi
6431 fi
6432 DUMPBIN=$ac_cv_prog_DUMPBIN
6433 if test -n "$DUMPBIN"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6435 $as_echo "$DUMPBIN" >&6; }
6436 else
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6439 fi
6440
6441
6442 test -n "$DUMPBIN" && break
6443 done
6444 fi
6445 if test -z "$DUMPBIN"; then
6446 ac_ct_DUMPBIN=$DUMPBIN
6447 for ac_prog in dumpbin "link -dump"
6448 do
6449 # Extract the first word of "$ac_prog", so it can be a program name with args.
6450 set dummy $ac_prog; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 if test -n "$ac_ct_DUMPBIN"; then
6457 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462 IFS=$as_save_IFS
6463 test -z "$as_dir" && as_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6466 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 break 2
6469 fi
6470 done
6471 done
6472 IFS=$as_save_IFS
6473
6474 fi
6475 fi
6476 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6477 if test -n "$ac_ct_DUMPBIN"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6479 $as_echo "$ac_ct_DUMPBIN" >&6; }
6480 else
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6483 fi
6484
6485
6486 test -n "$ac_ct_DUMPBIN" && break
6487 done
6488
6489 if test "x$ac_ct_DUMPBIN" = x; then
6490 DUMPBIN=":"
6491 else
6492 case $cross_compiling:$ac_tool_warned in
6493 yes:)
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496 ac_tool_warned=yes ;;
6497 esac
6498 DUMPBIN=$ac_ct_DUMPBIN
6499 fi
6500 fi
6501
6502 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6503 *COFF*)
6504 DUMPBIN="$DUMPBIN -symbols"
6505 ;;
6506 *)
6507 DUMPBIN=:
6508 ;;
6509 esac
6510 fi
6511
6512 if test "$DUMPBIN" != ":"; then
6513 NM="$DUMPBIN"
6514 fi
6515 fi
6516 test -z "$NM" && NM=nm
6517
6518
6519
6520
6521
6522
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6524 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6525 if ${lt_cv_nm_interface+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 lt_cv_nm_interface="BSD nm"
6529 echo "int some_variable = 0;" > conftest.$ac_ext
6530 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6531 (eval "$ac_compile" 2>conftest.err)
6532 cat conftest.err >&5
6533 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6534 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6535 cat conftest.err >&5
6536 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6537 cat conftest.out >&5
6538 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6539 lt_cv_nm_interface="MS dumpbin"
6540 fi
6541 rm -f conftest*
6542 fi
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6544 $as_echo "$lt_cv_nm_interface" >&6; }
6545
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6547 $as_echo_n "checking whether ln -s works... " >&6; }
6548 LN_S=$as_ln_s
6549 if test "$LN_S" = "ln -s"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6551 $as_echo "yes" >&6; }
6552 else
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6554 $as_echo "no, using $LN_S" >&6; }
6555 fi
6556
6557 # find the maximum length of command line arguments
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6559 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6560 if ${lt_cv_sys_max_cmd_len+:} false; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 i=0
6564 teststring="ABCD"
6565
6566 case $build_os in
6567 msdosdjgpp*)
6568 # On DJGPP, this test can blow up pretty badly due to problems in libc
6569 # (any single argument exceeding 2000 bytes causes a buffer overrun
6570 # during glob expansion). Even if it were fixed, the result of this
6571 # check would be larger than it should be.
6572 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6573 ;;
6574
6575 gnu*)
6576 # Under GNU Hurd, this test is not required because there is
6577 # no limit to the length of command line arguments.
6578 # Libtool will interpret -1 as no limit whatsoever
6579 lt_cv_sys_max_cmd_len=-1;
6580 ;;
6581
6582 cygwin* | mingw* | cegcc*)
6583 # On Win9x/ME, this test blows up -- it succeeds, but takes
6584 # about 5 minutes as the teststring grows exponentially.
6585 # Worse, since 9x/ME are not pre-emptively multitasking,
6586 # you end up with a "frozen" computer, even though with patience
6587 # the test eventually succeeds (with a max line length of 256k).
6588 # Instead, let's just punt: use the minimum linelength reported by
6589 # all of the supported platforms: 8192 (on NT/2K/XP).
6590 lt_cv_sys_max_cmd_len=8192;
6591 ;;
6592
6593 mint*)
6594 # On MiNT this can take a long time and run out of memory.
6595 lt_cv_sys_max_cmd_len=8192;
6596 ;;
6597
6598 amigaos*)
6599 # On AmigaOS with pdksh, this test takes hours, literally.
6600 # So we just punt and use a minimum line length of 8192.
6601 lt_cv_sys_max_cmd_len=8192;
6602 ;;
6603
6604 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6605 # This has been around since 386BSD, at least. Likely further.
6606 if test -x /sbin/sysctl; then
6607 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6608 elif test -x /usr/sbin/sysctl; then
6609 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6610 else
6611 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6612 fi
6613 # And add a safety zone
6614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6616 ;;
6617
6618 interix*)
6619 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6620 lt_cv_sys_max_cmd_len=196608
6621 ;;
6622
6623 osf*)
6624 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6625 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6626 # nice to cause kernel panics so lets avoid the loop below.
6627 # First set a reasonable default.
6628 lt_cv_sys_max_cmd_len=16384
6629 #
6630 if test -x /sbin/sysconfig; then
6631 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6632 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6633 esac
6634 fi
6635 ;;
6636 sco3.2v5*)
6637 lt_cv_sys_max_cmd_len=102400
6638 ;;
6639 sysv5* | sco5v6* | sysv4.2uw2*)
6640 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6641 if test -n "$kargmax"; then
6642 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6643 else
6644 lt_cv_sys_max_cmd_len=32768
6645 fi
6646 ;;
6647 *)
6648 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6649 if test -n "$lt_cv_sys_max_cmd_len"; then
6650 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6652 else
6653 # Make teststring a little bigger before we do anything with it.
6654 # a 1K string should be a reasonable start.
6655 for i in 1 2 3 4 5 6 7 8 ; do
6656 teststring=$teststring$teststring
6657 done
6658 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6659 # If test is not a shell built-in, we'll probably end up computing a
6660 # maximum length that is only half of the actual maximum length, but
6661 # we can't tell.
6662 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6663 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6664 test $i != 17 # 1/2 MB should be enough
6665 do
6666 i=`expr $i + 1`
6667 teststring=$teststring$teststring
6668 done
6669 # Only check the string length outside the loop.
6670 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6671 teststring=
6672 # Add a significant safety factor because C++ compilers can tack on
6673 # massive amounts of additional arguments before passing them to the
6674 # linker. It appears as though 1/2 is a usable value.
6675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6676 fi
6677 ;;
6678 esac
6679
6680 fi
6681
6682 if test -n $lt_cv_sys_max_cmd_len ; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6684 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6685 else
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6687 $as_echo "none" >&6; }
6688 fi
6689 max_cmd_len=$lt_cv_sys_max_cmd_len
6690
6691
6692
6693
6694
6695
6696 : ${CP="cp -f"}
6697 : ${MV="mv -f"}
6698 : ${RM="rm -f"}
6699
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6701 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6702 # Try some XSI features
6703 xsi_shell=no
6704 ( _lt_dummy="a/b/c"
6705 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6706 = c,a/b,, \
6707 && eval 'test $(( 1 + 1 )) -eq 2 \
6708 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6709 && xsi_shell=yes
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6711 $as_echo "$xsi_shell" >&6; }
6712
6713
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6715 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6716 lt_shell_append=no
6717 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6718 >/dev/null 2>&1 \
6719 && lt_shell_append=yes
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6721 $as_echo "$lt_shell_append" >&6; }
6722
6723
6724 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6725 lt_unset=unset
6726 else
6727 lt_unset=false
6728 fi
6729
6730
6731
6732
6733
6734 # test EBCDIC or ASCII
6735 case `echo X|tr X '\101'` in
6736 A) # ASCII based system
6737 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6738 lt_SP2NL='tr \040 \012'
6739 lt_NL2SP='tr \015\012 \040\040'
6740 ;;
6741 *) # EBCDIC based system
6742 lt_SP2NL='tr \100 \n'
6743 lt_NL2SP='tr \r\n \100\100'
6744 ;;
6745 esac
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6756 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6757 if ${lt_cv_ld_reload_flag+:} false; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 lt_cv_ld_reload_flag='-r'
6761 fi
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6763 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6764 reload_flag=$lt_cv_ld_reload_flag
6765 case $reload_flag in
6766 "" | " "*) ;;
6767 *) reload_flag=" $reload_flag" ;;
6768 esac
6769 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6770 case $host_os in
6771 darwin*)
6772 if test "$GCC" = yes; then
6773 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6774 else
6775 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6776 fi
6777 ;;
6778 esac
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788 if test -n "$ac_tool_prefix"; then
6789 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6790 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6792 $as_echo_n "checking for $ac_word... " >&6; }
6793 if ${ac_cv_prog_OBJDUMP+:} false; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 if test -n "$OBJDUMP"; then
6797 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6798 else
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 for as_dir in $PATH
6801 do
6802 IFS=$as_save_IFS
6803 test -z "$as_dir" && as_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6806 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 break 2
6809 fi
6810 done
6811 done
6812 IFS=$as_save_IFS
6813
6814 fi
6815 fi
6816 OBJDUMP=$ac_cv_prog_OBJDUMP
6817 if test -n "$OBJDUMP"; then
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6819 $as_echo "$OBJDUMP" >&6; }
6820 else
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822 $as_echo "no" >&6; }
6823 fi
6824
6825
6826 fi
6827 if test -z "$ac_cv_prog_OBJDUMP"; then
6828 ac_ct_OBJDUMP=$OBJDUMP
6829 # Extract the first word of "objdump", so it can be a program name with args.
6830 set dummy objdump; ac_word=$2
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836 if test -n "$ac_ct_OBJDUMP"; then
6837 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6838 else
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in $PATH
6841 do
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 break 2
6849 fi
6850 done
6851 done
6852 IFS=$as_save_IFS
6853
6854 fi
6855 fi
6856 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6857 if test -n "$ac_ct_OBJDUMP"; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6859 $as_echo "$ac_ct_OBJDUMP" >&6; }
6860 else
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862 $as_echo "no" >&6; }
6863 fi
6864
6865 if test "x$ac_ct_OBJDUMP" = x; then
6866 OBJDUMP="false"
6867 else
6868 case $cross_compiling:$ac_tool_warned in
6869 yes:)
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6872 ac_tool_warned=yes ;;
6873 esac
6874 OBJDUMP=$ac_ct_OBJDUMP
6875 fi
6876 else
6877 OBJDUMP="$ac_cv_prog_OBJDUMP"
6878 fi
6879
6880 test -z "$OBJDUMP" && OBJDUMP=objdump
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6891 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6892 if ${lt_cv_deplibs_check_method+:} false; then :
6893 $as_echo_n "(cached) " >&6
6894 else
6895 lt_cv_file_magic_cmd='$MAGIC_CMD'
6896 lt_cv_file_magic_test_file=
6897 lt_cv_deplibs_check_method='unknown'
6898 # Need to set the preceding variable on all platforms that support
6899 # interlibrary dependencies.
6900 # 'none' -- dependencies not supported.
6901 # `unknown' -- same as none, but documents that we really don't know.
6902 # 'pass_all' -- all dependencies passed with no checks.
6903 # 'test_compile' -- check by making test program.
6904 # 'file_magic [[regex]]' -- check by looking for files in library path
6905 # which responds to the $file_magic_cmd with a given extended regex.
6906 # If you have `file' or equivalent on your system and you're not sure
6907 # whether `pass_all' will *always* work, you probably want this one.
6908
6909 case $host_os in
6910 aix[4-9]*)
6911 lt_cv_deplibs_check_method=pass_all
6912 ;;
6913
6914 beos*)
6915 lt_cv_deplibs_check_method=pass_all
6916 ;;
6917
6918 bsdi[45]*)
6919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6920 lt_cv_file_magic_cmd='/usr/bin/file -L'
6921 lt_cv_file_magic_test_file=/shlib/libc.so
6922 ;;
6923
6924 cygwin*)
6925 # func_win32_libid is a shell function defined in ltmain.sh
6926 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6927 lt_cv_file_magic_cmd='func_win32_libid'
6928 ;;
6929
6930 mingw* | pw32*)
6931 # Base MSYS/MinGW do not provide the 'file' command needed by
6932 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6933 # unless we find 'file', for example because we are cross-compiling.
6934 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6935 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6936 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6937 lt_cv_file_magic_cmd='func_win32_libid'
6938 else
6939 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6940 lt_cv_file_magic_cmd='$OBJDUMP -f'
6941 fi
6942 ;;
6943
6944 cegcc*)
6945 # use the weaker test based on 'objdump'. See mingw*.
6946 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6947 lt_cv_file_magic_cmd='$OBJDUMP -f'
6948 ;;
6949
6950 darwin* | rhapsody*)
6951 lt_cv_deplibs_check_method=pass_all
6952 ;;
6953
6954 freebsd* | dragonfly*)
6955 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6956 case $host_cpu in
6957 i*86 )
6958 # Not sure whether the presence of OpenBSD here was a mistake.
6959 # Let's accept both of them until this is cleared up.
6960 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6961 lt_cv_file_magic_cmd=/usr/bin/file
6962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6963 ;;
6964 esac
6965 else
6966 lt_cv_deplibs_check_method=pass_all
6967 fi
6968 ;;
6969
6970 gnu*)
6971 lt_cv_deplibs_check_method=pass_all
6972 ;;
6973
6974 haiku*)
6975 lt_cv_deplibs_check_method=pass_all
6976 ;;
6977
6978 hpux10.20* | hpux11*)
6979 lt_cv_file_magic_cmd=/usr/bin/file
6980 case $host_cpu in
6981 ia64*)
6982 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6983 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6984 ;;
6985 hppa*64*)
6986 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6987 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6988 ;;
6989 *)
6990 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6991 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6992 ;;
6993 esac
6994 ;;
6995
6996 interix[3-9]*)
6997 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6999 ;;
7000
7001 irix5* | irix6* | nonstopux*)
7002 case $LD in
7003 *-32|*"-32 ") libmagic=32-bit;;
7004 *-n32|*"-n32 ") libmagic=N32;;
7005 *-64|*"-64 ") libmagic=64-bit;;
7006 *) libmagic=never-match;;
7007 esac
7008 lt_cv_deplibs_check_method=pass_all
7009 ;;
7010
7011 # This must be Linux ELF.
7012 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7013 lt_cv_deplibs_check_method=pass_all
7014 ;;
7015
7016 netbsd*)
7017 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7019 else
7020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7021 fi
7022 ;;
7023
7024 newos6*)
7025 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7026 lt_cv_file_magic_cmd=/usr/bin/file
7027 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7028 ;;
7029
7030 *nto* | *qnx*)
7031 lt_cv_deplibs_check_method=pass_all
7032 ;;
7033
7034 openbsd*)
7035 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7037 else
7038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7039 fi
7040 ;;
7041
7042 osf3* | osf4* | osf5*)
7043 lt_cv_deplibs_check_method=pass_all
7044 ;;
7045
7046 rdos*)
7047 lt_cv_deplibs_check_method=pass_all
7048 ;;
7049
7050 solaris*)
7051 lt_cv_deplibs_check_method=pass_all
7052 ;;
7053
7054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7055 lt_cv_deplibs_check_method=pass_all
7056 ;;
7057
7058 sysv4 | sysv4.3*)
7059 case $host_vendor in
7060 motorola)
7061 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]'
7062 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7063 ;;
7064 ncr)
7065 lt_cv_deplibs_check_method=pass_all
7066 ;;
7067 sequent)
7068 lt_cv_file_magic_cmd='/bin/file'
7069 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7070 ;;
7071 sni)
7072 lt_cv_file_magic_cmd='/bin/file'
7073 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7074 lt_cv_file_magic_test_file=/lib/libc.so
7075 ;;
7076 siemens)
7077 lt_cv_deplibs_check_method=pass_all
7078 ;;
7079 pc)
7080 lt_cv_deplibs_check_method=pass_all
7081 ;;
7082 esac
7083 ;;
7084
7085 tpf*)
7086 lt_cv_deplibs_check_method=pass_all
7087 ;;
7088 esac
7089
7090 fi
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7092 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7093 file_magic_cmd=$lt_cv_file_magic_cmd
7094 deplibs_check_method=$lt_cv_deplibs_check_method
7095 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108 plugin_option=
7109 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7110 for plugin in $plugin_names; do
7111 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7112 if test x$plugin_so = x$plugin; then
7113 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7114 fi
7115 if test x$plugin_so != x$plugin; then
7116 plugin_option="--plugin $plugin_so"
7117 break
7118 fi
7119 done
7120
7121 if test -n "$ac_tool_prefix"; then
7122 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7123 set dummy ${ac_tool_prefix}ar; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if ${ac_cv_prog_AR+:} false; then :
7127 $as_echo_n "(cached) " >&6
7128 else
7129 if test -n "$AR"; then
7130 ac_cv_prog_AR="$AR" # Let the user override the test.
7131 else
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139 ac_cv_prog_AR="${ac_tool_prefix}ar"
7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7142 fi
7143 done
7144 done
7145 IFS=$as_save_IFS
7146
7147 fi
7148 fi
7149 AR=$ac_cv_prog_AR
7150 if test -n "$AR"; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7152 $as_echo "$AR" >&6; }
7153 else
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7156 fi
7157
7158
7159 fi
7160 if test -z "$ac_cv_prog_AR"; then
7161 ac_ct_AR=$AR
7162 # Extract the first word of "ar", so it can be a program name with args.
7163 set dummy ar; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7167 $as_echo_n "(cached) " >&6
7168 else
7169 if test -n "$ac_ct_AR"; then
7170 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179 ac_cv_prog_ac_ct_AR="ar"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7182 fi
7183 done
7184 done
7185 IFS=$as_save_IFS
7186
7187 fi
7188 fi
7189 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7190 if test -n "$ac_ct_AR"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7192 $as_echo "$ac_ct_AR" >&6; }
7193 else
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 fi
7197
7198 if test "x$ac_ct_AR" = x; then
7199 AR="false"
7200 else
7201 case $cross_compiling:$ac_tool_warned in
7202 yes:)
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7205 ac_tool_warned=yes ;;
7206 esac
7207 AR=$ac_ct_AR
7208 fi
7209 else
7210 AR="$ac_cv_prog_AR"
7211 fi
7212
7213 test -z "$AR" && AR=ar
7214 if test -n "$plugin_option"; then
7215 if $AR --help 2>&1 | grep -q "\--plugin"; then
7216 touch conftest.c
7217 $AR $plugin_option rc conftest.a conftest.c
7218 if test "$?" != 0; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7220 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7221 else
7222 AR="$AR $plugin_option"
7223 fi
7224 rm -f conftest.*
7225 fi
7226 fi
7227 test -z "$AR_FLAGS" && AR_FLAGS=cru
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239 if test -n "$ac_tool_prefix"; then
7240 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7241 set dummy ${ac_tool_prefix}strip; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if ${ac_cv_prog_STRIP+:} false; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 if test -n "$STRIP"; then
7248 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7257 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7260 fi
7261 done
7262 done
7263 IFS=$as_save_IFS
7264
7265 fi
7266 fi
7267 STRIP=$ac_cv_prog_STRIP
7268 if test -n "$STRIP"; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7270 $as_echo "$STRIP" >&6; }
7271 else
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7274 fi
7275
7276
7277 fi
7278 if test -z "$ac_cv_prog_STRIP"; then
7279 ac_ct_STRIP=$STRIP
7280 # Extract the first word of "strip", so it can be a program name with args.
7281 set dummy strip; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 if test -n "$ac_ct_STRIP"; then
7288 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7297 ac_cv_prog_ac_ct_STRIP="strip"
7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7308 if test -n "$ac_ct_STRIP"; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7310 $as_echo "$ac_ct_STRIP" >&6; }
7311 else
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7314 fi
7315
7316 if test "x$ac_ct_STRIP" = x; then
7317 STRIP=":"
7318 else
7319 case $cross_compiling:$ac_tool_warned in
7320 yes:)
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323 ac_tool_warned=yes ;;
7324 esac
7325 STRIP=$ac_ct_STRIP
7326 fi
7327 else
7328 STRIP="$ac_cv_prog_STRIP"
7329 fi
7330
7331 test -z "$STRIP" && STRIP=:
7332
7333
7334
7335
7336
7337
7338 if test -n "$ac_tool_prefix"; then
7339 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7340 set dummy ${ac_tool_prefix}ranlib; 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 ${ac_cv_prog_RANLIB+:} false; then :
7344 $as_echo_n "(cached) " >&6
7345 else
7346 if test -n "$RANLIB"; then
7347 ac_cv_prog_RANLIB="$RANLIB" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7356 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
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 RANLIB=$ac_cv_prog_RANLIB
7367 if test -n "$RANLIB"; then
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7369 $as_echo "$RANLIB" >&6; }
7370 else
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7373 fi
7374
7375
7376 fi
7377 if test -z "$ac_cv_prog_RANLIB"; then
7378 ac_ct_RANLIB=$RANLIB
7379 # Extract the first word of "ranlib", so it can be a program name with args.
7380 set dummy ranlib; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 if test -n "$ac_ct_RANLIB"; then
7387 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7388 else
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_prog_ac_ct_RANLIB="ranlib"
7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7399 fi
7400 done
7401 done
7402 IFS=$as_save_IFS
7403
7404 fi
7405 fi
7406 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7407 if test -n "$ac_ct_RANLIB"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7409 $as_echo "$ac_ct_RANLIB" >&6; }
7410 else
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7413 fi
7414
7415 if test "x$ac_ct_RANLIB" = x; then
7416 RANLIB=":"
7417 else
7418 case $cross_compiling:$ac_tool_warned in
7419 yes:)
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7422 ac_tool_warned=yes ;;
7423 esac
7424 RANLIB=$ac_ct_RANLIB
7425 fi
7426 else
7427 RANLIB="$ac_cv_prog_RANLIB"
7428 fi
7429
7430 test -z "$RANLIB" && RANLIB=:
7431 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7432 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7433 RANLIB="$RANLIB $plugin_option"
7434 fi
7435 fi
7436
7437
7438
7439
7440
7441
7442 # Determine commands to create old-style static archives.
7443 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7444 old_postinstall_cmds='chmod 644 $oldlib'
7445 old_postuninstall_cmds=
7446
7447 if test -n "$RANLIB"; then
7448 case $host_os in
7449 openbsd*)
7450 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7451 ;;
7452 *)
7453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7454 ;;
7455 esac
7456 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7457 fi
7458
7459 case $host_os in
7460 darwin*)
7461 lock_old_archive_extraction=yes ;;
7462 *)
7463 lock_old_archive_extraction=no ;;
7464 esac
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504 # If no C compiler was specified, use CC.
7505 LTCC=${LTCC-"$CC"}
7506
7507 # If no C compiler flags were specified, use CFLAGS.
7508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7509
7510 # Allow CC to be a program name with arguments.
7511 compiler=$CC
7512
7513
7514 # Check for command to grab the raw symbol name followed by C symbol from nm.
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7516 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7517 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520
7521 # These are sane defaults that work on at least a few old systems.
7522 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7523
7524 # Character class describing NM global symbol codes.
7525 symcode='[BCDEGRST]'
7526
7527 # Regexp to match symbols that can be accessed directly from C.
7528 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7529
7530 # Define system-specific variables.
7531 case $host_os in
7532 aix*)
7533 symcode='[BCDT]'
7534 ;;
7535 cygwin* | mingw* | pw32* | cegcc*)
7536 symcode='[ABCDGISTW]'
7537 ;;
7538 hpux*)
7539 if test "$host_cpu" = ia64; then
7540 symcode='[ABCDEGRST]'
7541 fi
7542 ;;
7543 irix* | nonstopux*)
7544 symcode='[BCDEGRST]'
7545 ;;
7546 osf*)
7547 symcode='[BCDEGQRST]'
7548 ;;
7549 solaris*)
7550 symcode='[BCDRT]'
7551 ;;
7552 sco3.2v5*)
7553 symcode='[DT]'
7554 ;;
7555 sysv4.2uw2*)
7556 symcode='[DT]'
7557 ;;
7558 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7559 symcode='[ABDT]'
7560 ;;
7561 sysv4)
7562 symcode='[DFNSTU]'
7563 ;;
7564 esac
7565
7566 # If we're using GNU nm, then use its standard symbol codes.
7567 case `$NM -V 2>&1` in
7568 *GNU* | *'with BFD'*)
7569 symcode='[ABCDGIRSTW]' ;;
7570 esac
7571
7572 # Transform an extracted symbol line into a proper C declaration.
7573 # Some systems (esp. on ia64) link data and code symbols differently,
7574 # so use this general approach.
7575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7576
7577 # Transform an extracted symbol line into symbol name and symbol address
7578 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7579 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'"
7580
7581 # Handle CRLF in mingw tool chain
7582 opt_cr=
7583 case $build_os in
7584 mingw*)
7585 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7586 ;;
7587 esac
7588
7589 # Try without a prefix underscore, then with it.
7590 for ac_symprfx in "" "_"; do
7591
7592 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7593 symxfrm="\\1 $ac_symprfx\\2 \\2"
7594
7595 # Write the raw and C identifiers.
7596 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7597 # Fake it for dumpbin and say T for any non-static function
7598 # and D for any global variable.
7599 # Also find C++ and __fastcall symbols from MSVC++,
7600 # which start with @ or ?.
7601 lt_cv_sys_global_symbol_pipe="$AWK '"\
7602 " {last_section=section; section=\$ 3};"\
7603 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7604 " \$ 0!~/External *\|/{next};"\
7605 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7606 " {if(hide[section]) next};"\
7607 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7608 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7609 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7610 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7611 " ' prfx=^$ac_symprfx"
7612 else
7613 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7614 fi
7615
7616 # Check to see that the pipe works correctly.
7617 pipe_works=no
7618
7619 rm -f conftest*
7620 cat > conftest.$ac_ext <<_LT_EOF
7621 #ifdef __cplusplus
7622 extern "C" {
7623 #endif
7624 char nm_test_var;
7625 void nm_test_func(void);
7626 void nm_test_func(void){}
7627 #ifdef __cplusplus
7628 }
7629 #endif
7630 int main(){nm_test_var='a';nm_test_func();return(0);}
7631 _LT_EOF
7632
7633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7634 (eval $ac_compile) 2>&5
7635 ac_status=$?
7636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7637 test $ac_status = 0; }; then
7638 # Now try to grab the symbols.
7639 nlist=conftest.nm
7640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7641 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7642 ac_status=$?
7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644 test $ac_status = 0; } && test -s "$nlist"; then
7645 # Try sorting and uniquifying the output.
7646 if sort "$nlist" | uniq > "$nlist"T; then
7647 mv -f "$nlist"T "$nlist"
7648 else
7649 rm -f "$nlist"T
7650 fi
7651
7652 # Make sure that we snagged all the symbols we need.
7653 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7654 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7655 cat <<_LT_EOF > conftest.$ac_ext
7656 #ifdef __cplusplus
7657 extern "C" {
7658 #endif
7659
7660 _LT_EOF
7661 # Now generate the symbol file.
7662 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7663
7664 cat <<_LT_EOF >> conftest.$ac_ext
7665
7666 /* The mapping between symbol names and symbols. */
7667 const struct {
7668 const char *name;
7669 void *address;
7670 }
7671 lt__PROGRAM__LTX_preloaded_symbols[] =
7672 {
7673 { "@PROGRAM@", (void *) 0 },
7674 _LT_EOF
7675 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7676 cat <<\_LT_EOF >> conftest.$ac_ext
7677 {0, (void *) 0}
7678 };
7679
7680 /* This works around a problem in FreeBSD linker */
7681 #ifdef FREEBSD_WORKAROUND
7682 static const void *lt_preloaded_setup() {
7683 return lt__PROGRAM__LTX_preloaded_symbols;
7684 }
7685 #endif
7686
7687 #ifdef __cplusplus
7688 }
7689 #endif
7690 _LT_EOF
7691 # Now try linking the two files.
7692 mv conftest.$ac_objext conftstm.$ac_objext
7693 lt_save_LIBS="$LIBS"
7694 lt_save_CFLAGS="$CFLAGS"
7695 LIBS="conftstm.$ac_objext"
7696 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7698 (eval $ac_link) 2>&5
7699 ac_status=$?
7700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7701 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7702 pipe_works=yes
7703 fi
7704 LIBS="$lt_save_LIBS"
7705 CFLAGS="$lt_save_CFLAGS"
7706 else
7707 echo "cannot find nm_test_func in $nlist" >&5
7708 fi
7709 else
7710 echo "cannot find nm_test_var in $nlist" >&5
7711 fi
7712 else
7713 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7714 fi
7715 else
7716 echo "$progname: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7718 fi
7719 rm -rf conftest* conftst*
7720
7721 # Do not use the global_symbol_pipe unless it works.
7722 if test "$pipe_works" = yes; then
7723 break
7724 else
7725 lt_cv_sys_global_symbol_pipe=
7726 fi
7727 done
7728
7729 fi
7730
7731 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7732 lt_cv_sys_global_symbol_to_cdecl=
7733 fi
7734 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7736 $as_echo "failed" >&6; }
7737 else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7739 $as_echo "ok" >&6; }
7740 fi
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763 # Check whether --enable-libtool-lock was given.
7764 if test "${enable_libtool_lock+set}" = set; then :
7765 enableval=$enable_libtool_lock;
7766 fi
7767
7768 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7769
7770 # Some flags need to be propagated to the compiler or linker for good
7771 # libtool support.
7772 case $host in
7773 ia64-*-hpux*)
7774 # Find out which ABI we are using.
7775 echo 'int i;' > conftest.$ac_ext
7776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7777 (eval $ac_compile) 2>&5
7778 ac_status=$?
7779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780 test $ac_status = 0; }; then
7781 case `/usr/bin/file conftest.$ac_objext` in
7782 *ELF-32*)
7783 HPUX_IA64_MODE="32"
7784 ;;
7785 *ELF-64*)
7786 HPUX_IA64_MODE="64"
7787 ;;
7788 esac
7789 fi
7790 rm -rf conftest*
7791 ;;
7792 *-*-irix6*)
7793 # Find out which ABI we are using.
7794 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7796 (eval $ac_compile) 2>&5
7797 ac_status=$?
7798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7799 test $ac_status = 0; }; then
7800 if test "$lt_cv_prog_gnu_ld" = yes; then
7801 case `/usr/bin/file conftest.$ac_objext` in
7802 *32-bit*)
7803 LD="${LD-ld} -melf32bsmip"
7804 ;;
7805 *N32*)
7806 LD="${LD-ld} -melf32bmipn32"
7807 ;;
7808 *64-bit*)
7809 LD="${LD-ld} -melf64bmip"
7810 ;;
7811 esac
7812 else
7813 case `/usr/bin/file conftest.$ac_objext` in
7814 *32-bit*)
7815 LD="${LD-ld} -32"
7816 ;;
7817 *N32*)
7818 LD="${LD-ld} -n32"
7819 ;;
7820 *64-bit*)
7821 LD="${LD-ld} -64"
7822 ;;
7823 esac
7824 fi
7825 fi
7826 rm -rf conftest*
7827 ;;
7828
7829 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7830 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7831 # Find out which ABI we are using.
7832 echo 'int i;' > conftest.$ac_ext
7833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7834 (eval $ac_compile) 2>&5
7835 ac_status=$?
7836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7837 test $ac_status = 0; }; then
7838 case `/usr/bin/file conftest.o` in
7839 *32-bit*)
7840 case $host in
7841 x86_64-*kfreebsd*-gnu)
7842 LD="${LD-ld} -m elf_i386_fbsd"
7843 ;;
7844 x86_64-*linux*)
7845 case `/usr/bin/file conftest.o` in
7846 *x86-64*)
7847 LD="${LD-ld} -m elf32_x86_64"
7848 ;;
7849 *)
7850 LD="${LD-ld} -m elf_i386"
7851 ;;
7852 esac
7853 ;;
7854 powerpc64le-*linux*)
7855 LD="${LD-ld} -m elf32lppclinux"
7856 ;;
7857 powerpc64-*linux*)
7858 LD="${LD-ld} -m elf32ppclinux"
7859 ;;
7860 s390x-*linux*)
7861 LD="${LD-ld} -m elf_s390"
7862 ;;
7863 sparc64-*linux*)
7864 LD="${LD-ld} -m elf32_sparc"
7865 ;;
7866 esac
7867 ;;
7868 *64-bit*)
7869 case $host in
7870 x86_64-*kfreebsd*-gnu)
7871 LD="${LD-ld} -m elf_x86_64_fbsd"
7872 ;;
7873 x86_64-*linux*)
7874 LD="${LD-ld} -m elf_x86_64"
7875 ;;
7876 powerpcle-*linux*)
7877 LD="${LD-ld} -m elf64lppc"
7878 ;;
7879 powerpc-*linux*)
7880 LD="${LD-ld} -m elf64ppc"
7881 ;;
7882 s390*-*linux*|s390*-*tpf*)
7883 LD="${LD-ld} -m elf64_s390"
7884 ;;
7885 sparc*-*linux*)
7886 LD="${LD-ld} -m elf64_sparc"
7887 ;;
7888 esac
7889 ;;
7890 esac
7891 fi
7892 rm -rf conftest*
7893 ;;
7894
7895 *-*-sco3.2v5*)
7896 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7897 SAVE_CFLAGS="$CFLAGS"
7898 CFLAGS="$CFLAGS -belf"
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7900 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7901 if ${lt_cv_cc_needs_belf+:} false; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 ac_ext=c
7905 ac_cpp='$CPP $CPPFLAGS'
7906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7909
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7912
7913 int
7914 main ()
7915 {
7916
7917 ;
7918 return 0;
7919 }
7920 _ACEOF
7921 if ac_fn_c_try_link "$LINENO"; then :
7922 lt_cv_cc_needs_belf=yes
7923 else
7924 lt_cv_cc_needs_belf=no
7925 fi
7926 rm -f core conftest.err conftest.$ac_objext \
7927 conftest$ac_exeext conftest.$ac_ext
7928 ac_ext=c
7929 ac_cpp='$CPP $CPPFLAGS'
7930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7933
7934 fi
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7936 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7937 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7938 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7939 CFLAGS="$SAVE_CFLAGS"
7940 fi
7941 ;;
7942 sparc*-*solaris*)
7943 # Find out which ABI we are using.
7944 echo 'int i;' > conftest.$ac_ext
7945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7946 (eval $ac_compile) 2>&5
7947 ac_status=$?
7948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7949 test $ac_status = 0; }; then
7950 case `/usr/bin/file conftest.o` in
7951 *64-bit*)
7952 case $lt_cv_prog_gnu_ld in
7953 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7954 *)
7955 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7956 LD="${LD-ld} -64"
7957 fi
7958 ;;
7959 esac
7960 ;;
7961 esac
7962 fi
7963 rm -rf conftest*
7964 ;;
7965 esac
7966
7967 need_locks="$enable_libtool_lock"
7968
7969
7970 case $host_os in
7971 rhapsody* | darwin*)
7972 if test -n "$ac_tool_prefix"; then
7973 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7974 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 if test -n "$DSYMUTIL"; then
7981 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994 done
7995 done
7996 IFS=$as_save_IFS
7997
7998 fi
7999 fi
8000 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8001 if test -n "$DSYMUTIL"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8003 $as_echo "$DSYMUTIL" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8007 fi
8008
8009
8010 fi
8011 if test -z "$ac_cv_prog_DSYMUTIL"; then
8012 ac_ct_DSYMUTIL=$DSYMUTIL
8013 # Extract the first word of "dsymutil", so it can be a program name with args.
8014 set dummy dsymutil; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8018 $as_echo_n "(cached) " >&6
8019 else
8020 if test -n "$ac_ct_DSYMUTIL"; then
8021 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8022 else
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8025 do
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034 done
8035 done
8036 IFS=$as_save_IFS
8037
8038 fi
8039 fi
8040 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8041 if test -n "$ac_ct_DSYMUTIL"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8043 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8044 else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8047 fi
8048
8049 if test "x$ac_ct_DSYMUTIL" = x; then
8050 DSYMUTIL=":"
8051 else
8052 case $cross_compiling:$ac_tool_warned in
8053 yes:)
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8056 ac_tool_warned=yes ;;
8057 esac
8058 DSYMUTIL=$ac_ct_DSYMUTIL
8059 fi
8060 else
8061 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8062 fi
8063
8064 if test -n "$ac_tool_prefix"; then
8065 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8066 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if ${ac_cv_prog_NMEDIT+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 if test -n "$NMEDIT"; then
8073 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086 done
8087 done
8088 IFS=$as_save_IFS
8089
8090 fi
8091 fi
8092 NMEDIT=$ac_cv_prog_NMEDIT
8093 if test -n "$NMEDIT"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8095 $as_echo "$NMEDIT" >&6; }
8096 else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8099 fi
8100
8101
8102 fi
8103 if test -z "$ac_cv_prog_NMEDIT"; then
8104 ac_ct_NMEDIT=$NMEDIT
8105 # Extract the first word of "nmedit", so it can be a program name with args.
8106 set dummy nmedit; ac_word=$2
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108 $as_echo_n "checking for $ac_word... " >&6; }
8109 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 if test -n "$ac_ct_NMEDIT"; then
8113 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8114 else
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8117 do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8122 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8125 fi
8126 done
8127 done
8128 IFS=$as_save_IFS
8129
8130 fi
8131 fi
8132 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8133 if test -n "$ac_ct_NMEDIT"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8135 $as_echo "$ac_ct_NMEDIT" >&6; }
8136 else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138 $as_echo "no" >&6; }
8139 fi
8140
8141 if test "x$ac_ct_NMEDIT" = x; then
8142 NMEDIT=":"
8143 else
8144 case $cross_compiling:$ac_tool_warned in
8145 yes:)
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8148 ac_tool_warned=yes ;;
8149 esac
8150 NMEDIT=$ac_ct_NMEDIT
8151 fi
8152 else
8153 NMEDIT="$ac_cv_prog_NMEDIT"
8154 fi
8155
8156 if test -n "$ac_tool_prefix"; then
8157 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8158 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 $as_echo_n "checking for $ac_word... " >&6; }
8161 if ${ac_cv_prog_LIPO+:} false; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 if test -n "$LIPO"; then
8165 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8174 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178 done
8179 done
8180 IFS=$as_save_IFS
8181
8182 fi
8183 fi
8184 LIPO=$ac_cv_prog_LIPO
8185 if test -n "$LIPO"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8187 $as_echo "$LIPO" >&6; }
8188 else
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8191 fi
8192
8193
8194 fi
8195 if test -z "$ac_cv_prog_LIPO"; then
8196 ac_ct_LIPO=$LIPO
8197 # Extract the first word of "lipo", so it can be a program name with args.
8198 set dummy lipo; ac_word=$2
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200 $as_echo_n "checking for $ac_word... " >&6; }
8201 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 if test -n "$ac_ct_LIPO"; then
8205 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8206 else
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8209 do
8210 IFS=$as_save_IFS
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8214 ac_cv_prog_ac_ct_LIPO="lipo"
8215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 break 2
8217 fi
8218 done
8219 done
8220 IFS=$as_save_IFS
8221
8222 fi
8223 fi
8224 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8225 if test -n "$ac_ct_LIPO"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8227 $as_echo "$ac_ct_LIPO" >&6; }
8228 else
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8231 fi
8232
8233 if test "x$ac_ct_LIPO" = x; then
8234 LIPO=":"
8235 else
8236 case $cross_compiling:$ac_tool_warned in
8237 yes:)
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8240 ac_tool_warned=yes ;;
8241 esac
8242 LIPO=$ac_ct_LIPO
8243 fi
8244 else
8245 LIPO="$ac_cv_prog_LIPO"
8246 fi
8247
8248 if test -n "$ac_tool_prefix"; then
8249 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8250 set dummy ${ac_tool_prefix}otool; ac_word=$2
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8252 $as_echo_n "checking for $ac_word... " >&6; }
8253 if ${ac_cv_prog_OTOOL+:} false; then :
8254 $as_echo_n "(cached) " >&6
8255 else
8256 if test -n "$OTOOL"; then
8257 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8258 else
8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260 for as_dir in $PATH
8261 do
8262 IFS=$as_save_IFS
8263 test -z "$as_dir" && as_dir=.
8264 for ac_exec_ext in '' $ac_executable_extensions; do
8265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8266 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 break 2
8269 fi
8270 done
8271 done
8272 IFS=$as_save_IFS
8273
8274 fi
8275 fi
8276 OTOOL=$ac_cv_prog_OTOOL
8277 if test -n "$OTOOL"; then
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8279 $as_echo "$OTOOL" >&6; }
8280 else
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8282 $as_echo "no" >&6; }
8283 fi
8284
8285
8286 fi
8287 if test -z "$ac_cv_prog_OTOOL"; then
8288 ac_ct_OTOOL=$OTOOL
8289 # Extract the first word of "otool", so it can be a program name with args.
8290 set dummy otool; ac_word=$2
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8292 $as_echo_n "checking for $ac_word... " >&6; }
8293 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8294 $as_echo_n "(cached) " >&6
8295 else
8296 if test -n "$ac_ct_OTOOL"; then
8297 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8298 else
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 for as_dir in $PATH
8301 do
8302 IFS=$as_save_IFS
8303 test -z "$as_dir" && as_dir=.
8304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8306 ac_cv_prog_ac_ct_OTOOL="otool"
8307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 break 2
8309 fi
8310 done
8311 done
8312 IFS=$as_save_IFS
8313
8314 fi
8315 fi
8316 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8317 if test -n "$ac_ct_OTOOL"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8319 $as_echo "$ac_ct_OTOOL" >&6; }
8320 else
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8323 fi
8324
8325 if test "x$ac_ct_OTOOL" = x; then
8326 OTOOL=":"
8327 else
8328 case $cross_compiling:$ac_tool_warned in
8329 yes:)
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8332 ac_tool_warned=yes ;;
8333 esac
8334 OTOOL=$ac_ct_OTOOL
8335 fi
8336 else
8337 OTOOL="$ac_cv_prog_OTOOL"
8338 fi
8339
8340 if test -n "$ac_tool_prefix"; then
8341 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8342 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344 $as_echo_n "checking for $ac_word... " >&6; }
8345 if ${ac_cv_prog_OTOOL64+:} false; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 if test -n "$OTOOL64"; then
8349 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8350 else
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8353 do
8354 IFS=$as_save_IFS
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8358 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 break 2
8361 fi
8362 done
8363 done
8364 IFS=$as_save_IFS
8365
8366 fi
8367 fi
8368 OTOOL64=$ac_cv_prog_OTOOL64
8369 if test -n "$OTOOL64"; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8371 $as_echo "$OTOOL64" >&6; }
8372 else
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8375 fi
8376
8377
8378 fi
8379 if test -z "$ac_cv_prog_OTOOL64"; then
8380 ac_ct_OTOOL64=$OTOOL64
8381 # Extract the first word of "otool64", so it can be a program name with args.
8382 set dummy otool64; ac_word=$2
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384 $as_echo_n "checking for $ac_word... " >&6; }
8385 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8386 $as_echo_n "(cached) " >&6
8387 else
8388 if test -n "$ac_ct_OTOOL64"; then
8389 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8390 else
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 for as_dir in $PATH
8393 do
8394 IFS=$as_save_IFS
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8398 ac_cv_prog_ac_ct_OTOOL64="otool64"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 break 2
8401 fi
8402 done
8403 done
8404 IFS=$as_save_IFS
8405
8406 fi
8407 fi
8408 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8409 if test -n "$ac_ct_OTOOL64"; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8411 $as_echo "$ac_ct_OTOOL64" >&6; }
8412 else
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 $as_echo "no" >&6; }
8415 fi
8416
8417 if test "x$ac_ct_OTOOL64" = x; then
8418 OTOOL64=":"
8419 else
8420 case $cross_compiling:$ac_tool_warned in
8421 yes:)
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8424 ac_tool_warned=yes ;;
8425 esac
8426 OTOOL64=$ac_ct_OTOOL64
8427 fi
8428 else
8429 OTOOL64="$ac_cv_prog_OTOOL64"
8430 fi
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8459 $as_echo_n "checking for -single_module linker flag... " >&6; }
8460 if ${lt_cv_apple_cc_single_mod+:} false; then :
8461 $as_echo_n "(cached) " >&6
8462 else
8463 lt_cv_apple_cc_single_mod=no
8464 if test -z "${LT_MULTI_MODULE}"; then
8465 # By default we will add the -single_module flag. You can override
8466 # by either setting the environment variable LT_MULTI_MODULE
8467 # non-empty at configure time, or by adding -multi_module to the
8468 # link flags.
8469 rm -rf libconftest.dylib*
8470 echo "int foo(void){return 1;}" > conftest.c
8471 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8472 -dynamiclib -Wl,-single_module conftest.c" >&5
8473 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8474 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8475 _lt_result=$?
8476 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8477 lt_cv_apple_cc_single_mod=yes
8478 else
8479 cat conftest.err >&5
8480 fi
8481 rm -rf libconftest.dylib*
8482 rm -f conftest.*
8483 fi
8484 fi
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8486 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8488 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8489 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 lt_cv_ld_exported_symbols_list=no
8493 save_LDFLAGS=$LDFLAGS
8494 echo "_main" > conftest.sym
8495 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498
8499 int
8500 main ()
8501 {
8502
8503 ;
8504 return 0;
8505 }
8506 _ACEOF
8507 if ac_fn_c_try_link "$LINENO"; then :
8508 lt_cv_ld_exported_symbols_list=yes
8509 else
8510 lt_cv_ld_exported_symbols_list=no
8511 fi
8512 rm -f core conftest.err conftest.$ac_objext \
8513 conftest$ac_exeext conftest.$ac_ext
8514 LDFLAGS="$save_LDFLAGS"
8515
8516 fi
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8518 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8520 $as_echo_n "checking for -force_load linker flag... " >&6; }
8521 if ${lt_cv_ld_force_load+:} false; then :
8522 $as_echo_n "(cached) " >&6
8523 else
8524 lt_cv_ld_force_load=no
8525 cat > conftest.c << _LT_EOF
8526 int forced_loaded() { return 2;}
8527 _LT_EOF
8528 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8529 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8530 echo "$AR cru libconftest.a conftest.o" >&5
8531 $AR cru libconftest.a conftest.o 2>&5
8532 cat > conftest.c << _LT_EOF
8533 int main() { return 0;}
8534 _LT_EOF
8535 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8536 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8537 _lt_result=$?
8538 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8539 lt_cv_ld_force_load=yes
8540 else
8541 cat conftest.err >&5
8542 fi
8543 rm -f conftest.err libconftest.a conftest conftest.c
8544 rm -rf conftest.dSYM
8545
8546 fi
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8548 $as_echo "$lt_cv_ld_force_load" >&6; }
8549 case $host_os in
8550 rhapsody* | darwin1.[012])
8551 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8552 darwin1.*)
8553 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8554 darwin*) # darwin 5.x on
8555 # if running on 10.5 or later, the deployment target defaults
8556 # to the OS version, if on x86, and 10.4, the deployment
8557 # target defaults to 10.4. Don't you love it?
8558 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8559 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8560 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8561 10.[012][,.]*)
8562 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8563 10.*)
8564 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8565 esac
8566 ;;
8567 esac
8568 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8569 _lt_dar_single_mod='$single_module'
8570 fi
8571 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8572 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8573 else
8574 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8575 fi
8576 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8577 _lt_dsymutil='~$DSYMUTIL $lib || :'
8578 else
8579 _lt_dsymutil=
8580 fi
8581 ;;
8582 esac
8583
8584 for ac_header in dlfcn.h
8585 do :
8586 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8587 "
8588 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8589 cat >>confdefs.h <<_ACEOF
8590 #define HAVE_DLFCN_H 1
8591 _ACEOF
8592
8593 fi
8594
8595 done
8596
8597
8598
8599
8600
8601
8602 # Set options
8603
8604
8605
8606 enable_dlopen=no
8607
8608
8609 enable_win32_dll=no
8610
8611
8612 # Check whether --enable-shared was given.
8613 if test "${enable_shared+set}" = set; then :
8614 enableval=$enable_shared; p=${PACKAGE-default}
8615 case $enableval in
8616 yes) enable_shared=yes ;;
8617 no) enable_shared=no ;;
8618 *)
8619 enable_shared=no
8620 # Look at the argument we got. We use all the common list separators.
8621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8622 for pkg in $enableval; do
8623 IFS="$lt_save_ifs"
8624 if test "X$pkg" = "X$p"; then
8625 enable_shared=yes
8626 fi
8627 done
8628 IFS="$lt_save_ifs"
8629 ;;
8630 esac
8631 else
8632 enable_shared=yes
8633 fi
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643 # Check whether --enable-static was given.
8644 if test "${enable_static+set}" = set; then :
8645 enableval=$enable_static; p=${PACKAGE-default}
8646 case $enableval in
8647 yes) enable_static=yes ;;
8648 no) enable_static=no ;;
8649 *)
8650 enable_static=no
8651 # Look at the argument we got. We use all the common list separators.
8652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8653 for pkg in $enableval; do
8654 IFS="$lt_save_ifs"
8655 if test "X$pkg" = "X$p"; then
8656 enable_static=yes
8657 fi
8658 done
8659 IFS="$lt_save_ifs"
8660 ;;
8661 esac
8662 else
8663 enable_static=yes
8664 fi
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675 # Check whether --with-pic was given.
8676 if test "${with_pic+set}" = set; then :
8677 withval=$with_pic; pic_mode="$withval"
8678 else
8679 pic_mode=default
8680 fi
8681
8682
8683 test -z "$pic_mode" && pic_mode=default
8684
8685
8686
8687
8688
8689
8690
8691 # Check whether --enable-fast-install was given.
8692 if test "${enable_fast_install+set}" = set; then :
8693 enableval=$enable_fast_install; p=${PACKAGE-default}
8694 case $enableval in
8695 yes) enable_fast_install=yes ;;
8696 no) enable_fast_install=no ;;
8697 *)
8698 enable_fast_install=no
8699 # Look at the argument we got. We use all the common list separators.
8700 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8701 for pkg in $enableval; do
8702 IFS="$lt_save_ifs"
8703 if test "X$pkg" = "X$p"; then
8704 enable_fast_install=yes
8705 fi
8706 done
8707 IFS="$lt_save_ifs"
8708 ;;
8709 esac
8710 else
8711 enable_fast_install=yes
8712 fi
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724 # This can be used to rebuild libtool when needed
8725 LIBTOOL_DEPS="$ltmain"
8726
8727 # Always use our own libtool.
8728 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755 test -z "$LN_S" && LN_S="ln -s"
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770 if test -n "${ZSH_VERSION+set}" ; then
8771 setopt NO_GLOB_SUBST
8772 fi
8773
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8775 $as_echo_n "checking for objdir... " >&6; }
8776 if ${lt_cv_objdir+:} false; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 rm -f .libs 2>/dev/null
8780 mkdir .libs 2>/dev/null
8781 if test -d .libs; then
8782 lt_cv_objdir=.libs
8783 else
8784 # MS-DOS does not allow filenames that begin with a dot.
8785 lt_cv_objdir=_libs
8786 fi
8787 rmdir .libs 2>/dev/null
8788 fi
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8790 $as_echo "$lt_cv_objdir" >&6; }
8791 objdir=$lt_cv_objdir
8792
8793
8794
8795
8796
8797 cat >>confdefs.h <<_ACEOF
8798 #define LT_OBJDIR "$lt_cv_objdir/"
8799 _ACEOF
8800
8801
8802
8803
8804 case $host_os in
8805 aix3*)
8806 # AIX sometimes has problems with the GCC collect2 program. For some
8807 # reason, if we set the COLLECT_NAMES environment variable, the problems
8808 # vanish in a puff of smoke.
8809 if test "X${COLLECT_NAMES+set}" != Xset; then
8810 COLLECT_NAMES=
8811 export COLLECT_NAMES
8812 fi
8813 ;;
8814 esac
8815
8816 # Global variables:
8817 ofile=libtool
8818 can_build_shared=yes
8819
8820 # All known linkers require a `.a' archive for static linking (except MSVC,
8821 # which needs '.lib').
8822 libext=a
8823
8824 with_gnu_ld="$lt_cv_prog_gnu_ld"
8825
8826 old_CC="$CC"
8827 old_CFLAGS="$CFLAGS"
8828
8829 # Set sane defaults for various variables
8830 test -z "$CC" && CC=cc
8831 test -z "$LTCC" && LTCC=$CC
8832 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8833 test -z "$LD" && LD=ld
8834 test -z "$ac_objext" && ac_objext=o
8835
8836 for cc_temp in $compiler""; do
8837 case $cc_temp in
8838 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8839 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8840 \-*) ;;
8841 *) break;;
8842 esac
8843 done
8844 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8845
8846
8847 # Only perform the check for file, if the check method requires it
8848 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8849 case $deplibs_check_method in
8850 file_magic*)
8851 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8853 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8854 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 case $MAGIC_CMD in
8858 [\\/*] | ?:[\\/]*)
8859 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8860 ;;
8861 *)
8862 lt_save_MAGIC_CMD="$MAGIC_CMD"
8863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8864 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8865 for ac_dir in $ac_dummy; do
8866 IFS="$lt_save_ifs"
8867 test -z "$ac_dir" && ac_dir=.
8868 if test -f $ac_dir/${ac_tool_prefix}file; then
8869 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8870 if test -n "$file_magic_test_file"; then
8871 case $deplibs_check_method in
8872 "file_magic "*)
8873 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8874 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8875 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8876 $EGREP "$file_magic_regex" > /dev/null; then
8877 :
8878 else
8879 cat <<_LT_EOF 1>&2
8880
8881 *** Warning: the command libtool uses to detect shared libraries,
8882 *** $file_magic_cmd, produces output that libtool cannot recognize.
8883 *** The result is that libtool may fail to recognize shared libraries
8884 *** as such. This will affect the creation of libtool libraries that
8885 *** depend on shared libraries, but programs linked with such libtool
8886 *** libraries will work regardless of this problem. Nevertheless, you
8887 *** may want to report the problem to your system manager and/or to
8888 *** bug-libtool@gnu.org
8889
8890 _LT_EOF
8891 fi ;;
8892 esac
8893 fi
8894 break
8895 fi
8896 done
8897 IFS="$lt_save_ifs"
8898 MAGIC_CMD="$lt_save_MAGIC_CMD"
8899 ;;
8900 esac
8901 fi
8902
8903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8904 if test -n "$MAGIC_CMD"; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8906 $as_echo "$MAGIC_CMD" >&6; }
8907 else
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8909 $as_echo "no" >&6; }
8910 fi
8911
8912
8913
8914
8915
8916 if test -z "$lt_cv_path_MAGIC_CMD"; then
8917 if test -n "$ac_tool_prefix"; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8919 $as_echo_n "checking for file... " >&6; }
8920 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 case $MAGIC_CMD in
8924 [\\/*] | ?:[\\/]*)
8925 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8926 ;;
8927 *)
8928 lt_save_MAGIC_CMD="$MAGIC_CMD"
8929 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8930 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8931 for ac_dir in $ac_dummy; do
8932 IFS="$lt_save_ifs"
8933 test -z "$ac_dir" && ac_dir=.
8934 if test -f $ac_dir/file; then
8935 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8936 if test -n "$file_magic_test_file"; then
8937 case $deplibs_check_method in
8938 "file_magic "*)
8939 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8940 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8941 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8942 $EGREP "$file_magic_regex" > /dev/null; then
8943 :
8944 else
8945 cat <<_LT_EOF 1>&2
8946
8947 *** Warning: the command libtool uses to detect shared libraries,
8948 *** $file_magic_cmd, produces output that libtool cannot recognize.
8949 *** The result is that libtool may fail to recognize shared libraries
8950 *** as such. This will affect the creation of libtool libraries that
8951 *** depend on shared libraries, but programs linked with such libtool
8952 *** libraries will work regardless of this problem. Nevertheless, you
8953 *** may want to report the problem to your system manager and/or to
8954 *** bug-libtool@gnu.org
8955
8956 _LT_EOF
8957 fi ;;
8958 esac
8959 fi
8960 break
8961 fi
8962 done
8963 IFS="$lt_save_ifs"
8964 MAGIC_CMD="$lt_save_MAGIC_CMD"
8965 ;;
8966 esac
8967 fi
8968
8969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8970 if test -n "$MAGIC_CMD"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8972 $as_echo "$MAGIC_CMD" >&6; }
8973 else
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975 $as_echo "no" >&6; }
8976 fi
8977
8978
8979 else
8980 MAGIC_CMD=:
8981 fi
8982 fi
8983
8984 fi
8985 ;;
8986 esac
8987
8988 # Use C for the default configuration in the libtool script
8989
8990 lt_save_CC="$CC"
8991 ac_ext=c
8992 ac_cpp='$CPP $CPPFLAGS'
8993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8996
8997
8998 # Source file extension for C test sources.
8999 ac_ext=c
9000
9001 # Object file extension for compiled C test sources.
9002 objext=o
9003 objext=$objext
9004
9005 # Code to be used in simple compile tests
9006 lt_simple_compile_test_code="int some_variable = 0;"
9007
9008 # Code to be used in simple link tests
9009 lt_simple_link_test_code='int main(){return(0);}'
9010
9011
9012
9013
9014
9015
9016
9017 # If no C compiler was specified, use CC.
9018 LTCC=${LTCC-"$CC"}
9019
9020 # If no C compiler flags were specified, use CFLAGS.
9021 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9022
9023 # Allow CC to be a program name with arguments.
9024 compiler=$CC
9025
9026 # Save the default compiler, since it gets overwritten when the other
9027 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9028 compiler_DEFAULT=$CC
9029
9030 # save warnings/boilerplate of simple test code
9031 ac_outfile=conftest.$ac_objext
9032 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9033 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9034 _lt_compiler_boilerplate=`cat conftest.err`
9035 $RM conftest*
9036
9037 ac_outfile=conftest.$ac_objext
9038 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9039 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9040 _lt_linker_boilerplate=`cat conftest.err`
9041 $RM -r conftest*
9042
9043
9044 ## CAVEAT EMPTOR:
9045 ## There is no encapsulation within the following macros, do not change
9046 ## the running order or otherwise move them around unless you know exactly
9047 ## what you are doing...
9048 if test -n "$compiler"; then
9049
9050 lt_prog_compiler_no_builtin_flag=
9051
9052 if test "$GCC" = yes; then
9053 case $cc_basename in
9054 nvcc*)
9055 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9056 *)
9057 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9058 esac
9059
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9061 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9062 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9063 $as_echo_n "(cached) " >&6
9064 else
9065 lt_cv_prog_compiler_rtti_exceptions=no
9066 ac_outfile=conftest.$ac_objext
9067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9068 lt_compiler_flag="-fno-rtti -fno-exceptions"
9069 # Insert the option either (1) after the last *FLAGS variable, or
9070 # (2) before a word containing "conftest.", or (3) at the end.
9071 # Note that $ac_compile itself does not contain backslashes and begins
9072 # with a dollar sign (not a hyphen), so the echo should work correctly.
9073 # The option is referenced via a variable to avoid confusing sed.
9074 lt_compile=`echo "$ac_compile" | $SED \
9075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9077 -e 's:$: $lt_compiler_flag:'`
9078 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9079 (eval "$lt_compile" 2>conftest.err)
9080 ac_status=$?
9081 cat conftest.err >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 if (exit $ac_status) && test -s "$ac_outfile"; then
9084 # The compiler can only warn and ignore the option if not recognized
9085 # So say no if there are warnings other than the usual output.
9086 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9088 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9089 lt_cv_prog_compiler_rtti_exceptions=yes
9090 fi
9091 fi
9092 $RM conftest*
9093
9094 fi
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9096 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9097
9098 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9099 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9100 else
9101 :
9102 fi
9103
9104 fi
9105
9106
9107
9108
9109
9110
9111 lt_prog_compiler_wl=
9112 lt_prog_compiler_pic=
9113 lt_prog_compiler_static=
9114
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9116 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9117
9118 if test "$GCC" = yes; then
9119 lt_prog_compiler_wl='-Wl,'
9120 lt_prog_compiler_static='-static'
9121
9122 case $host_os in
9123 aix*)
9124 # All AIX code is PIC.
9125 if test "$host_cpu" = ia64; then
9126 # AIX 5 now supports IA64 processor
9127 lt_prog_compiler_static='-Bstatic'
9128 fi
9129 lt_prog_compiler_pic='-fPIC'
9130 ;;
9131
9132 amigaos*)
9133 case $host_cpu in
9134 powerpc)
9135 # see comment about AmigaOS4 .so support
9136 lt_prog_compiler_pic='-fPIC'
9137 ;;
9138 m68k)
9139 # FIXME: we need at least 68020 code to build shared libraries, but
9140 # adding the `-m68020' flag to GCC prevents building anything better,
9141 # like `-m68040'.
9142 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9143 ;;
9144 esac
9145 ;;
9146
9147 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9148 # PIC is the default for these OSes.
9149 ;;
9150
9151 mingw* | cygwin* | pw32* | os2* | cegcc*)
9152 # This hack is so that the source file can tell whether it is being
9153 # built for inclusion in a dll (and should export symbols for example).
9154 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9155 # (--disable-auto-import) libraries
9156 lt_prog_compiler_pic='-DDLL_EXPORT'
9157 ;;
9158
9159 darwin* | rhapsody*)
9160 # PIC is the default on this platform
9161 # Common symbols not allowed in MH_DYLIB files
9162 lt_prog_compiler_pic='-fno-common'
9163 ;;
9164
9165 haiku*)
9166 # PIC is the default for Haiku.
9167 # The "-static" flag exists, but is broken.
9168 lt_prog_compiler_static=
9169 ;;
9170
9171 hpux*)
9172 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9173 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9174 # sets the default TLS model and affects inlining.
9175 case $host_cpu in
9176 hppa*64*)
9177 # +Z the default
9178 ;;
9179 *)
9180 lt_prog_compiler_pic='-fPIC'
9181 ;;
9182 esac
9183 ;;
9184
9185 interix[3-9]*)
9186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9187 # Instead, we relocate shared libraries at runtime.
9188 ;;
9189
9190 msdosdjgpp*)
9191 # Just because we use GCC doesn't mean we suddenly get shared libraries
9192 # on systems that don't support them.
9193 lt_prog_compiler_can_build_shared=no
9194 enable_shared=no
9195 ;;
9196
9197 *nto* | *qnx*)
9198 # QNX uses GNU C++, but need to define -shared option too, otherwise
9199 # it will coredump.
9200 lt_prog_compiler_pic='-fPIC -shared'
9201 ;;
9202
9203 sysv4*MP*)
9204 if test -d /usr/nec; then
9205 lt_prog_compiler_pic=-Kconform_pic
9206 fi
9207 ;;
9208
9209 *)
9210 lt_prog_compiler_pic='-fPIC'
9211 ;;
9212 esac
9213
9214 case $cc_basename in
9215 nvcc*) # Cuda Compiler Driver 2.2
9216 lt_prog_compiler_wl='-Xlinker '
9217 lt_prog_compiler_pic='-Xcompiler -fPIC'
9218 ;;
9219 esac
9220 else
9221 # PORTME Check for flag to pass linker flags through the system compiler.
9222 case $host_os in
9223 aix*)
9224 lt_prog_compiler_wl='-Wl,'
9225 if test "$host_cpu" = ia64; then
9226 # AIX 5 now supports IA64 processor
9227 lt_prog_compiler_static='-Bstatic'
9228 else
9229 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9230 fi
9231 ;;
9232
9233 mingw* | cygwin* | pw32* | os2* | cegcc*)
9234 # This hack is so that the source file can tell whether it is being
9235 # built for inclusion in a dll (and should export symbols for example).
9236 lt_prog_compiler_pic='-DDLL_EXPORT'
9237 ;;
9238
9239 hpux9* | hpux10* | hpux11*)
9240 lt_prog_compiler_wl='-Wl,'
9241 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9242 # not for PA HP-UX.
9243 case $host_cpu in
9244 hppa*64*|ia64*)
9245 # +Z the default
9246 ;;
9247 *)
9248 lt_prog_compiler_pic='+Z'
9249 ;;
9250 esac
9251 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9252 lt_prog_compiler_static='${wl}-a ${wl}archive'
9253 ;;
9254
9255 irix5* | irix6* | nonstopux*)
9256 lt_prog_compiler_wl='-Wl,'
9257 # PIC (with -KPIC) is the default.
9258 lt_prog_compiler_static='-non_shared'
9259 ;;
9260
9261 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9262 case $cc_basename in
9263 # old Intel for x86_64 which still supported -KPIC.
9264 ecc*)
9265 lt_prog_compiler_wl='-Wl,'
9266 lt_prog_compiler_pic='-KPIC'
9267 lt_prog_compiler_static='-static'
9268 ;;
9269 # icc used to be incompatible with GCC.
9270 # ICC 10 doesn't accept -KPIC any more.
9271 icc* | ifort*)
9272 lt_prog_compiler_wl='-Wl,'
9273 lt_prog_compiler_pic='-fPIC'
9274 lt_prog_compiler_static='-static'
9275 ;;
9276 # Lahey Fortran 8.1.
9277 lf95*)
9278 lt_prog_compiler_wl='-Wl,'
9279 lt_prog_compiler_pic='--shared'
9280 lt_prog_compiler_static='--static'
9281 ;;
9282 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9283 # Portland Group compilers (*not* the Pentium gcc compiler,
9284 # which looks to be a dead project)
9285 lt_prog_compiler_wl='-Wl,'
9286 lt_prog_compiler_pic='-fpic'
9287 lt_prog_compiler_static='-Bstatic'
9288 ;;
9289 ccc*)
9290 lt_prog_compiler_wl='-Wl,'
9291 # All Alpha code is PIC.
9292 lt_prog_compiler_static='-non_shared'
9293 ;;
9294 xl* | bgxl* | bgf* | mpixl*)
9295 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9296 lt_prog_compiler_wl='-Wl,'
9297 lt_prog_compiler_pic='-qpic'
9298 lt_prog_compiler_static='-qstaticlink'
9299 ;;
9300 *)
9301 case `$CC -V 2>&1 | sed 5q` in
9302 *Sun\ F* | *Sun*Fortran*)
9303 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9304 lt_prog_compiler_pic='-KPIC'
9305 lt_prog_compiler_static='-Bstatic'
9306 lt_prog_compiler_wl=''
9307 ;;
9308 *Sun\ C*)
9309 # Sun C 5.9
9310 lt_prog_compiler_pic='-KPIC'
9311 lt_prog_compiler_static='-Bstatic'
9312 lt_prog_compiler_wl='-Wl,'
9313 ;;
9314 esac
9315 ;;
9316 esac
9317 ;;
9318
9319 newsos6)
9320 lt_prog_compiler_pic='-KPIC'
9321 lt_prog_compiler_static='-Bstatic'
9322 ;;
9323
9324 *nto* | *qnx*)
9325 # QNX uses GNU C++, but need to define -shared option too, otherwise
9326 # it will coredump.
9327 lt_prog_compiler_pic='-fPIC -shared'
9328 ;;
9329
9330 osf3* | osf4* | osf5*)
9331 lt_prog_compiler_wl='-Wl,'
9332 # All OSF/1 code is PIC.
9333 lt_prog_compiler_static='-non_shared'
9334 ;;
9335
9336 rdos*)
9337 lt_prog_compiler_static='-non_shared'
9338 ;;
9339
9340 solaris*)
9341 lt_prog_compiler_pic='-KPIC'
9342 lt_prog_compiler_static='-Bstatic'
9343 case $cc_basename in
9344 f77* | f90* | f95*)
9345 lt_prog_compiler_wl='-Qoption ld ';;
9346 *)
9347 lt_prog_compiler_wl='-Wl,';;
9348 esac
9349 ;;
9350
9351 sunos4*)
9352 lt_prog_compiler_wl='-Qoption ld '
9353 lt_prog_compiler_pic='-PIC'
9354 lt_prog_compiler_static='-Bstatic'
9355 ;;
9356
9357 sysv4 | sysv4.2uw2* | sysv4.3*)
9358 lt_prog_compiler_wl='-Wl,'
9359 lt_prog_compiler_pic='-KPIC'
9360 lt_prog_compiler_static='-Bstatic'
9361 ;;
9362
9363 sysv4*MP*)
9364 if test -d /usr/nec ;then
9365 lt_prog_compiler_pic='-Kconform_pic'
9366 lt_prog_compiler_static='-Bstatic'
9367 fi
9368 ;;
9369
9370 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9371 lt_prog_compiler_wl='-Wl,'
9372 lt_prog_compiler_pic='-KPIC'
9373 lt_prog_compiler_static='-Bstatic'
9374 ;;
9375
9376 unicos*)
9377 lt_prog_compiler_wl='-Wl,'
9378 lt_prog_compiler_can_build_shared=no
9379 ;;
9380
9381 uts4*)
9382 lt_prog_compiler_pic='-pic'
9383 lt_prog_compiler_static='-Bstatic'
9384 ;;
9385
9386 *)
9387 lt_prog_compiler_can_build_shared=no
9388 ;;
9389 esac
9390 fi
9391
9392 case $host_os in
9393 # For platforms which do not support PIC, -DPIC is meaningless:
9394 *djgpp*)
9395 lt_prog_compiler_pic=
9396 ;;
9397 *)
9398 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9399 ;;
9400 esac
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9402 $as_echo "$lt_prog_compiler_pic" >&6; }
9403
9404
9405
9406
9407
9408
9409 #
9410 # Check to make sure the PIC flag actually works.
9411 #
9412 if test -n "$lt_prog_compiler_pic"; then
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9414 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9415 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9416 $as_echo_n "(cached) " >&6
9417 else
9418 lt_cv_prog_compiler_pic_works=no
9419 ac_outfile=conftest.$ac_objext
9420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9421 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9422 # Insert the option either (1) after the last *FLAGS variable, or
9423 # (2) before a word containing "conftest.", or (3) at the end.
9424 # Note that $ac_compile itself does not contain backslashes and begins
9425 # with a dollar sign (not a hyphen), so the echo should work correctly.
9426 # The option is referenced via a variable to avoid confusing sed.
9427 lt_compile=`echo "$ac_compile" | $SED \
9428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9430 -e 's:$: $lt_compiler_flag:'`
9431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9432 (eval "$lt_compile" 2>conftest.err)
9433 ac_status=$?
9434 cat conftest.err >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 if (exit $ac_status) && test -s "$ac_outfile"; then
9437 # The compiler can only warn and ignore the option if not recognized
9438 # So say no if there are warnings other than the usual output.
9439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9442 lt_cv_prog_compiler_pic_works=yes
9443 fi
9444 fi
9445 $RM conftest*
9446
9447 fi
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9449 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9450
9451 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9452 case $lt_prog_compiler_pic in
9453 "" | " "*) ;;
9454 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9455 esac
9456 else
9457 lt_prog_compiler_pic=
9458 lt_prog_compiler_can_build_shared=no
9459 fi
9460
9461 fi
9462
9463
9464
9465
9466
9467
9468 #
9469 # Check to make sure the static flag actually works.
9470 #
9471 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9473 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9474 if ${lt_cv_prog_compiler_static_works+:} false; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 lt_cv_prog_compiler_static_works=no
9478 save_LDFLAGS="$LDFLAGS"
9479 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9480 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9481 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9482 # The linker can only warn and ignore the option if not recognized
9483 # So say no if there are warnings
9484 if test -s conftest.err; then
9485 # Append any errors to the config.log.
9486 cat conftest.err 1>&5
9487 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9489 if diff conftest.exp conftest.er2 >/dev/null; then
9490 lt_cv_prog_compiler_static_works=yes
9491 fi
9492 else
9493 lt_cv_prog_compiler_static_works=yes
9494 fi
9495 fi
9496 $RM -r conftest*
9497 LDFLAGS="$save_LDFLAGS"
9498
9499 fi
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9501 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9502
9503 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9504 :
9505 else
9506 lt_prog_compiler_static=
9507 fi
9508
9509
9510
9511
9512
9513
9514
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9516 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9517 if ${lt_cv_prog_compiler_c_o+:} false; then :
9518 $as_echo_n "(cached) " >&6
9519 else
9520 lt_cv_prog_compiler_c_o=no
9521 $RM -r conftest 2>/dev/null
9522 mkdir conftest
9523 cd conftest
9524 mkdir out
9525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9526
9527 lt_compiler_flag="-o out/conftest2.$ac_objext"
9528 # Insert the option either (1) after the last *FLAGS variable, or
9529 # (2) before a word containing "conftest.", or (3) at the end.
9530 # Note that $ac_compile itself does not contain backslashes and begins
9531 # with a dollar sign (not a hyphen), so the echo should work correctly.
9532 lt_compile=`echo "$ac_compile" | $SED \
9533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9535 -e 's:$: $lt_compiler_flag:'`
9536 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9537 (eval "$lt_compile" 2>out/conftest.err)
9538 ac_status=$?
9539 cat out/conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9542 then
9543 # The compiler can only warn and ignore the option if not recognized
9544 # So say no if there are warnings
9545 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9548 lt_cv_prog_compiler_c_o=yes
9549 fi
9550 fi
9551 chmod u+w . 2>&5
9552 $RM conftest*
9553 # SGI C++ compiler will create directory out/ii_files/ for
9554 # template instantiation
9555 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9556 $RM out/* && rmdir out
9557 cd ..
9558 $RM -r conftest
9559 $RM conftest*
9560
9561 fi
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9563 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9564
9565
9566
9567
9568
9569
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9571 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9572 if ${lt_cv_prog_compiler_c_o+:} false; then :
9573 $as_echo_n "(cached) " >&6
9574 else
9575 lt_cv_prog_compiler_c_o=no
9576 $RM -r conftest 2>/dev/null
9577 mkdir conftest
9578 cd conftest
9579 mkdir out
9580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9581
9582 lt_compiler_flag="-o out/conftest2.$ac_objext"
9583 # Insert the option either (1) after the last *FLAGS variable, or
9584 # (2) before a word containing "conftest.", or (3) at the end.
9585 # Note that $ac_compile itself does not contain backslashes and begins
9586 # with a dollar sign (not a hyphen), so the echo should work correctly.
9587 lt_compile=`echo "$ac_compile" | $SED \
9588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9590 -e 's:$: $lt_compiler_flag:'`
9591 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9592 (eval "$lt_compile" 2>out/conftest.err)
9593 ac_status=$?
9594 cat out/conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9597 then
9598 # The compiler can only warn and ignore the option if not recognized
9599 # So say no if there are warnings
9600 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9603 lt_cv_prog_compiler_c_o=yes
9604 fi
9605 fi
9606 chmod u+w . 2>&5
9607 $RM conftest*
9608 # SGI C++ compiler will create directory out/ii_files/ for
9609 # template instantiation
9610 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9611 $RM out/* && rmdir out
9612 cd ..
9613 $RM -r conftest
9614 $RM conftest*
9615
9616 fi
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9618 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9619
9620
9621
9622
9623 hard_links="nottested"
9624 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9625 # do not overwrite the value of need_locks provided by the user
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9627 $as_echo_n "checking if we can lock with hard links... " >&6; }
9628 hard_links=yes
9629 $RM conftest*
9630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9631 touch conftest.a
9632 ln conftest.a conftest.b 2>&5 || hard_links=no
9633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9635 $as_echo "$hard_links" >&6; }
9636 if test "$hard_links" = no; then
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9638 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9639 need_locks=warn
9640 fi
9641 else
9642 need_locks=no
9643 fi
9644
9645
9646
9647
9648
9649
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9651 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9652
9653 runpath_var=
9654 allow_undefined_flag=
9655 always_export_symbols=no
9656 archive_cmds=
9657 archive_expsym_cmds=
9658 compiler_needs_object=no
9659 enable_shared_with_static_runtimes=no
9660 export_dynamic_flag_spec=
9661 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9662 hardcode_automatic=no
9663 hardcode_direct=no
9664 hardcode_direct_absolute=no
9665 hardcode_libdir_flag_spec=
9666 hardcode_libdir_flag_spec_ld=
9667 hardcode_libdir_separator=
9668 hardcode_minus_L=no
9669 hardcode_shlibpath_var=unsupported
9670 inherit_rpath=no
9671 link_all_deplibs=unknown
9672 module_cmds=
9673 module_expsym_cmds=
9674 old_archive_from_new_cmds=
9675 old_archive_from_expsyms_cmds=
9676 thread_safe_flag_spec=
9677 whole_archive_flag_spec=
9678 # include_expsyms should be a list of space-separated symbols to be *always*
9679 # included in the symbol list
9680 include_expsyms=
9681 # exclude_expsyms can be an extended regexp of symbols to exclude
9682 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9683 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9684 # as well as any symbol that contains `d'.
9685 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9686 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9687 # platforms (ab)use it in PIC code, but their linkers get confused if
9688 # the symbol is explicitly referenced. Since portable code cannot
9689 # rely on this symbol name, it's probably fine to never include it in
9690 # preloaded symbol tables.
9691 # Exclude shared library initialization/finalization symbols.
9692 extract_expsyms_cmds=
9693
9694 case $host_os in
9695 cygwin* | mingw* | pw32* | cegcc*)
9696 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9697 # When not using gcc, we currently assume that we are using
9698 # Microsoft Visual C++.
9699 if test "$GCC" != yes; then
9700 with_gnu_ld=no
9701 fi
9702 ;;
9703 interix*)
9704 # we just hope/assume this is gcc and not c89 (= MSVC++)
9705 with_gnu_ld=yes
9706 ;;
9707 openbsd*)
9708 with_gnu_ld=no
9709 ;;
9710 esac
9711
9712 ld_shlibs=yes
9713
9714 # On some targets, GNU ld is compatible enough with the native linker
9715 # that we're better off using the native interface for both.
9716 lt_use_gnu_ld_interface=no
9717 if test "$with_gnu_ld" = yes; then
9718 case $host_os in
9719 aix*)
9720 # The AIX port of GNU ld has always aspired to compatibility
9721 # with the native linker. However, as the warning in the GNU ld
9722 # block says, versions before 2.19.5* couldn't really create working
9723 # shared libraries, regardless of the interface used.
9724 case `$LD -v 2>&1` in
9725 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9726 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9727 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9728 *)
9729 lt_use_gnu_ld_interface=yes
9730 ;;
9731 esac
9732 ;;
9733 *)
9734 lt_use_gnu_ld_interface=yes
9735 ;;
9736 esac
9737 fi
9738
9739 if test "$lt_use_gnu_ld_interface" = yes; then
9740 # If archive_cmds runs LD, not CC, wlarc should be empty
9741 wlarc='${wl}'
9742
9743 # Set some defaults for GNU ld with shared library support. These
9744 # are reset later if shared libraries are not supported. Putting them
9745 # here allows them to be overridden if necessary.
9746 runpath_var=LD_RUN_PATH
9747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9748 export_dynamic_flag_spec='${wl}--export-dynamic'
9749 # ancient GNU ld didn't support --whole-archive et. al.
9750 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9751 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9752 else
9753 whole_archive_flag_spec=
9754 fi
9755 supports_anon_versioning=no
9756 case `$LD -v 2>&1` in
9757 *GNU\ gold*) supports_anon_versioning=yes ;;
9758 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9759 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9760 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9761 *\ 2.11.*) ;; # other 2.11 versions
9762 *) supports_anon_versioning=yes ;;
9763 esac
9764
9765 # See if GNU ld supports shared libraries.
9766 case $host_os in
9767 aix[3-9]*)
9768 # On AIX/PPC, the GNU linker is very broken
9769 if test "$host_cpu" != ia64; then
9770 ld_shlibs=no
9771 cat <<_LT_EOF 1>&2
9772
9773 *** Warning: the GNU linker, at least up to release 2.19, is reported
9774 *** to be unable to reliably create shared libraries on AIX.
9775 *** Therefore, libtool is disabling shared libraries support. If you
9776 *** really care for shared libraries, you may want to install binutils
9777 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9778 *** You will then need to restart the configuration process.
9779
9780 _LT_EOF
9781 fi
9782 ;;
9783
9784 amigaos*)
9785 case $host_cpu in
9786 powerpc)
9787 # see comment about AmigaOS4 .so support
9788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9789 archive_expsym_cmds=''
9790 ;;
9791 m68k)
9792 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)'
9793 hardcode_libdir_flag_spec='-L$libdir'
9794 hardcode_minus_L=yes
9795 ;;
9796 esac
9797 ;;
9798
9799 beos*)
9800 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9801 allow_undefined_flag=unsupported
9802 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9803 # support --undefined. This deserves some investigation. FIXME
9804 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9805 else
9806 ld_shlibs=no
9807 fi
9808 ;;
9809
9810 cygwin* | mingw* | pw32* | cegcc*)
9811 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9812 # as there is no search path for DLLs.
9813 hardcode_libdir_flag_spec='-L$libdir'
9814 export_dynamic_flag_spec='${wl}--export-all-symbols'
9815 allow_undefined_flag=unsupported
9816 always_export_symbols=no
9817 enable_shared_with_static_runtimes=yes
9818 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9819
9820 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9822 # If the export-symbols file already is a .def file (1st line
9823 # is EXPORTS), use it as is; otherwise, prepend...
9824 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9825 cp $export_symbols $output_objdir/$soname.def;
9826 else
9827 echo EXPORTS > $output_objdir/$soname.def;
9828 cat $export_symbols >> $output_objdir/$soname.def;
9829 fi~
9830 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9831 else
9832 ld_shlibs=no
9833 fi
9834 ;;
9835
9836 haiku*)
9837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9838 link_all_deplibs=yes
9839 ;;
9840
9841 interix[3-9]*)
9842 hardcode_direct=no
9843 hardcode_shlibpath_var=no
9844 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9845 export_dynamic_flag_spec='${wl}-E'
9846 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9847 # Instead, shared libraries are loaded at an image base (0x10000000 by
9848 # default) and relocated if they conflict, which is a slow very memory
9849 # consuming and fragmenting process. To avoid this, we pick a random,
9850 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9851 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9852 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9853 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'
9854 ;;
9855
9856 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9857 tmp_diet=no
9858 if test "$host_os" = linux-dietlibc; then
9859 case $cc_basename in
9860 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9861 esac
9862 fi
9863 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9864 && test "$tmp_diet" = no
9865 then
9866 tmp_addflag=' $pic_flag'
9867 tmp_sharedflag='-shared'
9868 case $cc_basename,$host_cpu in
9869 pgcc*) # Portland Group C compiler
9870 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9871 tmp_addflag=' $pic_flag'
9872 ;;
9873 pgf77* | pgf90* | pgf95* | pgfortran*)
9874 # Portland Group f77 and f90 compilers
9875 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9876 tmp_addflag=' $pic_flag -Mnomain' ;;
9877 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9878 tmp_addflag=' -i_dynamic' ;;
9879 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9880 tmp_addflag=' -i_dynamic -nofor_main' ;;
9881 ifc* | ifort*) # Intel Fortran compiler
9882 tmp_addflag=' -nofor_main' ;;
9883 lf95*) # Lahey Fortran 8.1
9884 whole_archive_flag_spec=
9885 tmp_sharedflag='--shared' ;;
9886 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9887 tmp_sharedflag='-qmkshrobj'
9888 tmp_addflag= ;;
9889 nvcc*) # Cuda Compiler Driver 2.2
9890 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9891 compiler_needs_object=yes
9892 ;;
9893 esac
9894 case `$CC -V 2>&1 | sed 5q` in
9895 *Sun\ C*) # Sun C 5.9
9896 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9897 compiler_needs_object=yes
9898 tmp_sharedflag='-G' ;;
9899 *Sun\ F*) # Sun Fortran 8.3
9900 tmp_sharedflag='-G' ;;
9901 esac
9902 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9903
9904 if test "x$supports_anon_versioning" = xyes; then
9905 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9906 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9907 echo "local: *; };" >> $output_objdir/$libname.ver~
9908 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9909 fi
9910
9911 case $cc_basename in
9912 xlf* | bgf* | bgxlf* | mpixlf*)
9913 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9914 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9915 hardcode_libdir_flag_spec=
9916 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9917 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9918 if test "x$supports_anon_versioning" = xyes; then
9919 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9920 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9921 echo "local: *; };" >> $output_objdir/$libname.ver~
9922 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9923 fi
9924 ;;
9925 esac
9926 else
9927 ld_shlibs=no
9928 fi
9929 ;;
9930
9931 netbsd*)
9932 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9933 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9934 wlarc=
9935 else
9936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9937 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9938 fi
9939 ;;
9940
9941 solaris*)
9942 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9943 ld_shlibs=no
9944 cat <<_LT_EOF 1>&2
9945
9946 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9947 *** create shared libraries on Solaris systems. Therefore, libtool
9948 *** is disabling shared libraries support. We urge you to upgrade GNU
9949 *** binutils to release 2.9.1 or newer. Another option is to modify
9950 *** your PATH or compiler configuration so that the native linker is
9951 *** used, and then restart.
9952
9953 _LT_EOF
9954 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9956 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9957 else
9958 ld_shlibs=no
9959 fi
9960 ;;
9961
9962 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9963 case `$LD -v 2>&1` in
9964 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9965 ld_shlibs=no
9966 cat <<_LT_EOF 1>&2
9967
9968 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9969 *** reliably create shared libraries on SCO systems. Therefore, libtool
9970 *** is disabling shared libraries support. We urge you to upgrade GNU
9971 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9972 *** your PATH or compiler configuration so that the native linker is
9973 *** used, and then restart.
9974
9975 _LT_EOF
9976 ;;
9977 *)
9978 # For security reasons, it is highly recommended that you always
9979 # use absolute paths for naming shared libraries, and exclude the
9980 # DT_RUNPATH tag from executables and libraries. But doing so
9981 # requires that you compile everything twice, which is a pain.
9982 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9985 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9986 else
9987 ld_shlibs=no
9988 fi
9989 ;;
9990 esac
9991 ;;
9992
9993 sunos4*)
9994 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9995 wlarc=
9996 hardcode_direct=yes
9997 hardcode_shlibpath_var=no
9998 ;;
9999
10000 *)
10001 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10003 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10004 else
10005 ld_shlibs=no
10006 fi
10007 ;;
10008 esac
10009
10010 if test "$ld_shlibs" = no; then
10011 runpath_var=
10012 hardcode_libdir_flag_spec=
10013 export_dynamic_flag_spec=
10014 whole_archive_flag_spec=
10015 fi
10016 else
10017 # PORTME fill in a description of your system's linker (not GNU ld)
10018 case $host_os in
10019 aix3*)
10020 allow_undefined_flag=unsupported
10021 always_export_symbols=yes
10022 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'
10023 # Note: this linker hardcodes the directories in LIBPATH if there
10024 # are no directories specified by -L.
10025 hardcode_minus_L=yes
10026 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10027 # Neither direct hardcoding nor static linking is supported with a
10028 # broken collect2.
10029 hardcode_direct=unsupported
10030 fi
10031 ;;
10032
10033 aix[4-9]*)
10034 if test "$host_cpu" = ia64; then
10035 # On IA64, the linker does run time linking by default, so we don't
10036 # have to do anything special.
10037 aix_use_runtimelinking=no
10038 exp_sym_flag='-Bexport'
10039 no_entry_flag=""
10040 else
10041 # If we're using GNU nm, then we don't want the "-C" option.
10042 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10043 # Also, AIX nm treats weak defined symbols like other global
10044 # defined symbols, whereas GNU nm marks them as "W".
10045 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10046 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10047 else
10048 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10049 fi
10050 aix_use_runtimelinking=no
10051
10052 # Test if we are trying to use run time linking or normal
10053 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10054 # need to do runtime linking.
10055 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10056 for ld_flag in $LDFLAGS; do
10057 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10058 aix_use_runtimelinking=yes
10059 break
10060 fi
10061 done
10062 ;;
10063 esac
10064
10065 exp_sym_flag='-bexport'
10066 no_entry_flag='-bnoentry'
10067 fi
10068
10069 # When large executables or shared objects are built, AIX ld can
10070 # have problems creating the table of contents. If linking a library
10071 # or program results in "error TOC overflow" add -mminimal-toc to
10072 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10073 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10074
10075 archive_cmds=''
10076 hardcode_direct=yes
10077 hardcode_direct_absolute=yes
10078 hardcode_libdir_separator=':'
10079 link_all_deplibs=yes
10080 file_list_spec='${wl}-f,'
10081
10082 if test "$GCC" = yes; then
10083 case $host_os in aix4.[012]|aix4.[012].*)
10084 # We only want to do this on AIX 4.2 and lower, the check
10085 # below for broken collect2 doesn't work under 4.3+
10086 collect2name=`${CC} -print-prog-name=collect2`
10087 if test -f "$collect2name" &&
10088 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10089 then
10090 # We have reworked collect2
10091 :
10092 else
10093 # We have old collect2
10094 hardcode_direct=unsupported
10095 # It fails to find uninstalled libraries when the uninstalled
10096 # path is not listed in the libpath. Setting hardcode_minus_L
10097 # to unsupported forces relinking
10098 hardcode_minus_L=yes
10099 hardcode_libdir_flag_spec='-L$libdir'
10100 hardcode_libdir_separator=
10101 fi
10102 ;;
10103 esac
10104 shared_flag='-shared'
10105 if test "$aix_use_runtimelinking" = yes; then
10106 shared_flag="$shared_flag "'${wl}-G'
10107 fi
10108 else
10109 # not using gcc
10110 if test "$host_cpu" = ia64; then
10111 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10112 # chokes on -Wl,-G. The following line is correct:
10113 shared_flag='-G'
10114 else
10115 if test "$aix_use_runtimelinking" = yes; then
10116 shared_flag='${wl}-G'
10117 else
10118 shared_flag='${wl}-bM:SRE'
10119 fi
10120 fi
10121 fi
10122
10123 export_dynamic_flag_spec='${wl}-bexpall'
10124 # It seems that -bexpall does not export symbols beginning with
10125 # underscore (_), so it is better to generate a list of symbols to export.
10126 always_export_symbols=yes
10127 if test "$aix_use_runtimelinking" = yes; then
10128 # Warning - without using the other runtime loading flags (-brtl),
10129 # -berok will link without error, but may produce a broken library.
10130 allow_undefined_flag='-berok'
10131 # Determine the default libpath from the value encoded in an
10132 # empty executable.
10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h. */
10135
10136 int
10137 main ()
10138 {
10139
10140 ;
10141 return 0;
10142 }
10143 _ACEOF
10144 if ac_fn_c_try_link "$LINENO"; then :
10145
10146 lt_aix_libpath_sed='
10147 /Import File Strings/,/^$/ {
10148 /^0/ {
10149 s/^0 *\(.*\)$/\1/
10150 p
10151 }
10152 }'
10153 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10154 # Check for a 64-bit object if we didn't find anything.
10155 if test -z "$aix_libpath"; then
10156 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10157 fi
10158 fi
10159 rm -f core conftest.err conftest.$ac_objext \
10160 conftest$ac_exeext conftest.$ac_ext
10161 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10162
10163 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10164 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10165 else
10166 if test "$host_cpu" = ia64; then
10167 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10168 allow_undefined_flag="-z nodefs"
10169 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"
10170 else
10171 # Determine the default libpath from the value encoded in an
10172 # empty executable.
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175
10176 int
10177 main ()
10178 {
10179
10180 ;
10181 return 0;
10182 }
10183 _ACEOF
10184 if ac_fn_c_try_link "$LINENO"; then :
10185
10186 lt_aix_libpath_sed='
10187 /Import File Strings/,/^$/ {
10188 /^0/ {
10189 s/^0 *\(.*\)$/\1/
10190 p
10191 }
10192 }'
10193 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10194 # Check for a 64-bit object if we didn't find anything.
10195 if test -z "$aix_libpath"; then
10196 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10197 fi
10198 fi
10199 rm -f core conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
10201 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10202
10203 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10204 # Warning - without using the other run time loading flags,
10205 # -berok will link without error, but may produce a broken library.
10206 no_undefined_flag=' ${wl}-bernotok'
10207 allow_undefined_flag=' ${wl}-berok'
10208 if test "$with_gnu_ld" = yes; then
10209 # We only use this code for GNU lds that support --whole-archive.
10210 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10211 else
10212 # Exported symbols can be pulled into shared objects from archives
10213 whole_archive_flag_spec='$convenience'
10214 fi
10215 archive_cmds_need_lc=yes
10216 # This is similar to how AIX traditionally builds its shared libraries.
10217 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'
10218 fi
10219 fi
10220 ;;
10221
10222 amigaos*)
10223 case $host_cpu in
10224 powerpc)
10225 # see comment about AmigaOS4 .so support
10226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10227 archive_expsym_cmds=''
10228 ;;
10229 m68k)
10230 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)'
10231 hardcode_libdir_flag_spec='-L$libdir'
10232 hardcode_minus_L=yes
10233 ;;
10234 esac
10235 ;;
10236
10237 bsdi[45]*)
10238 export_dynamic_flag_spec=-rdynamic
10239 ;;
10240
10241 cygwin* | mingw* | pw32* | cegcc*)
10242 # When not using gcc, we currently assume that we are using
10243 # Microsoft Visual C++.
10244 # hardcode_libdir_flag_spec is actually meaningless, as there is
10245 # no search path for DLLs.
10246 hardcode_libdir_flag_spec=' '
10247 allow_undefined_flag=unsupported
10248 # Tell ltmain to make .lib files, not .a files.
10249 libext=lib
10250 # Tell ltmain to make .dll files, not .so files.
10251 shrext_cmds=".dll"
10252 # FIXME: Setting linknames here is a bad hack.
10253 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10254 # The linker will automatically build a .lib file if we build a DLL.
10255 old_archive_from_new_cmds='true'
10256 # FIXME: Should let the user specify the lib program.
10257 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10258 fix_srcfile_path='`cygpath -w "$srcfile"`'
10259 enable_shared_with_static_runtimes=yes
10260 ;;
10261
10262 darwin* | rhapsody*)
10263
10264
10265 archive_cmds_need_lc=no
10266 hardcode_direct=no
10267 hardcode_automatic=yes
10268 hardcode_shlibpath_var=unsupported
10269 if test "$lt_cv_ld_force_load" = "yes"; then
10270 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10271 else
10272 whole_archive_flag_spec=''
10273 fi
10274 link_all_deplibs=yes
10275 allow_undefined_flag="$_lt_dar_allow_undefined"
10276 case $cc_basename in
10277 ifort*) _lt_dar_can_shared=yes ;;
10278 *) _lt_dar_can_shared=$GCC ;;
10279 esac
10280 if test "$_lt_dar_can_shared" = "yes"; then
10281 output_verbose_link_cmd=func_echo_all
10282 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10283 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10284 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}"
10285 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}"
10286
10287 else
10288 ld_shlibs=no
10289 fi
10290
10291 ;;
10292
10293 dgux*)
10294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295 hardcode_libdir_flag_spec='-L$libdir'
10296 hardcode_shlibpath_var=no
10297 ;;
10298
10299 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10300 # support. Future versions do this automatically, but an explicit c++rt0.o
10301 # does not break anything, and helps significantly (at the cost of a little
10302 # extra space).
10303 freebsd2.2*)
10304 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10305 hardcode_libdir_flag_spec='-R$libdir'
10306 hardcode_direct=yes
10307 hardcode_shlibpath_var=no
10308 ;;
10309
10310 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10311 freebsd2.*)
10312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10313 hardcode_direct=yes
10314 hardcode_minus_L=yes
10315 hardcode_shlibpath_var=no
10316 ;;
10317
10318 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10319 freebsd* | dragonfly*)
10320 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10321 hardcode_libdir_flag_spec='-R$libdir'
10322 hardcode_direct=yes
10323 hardcode_shlibpath_var=no
10324 ;;
10325
10326 hpux9*)
10327 if test "$GCC" = yes; then
10328 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'
10329 else
10330 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'
10331 fi
10332 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10333 hardcode_libdir_separator=:
10334 hardcode_direct=yes
10335
10336 # hardcode_minus_L: Not really in the search PATH,
10337 # but as the default location of the library.
10338 hardcode_minus_L=yes
10339 export_dynamic_flag_spec='${wl}-E'
10340 ;;
10341
10342 hpux10*)
10343 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10344 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10345 else
10346 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10347 fi
10348 if test "$with_gnu_ld" = no; then
10349 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10350 hardcode_libdir_flag_spec_ld='+b $libdir'
10351 hardcode_libdir_separator=:
10352 hardcode_direct=yes
10353 hardcode_direct_absolute=yes
10354 export_dynamic_flag_spec='${wl}-E'
10355 # hardcode_minus_L: Not really in the search PATH,
10356 # but as the default location of the library.
10357 hardcode_minus_L=yes
10358 fi
10359 ;;
10360
10361 hpux11*)
10362 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10363 case $host_cpu in
10364 hppa*64*)
10365 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10366 ;;
10367 ia64*)
10368 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10369 ;;
10370 *)
10371 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10372 ;;
10373 esac
10374 else
10375 case $host_cpu in
10376 hppa*64*)
10377 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10378 ;;
10379 ia64*)
10380 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10381 ;;
10382 *)
10383
10384 # Older versions of the 11.00 compiler do not understand -b yet
10385 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10387 $as_echo_n "checking if $CC understands -b... " >&6; }
10388 if ${lt_cv_prog_compiler__b+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 lt_cv_prog_compiler__b=no
10392 save_LDFLAGS="$LDFLAGS"
10393 LDFLAGS="$LDFLAGS -b"
10394 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10395 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10396 # The linker can only warn and ignore the option if not recognized
10397 # So say no if there are warnings
10398 if test -s conftest.err; then
10399 # Append any errors to the config.log.
10400 cat conftest.err 1>&5
10401 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10402 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10403 if diff conftest.exp conftest.er2 >/dev/null; then
10404 lt_cv_prog_compiler__b=yes
10405 fi
10406 else
10407 lt_cv_prog_compiler__b=yes
10408 fi
10409 fi
10410 $RM -r conftest*
10411 LDFLAGS="$save_LDFLAGS"
10412
10413 fi
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10415 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10416
10417 if test x"$lt_cv_prog_compiler__b" = xyes; then
10418 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10419 else
10420 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10421 fi
10422
10423 ;;
10424 esac
10425 fi
10426 if test "$with_gnu_ld" = no; then
10427 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10428 hardcode_libdir_separator=:
10429
10430 case $host_cpu in
10431 hppa*64*|ia64*)
10432 hardcode_direct=no
10433 hardcode_shlibpath_var=no
10434 ;;
10435 *)
10436 hardcode_direct=yes
10437 hardcode_direct_absolute=yes
10438 export_dynamic_flag_spec='${wl}-E'
10439
10440 # hardcode_minus_L: Not really in the search PATH,
10441 # but as the default location of the library.
10442 hardcode_minus_L=yes
10443 ;;
10444 esac
10445 fi
10446 ;;
10447
10448 irix5* | irix6* | nonstopux*)
10449 if test "$GCC" = yes; then
10450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10451 # Try to use the -exported_symbol ld option, if it does not
10452 # work, assume that -exports_file does not work either and
10453 # implicitly export all symbols.
10454 save_LDFLAGS="$LDFLAGS"
10455 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10458 int foo(void) {}
10459 _ACEOF
10460 if ac_fn_c_try_link "$LINENO"; then :
10461 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10462
10463 fi
10464 rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10466 LDFLAGS="$save_LDFLAGS"
10467 else
10468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10470 fi
10471 archive_cmds_need_lc='no'
10472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10473 hardcode_libdir_separator=:
10474 inherit_rpath=yes
10475 link_all_deplibs=yes
10476 ;;
10477
10478 netbsd*)
10479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10481 else
10482 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10483 fi
10484 hardcode_libdir_flag_spec='-R$libdir'
10485 hardcode_direct=yes
10486 hardcode_shlibpath_var=no
10487 ;;
10488
10489 newsos6)
10490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10491 hardcode_direct=yes
10492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10493 hardcode_libdir_separator=:
10494 hardcode_shlibpath_var=no
10495 ;;
10496
10497 *nto* | *qnx*)
10498 ;;
10499
10500 openbsd*)
10501 if test -f /usr/libexec/ld.so; then
10502 hardcode_direct=yes
10503 hardcode_shlibpath_var=no
10504 hardcode_direct_absolute=yes
10505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10506 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10507 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10508 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10509 export_dynamic_flag_spec='${wl}-E'
10510 else
10511 case $host_os in
10512 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10514 hardcode_libdir_flag_spec='-R$libdir'
10515 ;;
10516 *)
10517 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10518 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10519 ;;
10520 esac
10521 fi
10522 else
10523 ld_shlibs=no
10524 fi
10525 ;;
10526
10527 os2*)
10528 hardcode_libdir_flag_spec='-L$libdir'
10529 hardcode_minus_L=yes
10530 allow_undefined_flag=unsupported
10531 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'
10532 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10533 ;;
10534
10535 osf3*)
10536 if test "$GCC" = yes; then
10537 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10538 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10539 else
10540 allow_undefined_flag=' -expect_unresolved \*'
10541 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10542 fi
10543 archive_cmds_need_lc='no'
10544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10545 hardcode_libdir_separator=:
10546 ;;
10547
10548 osf4* | osf5*) # as osf3* with the addition of -msym flag
10549 if test "$GCC" = yes; then
10550 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10551 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10553 else
10554 allow_undefined_flag=' -expect_unresolved \*'
10555 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10556 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~
10557 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10558
10559 # Both c and cxx compiler support -rpath directly
10560 hardcode_libdir_flag_spec='-rpath $libdir'
10561 fi
10562 archive_cmds_need_lc='no'
10563 hardcode_libdir_separator=:
10564 ;;
10565
10566 solaris*)
10567 no_undefined_flag=' -z defs'
10568 if test "$GCC" = yes; then
10569 wlarc='${wl}'
10570 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10571 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10572 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10573 else
10574 case `$CC -V 2>&1` in
10575 *"Compilers 5.0"*)
10576 wlarc=''
10577 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10578 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10579 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10580 ;;
10581 *)
10582 wlarc='${wl}'
10583 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10584 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10585 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10586 ;;
10587 esac
10588 fi
10589 hardcode_libdir_flag_spec='-R$libdir'
10590 hardcode_shlibpath_var=no
10591 case $host_os in
10592 solaris2.[0-5] | solaris2.[0-5].*) ;;
10593 *)
10594 # The compiler driver will combine and reorder linker options,
10595 # but understands `-z linker_flag'. GCC discards it without `$wl',
10596 # but is careful enough not to reorder.
10597 # Supported since Solaris 2.6 (maybe 2.5.1?)
10598 if test "$GCC" = yes; then
10599 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10600 else
10601 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10602 fi
10603 ;;
10604 esac
10605 link_all_deplibs=yes
10606 ;;
10607
10608 sunos4*)
10609 if test "x$host_vendor" = xsequent; then
10610 # Use $CC to link under sequent, because it throws in some extra .o
10611 # files that make .init and .fini sections work.
10612 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10613 else
10614 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10615 fi
10616 hardcode_libdir_flag_spec='-L$libdir'
10617 hardcode_direct=yes
10618 hardcode_minus_L=yes
10619 hardcode_shlibpath_var=no
10620 ;;
10621
10622 sysv4)
10623 case $host_vendor in
10624 sni)
10625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10626 hardcode_direct=yes # is this really true???
10627 ;;
10628 siemens)
10629 ## LD is ld it makes a PLAMLIB
10630 ## CC just makes a GrossModule.
10631 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10632 reload_cmds='$CC -r -o $output$reload_objs'
10633 hardcode_direct=no
10634 ;;
10635 motorola)
10636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10637 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10638 ;;
10639 esac
10640 runpath_var='LD_RUN_PATH'
10641 hardcode_shlibpath_var=no
10642 ;;
10643
10644 sysv4.3*)
10645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10646 hardcode_shlibpath_var=no
10647 export_dynamic_flag_spec='-Bexport'
10648 ;;
10649
10650 sysv4*MP*)
10651 if test -d /usr/nec; then
10652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10653 hardcode_shlibpath_var=no
10654 runpath_var=LD_RUN_PATH
10655 hardcode_runpath_var=yes
10656 ld_shlibs=yes
10657 fi
10658 ;;
10659
10660 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10661 no_undefined_flag='${wl}-z,text'
10662 archive_cmds_need_lc=no
10663 hardcode_shlibpath_var=no
10664 runpath_var='LD_RUN_PATH'
10665
10666 if test "$GCC" = yes; then
10667 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10668 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10669 else
10670 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10671 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 fi
10673 ;;
10674
10675 sysv5* | sco3.2v5* | sco5v6*)
10676 # Note: We can NOT use -z defs as we might desire, because we do not
10677 # link with -lc, and that would cause any symbols used from libc to
10678 # always be unresolved, which means just about no library would
10679 # ever link correctly. If we're not using GNU ld we use -z text
10680 # though, which does catch some bad symbols but isn't as heavy-handed
10681 # as -z defs.
10682 no_undefined_flag='${wl}-z,text'
10683 allow_undefined_flag='${wl}-z,nodefs'
10684 archive_cmds_need_lc=no
10685 hardcode_shlibpath_var=no
10686 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10687 hardcode_libdir_separator=':'
10688 link_all_deplibs=yes
10689 export_dynamic_flag_spec='${wl}-Bexport'
10690 runpath_var='LD_RUN_PATH'
10691
10692 if test "$GCC" = yes; then
10693 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10694 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10695 else
10696 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10697 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10698 fi
10699 ;;
10700
10701 uts4*)
10702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10703 hardcode_libdir_flag_spec='-L$libdir'
10704 hardcode_shlibpath_var=no
10705 ;;
10706
10707 *)
10708 ld_shlibs=no
10709 ;;
10710 esac
10711
10712 if test x$host_vendor = xsni; then
10713 case $host in
10714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10715 export_dynamic_flag_spec='${wl}-Blargedynsym'
10716 ;;
10717 esac
10718 fi
10719 fi
10720
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10722 $as_echo "$ld_shlibs" >&6; }
10723 test "$ld_shlibs" = no && can_build_shared=no
10724
10725 with_gnu_ld=$with_gnu_ld
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741 #
10742 # Do we need to explicitly link libc?
10743 #
10744 case "x$archive_cmds_need_lc" in
10745 x|xyes)
10746 # Assume -lc should be added
10747 archive_cmds_need_lc=yes
10748
10749 if test "$enable_shared" = yes && test "$GCC" = yes; then
10750 case $archive_cmds in
10751 *'~'*)
10752 # FIXME: we may have to deal with multi-command sequences.
10753 ;;
10754 '$CC '*)
10755 # Test whether the compiler implicitly links with -lc since on some
10756 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10757 # to ld, don't add -lc before -lgcc.
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10759 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10760 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10761 $as_echo_n "(cached) " >&6
10762 else
10763 $RM conftest*
10764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10765
10766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10767 (eval $ac_compile) 2>&5
10768 ac_status=$?
10769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10770 test $ac_status = 0; } 2>conftest.err; then
10771 soname=conftest
10772 lib=conftest
10773 libobjs=conftest.$ac_objext
10774 deplibs=
10775 wl=$lt_prog_compiler_wl
10776 pic_flag=$lt_prog_compiler_pic
10777 compiler_flags=-v
10778 linker_flags=-v
10779 verstring=
10780 output_objdir=.
10781 libname=conftest
10782 lt_save_allow_undefined_flag=$allow_undefined_flag
10783 allow_undefined_flag=
10784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10785 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10786 ac_status=$?
10787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10788 test $ac_status = 0; }
10789 then
10790 lt_cv_archive_cmds_need_lc=no
10791 else
10792 lt_cv_archive_cmds_need_lc=yes
10793 fi
10794 allow_undefined_flag=$lt_save_allow_undefined_flag
10795 else
10796 cat conftest.err 1>&5
10797 fi
10798 $RM conftest*
10799
10800 fi
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10802 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10803 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10804 ;;
10805 esac
10806 fi
10807 ;;
10808 esac
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10967 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10968
10969 if test "$GCC" = yes; then
10970 case $host_os in
10971 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10972 *) lt_awk_arg="/^libraries:/" ;;
10973 esac
10974 case $host_os in
10975 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10976 *) lt_sed_strip_eq="s,=/,/,g" ;;
10977 esac
10978 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10979 case $lt_search_path_spec in
10980 *\;*)
10981 # if the path contains ";" then we assume it to be the separator
10982 # otherwise default to the standard path separator (i.e. ":") - it is
10983 # assumed that no part of a normal pathname contains ";" but that should
10984 # okay in the real world where ";" in dirpaths is itself problematic.
10985 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10986 ;;
10987 *)
10988 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10989 ;;
10990 esac
10991 # Ok, now we have the path, separated by spaces, we can step through it
10992 # and add multilib dir if necessary.
10993 lt_tmp_lt_search_path_spec=
10994 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10995 for lt_sys_path in $lt_search_path_spec; do
10996 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10997 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10998 else
10999 test -d "$lt_sys_path" && \
11000 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11001 fi
11002 done
11003 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11004 BEGIN {RS=" "; FS="/|\n";} {
11005 lt_foo="";
11006 lt_count=0;
11007 for (lt_i = NF; lt_i > 0; lt_i--) {
11008 if ($lt_i != "" && $lt_i != ".") {
11009 if ($lt_i == "..") {
11010 lt_count++;
11011 } else {
11012 if (lt_count == 0) {
11013 lt_foo="/" $lt_i lt_foo;
11014 } else {
11015 lt_count--;
11016 }
11017 }
11018 }
11019 }
11020 if (lt_foo != "") { lt_freq[lt_foo]++; }
11021 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11022 }'`
11023 # AWK program above erroneously prepends '/' to C:/dos/paths
11024 # for these hosts.
11025 case $host_os in
11026 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11027 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11028 esac
11029 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11030 else
11031 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11032 fi
11033 library_names_spec=
11034 libname_spec='lib$name'
11035 soname_spec=
11036 shrext_cmds=".so"
11037 postinstall_cmds=
11038 postuninstall_cmds=
11039 finish_cmds=
11040 finish_eval=
11041 shlibpath_var=
11042 shlibpath_overrides_runpath=unknown
11043 version_type=none
11044 dynamic_linker="$host_os ld.so"
11045 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11046 need_lib_prefix=unknown
11047 hardcode_into_libs=no
11048
11049 # when you set need_version to no, make sure it does not cause -set_version
11050 # flags to be left without arguments
11051 need_version=unknown
11052
11053 case $host_os in
11054 aix3*)
11055 version_type=linux
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11057 shlibpath_var=LIBPATH
11058
11059 # AIX 3 has no versioning support, so we append a major version to the name.
11060 soname_spec='${libname}${release}${shared_ext}$major'
11061 ;;
11062
11063 aix[4-9]*)
11064 version_type=linux
11065 need_lib_prefix=no
11066 need_version=no
11067 hardcode_into_libs=yes
11068 if test "$host_cpu" = ia64; then
11069 # AIX 5 supports IA64
11070 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 else
11073 # With GCC up to 2.95.x, collect2 would create an import file
11074 # for dependence libraries. The import file would start with
11075 # the line `#! .'. This would cause the generated library to
11076 # depend on `.', always an invalid library. This was fixed in
11077 # development snapshots of GCC prior to 3.0.
11078 case $host_os in
11079 aix4 | aix4.[01] | aix4.[01].*)
11080 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11081 echo ' yes '
11082 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11083 :
11084 else
11085 can_build_shared=no
11086 fi
11087 ;;
11088 esac
11089 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11090 # soname into executable. Probably we can add versioning support to
11091 # collect2, so additional links can be useful in future.
11092 if test "$aix_use_runtimelinking" = yes; then
11093 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11094 # instead of lib<name>.a to let people know that these are not
11095 # typical AIX shared libraries.
11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11097 else
11098 # We preserve .a as extension for shared libraries through AIX4.2
11099 # and later when we are not doing run time linking.
11100 library_names_spec='${libname}${release}.a $libname.a'
11101 soname_spec='${libname}${release}${shared_ext}$major'
11102 fi
11103 shlibpath_var=LIBPATH
11104 fi
11105 ;;
11106
11107 amigaos*)
11108 case $host_cpu in
11109 powerpc)
11110 # Since July 2007 AmigaOS4 officially supports .so libraries.
11111 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113 ;;
11114 m68k)
11115 library_names_spec='$libname.ixlibrary $libname.a'
11116 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11117 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11118 ;;
11119 esac
11120 ;;
11121
11122 beos*)
11123 library_names_spec='${libname}${shared_ext}'
11124 dynamic_linker="$host_os ld.so"
11125 shlibpath_var=LIBRARY_PATH
11126 ;;
11127
11128 bsdi[45]*)
11129 version_type=linux
11130 need_version=no
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11137 # the default ld.so.conf also contains /usr/contrib/lib and
11138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11139 # libtool to hard-code these into programs
11140 ;;
11141
11142 cygwin* | mingw* | pw32* | cegcc*)
11143 version_type=windows
11144 shrext_cmds=".dll"
11145 need_version=no
11146 need_lib_prefix=no
11147
11148 case $GCC,$host_os in
11149 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11150 library_names_spec='$libname.dll.a'
11151 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11152 postinstall_cmds='base_file=`basename \${file}`~
11153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11154 dldir=$destdir/`dirname \$dlpath`~
11155 test -d \$dldir || mkdir -p \$dldir~
11156 $install_prog $dir/$dlname \$dldir/$dlname~
11157 chmod a+x \$dldir/$dlname~
11158 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11159 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11160 fi'
11161 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11162 dlpath=$dir/\$dldll~
11163 $RM \$dlpath'
11164 shlibpath_overrides_runpath=yes
11165
11166 case $host_os in
11167 cygwin*)
11168 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11169 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11170
11171 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11172 ;;
11173 mingw* | cegcc*)
11174 # MinGW DLLs use traditional 'lib' prefix
11175 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11176 ;;
11177 pw32*)
11178 # pw32 DLLs use 'pw' prefix rather than 'lib'
11179 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11180 ;;
11181 esac
11182 ;;
11183
11184 *)
11185 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11186 ;;
11187 esac
11188 dynamic_linker='Win32 ld.exe'
11189 # FIXME: first we should search . and the directory the executable is in
11190 shlibpath_var=PATH
11191 ;;
11192
11193 darwin* | rhapsody*)
11194 dynamic_linker="$host_os dyld"
11195 version_type=darwin
11196 need_lib_prefix=no
11197 need_version=no
11198 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11199 soname_spec='${libname}${release}${major}$shared_ext'
11200 shlibpath_overrides_runpath=yes
11201 shlibpath_var=DYLD_LIBRARY_PATH
11202 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11203
11204 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11205 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11206 ;;
11207
11208 dgux*)
11209 version_type=linux
11210 need_lib_prefix=no
11211 need_version=no
11212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11213 soname_spec='${libname}${release}${shared_ext}$major'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 ;;
11216
11217 freebsd* | dragonfly*)
11218 # DragonFly does not have aout. When/if they implement a new
11219 # versioning mechanism, adjust this.
11220 if test -x /usr/bin/objformat; then
11221 objformat=`/usr/bin/objformat`
11222 else
11223 case $host_os in
11224 freebsd[23].*) objformat=aout ;;
11225 *) objformat=elf ;;
11226 esac
11227 fi
11228 version_type=freebsd-$objformat
11229 case $version_type in
11230 freebsd-elf*)
11231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11232 need_version=no
11233 need_lib_prefix=no
11234 ;;
11235 freebsd-*)
11236 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11237 need_version=yes
11238 ;;
11239 esac
11240 shlibpath_var=LD_LIBRARY_PATH
11241 case $host_os in
11242 freebsd2.*)
11243 shlibpath_overrides_runpath=yes
11244 ;;
11245 freebsd3.[01]* | freebsdelf3.[01]*)
11246 shlibpath_overrides_runpath=yes
11247 hardcode_into_libs=yes
11248 ;;
11249 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11250 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11251 shlibpath_overrides_runpath=no
11252 hardcode_into_libs=yes
11253 ;;
11254 *) # from 4.6 on, and DragonFly
11255 shlibpath_overrides_runpath=yes
11256 hardcode_into_libs=yes
11257 ;;
11258 esac
11259 ;;
11260
11261 haiku*)
11262 version_type=linux
11263 need_lib_prefix=no
11264 need_version=no
11265 dynamic_linker="$host_os runtime_loader"
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 shlibpath_var=LIBRARY_PATH
11269 shlibpath_overrides_runpath=yes
11270 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11271 hardcode_into_libs=yes
11272 ;;
11273
11274 hpux9* | hpux10* | hpux11*)
11275 # Give a soname corresponding to the major version so that dld.sl refuses to
11276 # link against other versions.
11277 version_type=sunos
11278 need_lib_prefix=no
11279 need_version=no
11280 case $host_cpu in
11281 ia64*)
11282 shrext_cmds='.so'
11283 hardcode_into_libs=yes
11284 dynamic_linker="$host_os dld.so"
11285 shlibpath_var=LD_LIBRARY_PATH
11286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11288 soname_spec='${libname}${release}${shared_ext}$major'
11289 if test "X$HPUX_IA64_MODE" = X32; then
11290 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11291 else
11292 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11293 fi
11294 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11295 ;;
11296 hppa*64*)
11297 shrext_cmds='.sl'
11298 hardcode_into_libs=yes
11299 dynamic_linker="$host_os dld.sl"
11300 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303 soname_spec='${libname}${release}${shared_ext}$major'
11304 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11306 ;;
11307 *)
11308 shrext_cmds='.sl'
11309 dynamic_linker="$host_os dld.sl"
11310 shlibpath_var=SHLIB_PATH
11311 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11313 soname_spec='${libname}${release}${shared_ext}$major'
11314 ;;
11315 esac
11316 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11317 postinstall_cmds='chmod 555 $lib'
11318 # or fails outright, so override atomically:
11319 install_override_mode=555
11320 ;;
11321
11322 interix[3-9]*)
11323 version_type=linux
11324 need_lib_prefix=no
11325 need_version=no
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11327 soname_spec='${libname}${release}${shared_ext}$major'
11328 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11329 shlibpath_var=LD_LIBRARY_PATH
11330 shlibpath_overrides_runpath=no
11331 hardcode_into_libs=yes
11332 ;;
11333
11334 irix5* | irix6* | nonstopux*)
11335 case $host_os in
11336 nonstopux*) version_type=nonstopux ;;
11337 *)
11338 if test "$lt_cv_prog_gnu_ld" = yes; then
11339 version_type=linux
11340 else
11341 version_type=irix
11342 fi ;;
11343 esac
11344 need_lib_prefix=no
11345 need_version=no
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11348 case $host_os in
11349 irix5* | nonstopux*)
11350 libsuff= shlibsuff=
11351 ;;
11352 *)
11353 case $LD in # libtool.m4 will add one of these switches to LD
11354 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11355 libsuff= shlibsuff= libmagic=32-bit;;
11356 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11357 libsuff=32 shlibsuff=N32 libmagic=N32;;
11358 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11359 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11360 *) libsuff= shlibsuff= libmagic=never-match;;
11361 esac
11362 ;;
11363 esac
11364 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11365 shlibpath_overrides_runpath=no
11366 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11367 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11368 hardcode_into_libs=yes
11369 ;;
11370
11371 # No shared lib support for Linux oldld, aout, or coff.
11372 linux*oldld* | linux*aout* | linux*coff*)
11373 dynamic_linker=no
11374 ;;
11375
11376 # This must be Linux ELF.
11377 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11378 version_type=linux
11379 need_lib_prefix=no
11380 need_version=no
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 soname_spec='${libname}${release}${shared_ext}$major'
11383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11384 shlibpath_var=LD_LIBRARY_PATH
11385 shlibpath_overrides_runpath=no
11386
11387 # Some binutils ld are patched to set DT_RUNPATH
11388 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11389 $as_echo_n "(cached) " >&6
11390 else
11391 lt_cv_shlibpath_overrides_runpath=no
11392 save_LDFLAGS=$LDFLAGS
11393 save_libdir=$libdir
11394 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11395 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11398
11399 int
11400 main ()
11401 {
11402
11403 ;
11404 return 0;
11405 }
11406 _ACEOF
11407 if ac_fn_c_try_link "$LINENO"; then :
11408 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11409 lt_cv_shlibpath_overrides_runpath=yes
11410 fi
11411 fi
11412 rm -f core conftest.err conftest.$ac_objext \
11413 conftest$ac_exeext conftest.$ac_ext
11414 LDFLAGS=$save_LDFLAGS
11415 libdir=$save_libdir
11416
11417 fi
11418
11419 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11420
11421 # This implies no fast_install, which is unacceptable.
11422 # Some rework will be needed to allow for fast_install
11423 # before this can be enabled.
11424 hardcode_into_libs=yes
11425
11426 # Append ld.so.conf contents to the search path
11427 if test -f /etc/ld.so.conf; then
11428 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;s/"//g;/^$/d' | tr '\n' ' '`
11429 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11430 fi
11431
11432 # We used to test for /lib/ld.so.1 and disable shared libraries on
11433 # powerpc, because MkLinux only supported shared libraries with the
11434 # GNU dynamic linker. Since this was broken with cross compilers,
11435 # most powerpc-linux boxes support dynamic linking these days and
11436 # people can always --disable-shared, the test was removed, and we
11437 # assume the GNU/Linux dynamic linker is in use.
11438 dynamic_linker='GNU/Linux ld.so'
11439 ;;
11440
11441 netbsd*)
11442 version_type=sunos
11443 need_lib_prefix=no
11444 need_version=no
11445 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11448 dynamic_linker='NetBSD (a.out) ld.so'
11449 else
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 dynamic_linker='NetBSD ld.elf_so'
11453 fi
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=yes
11456 hardcode_into_libs=yes
11457 ;;
11458
11459 newsos6)
11460 version_type=linux
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 shlibpath_overrides_runpath=yes
11464 ;;
11465
11466 *nto* | *qnx*)
11467 version_type=qnx
11468 need_lib_prefix=no
11469 need_version=no
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 shlibpath_overrides_runpath=no
11474 hardcode_into_libs=yes
11475 dynamic_linker='ldqnx.so'
11476 ;;
11477
11478 openbsd*)
11479 version_type=sunos
11480 sys_lib_dlsearch_path_spec="/usr/lib"
11481 need_lib_prefix=no
11482 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11483 case $host_os in
11484 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11485 *) need_version=no ;;
11486 esac
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11489 shlibpath_var=LD_LIBRARY_PATH
11490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11491 case $host_os in
11492 openbsd2.[89] | openbsd2.[89].*)
11493 shlibpath_overrides_runpath=no
11494 ;;
11495 *)
11496 shlibpath_overrides_runpath=yes
11497 ;;
11498 esac
11499 else
11500 shlibpath_overrides_runpath=yes
11501 fi
11502 ;;
11503
11504 os2*)
11505 libname_spec='$name'
11506 shrext_cmds=".dll"
11507 need_lib_prefix=no
11508 library_names_spec='$libname${shared_ext} $libname.a'
11509 dynamic_linker='OS/2 ld.exe'
11510 shlibpath_var=LIBPATH
11511 ;;
11512
11513 osf3* | osf4* | osf5*)
11514 version_type=osf
11515 need_lib_prefix=no
11516 need_version=no
11517 soname_spec='${libname}${release}${shared_ext}$major'
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11519 shlibpath_var=LD_LIBRARY_PATH
11520 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11521 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11522 ;;
11523
11524 rdos*)
11525 dynamic_linker=no
11526 ;;
11527
11528 solaris*)
11529 version_type=linux
11530 need_lib_prefix=no
11531 need_version=no
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 shlibpath_var=LD_LIBRARY_PATH
11535 shlibpath_overrides_runpath=yes
11536 hardcode_into_libs=yes
11537 # ldd complains unless libraries are executable
11538 postinstall_cmds='chmod +x $lib'
11539 ;;
11540
11541 sunos4*)
11542 version_type=sunos
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11544 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 shlibpath_overrides_runpath=yes
11547 if test "$with_gnu_ld" = yes; then
11548 need_lib_prefix=no
11549 fi
11550 need_version=yes
11551 ;;
11552
11553 sysv4 | sysv4.3*)
11554 version_type=linux
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 shlibpath_var=LD_LIBRARY_PATH
11558 case $host_vendor in
11559 sni)
11560 shlibpath_overrides_runpath=no
11561 need_lib_prefix=no
11562 runpath_var=LD_RUN_PATH
11563 ;;
11564 siemens)
11565 need_lib_prefix=no
11566 ;;
11567 motorola)
11568 need_lib_prefix=no
11569 need_version=no
11570 shlibpath_overrides_runpath=no
11571 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11572 ;;
11573 esac
11574 ;;
11575
11576 sysv4*MP*)
11577 if test -d /usr/nec ;then
11578 version_type=linux
11579 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11580 soname_spec='$libname${shared_ext}.$major'
11581 shlibpath_var=LD_LIBRARY_PATH
11582 fi
11583 ;;
11584
11585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11586 version_type=freebsd-elf
11587 need_lib_prefix=no
11588 need_version=no
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 shlibpath_overrides_runpath=yes
11593 hardcode_into_libs=yes
11594 if test "$with_gnu_ld" = yes; then
11595 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11596 else
11597 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11598 case $host_os in
11599 sco3.2v5*)
11600 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11601 ;;
11602 esac
11603 fi
11604 sys_lib_dlsearch_path_spec='/usr/lib'
11605 ;;
11606
11607 tpf*)
11608 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11609 version_type=linux
11610 need_lib_prefix=no
11611 need_version=no
11612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613 shlibpath_var=LD_LIBRARY_PATH
11614 shlibpath_overrides_runpath=no
11615 hardcode_into_libs=yes
11616 ;;
11617
11618 uts4*)
11619 version_type=linux
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621 soname_spec='${libname}${release}${shared_ext}$major'
11622 shlibpath_var=LD_LIBRARY_PATH
11623 ;;
11624
11625 *)
11626 dynamic_linker=no
11627 ;;
11628 esac
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11630 $as_echo "$dynamic_linker" >&6; }
11631 test "$dynamic_linker" = no && can_build_shared=no
11632
11633 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11634 if test "$GCC" = yes; then
11635 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11636 fi
11637
11638 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11639 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11640 fi
11641 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11642 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11643 fi
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11737 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11738 hardcode_action=
11739 if test -n "$hardcode_libdir_flag_spec" ||
11740 test -n "$runpath_var" ||
11741 test "X$hardcode_automatic" = "Xyes" ; then
11742
11743 # We can hardcode non-existent directories.
11744 if test "$hardcode_direct" != no &&
11745 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11746 # have to relink, otherwise we might link with an installed library
11747 # when we should be linking with a yet-to-be-installed one
11748 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11749 test "$hardcode_minus_L" != no; then
11750 # Linking always hardcodes the temporary library directory.
11751 hardcode_action=relink
11752 else
11753 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11754 hardcode_action=immediate
11755 fi
11756 else
11757 # We cannot hardcode anything, or else we can only hardcode existing
11758 # directories.
11759 hardcode_action=unsupported
11760 fi
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11762 $as_echo "$hardcode_action" >&6; }
11763
11764 if test "$hardcode_action" = relink ||
11765 test "$inherit_rpath" = yes; then
11766 # Fast installation is not supported
11767 enable_fast_install=no
11768 elif test "$shlibpath_overrides_runpath" = yes ||
11769 test "$enable_shared" = no; then
11770 # Fast installation is not necessary
11771 enable_fast_install=needless
11772 fi
11773
11774
11775
11776
11777
11778
11779 if test "x$enable_dlopen" != xyes; then
11780 enable_dlopen=unknown
11781 enable_dlopen_self=unknown
11782 enable_dlopen_self_static=unknown
11783 else
11784 lt_cv_dlopen=no
11785 lt_cv_dlopen_libs=
11786
11787 case $host_os in
11788 beos*)
11789 lt_cv_dlopen="load_add_on"
11790 lt_cv_dlopen_libs=
11791 lt_cv_dlopen_self=yes
11792 ;;
11793
11794 mingw* | pw32* | cegcc*)
11795 lt_cv_dlopen="LoadLibrary"
11796 lt_cv_dlopen_libs=
11797 ;;
11798
11799 cygwin*)
11800 lt_cv_dlopen="dlopen"
11801 lt_cv_dlopen_libs=
11802 ;;
11803
11804 darwin*)
11805 # if libdl is installed we need to link against it
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11807 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11808 if ${ac_cv_lib_dl_dlopen+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811 ac_check_lib_save_LIBS=$LIBS
11812 LIBS="-ldl $LIBS"
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814 /* end confdefs.h. */
11815
11816 /* Override any GCC internal prototype to avoid an error.
11817 Use char because int might match the return type of a GCC
11818 builtin and then its argument prototype would still apply. */
11819 #ifdef __cplusplus
11820 extern "C"
11821 #endif
11822 char dlopen ();
11823 int
11824 main ()
11825 {
11826 return dlopen ();
11827 ;
11828 return 0;
11829 }
11830 _ACEOF
11831 if ac_fn_c_try_link "$LINENO"; then :
11832 ac_cv_lib_dl_dlopen=yes
11833 else
11834 ac_cv_lib_dl_dlopen=no
11835 fi
11836 rm -f core conftest.err conftest.$ac_objext \
11837 conftest$ac_exeext conftest.$ac_ext
11838 LIBS=$ac_check_lib_save_LIBS
11839 fi
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11841 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11842 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11843 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11844 else
11845
11846 lt_cv_dlopen="dyld"
11847 lt_cv_dlopen_libs=
11848 lt_cv_dlopen_self=yes
11849
11850 fi
11851
11852 ;;
11853
11854 *)
11855 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11856 if test "x$ac_cv_func_shl_load" = xyes; then :
11857 lt_cv_dlopen="shl_load"
11858 else
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11860 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11861 if ${ac_cv_lib_dld_shl_load+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 ac_check_lib_save_LIBS=$LIBS
11865 LIBS="-ldld $LIBS"
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11868
11869 /* Override any GCC internal prototype to avoid an error.
11870 Use char because int might match the return type of a GCC
11871 builtin and then its argument prototype would still apply. */
11872 #ifdef __cplusplus
11873 extern "C"
11874 #endif
11875 char shl_load ();
11876 int
11877 main ()
11878 {
11879 return shl_load ();
11880 ;
11881 return 0;
11882 }
11883 _ACEOF
11884 if ac_fn_c_try_link "$LINENO"; then :
11885 ac_cv_lib_dld_shl_load=yes
11886 else
11887 ac_cv_lib_dld_shl_load=no
11888 fi
11889 rm -f core conftest.err conftest.$ac_objext \
11890 conftest$ac_exeext conftest.$ac_ext
11891 LIBS=$ac_check_lib_save_LIBS
11892 fi
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11894 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11895 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11896 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11897 else
11898 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11899 if test "x$ac_cv_func_dlopen" = xyes; then :
11900 lt_cv_dlopen="dlopen"
11901 else
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11903 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11904 if ${ac_cv_lib_dl_dlopen+:} false; then :
11905 $as_echo_n "(cached) " >&6
11906 else
11907 ac_check_lib_save_LIBS=$LIBS
11908 LIBS="-ldl $LIBS"
11909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11911
11912 /* Override any GCC internal prototype to avoid an error.
11913 Use char because int might match the return type of a GCC
11914 builtin and then its argument prototype would still apply. */
11915 #ifdef __cplusplus
11916 extern "C"
11917 #endif
11918 char dlopen ();
11919 int
11920 main ()
11921 {
11922 return dlopen ();
11923 ;
11924 return 0;
11925 }
11926 _ACEOF
11927 if ac_fn_c_try_link "$LINENO"; then :
11928 ac_cv_lib_dl_dlopen=yes
11929 else
11930 ac_cv_lib_dl_dlopen=no
11931 fi
11932 rm -f core conftest.err conftest.$ac_objext \
11933 conftest$ac_exeext conftest.$ac_ext
11934 LIBS=$ac_check_lib_save_LIBS
11935 fi
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11937 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11938 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11939 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11940 else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11942 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11943 if ${ac_cv_lib_svld_dlopen+:} false; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 ac_check_lib_save_LIBS=$LIBS
11947 LIBS="-lsvld $LIBS"
11948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11949 /* end confdefs.h. */
11950
11951 /* Override any GCC internal prototype to avoid an error.
11952 Use char because int might match the return type of a GCC
11953 builtin and then its argument prototype would still apply. */
11954 #ifdef __cplusplus
11955 extern "C"
11956 #endif
11957 char dlopen ();
11958 int
11959 main ()
11960 {
11961 return dlopen ();
11962 ;
11963 return 0;
11964 }
11965 _ACEOF
11966 if ac_fn_c_try_link "$LINENO"; then :
11967 ac_cv_lib_svld_dlopen=yes
11968 else
11969 ac_cv_lib_svld_dlopen=no
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext conftest.$ac_ext
11973 LIBS=$ac_check_lib_save_LIBS
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11976 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11977 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11978 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11979 else
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11981 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11982 if ${ac_cv_lib_dld_dld_link+:} false; then :
11983 $as_echo_n "(cached) " >&6
11984 else
11985 ac_check_lib_save_LIBS=$LIBS
11986 LIBS="-ldld $LIBS"
11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11989
11990 /* Override any GCC internal prototype to avoid an error.
11991 Use char because int might match the return type of a GCC
11992 builtin and then its argument prototype would still apply. */
11993 #ifdef __cplusplus
11994 extern "C"
11995 #endif
11996 char dld_link ();
11997 int
11998 main ()
11999 {
12000 return dld_link ();
12001 ;
12002 return 0;
12003 }
12004 _ACEOF
12005 if ac_fn_c_try_link "$LINENO"; then :
12006 ac_cv_lib_dld_dld_link=yes
12007 else
12008 ac_cv_lib_dld_dld_link=no
12009 fi
12010 rm -f core conftest.err conftest.$ac_objext \
12011 conftest$ac_exeext conftest.$ac_ext
12012 LIBS=$ac_check_lib_save_LIBS
12013 fi
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12015 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12016 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12017 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12018 fi
12019
12020
12021 fi
12022
12023
12024 fi
12025
12026
12027 fi
12028
12029
12030 fi
12031
12032
12033 fi
12034
12035 ;;
12036 esac
12037
12038 if test "x$lt_cv_dlopen" != xno; then
12039 enable_dlopen=yes
12040 else
12041 enable_dlopen=no
12042 fi
12043
12044 case $lt_cv_dlopen in
12045 dlopen)
12046 save_CPPFLAGS="$CPPFLAGS"
12047 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12048
12049 save_LDFLAGS="$LDFLAGS"
12050 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12051
12052 save_LIBS="$LIBS"
12053 LIBS="$lt_cv_dlopen_libs $LIBS"
12054
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12056 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12057 if ${lt_cv_dlopen_self+:} false; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 if test "$cross_compiling" = yes; then :
12061 lt_cv_dlopen_self=cross
12062 else
12063 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12064 lt_status=$lt_dlunknown
12065 cat > conftest.$ac_ext <<_LT_EOF
12066 #line 12066 "configure"
12067 #include "confdefs.h"
12068
12069 #if HAVE_DLFCN_H
12070 #include <dlfcn.h>
12071 #endif
12072
12073 #include <stdio.h>
12074
12075 #ifdef RTLD_GLOBAL
12076 # define LT_DLGLOBAL RTLD_GLOBAL
12077 #else
12078 # ifdef DL_GLOBAL
12079 # define LT_DLGLOBAL DL_GLOBAL
12080 # else
12081 # define LT_DLGLOBAL 0
12082 # endif
12083 #endif
12084
12085 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12086 find out it does not work in some platform. */
12087 #ifndef LT_DLLAZY_OR_NOW
12088 # ifdef RTLD_LAZY
12089 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12090 # else
12091 # ifdef DL_LAZY
12092 # define LT_DLLAZY_OR_NOW DL_LAZY
12093 # else
12094 # ifdef RTLD_NOW
12095 # define LT_DLLAZY_OR_NOW RTLD_NOW
12096 # else
12097 # ifdef DL_NOW
12098 # define LT_DLLAZY_OR_NOW DL_NOW
12099 # else
12100 # define LT_DLLAZY_OR_NOW 0
12101 # endif
12102 # endif
12103 # endif
12104 # endif
12105 #endif
12106
12107 /* When -fvisbility=hidden is used, assume the code has been annotated
12108 correspondingly for the symbols needed. */
12109 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12110 void fnord () __attribute__((visibility("default")));
12111 #endif
12112
12113 void fnord () { int i=42; }
12114 int main ()
12115 {
12116 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12117 int status = $lt_dlunknown;
12118
12119 if (self)
12120 {
12121 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12122 else
12123 {
12124 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12125 else puts (dlerror ());
12126 }
12127 /* dlclose (self); */
12128 }
12129 else
12130 puts (dlerror ());
12131
12132 return status;
12133 }
12134 _LT_EOF
12135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12136 (eval $ac_link) 2>&5
12137 ac_status=$?
12138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12139 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12140 (./conftest; exit; ) >&5 2>/dev/null
12141 lt_status=$?
12142 case x$lt_status in
12143 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12144 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12145 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12146 esac
12147 else :
12148 # compilation failed
12149 lt_cv_dlopen_self=no
12150 fi
12151 fi
12152 rm -fr conftest*
12153
12154
12155 fi
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12157 $as_echo "$lt_cv_dlopen_self" >&6; }
12158
12159 if test "x$lt_cv_dlopen_self" = xyes; then
12160 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12162 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12163 if ${lt_cv_dlopen_self_static+:} false; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 if test "$cross_compiling" = yes; then :
12167 lt_cv_dlopen_self_static=cross
12168 else
12169 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12170 lt_status=$lt_dlunknown
12171 cat > conftest.$ac_ext <<_LT_EOF
12172 #line 12172 "configure"
12173 #include "confdefs.h"
12174
12175 #if HAVE_DLFCN_H
12176 #include <dlfcn.h>
12177 #endif
12178
12179 #include <stdio.h>
12180
12181 #ifdef RTLD_GLOBAL
12182 # define LT_DLGLOBAL RTLD_GLOBAL
12183 #else
12184 # ifdef DL_GLOBAL
12185 # define LT_DLGLOBAL DL_GLOBAL
12186 # else
12187 # define LT_DLGLOBAL 0
12188 # endif
12189 #endif
12190
12191 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12192 find out it does not work in some platform. */
12193 #ifndef LT_DLLAZY_OR_NOW
12194 # ifdef RTLD_LAZY
12195 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12196 # else
12197 # ifdef DL_LAZY
12198 # define LT_DLLAZY_OR_NOW DL_LAZY
12199 # else
12200 # ifdef RTLD_NOW
12201 # define LT_DLLAZY_OR_NOW RTLD_NOW
12202 # else
12203 # ifdef DL_NOW
12204 # define LT_DLLAZY_OR_NOW DL_NOW
12205 # else
12206 # define LT_DLLAZY_OR_NOW 0
12207 # endif
12208 # endif
12209 # endif
12210 # endif
12211 #endif
12212
12213 /* When -fvisbility=hidden is used, assume the code has been annotated
12214 correspondingly for the symbols needed. */
12215 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12216 void fnord () __attribute__((visibility("default")));
12217 #endif
12218
12219 void fnord () { int i=42; }
12220 int main ()
12221 {
12222 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12223 int status = $lt_dlunknown;
12224
12225 if (self)
12226 {
12227 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12228 else
12229 {
12230 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12231 else puts (dlerror ());
12232 }
12233 /* dlclose (self); */
12234 }
12235 else
12236 puts (dlerror ());
12237
12238 return status;
12239 }
12240 _LT_EOF
12241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12242 (eval $ac_link) 2>&5
12243 ac_status=$?
12244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12245 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12246 (./conftest; exit; ) >&5 2>/dev/null
12247 lt_status=$?
12248 case x$lt_status in
12249 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12250 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12251 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12252 esac
12253 else :
12254 # compilation failed
12255 lt_cv_dlopen_self_static=no
12256 fi
12257 fi
12258 rm -fr conftest*
12259
12260
12261 fi
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12263 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12264 fi
12265
12266 CPPFLAGS="$save_CPPFLAGS"
12267 LDFLAGS="$save_LDFLAGS"
12268 LIBS="$save_LIBS"
12269 ;;
12270 esac
12271
12272 case $lt_cv_dlopen_self in
12273 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12274 *) enable_dlopen_self=unknown ;;
12275 esac
12276
12277 case $lt_cv_dlopen_self_static in
12278 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12279 *) enable_dlopen_self_static=unknown ;;
12280 esac
12281 fi
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299 striplib=
12300 old_striplib=
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12302 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12303 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12304 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12305 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12307 $as_echo "yes" >&6; }
12308 else
12309 # FIXME - insert some real tests, host_os isn't really good enough
12310 case $host_os in
12311 darwin*)
12312 if test -n "$STRIP" ; then
12313 striplib="$STRIP -x"
12314 old_striplib="$STRIP -S"
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12316 $as_echo "yes" >&6; }
12317 else
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319 $as_echo "no" >&6; }
12320 fi
12321 ;;
12322 *)
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12325 ;;
12326 esac
12327 fi
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340 # Report which library types will actually be built
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12342 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12344 $as_echo "$can_build_shared" >&6; }
12345
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12347 $as_echo_n "checking whether to build shared libraries... " >&6; }
12348 test "$can_build_shared" = "no" && enable_shared=no
12349
12350 # On AIX, shared libraries and static libraries use the same namespace, and
12351 # are all built from PIC.
12352 case $host_os in
12353 aix3*)
12354 test "$enable_shared" = yes && enable_static=no
12355 if test -n "$RANLIB"; then
12356 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12357 postinstall_cmds='$RANLIB $lib'
12358 fi
12359 ;;
12360
12361 aix[4-9]*)
12362 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12363 test "$enable_shared" = yes && enable_static=no
12364 fi
12365 ;;
12366 esac
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12368 $as_echo "$enable_shared" >&6; }
12369
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12371 $as_echo_n "checking whether to build static libraries... " >&6; }
12372 # Make sure either enable_shared or enable_static is yes.
12373 test "$enable_shared" = yes || enable_static=yes
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12375 $as_echo "$enable_static" >&6; }
12376
12377
12378
12379
12380 fi
12381 ac_ext=c
12382 ac_cpp='$CPP $CPPFLAGS'
12383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12386
12387 CC="$lt_save_CC"
12388
12389 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12390 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12391 (test "X$CXX" != "Xg++"))) ; then
12392 ac_ext=cpp
12393 ac_cpp='$CXXCPP $CPPFLAGS'
12394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12398 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12399 if test -z "$CXXCPP"; then
12400 if ${ac_cv_prog_CXXCPP+:} false; then :
12401 $as_echo_n "(cached) " >&6
12402 else
12403 # Double quotes because CXXCPP needs to be expanded
12404 for CXXCPP in "$CXX -E" "/lib/cpp"
12405 do
12406 ac_preproc_ok=false
12407 for ac_cxx_preproc_warn_flag in '' yes
12408 do
12409 # Use a header file that comes with gcc, so configuring glibc
12410 # with a fresh cross-compiler works.
12411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12412 # <limits.h> exists even on freestanding compilers.
12413 # On the NeXT, cc -E runs the code through the compiler's parser,
12414 # not just through cpp. "Syntax error" is here to catch this case.
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12417 #ifdef __STDC__
12418 # include <limits.h>
12419 #else
12420 # include <assert.h>
12421 #endif
12422 Syntax error
12423 _ACEOF
12424 if ac_fn_cxx_try_cpp "$LINENO"; then :
12425
12426 else
12427 # Broken: fails on valid input.
12428 continue
12429 fi
12430 rm -f conftest.err conftest.i conftest.$ac_ext
12431
12432 # OK, works on sane cases. Now check whether nonexistent headers
12433 # can be detected and how.
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12436 #include <ac_nonexistent.h>
12437 _ACEOF
12438 if ac_fn_cxx_try_cpp "$LINENO"; then :
12439 # Broken: success on invalid input.
12440 continue
12441 else
12442 # Passes both tests.
12443 ac_preproc_ok=:
12444 break
12445 fi
12446 rm -f conftest.err conftest.i conftest.$ac_ext
12447
12448 done
12449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12450 rm -f conftest.i conftest.err conftest.$ac_ext
12451 if $ac_preproc_ok; then :
12452 break
12453 fi
12454
12455 done
12456 ac_cv_prog_CXXCPP=$CXXCPP
12457
12458 fi
12459 CXXCPP=$ac_cv_prog_CXXCPP
12460 else
12461 ac_cv_prog_CXXCPP=$CXXCPP
12462 fi
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12464 $as_echo "$CXXCPP" >&6; }
12465 ac_preproc_ok=false
12466 for ac_cxx_preproc_warn_flag in '' yes
12467 do
12468 # Use a header file that comes with gcc, so configuring glibc
12469 # with a fresh cross-compiler works.
12470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12471 # <limits.h> exists even on freestanding compilers.
12472 # On the NeXT, cc -E runs the code through the compiler's parser,
12473 # not just through cpp. "Syntax error" is here to catch this case.
12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h. */
12476 #ifdef __STDC__
12477 # include <limits.h>
12478 #else
12479 # include <assert.h>
12480 #endif
12481 Syntax error
12482 _ACEOF
12483 if ac_fn_cxx_try_cpp "$LINENO"; then :
12484
12485 else
12486 # Broken: fails on valid input.
12487 continue
12488 fi
12489 rm -f conftest.err conftest.i conftest.$ac_ext
12490
12491 # OK, works on sane cases. Now check whether nonexistent headers
12492 # can be detected and how.
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495 #include <ac_nonexistent.h>
12496 _ACEOF
12497 if ac_fn_cxx_try_cpp "$LINENO"; then :
12498 # Broken: success on invalid input.
12499 continue
12500 else
12501 # Passes both tests.
12502 ac_preproc_ok=:
12503 break
12504 fi
12505 rm -f conftest.err conftest.i conftest.$ac_ext
12506
12507 done
12508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12509 rm -f conftest.i conftest.err conftest.$ac_ext
12510 if $ac_preproc_ok; then :
12511
12512 else
12513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12515 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12516 See \`config.log' for more details" "$LINENO" 5; }
12517 fi
12518
12519 ac_ext=c
12520 ac_cpp='$CPP $CPPFLAGS'
12521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12524
12525 else
12526 _lt_caught_CXX_error=yes
12527 fi
12528
12529 ac_ext=cpp
12530 ac_cpp='$CXXCPP $CPPFLAGS'
12531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12534
12535 archive_cmds_need_lc_CXX=no
12536 allow_undefined_flag_CXX=
12537 always_export_symbols_CXX=no
12538 archive_expsym_cmds_CXX=
12539 compiler_needs_object_CXX=no
12540 export_dynamic_flag_spec_CXX=
12541 hardcode_direct_CXX=no
12542 hardcode_direct_absolute_CXX=no
12543 hardcode_libdir_flag_spec_CXX=
12544 hardcode_libdir_flag_spec_ld_CXX=
12545 hardcode_libdir_separator_CXX=
12546 hardcode_minus_L_CXX=no
12547 hardcode_shlibpath_var_CXX=unsupported
12548 hardcode_automatic_CXX=no
12549 inherit_rpath_CXX=no
12550 module_cmds_CXX=
12551 module_expsym_cmds_CXX=
12552 link_all_deplibs_CXX=unknown
12553 old_archive_cmds_CXX=$old_archive_cmds
12554 reload_flag_CXX=$reload_flag
12555 reload_cmds_CXX=$reload_cmds
12556 no_undefined_flag_CXX=
12557 whole_archive_flag_spec_CXX=
12558 enable_shared_with_static_runtimes_CXX=no
12559
12560 # Source file extension for C++ test sources.
12561 ac_ext=cpp
12562
12563 # Object file extension for compiled C++ test sources.
12564 objext=o
12565 objext_CXX=$objext
12566
12567 # No sense in running all these tests if we already determined that
12568 # the CXX compiler isn't working. Some variables (like enable_shared)
12569 # are currently assumed to apply to all compilers on this platform,
12570 # and will be corrupted by setting them based on a non-working compiler.
12571 if test "$_lt_caught_CXX_error" != yes; then
12572 # Code to be used in simple compile tests
12573 lt_simple_compile_test_code="int some_variable = 0;"
12574
12575 # Code to be used in simple link tests
12576 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12577
12578 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12579
12580
12581
12582
12583
12584
12585 # If no C compiler was specified, use CC.
12586 LTCC=${LTCC-"$CC"}
12587
12588 # If no C compiler flags were specified, use CFLAGS.
12589 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12590
12591 # Allow CC to be a program name with arguments.
12592 compiler=$CC
12593
12594
12595 # save warnings/boilerplate of simple test code
12596 ac_outfile=conftest.$ac_objext
12597 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12598 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12599 _lt_compiler_boilerplate=`cat conftest.err`
12600 $RM conftest*
12601
12602 ac_outfile=conftest.$ac_objext
12603 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12604 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12605 _lt_linker_boilerplate=`cat conftest.err`
12606 $RM -r conftest*
12607
12608
12609 # Allow CC to be a program name with arguments.
12610 lt_save_CC=$CC
12611 lt_save_LD=$LD
12612 lt_save_GCC=$GCC
12613 GCC=$GXX
12614 lt_save_with_gnu_ld=$with_gnu_ld
12615 lt_save_path_LD=$lt_cv_path_LD
12616 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12617 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12618 else
12619 $as_unset lt_cv_prog_gnu_ld
12620 fi
12621 if test -n "${lt_cv_path_LDCXX+set}"; then
12622 lt_cv_path_LD=$lt_cv_path_LDCXX
12623 else
12624 $as_unset lt_cv_path_LD
12625 fi
12626 test -z "${LDCXX+set}" || LD=$LDCXX
12627 CC=${CXX-"c++"}
12628 compiler=$CC
12629 compiler_CXX=$CC
12630 for cc_temp in $compiler""; do
12631 case $cc_temp in
12632 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12633 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12634 \-*) ;;
12635 *) break;;
12636 esac
12637 done
12638 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12639
12640
12641 if test -n "$compiler"; then
12642 # We don't want -fno-exception when compiling C++ code, so set the
12643 # no_builtin_flag separately
12644 if test "$GXX" = yes; then
12645 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12646 else
12647 lt_prog_compiler_no_builtin_flag_CXX=
12648 fi
12649
12650 if test "$GXX" = yes; then
12651 # Set up default GNU C++ configuration
12652
12653
12654
12655 # Check whether --with-gnu-ld was given.
12656 if test "${with_gnu_ld+set}" = set; then :
12657 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12658 else
12659 with_gnu_ld=no
12660 fi
12661
12662 ac_prog=ld
12663 if test "$GCC" = yes; then
12664 # Check if gcc -print-prog-name=ld gives a path.
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12666 $as_echo_n "checking for ld used by $CC... " >&6; }
12667 case $host in
12668 *-*-mingw*)
12669 # gcc leaves a trailing carriage return which upsets mingw
12670 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12671 *)
12672 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12673 esac
12674 case $ac_prog in
12675 # Accept absolute paths.
12676 [\\/]* | ?:[\\/]*)
12677 re_direlt='/[^/][^/]*/\.\./'
12678 # Canonicalize the pathname of ld
12679 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12680 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12681 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12682 done
12683 test -z "$LD" && LD="$ac_prog"
12684 ;;
12685 "")
12686 # If it fails, then pretend we aren't using GCC.
12687 ac_prog=ld
12688 ;;
12689 *)
12690 # If it is relative, then search for the first ld in PATH.
12691 with_gnu_ld=unknown
12692 ;;
12693 esac
12694 elif test "$with_gnu_ld" = yes; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12696 $as_echo_n "checking for GNU ld... " >&6; }
12697 else
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12699 $as_echo_n "checking for non-GNU ld... " >&6; }
12700 fi
12701 if ${lt_cv_path_LD+:} false; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 if test -z "$LD"; then
12705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12706 for ac_dir in $PATH; do
12707 IFS="$lt_save_ifs"
12708 test -z "$ac_dir" && ac_dir=.
12709 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12710 lt_cv_path_LD="$ac_dir/$ac_prog"
12711 # Check to see if the program is GNU ld. I'd rather use --version,
12712 # but apparently some variants of GNU ld only accept -v.
12713 # Break only if it was the GNU/non-GNU ld that we prefer.
12714 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12715 *GNU* | *'with BFD'*)
12716 test "$with_gnu_ld" != no && break
12717 ;;
12718 *)
12719 test "$with_gnu_ld" != yes && break
12720 ;;
12721 esac
12722 fi
12723 done
12724 IFS="$lt_save_ifs"
12725 else
12726 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12727 fi
12728 fi
12729
12730 LD="$lt_cv_path_LD"
12731 if test -n "$LD"; then
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12733 $as_echo "$LD" >&6; }
12734 else
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736 $as_echo "no" >&6; }
12737 fi
12738 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12740 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12741 if ${lt_cv_prog_gnu_ld+:} false; then :
12742 $as_echo_n "(cached) " >&6
12743 else
12744 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12745 case `$LD -v 2>&1 </dev/null` in
12746 *GNU* | *'with BFD'*)
12747 lt_cv_prog_gnu_ld=yes
12748 ;;
12749 *)
12750 lt_cv_prog_gnu_ld=no
12751 ;;
12752 esac
12753 fi
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12755 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12756 with_gnu_ld=$lt_cv_prog_gnu_ld
12757
12758
12759
12760
12761
12762
12763
12764 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12765 # archiving commands below assume that GNU ld is being used.
12766 if test "$with_gnu_ld" = yes; then
12767 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12768 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12769
12770 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12771 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12772
12773 # If archive_cmds runs LD, not CC, wlarc should be empty
12774 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12775 # investigate it a little bit more. (MM)
12776 wlarc='${wl}'
12777
12778 # ancient GNU ld didn't support --whole-archive et. al.
12779 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12780 $GREP 'no-whole-archive' > /dev/null; then
12781 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12782 else
12783 whole_archive_flag_spec_CXX=
12784 fi
12785 else
12786 with_gnu_ld=no
12787 wlarc=
12788
12789 # A generic and very simple default shared library creation
12790 # command for GNU C++ for the case where it uses the native
12791 # linker, instead of GNU ld. If possible, this setting should
12792 # overridden to take advantage of the native linker features on
12793 # the platform it is being used on.
12794 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12795 fi
12796
12797 # Commands to make compiler produce verbose output that lists
12798 # what "hidden" libraries, object files and flags are used when
12799 # linking a shared library.
12800 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12801
12802 else
12803 GXX=no
12804 with_gnu_ld=no
12805 wlarc=
12806 fi
12807
12808 # PORTME: fill in a description of your system's C++ link characteristics
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12810 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12811 ld_shlibs_CXX=yes
12812 case $host_os in
12813 aix3*)
12814 # FIXME: insert proper C++ library support
12815 ld_shlibs_CXX=no
12816 ;;
12817 aix[4-9]*)
12818 if test "$host_cpu" = ia64; then
12819 # On IA64, the linker does run time linking by default, so we don't
12820 # have to do anything special.
12821 aix_use_runtimelinking=no
12822 exp_sym_flag='-Bexport'
12823 no_entry_flag=""
12824 else
12825 aix_use_runtimelinking=no
12826
12827 # Test if we are trying to use run time linking or normal
12828 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12829 # need to do runtime linking.
12830 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12831 for ld_flag in $LDFLAGS; do
12832 case $ld_flag in
12833 *-brtl*)
12834 aix_use_runtimelinking=yes
12835 break
12836 ;;
12837 esac
12838 done
12839 ;;
12840 esac
12841
12842 exp_sym_flag='-bexport'
12843 no_entry_flag='-bnoentry'
12844 fi
12845
12846 # When large executables or shared objects are built, AIX ld can
12847 # have problems creating the table of contents. If linking a library
12848 # or program results in "error TOC overflow" add -mminimal-toc to
12849 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12850 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12851
12852 archive_cmds_CXX=''
12853 hardcode_direct_CXX=yes
12854 hardcode_direct_absolute_CXX=yes
12855 hardcode_libdir_separator_CXX=':'
12856 link_all_deplibs_CXX=yes
12857 file_list_spec_CXX='${wl}-f,'
12858
12859 if test "$GXX" = yes; then
12860 case $host_os in aix4.[012]|aix4.[012].*)
12861 # We only want to do this on AIX 4.2 and lower, the check
12862 # below for broken collect2 doesn't work under 4.3+
12863 collect2name=`${CC} -print-prog-name=collect2`
12864 if test -f "$collect2name" &&
12865 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12866 then
12867 # We have reworked collect2
12868 :
12869 else
12870 # We have old collect2
12871 hardcode_direct_CXX=unsupported
12872 # It fails to find uninstalled libraries when the uninstalled
12873 # path is not listed in the libpath. Setting hardcode_minus_L
12874 # to unsupported forces relinking
12875 hardcode_minus_L_CXX=yes
12876 hardcode_libdir_flag_spec_CXX='-L$libdir'
12877 hardcode_libdir_separator_CXX=
12878 fi
12879 esac
12880 shared_flag='-shared'
12881 if test "$aix_use_runtimelinking" = yes; then
12882 shared_flag="$shared_flag "'${wl}-G'
12883 fi
12884 else
12885 # not using gcc
12886 if test "$host_cpu" = ia64; then
12887 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12888 # chokes on -Wl,-G. The following line is correct:
12889 shared_flag='-G'
12890 else
12891 if test "$aix_use_runtimelinking" = yes; then
12892 shared_flag='${wl}-G'
12893 else
12894 shared_flag='${wl}-bM:SRE'
12895 fi
12896 fi
12897 fi
12898
12899 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12900 # It seems that -bexpall does not export symbols beginning with
12901 # underscore (_), so it is better to generate a list of symbols to
12902 # export.
12903 always_export_symbols_CXX=yes
12904 if test "$aix_use_runtimelinking" = yes; then
12905 # Warning - without using the other runtime loading flags (-brtl),
12906 # -berok will link without error, but may produce a broken library.
12907 allow_undefined_flag_CXX='-berok'
12908 # Determine the default libpath from the value encoded in an empty
12909 # executable.
12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h. */
12912
12913 int
12914 main ()
12915 {
12916
12917 ;
12918 return 0;
12919 }
12920 _ACEOF
12921 if ac_fn_cxx_try_link "$LINENO"; then :
12922
12923 lt_aix_libpath_sed='
12924 /Import File Strings/,/^$/ {
12925 /^0/ {
12926 s/^0 *\(.*\)$/\1/
12927 p
12928 }
12929 }'
12930 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12931 # Check for a 64-bit object if we didn't find anything.
12932 if test -z "$aix_libpath"; then
12933 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12934 fi
12935 fi
12936 rm -f core conftest.err conftest.$ac_objext \
12937 conftest$ac_exeext conftest.$ac_ext
12938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12939
12940 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12941
12942 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12943 else
12944 if test "$host_cpu" = ia64; then
12945 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12946 allow_undefined_flag_CXX="-z nodefs"
12947 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"
12948 else
12949 # Determine the default libpath from the value encoded in an
12950 # empty executable.
12951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952 /* end confdefs.h. */
12953
12954 int
12955 main ()
12956 {
12957
12958 ;
12959 return 0;
12960 }
12961 _ACEOF
12962 if ac_fn_cxx_try_link "$LINENO"; then :
12963
12964 lt_aix_libpath_sed='
12965 /Import File Strings/,/^$/ {
12966 /^0/ {
12967 s/^0 *\(.*\)$/\1/
12968 p
12969 }
12970 }'
12971 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12972 # Check for a 64-bit object if we didn't find anything.
12973 if test -z "$aix_libpath"; then
12974 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12975 fi
12976 fi
12977 rm -f core conftest.err conftest.$ac_objext \
12978 conftest$ac_exeext conftest.$ac_ext
12979 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12980
12981 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12982 # Warning - without using the other run time loading flags,
12983 # -berok will link without error, but may produce a broken library.
12984 no_undefined_flag_CXX=' ${wl}-bernotok'
12985 allow_undefined_flag_CXX=' ${wl}-berok'
12986 if test "$with_gnu_ld" = yes; then
12987 # We only use this code for GNU lds that support --whole-archive.
12988 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12989 else
12990 # Exported symbols can be pulled into shared objects from archives
12991 whole_archive_flag_spec_CXX='$convenience'
12992 fi
12993 archive_cmds_need_lc_CXX=yes
12994 # This is similar to how AIX traditionally builds its shared
12995 # libraries.
12996 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'
12997 fi
12998 fi
12999 ;;
13000
13001 beos*)
13002 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13003 allow_undefined_flag_CXX=unsupported
13004 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13005 # support --undefined. This deserves some investigation. FIXME
13006 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13007 else
13008 ld_shlibs_CXX=no
13009 fi
13010 ;;
13011
13012 chorus*)
13013 case $cc_basename in
13014 *)
13015 # FIXME: insert proper C++ library support
13016 ld_shlibs_CXX=no
13017 ;;
13018 esac
13019 ;;
13020
13021 cygwin* | mingw* | pw32* | cegcc*)
13022 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13023 # as there is no search path for DLLs.
13024 hardcode_libdir_flag_spec_CXX='-L$libdir'
13025 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13026 allow_undefined_flag_CXX=unsupported
13027 always_export_symbols_CXX=no
13028 enable_shared_with_static_runtimes_CXX=yes
13029
13030 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13031 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'
13032 # If the export-symbols file already is a .def file (1st line
13033 # is EXPORTS), use it as is; otherwise, prepend...
13034 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13035 cp $export_symbols $output_objdir/$soname.def;
13036 else
13037 echo EXPORTS > $output_objdir/$soname.def;
13038 cat $export_symbols >> $output_objdir/$soname.def;
13039 fi~
13040 $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'
13041 else
13042 ld_shlibs_CXX=no
13043 fi
13044 ;;
13045 darwin* | rhapsody*)
13046
13047
13048 archive_cmds_need_lc_CXX=no
13049 hardcode_direct_CXX=no
13050 hardcode_automatic_CXX=yes
13051 hardcode_shlibpath_var_CXX=unsupported
13052 if test "$lt_cv_ld_force_load" = "yes"; then
13053 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13054 else
13055 whole_archive_flag_spec_CXX=''
13056 fi
13057 link_all_deplibs_CXX=yes
13058 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13059 case $cc_basename in
13060 ifort*) _lt_dar_can_shared=yes ;;
13061 *) _lt_dar_can_shared=$GCC ;;
13062 esac
13063 if test "$_lt_dar_can_shared" = "yes"; then
13064 output_verbose_link_cmd=func_echo_all
13065 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}"
13066 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13067 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}"
13068 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}"
13069 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13070 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}"
13071 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}"
13072 fi
13073
13074 else
13075 ld_shlibs_CXX=no
13076 fi
13077
13078 ;;
13079
13080 dgux*)
13081 case $cc_basename in
13082 ec++*)
13083 # FIXME: insert proper C++ library support
13084 ld_shlibs_CXX=no
13085 ;;
13086 ghcx*)
13087 # Green Hills C++ Compiler
13088 # FIXME: insert proper C++ library support
13089 ld_shlibs_CXX=no
13090 ;;
13091 *)
13092 # FIXME: insert proper C++ library support
13093 ld_shlibs_CXX=no
13094 ;;
13095 esac
13096 ;;
13097
13098 freebsd2.*)
13099 # C++ shared libraries reported to be fairly broken before
13100 # switch to ELF
13101 ld_shlibs_CXX=no
13102 ;;
13103
13104 freebsd-elf*)
13105 archive_cmds_need_lc_CXX=no
13106 ;;
13107
13108 freebsd* | dragonfly*)
13109 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13110 # conventions
13111 ld_shlibs_CXX=yes
13112 ;;
13113
13114 gnu*)
13115 ;;
13116
13117 haiku*)
13118 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13119 link_all_deplibs_CXX=yes
13120 ;;
13121
13122 hpux9*)
13123 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13124 hardcode_libdir_separator_CXX=:
13125 export_dynamic_flag_spec_CXX='${wl}-E'
13126 hardcode_direct_CXX=yes
13127 hardcode_minus_L_CXX=yes # Not in the search PATH,
13128 # but as the default
13129 # location of the library.
13130
13131 case $cc_basename in
13132 CC*)
13133 # FIXME: insert proper C++ library support
13134 ld_shlibs_CXX=no
13135 ;;
13136 aCC*)
13137 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'
13138 # Commands to make compiler produce verbose output that lists
13139 # what "hidden" libraries, object files and flags are used when
13140 # linking a shared library.
13141 #
13142 # There doesn't appear to be a way to prevent this compiler from
13143 # explicitly linking system object files so we need to strip them
13144 # from the output so that they don't get included in the library
13145 # dependencies.
13146 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; func_echo_all "$list"'
13147 ;;
13148 *)
13149 if test "$GXX" = yes; then
13150 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'
13151 else
13152 # FIXME: insert proper C++ library support
13153 ld_shlibs_CXX=no
13154 fi
13155 ;;
13156 esac
13157 ;;
13158
13159 hpux10*|hpux11*)
13160 if test $with_gnu_ld = no; then
13161 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13162 hardcode_libdir_separator_CXX=:
13163
13164 case $host_cpu in
13165 hppa*64*|ia64*)
13166 ;;
13167 *)
13168 export_dynamic_flag_spec_CXX='${wl}-E'
13169 ;;
13170 esac
13171 fi
13172 case $host_cpu in
13173 hppa*64*|ia64*)
13174 hardcode_direct_CXX=no
13175 hardcode_shlibpath_var_CXX=no
13176 ;;
13177 *)
13178 hardcode_direct_CXX=yes
13179 hardcode_direct_absolute_CXX=yes
13180 hardcode_minus_L_CXX=yes # Not in the search PATH,
13181 # but as the default
13182 # location of the library.
13183 ;;
13184 esac
13185
13186 case $cc_basename in
13187 CC*)
13188 # FIXME: insert proper C++ library support
13189 ld_shlibs_CXX=no
13190 ;;
13191 aCC*)
13192 case $host_cpu in
13193 hppa*64*)
13194 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13195 ;;
13196 ia64*)
13197 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13198 ;;
13199 *)
13200 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13201 ;;
13202 esac
13203 # Commands to make compiler produce verbose output that lists
13204 # what "hidden" libraries, object files and flags are used when
13205 # linking a shared library.
13206 #
13207 # There doesn't appear to be a way to prevent this compiler from
13208 # explicitly linking system object files so we need to strip them
13209 # from the output so that they don't get included in the library
13210 # dependencies.
13211 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; func_echo_all "$list"'
13212 ;;
13213 *)
13214 if test "$GXX" = yes; then
13215 if test $with_gnu_ld = no; then
13216 case $host_cpu in
13217 hppa*64*)
13218 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13219 ;;
13220 ia64*)
13221 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13222 ;;
13223 *)
13224 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'
13225 ;;
13226 esac
13227 fi
13228 else
13229 # FIXME: insert proper C++ library support
13230 ld_shlibs_CXX=no
13231 fi
13232 ;;
13233 esac
13234 ;;
13235
13236 interix[3-9]*)
13237 hardcode_direct_CXX=no
13238 hardcode_shlibpath_var_CXX=no
13239 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13240 export_dynamic_flag_spec_CXX='${wl}-E'
13241 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13242 # Instead, shared libraries are loaded at an image base (0x10000000 by
13243 # default) and relocated if they conflict, which is a slow very memory
13244 # consuming and fragmenting process. To avoid this, we pick a random,
13245 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13246 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13247 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'
13248 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'
13249 ;;
13250 irix5* | irix6*)
13251 case $cc_basename in
13252 CC*)
13253 # SGI C++
13254 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13255
13256 # Archives containing C++ object files must be created using
13257 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13258 # necessary to make sure instantiated templates are included
13259 # in the archive.
13260 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13261 ;;
13262 *)
13263 if test "$GXX" = yes; then
13264 if test "$with_gnu_ld" = no; then
13265 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13266 else
13267 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13268 fi
13269 fi
13270 link_all_deplibs_CXX=yes
13271 ;;
13272 esac
13273 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13274 hardcode_libdir_separator_CXX=:
13275 inherit_rpath_CXX=yes
13276 ;;
13277
13278 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13279 case $cc_basename in
13280 KCC*)
13281 # Kuck and Associates, Inc. (KAI) C++ Compiler
13282
13283 # KCC will only create a shared library if the output file
13284 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13285 # to its proper name (with version) after linking.
13286 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'
13287 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'
13288 # Commands to make compiler produce verbose output that lists
13289 # what "hidden" libraries, object files and flags are used when
13290 # linking a shared library.
13291 #
13292 # There doesn't appear to be a way to prevent this compiler from
13293 # explicitly linking system object files so we need to strip them
13294 # from the output so that they don't get included in the library
13295 # dependencies.
13296 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; func_echo_all "$list"'
13297
13298 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13299 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13300
13301 # Archives containing C++ object files must be created using
13302 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13303 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13304 ;;
13305 icpc* | ecpc* )
13306 # Intel C++
13307 with_gnu_ld=yes
13308 # version 8.0 and above of icpc choke on multiply defined symbols
13309 # if we add $predep_objects and $postdep_objects, however 7.1 and
13310 # earlier do not add the objects themselves.
13311 case `$CC -V 2>&1` in
13312 *"Version 7."*)
13313 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13314 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'
13315 ;;
13316 *) # Version 8.0 or newer
13317 tmp_idyn=
13318 case $host_cpu in
13319 ia64*) tmp_idyn=' -i_dynamic';;
13320 esac
13321 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13322 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'
13323 ;;
13324 esac
13325 archive_cmds_need_lc_CXX=no
13326 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13327 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13328 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13329 ;;
13330 pgCC* | pgcpp*)
13331 # Portland Group C++ compiler
13332 case `$CC -V` in
13333 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13334 prelink_cmds_CXX='tpldir=Template.dir~
13335 rm -rf $tpldir~
13336 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13337 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13338 old_archive_cmds_CXX='tpldir=Template.dir~
13339 rm -rf $tpldir~
13340 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13341 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13342 $RANLIB $oldlib'
13343 archive_cmds_CXX='tpldir=Template.dir~
13344 rm -rf $tpldir~
13345 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13346 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13347 archive_expsym_cmds_CXX='tpldir=Template.dir~
13348 rm -rf $tpldir~
13349 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13350 $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'
13351 ;;
13352 *) # Version 6 and above use weak symbols
13353 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13354 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'
13355 ;;
13356 esac
13357
13358 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13359 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13360 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13361 ;;
13362 cxx*)
13363 # Compaq C++
13364 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13365 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'
13366
13367 runpath_var=LD_RUN_PATH
13368 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13369 hardcode_libdir_separator_CXX=:
13370
13371 # Commands to make compiler produce verbose output that lists
13372 # what "hidden" libraries, object files and flags are used when
13373 # linking a shared library.
13374 #
13375 # There doesn't appear to be a way to prevent this compiler from
13376 # explicitly linking system object files so we need to strip them
13377 # from the output so that they don't get included in the library
13378 # dependencies.
13379 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13380 ;;
13381 xl* | mpixl* | bgxl*)
13382 # IBM XL 8.0 on PPC, with GNU ld
13383 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13384 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13385 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13386 if test "x$supports_anon_versioning" = xyes; then
13387 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13388 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13389 echo "local: *; };" >> $output_objdir/$libname.ver~
13390 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13391 fi
13392 ;;
13393 *)
13394 case `$CC -V 2>&1 | sed 5q` in
13395 *Sun\ C*)
13396 # Sun C++ 5.9
13397 no_undefined_flag_CXX=' -zdefs'
13398 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13399 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'
13400 hardcode_libdir_flag_spec_CXX='-R$libdir'
13401 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13402 compiler_needs_object_CXX=yes
13403
13404 # Not sure whether something based on
13405 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13406 # would be better.
13407 output_verbose_link_cmd='func_echo_all'
13408
13409 # Archives containing C++ object files must be created using
13410 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13411 # necessary to make sure instantiated templates are included
13412 # in the archive.
13413 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13414 ;;
13415 esac
13416 ;;
13417 esac
13418 ;;
13419
13420 lynxos*)
13421 # FIXME: insert proper C++ library support
13422 ld_shlibs_CXX=no
13423 ;;
13424
13425 m88k*)
13426 # FIXME: insert proper C++ library support
13427 ld_shlibs_CXX=no
13428 ;;
13429
13430 mvs*)
13431 case $cc_basename in
13432 cxx*)
13433 # FIXME: insert proper C++ library support
13434 ld_shlibs_CXX=no
13435 ;;
13436 *)
13437 # FIXME: insert proper C++ library support
13438 ld_shlibs_CXX=no
13439 ;;
13440 esac
13441 ;;
13442
13443 netbsd*)
13444 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13445 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13446 wlarc=
13447 hardcode_libdir_flag_spec_CXX='-R$libdir'
13448 hardcode_direct_CXX=yes
13449 hardcode_shlibpath_var_CXX=no
13450 fi
13451 # Workaround some broken pre-1.5 toolchains
13452 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13453 ;;
13454
13455 *nto* | *qnx*)
13456 ld_shlibs_CXX=yes
13457 ;;
13458
13459 openbsd2*)
13460 # C++ shared libraries are fairly broken
13461 ld_shlibs_CXX=no
13462 ;;
13463
13464 openbsd*)
13465 if test -f /usr/libexec/ld.so; then
13466 hardcode_direct_CXX=yes
13467 hardcode_shlibpath_var_CXX=no
13468 hardcode_direct_absolute_CXX=yes
13469 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13470 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13471 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13472 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13473 export_dynamic_flag_spec_CXX='${wl}-E'
13474 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13475 fi
13476 output_verbose_link_cmd=func_echo_all
13477 else
13478 ld_shlibs_CXX=no
13479 fi
13480 ;;
13481
13482 osf3* | osf4* | osf5*)
13483 case $cc_basename in
13484 KCC*)
13485 # Kuck and Associates, Inc. (KAI) C++ Compiler
13486
13487 # KCC will only create a shared library if the output file
13488 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13489 # to its proper name (with version) after linking.
13490 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'
13491
13492 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13493 hardcode_libdir_separator_CXX=:
13494
13495 # Archives containing C++ object files must be created using
13496 # the KAI C++ compiler.
13497 case $host in
13498 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13499 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13500 esac
13501 ;;
13502 RCC*)
13503 # Rational C++ 2.4.1
13504 # FIXME: insert proper C++ library support
13505 ld_shlibs_CXX=no
13506 ;;
13507 cxx*)
13508 case $host in
13509 osf3*)
13510 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13511 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13512 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13513 ;;
13514 *)
13515 allow_undefined_flag_CXX=' -expect_unresolved \*'
13516 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13517 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13518 echo "-hidden">> $lib.exp~
13519 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13520 $RM $lib.exp'
13521 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13522 ;;
13523 esac
13524
13525 hardcode_libdir_separator_CXX=:
13526
13527 # Commands to make compiler produce verbose output that lists
13528 # what "hidden" libraries, object files and flags are used when
13529 # linking a shared library.
13530 #
13531 # There doesn't appear to be a way to prevent this compiler from
13532 # explicitly linking system object files so we need to strip them
13533 # from the output so that they don't get included in the library
13534 # dependencies.
13535 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13536 ;;
13537 *)
13538 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13539 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13540 case $host in
13541 osf3*)
13542 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13543 ;;
13544 *)
13545 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13546 ;;
13547 esac
13548
13549 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13550 hardcode_libdir_separator_CXX=:
13551
13552 # Commands to make compiler produce verbose output that lists
13553 # what "hidden" libraries, object files and flags are used when
13554 # linking a shared library.
13555 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13556
13557 else
13558 # FIXME: insert proper C++ library support
13559 ld_shlibs_CXX=no
13560 fi
13561 ;;
13562 esac
13563 ;;
13564
13565 psos*)
13566 # FIXME: insert proper C++ library support
13567 ld_shlibs_CXX=no
13568 ;;
13569
13570 sunos4*)
13571 case $cc_basename in
13572 CC*)
13573 # Sun C++ 4.x
13574 # FIXME: insert proper C++ library support
13575 ld_shlibs_CXX=no
13576 ;;
13577 lcc*)
13578 # Lucid
13579 # FIXME: insert proper C++ library support
13580 ld_shlibs_CXX=no
13581 ;;
13582 *)
13583 # FIXME: insert proper C++ library support
13584 ld_shlibs_CXX=no
13585 ;;
13586 esac
13587 ;;
13588
13589 solaris*)
13590 case $cc_basename in
13591 CC*)
13592 # Sun C++ 4.2, 5.x and Centerline C++
13593 archive_cmds_need_lc_CXX=yes
13594 no_undefined_flag_CXX=' -zdefs'
13595 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13596 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13597 $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'
13598
13599 hardcode_libdir_flag_spec_CXX='-R$libdir'
13600 hardcode_shlibpath_var_CXX=no
13601 case $host_os in
13602 solaris2.[0-5] | solaris2.[0-5].*) ;;
13603 *)
13604 # The compiler driver will combine and reorder linker options,
13605 # but understands `-z linker_flag'.
13606 # Supported since Solaris 2.6 (maybe 2.5.1?)
13607 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13608 ;;
13609 esac
13610 link_all_deplibs_CXX=yes
13611
13612 output_verbose_link_cmd='func_echo_all'
13613
13614 # Archives containing C++ object files must be created using
13615 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13616 # necessary to make sure instantiated templates are included
13617 # in the archive.
13618 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13619 ;;
13620 gcx*)
13621 # Green Hills C++ Compiler
13622 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13623
13624 # The C++ compiler must be used to create the archive.
13625 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13626 ;;
13627 *)
13628 # GNU C++ compiler with Solaris linker
13629 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13630 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13631 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13632 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13633 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13634 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13635
13636 # Commands to make compiler produce verbose output that lists
13637 # what "hidden" libraries, object files and flags are used when
13638 # linking a shared library.
13639 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13640 else
13641 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13642 # platform.
13643 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13644 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13645 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13646
13647 # Commands to make compiler produce verbose output that lists
13648 # what "hidden" libraries, object files and flags are used when
13649 # linking a shared library.
13650 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13651 fi
13652
13653 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13654 case $host_os in
13655 solaris2.[0-5] | solaris2.[0-5].*) ;;
13656 *)
13657 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13658 ;;
13659 esac
13660 fi
13661 ;;
13662 esac
13663 ;;
13664
13665 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13666 no_undefined_flag_CXX='${wl}-z,text'
13667 archive_cmds_need_lc_CXX=no
13668 hardcode_shlibpath_var_CXX=no
13669 runpath_var='LD_RUN_PATH'
13670
13671 case $cc_basename in
13672 CC*)
13673 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13674 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13675 ;;
13676 *)
13677 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13678 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13679 ;;
13680 esac
13681 ;;
13682
13683 sysv5* | sco3.2v5* | sco5v6*)
13684 # Note: We can NOT use -z defs as we might desire, because we do not
13685 # link with -lc, and that would cause any symbols used from libc to
13686 # always be unresolved, which means just about no library would
13687 # ever link correctly. If we're not using GNU ld we use -z text
13688 # though, which does catch some bad symbols but isn't as heavy-handed
13689 # as -z defs.
13690 no_undefined_flag_CXX='${wl}-z,text'
13691 allow_undefined_flag_CXX='${wl}-z,nodefs'
13692 archive_cmds_need_lc_CXX=no
13693 hardcode_shlibpath_var_CXX=no
13694 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13695 hardcode_libdir_separator_CXX=':'
13696 link_all_deplibs_CXX=yes
13697 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13698 runpath_var='LD_RUN_PATH'
13699
13700 case $cc_basename in
13701 CC*)
13702 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13703 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13704 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13705 '"$old_archive_cmds_CXX"
13706 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13707 '"$reload_cmds_CXX"
13708 ;;
13709 *)
13710 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13711 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13712 ;;
13713 esac
13714 ;;
13715
13716 tandem*)
13717 case $cc_basename in
13718 NCC*)
13719 # NonStop-UX NCC 3.20
13720 # FIXME: insert proper C++ library support
13721 ld_shlibs_CXX=no
13722 ;;
13723 *)
13724 # FIXME: insert proper C++ library support
13725 ld_shlibs_CXX=no
13726 ;;
13727 esac
13728 ;;
13729
13730 vxworks*)
13731 # FIXME: insert proper C++ library support
13732 ld_shlibs_CXX=no
13733 ;;
13734
13735 *)
13736 # FIXME: insert proper C++ library support
13737 ld_shlibs_CXX=no
13738 ;;
13739 esac
13740
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13742 $as_echo "$ld_shlibs_CXX" >&6; }
13743 test "$ld_shlibs_CXX" = no && can_build_shared=no
13744
13745 GCC_CXX="$GXX"
13746 LD_CXX="$LD"
13747
13748 ## CAVEAT EMPTOR:
13749 ## There is no encapsulation within the following macros, do not change
13750 ## the running order or otherwise move them around unless you know exactly
13751 ## what you are doing...
13752 # Dependencies to place before and after the object being linked:
13753 predep_objects_CXX=
13754 postdep_objects_CXX=
13755 predeps_CXX=
13756 postdeps_CXX=
13757 compiler_lib_search_path_CXX=
13758
13759 cat > conftest.$ac_ext <<_LT_EOF
13760 class Foo
13761 {
13762 public:
13763 Foo (void) { a = 0; }
13764 private:
13765 int a;
13766 };
13767 _LT_EOF
13768
13769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13770 (eval $ac_compile) 2>&5
13771 ac_status=$?
13772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13773 test $ac_status = 0; }; then
13774 # Parse the compiler output and extract the necessary
13775 # objects, libraries and library flags.
13776
13777 # Sentinel used to keep track of whether or not we are before
13778 # the conftest object file.
13779 pre_test_object_deps_done=no
13780
13781 for p in `eval "$output_verbose_link_cmd"`; do
13782 case $p in
13783
13784 -L* | -R* | -l*)
13785 # Some compilers place space between "-{L,R}" and the path.
13786 # Remove the space.
13787 if test $p = "-L" ||
13788 test $p = "-R"; then
13789 prev=$p
13790 continue
13791 else
13792 prev=
13793 fi
13794
13795 if test "$pre_test_object_deps_done" = no; then
13796 case $p in
13797 -L* | -R*)
13798 # Internal compiler library paths should come after those
13799 # provided the user. The postdeps already come after the
13800 # user supplied libs so there is no need to process them.
13801 if test -z "$compiler_lib_search_path_CXX"; then
13802 compiler_lib_search_path_CXX="${prev}${p}"
13803 else
13804 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13805 fi
13806 ;;
13807 # The "-l" case would never come before the object being
13808 # linked, so don't bother handling this case.
13809 esac
13810 else
13811 if test -z "$postdeps_CXX"; then
13812 postdeps_CXX="${prev}${p}"
13813 else
13814 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13815 fi
13816 fi
13817 ;;
13818
13819 *.$objext)
13820 # This assumes that the test object file only shows up
13821 # once in the compiler output.
13822 if test "$p" = "conftest.$objext"; then
13823 pre_test_object_deps_done=yes
13824 continue
13825 fi
13826
13827 if test "$pre_test_object_deps_done" = no; then
13828 if test -z "$predep_objects_CXX"; then
13829 predep_objects_CXX="$p"
13830 else
13831 predep_objects_CXX="$predep_objects_CXX $p"
13832 fi
13833 else
13834 if test -z "$postdep_objects_CXX"; then
13835 postdep_objects_CXX="$p"
13836 else
13837 postdep_objects_CXX="$postdep_objects_CXX $p"
13838 fi
13839 fi
13840 ;;
13841
13842 *) ;; # Ignore the rest.
13843
13844 esac
13845 done
13846
13847 # Clean up.
13848 rm -f a.out a.exe
13849 else
13850 echo "libtool.m4: error: problem compiling CXX test program"
13851 fi
13852
13853 $RM -f confest.$objext
13854
13855 # PORTME: override above test on systems where it is broken
13856 case $host_os in
13857 interix[3-9]*)
13858 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13859 # hack all around it, let's just trust "g++" to DTRT.
13860 predep_objects_CXX=
13861 postdep_objects_CXX=
13862 postdeps_CXX=
13863 ;;
13864
13865 linux*)
13866 case `$CC -V 2>&1 | sed 5q` in
13867 *Sun\ C*)
13868 # Sun C++ 5.9
13869
13870 # The more standards-conforming stlport4 library is
13871 # incompatible with the Cstd library. Avoid specifying
13872 # it if it's in CXXFLAGS. Ignore libCrun as
13873 # -library=stlport4 depends on it.
13874 case " $CXX $CXXFLAGS " in
13875 *" -library=stlport4 "*)
13876 solaris_use_stlport4=yes
13877 ;;
13878 esac
13879
13880 if test "$solaris_use_stlport4" != yes; then
13881 postdeps_CXX='-library=Cstd -library=Crun'
13882 fi
13883 ;;
13884 esac
13885 ;;
13886
13887 solaris*)
13888 case $cc_basename in
13889 CC*)
13890 # The more standards-conforming stlport4 library is
13891 # incompatible with the Cstd library. Avoid specifying
13892 # it if it's in CXXFLAGS. Ignore libCrun as
13893 # -library=stlport4 depends on it.
13894 case " $CXX $CXXFLAGS " in
13895 *" -library=stlport4 "*)
13896 solaris_use_stlport4=yes
13897 ;;
13898 esac
13899
13900 # Adding this requires a known-good setup of shared libraries for
13901 # Sun compiler versions before 5.6, else PIC objects from an old
13902 # archive will be linked into the output, leading to subtle bugs.
13903 if test "$solaris_use_stlport4" != yes; then
13904 postdeps_CXX='-library=Cstd -library=Crun'
13905 fi
13906 ;;
13907 esac
13908 ;;
13909 esac
13910
13911
13912 case " $postdeps_CXX " in
13913 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13914 esac
13915 compiler_lib_search_dirs_CXX=
13916 if test -n "${compiler_lib_search_path_CXX}"; then
13917 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13918 fi
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950 lt_prog_compiler_wl_CXX=
13951 lt_prog_compiler_pic_CXX=
13952 lt_prog_compiler_static_CXX=
13953
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13955 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13956
13957 # C++ specific cases for pic, static, wl, etc.
13958 if test "$GXX" = yes; then
13959 lt_prog_compiler_wl_CXX='-Wl,'
13960 lt_prog_compiler_static_CXX='-static'
13961
13962 case $host_os in
13963 aix*)
13964 # All AIX code is PIC.
13965 if test "$host_cpu" = ia64; then
13966 # AIX 5 now supports IA64 processor
13967 lt_prog_compiler_static_CXX='-Bstatic'
13968 fi
13969 lt_prog_compiler_pic_CXX='-fPIC'
13970 ;;
13971
13972 amigaos*)
13973 case $host_cpu in
13974 powerpc)
13975 # see comment about AmigaOS4 .so support
13976 lt_prog_compiler_pic_CXX='-fPIC'
13977 ;;
13978 m68k)
13979 # FIXME: we need at least 68020 code to build shared libraries, but
13980 # adding the `-m68020' flag to GCC prevents building anything better,
13981 # like `-m68040'.
13982 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13983 ;;
13984 esac
13985 ;;
13986
13987 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13988 # PIC is the default for these OSes.
13989 ;;
13990 mingw* | cygwin* | os2* | pw32* | cegcc*)
13991 # This hack is so that the source file can tell whether it is being
13992 # built for inclusion in a dll (and should export symbols for example).
13993 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13994 # (--disable-auto-import) libraries
13995 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13996 ;;
13997 darwin* | rhapsody*)
13998 # PIC is the default on this platform
13999 # Common symbols not allowed in MH_DYLIB files
14000 lt_prog_compiler_pic_CXX='-fno-common'
14001 ;;
14002 *djgpp*)
14003 # DJGPP does not support shared libraries at all
14004 lt_prog_compiler_pic_CXX=
14005 ;;
14006 haiku*)
14007 # PIC is the default for Haiku.
14008 # The "-static" flag exists, but is broken.
14009 lt_prog_compiler_static_CXX=
14010 ;;
14011 interix[3-9]*)
14012 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14013 # Instead, we relocate shared libraries at runtime.
14014 ;;
14015 sysv4*MP*)
14016 if test -d /usr/nec; then
14017 lt_prog_compiler_pic_CXX=-Kconform_pic
14018 fi
14019 ;;
14020 hpux*)
14021 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14022 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14023 # sets the default TLS model and affects inlining.
14024 case $host_cpu in
14025 hppa*64*)
14026 ;;
14027 *)
14028 lt_prog_compiler_pic_CXX='-fPIC'
14029 ;;
14030 esac
14031 ;;
14032 *qnx* | *nto*)
14033 # QNX uses GNU C++, but need to define -shared option too, otherwise
14034 # it will coredump.
14035 lt_prog_compiler_pic_CXX='-fPIC -shared'
14036 ;;
14037 *)
14038 lt_prog_compiler_pic_CXX='-fPIC'
14039 ;;
14040 esac
14041 else
14042 case $host_os in
14043 aix[4-9]*)
14044 # All AIX code is PIC.
14045 if test "$host_cpu" = ia64; then
14046 # AIX 5 now supports IA64 processor
14047 lt_prog_compiler_static_CXX='-Bstatic'
14048 else
14049 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14050 fi
14051 ;;
14052 chorus*)
14053 case $cc_basename in
14054 cxch68*)
14055 # Green Hills C++ Compiler
14056 # _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"
14057 ;;
14058 esac
14059 ;;
14060 dgux*)
14061 case $cc_basename in
14062 ec++*)
14063 lt_prog_compiler_pic_CXX='-KPIC'
14064 ;;
14065 ghcx*)
14066 # Green Hills C++ Compiler
14067 lt_prog_compiler_pic_CXX='-pic'
14068 ;;
14069 *)
14070 ;;
14071 esac
14072 ;;
14073 freebsd* | dragonfly*)
14074 # FreeBSD uses GNU C++
14075 ;;
14076 hpux9* | hpux10* | hpux11*)
14077 case $cc_basename in
14078 CC*)
14079 lt_prog_compiler_wl_CXX='-Wl,'
14080 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14081 if test "$host_cpu" != ia64; then
14082 lt_prog_compiler_pic_CXX='+Z'
14083 fi
14084 ;;
14085 aCC*)
14086 lt_prog_compiler_wl_CXX='-Wl,'
14087 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14088 case $host_cpu in
14089 hppa*64*|ia64*)
14090 # +Z the default
14091 ;;
14092 *)
14093 lt_prog_compiler_pic_CXX='+Z'
14094 ;;
14095 esac
14096 ;;
14097 *)
14098 ;;
14099 esac
14100 ;;
14101 interix*)
14102 # This is c89, which is MS Visual C++ (no shared libs)
14103 # Anyone wants to do a port?
14104 ;;
14105 irix5* | irix6* | nonstopux*)
14106 case $cc_basename in
14107 CC*)
14108 lt_prog_compiler_wl_CXX='-Wl,'
14109 lt_prog_compiler_static_CXX='-non_shared'
14110 # CC pic flag -KPIC is the default.
14111 ;;
14112 *)
14113 ;;
14114 esac
14115 ;;
14116 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14117 case $cc_basename in
14118 KCC*)
14119 # KAI C++ Compiler
14120 lt_prog_compiler_wl_CXX='--backend -Wl,'
14121 lt_prog_compiler_pic_CXX='-fPIC'
14122 ;;
14123 ecpc* )
14124 # old Intel C++ for x86_64 which still supported -KPIC.
14125 lt_prog_compiler_wl_CXX='-Wl,'
14126 lt_prog_compiler_pic_CXX='-KPIC'
14127 lt_prog_compiler_static_CXX='-static'
14128 ;;
14129 icpc* )
14130 # Intel C++, used to be incompatible with GCC.
14131 # ICC 10 doesn't accept -KPIC any more.
14132 lt_prog_compiler_wl_CXX='-Wl,'
14133 lt_prog_compiler_pic_CXX='-fPIC'
14134 lt_prog_compiler_static_CXX='-static'
14135 ;;
14136 pgCC* | pgcpp*)
14137 # Portland Group C++ compiler
14138 lt_prog_compiler_wl_CXX='-Wl,'
14139 lt_prog_compiler_pic_CXX='-fpic'
14140 lt_prog_compiler_static_CXX='-Bstatic'
14141 ;;
14142 cxx*)
14143 # Compaq C++
14144 # Make sure the PIC flag is empty. It appears that all Alpha
14145 # Linux and Compaq Tru64 Unix objects are PIC.
14146 lt_prog_compiler_pic_CXX=
14147 lt_prog_compiler_static_CXX='-non_shared'
14148 ;;
14149 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14150 # IBM XL 8.0, 9.0 on PPC and BlueGene
14151 lt_prog_compiler_wl_CXX='-Wl,'
14152 lt_prog_compiler_pic_CXX='-qpic'
14153 lt_prog_compiler_static_CXX='-qstaticlink'
14154 ;;
14155 *)
14156 case `$CC -V 2>&1 | sed 5q` in
14157 *Sun\ C*)
14158 # Sun C++ 5.9
14159 lt_prog_compiler_pic_CXX='-KPIC'
14160 lt_prog_compiler_static_CXX='-Bstatic'
14161 lt_prog_compiler_wl_CXX='-Qoption ld '
14162 ;;
14163 esac
14164 ;;
14165 esac
14166 ;;
14167 lynxos*)
14168 ;;
14169 m88k*)
14170 ;;
14171 mvs*)
14172 case $cc_basename in
14173 cxx*)
14174 lt_prog_compiler_pic_CXX='-W c,exportall'
14175 ;;
14176 *)
14177 ;;
14178 esac
14179 ;;
14180 netbsd*)
14181 ;;
14182 *qnx* | *nto*)
14183 # QNX uses GNU C++, but need to define -shared option too, otherwise
14184 # it will coredump.
14185 lt_prog_compiler_pic_CXX='-fPIC -shared'
14186 ;;
14187 osf3* | osf4* | osf5*)
14188 case $cc_basename in
14189 KCC*)
14190 lt_prog_compiler_wl_CXX='--backend -Wl,'
14191 ;;
14192 RCC*)
14193 # Rational C++ 2.4.1
14194 lt_prog_compiler_pic_CXX='-pic'
14195 ;;
14196 cxx*)
14197 # Digital/Compaq C++
14198 lt_prog_compiler_wl_CXX='-Wl,'
14199 # Make sure the PIC flag is empty. It appears that all Alpha
14200 # Linux and Compaq Tru64 Unix objects are PIC.
14201 lt_prog_compiler_pic_CXX=
14202 lt_prog_compiler_static_CXX='-non_shared'
14203 ;;
14204 *)
14205 ;;
14206 esac
14207 ;;
14208 psos*)
14209 ;;
14210 solaris*)
14211 case $cc_basename in
14212 CC*)
14213 # Sun C++ 4.2, 5.x and Centerline C++
14214 lt_prog_compiler_pic_CXX='-KPIC'
14215 lt_prog_compiler_static_CXX='-Bstatic'
14216 lt_prog_compiler_wl_CXX='-Qoption ld '
14217 ;;
14218 gcx*)
14219 # Green Hills C++ Compiler
14220 lt_prog_compiler_pic_CXX='-PIC'
14221 ;;
14222 *)
14223 ;;
14224 esac
14225 ;;
14226 sunos4*)
14227 case $cc_basename in
14228 CC*)
14229 # Sun C++ 4.x
14230 lt_prog_compiler_pic_CXX='-pic'
14231 lt_prog_compiler_static_CXX='-Bstatic'
14232 ;;
14233 lcc*)
14234 # Lucid
14235 lt_prog_compiler_pic_CXX='-pic'
14236 ;;
14237 *)
14238 ;;
14239 esac
14240 ;;
14241 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14242 case $cc_basename in
14243 CC*)
14244 lt_prog_compiler_wl_CXX='-Wl,'
14245 lt_prog_compiler_pic_CXX='-KPIC'
14246 lt_prog_compiler_static_CXX='-Bstatic'
14247 ;;
14248 esac
14249 ;;
14250 tandem*)
14251 case $cc_basename in
14252 NCC*)
14253 # NonStop-UX NCC 3.20
14254 lt_prog_compiler_pic_CXX='-KPIC'
14255 ;;
14256 *)
14257 ;;
14258 esac
14259 ;;
14260 vxworks*)
14261 ;;
14262 *)
14263 lt_prog_compiler_can_build_shared_CXX=no
14264 ;;
14265 esac
14266 fi
14267
14268 case $host_os in
14269 # For platforms which do not support PIC, -DPIC is meaningless:
14270 *djgpp*)
14271 lt_prog_compiler_pic_CXX=
14272 ;;
14273 *)
14274 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14275 ;;
14276 esac
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14278 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14279
14280
14281
14282 #
14283 # Check to make sure the PIC flag actually works.
14284 #
14285 if test -n "$lt_prog_compiler_pic_CXX"; then
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14287 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14288 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14289 $as_echo_n "(cached) " >&6
14290 else
14291 lt_cv_prog_compiler_pic_works_CXX=no
14292 ac_outfile=conftest.$ac_objext
14293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14294 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14295 # Insert the option either (1) after the last *FLAGS variable, or
14296 # (2) before a word containing "conftest.", or (3) at the end.
14297 # Note that $ac_compile itself does not contain backslashes and begins
14298 # with a dollar sign (not a hyphen), so the echo should work correctly.
14299 # The option is referenced via a variable to avoid confusing sed.
14300 lt_compile=`echo "$ac_compile" | $SED \
14301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14303 -e 's:$: $lt_compiler_flag:'`
14304 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14305 (eval "$lt_compile" 2>conftest.err)
14306 ac_status=$?
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 if (exit $ac_status) && test -s "$ac_outfile"; then
14310 # The compiler can only warn and ignore the option if not recognized
14311 # So say no if there are warnings other than the usual output.
14312 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14314 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14315 lt_cv_prog_compiler_pic_works_CXX=yes
14316 fi
14317 fi
14318 $RM conftest*
14319
14320 fi
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14322 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14323
14324 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14325 case $lt_prog_compiler_pic_CXX in
14326 "" | " "*) ;;
14327 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14328 esac
14329 else
14330 lt_prog_compiler_pic_CXX=
14331 lt_prog_compiler_can_build_shared_CXX=no
14332 fi
14333
14334 fi
14335
14336
14337
14338 #
14339 # Check to make sure the static flag actually works.
14340 #
14341 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14343 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14344 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14345 $as_echo_n "(cached) " >&6
14346 else
14347 lt_cv_prog_compiler_static_works_CXX=no
14348 save_LDFLAGS="$LDFLAGS"
14349 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14350 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14351 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14352 # The linker can only warn and ignore the option if not recognized
14353 # So say no if there are warnings
14354 if test -s conftest.err; then
14355 # Append any errors to the config.log.
14356 cat conftest.err 1>&5
14357 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14359 if diff conftest.exp conftest.er2 >/dev/null; then
14360 lt_cv_prog_compiler_static_works_CXX=yes
14361 fi
14362 else
14363 lt_cv_prog_compiler_static_works_CXX=yes
14364 fi
14365 fi
14366 $RM -r conftest*
14367 LDFLAGS="$save_LDFLAGS"
14368
14369 fi
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14371 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14372
14373 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14374 :
14375 else
14376 lt_prog_compiler_static_CXX=
14377 fi
14378
14379
14380
14381
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14383 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14384 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14385 $as_echo_n "(cached) " >&6
14386 else
14387 lt_cv_prog_compiler_c_o_CXX=no
14388 $RM -r conftest 2>/dev/null
14389 mkdir conftest
14390 cd conftest
14391 mkdir out
14392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14393
14394 lt_compiler_flag="-o out/conftest2.$ac_objext"
14395 # Insert the option either (1) after the last *FLAGS variable, or
14396 # (2) before a word containing "conftest.", or (3) at the end.
14397 # Note that $ac_compile itself does not contain backslashes and begins
14398 # with a dollar sign (not a hyphen), so the echo should work correctly.
14399 lt_compile=`echo "$ac_compile" | $SED \
14400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14402 -e 's:$: $lt_compiler_flag:'`
14403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14404 (eval "$lt_compile" 2>out/conftest.err)
14405 ac_status=$?
14406 cat out/conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14409 then
14410 # The compiler can only warn and ignore the option if not recognized
14411 # So say no if there are warnings
14412 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14413 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14414 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14415 lt_cv_prog_compiler_c_o_CXX=yes
14416 fi
14417 fi
14418 chmod u+w . 2>&5
14419 $RM conftest*
14420 # SGI C++ compiler will create directory out/ii_files/ for
14421 # template instantiation
14422 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14423 $RM out/* && rmdir out
14424 cd ..
14425 $RM -r conftest
14426 $RM conftest*
14427
14428 fi
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14430 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14431
14432
14433
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14435 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14436 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14437 $as_echo_n "(cached) " >&6
14438 else
14439 lt_cv_prog_compiler_c_o_CXX=no
14440 $RM -r conftest 2>/dev/null
14441 mkdir conftest
14442 cd conftest
14443 mkdir out
14444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14445
14446 lt_compiler_flag="-o out/conftest2.$ac_objext"
14447 # Insert the option either (1) after the last *FLAGS variable, or
14448 # (2) before a word containing "conftest.", or (3) at the end.
14449 # Note that $ac_compile itself does not contain backslashes and begins
14450 # with a dollar sign (not a hyphen), so the echo should work correctly.
14451 lt_compile=`echo "$ac_compile" | $SED \
14452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14454 -e 's:$: $lt_compiler_flag:'`
14455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14456 (eval "$lt_compile" 2>out/conftest.err)
14457 ac_status=$?
14458 cat out/conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14461 then
14462 # The compiler can only warn and ignore the option if not recognized
14463 # So say no if there are warnings
14464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14467 lt_cv_prog_compiler_c_o_CXX=yes
14468 fi
14469 fi
14470 chmod u+w . 2>&5
14471 $RM conftest*
14472 # SGI C++ compiler will create directory out/ii_files/ for
14473 # template instantiation
14474 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14475 $RM out/* && rmdir out
14476 cd ..
14477 $RM -r conftest
14478 $RM conftest*
14479
14480 fi
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14482 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14483
14484
14485
14486
14487 hard_links="nottested"
14488 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14489 # do not overwrite the value of need_locks provided by the user
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14491 $as_echo_n "checking if we can lock with hard links... " >&6; }
14492 hard_links=yes
14493 $RM conftest*
14494 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14495 touch conftest.a
14496 ln conftest.a conftest.b 2>&5 || hard_links=no
14497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14499 $as_echo "$hard_links" >&6; }
14500 if test "$hard_links" = no; then
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14502 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14503 need_locks=warn
14504 fi
14505 else
14506 need_locks=no
14507 fi
14508
14509
14510
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14512 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14513
14514 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14515 case $host_os in
14516 aix[4-9]*)
14517 # If we're using GNU nm, then we don't want the "-C" option.
14518 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14519 # Also, AIX nm treats weak defined symbols like other global defined
14520 # symbols, whereas GNU nm marks them as "W".
14521 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14522 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14523 else
14524 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14525 fi
14526 ;;
14527 pw32*)
14528 export_symbols_cmds_CXX="$ltdll_cmds"
14529 ;;
14530 cygwin* | mingw* | cegcc*)
14531 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'
14532 ;;
14533 *)
14534 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14535 ;;
14536 esac
14537 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14538
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14540 $as_echo "$ld_shlibs_CXX" >&6; }
14541 test "$ld_shlibs_CXX" = no && can_build_shared=no
14542
14543 with_gnu_ld_CXX=$with_gnu_ld
14544
14545
14546
14547
14548
14549
14550 #
14551 # Do we need to explicitly link libc?
14552 #
14553 case "x$archive_cmds_need_lc_CXX" in
14554 x|xyes)
14555 # Assume -lc should be added
14556 archive_cmds_need_lc_CXX=yes
14557
14558 if test "$enable_shared" = yes && test "$GCC" = yes; then
14559 case $archive_cmds_CXX in
14560 *'~'*)
14561 # FIXME: we may have to deal with multi-command sequences.
14562 ;;
14563 '$CC '*)
14564 # Test whether the compiler implicitly links with -lc since on some
14565 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14566 # to ld, don't add -lc before -lgcc.
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14568 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14569 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14570 $as_echo_n "(cached) " >&6
14571 else
14572 $RM conftest*
14573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14574
14575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14576 (eval $ac_compile) 2>&5
14577 ac_status=$?
14578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14579 test $ac_status = 0; } 2>conftest.err; then
14580 soname=conftest
14581 lib=conftest
14582 libobjs=conftest.$ac_objext
14583 deplibs=
14584 wl=$lt_prog_compiler_wl_CXX
14585 pic_flag=$lt_prog_compiler_pic_CXX
14586 compiler_flags=-v
14587 linker_flags=-v
14588 verstring=
14589 output_objdir=.
14590 libname=conftest
14591 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14592 allow_undefined_flag_CXX=
14593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14594 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14595 ac_status=$?
14596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14597 test $ac_status = 0; }
14598 then
14599 lt_cv_archive_cmds_need_lc_CXX=no
14600 else
14601 lt_cv_archive_cmds_need_lc_CXX=yes
14602 fi
14603 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14604 else
14605 cat conftest.err 1>&5
14606 fi
14607 $RM conftest*
14608
14609 fi
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14611 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14612 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14613 ;;
14614 esac
14615 fi
14616 ;;
14617 esac
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14683 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14684
14685 library_names_spec=
14686 libname_spec='lib$name'
14687 soname_spec=
14688 shrext_cmds=".so"
14689 postinstall_cmds=
14690 postuninstall_cmds=
14691 finish_cmds=
14692 finish_eval=
14693 shlibpath_var=
14694 shlibpath_overrides_runpath=unknown
14695 version_type=none
14696 dynamic_linker="$host_os ld.so"
14697 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14698 need_lib_prefix=unknown
14699 hardcode_into_libs=no
14700
14701 # when you set need_version to no, make sure it does not cause -set_version
14702 # flags to be left without arguments
14703 need_version=unknown
14704
14705 case $host_os in
14706 aix3*)
14707 version_type=linux
14708 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14709 shlibpath_var=LIBPATH
14710
14711 # AIX 3 has no versioning support, so we append a major version to the name.
14712 soname_spec='${libname}${release}${shared_ext}$major'
14713 ;;
14714
14715 aix[4-9]*)
14716 version_type=linux
14717 need_lib_prefix=no
14718 need_version=no
14719 hardcode_into_libs=yes
14720 if test "$host_cpu" = ia64; then
14721 # AIX 5 supports IA64
14722 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14723 shlibpath_var=LD_LIBRARY_PATH
14724 else
14725 # With GCC up to 2.95.x, collect2 would create an import file
14726 # for dependence libraries. The import file would start with
14727 # the line `#! .'. This would cause the generated library to
14728 # depend on `.', always an invalid library. This was fixed in
14729 # development snapshots of GCC prior to 3.0.
14730 case $host_os in
14731 aix4 | aix4.[01] | aix4.[01].*)
14732 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14733 echo ' yes '
14734 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14735 :
14736 else
14737 can_build_shared=no
14738 fi
14739 ;;
14740 esac
14741 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14742 # soname into executable. Probably we can add versioning support to
14743 # collect2, so additional links can be useful in future.
14744 if test "$aix_use_runtimelinking" = yes; then
14745 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14746 # instead of lib<name>.a to let people know that these are not
14747 # typical AIX shared libraries.
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749 else
14750 # We preserve .a as extension for shared libraries through AIX4.2
14751 # and later when we are not doing run time linking.
14752 library_names_spec='${libname}${release}.a $libname.a'
14753 soname_spec='${libname}${release}${shared_ext}$major'
14754 fi
14755 shlibpath_var=LIBPATH
14756 fi
14757 ;;
14758
14759 amigaos*)
14760 case $host_cpu in
14761 powerpc)
14762 # Since July 2007 AmigaOS4 officially supports .so libraries.
14763 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14765 ;;
14766 m68k)
14767 library_names_spec='$libname.ixlibrary $libname.a'
14768 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14769 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14770 ;;
14771 esac
14772 ;;
14773
14774 beos*)
14775 library_names_spec='${libname}${shared_ext}'
14776 dynamic_linker="$host_os ld.so"
14777 shlibpath_var=LIBRARY_PATH
14778 ;;
14779
14780 bsdi[45]*)
14781 version_type=linux
14782 need_version=no
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14788 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14789 # the default ld.so.conf also contains /usr/contrib/lib and
14790 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14791 # libtool to hard-code these into programs
14792 ;;
14793
14794 cygwin* | mingw* | pw32* | cegcc*)
14795 version_type=windows
14796 shrext_cmds=".dll"
14797 need_version=no
14798 need_lib_prefix=no
14799
14800 case $GCC,$host_os in
14801 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14802 library_names_spec='$libname.dll.a'
14803 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14804 postinstall_cmds='base_file=`basename \${file}`~
14805 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14806 dldir=$destdir/`dirname \$dlpath`~
14807 test -d \$dldir || mkdir -p \$dldir~
14808 $install_prog $dir/$dlname \$dldir/$dlname~
14809 chmod a+x \$dldir/$dlname~
14810 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14811 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14812 fi'
14813 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14814 dlpath=$dir/\$dldll~
14815 $RM \$dlpath'
14816 shlibpath_overrides_runpath=yes
14817
14818 case $host_os in
14819 cygwin*)
14820 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14821 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14822
14823 ;;
14824 mingw* | cegcc*)
14825 # MinGW DLLs use traditional 'lib' prefix
14826 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14827 ;;
14828 pw32*)
14829 # pw32 DLLs use 'pw' prefix rather than 'lib'
14830 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14831 ;;
14832 esac
14833 ;;
14834
14835 *)
14836 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14837 ;;
14838 esac
14839 dynamic_linker='Win32 ld.exe'
14840 # FIXME: first we should search . and the directory the executable is in
14841 shlibpath_var=PATH
14842 ;;
14843
14844 darwin* | rhapsody*)
14845 dynamic_linker="$host_os dyld"
14846 version_type=darwin
14847 need_lib_prefix=no
14848 need_version=no
14849 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14850 soname_spec='${libname}${release}${major}$shared_ext'
14851 shlibpath_overrides_runpath=yes
14852 shlibpath_var=DYLD_LIBRARY_PATH
14853 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14854
14855 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14856 ;;
14857
14858 dgux*)
14859 version_type=linux
14860 need_lib_prefix=no
14861 need_version=no
14862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14863 soname_spec='${libname}${release}${shared_ext}$major'
14864 shlibpath_var=LD_LIBRARY_PATH
14865 ;;
14866
14867 freebsd* | dragonfly*)
14868 # DragonFly does not have aout. When/if they implement a new
14869 # versioning mechanism, adjust this.
14870 if test -x /usr/bin/objformat; then
14871 objformat=`/usr/bin/objformat`
14872 else
14873 case $host_os in
14874 freebsd[23].*) objformat=aout ;;
14875 *) objformat=elf ;;
14876 esac
14877 fi
14878 version_type=freebsd-$objformat
14879 case $version_type in
14880 freebsd-elf*)
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14882 need_version=no
14883 need_lib_prefix=no
14884 ;;
14885 freebsd-*)
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14887 need_version=yes
14888 ;;
14889 esac
14890 shlibpath_var=LD_LIBRARY_PATH
14891 case $host_os in
14892 freebsd2.*)
14893 shlibpath_overrides_runpath=yes
14894 ;;
14895 freebsd3.[01]* | freebsdelf3.[01]*)
14896 shlibpath_overrides_runpath=yes
14897 hardcode_into_libs=yes
14898 ;;
14899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14901 shlibpath_overrides_runpath=no
14902 hardcode_into_libs=yes
14903 ;;
14904 *) # from 4.6 on, and DragonFly
14905 shlibpath_overrides_runpath=yes
14906 hardcode_into_libs=yes
14907 ;;
14908 esac
14909 ;;
14910
14911 haiku*)
14912 version_type=linux
14913 need_lib_prefix=no
14914 need_version=no
14915 dynamic_linker="$host_os runtime_loader"
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14917 soname_spec='${libname}${release}${shared_ext}$major'
14918 shlibpath_var=LIBRARY_PATH
14919 shlibpath_overrides_runpath=yes
14920 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14921 hardcode_into_libs=yes
14922 ;;
14923
14924 hpux9* | hpux10* | hpux11*)
14925 # Give a soname corresponding to the major version so that dld.sl refuses to
14926 # link against other versions.
14927 version_type=sunos
14928 need_lib_prefix=no
14929 need_version=no
14930 case $host_cpu in
14931 ia64*)
14932 shrext_cmds='.so'
14933 hardcode_into_libs=yes
14934 dynamic_linker="$host_os dld.so"
14935 shlibpath_var=LD_LIBRARY_PATH
14936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 if test "X$HPUX_IA64_MODE" = X32; then
14940 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14941 else
14942 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14943 fi
14944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14945 ;;
14946 hppa*64*)
14947 shrext_cmds='.sl'
14948 hardcode_into_libs=yes
14949 dynamic_linker="$host_os dld.sl"
14950 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14953 soname_spec='${libname}${release}${shared_ext}$major'
14954 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14956 ;;
14957 *)
14958 shrext_cmds='.sl'
14959 dynamic_linker="$host_os dld.sl"
14960 shlibpath_var=SHLIB_PATH
14961 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 ;;
14965 esac
14966 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14967 postinstall_cmds='chmod 555 $lib'
14968 # or fails outright, so override atomically:
14969 install_override_mode=555
14970 ;;
14971
14972 interix[3-9]*)
14973 version_type=linux
14974 need_lib_prefix=no
14975 need_version=no
14976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14977 soname_spec='${libname}${release}${shared_ext}$major'
14978 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14979 shlibpath_var=LD_LIBRARY_PATH
14980 shlibpath_overrides_runpath=no
14981 hardcode_into_libs=yes
14982 ;;
14983
14984 irix5* | irix6* | nonstopux*)
14985 case $host_os in
14986 nonstopux*) version_type=nonstopux ;;
14987 *)
14988 if test "$lt_cv_prog_gnu_ld" = yes; then
14989 version_type=linux
14990 else
14991 version_type=irix
14992 fi ;;
14993 esac
14994 need_lib_prefix=no
14995 need_version=no
14996 soname_spec='${libname}${release}${shared_ext}$major'
14997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14998 case $host_os in
14999 irix5* | nonstopux*)
15000 libsuff= shlibsuff=
15001 ;;
15002 *)
15003 case $LD in # libtool.m4 will add one of these switches to LD
15004 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15005 libsuff= shlibsuff= libmagic=32-bit;;
15006 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15007 libsuff=32 shlibsuff=N32 libmagic=N32;;
15008 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15009 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15010 *) libsuff= shlibsuff= libmagic=never-match;;
15011 esac
15012 ;;
15013 esac
15014 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15015 shlibpath_overrides_runpath=no
15016 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15017 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15018 hardcode_into_libs=yes
15019 ;;
15020
15021 # No shared lib support for Linux oldld, aout, or coff.
15022 linux*oldld* | linux*aout* | linux*coff*)
15023 dynamic_linker=no
15024 ;;
15025
15026 # This must be Linux ELF.
15027 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15028 version_type=linux
15029 need_lib_prefix=no
15030 need_version=no
15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032 soname_spec='${libname}${release}${shared_ext}$major'
15033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15034 shlibpath_var=LD_LIBRARY_PATH
15035 shlibpath_overrides_runpath=no
15036
15037 # Some binutils ld are patched to set DT_RUNPATH
15038 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15039 $as_echo_n "(cached) " >&6
15040 else
15041 lt_cv_shlibpath_overrides_runpath=no
15042 save_LDFLAGS=$LDFLAGS
15043 save_libdir=$libdir
15044 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15045 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15047 /* end confdefs.h. */
15048
15049 int
15050 main ()
15051 {
15052
15053 ;
15054 return 0;
15055 }
15056 _ACEOF
15057 if ac_fn_cxx_try_link "$LINENO"; then :
15058 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15059 lt_cv_shlibpath_overrides_runpath=yes
15060 fi
15061 fi
15062 rm -f core conftest.err conftest.$ac_objext \
15063 conftest$ac_exeext conftest.$ac_ext
15064 LDFLAGS=$save_LDFLAGS
15065 libdir=$save_libdir
15066
15067 fi
15068
15069 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15070
15071 # This implies no fast_install, which is unacceptable.
15072 # Some rework will be needed to allow for fast_install
15073 # before this can be enabled.
15074 hardcode_into_libs=yes
15075
15076 # Append ld.so.conf contents to the search path
15077 if test -f /etc/ld.so.conf; then
15078 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;s/"//g;/^$/d' | tr '\n' ' '`
15079 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15080 fi
15081
15082 # We used to test for /lib/ld.so.1 and disable shared libraries on
15083 # powerpc, because MkLinux only supported shared libraries with the
15084 # GNU dynamic linker. Since this was broken with cross compilers,
15085 # most powerpc-linux boxes support dynamic linking these days and
15086 # people can always --disable-shared, the test was removed, and we
15087 # assume the GNU/Linux dynamic linker is in use.
15088 dynamic_linker='GNU/Linux ld.so'
15089 ;;
15090
15091 netbsd*)
15092 version_type=sunos
15093 need_lib_prefix=no
15094 need_version=no
15095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15098 dynamic_linker='NetBSD (a.out) ld.so'
15099 else
15100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15101 soname_spec='${libname}${release}${shared_ext}$major'
15102 dynamic_linker='NetBSD ld.elf_so'
15103 fi
15104 shlibpath_var=LD_LIBRARY_PATH
15105 shlibpath_overrides_runpath=yes
15106 hardcode_into_libs=yes
15107 ;;
15108
15109 newsos6)
15110 version_type=linux
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112 shlibpath_var=LD_LIBRARY_PATH
15113 shlibpath_overrides_runpath=yes
15114 ;;
15115
15116 *nto* | *qnx*)
15117 version_type=qnx
15118 need_lib_prefix=no
15119 need_version=no
15120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15121 soname_spec='${libname}${release}${shared_ext}$major'
15122 shlibpath_var=LD_LIBRARY_PATH
15123 shlibpath_overrides_runpath=no
15124 hardcode_into_libs=yes
15125 dynamic_linker='ldqnx.so'
15126 ;;
15127
15128 openbsd*)
15129 version_type=sunos
15130 sys_lib_dlsearch_path_spec="/usr/lib"
15131 need_lib_prefix=no
15132 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15133 case $host_os in
15134 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15135 *) need_version=no ;;
15136 esac
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15139 shlibpath_var=LD_LIBRARY_PATH
15140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15141 case $host_os in
15142 openbsd2.[89] | openbsd2.[89].*)
15143 shlibpath_overrides_runpath=no
15144 ;;
15145 *)
15146 shlibpath_overrides_runpath=yes
15147 ;;
15148 esac
15149 else
15150 shlibpath_overrides_runpath=yes
15151 fi
15152 ;;
15153
15154 os2*)
15155 libname_spec='$name'
15156 shrext_cmds=".dll"
15157 need_lib_prefix=no
15158 library_names_spec='$libname${shared_ext} $libname.a'
15159 dynamic_linker='OS/2 ld.exe'
15160 shlibpath_var=LIBPATH
15161 ;;
15162
15163 osf3* | osf4* | osf5*)
15164 version_type=osf
15165 need_lib_prefix=no
15166 need_version=no
15167 soname_spec='${libname}${release}${shared_ext}$major'
15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15169 shlibpath_var=LD_LIBRARY_PATH
15170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15172 ;;
15173
15174 rdos*)
15175 dynamic_linker=no
15176 ;;
15177
15178 solaris*)
15179 version_type=linux
15180 need_lib_prefix=no
15181 need_version=no
15182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15183 soname_spec='${libname}${release}${shared_ext}$major'
15184 shlibpath_var=LD_LIBRARY_PATH
15185 shlibpath_overrides_runpath=yes
15186 hardcode_into_libs=yes
15187 # ldd complains unless libraries are executable
15188 postinstall_cmds='chmod +x $lib'
15189 ;;
15190
15191 sunos4*)
15192 version_type=sunos
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15195 shlibpath_var=LD_LIBRARY_PATH
15196 shlibpath_overrides_runpath=yes
15197 if test "$with_gnu_ld" = yes; then
15198 need_lib_prefix=no
15199 fi
15200 need_version=yes
15201 ;;
15202
15203 sysv4 | sysv4.3*)
15204 version_type=linux
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15206 soname_spec='${libname}${release}${shared_ext}$major'
15207 shlibpath_var=LD_LIBRARY_PATH
15208 case $host_vendor in
15209 sni)
15210 shlibpath_overrides_runpath=no
15211 need_lib_prefix=no
15212 runpath_var=LD_RUN_PATH
15213 ;;
15214 siemens)
15215 need_lib_prefix=no
15216 ;;
15217 motorola)
15218 need_lib_prefix=no
15219 need_version=no
15220 shlibpath_overrides_runpath=no
15221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15222 ;;
15223 esac
15224 ;;
15225
15226 sysv4*MP*)
15227 if test -d /usr/nec ;then
15228 version_type=linux
15229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15230 soname_spec='$libname${shared_ext}.$major'
15231 shlibpath_var=LD_LIBRARY_PATH
15232 fi
15233 ;;
15234
15235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15236 version_type=freebsd-elf
15237 need_lib_prefix=no
15238 need_version=no
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15240 soname_spec='${libname}${release}${shared_ext}$major'
15241 shlibpath_var=LD_LIBRARY_PATH
15242 shlibpath_overrides_runpath=yes
15243 hardcode_into_libs=yes
15244 if test "$with_gnu_ld" = yes; then
15245 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15246 else
15247 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15248 case $host_os in
15249 sco3.2v5*)
15250 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15251 ;;
15252 esac
15253 fi
15254 sys_lib_dlsearch_path_spec='/usr/lib'
15255 ;;
15256
15257 tpf*)
15258 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15259 version_type=linux
15260 need_lib_prefix=no
15261 need_version=no
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263 shlibpath_var=LD_LIBRARY_PATH
15264 shlibpath_overrides_runpath=no
15265 hardcode_into_libs=yes
15266 ;;
15267
15268 uts4*)
15269 version_type=linux
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271 soname_spec='${libname}${release}${shared_ext}$major'
15272 shlibpath_var=LD_LIBRARY_PATH
15273 ;;
15274
15275 *)
15276 dynamic_linker=no
15277 ;;
15278 esac
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15280 $as_echo "$dynamic_linker" >&6; }
15281 test "$dynamic_linker" = no && can_build_shared=no
15282
15283 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15284 if test "$GCC" = yes; then
15285 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15286 fi
15287
15288 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15289 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15290 fi
15291 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15292 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15293 fi
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15333 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15334 hardcode_action_CXX=
15335 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15336 test -n "$runpath_var_CXX" ||
15337 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15338
15339 # We can hardcode non-existent directories.
15340 if test "$hardcode_direct_CXX" != no &&
15341 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15342 # have to relink, otherwise we might link with an installed library
15343 # when we should be linking with a yet-to-be-installed one
15344 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15345 test "$hardcode_minus_L_CXX" != no; then
15346 # Linking always hardcodes the temporary library directory.
15347 hardcode_action_CXX=relink
15348 else
15349 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15350 hardcode_action_CXX=immediate
15351 fi
15352 else
15353 # We cannot hardcode anything, or else we can only hardcode existing
15354 # directories.
15355 hardcode_action_CXX=unsupported
15356 fi
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15358 $as_echo "$hardcode_action_CXX" >&6; }
15359
15360 if test "$hardcode_action_CXX" = relink ||
15361 test "$inherit_rpath_CXX" = yes; then
15362 # Fast installation is not supported
15363 enable_fast_install=no
15364 elif test "$shlibpath_overrides_runpath" = yes ||
15365 test "$enable_shared" = no; then
15366 # Fast installation is not necessary
15367 enable_fast_install=needless
15368 fi
15369
15370
15371
15372
15373
15374
15375
15376 fi # test -n "$compiler"
15377
15378 CC=$lt_save_CC
15379 LDCXX=$LD
15380 LD=$lt_save_LD
15381 GCC=$lt_save_GCC
15382 with_gnu_ld=$lt_save_with_gnu_ld
15383 lt_cv_path_LDCXX=$lt_cv_path_LD
15384 lt_cv_path_LD=$lt_save_path_LD
15385 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15386 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15387 fi # test "$_lt_caught_CXX_error" != yes
15388
15389 ac_ext=c
15390 ac_cpp='$CPP $CPPFLAGS'
15391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407 ac_config_commands="$ac_config_commands libtool"
15408
15409
15410
15411
15412 # Only expand once:
15413
15414
15415 # Check whether --enable-shared was given.
15416 if test "${enable_shared+set}" = set; then :
15417 enableval=$enable_shared; p=${PACKAGE-default}
15418 case $enableval in
15419 yes) enable_shared=yes ;;
15420 no) enable_shared=no ;;
15421 *)
15422 enable_shared=no
15423 # Look at the argument we got. We use all the common list separators.
15424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15425 for pkg in $enableval; do
15426 IFS="$lt_save_ifs"
15427 if test "X$pkg" = "X$p"; then
15428 enable_shared=yes
15429 fi
15430 done
15431 IFS="$lt_save_ifs"
15432 ;;
15433 esac
15434 else
15435 enable_shared=yes
15436 fi
15437
15438
15439
15440
15441
15442
15443 # Check whether --enable-static was given.
15444 if test "${enable_static+set}" = set; then :
15445 enableval=$enable_static; p=${PACKAGE-default}
15446 case $enableval in
15447 yes) enable_static=yes ;;
15448 no) enable_static=no ;;
15449 *)
15450 enable_static=no
15451 # Look at the argument we got. We use all the common list separators.
15452 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15453 for pkg in $enableval; do
15454 IFS="$lt_save_ifs"
15455 if test "X$pkg" = "X$p"; then
15456 enable_static=yes
15457 fi
15458 done
15459 IFS="$lt_save_ifs"
15460 ;;
15461 esac
15462 else
15463 enable_static=no
15464 fi
15465
15466
15467
15468
15469
15470
15471
15472 if test "$enable_shared" != "yes"; then
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot set --enable-shared for gprofng/libcollector. Profiling will be unavailable." >&5
15474 $as_echo "$as_me: WARNING: Cannot set --enable-shared for gprofng/libcollector. Profiling will be unavailable." >&2;}
15475 fi
15476
15477 ac_ext=c
15478 ac_cpp='$CPP $CPPFLAGS'
15479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15482
15483 GPROFNG_NO_NONNULL_COMPARE_CFLAGS=
15484 save_CFLAGS="$CFLAGS"
15485 for real_option in -Wno-nonnull-compare; do
15486 # Do the check with the no- prefix removed since gcc silently
15487 # accepts any -Wno-* option on purpose
15488 case $real_option in
15489 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15490 *) option=$real_option ;;
15491 esac
15492 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15493
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15495 $as_echo_n "checking whether $CC supports $option... " >&6; }
15496 if eval \${$as_acx_Woption+:} false; then :
15497 $as_echo_n "(cached) " >&6
15498 else
15499 CFLAGS="$option"
15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501 /* end confdefs.h. */
15502
15503 int
15504 main ()
15505 {
15506
15507 ;
15508 return 0;
15509 }
15510 _ACEOF
15511 if ac_fn_c_try_compile "$LINENO"; then :
15512 eval "$as_acx_Woption=yes"
15513 else
15514 eval "$as_acx_Woption=no"
15515 fi
15516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15517
15518 fi
15519 eval ac_res=\$$as_acx_Woption
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15521 $as_echo "$ac_res" >&6; }
15522 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15523 GPROFNG_NO_NONNULL_COMPARE_CFLAGS="$GPROFNG_NO_NONNULL_COMPARE_CFLAGS${GPROFNG_NO_NONNULL_COMPARE_CFLAGS:+ }$real_option"
15524 fi
15525 done
15526 CFLAGS="$save_CFLAGS"
15527 ac_ext=c
15528 ac_cpp='$CPP $CPPFLAGS'
15529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15532
15533
15534
15535
15536 ac_config_files="$ac_config_files Makefile"
15537
15538 ac_config_headers="$ac_config_headers lib-config.h:../common/lib-config.h.in"
15539
15540
15541 cat >confcache <<\_ACEOF
15542 # This file is a shell script that caches the results of configure
15543 # tests run on this system so they can be shared between configure
15544 # scripts and configure runs, see configure's option --config-cache.
15545 # It is not useful on other systems. If it contains results you don't
15546 # want to keep, you may remove or edit it.
15547 #
15548 # config.status only pays attention to the cache file if you give it
15549 # the --recheck option to rerun configure.
15550 #
15551 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15552 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15553 # following values.
15554
15555 _ACEOF
15556
15557 # The following way of writing the cache mishandles newlines in values,
15558 # but we know of no workaround that is simple, portable, and efficient.
15559 # So, we kill variables containing newlines.
15560 # Ultrix sh set writes to stderr and can't be redirected directly,
15561 # and sets the high bit in the cache file unless we assign to the vars.
15562 (
15563 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15564 eval ac_val=\$$ac_var
15565 case $ac_val in #(
15566 *${as_nl}*)
15567 case $ac_var in #(
15568 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15569 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15570 esac
15571 case $ac_var in #(
15572 _ | IFS | as_nl) ;; #(
15573 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15574 *) { eval $ac_var=; unset $ac_var;} ;;
15575 esac ;;
15576 esac
15577 done
15578
15579 (set) 2>&1 |
15580 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15581 *${as_nl}ac_space=\ *)
15582 # `set' does not quote correctly, so add quotes: double-quote
15583 # substitution turns \\\\ into \\, and sed turns \\ into \.
15584 sed -n \
15585 "s/'/'\\\\''/g;
15586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15587 ;; #(
15588 *)
15589 # `set' quotes correctly as required by POSIX, so do not add quotes.
15590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15591 ;;
15592 esac |
15593 sort
15594 ) |
15595 sed '
15596 /^ac_cv_env_/b end
15597 t clear
15598 :clear
15599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15600 t end
15601 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15602 :end' >>confcache
15603 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15604 if test -w "$cache_file"; then
15605 if test "x$cache_file" != "x/dev/null"; then
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15607 $as_echo "$as_me: updating cache $cache_file" >&6;}
15608 if test ! -f "$cache_file" || test -h "$cache_file"; then
15609 cat confcache >"$cache_file"
15610 else
15611 case $cache_file in #(
15612 */* | ?:*)
15613 mv -f confcache "$cache_file"$$ &&
15614 mv -f "$cache_file"$$ "$cache_file" ;; #(
15615 *)
15616 mv -f confcache "$cache_file" ;;
15617 esac
15618 fi
15619 fi
15620 else
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15622 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15623 fi
15624 fi
15625 rm -f confcache
15626
15627 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15628 # Let make expand exec_prefix.
15629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15630
15631 DEFS=-DHAVE_CONFIG_H
15632
15633 ac_libobjs=
15634 ac_ltlibobjs=
15635 U=
15636 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15637 # 1. Remove the extension, and $U if already installed.
15638 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15639 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15640 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15641 # will be set to the directory where LIBOBJS objects are built.
15642 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15643 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15644 done
15645 LIBOBJS=$ac_libobjs
15646
15647 LTLIBOBJS=$ac_ltlibobjs
15648
15649
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15651 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15652 if test -n "$am_sleep_pid"; then
15653 # Hide warnings about reused PIDs.
15654 wait $am_sleep_pid 2>/dev/null
15655 fi
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15657 $as_echo "done" >&6; }
15658 if test -n "$EXEEXT"; then
15659 am__EXEEXT_TRUE=
15660 am__EXEEXT_FALSE='#'
15661 else
15662 am__EXEEXT_TRUE='#'
15663 am__EXEEXT_FALSE=
15664 fi
15665
15666 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15667 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15669 fi
15670 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15671 as_fn_error $? "conditional \"AMDEP\" was never defined.
15672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15673 fi
15674 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15675 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15677 fi
15678 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15679 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15681 fi
15682 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15683 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15685 fi
15686
15687 : "${CONFIG_STATUS=./config.status}"
15688 ac_write_fail=0
15689 ac_clean_files_save=$ac_clean_files
15690 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15692 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15693 as_write_fail=0
15694 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15695 #! $SHELL
15696 # Generated by $as_me.
15697 # Run this file to recreate the current configuration.
15698 # Compiler output produced by configure, useful for debugging
15699 # configure, is in config.log if it exists.
15700
15701 debug=false
15702 ac_cs_recheck=false
15703 ac_cs_silent=false
15704
15705 SHELL=\${CONFIG_SHELL-$SHELL}
15706 export SHELL
15707 _ASEOF
15708 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15709 ## -------------------- ##
15710 ## M4sh Initialization. ##
15711 ## -------------------- ##
15712
15713 # Be more Bourne compatible
15714 DUALCASE=1; export DUALCASE # for MKS sh
15715 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15716 emulate sh
15717 NULLCMD=:
15718 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15719 # is contrary to our usage. Disable this feature.
15720 alias -g '${1+"$@"}'='"$@"'
15721 setopt NO_GLOB_SUBST
15722 else
15723 case `(set -o) 2>/dev/null` in #(
15724 *posix*) :
15725 set -o posix ;; #(
15726 *) :
15727 ;;
15728 esac
15729 fi
15730
15731
15732 as_nl='
15733 '
15734 export as_nl
15735 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15736 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15737 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15738 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15739 # Prefer a ksh shell builtin over an external printf program on Solaris,
15740 # but without wasting forks for bash or zsh.
15741 if test -z "$BASH_VERSION$ZSH_VERSION" \
15742 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15743 as_echo='print -r --'
15744 as_echo_n='print -rn --'
15745 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15746 as_echo='printf %s\n'
15747 as_echo_n='printf %s'
15748 else
15749 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15750 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15751 as_echo_n='/usr/ucb/echo -n'
15752 else
15753 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15754 as_echo_n_body='eval
15755 arg=$1;
15756 case $arg in #(
15757 *"$as_nl"*)
15758 expr "X$arg" : "X\\(.*\\)$as_nl";
15759 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15760 esac;
15761 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15762 '
15763 export as_echo_n_body
15764 as_echo_n='sh -c $as_echo_n_body as_echo'
15765 fi
15766 export as_echo_body
15767 as_echo='sh -c $as_echo_body as_echo'
15768 fi
15769
15770 # The user is always right.
15771 if test "${PATH_SEPARATOR+set}" != set; then
15772 PATH_SEPARATOR=:
15773 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15774 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15775 PATH_SEPARATOR=';'
15776 }
15777 fi
15778
15779
15780 # IFS
15781 # We need space, tab and new line, in precisely that order. Quoting is
15782 # there to prevent editors from complaining about space-tab.
15783 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15784 # splitting by setting IFS to empty value.)
15785 IFS=" "" $as_nl"
15786
15787 # Find who we are. Look in the path if we contain no directory separator.
15788 as_myself=
15789 case $0 in #((
15790 *[\\/]* ) as_myself=$0 ;;
15791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15792 for as_dir in $PATH
15793 do
15794 IFS=$as_save_IFS
15795 test -z "$as_dir" && as_dir=.
15796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15797 done
15798 IFS=$as_save_IFS
15799
15800 ;;
15801 esac
15802 # We did not find ourselves, most probably we were run as `sh COMMAND'
15803 # in which case we are not to be found in the path.
15804 if test "x$as_myself" = x; then
15805 as_myself=$0
15806 fi
15807 if test ! -f "$as_myself"; then
15808 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15809 exit 1
15810 fi
15811
15812 # Unset variables that we do not need and which cause bugs (e.g. in
15813 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15814 # suppresses any "Segmentation fault" message there. '((' could
15815 # trigger a bug in pdksh 5.2.14.
15816 for as_var in BASH_ENV ENV MAIL MAILPATH
15817 do eval test x\${$as_var+set} = xset \
15818 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15819 done
15820 PS1='$ '
15821 PS2='> '
15822 PS4='+ '
15823
15824 # NLS nuisances.
15825 LC_ALL=C
15826 export LC_ALL
15827 LANGUAGE=C
15828 export LANGUAGE
15829
15830 # CDPATH.
15831 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15832
15833
15834 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15835 # ----------------------------------------
15836 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15837 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15838 # script with STATUS, using 1 if that was 0.
15839 as_fn_error ()
15840 {
15841 as_status=$1; test $as_status -eq 0 && as_status=1
15842 if test "$4"; then
15843 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15844 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15845 fi
15846 $as_echo "$as_me: error: $2" >&2
15847 as_fn_exit $as_status
15848 } # as_fn_error
15849
15850
15851 # as_fn_set_status STATUS
15852 # -----------------------
15853 # Set $? to STATUS, without forking.
15854 as_fn_set_status ()
15855 {
15856 return $1
15857 } # as_fn_set_status
15858
15859 # as_fn_exit STATUS
15860 # -----------------
15861 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15862 as_fn_exit ()
15863 {
15864 set +e
15865 as_fn_set_status $1
15866 exit $1
15867 } # as_fn_exit
15868
15869 # as_fn_unset VAR
15870 # ---------------
15871 # Portably unset VAR.
15872 as_fn_unset ()
15873 {
15874 { eval $1=; unset $1;}
15875 }
15876 as_unset=as_fn_unset
15877 # as_fn_append VAR VALUE
15878 # ----------------------
15879 # Append the text in VALUE to the end of the definition contained in VAR. Take
15880 # advantage of any shell optimizations that allow amortized linear growth over
15881 # repeated appends, instead of the typical quadratic growth present in naive
15882 # implementations.
15883 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15884 eval 'as_fn_append ()
15885 {
15886 eval $1+=\$2
15887 }'
15888 else
15889 as_fn_append ()
15890 {
15891 eval $1=\$$1\$2
15892 }
15893 fi # as_fn_append
15894
15895 # as_fn_arith ARG...
15896 # ------------------
15897 # Perform arithmetic evaluation on the ARGs, and store the result in the
15898 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15899 # must be portable across $(()) and expr.
15900 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15901 eval 'as_fn_arith ()
15902 {
15903 as_val=$(( $* ))
15904 }'
15905 else
15906 as_fn_arith ()
15907 {
15908 as_val=`expr "$@" || test $? -eq 1`
15909 }
15910 fi # as_fn_arith
15911
15912
15913 if expr a : '\(a\)' >/dev/null 2>&1 &&
15914 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15915 as_expr=expr
15916 else
15917 as_expr=false
15918 fi
15919
15920 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15921 as_basename=basename
15922 else
15923 as_basename=false
15924 fi
15925
15926 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15927 as_dirname=dirname
15928 else
15929 as_dirname=false
15930 fi
15931
15932 as_me=`$as_basename -- "$0" ||
15933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15934 X"$0" : 'X\(//\)$' \| \
15935 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15936 $as_echo X/"$0" |
15937 sed '/^.*\/\([^/][^/]*\)\/*$/{
15938 s//\1/
15939 q
15940 }
15941 /^X\/\(\/\/\)$/{
15942 s//\1/
15943 q
15944 }
15945 /^X\/\(\/\).*/{
15946 s//\1/
15947 q
15948 }
15949 s/.*/./; q'`
15950
15951 # Avoid depending upon Character Ranges.
15952 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15953 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15954 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15955 as_cr_digits='0123456789'
15956 as_cr_alnum=$as_cr_Letters$as_cr_digits
15957
15958 ECHO_C= ECHO_N= ECHO_T=
15959 case `echo -n x` in #(((((
15960 -n*)
15961 case `echo 'xy\c'` in
15962 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15963 xy) ECHO_C='\c';;
15964 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15965 ECHO_T=' ';;
15966 esac;;
15967 *)
15968 ECHO_N='-n';;
15969 esac
15970
15971 rm -f conf$$ conf$$.exe conf$$.file
15972 if test -d conf$$.dir; then
15973 rm -f conf$$.dir/conf$$.file
15974 else
15975 rm -f conf$$.dir
15976 mkdir conf$$.dir 2>/dev/null
15977 fi
15978 if (echo >conf$$.file) 2>/dev/null; then
15979 if ln -s conf$$.file conf$$ 2>/dev/null; then
15980 as_ln_s='ln -s'
15981 # ... but there are two gotchas:
15982 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15983 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15984 # In both cases, we have to default to `cp -pR'.
15985 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15986 as_ln_s='cp -pR'
15987 elif ln conf$$.file conf$$ 2>/dev/null; then
15988 as_ln_s=ln
15989 else
15990 as_ln_s='cp -pR'
15991 fi
15992 else
15993 as_ln_s='cp -pR'
15994 fi
15995 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15996 rmdir conf$$.dir 2>/dev/null
15997
15998
15999 # as_fn_mkdir_p
16000 # -------------
16001 # Create "$as_dir" as a directory, including parents if necessary.
16002 as_fn_mkdir_p ()
16003 {
16004
16005 case $as_dir in #(
16006 -*) as_dir=./$as_dir;;
16007 esac
16008 test -d "$as_dir" || eval $as_mkdir_p || {
16009 as_dirs=
16010 while :; do
16011 case $as_dir in #(
16012 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16013 *) as_qdir=$as_dir;;
16014 esac
16015 as_dirs="'$as_qdir' $as_dirs"
16016 as_dir=`$as_dirname -- "$as_dir" ||
16017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16018 X"$as_dir" : 'X\(//\)[^/]' \| \
16019 X"$as_dir" : 'X\(//\)$' \| \
16020 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16021 $as_echo X"$as_dir" |
16022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16023 s//\1/
16024 q
16025 }
16026 /^X\(\/\/\)[^/].*/{
16027 s//\1/
16028 q
16029 }
16030 /^X\(\/\/\)$/{
16031 s//\1/
16032 q
16033 }
16034 /^X\(\/\).*/{
16035 s//\1/
16036 q
16037 }
16038 s/.*/./; q'`
16039 test -d "$as_dir" && break
16040 done
16041 test -z "$as_dirs" || eval "mkdir $as_dirs"
16042 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16043
16044
16045 } # as_fn_mkdir_p
16046 if mkdir -p . 2>/dev/null; then
16047 as_mkdir_p='mkdir -p "$as_dir"'
16048 else
16049 test -d ./-p && rmdir ./-p
16050 as_mkdir_p=false
16051 fi
16052
16053
16054 # as_fn_executable_p FILE
16055 # -----------------------
16056 # Test if FILE is an executable regular file.
16057 as_fn_executable_p ()
16058 {
16059 test -f "$1" && test -x "$1"
16060 } # as_fn_executable_p
16061 as_test_x='test -x'
16062 as_executable_p=as_fn_executable_p
16063
16064 # Sed expression to map a string onto a valid CPP name.
16065 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16066
16067 # Sed expression to map a string onto a valid variable name.
16068 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16069
16070
16071 exec 6>&1
16072 ## ----------------------------------- ##
16073 ## Main body of $CONFIG_STATUS script. ##
16074 ## ----------------------------------- ##
16075 _ASEOF
16076 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16077
16078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16079 # Save the log message, to keep $0 and so on meaningful, and to
16080 # report actual input values of CONFIG_FILES etc. instead of their
16081 # values after options handling.
16082 ac_log="
16083 This file was extended by gprofng $as_me 2.41.50, which was
16084 generated by GNU Autoconf 2.69. Invocation command line was
16085
16086 CONFIG_FILES = $CONFIG_FILES
16087 CONFIG_HEADERS = $CONFIG_HEADERS
16088 CONFIG_LINKS = $CONFIG_LINKS
16089 CONFIG_COMMANDS = $CONFIG_COMMANDS
16090 $ $0 $@
16091
16092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16093 "
16094
16095 _ACEOF
16096
16097 case $ac_config_files in *"
16098 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16099 esac
16100
16101 case $ac_config_headers in *"
16102 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16103 esac
16104
16105
16106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16107 # Files that config.status was made for.
16108 config_files="$ac_config_files"
16109 config_headers="$ac_config_headers"
16110 config_commands="$ac_config_commands"
16111
16112 _ACEOF
16113
16114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16115 ac_cs_usage="\
16116 \`$as_me' instantiates files and other configuration actions
16117 from templates according to the current configuration. Unless the files
16118 and actions are specified as TAGs, all are instantiated by default.
16119
16120 Usage: $0 [OPTION]... [TAG]...
16121
16122 -h, --help print this help, then exit
16123 -V, --version print version number and configuration settings, then exit
16124 --config print configuration, then exit
16125 -q, --quiet, --silent
16126 do not print progress messages
16127 -d, --debug don't remove temporary files
16128 --recheck update $as_me by reconfiguring in the same conditions
16129 --file=FILE[:TEMPLATE]
16130 instantiate the configuration file FILE
16131 --header=FILE[:TEMPLATE]
16132 instantiate the configuration header FILE
16133
16134 Configuration files:
16135 $config_files
16136
16137 Configuration headers:
16138 $config_headers
16139
16140 Configuration commands:
16141 $config_commands
16142
16143 Report bugs to the package provider."
16144
16145 _ACEOF
16146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16147 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16148 ac_cs_version="\\
16149 gprofng config.status 2.41.50
16150 configured by $0, generated by GNU Autoconf 2.69,
16151 with options \\"\$ac_cs_config\\"
16152
16153 Copyright (C) 2012 Free Software Foundation, Inc.
16154 This config.status script is free software; the Free Software Foundation
16155 gives unlimited permission to copy, distribute and modify it."
16156
16157 ac_pwd='$ac_pwd'
16158 srcdir='$srcdir'
16159 INSTALL='$INSTALL'
16160 MKDIR_P='$MKDIR_P'
16161 AWK='$AWK'
16162 test -n "\$AWK" || AWK=awk
16163 _ACEOF
16164
16165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16166 # The default lists apply if the user does not specify any file.
16167 ac_need_defaults=:
16168 while test $# != 0
16169 do
16170 case $1 in
16171 --*=?*)
16172 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16173 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16174 ac_shift=:
16175 ;;
16176 --*=)
16177 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16178 ac_optarg=
16179 ac_shift=:
16180 ;;
16181 *)
16182 ac_option=$1
16183 ac_optarg=$2
16184 ac_shift=shift
16185 ;;
16186 esac
16187
16188 case $ac_option in
16189 # Handling of the options.
16190 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16191 ac_cs_recheck=: ;;
16192 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16193 $as_echo "$ac_cs_version"; exit ;;
16194 --config | --confi | --conf | --con | --co | --c )
16195 $as_echo "$ac_cs_config"; exit ;;
16196 --debug | --debu | --deb | --de | --d | -d )
16197 debug=: ;;
16198 --file | --fil | --fi | --f )
16199 $ac_shift
16200 case $ac_optarg in
16201 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16202 '') as_fn_error $? "missing file argument" ;;
16203 esac
16204 as_fn_append CONFIG_FILES " '$ac_optarg'"
16205 ac_need_defaults=false;;
16206 --header | --heade | --head | --hea )
16207 $ac_shift
16208 case $ac_optarg in
16209 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16210 esac
16211 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16212 ac_need_defaults=false;;
16213 --he | --h)
16214 # Conflict between --help and --header
16215 as_fn_error $? "ambiguous option: \`$1'
16216 Try \`$0 --help' for more information.";;
16217 --help | --hel | -h )
16218 $as_echo "$ac_cs_usage"; exit ;;
16219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16220 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16221 ac_cs_silent=: ;;
16222
16223 # This is an error.
16224 -*) as_fn_error $? "unrecognized option: \`$1'
16225 Try \`$0 --help' for more information." ;;
16226
16227 *) as_fn_append ac_config_targets " $1"
16228 ac_need_defaults=false ;;
16229
16230 esac
16231 shift
16232 done
16233
16234 ac_configure_extra_args=
16235
16236 if $ac_cs_silent; then
16237 exec 6>/dev/null
16238 ac_configure_extra_args="$ac_configure_extra_args --silent"
16239 fi
16240
16241 _ACEOF
16242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16243 if \$ac_cs_recheck; then
16244 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16245 shift
16246 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16247 CONFIG_SHELL='$SHELL'
16248 export CONFIG_SHELL
16249 exec "\$@"
16250 fi
16251
16252 _ACEOF
16253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16254 exec 5>>config.log
16255 {
16256 echo
16257 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16258 ## Running $as_me. ##
16259 _ASBOX
16260 $as_echo "$ac_log"
16261 } >&5
16262
16263 _ACEOF
16264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16265 #
16266 # INIT-COMMANDS
16267 #
16268 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16269
16270
16271 # The HP-UX ksh and POSIX shell print the target directory to stdout
16272 # if CDPATH is set.
16273 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16274
16275 sed_quote_subst='$sed_quote_subst'
16276 double_quote_subst='$double_quote_subst'
16277 delay_variable_subst='$delay_variable_subst'
16278 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16279 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16280 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16281 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16282 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16283 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16284 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16285 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16286 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16287 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16288 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16289 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16290 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16291 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16292 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16293 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16294 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16295 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16296 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16297 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16298 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16299 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16300 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16301 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16302 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16303 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16304 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16305 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16306 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16307 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16308 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16309 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16310 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16311 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16312 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16313 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16314 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16315 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16316 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16317 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16318 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16319 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16320 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16321 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16322 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16323 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16324 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16325 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16326 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16327 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16328 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16329 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16330 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16331 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16332 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16333 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16334 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16335 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16336 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16337 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16338 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16339 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16340 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16341 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16342 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16343 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16344 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16345 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16346 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16347 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16348 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16349 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16350 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16351 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16352 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16353 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16354 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16355 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16356 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16357 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16358 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16359 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16360 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16361 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16362 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16363 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16364 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16365 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16366 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16367 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16368 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16369 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16370 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16371 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16372 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16373 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16374 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16375 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16376 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16377 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16378 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16379 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16380 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16381 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16382 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16383 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16384 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16385 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16386 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16387 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16388 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16389 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16390 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16391 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16392 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16393 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16394 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16395 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16396 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16397 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16398 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16399 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16400 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16401 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16402 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16403 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16404 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16405 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16406 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16407 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16408 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16409 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16410 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16411 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16412 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16413 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16414 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16415 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16416 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16417 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16418 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16419 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16420 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16421 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16422 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16423 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16424 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16425 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16426 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16427 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16428 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16429 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16430 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16431 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16432 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16433 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16434 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16435 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16436 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16437 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16438 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16439 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16440 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16441 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16442 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16443 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16444 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16445 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16446 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16447 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16448 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16449 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16450 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16451 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16452 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16453
16454 LTCC='$LTCC'
16455 LTCFLAGS='$LTCFLAGS'
16456 compiler='$compiler_DEFAULT'
16457
16458 # A function that is used when there is no print builtin or printf.
16459 func_fallback_echo ()
16460 {
16461 eval 'cat <<_LTECHO_EOF
16462 \$1
16463 _LTECHO_EOF'
16464 }
16465
16466 # Quote evaled strings.
16467 for var in SHELL \
16468 ECHO \
16469 SED \
16470 GREP \
16471 EGREP \
16472 FGREP \
16473 LD \
16474 NM \
16475 LN_S \
16476 lt_SP2NL \
16477 lt_NL2SP \
16478 reload_flag \
16479 OBJDUMP \
16480 deplibs_check_method \
16481 file_magic_cmd \
16482 AR \
16483 AR_FLAGS \
16484 STRIP \
16485 RANLIB \
16486 CC \
16487 CFLAGS \
16488 compiler \
16489 lt_cv_sys_global_symbol_pipe \
16490 lt_cv_sys_global_symbol_to_cdecl \
16491 lt_cv_sys_global_symbol_to_c_name_address \
16492 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16493 lt_prog_compiler_no_builtin_flag \
16494 lt_prog_compiler_wl \
16495 lt_prog_compiler_pic \
16496 lt_prog_compiler_static \
16497 lt_cv_prog_compiler_c_o \
16498 need_locks \
16499 DSYMUTIL \
16500 NMEDIT \
16501 LIPO \
16502 OTOOL \
16503 OTOOL64 \
16504 shrext_cmds \
16505 export_dynamic_flag_spec \
16506 whole_archive_flag_spec \
16507 compiler_needs_object \
16508 with_gnu_ld \
16509 allow_undefined_flag \
16510 no_undefined_flag \
16511 hardcode_libdir_flag_spec \
16512 hardcode_libdir_flag_spec_ld \
16513 hardcode_libdir_separator \
16514 fix_srcfile_path \
16515 exclude_expsyms \
16516 include_expsyms \
16517 file_list_spec \
16518 variables_saved_for_relink \
16519 libname_spec \
16520 library_names_spec \
16521 soname_spec \
16522 install_override_mode \
16523 finish_eval \
16524 old_striplib \
16525 striplib \
16526 compiler_lib_search_dirs \
16527 predep_objects \
16528 postdep_objects \
16529 predeps \
16530 postdeps \
16531 compiler_lib_search_path \
16532 LD_CXX \
16533 reload_flag_CXX \
16534 compiler_CXX \
16535 lt_prog_compiler_no_builtin_flag_CXX \
16536 lt_prog_compiler_wl_CXX \
16537 lt_prog_compiler_pic_CXX \
16538 lt_prog_compiler_static_CXX \
16539 lt_cv_prog_compiler_c_o_CXX \
16540 export_dynamic_flag_spec_CXX \
16541 whole_archive_flag_spec_CXX \
16542 compiler_needs_object_CXX \
16543 with_gnu_ld_CXX \
16544 allow_undefined_flag_CXX \
16545 no_undefined_flag_CXX \
16546 hardcode_libdir_flag_spec_CXX \
16547 hardcode_libdir_flag_spec_ld_CXX \
16548 hardcode_libdir_separator_CXX \
16549 fix_srcfile_path_CXX \
16550 exclude_expsyms_CXX \
16551 include_expsyms_CXX \
16552 file_list_spec_CXX \
16553 compiler_lib_search_dirs_CXX \
16554 predep_objects_CXX \
16555 postdep_objects_CXX \
16556 predeps_CXX \
16557 postdeps_CXX \
16558 compiler_lib_search_path_CXX; do
16559 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16560 *[\\\\\\\`\\"\\\$]*)
16561 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16562 ;;
16563 *)
16564 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16565 ;;
16566 esac
16567 done
16568
16569 # Double-quote double-evaled strings.
16570 for var in reload_cmds \
16571 old_postinstall_cmds \
16572 old_postuninstall_cmds \
16573 old_archive_cmds \
16574 extract_expsyms_cmds \
16575 old_archive_from_new_cmds \
16576 old_archive_from_expsyms_cmds \
16577 archive_cmds \
16578 archive_expsym_cmds \
16579 module_cmds \
16580 module_expsym_cmds \
16581 export_symbols_cmds \
16582 prelink_cmds \
16583 postinstall_cmds \
16584 postuninstall_cmds \
16585 finish_cmds \
16586 sys_lib_search_path_spec \
16587 sys_lib_dlsearch_path_spec \
16588 reload_cmds_CXX \
16589 old_archive_cmds_CXX \
16590 old_archive_from_new_cmds_CXX \
16591 old_archive_from_expsyms_cmds_CXX \
16592 archive_cmds_CXX \
16593 archive_expsym_cmds_CXX \
16594 module_cmds_CXX \
16595 module_expsym_cmds_CXX \
16596 export_symbols_cmds_CXX \
16597 prelink_cmds_CXX; do
16598 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16599 *[\\\\\\\`\\"\\\$]*)
16600 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16601 ;;
16602 *)
16603 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16604 ;;
16605 esac
16606 done
16607
16608 ac_aux_dir='$ac_aux_dir'
16609 xsi_shell='$xsi_shell'
16610 lt_shell_append='$lt_shell_append'
16611
16612 # See if we are running on zsh, and set the options which allow our
16613 # commands through without removal of \ escapes INIT.
16614 if test -n "\${ZSH_VERSION+set}" ; then
16615 setopt NO_GLOB_SUBST
16616 fi
16617
16618
16619 PACKAGE='$PACKAGE'
16620 VERSION='$VERSION'
16621 TIMESTAMP='$TIMESTAMP'
16622 RM='$RM'
16623 ofile='$ofile'
16624
16625
16626
16627
16628
16629
16630 _ACEOF
16631
16632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16633
16634 # Handling of arguments.
16635 for ac_config_target in $ac_config_targets
16636 do
16637 case $ac_config_target in
16638 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16639 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16640 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16641 "lib-config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib-config.h:../common/lib-config.h.in" ;;
16642
16643 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16644 esac
16645 done
16646
16647
16648 # If the user did not use the arguments to specify the items to instantiate,
16649 # then the envvar interface is used. Set only those that are not.
16650 # We use the long form for the default assignment because of an extremely
16651 # bizarre bug on SunOS 4.1.3.
16652 if $ac_need_defaults; then
16653 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16654 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16655 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16656 fi
16657
16658 # Have a temporary directory for convenience. Make it in the build tree
16659 # simply because there is no reason against having it here, and in addition,
16660 # creating and moving files from /tmp can sometimes cause problems.
16661 # Hook for its removal unless debugging.
16662 # Note that there is a small window in which the directory will not be cleaned:
16663 # after its creation but before its name has been assigned to `$tmp'.
16664 $debug ||
16665 {
16666 tmp= ac_tmp=
16667 trap 'exit_status=$?
16668 : "${ac_tmp:=$tmp}"
16669 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16670 ' 0
16671 trap 'as_fn_exit 1' 1 2 13 15
16672 }
16673 # Create a (secure) tmp directory for tmp files.
16674
16675 {
16676 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16677 test -d "$tmp"
16678 } ||
16679 {
16680 tmp=./conf$$-$RANDOM
16681 (umask 077 && mkdir "$tmp")
16682 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16683 ac_tmp=$tmp
16684
16685 # Set up the scripts for CONFIG_FILES section.
16686 # No need to generate them if there are no CONFIG_FILES.
16687 # This happens for instance with `./config.status config.h'.
16688 if test -n "$CONFIG_FILES"; then
16689
16690
16691 ac_cr=`echo X | tr X '\015'`
16692 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16693 # But we know of no other shell where ac_cr would be empty at this
16694 # point, so we can use a bashism as a fallback.
16695 if test "x$ac_cr" = x; then
16696 eval ac_cr=\$\'\\r\'
16697 fi
16698 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16699 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16700 ac_cs_awk_cr='\\r'
16701 else
16702 ac_cs_awk_cr=$ac_cr
16703 fi
16704
16705 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16706 _ACEOF
16707
16708
16709 {
16710 echo "cat >conf$$subs.awk <<_ACEOF" &&
16711 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16712 echo "_ACEOF"
16713 } >conf$$subs.sh ||
16714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16715 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16716 ac_delim='%!_!# '
16717 for ac_last_try in false false false false false :; do
16718 . ./conf$$subs.sh ||
16719 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16720
16721 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16722 if test $ac_delim_n = $ac_delim_num; then
16723 break
16724 elif $ac_last_try; then
16725 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16726 else
16727 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16728 fi
16729 done
16730 rm -f conf$$subs.sh
16731
16732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16733 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16734 _ACEOF
16735 sed -n '
16736 h
16737 s/^/S["/; s/!.*/"]=/
16738 p
16739 g
16740 s/^[^!]*!//
16741 :repl
16742 t repl
16743 s/'"$ac_delim"'$//
16744 t delim
16745 :nl
16746 h
16747 s/\(.\{148\}\)..*/\1/
16748 t more1
16749 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16750 p
16751 n
16752 b repl
16753 :more1
16754 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16755 p
16756 g
16757 s/.\{148\}//
16758 t nl
16759 :delim
16760 h
16761 s/\(.\{148\}\)..*/\1/
16762 t more2
16763 s/["\\]/\\&/g; s/^/"/; s/$/"/
16764 p
16765 b
16766 :more2
16767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16768 p
16769 g
16770 s/.\{148\}//
16771 t delim
16772 ' <conf$$subs.awk | sed '
16773 /^[^""]/{
16774 N
16775 s/\n//
16776 }
16777 ' >>$CONFIG_STATUS || ac_write_fail=1
16778 rm -f conf$$subs.awk
16779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16780 _ACAWK
16781 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16782 for (key in S) S_is_set[key] = 1
16783 FS = "\a"
16784
16785 }
16786 {
16787 line = $ 0
16788 nfields = split(line, field, "@")
16789 substed = 0
16790 len = length(field[1])
16791 for (i = 2; i < nfields; i++) {
16792 key = field[i]
16793 keylen = length(key)
16794 if (S_is_set[key]) {
16795 value = S[key]
16796 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16797 len += length(value) + length(field[++i])
16798 substed = 1
16799 } else
16800 len += 1 + keylen
16801 }
16802
16803 print line
16804 }
16805
16806 _ACAWK
16807 _ACEOF
16808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16809 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16810 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16811 else
16812 cat
16813 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16814 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16815 _ACEOF
16816
16817 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16818 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16819 # trailing colons and then remove the whole line if VPATH becomes empty
16820 # (actually we leave an empty line to preserve line numbers).
16821 if test "x$srcdir" = x.; then
16822 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16823 h
16824 s///
16825 s/^/:/
16826 s/[ ]*$/:/
16827 s/:\$(srcdir):/:/g
16828 s/:\${srcdir}:/:/g
16829 s/:@srcdir@:/:/g
16830 s/^:*//
16831 s/:*$//
16832 x
16833 s/\(=[ ]*\).*/\1/
16834 G
16835 s/\n//
16836 s/^[^=]*=[ ]*$//
16837 }'
16838 fi
16839
16840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16841 fi # test -n "$CONFIG_FILES"
16842
16843 # Set up the scripts for CONFIG_HEADERS section.
16844 # No need to generate them if there are no CONFIG_HEADERS.
16845 # This happens for instance with `./config.status Makefile'.
16846 if test -n "$CONFIG_HEADERS"; then
16847 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16848 BEGIN {
16849 _ACEOF
16850
16851 # Transform confdefs.h into an awk script `defines.awk', embedded as
16852 # here-document in config.status, that substitutes the proper values into
16853 # config.h.in to produce config.h.
16854
16855 # Create a delimiter string that does not exist in confdefs.h, to ease
16856 # handling of long lines.
16857 ac_delim='%!_!# '
16858 for ac_last_try in false false :; do
16859 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16860 if test -z "$ac_tt"; then
16861 break
16862 elif $ac_last_try; then
16863 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16864 else
16865 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16866 fi
16867 done
16868
16869 # For the awk script, D is an array of macro values keyed by name,
16870 # likewise P contains macro parameters if any. Preserve backslash
16871 # newline sequences.
16872
16873 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16874 sed -n '
16875 s/.\{148\}/&'"$ac_delim"'/g
16876 t rset
16877 :rset
16878 s/^[ ]*#[ ]*define[ ][ ]*/ /
16879 t def
16880 d
16881 :def
16882 s/\\$//
16883 t bsnl
16884 s/["\\]/\\&/g
16885 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16886 D["\1"]=" \3"/p
16887 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16888 d
16889 :bsnl
16890 s/["\\]/\\&/g
16891 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16892 D["\1"]=" \3\\\\\\n"\\/p
16893 t cont
16894 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16895 t cont
16896 d
16897 :cont
16898 n
16899 s/.\{148\}/&'"$ac_delim"'/g
16900 t clear
16901 :clear
16902 s/\\$//
16903 t bsnlc
16904 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16905 d
16906 :bsnlc
16907 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16908 b cont
16909 ' <confdefs.h | sed '
16910 s/'"$ac_delim"'/"\\\
16911 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16912
16913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16914 for (key in D) D_is_set[key] = 1
16915 FS = "\a"
16916 }
16917 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16918 line = \$ 0
16919 split(line, arg, " ")
16920 if (arg[1] == "#") {
16921 defundef = arg[2]
16922 mac1 = arg[3]
16923 } else {
16924 defundef = substr(arg[1], 2)
16925 mac1 = arg[2]
16926 }
16927 split(mac1, mac2, "(") #)
16928 macro = mac2[1]
16929 prefix = substr(line, 1, index(line, defundef) - 1)
16930 if (D_is_set[macro]) {
16931 # Preserve the white space surrounding the "#".
16932 print prefix "define", macro P[macro] D[macro]
16933 next
16934 } else {
16935 # Replace #undef with comments. This is necessary, for example,
16936 # in the case of _POSIX_SOURCE, which is predefined and required
16937 # on some systems where configure will not decide to define it.
16938 if (defundef == "undef") {
16939 print "/*", prefix defundef, macro, "*/"
16940 next
16941 }
16942 }
16943 }
16944 { print }
16945 _ACAWK
16946 _ACEOF
16947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16948 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16949 fi # test -n "$CONFIG_HEADERS"
16950
16951
16952 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16953 shift
16954 for ac_tag
16955 do
16956 case $ac_tag in
16957 :[FHLC]) ac_mode=$ac_tag; continue;;
16958 esac
16959 case $ac_mode$ac_tag in
16960 :[FHL]*:*);;
16961 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16962 :[FH]-) ac_tag=-:-;;
16963 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16964 esac
16965 ac_save_IFS=$IFS
16966 IFS=:
16967 set x $ac_tag
16968 IFS=$ac_save_IFS
16969 shift
16970 ac_file=$1
16971 shift
16972
16973 case $ac_mode in
16974 :L) ac_source=$1;;
16975 :[FH])
16976 ac_file_inputs=
16977 for ac_f
16978 do
16979 case $ac_f in
16980 -) ac_f="$ac_tmp/stdin";;
16981 *) # Look for the file first in the build tree, then in the source tree
16982 # (if the path is not absolute). The absolute path cannot be DOS-style,
16983 # because $ac_f cannot contain `:'.
16984 test -f "$ac_f" ||
16985 case $ac_f in
16986 [\\/$]*) false;;
16987 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16988 esac ||
16989 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16990 esac
16991 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16992 as_fn_append ac_file_inputs " '$ac_f'"
16993 done
16994
16995 # Let's still pretend it is `configure' which instantiates (i.e., don't
16996 # use $as_me), people would be surprised to read:
16997 # /* config.h. Generated by config.status. */
16998 configure_input='Generated from '`
16999 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17000 `' by configure.'
17001 if test x"$ac_file" != x-; then
17002 configure_input="$ac_file. $configure_input"
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17004 $as_echo "$as_me: creating $ac_file" >&6;}
17005 fi
17006 # Neutralize special characters interpreted by sed in replacement strings.
17007 case $configure_input in #(
17008 *\&* | *\|* | *\\* )
17009 ac_sed_conf_input=`$as_echo "$configure_input" |
17010 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17011 *) ac_sed_conf_input=$configure_input;;
17012 esac
17013
17014 case $ac_tag in
17015 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17017 esac
17018 ;;
17019 esac
17020
17021 ac_dir=`$as_dirname -- "$ac_file" ||
17022 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17023 X"$ac_file" : 'X\(//\)[^/]' \| \
17024 X"$ac_file" : 'X\(//\)$' \| \
17025 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17026 $as_echo X"$ac_file" |
17027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17028 s//\1/
17029 q
17030 }
17031 /^X\(\/\/\)[^/].*/{
17032 s//\1/
17033 q
17034 }
17035 /^X\(\/\/\)$/{
17036 s//\1/
17037 q
17038 }
17039 /^X\(\/\).*/{
17040 s//\1/
17041 q
17042 }
17043 s/.*/./; q'`
17044 as_dir="$ac_dir"; as_fn_mkdir_p
17045 ac_builddir=.
17046
17047 case "$ac_dir" in
17048 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17049 *)
17050 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17051 # A ".." for each directory in $ac_dir_suffix.
17052 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17053 case $ac_top_builddir_sub in
17054 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17055 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17056 esac ;;
17057 esac
17058 ac_abs_top_builddir=$ac_pwd
17059 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17060 # for backward compatibility:
17061 ac_top_builddir=$ac_top_build_prefix
17062
17063 case $srcdir in
17064 .) # We are building in place.
17065 ac_srcdir=.
17066 ac_top_srcdir=$ac_top_builddir_sub
17067 ac_abs_top_srcdir=$ac_pwd ;;
17068 [\\/]* | ?:[\\/]* ) # Absolute name.
17069 ac_srcdir=$srcdir$ac_dir_suffix;
17070 ac_top_srcdir=$srcdir
17071 ac_abs_top_srcdir=$srcdir ;;
17072 *) # Relative name.
17073 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17074 ac_top_srcdir=$ac_top_build_prefix$srcdir
17075 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17076 esac
17077 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17078
17079
17080 case $ac_mode in
17081 :F)
17082 #
17083 # CONFIG_FILE
17084 #
17085
17086 case $INSTALL in
17087 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17088 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17089 esac
17090 ac_MKDIR_P=$MKDIR_P
17091 case $MKDIR_P in
17092 [\\/$]* | ?:[\\/]* ) ;;
17093 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17094 esac
17095 _ACEOF
17096
17097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17098 # If the template does not know about datarootdir, expand it.
17099 # FIXME: This hack should be removed a few years after 2.60.
17100 ac_datarootdir_hack=; ac_datarootdir_seen=
17101 ac_sed_dataroot='
17102 /datarootdir/ {
17103 p
17104 q
17105 }
17106 /@datadir@/p
17107 /@docdir@/p
17108 /@infodir@/p
17109 /@localedir@/p
17110 /@mandir@/p'
17111 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17112 *datarootdir*) ac_datarootdir_seen=yes;;
17113 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17115 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17116 _ACEOF
17117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17118 ac_datarootdir_hack='
17119 s&@datadir@&$datadir&g
17120 s&@docdir@&$docdir&g
17121 s&@infodir@&$infodir&g
17122 s&@localedir@&$localedir&g
17123 s&@mandir@&$mandir&g
17124 s&\\\${datarootdir}&$datarootdir&g' ;;
17125 esac
17126 _ACEOF
17127
17128 # Neutralize VPATH when `$srcdir' = `.'.
17129 # Shell code in configure.ac might set extrasub.
17130 # FIXME: do we really want to maintain this feature?
17131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17132 ac_sed_extra="$ac_vpsub
17133 $extrasub
17134 _ACEOF
17135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17136 :t
17137 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17138 s|@configure_input@|$ac_sed_conf_input|;t t
17139 s&@top_builddir@&$ac_top_builddir_sub&;t t
17140 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17141 s&@srcdir@&$ac_srcdir&;t t
17142 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17143 s&@top_srcdir@&$ac_top_srcdir&;t t
17144 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17145 s&@builddir@&$ac_builddir&;t t
17146 s&@abs_builddir@&$ac_abs_builddir&;t t
17147 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17148 s&@INSTALL@&$ac_INSTALL&;t t
17149 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17150 $ac_datarootdir_hack
17151 "
17152 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17153 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17154
17155 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17156 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17157 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17158 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17160 which seems to be undefined. Please make sure it is defined" >&5
17161 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17162 which seems to be undefined. Please make sure it is defined" >&2;}
17163
17164 rm -f "$ac_tmp/stdin"
17165 case $ac_file in
17166 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17167 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17168 esac \
17169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17170 ;;
17171 :H)
17172 #
17173 # CONFIG_HEADER
17174 #
17175 if test x"$ac_file" != x-; then
17176 {
17177 $as_echo "/* $configure_input */" \
17178 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17179 } >"$ac_tmp/config.h" \
17180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17181 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17183 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17184 else
17185 rm -f "$ac_file"
17186 mv "$ac_tmp/config.h" "$ac_file" \
17187 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17188 fi
17189 else
17190 $as_echo "/* $configure_input */" \
17191 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17192 || as_fn_error $? "could not create -" "$LINENO" 5
17193 fi
17194 # Compute "$ac_file"'s index in $config_headers.
17195 _am_arg="$ac_file"
17196 _am_stamp_count=1
17197 for _am_header in $config_headers :; do
17198 case $_am_header in
17199 $_am_arg | $_am_arg:* )
17200 break ;;
17201 * )
17202 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17203 esac
17204 done
17205 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17206 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17207 X"$_am_arg" : 'X\(//\)[^/]' \| \
17208 X"$_am_arg" : 'X\(//\)$' \| \
17209 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17210 $as_echo X"$_am_arg" |
17211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17212 s//\1/
17213 q
17214 }
17215 /^X\(\/\/\)[^/].*/{
17216 s//\1/
17217 q
17218 }
17219 /^X\(\/\/\)$/{
17220 s//\1/
17221 q
17222 }
17223 /^X\(\/\).*/{
17224 s//\1/
17225 q
17226 }
17227 s/.*/./; q'`/stamp-h$_am_stamp_count
17228 ;;
17229
17230 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17231 $as_echo "$as_me: executing $ac_file commands" >&6;}
17232 ;;
17233 esac
17234
17235
17236 case $ac_file$ac_mode in
17237 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17238 # Older Autoconf quotes --file arguments for eval, but not when files
17239 # are listed without --file. Let's play safe and only enable the eval
17240 # if we detect the quoting.
17241 case $CONFIG_FILES in
17242 *\'*) eval set x "$CONFIG_FILES" ;;
17243 *) set x $CONFIG_FILES ;;
17244 esac
17245 shift
17246 for mf
17247 do
17248 # Strip MF so we end up with the name of the file.
17249 mf=`echo "$mf" | sed -e 's/:.*$//'`
17250 # Check whether this is an Automake generated Makefile or not.
17251 # We used to match only the files named 'Makefile.in', but
17252 # some people rename them; so instead we look at the file content.
17253 # Grep'ing the first line is not enough: some people post-process
17254 # each Makefile.in and add a new line on top of each file to say so.
17255 # Grep'ing the whole file is not good either: AIX grep has a line
17256 # limit of 2048, but all sed's we know have understand at least 4000.
17257 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17258 dirpart=`$as_dirname -- "$mf" ||
17259 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17260 X"$mf" : 'X\(//\)[^/]' \| \
17261 X"$mf" : 'X\(//\)$' \| \
17262 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17263 $as_echo X"$mf" |
17264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17265 s//\1/
17266 q
17267 }
17268 /^X\(\/\/\)[^/].*/{
17269 s//\1/
17270 q
17271 }
17272 /^X\(\/\/\)$/{
17273 s//\1/
17274 q
17275 }
17276 /^X\(\/\).*/{
17277 s//\1/
17278 q
17279 }
17280 s/.*/./; q'`
17281 else
17282 continue
17283 fi
17284 # Extract the definition of DEPDIR, am__include, and am__quote
17285 # from the Makefile without running 'make'.
17286 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17287 test -z "$DEPDIR" && continue
17288 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17289 test -z "$am__include" && continue
17290 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17291 # Find all dependency output files, they are included files with
17292 # $(DEPDIR) in their names. We invoke sed twice because it is the
17293 # simplest approach to changing $(DEPDIR) to its actual value in the
17294 # expansion.
17295 for file in `sed -n "
17296 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17297 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17298 # Make sure the directory exists.
17299 test -f "$dirpart/$file" && continue
17300 fdir=`$as_dirname -- "$file" ||
17301 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17302 X"$file" : 'X\(//\)[^/]' \| \
17303 X"$file" : 'X\(//\)$' \| \
17304 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17305 $as_echo X"$file" |
17306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17307 s//\1/
17308 q
17309 }
17310 /^X\(\/\/\)[^/].*/{
17311 s//\1/
17312 q
17313 }
17314 /^X\(\/\/\)$/{
17315 s//\1/
17316 q
17317 }
17318 /^X\(\/\).*/{
17319 s//\1/
17320 q
17321 }
17322 s/.*/./; q'`
17323 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17324 # echo "creating $dirpart/$file"
17325 echo '# dummy' > "$dirpart/$file"
17326 done
17327 done
17328 }
17329 ;;
17330 "libtool":C)
17331
17332 # See if we are running on zsh, and set the options which allow our
17333 # commands through without removal of \ escapes.
17334 if test -n "${ZSH_VERSION+set}" ; then
17335 setopt NO_GLOB_SUBST
17336 fi
17337
17338 cfgfile="${ofile}T"
17339 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17340 $RM "$cfgfile"
17341
17342 cat <<_LT_EOF >> "$cfgfile"
17343 #! $SHELL
17344
17345 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17346 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17347 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17348 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17349 #
17350 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17351 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17352 # Written by Gordon Matzigkeit, 1996
17353 #
17354 # This file is part of GNU Libtool.
17355 #
17356 # GNU Libtool is free software; you can redistribute it and/or
17357 # modify it under the terms of the GNU General Public License as
17358 # published by the Free Software Foundation; either version 2 of
17359 # the License, or (at your option) any later version.
17360 #
17361 # As a special exception to the GNU General Public License,
17362 # if you distribute this file as part of a program or library that
17363 # is built using GNU Libtool, you may include this file under the
17364 # same distribution terms that you use for the rest of that program.
17365 #
17366 # GNU Libtool is distributed in the hope that it will be useful,
17367 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17368 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17369 # GNU General Public License for more details.
17370 #
17371 # You should have received a copy of the GNU General Public License
17372 # along with GNU Libtool; see the file COPYING. If not, a copy
17373 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17374 # obtained by writing to the Free Software Foundation, Inc.,
17375 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17376
17377
17378 # The names of the tagged configurations supported by this script.
17379 available_tags="CXX "
17380
17381 # ### BEGIN LIBTOOL CONFIG
17382
17383 # Which release of libtool.m4 was used?
17384 macro_version=$macro_version
17385 macro_revision=$macro_revision
17386
17387 # Whether or not to build shared libraries.
17388 build_libtool_libs=$enable_shared
17389
17390 # Whether or not to build static libraries.
17391 build_old_libs=$enable_static
17392
17393 # What type of objects to build.
17394 pic_mode=$pic_mode
17395
17396 # Whether or not to optimize for fast installation.
17397 fast_install=$enable_fast_install
17398
17399 # Shell to use when invoking shell scripts.
17400 SHELL=$lt_SHELL
17401
17402 # An echo program that protects backslashes.
17403 ECHO=$lt_ECHO
17404
17405 # The host system.
17406 host_alias=$host_alias
17407 host=$host
17408 host_os=$host_os
17409
17410 # The build system.
17411 build_alias=$build_alias
17412 build=$build
17413 build_os=$build_os
17414
17415 # A sed program that does not truncate output.
17416 SED=$lt_SED
17417
17418 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17419 Xsed="\$SED -e 1s/^X//"
17420
17421 # A grep program that handles long lines.
17422 GREP=$lt_GREP
17423
17424 # An ERE matcher.
17425 EGREP=$lt_EGREP
17426
17427 # A literal string matcher.
17428 FGREP=$lt_FGREP
17429
17430 # A BSD- or MS-compatible name lister.
17431 NM=$lt_NM
17432
17433 # Whether we need soft or hard links.
17434 LN_S=$lt_LN_S
17435
17436 # What is the maximum length of a command?
17437 max_cmd_len=$max_cmd_len
17438
17439 # Object file suffix (normally "o").
17440 objext=$ac_objext
17441
17442 # Executable file suffix (normally "").
17443 exeext=$exeext
17444
17445 # whether the shell understands "unset".
17446 lt_unset=$lt_unset
17447
17448 # turn spaces into newlines.
17449 SP2NL=$lt_lt_SP2NL
17450
17451 # turn newlines into spaces.
17452 NL2SP=$lt_lt_NL2SP
17453
17454 # An object symbol dumper.
17455 OBJDUMP=$lt_OBJDUMP
17456
17457 # Method to check whether dependent libraries are shared objects.
17458 deplibs_check_method=$lt_deplibs_check_method
17459
17460 # Command to use when deplibs_check_method == "file_magic".
17461 file_magic_cmd=$lt_file_magic_cmd
17462
17463 # The archiver.
17464 AR=$lt_AR
17465 AR_FLAGS=$lt_AR_FLAGS
17466
17467 # A symbol stripping program.
17468 STRIP=$lt_STRIP
17469
17470 # Commands used to install an old-style archive.
17471 RANLIB=$lt_RANLIB
17472 old_postinstall_cmds=$lt_old_postinstall_cmds
17473 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17474
17475 # Whether to use a lock for old archive extraction.
17476 lock_old_archive_extraction=$lock_old_archive_extraction
17477
17478 # A C compiler.
17479 LTCC=$lt_CC
17480
17481 # LTCC compiler flags.
17482 LTCFLAGS=$lt_CFLAGS
17483
17484 # Take the output of nm and produce a listing of raw symbols and C names.
17485 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17486
17487 # Transform the output of nm in a proper C declaration.
17488 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17489
17490 # Transform the output of nm in a C name address pair.
17491 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17492
17493 # Transform the output of nm in a C name address pair when lib prefix is needed.
17494 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17495
17496 # The name of the directory that contains temporary libtool files.
17497 objdir=$objdir
17498
17499 # Used to examine libraries when file_magic_cmd begins with "file".
17500 MAGIC_CMD=$MAGIC_CMD
17501
17502 # Must we lock files when doing compilation?
17503 need_locks=$lt_need_locks
17504
17505 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17506 DSYMUTIL=$lt_DSYMUTIL
17507
17508 # Tool to change global to local symbols on Mac OS X.
17509 NMEDIT=$lt_NMEDIT
17510
17511 # Tool to manipulate fat objects and archives on Mac OS X.
17512 LIPO=$lt_LIPO
17513
17514 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17515 OTOOL=$lt_OTOOL
17516
17517 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17518 OTOOL64=$lt_OTOOL64
17519
17520 # Old archive suffix (normally "a").
17521 libext=$libext
17522
17523 # Shared library suffix (normally ".so").
17524 shrext_cmds=$lt_shrext_cmds
17525
17526 # The commands to extract the exported symbol list from a shared archive.
17527 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17528
17529 # Variables whose values should be saved in libtool wrapper scripts and
17530 # restored at link time.
17531 variables_saved_for_relink=$lt_variables_saved_for_relink
17532
17533 # Do we need the "lib" prefix for modules?
17534 need_lib_prefix=$need_lib_prefix
17535
17536 # Do we need a version for libraries?
17537 need_version=$need_version
17538
17539 # Library versioning type.
17540 version_type=$version_type
17541
17542 # Shared library runtime path variable.
17543 runpath_var=$runpath_var
17544
17545 # Shared library path variable.
17546 shlibpath_var=$shlibpath_var
17547
17548 # Is shlibpath searched before the hard-coded library search path?
17549 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17550
17551 # Format of library name prefix.
17552 libname_spec=$lt_libname_spec
17553
17554 # List of archive names. First name is the real one, the rest are links.
17555 # The last name is the one that the linker finds with -lNAME
17556 library_names_spec=$lt_library_names_spec
17557
17558 # The coded name of the library, if different from the real name.
17559 soname_spec=$lt_soname_spec
17560
17561 # Permission mode override for installation of shared libraries.
17562 install_override_mode=$lt_install_override_mode
17563
17564 # Command to use after installation of a shared archive.
17565 postinstall_cmds=$lt_postinstall_cmds
17566
17567 # Command to use after uninstallation of a shared archive.
17568 postuninstall_cmds=$lt_postuninstall_cmds
17569
17570 # Commands used to finish a libtool library installation in a directory.
17571 finish_cmds=$lt_finish_cmds
17572
17573 # As "finish_cmds", except a single script fragment to be evaled but
17574 # not shown.
17575 finish_eval=$lt_finish_eval
17576
17577 # Whether we should hardcode library paths into libraries.
17578 hardcode_into_libs=$hardcode_into_libs
17579
17580 # Compile-time system search path for libraries.
17581 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17582
17583 # Run-time system search path for libraries.
17584 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17585
17586 # Whether dlopen is supported.
17587 dlopen_support=$enable_dlopen
17588
17589 # Whether dlopen of programs is supported.
17590 dlopen_self=$enable_dlopen_self
17591
17592 # Whether dlopen of statically linked programs is supported.
17593 dlopen_self_static=$enable_dlopen_self_static
17594
17595 # Commands to strip libraries.
17596 old_striplib=$lt_old_striplib
17597 striplib=$lt_striplib
17598
17599
17600 # The linker used to build libraries.
17601 LD=$lt_LD
17602
17603 # How to create reloadable object files.
17604 reload_flag=$lt_reload_flag
17605 reload_cmds=$lt_reload_cmds
17606
17607 # Commands used to build an old-style archive.
17608 old_archive_cmds=$lt_old_archive_cmds
17609
17610 # A language specific compiler.
17611 CC=$lt_compiler
17612
17613 # Is the compiler the GNU compiler?
17614 with_gcc=$GCC
17615
17616 # Compiler flag to turn off builtin functions.
17617 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17618
17619 # How to pass a linker flag through the compiler.
17620 wl=$lt_lt_prog_compiler_wl
17621
17622 # Additional compiler flags for building library objects.
17623 pic_flag=$lt_lt_prog_compiler_pic
17624
17625 # Compiler flag to prevent dynamic linking.
17626 link_static_flag=$lt_lt_prog_compiler_static
17627
17628 # Does compiler simultaneously support -c and -o options?
17629 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17630
17631 # Whether or not to add -lc for building shared libraries.
17632 build_libtool_need_lc=$archive_cmds_need_lc
17633
17634 # Whether or not to disallow shared libs when runtime libs are static.
17635 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17636
17637 # Compiler flag to allow reflexive dlopens.
17638 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17639
17640 # Compiler flag to generate shared objects directly from archives.
17641 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17642
17643 # Whether the compiler copes with passing no objects directly.
17644 compiler_needs_object=$lt_compiler_needs_object
17645
17646 # Create an old-style archive from a shared archive.
17647 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17648
17649 # Create a temporary old-style archive to link instead of a shared archive.
17650 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17651
17652 # Commands used to build a shared archive.
17653 archive_cmds=$lt_archive_cmds
17654 archive_expsym_cmds=$lt_archive_expsym_cmds
17655
17656 # Commands used to build a loadable module if different from building
17657 # a shared archive.
17658 module_cmds=$lt_module_cmds
17659 module_expsym_cmds=$lt_module_expsym_cmds
17660
17661 # Whether we are building with GNU ld or not.
17662 with_gnu_ld=$lt_with_gnu_ld
17663
17664 # Flag that allows shared libraries with undefined symbols to be built.
17665 allow_undefined_flag=$lt_allow_undefined_flag
17666
17667 # Flag that enforces no undefined symbols.
17668 no_undefined_flag=$lt_no_undefined_flag
17669
17670 # Flag to hardcode \$libdir into a binary during linking.
17671 # This must work even if \$libdir does not exist
17672 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17673
17674 # If ld is used when linking, flag to hardcode \$libdir into a binary
17675 # during linking. This must work even if \$libdir does not exist.
17676 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17677
17678 # Whether we need a single "-rpath" flag with a separated argument.
17679 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17680
17681 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17682 # DIR into the resulting binary.
17683 hardcode_direct=$hardcode_direct
17684
17685 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17686 # DIR into the resulting binary and the resulting library dependency is
17687 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17688 # library is relocated.
17689 hardcode_direct_absolute=$hardcode_direct_absolute
17690
17691 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17692 # into the resulting binary.
17693 hardcode_minus_L=$hardcode_minus_L
17694
17695 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17696 # into the resulting binary.
17697 hardcode_shlibpath_var=$hardcode_shlibpath_var
17698
17699 # Set to "yes" if building a shared library automatically hardcodes DIR
17700 # into the library and all subsequent libraries and executables linked
17701 # against it.
17702 hardcode_automatic=$hardcode_automatic
17703
17704 # Set to yes if linker adds runtime paths of dependent libraries
17705 # to runtime path list.
17706 inherit_rpath=$inherit_rpath
17707
17708 # Whether libtool must link a program against all its dependency libraries.
17709 link_all_deplibs=$link_all_deplibs
17710
17711 # Fix the shell variable \$srcfile for the compiler.
17712 fix_srcfile_path=$lt_fix_srcfile_path
17713
17714 # Set to "yes" if exported symbols are required.
17715 always_export_symbols=$always_export_symbols
17716
17717 # The commands to list exported symbols.
17718 export_symbols_cmds=$lt_export_symbols_cmds
17719
17720 # Symbols that should not be listed in the preloaded symbols.
17721 exclude_expsyms=$lt_exclude_expsyms
17722
17723 # Symbols that must always be exported.
17724 include_expsyms=$lt_include_expsyms
17725
17726 # Commands necessary for linking programs (against libraries) with templates.
17727 prelink_cmds=$lt_prelink_cmds
17728
17729 # Specify filename containing input files.
17730 file_list_spec=$lt_file_list_spec
17731
17732 # How to hardcode a shared library path into an executable.
17733 hardcode_action=$hardcode_action
17734
17735 # The directories searched by this compiler when creating a shared library.
17736 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17737
17738 # Dependencies to place before and after the objects being linked to
17739 # create a shared library.
17740 predep_objects=$lt_predep_objects
17741 postdep_objects=$lt_postdep_objects
17742 predeps=$lt_predeps
17743 postdeps=$lt_postdeps
17744
17745 # The library search path used internally by the compiler when linking
17746 # a shared library.
17747 compiler_lib_search_path=$lt_compiler_lib_search_path
17748
17749 # ### END LIBTOOL CONFIG
17750
17751 _LT_EOF
17752
17753 case $host_os in
17754 aix3*)
17755 cat <<\_LT_EOF >> "$cfgfile"
17756 # AIX sometimes has problems with the GCC collect2 program. For some
17757 # reason, if we set the COLLECT_NAMES environment variable, the problems
17758 # vanish in a puff of smoke.
17759 if test "X${COLLECT_NAMES+set}" != Xset; then
17760 COLLECT_NAMES=
17761 export COLLECT_NAMES
17762 fi
17763 _LT_EOF
17764 ;;
17765 esac
17766
17767
17768 ltmain="$ac_aux_dir/ltmain.sh"
17769
17770
17771 # We use sed instead of cat because bash on DJGPP gets confused if
17772 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17773 # text mode, it properly converts lines to CR/LF. This bash problem
17774 # is reportedly fixed, but why not run on old versions too?
17775 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17776 || (rm -f "$cfgfile"; exit 1)
17777
17778 case $xsi_shell in
17779 yes)
17780 cat << \_LT_EOF >> "$cfgfile"
17781
17782 # func_dirname file append nondir_replacement
17783 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17784 # otherwise set result to NONDIR_REPLACEMENT.
17785 func_dirname ()
17786 {
17787 case ${1} in
17788 */*) func_dirname_result="${1%/*}${2}" ;;
17789 * ) func_dirname_result="${3}" ;;
17790 esac
17791 }
17792
17793 # func_basename file
17794 func_basename ()
17795 {
17796 func_basename_result="${1##*/}"
17797 }
17798
17799 # func_dirname_and_basename file append nondir_replacement
17800 # perform func_basename and func_dirname in a single function
17801 # call:
17802 # dirname: Compute the dirname of FILE. If nonempty,
17803 # add APPEND to the result, otherwise set result
17804 # to NONDIR_REPLACEMENT.
17805 # value returned in "$func_dirname_result"
17806 # basename: Compute filename of FILE.
17807 # value retuned in "$func_basename_result"
17808 # Implementation must be kept synchronized with func_dirname
17809 # and func_basename. For efficiency, we do not delegate to
17810 # those functions but instead duplicate the functionality here.
17811 func_dirname_and_basename ()
17812 {
17813 case ${1} in
17814 */*) func_dirname_result="${1%/*}${2}" ;;
17815 * ) func_dirname_result="${3}" ;;
17816 esac
17817 func_basename_result="${1##*/}"
17818 }
17819
17820 # func_stripname prefix suffix name
17821 # strip PREFIX and SUFFIX off of NAME.
17822 # PREFIX and SUFFIX must not contain globbing or regex special
17823 # characters, hashes, percent signs, but SUFFIX may contain a leading
17824 # dot (in which case that matches only a dot).
17825 func_stripname ()
17826 {
17827 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17828 # positional parameters, so assign one to ordinary parameter first.
17829 func_stripname_result=${3}
17830 func_stripname_result=${func_stripname_result#"${1}"}
17831 func_stripname_result=${func_stripname_result%"${2}"}
17832 }
17833
17834 # func_opt_split
17835 func_opt_split ()
17836 {
17837 func_opt_split_opt=${1%%=*}
17838 func_opt_split_arg=${1#*=}
17839 }
17840
17841 # func_lo2o object
17842 func_lo2o ()
17843 {
17844 case ${1} in
17845 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17846 *) func_lo2o_result=${1} ;;
17847 esac
17848 }
17849
17850 # func_xform libobj-or-source
17851 func_xform ()
17852 {
17853 func_xform_result=${1%.*}.lo
17854 }
17855
17856 # func_arith arithmetic-term...
17857 func_arith ()
17858 {
17859 func_arith_result=$(( $* ))
17860 }
17861
17862 # func_len string
17863 # STRING may not start with a hyphen.
17864 func_len ()
17865 {
17866 func_len_result=${#1}
17867 }
17868
17869 _LT_EOF
17870 ;;
17871 *) # Bourne compatible functions.
17872 cat << \_LT_EOF >> "$cfgfile"
17873
17874 # func_dirname file append nondir_replacement
17875 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17876 # otherwise set result to NONDIR_REPLACEMENT.
17877 func_dirname ()
17878 {
17879 # Extract subdirectory from the argument.
17880 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17881 if test "X$func_dirname_result" = "X${1}"; then
17882 func_dirname_result="${3}"
17883 else
17884 func_dirname_result="$func_dirname_result${2}"
17885 fi
17886 }
17887
17888 # func_basename file
17889 func_basename ()
17890 {
17891 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17892 }
17893
17894
17895 # func_stripname prefix suffix name
17896 # strip PREFIX and SUFFIX off of NAME.
17897 # PREFIX and SUFFIX must not contain globbing or regex special
17898 # characters, hashes, percent signs, but SUFFIX may contain a leading
17899 # dot (in which case that matches only a dot).
17900 # func_strip_suffix prefix name
17901 func_stripname ()
17902 {
17903 case ${2} in
17904 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17905 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17906 esac
17907 }
17908
17909 # sed scripts:
17910 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17911 my_sed_long_arg='1s/^-[^=]*=//'
17912
17913 # func_opt_split
17914 func_opt_split ()
17915 {
17916 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17917 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17918 }
17919
17920 # func_lo2o object
17921 func_lo2o ()
17922 {
17923 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17924 }
17925
17926 # func_xform libobj-or-source
17927 func_xform ()
17928 {
17929 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17930 }
17931
17932 # func_arith arithmetic-term...
17933 func_arith ()
17934 {
17935 func_arith_result=`expr "$@"`
17936 }
17937
17938 # func_len string
17939 # STRING may not start with a hyphen.
17940 func_len ()
17941 {
17942 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17943 }
17944
17945 _LT_EOF
17946 esac
17947
17948 case $lt_shell_append in
17949 yes)
17950 cat << \_LT_EOF >> "$cfgfile"
17951
17952 # func_append var value
17953 # Append VALUE to the end of shell variable VAR.
17954 func_append ()
17955 {
17956 eval "$1+=\$2"
17957 }
17958 _LT_EOF
17959 ;;
17960 *)
17961 cat << \_LT_EOF >> "$cfgfile"
17962
17963 # func_append var value
17964 # Append VALUE to the end of shell variable VAR.
17965 func_append ()
17966 {
17967 eval "$1=\$$1\$2"
17968 }
17969
17970 _LT_EOF
17971 ;;
17972 esac
17973
17974
17975 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17976 || (rm -f "$cfgfile"; exit 1)
17977
17978 mv -f "$cfgfile" "$ofile" ||
17979 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17980 chmod +x "$ofile"
17981
17982
17983 cat <<_LT_EOF >> "$ofile"
17984
17985 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17986
17987 # The linker used to build libraries.
17988 LD=$lt_LD_CXX
17989
17990 # How to create reloadable object files.
17991 reload_flag=$lt_reload_flag_CXX
17992 reload_cmds=$lt_reload_cmds_CXX
17993
17994 # Commands used to build an old-style archive.
17995 old_archive_cmds=$lt_old_archive_cmds_CXX
17996
17997 # A language specific compiler.
17998 CC=$lt_compiler_CXX
17999
18000 # Is the compiler the GNU compiler?
18001 with_gcc=$GCC_CXX
18002
18003 # Compiler flag to turn off builtin functions.
18004 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18005
18006 # How to pass a linker flag through the compiler.
18007 wl=$lt_lt_prog_compiler_wl_CXX
18008
18009 # Additional compiler flags for building library objects.
18010 pic_flag=$lt_lt_prog_compiler_pic_CXX
18011
18012 # Compiler flag to prevent dynamic linking.
18013 link_static_flag=$lt_lt_prog_compiler_static_CXX
18014
18015 # Does compiler simultaneously support -c and -o options?
18016 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18017
18018 # Whether or not to add -lc for building shared libraries.
18019 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18020
18021 # Whether or not to disallow shared libs when runtime libs are static.
18022 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18023
18024 # Compiler flag to allow reflexive dlopens.
18025 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18026
18027 # Compiler flag to generate shared objects directly from archives.
18028 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18029
18030 # Whether the compiler copes with passing no objects directly.
18031 compiler_needs_object=$lt_compiler_needs_object_CXX
18032
18033 # Create an old-style archive from a shared archive.
18034 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18035
18036 # Create a temporary old-style archive to link instead of a shared archive.
18037 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18038
18039 # Commands used to build a shared archive.
18040 archive_cmds=$lt_archive_cmds_CXX
18041 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18042
18043 # Commands used to build a loadable module if different from building
18044 # a shared archive.
18045 module_cmds=$lt_module_cmds_CXX
18046 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18047
18048 # Whether we are building with GNU ld or not.
18049 with_gnu_ld=$lt_with_gnu_ld_CXX
18050
18051 # Flag that allows shared libraries with undefined symbols to be built.
18052 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18053
18054 # Flag that enforces no undefined symbols.
18055 no_undefined_flag=$lt_no_undefined_flag_CXX
18056
18057 # Flag to hardcode \$libdir into a binary during linking.
18058 # This must work even if \$libdir does not exist
18059 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18060
18061 # If ld is used when linking, flag to hardcode \$libdir into a binary
18062 # during linking. This must work even if \$libdir does not exist.
18063 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18064
18065 # Whether we need a single "-rpath" flag with a separated argument.
18066 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18067
18068 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18069 # DIR into the resulting binary.
18070 hardcode_direct=$hardcode_direct_CXX
18071
18072 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18073 # DIR into the resulting binary and the resulting library dependency is
18074 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18075 # library is relocated.
18076 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18077
18078 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18079 # into the resulting binary.
18080 hardcode_minus_L=$hardcode_minus_L_CXX
18081
18082 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18083 # into the resulting binary.
18084 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18085
18086 # Set to "yes" if building a shared library automatically hardcodes DIR
18087 # into the library and all subsequent libraries and executables linked
18088 # against it.
18089 hardcode_automatic=$hardcode_automatic_CXX
18090
18091 # Set to yes if linker adds runtime paths of dependent libraries
18092 # to runtime path list.
18093 inherit_rpath=$inherit_rpath_CXX
18094
18095 # Whether libtool must link a program against all its dependency libraries.
18096 link_all_deplibs=$link_all_deplibs_CXX
18097
18098 # Fix the shell variable \$srcfile for the compiler.
18099 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18100
18101 # Set to "yes" if exported symbols are required.
18102 always_export_symbols=$always_export_symbols_CXX
18103
18104 # The commands to list exported symbols.
18105 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18106
18107 # Symbols that should not be listed in the preloaded symbols.
18108 exclude_expsyms=$lt_exclude_expsyms_CXX
18109
18110 # Symbols that must always be exported.
18111 include_expsyms=$lt_include_expsyms_CXX
18112
18113 # Commands necessary for linking programs (against libraries) with templates.
18114 prelink_cmds=$lt_prelink_cmds_CXX
18115
18116 # Specify filename containing input files.
18117 file_list_spec=$lt_file_list_spec_CXX
18118
18119 # How to hardcode a shared library path into an executable.
18120 hardcode_action=$hardcode_action_CXX
18121
18122 # The directories searched by this compiler when creating a shared library.
18123 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18124
18125 # Dependencies to place before and after the objects being linked to
18126 # create a shared library.
18127 predep_objects=$lt_predep_objects_CXX
18128 postdep_objects=$lt_postdep_objects_CXX
18129 predeps=$lt_predeps_CXX
18130 postdeps=$lt_postdeps_CXX
18131
18132 # The library search path used internally by the compiler when linking
18133 # a shared library.
18134 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18135
18136 # ### END LIBTOOL TAG CONFIG: CXX
18137 _LT_EOF
18138
18139 ;;
18140
18141 esac
18142 done # for ac_tag
18143
18144
18145 as_fn_exit 0
18146 _ACEOF
18147 ac_clean_files=$ac_clean_files_save
18148
18149 test $ac_write_fail = 0 ||
18150 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18151
18152
18153 # configure is writing to config.log, and then calls config.status.
18154 # config.status does its own redirection, appending to config.log.
18155 # Unfortunately, on DOS this fails, as config.log is still kept open
18156 # by configure, so config.status won't be able to write to it; its
18157 # output is simply discarded. So we exec the FD to /dev/null,
18158 # effectively closing config.log, so it can be properly (re)opened and
18159 # appended to by config.status. When coming back to configure, we
18160 # need to make the FD available again.
18161 if test "$no_create" != yes; then
18162 ac_cs_success=:
18163 ac_config_status_args=
18164 test "$silent" = yes &&
18165 ac_config_status_args="$ac_config_status_args --quiet"
18166 exec 5>/dev/null
18167 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18168 exec 5>>config.log
18169 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18170 # would make configure fail if this is the last instruction.
18171 $ac_cs_success || as_fn_exit 1
18172 fi
18173 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18175 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18176 fi
18177
18178