]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgm2/configure
Merge modula-2 front end onto gcc.
[thirdparty/gcc.git] / libgm2 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
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='package-unused'
589 PACKAGE_TARNAME='libgm2'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="Makefile.am"
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_unique_file="Makefile.am"
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 BUILD_LOGLIB_FALSE
638 BUILD_LOGLIB_TRUE
639 BUILD_CORLIB_FALSE
640 BUILD_CORLIB_TRUE
641 BUILD_ISOLIB_FALSE
642 BUILD_ISOLIB_TRUE
643 BUILD_PIMLIB_FALSE
644 BUILD_PIMLIB_TRUE
645 GM2_FOR_TARGET
646 CC_FOR_BUILD
647 enable_static
648 enable_shared
649 CXXCPP
650 OTOOL64
651 OTOOL
652 LIPO
653 NMEDIT
654 DSYMUTIL
655 OBJDUMP
656 LN_S
657 ac_ct_DUMPBIN
658 DUMPBIN
659 LD
660 FGREP
661 SED
662 LIBTOOL
663 PERL
664 RANLIB
665 NM
666 AR
667 am__fastdepCCAS_FALSE
668 am__fastdepCCAS_TRUE
669 CCASDEPMODE
670 CCASFLAGS
671 CCAS
672 am__fastdepCXX_FALSE
673 am__fastdepCXX_TRUE
674 CXXDEPMODE
675 ac_ct_CXX
676 CXXFLAGS
677 CXX
678 MAINTAINER_MODE_FALSE
679 MAINTAINER_MODE_TRUE
680 toolexeclibdir
681 toolexecdir
682 MAINT
683 slibdir
684 target_subdir
685 host_subdir
686 build_subdir
687 build_libsubdir
688 target_noncanonical
689 host_noncanonical
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 AM_DEFAULT_V
693 AM_V
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 am__untar
705 am__tar
706 AMTAR
707 am__leading_dot
708 SET_MAKE
709 AWK
710 mkdir_p
711 MKDIR_P
712 INSTALL_STRIP_PROGRAM
713 STRIP
714 install_sh
715 MAKEINFO
716 AUTOHEADER
717 AUTOMAKE
718 AUTOCONF
719 ACLOCAL
720 VERSION
721 PACKAGE
722 CYGPATH_W
723 am__isrc
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 target_os
728 target_vendor
729 target_cpu
730 target
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 EGREP
740 GREP
741 CPP
742 OBJEXT
743 EXEEXT
744 ac_ct_CC
745 CPPFLAGS
746 LDFLAGS
747 CFLAGS
748 CC
749 multi_basedir
750 libtool_VERSION
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_multilib
793 enable_dependency_tracking
794 enable_silent_rules
795 with_cross_host
796 with_build_libsubdir
797 enable_version_specific_runtime_libs
798 with_slibdir
799 enable_maintainer_mode
800 enable_shared
801 enable_static
802 with_pic
803 enable_fast_install
804 with_gnu_ld
805 enable_libtool_lock
806 '
807 ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 LIBS
814 CPPFLAGS
815 CPP
816 CXXCPP'
817
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 ac_unrecognized_opts=
823 ac_unrecognized_sep=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
876 fi
877
878 case $ac_option in
879 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *=) ac_optarg= ;;
881 *) ac_optarg=yes ;;
882 esac
883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
910 -datadir | --datadir | --datadi | --datad)
911 ac_prev=datadir ;;
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
914
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=no ;;
937
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
942
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
947
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=\$ac_optarg ;;
963
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
972
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
975 with_gas=yes ;;
976
977 -help | --help | --hel | --he | -h)
978 ac_init_help=long ;;
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
983
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
988
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 ac_prev=htmldir ;;
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
993 htmldir=$ac_optarg ;;
994
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1001
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 ac_prev=infodir ;;
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1006
1007 -libdir | --libdir | --libdi | --libd)
1008 ac_prev=libdir ;;
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1011
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1018
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1023
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1030
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 ac_prev=mandir ;;
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1035
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1038 with_fp=no ;;
1039
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1042 no_create=yes ;;
1043
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 no_recursion=yes ;;
1047
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1056
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 ac_prev=prefix ;;
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1061
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1068
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1075
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1092
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 ac_prev=pdfdir ;;
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1097
1098 -psdir | --psdir | --psdi | --psd | --ps)
1099 ac_prev=psdir ;;
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 psdir=$ac_optarg ;;
1102
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1105 silent=yes ;;
1106
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1111 sbindir=$ac_optarg ;;
1112
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1122 sharedstatedir=$ac_optarg ;;
1123
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
1127 site=$ac_optarg ;;
1128
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1133
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1140
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1145
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1148
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1151
1152 -with-* | --with-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=\$ac_optarg ;;
1167
1168 -without-* | --without-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=no ;;
1183
1184 --x)
1185 # Obsolete; use --with-x.
1186 with_x=yes ;;
1187
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193 x_includes=$ac_optarg ;;
1194
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200 x_libraries=$ac_optarg ;;
1201
1202 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203 Try \`$0 --help' for more information"
1204 ;;
1205
1206 *=*)
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1211 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212 esac
1213 eval $ac_envvar=\$ac_optarg
1214 export $ac_envvar ;;
1215
1216 *)
1217 # FIXME: should be removed in autoconf 3.0.
1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222 ;;
1223
1224 esac
1225 done
1226
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 as_fn_error $? "missing argument to $ac_option"
1230 fi
1231
1232 if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1234 no) ;;
1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 esac
1238 fi
1239
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
1245 do
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1248 case $ac_val in
1249 */ )
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1252 esac
1253 # Be sure to have absolute directory names.
1254 case $ac_val in
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 esac
1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259 done
1260
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1267
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 elif test "x$build_alias" != "x$host_alias"; then
1273 cross_compiling=yes
1274 fi
1275 fi
1276
1277 ac_tool_prefix=
1278 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280 test "$silent" = yes && exec 6>/dev/null
1281
1282
1283 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284 ac_ls_di=`ls -di .` &&
1285 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286 as_fn_error $? "working directory cannot be determined"
1287 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288 as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`$as_dirname -- "$as_myself" ||
1296 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$as_myself" : 'X\(//\)[^/]' \| \
1298 X"$as_myself" : 'X\(//\)$' \| \
1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300 $as_echo X"$as_myself" |
1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)[^/].*/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\).*/{
1314 s//\1/
1315 q
1316 }
1317 s/.*/./; q'`
1318 srcdir=$ac_confdir
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 srcdir=..
1321 fi
1322 else
1323 ac_srcdir_defaulted=no
1324 fi
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328 fi
1329 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 ac_abs_confdir=`(
1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332 pwd)`
1333 # When building in place, set srcdir=.
1334 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 srcdir=.
1336 fi
1337 # Remove unnecessary trailing slashes from srcdir.
1338 # Double slashes in file names in object file debugging info
1339 # mess up M-x gdb in Emacs.
1340 case $srcdir in
1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 esac
1343 for ac_var in $ac_precious_vars; do
1344 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_env_${ac_var}_value=\$${ac_var}
1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 done
1349
1350 #
1351 # Report the --help message.
1352 #
1353 if test "$ac_init_help" = "long"; then
1354 # Omit some internal or obsolete options to make the list less imposing.
1355 # This message is too long to be a string in the A/UX 3.1 sh.
1356 cat <<_ACEOF
1357 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1358
1359 Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362 VAR=VALUE. See below for descriptions of some of the useful variables.
1363
1364 Defaults for the options are specified in brackets.
1365
1366 Configuration:
1367 -h, --help display this help and exit
1368 --help=short display options specific to this package
1369 --help=recursive display the short help of all the included packages
1370 -V, --version display version information and exit
1371 -q, --quiet, --silent do not print \`checking ...' messages
1372 --cache-file=FILE cache test results in FILE [disabled]
1373 -C, --config-cache alias for \`--cache-file=config.cache'
1374 -n, --no-create do not create output files
1375 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1376
1377 Installation directories:
1378 --prefix=PREFIX install architecture-independent files in PREFIX
1379 [$ac_default_prefix]
1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1381 [PREFIX]
1382
1383 By default, \`make install' will install all the files in
1384 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1385 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386 for instance \`--prefix=\$HOME'.
1387
1388 For better control, use the options below.
1389
1390 Fine tuning of the installation directories:
1391 --bindir=DIR user executables [EPREFIX/bin]
1392 --sbindir=DIR system admin executables [EPREFIX/sbin]
1393 --libexecdir=DIR program executables [EPREFIX/libexec]
1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1397 --libdir=DIR object code libraries [EPREFIX/lib]
1398 --includedir=DIR C header files [PREFIX/include]
1399 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1400 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1401 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1402 --infodir=DIR info documentation [DATAROOTDIR/info]
1403 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1404 --mandir=DIR man documentation [DATAROOTDIR/man]
1405 --docdir=DIR documentation root [DATAROOTDIR/doc/libgm2]
1406 --htmldir=DIR html documentation [DOCDIR]
1407 --dvidir=DIR dvi documentation [DOCDIR]
1408 --pdfdir=DIR pdf documentation [DOCDIR]
1409 --psdir=DIR ps documentation [DOCDIR]
1410 _ACEOF
1411
1412 cat <<\_ACEOF
1413
1414 Program names:
1415 --program-prefix=PREFIX prepend PREFIX to installed program names
1416 --program-suffix=SUFFIX append SUFFIX to installed program names
1417 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1418
1419 System types:
1420 --build=BUILD configure for building on BUILD [guessed]
1421 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1422 --target=TARGET configure for building compilers for TARGET [HOST]
1423 _ACEOF
1424 fi
1425
1426 if test -n "$ac_init_help"; then
1427 case $ac_init_help in
1428 short | recursive ) echo "Configuration of package-unused version-unused:";;
1429 esac
1430 cat <<\_ACEOF
1431
1432 Optional Features:
1433 --disable-option-checking ignore unrecognized --enable/--with options
1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1436 --enable-multilib build many library versions (default)
1437 --enable-dependency-tracking
1438 do not reject slow dependency extractors
1439 --disable-dependency-tracking
1440 speeds up one-time build
1441 --enable-silent-rules less verbose build output (undo: "make V=1")
1442 --disable-silent-rules verbose build output (undo: "make V=0")
1443 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1444 --enable-maintainer-mode
1445 enable make rules and dependencies not useful (and
1446 sometimes confusing) to the casual installer
1447 --enable-maintainer-mode
1448 enable make rules and dependencies not useful (and
1449 sometimes confusing) to the casual installer
1450 --enable-shared[=PKGS] build shared libraries [default=yes]
1451 --enable-static[=PKGS] build static libraries [default=yes]
1452 --enable-fast-install[=PKGS]
1453 optimize for fast installation [default=yes]
1454 --disable-libtool-lock avoid locking (might break parallel builds)
1455
1456 Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-cross-host=HOST Configuring with a cross compiler
1460 --with-build-libsubdir=DIR Directory where to find libraries for build system
1461 --with-slibdir=DIR shared libraries in DIR LIBDIR
1462 --with-pic try to use only PIC/non-PIC objects [default=use
1463 both]
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465
1466 Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 LIBS libraries to pass to the linker, e.g. -l<library>
1472 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 CPP C preprocessor
1475 CXX C++ compiler command
1476 CXXFLAGS C++ compiler flags
1477 CCAS assembler compiler command (defaults to CC)
1478 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1479 CXXCPP C++ preprocessor
1480
1481 Use these variables to override the choices made by `configure' or to help
1482 it to find libraries and programs with nonstandard names/locations.
1483
1484 Report bugs to the package provider.
1485 _ACEOF
1486 ac_status=$?
1487 fi
1488
1489 if test "$ac_init_help" = "recursive"; then
1490 # If there are subdirs, report their specific --help.
1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1492 test -d "$ac_dir" ||
1493 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1494 continue
1495 ac_builddir=.
1496
1497 case "$ac_dir" in
1498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *)
1500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1501 # A ".." for each directory in $ac_dir_suffix.
1502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1503 case $ac_top_builddir_sub in
1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506 esac ;;
1507 esac
1508 ac_abs_top_builddir=$ac_pwd
1509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510 # for backward compatibility:
1511 ac_top_builddir=$ac_top_build_prefix
1512
1513 case $srcdir in
1514 .) # We are building in place.
1515 ac_srcdir=.
1516 ac_top_srcdir=$ac_top_builddir_sub
1517 ac_abs_top_srcdir=$ac_pwd ;;
1518 [\\/]* | ?:[\\/]* ) # Absolute name.
1519 ac_srcdir=$srcdir$ac_dir_suffix;
1520 ac_top_srcdir=$srcdir
1521 ac_abs_top_srcdir=$srcdir ;;
1522 *) # Relative name.
1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524 ac_top_srcdir=$ac_top_build_prefix$srcdir
1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526 esac
1527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528
1529 cd "$ac_dir" || { ac_status=$?; continue; }
1530 # Check for guested configure.
1531 if test -f "$ac_srcdir/configure.gnu"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534 elif test -f "$ac_srcdir/configure"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure" --help=recursive
1537 else
1538 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539 fi || ac_status=$?
1540 cd "$ac_pwd" || { ac_status=$?; break; }
1541 done
1542 fi
1543
1544 test -n "$ac_init_help" && exit $ac_status
1545 if $ac_init_version; then
1546 cat <<\_ACEOF
1547 package-unused configure version-unused
1548 generated by GNU Autoconf 2.69
1549
1550 Copyright (C) 2012 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1553 _ACEOF
1554 exit
1555 fi
1556
1557 ## ------------------------ ##
1558 ## Autoconf initialization. ##
1559 ## ------------------------ ##
1560
1561 # ac_fn_c_try_compile LINENO
1562 # --------------------------
1563 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_compile ()
1565 {
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext
1568 if { { ac_try="$ac_compile"
1569 case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_compile") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest.$ac_objext; then :
1587 ac_retval=0
1588 else
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1591
1592 ac_retval=1
1593 fi
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1596
1597 } # ac_fn_c_try_compile
1598
1599 # ac_fn_c_try_cpp LINENO
1600 # ----------------------
1601 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_cpp ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if { { ac_try="$ac_cpp conftest.$ac_ext"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } > conftest.i && {
1621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 }; then :
1624 ac_retval=0
1625 else
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630 fi
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_cpp
1635
1636 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1637 # -------------------------------------------------------
1638 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1639 # the include files in INCLUDES and setting the cache variable VAR
1640 # accordingly.
1641 ac_fn_c_check_header_mongrel ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if eval \${$3+:} false; then :
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646 $as_echo_n "checking for $2... " >&6; }
1647 if eval \${$3+:} false; then :
1648 $as_echo_n "(cached) " >&6
1649 fi
1650 eval ac_res=\$$3
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1653 else
1654 # Is the header compilable?
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1656 $as_echo_n "checking $2 usability... " >&6; }
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658 /* end confdefs.h. */
1659 $4
1660 #include <$2>
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"; then :
1663 ac_header_compiler=yes
1664 else
1665 ac_header_compiler=no
1666 fi
1667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1669 $as_echo "$ac_header_compiler" >&6; }
1670
1671 # Is the header present?
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1673 $as_echo_n "checking $2 presence... " >&6; }
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675 /* end confdefs.h. */
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_cpp "$LINENO"; then :
1679 ac_header_preproc=yes
1680 else
1681 ac_header_preproc=no
1682 fi
1683 rm -f conftest.err conftest.i conftest.$ac_ext
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1685 $as_echo "$ac_header_preproc" >&6; }
1686
1687 # So? What about this header?
1688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1689 yes:no: )
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1691 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1693 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1694 ;;
1695 no:yes:* )
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1697 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1699 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1701 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1703 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1705 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706 ;;
1707 esac
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \${$3+:} false; then :
1711 $as_echo_n "(cached) " >&6
1712 else
1713 eval "$3=\$ac_header_compiler"
1714 fi
1715 eval ac_res=\$$3
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1718 fi
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720
1721 } # ac_fn_c_check_header_mongrel
1722
1723 # ac_fn_c_try_run LINENO
1724 # ----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1726 # that executables *can* be run.
1727 ac_fn_c_try_run ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { { ac_try="$ac_link"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1741 { { case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_try") 2>&5
1748 ac_status=$?
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; }; }; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: program exited with status $ac_status" >&5
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=$ac_status
1758 fi
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_run
1764
1765 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1766 # -------------------------------------------------------
1767 # Tests whether HEADER exists and can be compiled using the include files in
1768 # INCLUDES, setting the cache variable VAR accordingly.
1769 ac_fn_c_check_header_compile ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1776 else
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1779 $4
1780 #include <$2>
1781 _ACEOF
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783 eval "$3=yes"
1784 else
1785 eval "$3=no"
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 fi
1789 eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
1794 } # ac_fn_c_check_header_compile
1795
1796 # ac_fn_cxx_try_compile LINENO
1797 # ----------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_compile ()
1800 {
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext
1803 if { { ac_try="$ac_compile"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1816 fi
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.$ac_objext; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 ac_retval=1
1828 fi
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1831
1832 } # ac_fn_cxx_try_compile
1833
1834 # ac_fn_c_try_link LINENO
1835 # -----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_link ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 test -x conftest$ac_exeext
1862 }; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869 fi
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1877
1878 } # ac_fn_c_try_link
1879
1880 # ac_fn_c_check_func LINENO FUNC VAR
1881 # ----------------------------------
1882 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1883 ac_fn_c_check_func ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1890 else
1891 if test x$gcc_no_link = xyes; then
1892 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1893 fi
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1896 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1898 #define $2 innocuous_$2
1899
1900 /* System header to define __stub macros and hopefully few prototypes,
1901 which can conflict with char $2 (); below.
1902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1903 <limits.h> exists even on freestanding compilers. */
1904
1905 #ifdef __STDC__
1906 # include <limits.h>
1907 #else
1908 # include <assert.h>
1909 #endif
1910
1911 #undef $2
1912
1913 /* Override any GCC internal prototype to avoid an error.
1914 Use char because int might match the return type of a GCC
1915 builtin and then its argument prototype would still apply. */
1916 #ifdef __cplusplus
1917 extern "C"
1918 #endif
1919 char $2 ();
1920 /* The GNU C library defines this for functions which it implements
1921 to always fail with ENOSYS. Some functions are actually named
1922 something starting with __ and the normal name is an alias. */
1923 #if defined __stub_$2 || defined __stub___$2
1924 choke me
1925 #endif
1926
1927 int
1928 main ()
1929 {
1930 return $2 ();
1931 ;
1932 return 0;
1933 }
1934 _ACEOF
1935 if ac_fn_c_try_link "$LINENO"; then :
1936 eval "$3=yes"
1937 else
1938 eval "$3=no"
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext \
1941 conftest$ac_exeext conftest.$ac_ext
1942 fi
1943 eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_c_check_func
1949
1950 # ac_fn_cxx_try_cpp LINENO
1951 # ------------------------
1952 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_cxx_try_cpp ()
1954 {
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 if { { ac_try="$ac_cpp conftest.$ac_ext"
1957 case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1964 ac_status=$?
1965 if test -s conftest.err; then
1966 grep -v '^ *+' conftest.err >conftest.er1
1967 cat conftest.er1 >&5
1968 mv -f conftest.er1 conftest.err
1969 fi
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } > conftest.i && {
1972 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1973 test ! -s conftest.err
1974 }; then :
1975 ac_retval=0
1976 else
1977 $as_echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1979
1980 ac_retval=1
1981 fi
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1984
1985 } # ac_fn_cxx_try_cpp
1986
1987 # ac_fn_cxx_try_link LINENO
1988 # -------------------------
1989 # Try to link conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_cxx_try_link ()
1991 {
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext conftest$ac_exeext
1994 if { { ac_try="$ac_link"
1995 case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_link") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2007 fi
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_cxx_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest$ac_exeext && {
2013 test "$cross_compiling" = yes ||
2014 test -x conftest$ac_exeext
2015 }; then :
2016 ac_retval=0
2017 else
2018 $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2020
2021 ac_retval=1
2022 fi
2023 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2024 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2025 # interfere with the next link command; also delete a directory that is
2026 # left behind by Apple's compiler. We do this before executing the actions.
2027 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029 as_fn_set_status $ac_retval
2030
2031 } # ac_fn_cxx_try_link
2032
2033 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2034 # -------------------------------------------
2035 # Tests whether TYPE exists after having included INCLUDES, setting cache
2036 # variable VAR accordingly.
2037 ac_fn_c_check_type ()
2038 {
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval \${$3+:} false; then :
2043 $as_echo_n "(cached) " >&6
2044 else
2045 eval "$3=no"
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2048 $4
2049 int
2050 main ()
2051 {
2052 if (sizeof ($2))
2053 return 0;
2054 ;
2055 return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2061 $4
2062 int
2063 main ()
2064 {
2065 if (sizeof (($2)))
2066 return 0;
2067 ;
2068 return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072
2073 else
2074 eval "$3=yes"
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 fi
2080 eval ac_res=\$$3
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084
2085 } # ac_fn_c_check_type
2086 cat >config.log <<_ACEOF
2087 This file contains any messages produced by compilers while
2088 running configure, to aid debugging if configure makes a mistake.
2089
2090 It was created by package-unused $as_me version-unused, which was
2091 generated by GNU Autoconf 2.69. Invocation command line was
2092
2093 $ $0 $@
2094
2095 _ACEOF
2096 exec 5>>config.log
2097 {
2098 cat <<_ASUNAME
2099 ## --------- ##
2100 ## Platform. ##
2101 ## --------- ##
2102
2103 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2104 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2105 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2106 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2107 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2108
2109 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2110 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2111
2112 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2113 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2114 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2115 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2116 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2117 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2118 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2119
2120 _ASUNAME
2121
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH
2124 do
2125 IFS=$as_save_IFS
2126 test -z "$as_dir" && as_dir=.
2127 $as_echo "PATH: $as_dir"
2128 done
2129 IFS=$as_save_IFS
2130
2131 } >&5
2132
2133 cat >&5 <<_ACEOF
2134
2135
2136 ## ----------- ##
2137 ## Core tests. ##
2138 ## ----------- ##
2139
2140 _ACEOF
2141
2142
2143 # Keep a trace of the command line.
2144 # Strip out --no-create and --no-recursion so they do not pile up.
2145 # Strip out --silent because we don't want to record it for future runs.
2146 # Also quote any args containing shell meta-characters.
2147 # Make two passes to allow for proper duplicate-argument suppression.
2148 ac_configure_args=
2149 ac_configure_args0=
2150 ac_configure_args1=
2151 ac_must_keep_next=false
2152 for ac_pass in 1 2
2153 do
2154 for ac_arg
2155 do
2156 case $ac_arg in
2157 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2159 | -silent | --silent | --silen | --sile | --sil)
2160 continue ;;
2161 *\'*)
2162 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2163 esac
2164 case $ac_pass in
2165 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2166 2)
2167 as_fn_append ac_configure_args1 " '$ac_arg'"
2168 if test $ac_must_keep_next = true; then
2169 ac_must_keep_next=false # Got value, back to normal.
2170 else
2171 case $ac_arg in
2172 *=* | --config-cache | -C | -disable-* | --disable-* \
2173 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2174 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2175 | -with-* | --with-* | -without-* | --without-* | --x)
2176 case "$ac_configure_args0 " in
2177 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2178 esac
2179 ;;
2180 -* ) ac_must_keep_next=true ;;
2181 esac
2182 fi
2183 as_fn_append ac_configure_args " '$ac_arg'"
2184 ;;
2185 esac
2186 done
2187 done
2188 { ac_configure_args0=; unset ac_configure_args0;}
2189 { ac_configure_args1=; unset ac_configure_args1;}
2190
2191 # When interrupted or exit'd, cleanup temporary files, and complete
2192 # config.log. We remove comments because anyway the quotes in there
2193 # would cause problems or look ugly.
2194 # WARNING: Use '\'' to represent an apostrophe within the trap.
2195 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2196 trap 'exit_status=$?
2197 # Save into config.log some information that might help in debugging.
2198 {
2199 echo
2200
2201 $as_echo "## ---------------- ##
2202 ## Cache variables. ##
2203 ## ---------------- ##"
2204 echo
2205 # The following way of writing the cache mishandles newlines in values,
2206 (
2207 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2208 eval ac_val=\$$ac_var
2209 case $ac_val in #(
2210 *${as_nl}*)
2211 case $ac_var in #(
2212 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2213 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2214 esac
2215 case $ac_var in #(
2216 _ | IFS | as_nl) ;; #(
2217 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2218 *) { eval $ac_var=; unset $ac_var;} ;;
2219 esac ;;
2220 esac
2221 done
2222 (set) 2>&1 |
2223 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2224 *${as_nl}ac_space=\ *)
2225 sed -n \
2226 "s/'\''/'\''\\\\'\'''\''/g;
2227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2228 ;; #(
2229 *)
2230 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2231 ;;
2232 esac |
2233 sort
2234 )
2235 echo
2236
2237 $as_echo "## ----------------- ##
2238 ## Output variables. ##
2239 ## ----------------- ##"
2240 echo
2241 for ac_var in $ac_subst_vars
2242 do
2243 eval ac_val=\$$ac_var
2244 case $ac_val in
2245 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2246 esac
2247 $as_echo "$ac_var='\''$ac_val'\''"
2248 done | sort
2249 echo
2250
2251 if test -n "$ac_subst_files"; then
2252 $as_echo "## ------------------- ##
2253 ## File substitutions. ##
2254 ## ------------------- ##"
2255 echo
2256 for ac_var in $ac_subst_files
2257 do
2258 eval ac_val=\$$ac_var
2259 case $ac_val in
2260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 esac
2262 $as_echo "$ac_var='\''$ac_val'\''"
2263 done | sort
2264 echo
2265 fi
2266
2267 if test -s confdefs.h; then
2268 $as_echo "## ----------- ##
2269 ## confdefs.h. ##
2270 ## ----------- ##"
2271 echo
2272 cat confdefs.h
2273 echo
2274 fi
2275 test "$ac_signal" != 0 &&
2276 $as_echo "$as_me: caught signal $ac_signal"
2277 $as_echo "$as_me: exit $exit_status"
2278 } >&5
2279 rm -f core *.core core.conftest.* &&
2280 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2281 exit $exit_status
2282 ' 0
2283 for ac_signal in 1 2 13 15; do
2284 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2285 done
2286 ac_signal=0
2287
2288 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2289 rm -f -r conftest* confdefs.h
2290
2291 $as_echo "/* confdefs.h */" > confdefs.h
2292
2293 # Predefined preprocessor variables.
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_NAME "$PACKAGE_NAME"
2297 _ACEOF
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2301 _ACEOF
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_STRING "$PACKAGE_STRING"
2309 _ACEOF
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2313 _ACEOF
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_URL "$PACKAGE_URL"
2317 _ACEOF
2318
2319
2320 # Let the site file select an alternate cache file if it wants to.
2321 # Prefer an explicitly selected file to automatically selected ones.
2322 ac_site_file1=NONE
2323 ac_site_file2=NONE
2324 if test -n "$CONFIG_SITE"; then
2325 # We do not want a PATH search for config.site.
2326 case $CONFIG_SITE in #((
2327 -*) ac_site_file1=./$CONFIG_SITE;;
2328 */*) ac_site_file1=$CONFIG_SITE;;
2329 *) ac_site_file1=./$CONFIG_SITE;;
2330 esac
2331 elif test "x$prefix" != xNONE; then
2332 ac_site_file1=$prefix/share/config.site
2333 ac_site_file2=$prefix/etc/config.site
2334 else
2335 ac_site_file1=$ac_default_prefix/share/config.site
2336 ac_site_file2=$ac_default_prefix/etc/config.site
2337 fi
2338 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2339 do
2340 test "x$ac_site_file" = xNONE && continue
2341 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2343 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2344 sed 's/^/| /' "$ac_site_file" >&5
2345 . "$ac_site_file" \
2346 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348 as_fn_error $? "failed to load site script $ac_site_file
2349 See \`config.log' for more details" "$LINENO" 5; }
2350 fi
2351 done
2352
2353 if test -r "$cache_file"; then
2354 # Some versions of bash will fail to source /dev/null (special files
2355 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2356 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2358 $as_echo "$as_me: loading cache $cache_file" >&6;}
2359 case $cache_file in
2360 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2361 *) . "./$cache_file";;
2362 esac
2363 fi
2364 else
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2366 $as_echo "$as_me: creating cache $cache_file" >&6;}
2367 >$cache_file
2368 fi
2369
2370 # Check that the precious variables saved in the cache have kept the same
2371 # value.
2372 ac_cache_corrupted=false
2373 for ac_var in $ac_precious_vars; do
2374 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2375 eval ac_new_set=\$ac_env_${ac_var}_set
2376 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2377 eval ac_new_val=\$ac_env_${ac_var}_value
2378 case $ac_old_set,$ac_new_set in
2379 set,)
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2381 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2382 ac_cache_corrupted=: ;;
2383 ,set)
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2385 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2386 ac_cache_corrupted=: ;;
2387 ,);;
2388 *)
2389 if test "x$ac_old_val" != "x$ac_new_val"; then
2390 # differences in whitespace do not lead to failure.
2391 ac_old_val_w=`echo x $ac_old_val`
2392 ac_new_val_w=`echo x $ac_new_val`
2393 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2395 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2396 ac_cache_corrupted=:
2397 else
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2399 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2400 eval $ac_var=\$ac_old_val
2401 fi
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2403 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2405 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2406 fi;;
2407 esac
2408 # Pass precious variables to config.status.
2409 if test "$ac_new_set" = set; then
2410 case $ac_new_val in
2411 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2412 *) ac_arg=$ac_var=$ac_new_val ;;
2413 esac
2414 case " $ac_configure_args " in
2415 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2416 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2417 esac
2418 fi
2419 done
2420 if $ac_cache_corrupted; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2424 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2425 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2426 fi
2427 ## -------------------- ##
2428 ## Main body of script. ##
2429 ## -------------------- ##
2430
2431 ac_ext=c
2432 ac_cpp='$CPP $CPPFLAGS'
2433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2436
2437
2438
2439
2440
2441
2442 # AC_CONFIG_MACRO_DIR([config])
2443 ac_config_headers="$ac_config_headers config.h"
2444
2445
2446 libtool_VERSION=17:0:0
2447
2448
2449 # Default to --enable-multilib
2450 # Check whether --enable-multilib was given.
2451 if test "${enable_multilib+set}" = set; then :
2452 enableval=$enable_multilib; case "$enableval" in
2453 yes) multilib=yes ;;
2454 no) multilib=no ;;
2455 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2456 esac
2457 else
2458 multilib=yes
2459 fi
2460
2461
2462 # We may get other options which we leave undocumented:
2463 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2464 # See config-ml.in if you want the gory details.
2465
2466 if test "$srcdir" = "."; then
2467 if test "$with_target_subdir" != "."; then
2468 multi_basedir="$srcdir/$with_multisrctop../.."
2469 else
2470 multi_basedir="$srcdir/$with_multisrctop.."
2471 fi
2472 else
2473 multi_basedir="$srcdir/.."
2474 fi
2475
2476
2477 # Even if the default multilib is not a cross compilation,
2478 # it may be that some of the other multilibs are.
2479 if test $cross_compiling = no && test $multilib = yes \
2480 && test "x${with_multisubdir}" != x ; then
2481 cross_compiling=maybe
2482 fi
2483
2484 ac_config_commands="$ac_config_commands default-1"
2485
2486
2487
2488
2489 ac_aux_dir=
2490 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2491 if test -f "$ac_dir/install-sh"; then
2492 ac_aux_dir=$ac_dir
2493 ac_install_sh="$ac_aux_dir/install-sh -c"
2494 break
2495 elif test -f "$ac_dir/install.sh"; then
2496 ac_aux_dir=$ac_dir
2497 ac_install_sh="$ac_aux_dir/install.sh -c"
2498 break
2499 elif test -f "$ac_dir/shtool"; then
2500 ac_aux_dir=$ac_dir
2501 ac_install_sh="$ac_aux_dir/shtool install -c"
2502 break
2503 fi
2504 done
2505 if test -z "$ac_aux_dir"; then
2506 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2507 fi
2508
2509 # These three variables are undocumented and unsupported,
2510 # and are intended to be withdrawn in a future Autoconf release.
2511 # They can cause serious problems if a builder's source tree is in a directory
2512 # whose full name contains unusual characters.
2513 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2514 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2515 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2516
2517
2518 # Expand $ac_aux_dir to an absolute path.
2519 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2520
2521 ac_ext=c
2522 ac_cpp='$CPP $CPPFLAGS'
2523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2528 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530 $as_echo_n "checking for $ac_word... " >&6; }
2531 if ${ac_cv_prog_CC+:} false; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2544 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2547 fi
2548 done
2549 done
2550 IFS=$as_save_IFS
2551
2552 fi
2553 fi
2554 CC=$ac_cv_prog_CC
2555 if test -n "$CC"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2557 $as_echo "$CC" >&6; }
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2561 fi
2562
2563
2564 fi
2565 if test -z "$ac_cv_prog_CC"; then
2566 ac_ct_CC=$CC
2567 # Extract the first word of "gcc", so it can be a program name with args.
2568 set dummy gcc; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test -n "$ac_ct_CC"; then
2575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584 ac_cv_prog_ac_ct_CC="gcc"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2587 fi
2588 done
2589 done
2590 IFS=$as_save_IFS
2591
2592 fi
2593 fi
2594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2595 if test -n "$ac_ct_CC"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2597 $as_echo "$ac_ct_CC" >&6; }
2598 else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2601 fi
2602
2603 if test "x$ac_ct_CC" = x; then
2604 CC=""
2605 else
2606 case $cross_compiling:$ac_tool_warned in
2607 yes:)
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2610 ac_tool_warned=yes ;;
2611 esac
2612 CC=$ac_ct_CC
2613 fi
2614 else
2615 CC="$ac_cv_prog_CC"
2616 fi
2617
2618 if test -z "$CC"; then
2619 if test -n "$ac_tool_prefix"; then
2620 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2621 set dummy ${ac_tool_prefix}cc; ac_word=$2
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if ${ac_cv_prog_CC+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 if test -n "$CC"; then
2628 ac_cv_prog_CC="$CC" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2637 ac_cv_prog_CC="${ac_tool_prefix}cc"
2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2640 fi
2641 done
2642 done
2643 IFS=$as_save_IFS
2644
2645 fi
2646 fi
2647 CC=$ac_cv_prog_CC
2648 if test -n "$CC"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2650 $as_echo "$CC" >&6; }
2651 else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2654 fi
2655
2656
2657 fi
2658 fi
2659 if test -z "$CC"; then
2660 # Extract the first word of "cc", so it can be a program name with args.
2661 set dummy cc; ac_word=$2
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663 $as_echo_n "checking for $ac_word... " >&6; }
2664 if ${ac_cv_prog_CC+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 if test -n "$CC"; then
2668 ac_cv_prog_CC="$CC" # Let the user override the test.
2669 else
2670 ac_prog_rejected=no
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2679 ac_prog_rejected=yes
2680 continue
2681 fi
2682 ac_cv_prog_CC="cc"
2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2685 fi
2686 done
2687 done
2688 IFS=$as_save_IFS
2689
2690 if test $ac_prog_rejected = yes; then
2691 # We found a bogon in the path, so make sure we never use it.
2692 set dummy $ac_cv_prog_CC
2693 shift
2694 if test $# != 0; then
2695 # We chose a different compiler from the bogus one.
2696 # However, it has the same basename, so the bogon will be chosen
2697 # first if we set CC to just the basename; use the full file name.
2698 shift
2699 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2700 fi
2701 fi
2702 fi
2703 fi
2704 CC=$ac_cv_prog_CC
2705 if test -n "$CC"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2707 $as_echo "$CC" >&6; }
2708 else
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2711 fi
2712
2713
2714 fi
2715 if test -z "$CC"; then
2716 if test -n "$ac_tool_prefix"; then
2717 for ac_prog in cl.exe
2718 do
2719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if ${ac_cv_prog_CC+:} false; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC="$CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740 done
2741 done
2742 IFS=$as_save_IFS
2743
2744 fi
2745 fi
2746 CC=$ac_cv_prog_CC
2747 if test -n "$CC"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2749 $as_echo "$CC" >&6; }
2750 else
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2753 fi
2754
2755
2756 test -n "$CC" && break
2757 done
2758 fi
2759 if test -z "$CC"; then
2760 ac_ct_CC=$CC
2761 for ac_prog in cl.exe
2762 do
2763 # Extract the first word of "$ac_prog", so it can be a program name with args.
2764 set dummy $ac_prog; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if test -n "$ac_ct_CC"; then
2771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2775 do
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780 ac_cv_prog_ac_ct_CC="$ac_prog"
2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2783 fi
2784 done
2785 done
2786 IFS=$as_save_IFS
2787
2788 fi
2789 fi
2790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2791 if test -n "$ac_ct_CC"; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2793 $as_echo "$ac_ct_CC" >&6; }
2794 else
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2797 fi
2798
2799
2800 test -n "$ac_ct_CC" && break
2801 done
2802
2803 if test "x$ac_ct_CC" = x; then
2804 CC=""
2805 else
2806 case $cross_compiling:$ac_tool_warned in
2807 yes:)
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2810 ac_tool_warned=yes ;;
2811 esac
2812 CC=$ac_ct_CC
2813 fi
2814 fi
2815
2816 fi
2817
2818
2819 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821 as_fn_error $? "no acceptable C compiler found in \$PATH
2822 See \`config.log' for more details" "$LINENO" 5; }
2823
2824 # Provide some information about the compiler.
2825 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2826 set X $ac_compile
2827 ac_compiler=$2
2828 for ac_option in --version -v -V -qversion; do
2829 { { ac_try="$ac_compiler $ac_option >&5"
2830 case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833 esac
2834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2835 $as_echo "$ac_try_echo"; } >&5
2836 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2837 ac_status=$?
2838 if test -s conftest.err; then
2839 sed '10a\
2840 ... rest of stderr output deleted ...
2841 10q' conftest.err >conftest.er1
2842 cat conftest.er1 >&5
2843 fi
2844 rm -f conftest.er1 conftest.err
2845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2846 test $ac_status = 0; }
2847 done
2848
2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850 /* end confdefs.h. */
2851 #include <stdio.h>
2852 int
2853 main ()
2854 {
2855 printf ("hello world\n");
2856 ;
2857 return 0;
2858 }
2859 _ACEOF
2860 # FIXME: Cleanup?
2861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
2862 (eval $ac_link) 2>&5
2863 ac_status=$?
2864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2865 test $ac_status = 0; }; then :
2866 gcc_no_link=no
2867 else
2868 gcc_no_link=yes
2869 fi
2870 if test x$gcc_no_link = xyes; then
2871 # Setting cross_compile will disable run tests; it will
2872 # also disable AC_CHECK_FILE but that's generally
2873 # correct if we can't link.
2874 cross_compiling=yes
2875 EXEEXT=
2876 else
2877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878 /* end confdefs.h. */
2879
2880 int
2881 main ()
2882 {
2883
2884 ;
2885 return 0;
2886 }
2887 _ACEOF
2888 ac_clean_files_save=$ac_clean_files
2889 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2890 # Try to create an executable without -o first, disregard a.out.
2891 # It will help us diagnose broken compilers, and finding out an intuition
2892 # of exeext.
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2894 $as_echo_n "checking whether the C compiler works... " >&6; }
2895 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2896
2897 # The possible output files:
2898 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2899
2900 ac_rmfiles=
2901 for ac_file in $ac_files
2902 do
2903 case $ac_file in
2904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2905 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2906 esac
2907 done
2908 rm -f $ac_rmfiles
2909
2910 if { { ac_try="$ac_link_default"
2911 case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914 esac
2915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2916 $as_echo "$ac_try_echo"; } >&5
2917 (eval "$ac_link_default") 2>&5
2918 ac_status=$?
2919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2920 test $ac_status = 0; }; then :
2921 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2922 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2923 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2924 # so that the user can short-circuit this test for compilers unknown to
2925 # Autoconf.
2926 for ac_file in $ac_files ''
2927 do
2928 test -f "$ac_file" || continue
2929 case $ac_file in
2930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2931 ;;
2932 [ab].out )
2933 # We found the default executable, but exeext='' is most
2934 # certainly right.
2935 break;;
2936 *.* )
2937 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2938 then :; else
2939 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940 fi
2941 # We set ac_cv_exeext here because the later test for it is not
2942 # safe: cross compilers may not add the suffix if given an `-o'
2943 # argument, so we may need to know it at that point already.
2944 # Even if this section looks crufty: it has the advantage of
2945 # actually working.
2946 break;;
2947 * )
2948 break;;
2949 esac
2950 done
2951 test "$ac_cv_exeext" = no && ac_cv_exeext=
2952
2953 else
2954 ac_file=''
2955 fi
2956 if test -z "$ac_file"; then :
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2959 $as_echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2961
2962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2964 as_fn_error 77 "C compiler cannot create executables
2965 See \`config.log' for more details" "$LINENO" 5; }
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2968 $as_echo "yes" >&6; }
2969 fi
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2971 $as_echo_n "checking for C compiler default output file name... " >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2973 $as_echo "$ac_file" >&6; }
2974 ac_exeext=$ac_cv_exeext
2975
2976 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2977 ac_clean_files=$ac_clean_files_save
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2979 $as_echo_n "checking for suffix of executables... " >&6; }
2980 if { { ac_try="$ac_link"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2986 $as_echo "$ac_try_echo"; } >&5
2987 (eval "$ac_link") 2>&5
2988 ac_status=$?
2989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2990 test $ac_status = 0; }; then :
2991 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2992 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2993 # work properly (i.e., refer to `conftest.exe'), while it won't with
2994 # `rm'.
2995 for ac_file in conftest.exe conftest conftest.*; do
2996 test -f "$ac_file" || continue
2997 case $ac_file in
2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2999 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000 break;;
3001 * ) break;;
3002 esac
3003 done
3004 else
3005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3008 See \`config.log' for more details" "$LINENO" 5; }
3009 fi
3010 rm -f conftest conftest$ac_cv_exeext
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3012 $as_echo "$ac_cv_exeext" >&6; }
3013
3014 rm -f conftest.$ac_ext
3015 EXEEXT=$ac_cv_exeext
3016 ac_exeext=$EXEEXT
3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018 /* end confdefs.h. */
3019 #include <stdio.h>
3020 int
3021 main ()
3022 {
3023 FILE *f = fopen ("conftest.out", "w");
3024 return ferror (f) || fclose (f) != 0;
3025
3026 ;
3027 return 0;
3028 }
3029 _ACEOF
3030 ac_clean_files="$ac_clean_files conftest.out"
3031 # Check that the compiler produces executables we can run. If not, either
3032 # the compiler is broken, or we cross compile.
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3034 $as_echo_n "checking whether we are cross compiling... " >&6; }
3035 if test "$cross_compiling" != yes; then
3036 { { ac_try="$ac_link"
3037 case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040 esac
3041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3042 $as_echo "$ac_try_echo"; } >&5
3043 (eval "$ac_link") 2>&5
3044 ac_status=$?
3045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3046 test $ac_status = 0; }
3047 if { ac_try='./conftest$ac_cv_exeext'
3048 { { case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053 $as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_try") 2>&5
3055 ac_status=$?
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }; }; then
3058 cross_compiling=no
3059 else
3060 if test "$cross_compiling" = maybe; then
3061 cross_compiling=yes
3062 else
3063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3065 as_fn_error $? "cannot run C compiled programs.
3066 If you meant to cross compile, use \`--host'.
3067 See \`config.log' for more details" "$LINENO" 5; }
3068 fi
3069 fi
3070 fi
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3072 $as_echo "$cross_compiling" >&6; }
3073
3074 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3075 ac_clean_files=$ac_clean_files_save
3076 fi
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3078 $as_echo_n "checking for suffix of object files... " >&6; }
3079 if ${ac_cv_objext+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083 /* end confdefs.h. */
3084
3085 int
3086 main ()
3087 {
3088
3089 ;
3090 return 0;
3091 }
3092 _ACEOF
3093 rm -f conftest.o conftest.obj
3094 if { { ac_try="$ac_compile"
3095 case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100 $as_echo "$ac_try_echo"; } >&5
3101 (eval "$ac_compile") 2>&5
3102 ac_status=$?
3103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104 test $ac_status = 0; }; then :
3105 for ac_file in conftest.o conftest.obj conftest.*; do
3106 test -f "$ac_file" || continue;
3107 case $ac_file in
3108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3109 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3110 break;;
3111 esac
3112 done
3113 else
3114 $as_echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3119 as_fn_error $? "cannot compute suffix of object files: cannot compile
3120 See \`config.log' for more details" "$LINENO" 5; }
3121 fi
3122 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3123 fi
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3125 $as_echo "$ac_cv_objext" >&6; }
3126 OBJEXT=$ac_cv_objext
3127 ac_objext=$OBJEXT
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3129 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3130 if ${ac_cv_c_compiler_gnu+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134 /* end confdefs.h. */
3135
3136 int
3137 main ()
3138 {
3139 #ifndef __GNUC__
3140 choke me
3141 #endif
3142
3143 ;
3144 return 0;
3145 }
3146 _ACEOF
3147 if ac_fn_c_try_compile "$LINENO"; then :
3148 ac_compiler_gnu=yes
3149 else
3150 ac_compiler_gnu=no
3151 fi
3152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3154
3155 fi
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3157 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3158 if test $ac_compiler_gnu = yes; then
3159 GCC=yes
3160 else
3161 GCC=
3162 fi
3163 ac_test_CFLAGS=${CFLAGS+set}
3164 ac_save_CFLAGS=$CFLAGS
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3166 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3167 if ${ac_cv_prog_cc_g+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 ac_save_c_werror_flag=$ac_c_werror_flag
3171 ac_c_werror_flag=yes
3172 ac_cv_prog_cc_g=no
3173 CFLAGS="-g"
3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h. */
3176
3177 int
3178 main ()
3179 {
3180
3181 ;
3182 return 0;
3183 }
3184 _ACEOF
3185 if ac_fn_c_try_compile "$LINENO"; then :
3186 ac_cv_prog_cc_g=yes
3187 else
3188 CFLAGS=""
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3191
3192 int
3193 main ()
3194 {
3195
3196 ;
3197 return 0;
3198 }
3199 _ACEOF
3200 if ac_fn_c_try_compile "$LINENO"; then :
3201
3202 else
3203 ac_c_werror_flag=$ac_save_c_werror_flag
3204 CFLAGS="-g"
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3207
3208 int
3209 main ()
3210 {
3211
3212 ;
3213 return 0;
3214 }
3215 _ACEOF
3216 if ac_fn_c_try_compile "$LINENO"; then :
3217 ac_cv_prog_cc_g=yes
3218 fi
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 fi
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 fi
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 ac_c_werror_flag=$ac_save_c_werror_flag
3225 fi
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3227 $as_echo "$ac_cv_prog_cc_g" >&6; }
3228 if test "$ac_test_CFLAGS" = set; then
3229 CFLAGS=$ac_save_CFLAGS
3230 elif test $ac_cv_prog_cc_g = yes; then
3231 if test "$GCC" = yes; then
3232 CFLAGS="-g -O2"
3233 else
3234 CFLAGS="-g"
3235 fi
3236 else
3237 if test "$GCC" = yes; then
3238 CFLAGS="-O2"
3239 else
3240 CFLAGS=
3241 fi
3242 fi
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3244 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3245 if ${ac_cv_prog_cc_c89+:} false; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 ac_cv_prog_cc_c89=no
3249 ac_save_CC=$CC
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3252 #include <stdarg.h>
3253 #include <stdio.h>
3254 struct stat;
3255 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3256 struct buf { int x; };
3257 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3258 static char *e (p, i)
3259 char **p;
3260 int i;
3261 {
3262 return p[i];
3263 }
3264 static char *f (char * (*g) (char **, int), char **p, ...)
3265 {
3266 char *s;
3267 va_list v;
3268 va_start (v,p);
3269 s = g (p, va_arg (v,int));
3270 va_end (v);
3271 return s;
3272 }
3273
3274 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3275 function prototypes and stuff, but not '\xHH' hex character constants.
3276 These don't provoke an error unfortunately, instead are silently treated
3277 as 'x'. The following induces an error, until -std is added to get
3278 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3279 array size at least. It's necessary to write '\x00'==0 to get something
3280 that's true only with -std. */
3281 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3282
3283 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3284 inside strings and character constants. */
3285 #define FOO(x) 'x'
3286 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3287
3288 int test (int i, double x);
3289 struct s1 {int (*f) (int a);};
3290 struct s2 {int (*f) (double a);};
3291 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3292 int argc;
3293 char **argv;
3294 int
3295 main ()
3296 {
3297 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3298 ;
3299 return 0;
3300 }
3301 _ACEOF
3302 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3303 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3304 do
3305 CC="$ac_save_CC $ac_arg"
3306 if ac_fn_c_try_compile "$LINENO"; then :
3307 ac_cv_prog_cc_c89=$ac_arg
3308 fi
3309 rm -f core conftest.err conftest.$ac_objext
3310 test "x$ac_cv_prog_cc_c89" != "xno" && break
3311 done
3312 rm -f conftest.$ac_ext
3313 CC=$ac_save_CC
3314
3315 fi
3316 # AC_CACHE_VAL
3317 case "x$ac_cv_prog_cc_c89" in
3318 x)
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3320 $as_echo "none needed" >&6; } ;;
3321 xno)
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3323 $as_echo "unsupported" >&6; } ;;
3324 *)
3325 CC="$CC $ac_cv_prog_cc_c89"
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3327 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3328 esac
3329 if test "x$ac_cv_prog_cc_c89" != xno; then :
3330
3331 fi
3332
3333 ac_ext=c
3334 ac_cpp='$CPP $CPPFLAGS'
3335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338
3339 ac_ext=c
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3345 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3346 if ${am_cv_prog_cc_c_o+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351
3352 int
3353 main ()
3354 {
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 # Make sure it works both with $CC and with simple cc.
3361 # Following AC_PROG_CC_C_O, we do the test twice because some
3362 # compilers refuse to overwrite an existing .o file with -o,
3363 # though they will create one.
3364 am_cv_prog_cc_c_o=yes
3365 for am_i in 1 2; do
3366 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3367 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } \
3371 && test -f conftest2.$ac_objext; then
3372 : OK
3373 else
3374 am_cv_prog_cc_c_o=no
3375 break
3376 fi
3377 done
3378 rm -f core conftest*
3379 unset am_i
3380 fi
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3382 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3383 if test "$am_cv_prog_cc_c_o" != yes; then
3384 # Losing compiler, so override with the script.
3385 # FIXME: It is wrong to rewrite CC.
3386 # But if we don't then we get into trouble of one sort or another.
3387 # A longer-term fix would be to have automake use am__CC in this case,
3388 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3389 CC="$am_aux_dir/compile $CC"
3390 fi
3391 ac_ext=c
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396
3397
3398
3399 ac_ext=c
3400 ac_cpp='$CPP $CPPFLAGS'
3401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3405 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3406 # On Suns, sometimes $CPP names a directory.
3407 if test -n "$CPP" && test -d "$CPP"; then
3408 CPP=
3409 fi
3410 if test -z "$CPP"; then
3411 if ${ac_cv_prog_CPP+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 # Double quotes because CPP needs to be expanded
3415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3416 do
3417 ac_preproc_ok=false
3418 for ac_c_preproc_warn_flag in '' yes
3419 do
3420 # Use a header file that comes with gcc, so configuring glibc
3421 # with a fresh cross-compiler works.
3422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423 # <limits.h> exists even on freestanding compilers.
3424 # On the NeXT, cc -E runs the code through the compiler's parser,
3425 # not just through cpp. "Syntax error" is here to catch this case.
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3428 #ifdef __STDC__
3429 # include <limits.h>
3430 #else
3431 # include <assert.h>
3432 #endif
3433 Syntax error
3434 _ACEOF
3435 if ac_fn_c_try_cpp "$LINENO"; then :
3436
3437 else
3438 # Broken: fails on valid input.
3439 continue
3440 fi
3441 rm -f conftest.err conftest.i conftest.$ac_ext
3442
3443 # OK, works on sane cases. Now check whether nonexistent headers
3444 # can be detected and how.
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3447 #include <ac_nonexistent.h>
3448 _ACEOF
3449 if ac_fn_c_try_cpp "$LINENO"; then :
3450 # Broken: success on invalid input.
3451 continue
3452 else
3453 # Passes both tests.
3454 ac_preproc_ok=:
3455 break
3456 fi
3457 rm -f conftest.err conftest.i conftest.$ac_ext
3458
3459 done
3460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3461 rm -f conftest.i conftest.err conftest.$ac_ext
3462 if $ac_preproc_ok; then :
3463 break
3464 fi
3465
3466 done
3467 ac_cv_prog_CPP=$CPP
3468
3469 fi
3470 CPP=$ac_cv_prog_CPP
3471 else
3472 ac_cv_prog_CPP=$CPP
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3475 $as_echo "$CPP" >&6; }
3476 ac_preproc_ok=false
3477 for ac_c_preproc_warn_flag in '' yes
3478 do
3479 # Use a header file that comes with gcc, so configuring glibc
3480 # with a fresh cross-compiler works.
3481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3482 # <limits.h> exists even on freestanding compilers.
3483 # On the NeXT, cc -E runs the code through the compiler's parser,
3484 # not just through cpp. "Syntax error" is here to catch this case.
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3487 #ifdef __STDC__
3488 # include <limits.h>
3489 #else
3490 # include <assert.h>
3491 #endif
3492 Syntax error
3493 _ACEOF
3494 if ac_fn_c_try_cpp "$LINENO"; then :
3495
3496 else
3497 # Broken: fails on valid input.
3498 continue
3499 fi
3500 rm -f conftest.err conftest.i conftest.$ac_ext
3501
3502 # OK, works on sane cases. Now check whether nonexistent headers
3503 # can be detected and how.
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3506 #include <ac_nonexistent.h>
3507 _ACEOF
3508 if ac_fn_c_try_cpp "$LINENO"; then :
3509 # Broken: success on invalid input.
3510 continue
3511 else
3512 # Passes both tests.
3513 ac_preproc_ok=:
3514 break
3515 fi
3516 rm -f conftest.err conftest.i conftest.$ac_ext
3517
3518 done
3519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3520 rm -f conftest.i conftest.err conftest.$ac_ext
3521 if $ac_preproc_ok; then :
3522
3523 else
3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3527 See \`config.log' for more details" "$LINENO" 5; }
3528 fi
3529
3530 ac_ext=c
3531 ac_cpp='$CPP $CPPFLAGS'
3532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535
3536
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3538 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3539 if ${ac_cv_path_GREP+:} false; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -z "$GREP"; then
3543 ac_path_GREP_found=false
3544 # Loop through the user's path and test for each of PROGNAME-LIST
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3547 do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_prog in grep ggrep; do
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3553 as_fn_executable_p "$ac_path_GREP" || continue
3554 # Check for GNU ac_path_GREP and select it if it is found.
3555 # Check for GNU $ac_path_GREP
3556 case `"$ac_path_GREP" --version 2>&1` in
3557 *GNU*)
3558 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3559 *)
3560 ac_count=0
3561 $as_echo_n 0123456789 >"conftest.in"
3562 while :
3563 do
3564 cat "conftest.in" "conftest.in" >"conftest.tmp"
3565 mv "conftest.tmp" "conftest.in"
3566 cp "conftest.in" "conftest.nl"
3567 $as_echo 'GREP' >> "conftest.nl"
3568 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3570 as_fn_arith $ac_count + 1 && ac_count=$as_val
3571 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3572 # Best one so far, save it but keep looking for a better one
3573 ac_cv_path_GREP="$ac_path_GREP"
3574 ac_path_GREP_max=$ac_count
3575 fi
3576 # 10*(2^10) chars as input seems more than enough
3577 test $ac_count -gt 10 && break
3578 done
3579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3580 esac
3581
3582 $ac_path_GREP_found && break 3
3583 done
3584 done
3585 done
3586 IFS=$as_save_IFS
3587 if test -z "$ac_cv_path_GREP"; then
3588 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3589 fi
3590 else
3591 ac_cv_path_GREP=$GREP
3592 fi
3593
3594 fi
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3596 $as_echo "$ac_cv_path_GREP" >&6; }
3597 GREP="$ac_cv_path_GREP"
3598
3599
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3601 $as_echo_n "checking for egrep... " >&6; }
3602 if ${ac_cv_path_EGREP+:} false; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3606 then ac_cv_path_EGREP="$GREP -E"
3607 else
3608 if test -z "$EGREP"; then
3609 ac_path_EGREP_found=false
3610 # Loop through the user's path and test for each of PROGNAME-LIST
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3613 do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_prog in egrep; do
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3619 as_fn_executable_p "$ac_path_EGREP" || continue
3620 # Check for GNU ac_path_EGREP and select it if it is found.
3621 # Check for GNU $ac_path_EGREP
3622 case `"$ac_path_EGREP" --version 2>&1` in
3623 *GNU*)
3624 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3625 *)
3626 ac_count=0
3627 $as_echo_n 0123456789 >"conftest.in"
3628 while :
3629 do
3630 cat "conftest.in" "conftest.in" >"conftest.tmp"
3631 mv "conftest.tmp" "conftest.in"
3632 cp "conftest.in" "conftest.nl"
3633 $as_echo 'EGREP' >> "conftest.nl"
3634 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3636 as_fn_arith $ac_count + 1 && ac_count=$as_val
3637 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3638 # Best one so far, save it but keep looking for a better one
3639 ac_cv_path_EGREP="$ac_path_EGREP"
3640 ac_path_EGREP_max=$ac_count
3641 fi
3642 # 10*(2^10) chars as input seems more than enough
3643 test $ac_count -gt 10 && break
3644 done
3645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3646 esac
3647
3648 $ac_path_EGREP_found && break 3
3649 done
3650 done
3651 done
3652 IFS=$as_save_IFS
3653 if test -z "$ac_cv_path_EGREP"; then
3654 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3655 fi
3656 else
3657 ac_cv_path_EGREP=$EGREP
3658 fi
3659
3660 fi
3661 fi
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3663 $as_echo "$ac_cv_path_EGREP" >&6; }
3664 EGREP="$ac_cv_path_EGREP"
3665
3666
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3668 $as_echo_n "checking for ANSI C header files... " >&6; }
3669 if ${ac_cv_header_stdc+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3674 #include <stdlib.h>
3675 #include <stdarg.h>
3676 #include <string.h>
3677 #include <float.h>
3678
3679 int
3680 main ()
3681 {
3682
3683 ;
3684 return 0;
3685 }
3686 _ACEOF
3687 if ac_fn_c_try_compile "$LINENO"; then :
3688 ac_cv_header_stdc=yes
3689 else
3690 ac_cv_header_stdc=no
3691 fi
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693
3694 if test $ac_cv_header_stdc = yes; then
3695 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3698 #include <string.h>
3699
3700 _ACEOF
3701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3702 $EGREP "memchr" >/dev/null 2>&1; then :
3703
3704 else
3705 ac_cv_header_stdc=no
3706 fi
3707 rm -f conftest*
3708
3709 fi
3710
3711 if test $ac_cv_header_stdc = yes; then
3712 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715 #include <stdlib.h>
3716
3717 _ACEOF
3718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3719 $EGREP "free" >/dev/null 2>&1; then :
3720
3721 else
3722 ac_cv_header_stdc=no
3723 fi
3724 rm -f conftest*
3725
3726 fi
3727
3728 if test $ac_cv_header_stdc = yes; then
3729 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3730 if test "$cross_compiling" = yes; then :
3731 :
3732 else
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3735 #include <ctype.h>
3736 #include <stdlib.h>
3737 #if ((' ' & 0x0FF) == 0x020)
3738 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3739 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3740 #else
3741 # define ISLOWER(c) \
3742 (('a' <= (c) && (c) <= 'i') \
3743 || ('j' <= (c) && (c) <= 'r') \
3744 || ('s' <= (c) && (c) <= 'z'))
3745 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3746 #endif
3747
3748 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3749 int
3750 main ()
3751 {
3752 int i;
3753 for (i = 0; i < 256; i++)
3754 if (XOR (islower (i), ISLOWER (i))
3755 || toupper (i) != TOUPPER (i))
3756 return 2;
3757 return 0;
3758 }
3759 _ACEOF
3760 if ac_fn_c_try_run "$LINENO"; then :
3761
3762 else
3763 ac_cv_header_stdc=no
3764 fi
3765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3766 conftest.$ac_objext conftest.beam conftest.$ac_ext
3767 fi
3768
3769 fi
3770 fi
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3772 $as_echo "$ac_cv_header_stdc" >&6; }
3773 if test $ac_cv_header_stdc = yes; then
3774
3775 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3776
3777 fi
3778
3779 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3780 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3781 inttypes.h stdint.h unistd.h
3782 do :
3783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3784 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3785 "
3786 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3787 cat >>confdefs.h <<_ACEOF
3788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3789 _ACEOF
3790
3791 fi
3792
3793 done
3794
3795
3796
3797 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3798 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3799 MINIX=yes
3800 else
3801 MINIX=
3802 fi
3803
3804
3805 if test "$MINIX" = yes; then
3806
3807 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3808
3809
3810 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3811
3812
3813 $as_echo "#define _MINIX 1" >>confdefs.h
3814
3815 fi
3816
3817
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3819 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3820 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3821 $as_echo_n "(cached) " >&6
3822 else
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825
3826 # define __EXTENSIONS__ 1
3827 $ac_includes_default
3828 int
3829 main ()
3830 {
3831
3832 ;
3833 return 0;
3834 }
3835 _ACEOF
3836 if ac_fn_c_try_compile "$LINENO"; then :
3837 ac_cv_safe_to_define___extensions__=yes
3838 else
3839 ac_cv_safe_to_define___extensions__=no
3840 fi
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3844 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3845 test $ac_cv_safe_to_define___extensions__ = yes &&
3846 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3847
3848 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3849
3850 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3851
3852 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3853
3854 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3855
3856
3857
3858 # Do not delete or change the following two lines. For why, see
3859 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3860 # Make sure we can run config.sub.
3861 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3862 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3863
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3865 $as_echo_n "checking build system type... " >&6; }
3866 if ${ac_cv_build+:} false; then :
3867 $as_echo_n "(cached) " >&6
3868 else
3869 ac_build_alias=$build_alias
3870 test "x$ac_build_alias" = x &&
3871 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3872 test "x$ac_build_alias" = x &&
3873 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3874 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3875 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3876
3877 fi
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3879 $as_echo "$ac_cv_build" >&6; }
3880 case $ac_cv_build in
3881 *-*-*) ;;
3882 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3883 esac
3884 build=$ac_cv_build
3885 ac_save_IFS=$IFS; IFS='-'
3886 set x $ac_cv_build
3887 shift
3888 build_cpu=$1
3889 build_vendor=$2
3890 shift; shift
3891 # Remember, the first character of IFS is used to create $*,
3892 # except with old shells:
3893 build_os=$*
3894 IFS=$ac_save_IFS
3895 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3896
3897
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3899 $as_echo_n "checking host system type... " >&6; }
3900 if ${ac_cv_host+:} false; then :
3901 $as_echo_n "(cached) " >&6
3902 else
3903 if test "x$host_alias" = x; then
3904 ac_cv_host=$ac_cv_build
3905 else
3906 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3907 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3908 fi
3909
3910 fi
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3912 $as_echo "$ac_cv_host" >&6; }
3913 case $ac_cv_host in
3914 *-*-*) ;;
3915 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3916 esac
3917 host=$ac_cv_host
3918 ac_save_IFS=$IFS; IFS='-'
3919 set x $ac_cv_host
3920 shift
3921 host_cpu=$1
3922 host_vendor=$2
3923 shift; shift
3924 # Remember, the first character of IFS is used to create $*,
3925 # except with old shells:
3926 host_os=$*
3927 IFS=$ac_save_IFS
3928 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3929
3930
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3932 $as_echo_n "checking target system type... " >&6; }
3933 if ${ac_cv_target+:} false; then :
3934 $as_echo_n "(cached) " >&6
3935 else
3936 if test "x$target_alias" = x; then
3937 ac_cv_target=$ac_cv_host
3938 else
3939 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3940 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3941 fi
3942
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3945 $as_echo "$ac_cv_target" >&6; }
3946 case $ac_cv_target in
3947 *-*-*) ;;
3948 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3949 esac
3950 target=$ac_cv_target
3951 ac_save_IFS=$IFS; IFS='-'
3952 set x $ac_cv_target
3953 shift
3954 target_cpu=$1
3955 target_vendor=$2
3956 shift; shift
3957 # Remember, the first character of IFS is used to create $*,
3958 # except with old shells:
3959 target_os=$*
3960 IFS=$ac_save_IFS
3961 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3962
3963
3964 # The aliases save the names the user supplied, while $host etc.
3965 # will get canonicalized.
3966 test -n "$target_alias" &&
3967 test "$program_prefix$program_suffix$program_transform_name" = \
3968 NONENONEs,x,x, &&
3969 program_prefix=${target_alias}-
3970
3971 target_alias=${target_alias-$host_alias}
3972
3973
3974 am__api_version='1.15'
3975
3976 # Find a good install program. We prefer a C program (faster),
3977 # so one script is as good as another. But avoid the broken or
3978 # incompatible versions:
3979 # SysV /etc/install, /usr/sbin/install
3980 # SunOS /usr/etc/install
3981 # IRIX /sbin/install
3982 # AIX /bin/install
3983 # AmigaOS /C/install, which installs bootblocks on floppy discs
3984 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3985 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3986 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3987 # OS/2's system install, which has a completely different semantic
3988 # ./install, which can be erroneously created by make from ./install.sh.
3989 # Reject install programs that cannot install multiple files.
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3991 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3992 if test -z "$INSTALL"; then
3993 if ${ac_cv_path_install+:} false; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 # Account for people who put trailing slashes in PATH elements.
4002 case $as_dir/ in #((
4003 ./ | .// | /[cC]/* | \
4004 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4005 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4006 /usr/ucb/* ) ;;
4007 *)
4008 # OSF1 and SCO ODT 3.0 have their own names for install.
4009 # Don't use installbsd from OSF since it installs stuff as root
4010 # by default.
4011 for ac_prog in ginstall scoinst install; do
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4014 if test $ac_prog = install &&
4015 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4016 # AIX install. It has an incompatible calling convention.
4017 :
4018 elif test $ac_prog = install &&
4019 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4020 # program-specific install script used by HP pwplus--don't use.
4021 :
4022 else
4023 rm -rf conftest.one conftest.two conftest.dir
4024 echo one > conftest.one
4025 echo two > conftest.two
4026 mkdir conftest.dir
4027 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4028 test -s conftest.one && test -s conftest.two &&
4029 test -s conftest.dir/conftest.one &&
4030 test -s conftest.dir/conftest.two
4031 then
4032 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4033 break 3
4034 fi
4035 fi
4036 fi
4037 done
4038 done
4039 ;;
4040 esac
4041
4042 done
4043 IFS=$as_save_IFS
4044
4045 rm -rf conftest.one conftest.two conftest.dir
4046
4047 fi
4048 if test "${ac_cv_path_install+set}" = set; then
4049 INSTALL=$ac_cv_path_install
4050 else
4051 # As a last resort, use the slow shell script. Don't cache a
4052 # value for INSTALL within a source directory, because that will
4053 # break other packages using the cache if that directory is
4054 # removed, or if the value is a relative name.
4055 INSTALL=$ac_install_sh
4056 fi
4057 fi
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4059 $as_echo "$INSTALL" >&6; }
4060
4061 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4062 # It thinks the first close brace ends the variable substitution.
4063 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4064
4065 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4066
4067 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4068
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4070 $as_echo_n "checking whether build environment is sane... " >&6; }
4071 # Reject unsafe characters in $srcdir or the absolute working directory
4072 # name. Accept space and tab only in the latter.
4073 am_lf='
4074 '
4075 case `pwd` in
4076 *[\\\"\#\$\&\'\`$am_lf]*)
4077 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4078 esac
4079 case $srcdir in
4080 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4081 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4082 esac
4083
4084 # Do 'set' in a subshell so we don't clobber the current shell's
4085 # arguments. Must try -L first in case configure is actually a
4086 # symlink; some systems play weird games with the mod time of symlinks
4087 # (eg FreeBSD returns the mod time of the symlink's containing
4088 # directory).
4089 if (
4090 am_has_slept=no
4091 for am_try in 1 2; do
4092 echo "timestamp, slept: $am_has_slept" > conftest.file
4093 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4094 if test "$*" = "X"; then
4095 # -L didn't work.
4096 set X `ls -t "$srcdir/configure" conftest.file`
4097 fi
4098 if test "$*" != "X $srcdir/configure conftest.file" \
4099 && test "$*" != "X conftest.file $srcdir/configure"; then
4100
4101 # If neither matched, then we have a broken ls. This can happen
4102 # if, for instance, CONFIG_SHELL is bash and it inherits a
4103 # broken ls alias from the environment. This has actually
4104 # happened. Such a system could not be considered "sane".
4105 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4106 alias in your environment" "$LINENO" 5
4107 fi
4108 if test "$2" = conftest.file || test $am_try -eq 2; then
4109 break
4110 fi
4111 # Just in case.
4112 sleep 1
4113 am_has_slept=yes
4114 done
4115 test "$2" = conftest.file
4116 )
4117 then
4118 # Ok.
4119 :
4120 else
4121 as_fn_error $? "newly created file is older than distributed files!
4122 Check your system clock" "$LINENO" 5
4123 fi
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4125 $as_echo "yes" >&6; }
4126 # If we didn't sleep, we still need to ensure time stamps of config.status and
4127 # generated files are strictly newer.
4128 am_sleep_pid=
4129 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4130 ( sleep 1 ) &
4131 am_sleep_pid=$!
4132 fi
4133
4134 rm -f conftest.file
4135
4136 test "$program_prefix" != NONE &&
4137 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4138 # Use a double $ so make ignores it.
4139 test "$program_suffix" != NONE &&
4140 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4141 # Double any \ or $.
4142 # By default was `s,x,x', remove it if useless.
4143 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4144 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4145
4146 if test x"${MISSING+set}" != xset; then
4147 case $am_aux_dir in
4148 *\ * | *\ *)
4149 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4150 *)
4151 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4152 esac
4153 fi
4154 # Use eval to expand $SHELL
4155 if eval "$MISSING --is-lightweight"; then
4156 am_missing_run="$MISSING "
4157 else
4158 am_missing_run=
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4160 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4161 fi
4162
4163 if test x"${install_sh+set}" != xset; then
4164 case $am_aux_dir in
4165 *\ * | *\ *)
4166 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4167 *)
4168 install_sh="\${SHELL} $am_aux_dir/install-sh"
4169 esac
4170 fi
4171
4172 # Installed binaries are usually stripped using 'strip' when the user
4173 # run "make install-strip". However 'strip' might not be the right
4174 # tool to use in cross-compilation environments, therefore Automake
4175 # will honor the 'STRIP' environment variable to overrule this program.
4176 if test "$cross_compiling" != no; then
4177 if test -n "$ac_tool_prefix"; then
4178 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4179 set dummy ${ac_tool_prefix}strip; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_STRIP+:} false; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 if test -n "$STRIP"; then
4186 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 break 2
4198 fi
4199 done
4200 done
4201 IFS=$as_save_IFS
4202
4203 fi
4204 fi
4205 STRIP=$ac_cv_prog_STRIP
4206 if test -n "$STRIP"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4208 $as_echo "$STRIP" >&6; }
4209 else
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4212 fi
4213
4214
4215 fi
4216 if test -z "$ac_cv_prog_STRIP"; then
4217 ac_ct_STRIP=$STRIP
4218 # Extract the first word of "strip", so it can be a program name with args.
4219 set dummy strip; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 if test -n "$ac_ct_STRIP"; then
4226 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_prog_ac_ct_STRIP="strip"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4238 fi
4239 done
4240 done
4241 IFS=$as_save_IFS
4242
4243 fi
4244 fi
4245 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4246 if test -n "$ac_ct_STRIP"; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4248 $as_echo "$ac_ct_STRIP" >&6; }
4249 else
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4252 fi
4253
4254 if test "x$ac_ct_STRIP" = x; then
4255 STRIP=":"
4256 else
4257 case $cross_compiling:$ac_tool_warned in
4258 yes:)
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4261 ac_tool_warned=yes ;;
4262 esac
4263 STRIP=$ac_ct_STRIP
4264 fi
4265 else
4266 STRIP="$ac_cv_prog_STRIP"
4267 fi
4268
4269 fi
4270 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4271
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4273 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4274 if test -z "$MKDIR_P"; then
4275 if ${ac_cv_path_mkdir+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4280 do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_prog in mkdir gmkdir; do
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4286 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4287 'mkdir (GNU coreutils) '* | \
4288 'mkdir (coreutils) '* | \
4289 'mkdir (fileutils) '4.1*)
4290 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4291 break 3;;
4292 esac
4293 done
4294 done
4295 done
4296 IFS=$as_save_IFS
4297
4298 fi
4299
4300 test -d ./--version && rmdir ./--version
4301 if test "${ac_cv_path_mkdir+set}" = set; then
4302 MKDIR_P="$ac_cv_path_mkdir -p"
4303 else
4304 # As a last resort, use the slow shell script. Don't cache a
4305 # value for MKDIR_P within a source directory, because that will
4306 # break other packages using the cache if that directory is
4307 # removed, or if the value is a relative name.
4308 MKDIR_P="$ac_install_sh -d"
4309 fi
4310 fi
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4312 $as_echo "$MKDIR_P" >&6; }
4313
4314 for ac_prog in gawk mawk nawk awk
4315 do
4316 # Extract the first word of "$ac_prog", so it can be a program name with args.
4317 set dummy $ac_prog; ac_word=$2
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4319 $as_echo_n "checking for $ac_word... " >&6; }
4320 if ${ac_cv_prog_AWK+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 if test -n "$AWK"; then
4324 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_prog_AWK="$ac_prog"
4334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4336 fi
4337 done
4338 done
4339 IFS=$as_save_IFS
4340
4341 fi
4342 fi
4343 AWK=$ac_cv_prog_AWK
4344 if test -n "$AWK"; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4346 $as_echo "$AWK" >&6; }
4347 else
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4350 fi
4351
4352
4353 test -n "$AWK" && break
4354 done
4355
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4357 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4358 set x ${MAKE-make}
4359 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4360 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 cat >conftest.make <<\_ACEOF
4364 SHELL = /bin/sh
4365 all:
4366 @echo '@@@%%%=$(MAKE)=@@@%%%'
4367 _ACEOF
4368 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4369 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4370 *@@@%%%=?*=@@@%%%*)
4371 eval ac_cv_prog_make_${ac_make}_set=yes;;
4372 *)
4373 eval ac_cv_prog_make_${ac_make}_set=no;;
4374 esac
4375 rm -f conftest.make
4376 fi
4377 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4379 $as_echo "yes" >&6; }
4380 SET_MAKE=
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4384 SET_MAKE="MAKE=${MAKE-make}"
4385 fi
4386
4387 rm -rf .tst 2>/dev/null
4388 mkdir .tst 2>/dev/null
4389 if test -d .tst; then
4390 am__leading_dot=.
4391 else
4392 am__leading_dot=_
4393 fi
4394 rmdir .tst 2>/dev/null
4395
4396 DEPDIR="${am__leading_dot}deps"
4397
4398 ac_config_commands="$ac_config_commands depfiles"
4399
4400
4401 am_make=${MAKE-make}
4402 cat > confinc << 'END'
4403 am__doit:
4404 @echo this is the am__doit target
4405 .PHONY: am__doit
4406 END
4407 # If we don't find an include directive, just comment out the code.
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4409 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4410 am__include="#"
4411 am__quote=
4412 _am_result=none
4413 # First try GNU make style include.
4414 echo "include confinc" > confmf
4415 # Ignore all kinds of additional output from 'make'.
4416 case `$am_make -s -f confmf 2> /dev/null` in #(
4417 *the\ am__doit\ target*)
4418 am__include=include
4419 am__quote=
4420 _am_result=GNU
4421 ;;
4422 esac
4423 # Now try BSD make style include.
4424 if test "$am__include" = "#"; then
4425 echo '.include "confinc"' > confmf
4426 case `$am_make -s -f confmf 2> /dev/null` in #(
4427 *the\ am__doit\ target*)
4428 am__include=.include
4429 am__quote="\""
4430 _am_result=BSD
4431 ;;
4432 esac
4433 fi
4434
4435
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4437 $as_echo "$_am_result" >&6; }
4438 rm -f confinc confmf
4439
4440 # Check whether --enable-dependency-tracking was given.
4441 if test "${enable_dependency_tracking+set}" = set; then :
4442 enableval=$enable_dependency_tracking;
4443 fi
4444
4445 if test "x$enable_dependency_tracking" != xno; then
4446 am_depcomp="$ac_aux_dir/depcomp"
4447 AMDEPBACKSLASH='\'
4448 am__nodep='_no'
4449 fi
4450 if test "x$enable_dependency_tracking" != xno; then
4451 AMDEP_TRUE=
4452 AMDEP_FALSE='#'
4453 else
4454 AMDEP_TRUE='#'
4455 AMDEP_FALSE=
4456 fi
4457
4458
4459 # Check whether --enable-silent-rules was given.
4460 if test "${enable_silent_rules+set}" = set; then :
4461 enableval=$enable_silent_rules;
4462 fi
4463
4464 case $enable_silent_rules in # (((
4465 yes) AM_DEFAULT_VERBOSITY=0;;
4466 no) AM_DEFAULT_VERBOSITY=1;;
4467 *) AM_DEFAULT_VERBOSITY=1;;
4468 esac
4469 am_make=${MAKE-make}
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4471 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4472 if ${am_cv_make_support_nested_variables+:} false; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 if $as_echo 'TRUE=$(BAR$(V))
4476 BAR0=false
4477 BAR1=true
4478 V=1
4479 am__doit:
4480 @$(TRUE)
4481 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4482 am_cv_make_support_nested_variables=yes
4483 else
4484 am_cv_make_support_nested_variables=no
4485 fi
4486 fi
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4488 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4489 if test $am_cv_make_support_nested_variables = yes; then
4490 AM_V='$(V)'
4491 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4492 else
4493 AM_V=$AM_DEFAULT_VERBOSITY
4494 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4495 fi
4496 AM_BACKSLASH='\'
4497
4498 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4499 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4500 # is not polluted with repeated "-I."
4501 am__isrc=' -I$(srcdir)'
4502 # test to see if srcdir already configured
4503 if test -f $srcdir/config.status; then
4504 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4505 fi
4506 fi
4507
4508 # test whether we have cygpath
4509 if test -z "$CYGPATH_W"; then
4510 if (cygpath --version) >/dev/null 2>/dev/null; then
4511 CYGPATH_W='cygpath -w'
4512 else
4513 CYGPATH_W=echo
4514 fi
4515 fi
4516
4517
4518 # Define the identity of the package.
4519 PACKAGE='libgm2'
4520 VERSION='version-unused'
4521
4522
4523 # Some tools Automake needs.
4524
4525 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4526
4527
4528 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4529
4530
4531 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4532
4533
4534 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4535
4536
4537 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4538
4539 # For better backward compatibility. To be removed once Automake 1.9.x
4540 # dies out for good. For more background, see:
4541 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4542 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4543 mkdir_p='$(MKDIR_P)'
4544
4545 # We need awk for the "check" target (and possibly the TAP driver). The
4546 # system "awk" is bad on some platforms.
4547 # Always define AMTAR for backward compatibility. Yes, it's still used
4548 # in the wild :-( We should find a proper way to deprecate it ...
4549 AMTAR='$${TAR-tar}'
4550
4551
4552 # We'll loop over all known methods to create a tar archive until one works.
4553 _am_tools='gnutar pax cpio none'
4554
4555 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4556
4557
4558
4559
4560
4561 depcc="$CC" am_compiler_list=
4562
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4564 $as_echo_n "checking dependency style of $depcc... " >&6; }
4565 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4569 # We make a subdir and do the tests there. Otherwise we can end up
4570 # making bogus files that we don't know about and never remove. For
4571 # instance it was reported that on HP-UX the gcc test will end up
4572 # making a dummy file named 'D' -- because '-MD' means "put the output
4573 # in D".
4574 rm -rf conftest.dir
4575 mkdir conftest.dir
4576 # Copy depcomp to subdir because otherwise we won't find it if we're
4577 # using a relative directory.
4578 cp "$am_depcomp" conftest.dir
4579 cd conftest.dir
4580 # We will build objects and dependencies in a subdirectory because
4581 # it helps to detect inapplicable dependency modes. For instance
4582 # both Tru64's cc and ICC support -MD to output dependencies as a
4583 # side effect of compilation, but ICC will put the dependencies in
4584 # the current directory while Tru64 will put them in the object
4585 # directory.
4586 mkdir sub
4587
4588 am_cv_CC_dependencies_compiler_type=none
4589 if test "$am_compiler_list" = ""; then
4590 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4591 fi
4592 am__universal=false
4593 case " $depcc " in #(
4594 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4595 esac
4596
4597 for depmode in $am_compiler_list; do
4598 # Setup a source with many dependencies, because some compilers
4599 # like to wrap large dependency lists on column 80 (with \), and
4600 # we should not choose a depcomp mode which is confused by this.
4601 #
4602 # We need to recreate these files for each test, as the compiler may
4603 # overwrite some of them when testing with obscure command lines.
4604 # This happens at least with the AIX C compiler.
4605 : > sub/conftest.c
4606 for i in 1 2 3 4 5 6; do
4607 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4608 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4609 # Solaris 10 /bin/sh.
4610 echo '/* dummy */' > sub/conftst$i.h
4611 done
4612 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4613
4614 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4615 # mode. It turns out that the SunPro C++ compiler does not properly
4616 # handle '-M -o', and we need to detect this. Also, some Intel
4617 # versions had trouble with output in subdirs.
4618 am__obj=sub/conftest.${OBJEXT-o}
4619 am__minus_obj="-o $am__obj"
4620 case $depmode in
4621 gcc)
4622 # This depmode causes a compiler race in universal mode.
4623 test "$am__universal" = false || continue
4624 ;;
4625 nosideeffect)
4626 # After this tag, mechanisms are not by side-effect, so they'll
4627 # only be used when explicitly requested.
4628 if test "x$enable_dependency_tracking" = xyes; then
4629 continue
4630 else
4631 break
4632 fi
4633 ;;
4634 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4635 # This compiler won't grok '-c -o', but also, the minuso test has
4636 # not run yet. These depmodes are late enough in the game, and
4637 # so weak that their functioning should not be impacted.
4638 am__obj=conftest.${OBJEXT-o}
4639 am__minus_obj=
4640 ;;
4641 none) break ;;
4642 esac
4643 if depmode=$depmode \
4644 source=sub/conftest.c object=$am__obj \
4645 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4646 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4647 >/dev/null 2>conftest.err &&
4648 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4649 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4650 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4651 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4652 # icc doesn't choke on unknown options, it will just issue warnings
4653 # or remarks (even with -Werror). So we grep stderr for any message
4654 # that says an option was ignored or not supported.
4655 # When given -MP, icc 7.0 and 7.1 complain thusly:
4656 # icc: Command line warning: ignoring option '-M'; no argument required
4657 # The diagnosis changed in icc 8.0:
4658 # icc: Command line remark: option '-MP' not supported
4659 if (grep 'ignoring option' conftest.err ||
4660 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4661 am_cv_CC_dependencies_compiler_type=$depmode
4662 break
4663 fi
4664 fi
4665 done
4666
4667 cd ..
4668 rm -rf conftest.dir
4669 else
4670 am_cv_CC_dependencies_compiler_type=none
4671 fi
4672
4673 fi
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4675 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4676 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4677
4678 if
4679 test "x$enable_dependency_tracking" != xno \
4680 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4681 am__fastdepCC_TRUE=
4682 am__fastdepCC_FALSE='#'
4683 else
4684 am__fastdepCC_TRUE='#'
4685 am__fastdepCC_FALSE=
4686 fi
4687
4688
4689
4690 # POSIX will say in a future version that running "rm -f" with no argument
4691 # is OK; and we want to be able to make that assumption in our Makefile
4692 # recipes. So use an aggressive probe to check that the usage we want is
4693 # actually supported "in the wild" to an acceptable degree.
4694 # See automake bug#10828.
4695 # To make any issue more visible, cause the running configure to be aborted
4696 # by default if the 'rm' program in use doesn't match our expectations; the
4697 # user can still override this though.
4698 if rm -f && rm -fr && rm -rf; then : OK; else
4699 cat >&2 <<'END'
4700 Oops!
4701
4702 Your 'rm' program seems unable to run without file operands specified
4703 on the command line, even when the '-f' option is present. This is contrary
4704 to the behaviour of most rm programs out there, and not conforming with
4705 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4706
4707 Please tell bug-automake@gnu.org about your system, including the value
4708 of your $PATH and any error possibly output before this message. This
4709 can help us improve future automake versions.
4710
4711 END
4712 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4713 echo 'Configuration will proceed anyway, since you have set the' >&2
4714 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4715 echo >&2
4716 else
4717 cat >&2 <<'END'
4718 Aborting the configuration process, to ensure you take notice of the issue.
4719
4720 You can download and install GNU coreutils to get an 'rm' implementation
4721 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4722
4723 If you want to complete the configuration process using your problematic
4724 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4725 to "yes", and re-run configure.
4726
4727 END
4728 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4729 fi
4730 fi
4731
4732
4733
4734
4735
4736
4737 # Check whether --with-cross-host was given.
4738 if test "${with_cross_host+set}" = set; then :
4739 withval=$with_cross_host;
4740 fi
4741
4742
4743 # Checks for header files.
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4745 $as_echo_n "checking for ANSI C header files... " >&6; }
4746 if ${ac_cv_header_stdc+:} false; then :
4747 $as_echo_n "(cached) " >&6
4748 else
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4751 #include <stdlib.h>
4752 #include <stdarg.h>
4753 #include <string.h>
4754 #include <float.h>
4755
4756 int
4757 main ()
4758 {
4759
4760 ;
4761 return 0;
4762 }
4763 _ACEOF
4764 if ac_fn_c_try_compile "$LINENO"; then :
4765 ac_cv_header_stdc=yes
4766 else
4767 ac_cv_header_stdc=no
4768 fi
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770
4771 if test $ac_cv_header_stdc = yes; then
4772 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775 #include <string.h>
4776
4777 _ACEOF
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779 $EGREP "memchr" >/dev/null 2>&1; then :
4780
4781 else
4782 ac_cv_header_stdc=no
4783 fi
4784 rm -f conftest*
4785
4786 fi
4787
4788 if test $ac_cv_header_stdc = yes; then
4789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792 #include <stdlib.h>
4793
4794 _ACEOF
4795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4796 $EGREP "free" >/dev/null 2>&1; then :
4797
4798 else
4799 ac_cv_header_stdc=no
4800 fi
4801 rm -f conftest*
4802
4803 fi
4804
4805 if test $ac_cv_header_stdc = yes; then
4806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4807 if test "$cross_compiling" = yes; then :
4808 :
4809 else
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4812 #include <ctype.h>
4813 #include <stdlib.h>
4814 #if ((' ' & 0x0FF) == 0x020)
4815 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4816 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4817 #else
4818 # define ISLOWER(c) \
4819 (('a' <= (c) && (c) <= 'i') \
4820 || ('j' <= (c) && (c) <= 'r') \
4821 || ('s' <= (c) && (c) <= 'z'))
4822 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4823 #endif
4824
4825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4826 int
4827 main ()
4828 {
4829 int i;
4830 for (i = 0; i < 256; i++)
4831 if (XOR (islower (i), ISLOWER (i))
4832 || toupper (i) != TOUPPER (i))
4833 return 2;
4834 return 0;
4835 }
4836 _ACEOF
4837 if ac_fn_c_try_run "$LINENO"; then :
4838
4839 else
4840 ac_cv_header_stdc=no
4841 fi
4842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4843 conftest.$ac_objext conftest.beam conftest.$ac_ext
4844 fi
4845
4846 fi
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4849 $as_echo "$ac_cv_header_stdc" >&6; }
4850 if test $ac_cv_header_stdc = yes; then
4851
4852 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4853
4854 fi
4855
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4857 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4858 if ${ac_cv_header_sys_wait_h+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863 #include <sys/types.h>
4864 #include <sys/wait.h>
4865 #ifndef WEXITSTATUS
4866 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4867 #endif
4868 #ifndef WIFEXITED
4869 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4870 #endif
4871
4872 int
4873 main ()
4874 {
4875 int s;
4876 wait (&s);
4877 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4878 ;
4879 return 0;
4880 }
4881 _ACEOF
4882 if ac_fn_c_try_compile "$LINENO"; then :
4883 ac_cv_header_sys_wait_h=yes
4884 else
4885 ac_cv_header_sys_wait_h=no
4886 fi
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4890 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4891 if test $ac_cv_header_sys_wait_h = yes; then
4892
4893 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4894
4895 fi
4896
4897 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
4898 if test "x$ac_cv_header_math_h" = xyes; then :
4899
4900 $as_echo "#define HAVE_MATH_H 1" >>confdefs.h
4901
4902 fi
4903
4904
4905
4906 for ac_header in limits.h stddef.h string.h strings.h stdlib.h \
4907 time.h \
4908 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
4909 sys/resource.h sys/param.h sys/times.h sys/stat.h \
4910 sys/socket.h \
4911 sys/wait.h sys/ioctl.h errno.h sys/errno.h \
4912 pwd.h direct.h dirent.h signal.h malloc.h langinfo.h \
4913 pthread.h stdarg.h stdio.h sys/types.h termios.h \
4914 netinet/in.h netdb.h sys/uio.h sys/stat.h wchar.h
4915 do :
4916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4917 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4918 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4919 cat >>confdefs.h <<_ACEOF
4920 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4921 _ACEOF
4922
4923 fi
4924
4925 done
4926
4927
4928
4929
4930 case ${build_alias} in
4931 "") build_noncanonical=${build} ;;
4932 *) build_noncanonical=${build_alias} ;;
4933 esac
4934
4935 case ${host_alias} in
4936 "") host_noncanonical=${build_noncanonical} ;;
4937 *) host_noncanonical=${host_alias} ;;
4938 esac
4939
4940
4941
4942 case ${target_alias} in
4943 "") target_noncanonical=${host_noncanonical} ;;
4944 *) target_noncanonical=${target_alias} ;;
4945 esac
4946
4947
4948
4949
4950 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
4951 # have matching libraries, they should use host libraries: Makefile.tpl
4952 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
4953 # However, they still use the build modules, because the corresponding
4954 # host modules (e.g. bison) are only built for the host when bootstrap
4955 # finishes. So:
4956 # - build_subdir is where we find build modules, and never changes.
4957 # - build_libsubdir is where we find build libraries, and can be overridden.
4958
4959 # Prefix 'build-' so this never conflicts with target_subdir.
4960 build_subdir="build-${build_noncanonical}"
4961
4962 # Check whether --with-build-libsubdir was given.
4963 if test "${with_build_libsubdir+set}" = set; then :
4964 withval=$with_build_libsubdir; build_libsubdir="$withval"
4965 else
4966 build_libsubdir="$build_subdir"
4967 fi
4968
4969 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
4970 if ( test $srcdir = . && test -d gcc ) \
4971 || test -d $srcdir/../host-${host_noncanonical}; then
4972 host_subdir="host-${host_noncanonical}"
4973 else
4974 host_subdir=.
4975 fi
4976 # No prefix.
4977 target_subdir=${target_noncanonical}
4978
4979
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4981 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4982 # Check whether --enable-version-specific-runtime-libs was given.
4983 if test "${enable_version_specific_runtime_libs+set}" = set; then :
4984 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4985 yes) version_specific_libs=yes ;;
4986 no) version_specific_libs=no ;;
4987 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4988 esac
4989 else
4990 version_specific_libs=no
4991 fi
4992
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
4994 $as_echo "$version_specific_libs" >&6; }
4995
4996
4997 # Check whether --with-slibdir was given.
4998 if test "${with_slibdir+set}" = set; then :
4999 withval=$with_slibdir; slibdir="$with_slibdir"
5000 else
5001 if test "${version_specific_libs}" = yes; then
5002 slibdir='$(libsubdir)'
5003 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
5004 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
5005 else
5006 slibdir='$(libdir)'
5007 fi
5008 fi
5009
5010
5011
5012 # Command-line options.
5013 # Very limited version of AC_MAINTAINER_MODE.
5014 # Check whether --enable-maintainer-mode was given.
5015 if test "${enable_maintainer_mode+set}" = set; then :
5016 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
5017 yes) MAINT='' ;;
5018 no) MAINT='#' ;;
5019 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
5020 esac
5021 maintainer_mode=${enableval}
5022 else
5023 MAINT='#'
5024 fi
5025
5026
5027 toolexecdir=no
5028 toolexeclibdir=no
5029
5030 # Calculate toolexeclibdir
5031 # Also toolexecdir, though it's only used in toolexeclibdir
5032 case ${version_specific_libs} in
5033 yes)
5034 # Need the gcc compiler version to know where to install libraries
5035 # and header files if --enable-version-specific-runtime-libs option
5036 # is selected.
5037 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
5038 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5039 ;;
5040 no)
5041 if test -n "$with_cross_host" &&
5042 test x"$with_cross_host" != x"no"; then
5043 # Install a library built with a cross compiler in tooldir, not libdir.
5044 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
5045 toolexeclibdir='$(toolexecdir)/lib'
5046 else
5047 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
5048 toolexeclibdir='$(libdir)'
5049 fi
5050 multi_os_directory=`$CC -print-multi-os-directory`
5051 case $multi_os_directory in
5052 .) ;; # Avoid trailing /.
5053 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5054 esac
5055 ;;
5056 esac
5057
5058
5059
5060
5061
5062
5063
5064
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5066 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5067 # Check whether --enable-maintainer-mode was given.
5068 if test "${enable_maintainer_mode+set}" = set; then :
5069 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5070 else
5071 USE_MAINTAINER_MODE=no
5072 fi
5073
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5075 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5076 if test $USE_MAINTAINER_MODE = yes; then
5077 MAINTAINER_MODE_TRUE=
5078 MAINTAINER_MODE_FALSE='#'
5079 else
5080 MAINTAINER_MODE_TRUE='#'
5081 MAINTAINER_MODE_FALSE=
5082 fi
5083
5084 MAINT=$MAINTAINER_MODE_TRUE
5085
5086
5087
5088 # Check the compiler.
5089 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
5090 # We must force CC to /not/ be precious variables; otherwise
5091 # the wrong, non-multilib-adjusted value will be used in multilibs.
5092 # As a side effect, we have to subst CFLAGS ourselves.
5093
5094
5095
5096 ac_ext=c
5097 ac_cpp='$CPP $CPPFLAGS'
5098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101 if test -n "$ac_tool_prefix"; then
5102 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5103 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105 $as_echo_n "checking for $ac_word... " >&6; }
5106 if ${ac_cv_prog_CC+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 if test -n "$CC"; then
5110 ac_cv_prog_CC="$CC" # Let the user override the test.
5111 else
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123 done
5124 done
5125 IFS=$as_save_IFS
5126
5127 fi
5128 fi
5129 CC=$ac_cv_prog_CC
5130 if test -n "$CC"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5132 $as_echo "$CC" >&6; }
5133 else
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5136 fi
5137
5138
5139 fi
5140 if test -z "$ac_cv_prog_CC"; then
5141 ac_ct_CC=$CC
5142 # Extract the first word of "gcc", so it can be a program name with args.
5143 set dummy gcc; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 if test -n "$ac_ct_CC"; then
5150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5154 do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_ac_ct_CC="gcc"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5162 fi
5163 done
5164 done
5165 IFS=$as_save_IFS
5166
5167 fi
5168 fi
5169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5170 if test -n "$ac_ct_CC"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5172 $as_echo "$ac_ct_CC" >&6; }
5173 else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5176 fi
5177
5178 if test "x$ac_ct_CC" = x; then
5179 CC=""
5180 else
5181 case $cross_compiling:$ac_tool_warned in
5182 yes:)
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5185 ac_tool_warned=yes ;;
5186 esac
5187 CC=$ac_ct_CC
5188 fi
5189 else
5190 CC="$ac_cv_prog_CC"
5191 fi
5192
5193 if test -z "$CC"; then
5194 if test -n "$ac_tool_prefix"; then
5195 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5196 set dummy ${ac_tool_prefix}cc; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_prog_CC+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if test -n "$CC"; then
5203 ac_cv_prog_CC="$CC" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5215 fi
5216 done
5217 done
5218 IFS=$as_save_IFS
5219
5220 fi
5221 fi
5222 CC=$ac_cv_prog_CC
5223 if test -n "$CC"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5225 $as_echo "$CC" >&6; }
5226 else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5229 fi
5230
5231
5232 fi
5233 fi
5234 if test -z "$CC"; then
5235 # Extract the first word of "cc", so it can be a program name with args.
5236 set dummy cc; ac_word=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if ${ac_cv_prog_CC+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 if test -n "$CC"; then
5243 ac_cv_prog_CC="$CC" # Let the user override the test.
5244 else
5245 ac_prog_rejected=no
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5254 ac_prog_rejected=yes
5255 continue
5256 fi
5257 ac_cv_prog_CC="cc"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5260 fi
5261 done
5262 done
5263 IFS=$as_save_IFS
5264
5265 if test $ac_prog_rejected = yes; then
5266 # We found a bogon in the path, so make sure we never use it.
5267 set dummy $ac_cv_prog_CC
5268 shift
5269 if test $# != 0; then
5270 # We chose a different compiler from the bogus one.
5271 # However, it has the same basename, so the bogon will be chosen
5272 # first if we set CC to just the basename; use the full file name.
5273 shift
5274 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5275 fi
5276 fi
5277 fi
5278 fi
5279 CC=$ac_cv_prog_CC
5280 if test -n "$CC"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5282 $as_echo "$CC" >&6; }
5283 else
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5286 fi
5287
5288
5289 fi
5290 if test -z "$CC"; then
5291 if test -n "$ac_tool_prefix"; then
5292 for ac_prog in cl.exe
5293 do
5294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_prog_CC+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 if test -n "$CC"; then
5302 ac_cv_prog_CC="$CC" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5306 do
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315 done
5316 done
5317 IFS=$as_save_IFS
5318
5319 fi
5320 fi
5321 CC=$ac_cv_prog_CC
5322 if test -n "$CC"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5324 $as_echo "$CC" >&6; }
5325 else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5328 fi
5329
5330
5331 test -n "$CC" && break
5332 done
5333 fi
5334 if test -z "$CC"; then
5335 ac_ct_CC=$CC
5336 for ac_prog in cl.exe
5337 do
5338 # Extract the first word of "$ac_prog", so it can be a program name with args.
5339 set dummy $ac_prog; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 if test -n "$ac_ct_CC"; then
5346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_ac_ct_CC="$ac_prog"
5356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5358 fi
5359 done
5360 done
5361 IFS=$as_save_IFS
5362
5363 fi
5364 fi
5365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5366 if test -n "$ac_ct_CC"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5368 $as_echo "$ac_ct_CC" >&6; }
5369 else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5372 fi
5373
5374
5375 test -n "$ac_ct_CC" && break
5376 done
5377
5378 if test "x$ac_ct_CC" = x; then
5379 CC=""
5380 else
5381 case $cross_compiling:$ac_tool_warned in
5382 yes:)
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5385 ac_tool_warned=yes ;;
5386 esac
5387 CC=$ac_ct_CC
5388 fi
5389 fi
5390
5391 fi
5392
5393
5394 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5396 as_fn_error $? "no acceptable C compiler found in \$PATH
5397 See \`config.log' for more details" "$LINENO" 5; }
5398
5399 # Provide some information about the compiler.
5400 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5401 set X $ac_compile
5402 ac_compiler=$2
5403 for ac_option in --version -v -V -qversion; do
5404 { { ac_try="$ac_compiler $ac_option >&5"
5405 case "(($ac_try" in
5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5408 esac
5409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5410 $as_echo "$ac_try_echo"; } >&5
5411 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5412 ac_status=$?
5413 if test -s conftest.err; then
5414 sed '10a\
5415 ... rest of stderr output deleted ...
5416 10q' conftest.err >conftest.er1
5417 cat conftest.er1 >&5
5418 fi
5419 rm -f conftest.er1 conftest.err
5420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5421 test $ac_status = 0; }
5422 done
5423
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5425 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5426 if ${ac_cv_c_compiler_gnu+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5431
5432 int
5433 main ()
5434 {
5435 #ifndef __GNUC__
5436 choke me
5437 #endif
5438
5439 ;
5440 return 0;
5441 }
5442 _ACEOF
5443 if ac_fn_c_try_compile "$LINENO"; then :
5444 ac_compiler_gnu=yes
5445 else
5446 ac_compiler_gnu=no
5447 fi
5448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5450
5451 fi
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5453 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5454 if test $ac_compiler_gnu = yes; then
5455 GCC=yes
5456 else
5457 GCC=
5458 fi
5459 ac_test_CFLAGS=${CFLAGS+set}
5460 ac_save_CFLAGS=$CFLAGS
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5462 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5463 if ${ac_cv_prog_cc_g+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 ac_save_c_werror_flag=$ac_c_werror_flag
5467 ac_c_werror_flag=yes
5468 ac_cv_prog_cc_g=no
5469 CFLAGS="-g"
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472
5473 int
5474 main ()
5475 {
5476
5477 ;
5478 return 0;
5479 }
5480 _ACEOF
5481 if ac_fn_c_try_compile "$LINENO"; then :
5482 ac_cv_prog_cc_g=yes
5483 else
5484 CFLAGS=""
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487
5488 int
5489 main ()
5490 {
5491
5492 ;
5493 return 0;
5494 }
5495 _ACEOF
5496 if ac_fn_c_try_compile "$LINENO"; then :
5497
5498 else
5499 ac_c_werror_flag=$ac_save_c_werror_flag
5500 CFLAGS="-g"
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503
5504 int
5505 main ()
5506 {
5507
5508 ;
5509 return 0;
5510 }
5511 _ACEOF
5512 if ac_fn_c_try_compile "$LINENO"; then :
5513 ac_cv_prog_cc_g=yes
5514 fi
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 fi
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 fi
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 ac_c_werror_flag=$ac_save_c_werror_flag
5521 fi
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5523 $as_echo "$ac_cv_prog_cc_g" >&6; }
5524 if test "$ac_test_CFLAGS" = set; then
5525 CFLAGS=$ac_save_CFLAGS
5526 elif test $ac_cv_prog_cc_g = yes; then
5527 if test "$GCC" = yes; then
5528 CFLAGS="-g -O2"
5529 else
5530 CFLAGS="-g"
5531 fi
5532 else
5533 if test "$GCC" = yes; then
5534 CFLAGS="-O2"
5535 else
5536 CFLAGS=
5537 fi
5538 fi
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5540 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5541 if ${ac_cv_prog_cc_c89+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 ac_cv_prog_cc_c89=no
5545 ac_save_CC=$CC
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 #include <stdarg.h>
5549 #include <stdio.h>
5550 struct stat;
5551 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5552 struct buf { int x; };
5553 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5554 static char *e (p, i)
5555 char **p;
5556 int i;
5557 {
5558 return p[i];
5559 }
5560 static char *f (char * (*g) (char **, int), char **p, ...)
5561 {
5562 char *s;
5563 va_list v;
5564 va_start (v,p);
5565 s = g (p, va_arg (v,int));
5566 va_end (v);
5567 return s;
5568 }
5569
5570 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5571 function prototypes and stuff, but not '\xHH' hex character constants.
5572 These don't provoke an error unfortunately, instead are silently treated
5573 as 'x'. The following induces an error, until -std is added to get
5574 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5575 array size at least. It's necessary to write '\x00'==0 to get something
5576 that's true only with -std. */
5577 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5578
5579 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5580 inside strings and character constants. */
5581 #define FOO(x) 'x'
5582 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5583
5584 int test (int i, double x);
5585 struct s1 {int (*f) (int a);};
5586 struct s2 {int (*f) (double a);};
5587 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5588 int argc;
5589 char **argv;
5590 int
5591 main ()
5592 {
5593 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5594 ;
5595 return 0;
5596 }
5597 _ACEOF
5598 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5599 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5600 do
5601 CC="$ac_save_CC $ac_arg"
5602 if ac_fn_c_try_compile "$LINENO"; then :
5603 ac_cv_prog_cc_c89=$ac_arg
5604 fi
5605 rm -f core conftest.err conftest.$ac_objext
5606 test "x$ac_cv_prog_cc_c89" != "xno" && break
5607 done
5608 rm -f conftest.$ac_ext
5609 CC=$ac_save_CC
5610
5611 fi
5612 # AC_CACHE_VAL
5613 case "x$ac_cv_prog_cc_c89" in
5614 x)
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5616 $as_echo "none needed" >&6; } ;;
5617 xno)
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5619 $as_echo "unsupported" >&6; } ;;
5620 *)
5621 CC="$CC $ac_cv_prog_cc_c89"
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5623 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5624 esac
5625 if test "x$ac_cv_prog_cc_c89" != xno; then :
5626
5627 fi
5628
5629 ac_ext=c
5630 ac_cpp='$CPP $CPPFLAGS'
5631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5634
5635 ac_ext=c
5636 ac_cpp='$CPP $CPPFLAGS'
5637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5641 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5642 if ${am_cv_prog_cc_c_o+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5647
5648 int
5649 main ()
5650 {
5651
5652 ;
5653 return 0;
5654 }
5655 _ACEOF
5656 # Make sure it works both with $CC and with simple cc.
5657 # Following AC_PROG_CC_C_O, we do the test twice because some
5658 # compilers refuse to overwrite an existing .o file with -o,
5659 # though they will create one.
5660 am_cv_prog_cc_c_o=yes
5661 for am_i in 1 2; do
5662 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5663 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } \
5667 && test -f conftest2.$ac_objext; then
5668 : OK
5669 else
5670 am_cv_prog_cc_c_o=no
5671 break
5672 fi
5673 done
5674 rm -f core conftest*
5675 unset am_i
5676 fi
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5678 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5679 if test "$am_cv_prog_cc_c_o" != yes; then
5680 # Losing compiler, so override with the script.
5681 # FIXME: It is wrong to rewrite CC.
5682 # But if we don't then we get into trouble of one sort or another.
5683 # A longer-term fix would be to have automake use am__CC in this case,
5684 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5685 CC="$am_aux_dir/compile $CC"
5686 fi
5687 ac_ext=c
5688 ac_cpp='$CPP $CPPFLAGS'
5689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5692
5693
5694 ac_ext=cpp
5695 ac_cpp='$CXXCPP $CPPFLAGS'
5696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5699 if test -z "$CXX"; then
5700 if test -n "$CCC"; then
5701 CXX=$CCC
5702 else
5703 if test -n "$ac_tool_prefix"; then
5704 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5705 do
5706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if ${ac_cv_prog_CXX+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 if test -n "$CXX"; then
5714 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 break 2
5726 fi
5727 done
5728 done
5729 IFS=$as_save_IFS
5730
5731 fi
5732 fi
5733 CXX=$ac_cv_prog_CXX
5734 if test -n "$CXX"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5736 $as_echo "$CXX" >&6; }
5737 else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5740 fi
5741
5742
5743 test -n "$CXX" && break
5744 done
5745 fi
5746 if test -z "$CXX"; then
5747 ac_ct_CXX=$CXX
5748 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5749 do
5750 # Extract the first word of "$ac_prog", so it can be a program name with args.
5751 set dummy $ac_prog; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 if test -n "$ac_ct_CXX"; then
5758 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767 ac_cv_prog_ac_ct_CXX="$ac_prog"
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5770 fi
5771 done
5772 done
5773 IFS=$as_save_IFS
5774
5775 fi
5776 fi
5777 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5778 if test -n "$ac_ct_CXX"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5780 $as_echo "$ac_ct_CXX" >&6; }
5781 else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5784 fi
5785
5786
5787 test -n "$ac_ct_CXX" && break
5788 done
5789
5790 if test "x$ac_ct_CXX" = x; then
5791 CXX="g++"
5792 else
5793 case $cross_compiling:$ac_tool_warned in
5794 yes:)
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5797 ac_tool_warned=yes ;;
5798 esac
5799 CXX=$ac_ct_CXX
5800 fi
5801 fi
5802
5803 fi
5804 fi
5805 # Provide some information about the compiler.
5806 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5807 set X $ac_compile
5808 ac_compiler=$2
5809 for ac_option in --version -v -V -qversion; do
5810 { { ac_try="$ac_compiler $ac_option >&5"
5811 case "(($ac_try" in
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5814 esac
5815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5816 $as_echo "$ac_try_echo"; } >&5
5817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5818 ac_status=$?
5819 if test -s conftest.err; then
5820 sed '10a\
5821 ... rest of stderr output deleted ...
5822 10q' conftest.err >conftest.er1
5823 cat conftest.er1 >&5
5824 fi
5825 rm -f conftest.er1 conftest.err
5826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5827 test $ac_status = 0; }
5828 done
5829
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5831 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5832 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837
5838 int
5839 main ()
5840 {
5841 #ifndef __GNUC__
5842 choke me
5843 #endif
5844
5845 ;
5846 return 0;
5847 }
5848 _ACEOF
5849 if ac_fn_cxx_try_compile "$LINENO"; then :
5850 ac_compiler_gnu=yes
5851 else
5852 ac_compiler_gnu=no
5853 fi
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5856
5857 fi
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5859 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5860 if test $ac_compiler_gnu = yes; then
5861 GXX=yes
5862 else
5863 GXX=
5864 fi
5865 ac_test_CXXFLAGS=${CXXFLAGS+set}
5866 ac_save_CXXFLAGS=$CXXFLAGS
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5868 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5869 if ${ac_cv_prog_cxx_g+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5873 ac_cxx_werror_flag=yes
5874 ac_cv_prog_cxx_g=no
5875 CXXFLAGS="-g"
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878
5879 int
5880 main ()
5881 {
5882
5883 ;
5884 return 0;
5885 }
5886 _ACEOF
5887 if ac_fn_cxx_try_compile "$LINENO"; then :
5888 ac_cv_prog_cxx_g=yes
5889 else
5890 CXXFLAGS=""
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5893
5894 int
5895 main ()
5896 {
5897
5898 ;
5899 return 0;
5900 }
5901 _ACEOF
5902 if ac_fn_cxx_try_compile "$LINENO"; then :
5903
5904 else
5905 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5906 CXXFLAGS="-g"
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909
5910 int
5911 main ()
5912 {
5913
5914 ;
5915 return 0;
5916 }
5917 _ACEOF
5918 if ac_fn_cxx_try_compile "$LINENO"; then :
5919 ac_cv_prog_cxx_g=yes
5920 fi
5921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5927 fi
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5929 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5930 if test "$ac_test_CXXFLAGS" = set; then
5931 CXXFLAGS=$ac_save_CXXFLAGS
5932 elif test $ac_cv_prog_cxx_g = yes; then
5933 if test "$GXX" = yes; then
5934 CXXFLAGS="-g -O2"
5935 else
5936 CXXFLAGS="-g"
5937 fi
5938 else
5939 if test "$GXX" = yes; then
5940 CXXFLAGS="-O2"
5941 else
5942 CXXFLAGS=
5943 fi
5944 fi
5945 ac_ext=c
5946 ac_cpp='$CPP $CPPFLAGS'
5947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5950
5951 depcc="$CXX" am_compiler_list=
5952
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5954 $as_echo_n "checking dependency style of $depcc... " >&6; }
5955 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5959 # We make a subdir and do the tests there. Otherwise we can end up
5960 # making bogus files that we don't know about and never remove. For
5961 # instance it was reported that on HP-UX the gcc test will end up
5962 # making a dummy file named 'D' -- because '-MD' means "put the output
5963 # in D".
5964 rm -rf conftest.dir
5965 mkdir conftest.dir
5966 # Copy depcomp to subdir because otherwise we won't find it if we're
5967 # using a relative directory.
5968 cp "$am_depcomp" conftest.dir
5969 cd conftest.dir
5970 # We will build objects and dependencies in a subdirectory because
5971 # it helps to detect inapplicable dependency modes. For instance
5972 # both Tru64's cc and ICC support -MD to output dependencies as a
5973 # side effect of compilation, but ICC will put the dependencies in
5974 # the current directory while Tru64 will put them in the object
5975 # directory.
5976 mkdir sub
5977
5978 am_cv_CXX_dependencies_compiler_type=none
5979 if test "$am_compiler_list" = ""; then
5980 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5981 fi
5982 am__universal=false
5983 case " $depcc " in #(
5984 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5985 esac
5986
5987 for depmode in $am_compiler_list; do
5988 # Setup a source with many dependencies, because some compilers
5989 # like to wrap large dependency lists on column 80 (with \), and
5990 # we should not choose a depcomp mode which is confused by this.
5991 #
5992 # We need to recreate these files for each test, as the compiler may
5993 # overwrite some of them when testing with obscure command lines.
5994 # This happens at least with the AIX C compiler.
5995 : > sub/conftest.c
5996 for i in 1 2 3 4 5 6; do
5997 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5998 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5999 # Solaris 10 /bin/sh.
6000 echo '/* dummy */' > sub/conftst$i.h
6001 done
6002 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6003
6004 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6005 # mode. It turns out that the SunPro C++ compiler does not properly
6006 # handle '-M -o', and we need to detect this. Also, some Intel
6007 # versions had trouble with output in subdirs.
6008 am__obj=sub/conftest.${OBJEXT-o}
6009 am__minus_obj="-o $am__obj"
6010 case $depmode in
6011 gcc)
6012 # This depmode causes a compiler race in universal mode.
6013 test "$am__universal" = false || continue
6014 ;;
6015 nosideeffect)
6016 # After this tag, mechanisms are not by side-effect, so they'll
6017 # only be used when explicitly requested.
6018 if test "x$enable_dependency_tracking" = xyes; then
6019 continue
6020 else
6021 break
6022 fi
6023 ;;
6024 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6025 # This compiler won't grok '-c -o', but also, the minuso test has
6026 # not run yet. These depmodes are late enough in the game, and
6027 # so weak that their functioning should not be impacted.
6028 am__obj=conftest.${OBJEXT-o}
6029 am__minus_obj=
6030 ;;
6031 none) break ;;
6032 esac
6033 if depmode=$depmode \
6034 source=sub/conftest.c object=$am__obj \
6035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6036 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6037 >/dev/null 2>conftest.err &&
6038 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6039 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6040 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6041 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6042 # icc doesn't choke on unknown options, it will just issue warnings
6043 # or remarks (even with -Werror). So we grep stderr for any message
6044 # that says an option was ignored or not supported.
6045 # When given -MP, icc 7.0 and 7.1 complain thusly:
6046 # icc: Command line warning: ignoring option '-M'; no argument required
6047 # The diagnosis changed in icc 8.0:
6048 # icc: Command line remark: option '-MP' not supported
6049 if (grep 'ignoring option' conftest.err ||
6050 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6051 am_cv_CXX_dependencies_compiler_type=$depmode
6052 break
6053 fi
6054 fi
6055 done
6056
6057 cd ..
6058 rm -rf conftest.dir
6059 else
6060 am_cv_CXX_dependencies_compiler_type=none
6061 fi
6062
6063 fi
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6065 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6066 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6067
6068 if
6069 test "x$enable_dependency_tracking" != xno \
6070 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6071 am__fastdepCXX_TRUE=
6072 am__fastdepCXX_FALSE='#'
6073 else
6074 am__fastdepCXX_TRUE='#'
6075 am__fastdepCXX_FALSE=
6076 fi
6077
6078
6079 # By default we simply use the C compiler to build assembly code.
6080
6081 test "${CCAS+set}" = set || CCAS=$CC
6082 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6083
6084
6085
6086 depcc="$CCAS" am_compiler_list=
6087
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6089 $as_echo_n "checking dependency style of $depcc... " >&6; }
6090 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6094 # We make a subdir and do the tests there. Otherwise we can end up
6095 # making bogus files that we don't know about and never remove. For
6096 # instance it was reported that on HP-UX the gcc test will end up
6097 # making a dummy file named 'D' -- because '-MD' means "put the output
6098 # in D".
6099 rm -rf conftest.dir
6100 mkdir conftest.dir
6101 # Copy depcomp to subdir because otherwise we won't find it if we're
6102 # using a relative directory.
6103 cp "$am_depcomp" conftest.dir
6104 cd conftest.dir
6105 # We will build objects and dependencies in a subdirectory because
6106 # it helps to detect inapplicable dependency modes. For instance
6107 # both Tru64's cc and ICC support -MD to output dependencies as a
6108 # side effect of compilation, but ICC will put the dependencies in
6109 # the current directory while Tru64 will put them in the object
6110 # directory.
6111 mkdir sub
6112
6113 am_cv_CCAS_dependencies_compiler_type=none
6114 if test "$am_compiler_list" = ""; then
6115 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6116 fi
6117 am__universal=false
6118
6119
6120 for depmode in $am_compiler_list; do
6121 # Setup a source with many dependencies, because some compilers
6122 # like to wrap large dependency lists on column 80 (with \), and
6123 # we should not choose a depcomp mode which is confused by this.
6124 #
6125 # We need to recreate these files for each test, as the compiler may
6126 # overwrite some of them when testing with obscure command lines.
6127 # This happens at least with the AIX C compiler.
6128 : > sub/conftest.c
6129 for i in 1 2 3 4 5 6; do
6130 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6131 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6132 # Solaris 10 /bin/sh.
6133 echo '/* dummy */' > sub/conftst$i.h
6134 done
6135 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6136
6137 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6138 # mode. It turns out that the SunPro C++ compiler does not properly
6139 # handle '-M -o', and we need to detect this. Also, some Intel
6140 # versions had trouble with output in subdirs.
6141 am__obj=sub/conftest.${OBJEXT-o}
6142 am__minus_obj="-o $am__obj"
6143 case $depmode in
6144 gcc)
6145 # This depmode causes a compiler race in universal mode.
6146 test "$am__universal" = false || continue
6147 ;;
6148 nosideeffect)
6149 # After this tag, mechanisms are not by side-effect, so they'll
6150 # only be used when explicitly requested.
6151 if test "x$enable_dependency_tracking" = xyes; then
6152 continue
6153 else
6154 break
6155 fi
6156 ;;
6157 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6158 # This compiler won't grok '-c -o', but also, the minuso test has
6159 # not run yet. These depmodes are late enough in the game, and
6160 # so weak that their functioning should not be impacted.
6161 am__obj=conftest.${OBJEXT-o}
6162 am__minus_obj=
6163 ;;
6164 none) break ;;
6165 esac
6166 if depmode=$depmode \
6167 source=sub/conftest.c object=$am__obj \
6168 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6169 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6170 >/dev/null 2>conftest.err &&
6171 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6173 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6175 # icc doesn't choke on unknown options, it will just issue warnings
6176 # or remarks (even with -Werror). So we grep stderr for any message
6177 # that says an option was ignored or not supported.
6178 # When given -MP, icc 7.0 and 7.1 complain thusly:
6179 # icc: Command line warning: ignoring option '-M'; no argument required
6180 # The diagnosis changed in icc 8.0:
6181 # icc: Command line remark: option '-MP' not supported
6182 if (grep 'ignoring option' conftest.err ||
6183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6184 am_cv_CCAS_dependencies_compiler_type=$depmode
6185 break
6186 fi
6187 fi
6188 done
6189
6190 cd ..
6191 rm -rf conftest.dir
6192 else
6193 am_cv_CCAS_dependencies_compiler_type=none
6194 fi
6195
6196 fi
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6198 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6199 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6200
6201 if
6202 test "x$enable_dependency_tracking" != xno \
6203 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6204 am__fastdepCCAS_TRUE=
6205 am__fastdepCCAS_FALSE='#'
6206 else
6207 am__fastdepCCAS_TRUE='#'
6208 am__fastdepCCAS_FALSE=
6209 fi
6210
6211
6212
6213
6214
6215
6216 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
6217 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
6218 # in both places for now and restore CFLAGS at the end of config.
6219 save_CFLAGS="$CFLAGS"
6220
6221 # Find other programs we need.
6222 if test -n "$ac_tool_prefix"; then
6223 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6224 set dummy ${ac_tool_prefix}ar; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if ${ac_cv_prog_AR+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229 else
6230 if test -n "$AR"; then
6231 ac_cv_prog_AR="$AR" # Let the user override the test.
6232 else
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6235 do
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6240 ac_cv_prog_AR="${ac_tool_prefix}ar"
6241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 break 2
6243 fi
6244 done
6245 done
6246 IFS=$as_save_IFS
6247
6248 fi
6249 fi
6250 AR=$ac_cv_prog_AR
6251 if test -n "$AR"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6253 $as_echo "$AR" >&6; }
6254 else
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6257 fi
6258
6259
6260 fi
6261 if test -z "$ac_cv_prog_AR"; then
6262 ac_ct_AR=$AR
6263 # Extract the first word of "ar", so it can be a program name with args.
6264 set dummy ar; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 if test -n "$ac_ct_AR"; then
6271 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6280 ac_cv_prog_ac_ct_AR="ar"
6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 break 2
6283 fi
6284 done
6285 done
6286 IFS=$as_save_IFS
6287
6288 fi
6289 fi
6290 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6291 if test -n "$ac_ct_AR"; then
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6293 $as_echo "$ac_ct_AR" >&6; }
6294 else
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6297 fi
6298
6299 if test "x$ac_ct_AR" = x; then
6300 AR=""
6301 else
6302 case $cross_compiling:$ac_tool_warned in
6303 yes:)
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6306 ac_tool_warned=yes ;;
6307 esac
6308 AR=$ac_ct_AR
6309 fi
6310 else
6311 AR="$ac_cv_prog_AR"
6312 fi
6313
6314 if test -n "$ac_tool_prefix"; then
6315 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6316 set dummy ${ac_tool_prefix}nm; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if ${ac_cv_prog_NM+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 if test -n "$NM"; then
6323 ac_cv_prog_NM="$NM" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6327 do
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332 ac_cv_prog_NM="${ac_tool_prefix}nm"
6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 break 2
6335 fi
6336 done
6337 done
6338 IFS=$as_save_IFS
6339
6340 fi
6341 fi
6342 NM=$ac_cv_prog_NM
6343 if test -n "$NM"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
6345 $as_echo "$NM" >&6; }
6346 else
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6349 fi
6350
6351
6352 fi
6353 if test -z "$ac_cv_prog_NM"; then
6354 ac_ct_NM=$NM
6355 # Extract the first word of "nm", so it can be a program name with args.
6356 set dummy nm; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_prog_ac_ct_NM+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 if test -n "$ac_ct_NM"; then
6363 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6364 else
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6367 do
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372 ac_cv_prog_ac_ct_NM="nm"
6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 break 2
6375 fi
6376 done
6377 done
6378 IFS=$as_save_IFS
6379
6380 fi
6381 fi
6382 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6383 if test -n "$ac_ct_NM"; then
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
6385 $as_echo "$ac_ct_NM" >&6; }
6386 else
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6389 fi
6390
6391 if test "x$ac_ct_NM" = x; then
6392 NM=""
6393 else
6394 case $cross_compiling:$ac_tool_warned in
6395 yes:)
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6398 ac_tool_warned=yes ;;
6399 esac
6400 NM=$ac_ct_NM
6401 fi
6402 else
6403 NM="$ac_cv_prog_NM"
6404 fi
6405
6406 if test -n "$ac_tool_prefix"; then
6407 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6408 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 $as_echo_n "checking for $ac_word... " >&6; }
6411 if ${ac_cv_prog_RANLIB+:} false; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 if test -n "$RANLIB"; then
6415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6416 else
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6419 do
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 break 2
6427 fi
6428 done
6429 done
6430 IFS=$as_save_IFS
6431
6432 fi
6433 fi
6434 RANLIB=$ac_cv_prog_RANLIB
6435 if test -n "$RANLIB"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6437 $as_echo "$RANLIB" >&6; }
6438 else
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6441 fi
6442
6443
6444 fi
6445 if test -z "$ac_cv_prog_RANLIB"; then
6446 ac_ct_RANLIB=$RANLIB
6447 # Extract the first word of "ranlib", so it can be a program name with args.
6448 set dummy ranlib; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 if test -n "$ac_ct_RANLIB"; then
6455 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464 ac_cv_prog_ac_ct_RANLIB="ranlib"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472 fi
6473 fi
6474 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6475 if test -n "$ac_ct_RANLIB"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6477 $as_echo "$ac_ct_RANLIB" >&6; }
6478 else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6481 fi
6482
6483 if test "x$ac_ct_RANLIB" = x; then
6484 RANLIB="ranlib-not-found-in-path-error"
6485 else
6486 case $cross_compiling:$ac_tool_warned in
6487 yes:)
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6490 ac_tool_warned=yes ;;
6491 esac
6492 RANLIB=$ac_ct_RANLIB
6493 fi
6494 else
6495 RANLIB="$ac_cv_prog_RANLIB"
6496 fi
6497
6498 # Extract the first word of "perl", so it can be a program name with args.
6499 set dummy perl; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_path_PERL+:} false; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 case $PERL in
6506 [\\/]* | ?:[\\/]*)
6507 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6508 ;;
6509 *)
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6520 fi
6521 done
6522 done
6523 IFS=$as_save_IFS
6524
6525 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
6526 ;;
6527 esac
6528 fi
6529 PERL=$ac_cv_path_PERL
6530 if test -n "$PERL"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6532 $as_echo "$PERL" >&6; }
6533 else
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6536 fi
6537
6538
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6540 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6541 set x ${MAKE-make}
6542 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6543 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 cat >conftest.make <<\_ACEOF
6547 SHELL = /bin/sh
6548 all:
6549 @echo '@@@%%%=$(MAKE)=@@@%%%'
6550 _ACEOF
6551 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6552 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6553 *@@@%%%=?*=@@@%%%*)
6554 eval ac_cv_prog_make_${ac_make}_set=yes;;
6555 *)
6556 eval ac_cv_prog_make_${ac_make}_set=no;;
6557 esac
6558 rm -f conftest.make
6559 fi
6560 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6562 $as_echo "yes" >&6; }
6563 SET_MAKE=
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6567 SET_MAKE="MAKE=${MAKE-make}"
6568 fi
6569
6570
6571
6572 case `pwd` in
6573 *\ * | *\ *)
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6575 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6576 esac
6577
6578
6579
6580 macro_version='2.2.7a'
6581 macro_revision='1.3134'
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595 ltmain="$ac_aux_dir/ltmain.sh"
6596
6597 # Backslashify metacharacters that are still active within
6598 # double-quoted strings.
6599 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6600
6601 # Same as above, but do not quote variable references.
6602 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6603
6604 # Sed substitution to delay expansion of an escaped shell variable in a
6605 # double_quote_subst'ed string.
6606 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6607
6608 # Sed substitution to delay expansion of an escaped single quote.
6609 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6610
6611 # Sed substitution to avoid accidental globbing in evaled expressions
6612 no_glob_subst='s/\*/\\\*/g'
6613
6614 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6615 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6616 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6617
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6619 $as_echo_n "checking how to print strings... " >&6; }
6620 # Test print first, because it will be a builtin if present.
6621 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6622 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6623 ECHO='print -r --'
6624 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6625 ECHO='printf %s\n'
6626 else
6627 # Use this function as a fallback that always works.
6628 func_fallback_echo ()
6629 {
6630 eval 'cat <<_LTECHO_EOF
6631 $1
6632 _LTECHO_EOF'
6633 }
6634 ECHO='func_fallback_echo'
6635 fi
6636
6637 # func_echo_all arg...
6638 # Invoke $ECHO with all args, space-separated.
6639 func_echo_all ()
6640 {
6641 $ECHO ""
6642 }
6643
6644 case "$ECHO" in
6645 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6646 $as_echo "printf" >&6; } ;;
6647 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6648 $as_echo "print -r" >&6; } ;;
6649 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6650 $as_echo "cat" >&6; } ;;
6651 esac
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6667 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6668 if ${ac_cv_path_SED+:} false; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6672 for ac_i in 1 2 3 4 5 6 7; do
6673 ac_script="$ac_script$as_nl$ac_script"
6674 done
6675 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6676 { ac_script=; unset ac_script;}
6677 if test -z "$SED"; then
6678 ac_path_SED_found=false
6679 # Loop through the user's path and test for each of PROGNAME-LIST
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_prog in sed gsed; do
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6688 as_fn_executable_p "$ac_path_SED" || continue
6689 # Check for GNU ac_path_SED and select it if it is found.
6690 # Check for GNU $ac_path_SED
6691 case `"$ac_path_SED" --version 2>&1` in
6692 *GNU*)
6693 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6694 *)
6695 ac_count=0
6696 $as_echo_n 0123456789 >"conftest.in"
6697 while :
6698 do
6699 cat "conftest.in" "conftest.in" >"conftest.tmp"
6700 mv "conftest.tmp" "conftest.in"
6701 cp "conftest.in" "conftest.nl"
6702 $as_echo '' >> "conftest.nl"
6703 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6704 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6705 as_fn_arith $ac_count + 1 && ac_count=$as_val
6706 if test $ac_count -gt ${ac_path_SED_max-0}; then
6707 # Best one so far, save it but keep looking for a better one
6708 ac_cv_path_SED="$ac_path_SED"
6709 ac_path_SED_max=$ac_count
6710 fi
6711 # 10*(2^10) chars as input seems more than enough
6712 test $ac_count -gt 10 && break
6713 done
6714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6715 esac
6716
6717 $ac_path_SED_found && break 3
6718 done
6719 done
6720 done
6721 IFS=$as_save_IFS
6722 if test -z "$ac_cv_path_SED"; then
6723 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6724 fi
6725 else
6726 ac_cv_path_SED=$SED
6727 fi
6728
6729 fi
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6731 $as_echo "$ac_cv_path_SED" >&6; }
6732 SED="$ac_cv_path_SED"
6733 rm -f conftest.sed
6734
6735 test -z "$SED" && SED=sed
6736 Xsed="$SED -e 1s/^X//"
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6749 $as_echo_n "checking for fgrep... " >&6; }
6750 if ${ac_cv_path_FGREP+:} false; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6754 then ac_cv_path_FGREP="$GREP -F"
6755 else
6756 if test -z "$FGREP"; then
6757 ac_path_FGREP_found=false
6758 # Loop through the user's path and test for each of PROGNAME-LIST
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6761 do
6762 IFS=$as_save_IFS
6763 test -z "$as_dir" && as_dir=.
6764 for ac_prog in fgrep; do
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6767 as_fn_executable_p "$ac_path_FGREP" || continue
6768 # Check for GNU ac_path_FGREP and select it if it is found.
6769 # Check for GNU $ac_path_FGREP
6770 case `"$ac_path_FGREP" --version 2>&1` in
6771 *GNU*)
6772 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6773 *)
6774 ac_count=0
6775 $as_echo_n 0123456789 >"conftest.in"
6776 while :
6777 do
6778 cat "conftest.in" "conftest.in" >"conftest.tmp"
6779 mv "conftest.tmp" "conftest.in"
6780 cp "conftest.in" "conftest.nl"
6781 $as_echo 'FGREP' >> "conftest.nl"
6782 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6784 as_fn_arith $ac_count + 1 && ac_count=$as_val
6785 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6786 # Best one so far, save it but keep looking for a better one
6787 ac_cv_path_FGREP="$ac_path_FGREP"
6788 ac_path_FGREP_max=$ac_count
6789 fi
6790 # 10*(2^10) chars as input seems more than enough
6791 test $ac_count -gt 10 && break
6792 done
6793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6794 esac
6795
6796 $ac_path_FGREP_found && break 3
6797 done
6798 done
6799 done
6800 IFS=$as_save_IFS
6801 if test -z "$ac_cv_path_FGREP"; then
6802 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6803 fi
6804 else
6805 ac_cv_path_FGREP=$FGREP
6806 fi
6807
6808 fi
6809 fi
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6811 $as_echo "$ac_cv_path_FGREP" >&6; }
6812 FGREP="$ac_cv_path_FGREP"
6813
6814
6815 test -z "$GREP" && GREP=grep
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835 # Check whether --with-gnu-ld was given.
6836 if test "${with_gnu_ld+set}" = set; then :
6837 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6838 else
6839 with_gnu_ld=no
6840 fi
6841
6842 ac_prog=ld
6843 if test "$GCC" = yes; then
6844 # Check if gcc -print-prog-name=ld gives a path.
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6846 $as_echo_n "checking for ld used by $CC... " >&6; }
6847 case $host in
6848 *-*-mingw*)
6849 # gcc leaves a trailing carriage return which upsets mingw
6850 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6851 *)
6852 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6853 esac
6854 case $ac_prog in
6855 # Accept absolute paths.
6856 [\\/]* | ?:[\\/]*)
6857 re_direlt='/[^/][^/]*/\.\./'
6858 # Canonicalize the pathname of ld
6859 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6860 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6861 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6862 done
6863 test -z "$LD" && LD="$ac_prog"
6864 ;;
6865 "")
6866 # If it fails, then pretend we aren't using GCC.
6867 ac_prog=ld
6868 ;;
6869 *)
6870 # If it is relative, then search for the first ld in PATH.
6871 with_gnu_ld=unknown
6872 ;;
6873 esac
6874 elif test "$with_gnu_ld" = yes; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6876 $as_echo_n "checking for GNU ld... " >&6; }
6877 else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6879 $as_echo_n "checking for non-GNU ld... " >&6; }
6880 fi
6881 if ${lt_cv_path_LD+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883 else
6884 if test -z "$LD"; then
6885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6886 for ac_dir in $PATH; do
6887 IFS="$lt_save_ifs"
6888 test -z "$ac_dir" && ac_dir=.
6889 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6890 lt_cv_path_LD="$ac_dir/$ac_prog"
6891 # Check to see if the program is GNU ld. I'd rather use --version,
6892 # but apparently some variants of GNU ld only accept -v.
6893 # Break only if it was the GNU/non-GNU ld that we prefer.
6894 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6895 *GNU* | *'with BFD'*)
6896 test "$with_gnu_ld" != no && break
6897 ;;
6898 *)
6899 test "$with_gnu_ld" != yes && break
6900 ;;
6901 esac
6902 fi
6903 done
6904 IFS="$lt_save_ifs"
6905 else
6906 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6907 fi
6908 fi
6909
6910 LD="$lt_cv_path_LD"
6911 if test -n "$LD"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6913 $as_echo "$LD" >&6; }
6914 else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6920 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6921 if ${lt_cv_prog_gnu_ld+:} false; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6925 case `$LD -v 2>&1 </dev/null` in
6926 *GNU* | *'with BFD'*)
6927 lt_cv_prog_gnu_ld=yes
6928 ;;
6929 *)
6930 lt_cv_prog_gnu_ld=no
6931 ;;
6932 esac
6933 fi
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6935 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6936 with_gnu_ld=$lt_cv_prog_gnu_ld
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6947 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6948 if ${lt_cv_path_NM+:} false; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 if test -n "$NM"; then
6952 # Let the user override the test.
6953 lt_cv_path_NM="$NM"
6954 else
6955 lt_nm_to_check="${ac_tool_prefix}nm"
6956 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6957 lt_nm_to_check="$lt_nm_to_check nm"
6958 fi
6959 for lt_tmp_nm in $lt_nm_to_check; do
6960 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6961 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6962 IFS="$lt_save_ifs"
6963 test -z "$ac_dir" && ac_dir=.
6964 tmp_nm="$ac_dir/$lt_tmp_nm"
6965 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6966 # Check to see if the nm accepts a BSD-compat flag.
6967 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6968 # nm: unknown option "B" ignored
6969 # Tru64's nm complains that /dev/null is an invalid object file
6970 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6971 */dev/null* | *'Invalid file or object type'*)
6972 lt_cv_path_NM="$tmp_nm -B"
6973 break
6974 ;;
6975 *)
6976 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6977 */dev/null*)
6978 lt_cv_path_NM="$tmp_nm -p"
6979 break
6980 ;;
6981 *)
6982 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6983 continue # so that we can try to find one that supports BSD flags
6984 ;;
6985 esac
6986 ;;
6987 esac
6988 fi
6989 done
6990 IFS="$lt_save_ifs"
6991 done
6992 : ${lt_cv_path_NM=no}
6993 fi
6994 fi
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6996 $as_echo "$lt_cv_path_NM" >&6; }
6997 if test "$lt_cv_path_NM" != "no"; then
6998 NM="$lt_cv_path_NM"
6999 else
7000 # Didn't find any BSD compatible name lister, look for dumpbin.
7001 if test -n "$DUMPBIN"; then :
7002 # Let the user override the test.
7003 else
7004 if test -n "$ac_tool_prefix"; then
7005 for ac_prog in dumpbin "link -dump"
7006 do
7007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if ${ac_cv_prog_DUMPBIN+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 if test -n "$DUMPBIN"; then
7015 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7024 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028 done
7029 done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 DUMPBIN=$ac_cv_prog_DUMPBIN
7035 if test -n "$DUMPBIN"; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7037 $as_echo "$DUMPBIN" >&6; }
7038 else
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042
7043
7044 test -n "$DUMPBIN" && break
7045 done
7046 fi
7047 if test -z "$DUMPBIN"; then
7048 ac_ct_DUMPBIN=$DUMPBIN
7049 for ac_prog in dumpbin "link -dump"
7050 do
7051 # Extract the first word of "$ac_prog", so it can be a program name with args.
7052 set dummy $ac_prog; ac_word=$2
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054 $as_echo_n "checking for $ac_word... " >&6; }
7055 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7056 $as_echo_n "(cached) " >&6
7057 else
7058 if test -n "$ac_ct_DUMPBIN"; then
7059 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7060 else
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7063 do
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7068 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7071 fi
7072 done
7073 done
7074 IFS=$as_save_IFS
7075
7076 fi
7077 fi
7078 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7079 if test -n "$ac_ct_DUMPBIN"; then
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7081 $as_echo "$ac_ct_DUMPBIN" >&6; }
7082 else
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084 $as_echo "no" >&6; }
7085 fi
7086
7087
7088 test -n "$ac_ct_DUMPBIN" && break
7089 done
7090
7091 if test "x$ac_ct_DUMPBIN" = x; then
7092 DUMPBIN=":"
7093 else
7094 case $cross_compiling:$ac_tool_warned in
7095 yes:)
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7098 ac_tool_warned=yes ;;
7099 esac
7100 DUMPBIN=$ac_ct_DUMPBIN
7101 fi
7102 fi
7103
7104 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7105 *COFF*)
7106 DUMPBIN="$DUMPBIN -symbols"
7107 ;;
7108 *)
7109 DUMPBIN=:
7110 ;;
7111 esac
7112 fi
7113
7114 if test "$DUMPBIN" != ":"; then
7115 NM="$DUMPBIN"
7116 fi
7117 fi
7118 test -z "$NM" && NM=nm
7119
7120
7121
7122
7123
7124
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7126 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7127 if ${lt_cv_nm_interface+:} false; then :
7128 $as_echo_n "(cached) " >&6
7129 else
7130 lt_cv_nm_interface="BSD nm"
7131 echo "int some_variable = 0;" > conftest.$ac_ext
7132 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7133 (eval "$ac_compile" 2>conftest.err)
7134 cat conftest.err >&5
7135 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7136 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7137 cat conftest.err >&5
7138 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7139 cat conftest.out >&5
7140 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7141 lt_cv_nm_interface="MS dumpbin"
7142 fi
7143 rm -f conftest*
7144 fi
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7146 $as_echo "$lt_cv_nm_interface" >&6; }
7147
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7149 $as_echo_n "checking whether ln -s works... " >&6; }
7150 LN_S=$as_ln_s
7151 if test "$LN_S" = "ln -s"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7153 $as_echo "yes" >&6; }
7154 else
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7156 $as_echo "no, using $LN_S" >&6; }
7157 fi
7158
7159 # find the maximum length of command line arguments
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7161 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7162 if ${lt_cv_sys_max_cmd_len+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 i=0
7166 teststring="ABCD"
7167
7168 case $build_os in
7169 msdosdjgpp*)
7170 # On DJGPP, this test can blow up pretty badly due to problems in libc
7171 # (any single argument exceeding 2000 bytes causes a buffer overrun
7172 # during glob expansion). Even if it were fixed, the result of this
7173 # check would be larger than it should be.
7174 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7175 ;;
7176
7177 gnu*)
7178 # Under GNU Hurd, this test is not required because there is
7179 # no limit to the length of command line arguments.
7180 # Libtool will interpret -1 as no limit whatsoever
7181 lt_cv_sys_max_cmd_len=-1;
7182 ;;
7183
7184 cygwin* | mingw* | cegcc*)
7185 # On Win9x/ME, this test blows up -- it succeeds, but takes
7186 # about 5 minutes as the teststring grows exponentially.
7187 # Worse, since 9x/ME are not pre-emptively multitasking,
7188 # you end up with a "frozen" computer, even though with patience
7189 # the test eventually succeeds (with a max line length of 256k).
7190 # Instead, let's just punt: use the minimum linelength reported by
7191 # all of the supported platforms: 8192 (on NT/2K/XP).
7192 lt_cv_sys_max_cmd_len=8192;
7193 ;;
7194
7195 mint*)
7196 # On MiNT this can take a long time and run out of memory.
7197 lt_cv_sys_max_cmd_len=8192;
7198 ;;
7199
7200 amigaos*)
7201 # On AmigaOS with pdksh, this test takes hours, literally.
7202 # So we just punt and use a minimum line length of 8192.
7203 lt_cv_sys_max_cmd_len=8192;
7204 ;;
7205
7206 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7207 # This has been around since 386BSD, at least. Likely further.
7208 if test -x /sbin/sysctl; then
7209 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7210 elif test -x /usr/sbin/sysctl; then
7211 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7212 else
7213 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7214 fi
7215 # And add a safety zone
7216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7218 ;;
7219
7220 interix*)
7221 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7222 lt_cv_sys_max_cmd_len=196608
7223 ;;
7224
7225 osf*)
7226 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7227 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7228 # nice to cause kernel panics so lets avoid the loop below.
7229 # First set a reasonable default.
7230 lt_cv_sys_max_cmd_len=16384
7231 #
7232 if test -x /sbin/sysconfig; then
7233 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7234 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7235 esac
7236 fi
7237 ;;
7238 sco3.2v5*)
7239 lt_cv_sys_max_cmd_len=102400
7240 ;;
7241 sysv5* | sco5v6* | sysv4.2uw2*)
7242 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7243 if test -n "$kargmax"; then
7244 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7245 else
7246 lt_cv_sys_max_cmd_len=32768
7247 fi
7248 ;;
7249 *)
7250 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7251 if test -n "$lt_cv_sys_max_cmd_len"; then
7252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7254 else
7255 # Make teststring a little bigger before we do anything with it.
7256 # a 1K string should be a reasonable start.
7257 for i in 1 2 3 4 5 6 7 8 ; do
7258 teststring=$teststring$teststring
7259 done
7260 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7261 # If test is not a shell built-in, we'll probably end up computing a
7262 # maximum length that is only half of the actual maximum length, but
7263 # we can't tell.
7264 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7265 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7266 test $i != 17 # 1/2 MB should be enough
7267 do
7268 i=`expr $i + 1`
7269 teststring=$teststring$teststring
7270 done
7271 # Only check the string length outside the loop.
7272 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7273 teststring=
7274 # Add a significant safety factor because C++ compilers can tack on
7275 # massive amounts of additional arguments before passing them to the
7276 # linker. It appears as though 1/2 is a usable value.
7277 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7278 fi
7279 ;;
7280 esac
7281
7282 fi
7283
7284 if test -n $lt_cv_sys_max_cmd_len ; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7286 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7287 else
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7289 $as_echo "none" >&6; }
7290 fi
7291 max_cmd_len=$lt_cv_sys_max_cmd_len
7292
7293
7294
7295
7296
7297
7298 : ${CP="cp -f"}
7299 : ${MV="mv -f"}
7300 : ${RM="rm -f"}
7301
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7303 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7304 # Try some XSI features
7305 xsi_shell=no
7306 ( _lt_dummy="a/b/c"
7307 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7308 = c,a/b,, \
7309 && eval 'test $(( 1 + 1 )) -eq 2 \
7310 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7311 && xsi_shell=yes
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7313 $as_echo "$xsi_shell" >&6; }
7314
7315
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7317 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7318 lt_shell_append=no
7319 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7320 >/dev/null 2>&1 \
7321 && lt_shell_append=yes
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7323 $as_echo "$lt_shell_append" >&6; }
7324
7325
7326 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7327 lt_unset=unset
7328 else
7329 lt_unset=false
7330 fi
7331
7332
7333
7334
7335
7336 # test EBCDIC or ASCII
7337 case `echo X|tr X '\101'` in
7338 A) # ASCII based system
7339 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7340 lt_SP2NL='tr \040 \012'
7341 lt_NL2SP='tr \015\012 \040\040'
7342 ;;
7343 *) # EBCDIC based system
7344 lt_SP2NL='tr \100 \n'
7345 lt_NL2SP='tr \r\n \100\100'
7346 ;;
7347 esac
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7358 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7359 if ${lt_cv_ld_reload_flag+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 lt_cv_ld_reload_flag='-r'
7363 fi
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7365 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7366 reload_flag=$lt_cv_ld_reload_flag
7367 case $reload_flag in
7368 "" | " "*) ;;
7369 *) reload_flag=" $reload_flag" ;;
7370 esac
7371 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7372 case $host_os in
7373 darwin*)
7374 if test "$GCC" = yes; then
7375 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7376 else
7377 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7378 fi
7379 ;;
7380 esac
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390 if test -n "$ac_tool_prefix"; then
7391 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7392 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394 $as_echo_n "checking for $ac_word... " >&6; }
7395 if ${ac_cv_prog_OBJDUMP+:} false; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 if test -n "$OBJDUMP"; then
7399 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7400 else
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7403 do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7408 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7411 fi
7412 done
7413 done
7414 IFS=$as_save_IFS
7415
7416 fi
7417 fi
7418 OBJDUMP=$ac_cv_prog_OBJDUMP
7419 if test -n "$OBJDUMP"; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7421 $as_echo "$OBJDUMP" >&6; }
7422 else
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7425 fi
7426
7427
7428 fi
7429 if test -z "$ac_cv_prog_OBJDUMP"; then
7430 ac_ct_OBJDUMP=$OBJDUMP
7431 # Extract the first word of "objdump", so it can be a program name with args.
7432 set dummy objdump; ac_word=$2
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 $as_echo_n "checking for $ac_word... " >&6; }
7435 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7438 if test -n "$ac_ct_OBJDUMP"; then
7439 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7440 else
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7451 fi
7452 done
7453 done
7454 IFS=$as_save_IFS
7455
7456 fi
7457 fi
7458 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7459 if test -n "$ac_ct_OBJDUMP"; then
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7461 $as_echo "$ac_ct_OBJDUMP" >&6; }
7462 else
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464 $as_echo "no" >&6; }
7465 fi
7466
7467 if test "x$ac_ct_OBJDUMP" = x; then
7468 OBJDUMP="false"
7469 else
7470 case $cross_compiling:$ac_tool_warned in
7471 yes:)
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7474 ac_tool_warned=yes ;;
7475 esac
7476 OBJDUMP=$ac_ct_OBJDUMP
7477 fi
7478 else
7479 OBJDUMP="$ac_cv_prog_OBJDUMP"
7480 fi
7481
7482 test -z "$OBJDUMP" && OBJDUMP=objdump
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7493 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7494 if ${lt_cv_deplibs_check_method+:} false; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 lt_cv_file_magic_cmd='$MAGIC_CMD'
7498 lt_cv_file_magic_test_file=
7499 lt_cv_deplibs_check_method='unknown'
7500 # Need to set the preceding variable on all platforms that support
7501 # interlibrary dependencies.
7502 # 'none' -- dependencies not supported.
7503 # `unknown' -- same as none, but documents that we really don't know.
7504 # 'pass_all' -- all dependencies passed with no checks.
7505 # 'test_compile' -- check by making test program.
7506 # 'file_magic [[regex]]' -- check by looking for files in library path
7507 # which responds to the $file_magic_cmd with a given extended regex.
7508 # If you have `file' or equivalent on your system and you're not sure
7509 # whether `pass_all' will *always* work, you probably want this one.
7510
7511 case $host_os in
7512 aix[4-9]*)
7513 lt_cv_deplibs_check_method=pass_all
7514 ;;
7515
7516 beos*)
7517 lt_cv_deplibs_check_method=pass_all
7518 ;;
7519
7520 bsdi[45]*)
7521 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7522 lt_cv_file_magic_cmd='/usr/bin/file -L'
7523 lt_cv_file_magic_test_file=/shlib/libc.so
7524 ;;
7525
7526 cygwin*)
7527 # func_win32_libid is a shell function defined in ltmain.sh
7528 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7529 lt_cv_file_magic_cmd='func_win32_libid'
7530 ;;
7531
7532 mingw* | pw32*)
7533 # Base MSYS/MinGW do not provide the 'file' command needed by
7534 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7535 # unless we find 'file', for example because we are cross-compiling.
7536 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7537 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7538 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7539 lt_cv_file_magic_cmd='func_win32_libid'
7540 else
7541 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7542 lt_cv_file_magic_cmd='$OBJDUMP -f'
7543 fi
7544 ;;
7545
7546 cegcc*)
7547 # use the weaker test based on 'objdump'. See mingw*.
7548 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7549 lt_cv_file_magic_cmd='$OBJDUMP -f'
7550 ;;
7551
7552 darwin* | rhapsody*)
7553 lt_cv_deplibs_check_method=pass_all
7554 ;;
7555
7556 freebsd* | dragonfly*)
7557 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7558 case $host_cpu in
7559 i*86 )
7560 # Not sure whether the presence of OpenBSD here was a mistake.
7561 # Let's accept both of them until this is cleared up.
7562 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7563 lt_cv_file_magic_cmd=/usr/bin/file
7564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7565 ;;
7566 esac
7567 else
7568 lt_cv_deplibs_check_method=pass_all
7569 fi
7570 ;;
7571
7572 gnu*)
7573 lt_cv_deplibs_check_method=pass_all
7574 ;;
7575
7576 haiku*)
7577 lt_cv_deplibs_check_method=pass_all
7578 ;;
7579
7580 hpux10.20* | hpux11*)
7581 lt_cv_file_magic_cmd=/usr/bin/file
7582 case $host_cpu in
7583 ia64*)
7584 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7585 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7586 ;;
7587 hppa*64*)
7588 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]'
7589 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7590 ;;
7591 *)
7592 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7593 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7594 ;;
7595 esac
7596 ;;
7597
7598 interix[3-9]*)
7599 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7601 ;;
7602
7603 irix5* | irix6* | nonstopux*)
7604 case $LD in
7605 *-32|*"-32 ") libmagic=32-bit;;
7606 *-n32|*"-n32 ") libmagic=N32;;
7607 *-64|*"-64 ") libmagic=64-bit;;
7608 *) libmagic=never-match;;
7609 esac
7610 lt_cv_deplibs_check_method=pass_all
7611 ;;
7612
7613 # This must be Linux ELF.
7614 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7615 lt_cv_deplibs_check_method=pass_all
7616 ;;
7617
7618 netbsd*)
7619 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7621 else
7622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7623 fi
7624 ;;
7625
7626 newos6*)
7627 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7628 lt_cv_file_magic_cmd=/usr/bin/file
7629 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7630 ;;
7631
7632 *nto* | *qnx*)
7633 lt_cv_deplibs_check_method=pass_all
7634 ;;
7635
7636 openbsd*)
7637 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7639 else
7640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7641 fi
7642 ;;
7643
7644 osf3* | osf4* | osf5*)
7645 lt_cv_deplibs_check_method=pass_all
7646 ;;
7647
7648 rdos*)
7649 lt_cv_deplibs_check_method=pass_all
7650 ;;
7651
7652 solaris*)
7653 lt_cv_deplibs_check_method=pass_all
7654 ;;
7655
7656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7657 lt_cv_deplibs_check_method=pass_all
7658 ;;
7659
7660 sysv4 | sysv4.3*)
7661 case $host_vendor in
7662 motorola)
7663 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]'
7664 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7665 ;;
7666 ncr)
7667 lt_cv_deplibs_check_method=pass_all
7668 ;;
7669 sequent)
7670 lt_cv_file_magic_cmd='/bin/file'
7671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7672 ;;
7673 sni)
7674 lt_cv_file_magic_cmd='/bin/file'
7675 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7676 lt_cv_file_magic_test_file=/lib/libc.so
7677 ;;
7678 siemens)
7679 lt_cv_deplibs_check_method=pass_all
7680 ;;
7681 pc)
7682 lt_cv_deplibs_check_method=pass_all
7683 ;;
7684 esac
7685 ;;
7686
7687 tpf*)
7688 lt_cv_deplibs_check_method=pass_all
7689 ;;
7690 vxworks*)
7691 # Assume VxWorks cross toolchains are built on Linux, possibly
7692 # as canadian for Windows hosts.
7693 lt_cv_deplibs_check_method=pass_all
7694 ;;
7695 esac
7696
7697 fi
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7699 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7700 file_magic_cmd=$lt_cv_file_magic_cmd
7701 deplibs_check_method=$lt_cv_deplibs_check_method
7702 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715 if test -n "$ac_tool_prefix"; then
7716 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7717 set dummy ${ac_tool_prefix}ar; ac_word=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if ${ac_cv_prog_AR+:} false; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 if test -n "$AR"; then
7724 ac_cv_prog_AR="$AR" # Let the user override the test.
7725 else
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7728 do
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7733 ac_cv_prog_AR="${ac_tool_prefix}ar"
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 break 2
7736 fi
7737 done
7738 done
7739 IFS=$as_save_IFS
7740
7741 fi
7742 fi
7743 AR=$ac_cv_prog_AR
7744 if test -n "$AR"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7746 $as_echo "$AR" >&6; }
7747 else
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7750 fi
7751
7752
7753 fi
7754 if test -z "$ac_cv_prog_AR"; then
7755 ac_ct_AR=$AR
7756 # Extract the first word of "ar", so it can be a program name with args.
7757 set dummy ar; ac_word=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7761 $as_echo_n "(cached) " >&6
7762 else
7763 if test -n "$ac_ct_AR"; then
7764 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7765 else
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7768 do
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_ac_ct_AR="ar"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7776 fi
7777 done
7778 done
7779 IFS=$as_save_IFS
7780
7781 fi
7782 fi
7783 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7784 if test -n "$ac_ct_AR"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7786 $as_echo "$ac_ct_AR" >&6; }
7787 else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7790 fi
7791
7792 if test "x$ac_ct_AR" = x; then
7793 AR="false"
7794 else
7795 case $cross_compiling:$ac_tool_warned in
7796 yes:)
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7799 ac_tool_warned=yes ;;
7800 esac
7801 AR=$ac_ct_AR
7802 fi
7803 else
7804 AR="$ac_cv_prog_AR"
7805 fi
7806
7807 test -z "$AR" && AR=ar
7808 test -z "$AR_FLAGS" && AR_FLAGS=cru
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820 if test -n "$ac_tool_prefix"; then
7821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7822 set dummy ${ac_tool_prefix}strip; ac_word=$2
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824 $as_echo_n "checking for $ac_word... " >&6; }
7825 if ${ac_cv_prog_STRIP+:} false; then :
7826 $as_echo_n "(cached) " >&6
7827 else
7828 if test -n "$STRIP"; then
7829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7830 else
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832 for as_dir in $PATH
7833 do
7834 IFS=$as_save_IFS
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 break 2
7841 fi
7842 done
7843 done
7844 IFS=$as_save_IFS
7845
7846 fi
7847 fi
7848 STRIP=$ac_cv_prog_STRIP
7849 if test -n "$STRIP"; then
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7851 $as_echo "$STRIP" >&6; }
7852 else
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854 $as_echo "no" >&6; }
7855 fi
7856
7857
7858 fi
7859 if test -z "$ac_cv_prog_STRIP"; then
7860 ac_ct_STRIP=$STRIP
7861 # Extract the first word of "strip", so it can be a program name with args.
7862 set dummy strip; ac_word=$2
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 $as_echo_n "checking for $ac_word... " >&6; }
7865 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 if test -n "$ac_ct_STRIP"; then
7869 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7870 else
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 for as_dir in $PATH
7873 do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7878 ac_cv_prog_ac_ct_STRIP="strip"
7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882 done
7883 done
7884 IFS=$as_save_IFS
7885
7886 fi
7887 fi
7888 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7889 if test -n "$ac_ct_STRIP"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7891 $as_echo "$ac_ct_STRIP" >&6; }
7892 else
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7895 fi
7896
7897 if test "x$ac_ct_STRIP" = x; then
7898 STRIP=":"
7899 else
7900 case $cross_compiling:$ac_tool_warned in
7901 yes:)
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7904 ac_tool_warned=yes ;;
7905 esac
7906 STRIP=$ac_ct_STRIP
7907 fi
7908 else
7909 STRIP="$ac_cv_prog_STRIP"
7910 fi
7911
7912 test -z "$STRIP" && STRIP=:
7913
7914
7915
7916
7917
7918
7919 if test -n "$ac_tool_prefix"; then
7920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7921 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 $as_echo_n "checking for $ac_word... " >&6; }
7924 if ${ac_cv_prog_RANLIB+:} false; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 if test -n "$RANLIB"; then
7928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7929 else
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in $PATH
7932 do
7933 IFS=$as_save_IFS
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 break 2
7940 fi
7941 done
7942 done
7943 IFS=$as_save_IFS
7944
7945 fi
7946 fi
7947 RANLIB=$ac_cv_prog_RANLIB
7948 if test -n "$RANLIB"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7950 $as_echo "$RANLIB" >&6; }
7951 else
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7954 fi
7955
7956
7957 fi
7958 if test -z "$ac_cv_prog_RANLIB"; then
7959 ac_ct_RANLIB=$RANLIB
7960 # Extract the first word of "ranlib", so it can be a program name with args.
7961 set dummy ranlib; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 if test -n "$ac_ct_RANLIB"; then
7968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7969 else
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7972 do
7973 IFS=$as_save_IFS
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977 ac_cv_prog_ac_ct_RANLIB="ranlib"
7978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 break 2
7980 fi
7981 done
7982 done
7983 IFS=$as_save_IFS
7984
7985 fi
7986 fi
7987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7988 if test -n "$ac_ct_RANLIB"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7990 $as_echo "$ac_ct_RANLIB" >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7994 fi
7995
7996 if test "x$ac_ct_RANLIB" = x; then
7997 RANLIB=":"
7998 else
7999 case $cross_compiling:$ac_tool_warned in
8000 yes:)
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8003 ac_tool_warned=yes ;;
8004 esac
8005 RANLIB=$ac_ct_RANLIB
8006 fi
8007 else
8008 RANLIB="$ac_cv_prog_RANLIB"
8009 fi
8010
8011 test -z "$RANLIB" && RANLIB=:
8012
8013
8014
8015
8016
8017
8018 # Determine commands to create old-style static archives.
8019 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8020 old_postinstall_cmds='chmod 644 $oldlib'
8021 old_postuninstall_cmds=
8022
8023 if test -n "$RANLIB"; then
8024 case $host_os in
8025 openbsd*)
8026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8027 ;;
8028 *)
8029 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8030 ;;
8031 esac
8032 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8033 fi
8034
8035 case $host_os in
8036 darwin*)
8037 lock_old_archive_extraction=yes ;;
8038 *)
8039 lock_old_archive_extraction=no ;;
8040 esac
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080 # If no C compiler was specified, use CC.
8081 LTCC=${LTCC-"$CC"}
8082
8083 # If no C compiler flags were specified, use CFLAGS.
8084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8085
8086 # Allow CC to be a program name with arguments.
8087 compiler=$CC
8088
8089
8090 # Check for command to grab the raw symbol name followed by C symbol from nm.
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8092 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8093 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096
8097 # These are sane defaults that work on at least a few old systems.
8098 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8099
8100 # Character class describing NM global symbol codes.
8101 symcode='[BCDEGRST]'
8102
8103 # Regexp to match symbols that can be accessed directly from C.
8104 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8105
8106 # Define system-specific variables.
8107 case $host_os in
8108 aix*)
8109 symcode='[BCDT]'
8110 ;;
8111 cygwin* | mingw* | pw32* | cegcc*)
8112 symcode='[ABCDGISTW]'
8113 ;;
8114 hpux*)
8115 if test "$host_cpu" = ia64; then
8116 symcode='[ABCDEGRST]'
8117 fi
8118 ;;
8119 irix* | nonstopux*)
8120 symcode='[BCDEGRST]'
8121 ;;
8122 osf*)
8123 symcode='[BCDEGQRST]'
8124 ;;
8125 solaris*)
8126 symcode='[BDRT]'
8127 ;;
8128 sco3.2v5*)
8129 symcode='[DT]'
8130 ;;
8131 sysv4.2uw2*)
8132 symcode='[DT]'
8133 ;;
8134 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8135 symcode='[ABDT]'
8136 ;;
8137 sysv4)
8138 symcode='[DFNSTU]'
8139 ;;
8140 esac
8141
8142 # If we're using GNU nm, then use its standard symbol codes.
8143 case `$NM -V 2>&1` in
8144 *GNU* | *'with BFD'*)
8145 symcode='[ABCDGIRSTW]' ;;
8146 esac
8147
8148 # Transform an extracted symbol line into a proper C declaration.
8149 # Some systems (esp. on ia64) link data and code symbols differently,
8150 # so use this general approach.
8151 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8152
8153 # Transform an extracted symbol line into symbol name and symbol address
8154 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8155 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'"
8156
8157 # Handle CRLF in mingw tool chain
8158 opt_cr=
8159 case $build_os in
8160 mingw*)
8161 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8162 ;;
8163 esac
8164
8165 # Try without a prefix underscore, then with it.
8166 for ac_symprfx in "" "_"; do
8167
8168 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8169 symxfrm="\\1 $ac_symprfx\\2 \\2"
8170
8171 # Write the raw and C identifiers.
8172 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8173 # Fake it for dumpbin and say T for any non-static function
8174 # and D for any global variable.
8175 # Also find C++ and __fastcall symbols from MSVC++,
8176 # which start with @ or ?.
8177 lt_cv_sys_global_symbol_pipe="$AWK '"\
8178 " {last_section=section; section=\$ 3};"\
8179 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8180 " \$ 0!~/External *\|/{next};"\
8181 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8182 " {if(hide[section]) next};"\
8183 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8184 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8185 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8186 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8187 " ' prfx=^$ac_symprfx"
8188 else
8189 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8190 fi
8191
8192 # Check to see that the pipe works correctly.
8193 pipe_works=no
8194
8195 rm -f conftest*
8196 cat > conftest.$ac_ext <<_LT_EOF
8197 #ifdef __cplusplus
8198 extern "C" {
8199 #endif
8200 char nm_test_var;
8201 void nm_test_func(void);
8202 void nm_test_func(void){}
8203 #ifdef __cplusplus
8204 }
8205 #endif
8206 int main(){nm_test_var='a';nm_test_func();return(0);}
8207 _LT_EOF
8208
8209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8210 (eval $ac_compile) 2>&5
8211 ac_status=$?
8212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8213 test $ac_status = 0; }; then
8214 # Now try to grab the symbols.
8215 nlist=conftest.nm
8216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8217 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8218 ac_status=$?
8219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8220 test $ac_status = 0; } && test -s "$nlist"; then
8221 # Try sorting and uniquifying the output.
8222 if sort "$nlist" | uniq > "$nlist"T; then
8223 mv -f "$nlist"T "$nlist"
8224 else
8225 rm -f "$nlist"T
8226 fi
8227
8228 # Make sure that we snagged all the symbols we need.
8229 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8230 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8231 cat <<_LT_EOF > conftest.$ac_ext
8232 #ifdef __cplusplus
8233 extern "C" {
8234 #endif
8235
8236 _LT_EOF
8237 # Now generate the symbol file.
8238 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8239
8240 cat <<_LT_EOF >> conftest.$ac_ext
8241
8242 /* The mapping between symbol names and symbols. */
8243 const struct {
8244 const char *name;
8245 void *address;
8246 }
8247 lt__PROGRAM__LTX_preloaded_symbols[] =
8248 {
8249 { "@PROGRAM@", (void *) 0 },
8250 _LT_EOF
8251 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8252 cat <<\_LT_EOF >> conftest.$ac_ext
8253 {0, (void *) 0}
8254 };
8255
8256 /* This works around a problem in FreeBSD linker */
8257 #ifdef FREEBSD_WORKAROUND
8258 static const void *lt_preloaded_setup() {
8259 return lt__PROGRAM__LTX_preloaded_symbols;
8260 }
8261 #endif
8262
8263 #ifdef __cplusplus
8264 }
8265 #endif
8266 _LT_EOF
8267 # Now try linking the two files.
8268 mv conftest.$ac_objext conftstm.$ac_objext
8269 lt_save_LIBS="$LIBS"
8270 lt_save_CFLAGS="$CFLAGS"
8271 LIBS="conftstm.$ac_objext"
8272 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8274 (eval $ac_link) 2>&5
8275 ac_status=$?
8276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8277 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8278 pipe_works=yes
8279 fi
8280 LIBS="$lt_save_LIBS"
8281 CFLAGS="$lt_save_CFLAGS"
8282 else
8283 echo "cannot find nm_test_func in $nlist" >&5
8284 fi
8285 else
8286 echo "cannot find nm_test_var in $nlist" >&5
8287 fi
8288 else
8289 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8290 fi
8291 else
8292 echo "$progname: failed program was:" >&5
8293 cat conftest.$ac_ext >&5
8294 fi
8295 rm -rf conftest* conftst*
8296
8297 # Do not use the global_symbol_pipe unless it works.
8298 if test "$pipe_works" = yes; then
8299 break
8300 else
8301 lt_cv_sys_global_symbol_pipe=
8302 fi
8303 done
8304
8305 fi
8306
8307 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8308 lt_cv_sys_global_symbol_to_cdecl=
8309 fi
8310 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8312 $as_echo "failed" >&6; }
8313 else
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8315 $as_echo "ok" >&6; }
8316 fi
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339 # Check whether --enable-libtool-lock was given.
8340 if test "${enable_libtool_lock+set}" = set; then :
8341 enableval=$enable_libtool_lock;
8342 fi
8343
8344 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8345
8346 # Some flags need to be propagated to the compiler or linker for good
8347 # libtool support.
8348 case $host in
8349 ia64-*-hpux*)
8350 # Find out which ABI we are using.
8351 echo 'int i;' > conftest.$ac_ext
8352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8353 (eval $ac_compile) 2>&5
8354 ac_status=$?
8355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8356 test $ac_status = 0; }; then
8357 case `/usr/bin/file conftest.$ac_objext` in
8358 *ELF-32*)
8359 HPUX_IA64_MODE="32"
8360 ;;
8361 *ELF-64*)
8362 HPUX_IA64_MODE="64"
8363 ;;
8364 esac
8365 fi
8366 rm -rf conftest*
8367 ;;
8368 *-*-irix6*)
8369 # Find out which ABI we are using.
8370 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8372 (eval $ac_compile) 2>&5
8373 ac_status=$?
8374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8375 test $ac_status = 0; }; then
8376 if test "$lt_cv_prog_gnu_ld" = yes; then
8377 case `/usr/bin/file conftest.$ac_objext` in
8378 *32-bit*)
8379 LD="${LD-ld} -melf32bsmip"
8380 ;;
8381 *N32*)
8382 LD="${LD-ld} -melf32bmipn32"
8383 ;;
8384 *64-bit*)
8385 LD="${LD-ld} -melf64bmip"
8386 ;;
8387 esac
8388 else
8389 case `/usr/bin/file conftest.$ac_objext` in
8390 *32-bit*)
8391 LD="${LD-ld} -32"
8392 ;;
8393 *N32*)
8394 LD="${LD-ld} -n32"
8395 ;;
8396 *64-bit*)
8397 LD="${LD-ld} -64"
8398 ;;
8399 esac
8400 fi
8401 fi
8402 rm -rf conftest*
8403 ;;
8404
8405 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8406 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8407 # Find out which ABI we are using.
8408 echo 'int i;' > conftest.$ac_ext
8409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8410 (eval $ac_compile) 2>&5
8411 ac_status=$?
8412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8413 test $ac_status = 0; }; then
8414 case `/usr/bin/file conftest.o` in
8415 *32-bit*)
8416 case $host in
8417 x86_64-*kfreebsd*-gnu)
8418 LD="${LD-ld} -m elf_i386_fbsd"
8419 ;;
8420 x86_64-*linux*)
8421 case `/usr/bin/file conftest.o` in
8422 *x86-64*)
8423 LD="${LD-ld} -m elf32_x86_64"
8424 ;;
8425 *)
8426 LD="${LD-ld} -m elf_i386"
8427 ;;
8428 esac
8429 ;;
8430 powerpc64le-*linux*)
8431 LD="${LD-ld} -m elf32lppclinux"
8432 ;;
8433 powerpc64-*linux*)
8434 LD="${LD-ld} -m elf32ppclinux"
8435 ;;
8436 s390x-*linux*)
8437 LD="${LD-ld} -m elf_s390"
8438 ;;
8439 sparc64-*linux*)
8440 LD="${LD-ld} -m elf32_sparc"
8441 ;;
8442 esac
8443 ;;
8444 *64-bit*)
8445 case $host in
8446 x86_64-*kfreebsd*-gnu)
8447 LD="${LD-ld} -m elf_x86_64_fbsd"
8448 ;;
8449 x86_64-*linux*)
8450 LD="${LD-ld} -m elf_x86_64"
8451 ;;
8452 powerpcle-*linux*)
8453 LD="${LD-ld} -m elf64lppc"
8454 ;;
8455 powerpc-*linux*)
8456 LD="${LD-ld} -m elf64ppc"
8457 ;;
8458 s390*-*linux*|s390*-*tpf*)
8459 LD="${LD-ld} -m elf64_s390"
8460 ;;
8461 sparc*-*linux*)
8462 LD="${LD-ld} -m elf64_sparc"
8463 ;;
8464 esac
8465 ;;
8466 esac
8467 fi
8468 rm -rf conftest*
8469 ;;
8470
8471 *-*-sco3.2v5*)
8472 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8473 SAVE_CFLAGS="$CFLAGS"
8474 CFLAGS="$CFLAGS -belf"
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8476 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8477 if ${lt_cv_cc_needs_belf+:} false; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 ac_ext=c
8481 ac_cpp='$CPP $CPPFLAGS'
8482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8485
8486 if test x$gcc_no_link = xyes; then
8487 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8488 fi
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8491
8492 int
8493 main ()
8494 {
8495
8496 ;
8497 return 0;
8498 }
8499 _ACEOF
8500 if ac_fn_c_try_link "$LINENO"; then :
8501 lt_cv_cc_needs_belf=yes
8502 else
8503 lt_cv_cc_needs_belf=no
8504 fi
8505 rm -f core conftest.err conftest.$ac_objext \
8506 conftest$ac_exeext conftest.$ac_ext
8507 ac_ext=c
8508 ac_cpp='$CPP $CPPFLAGS'
8509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8512
8513 fi
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8515 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8516 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8517 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8518 CFLAGS="$SAVE_CFLAGS"
8519 fi
8520 ;;
8521 sparc*-*solaris*)
8522 # Find out which ABI we are using.
8523 echo 'int i;' > conftest.$ac_ext
8524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8525 (eval $ac_compile) 2>&5
8526 ac_status=$?
8527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8528 test $ac_status = 0; }; then
8529 case `/usr/bin/file conftest.o` in
8530 *64-bit*)
8531 case $lt_cv_prog_gnu_ld in
8532 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8533 *)
8534 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8535 LD="${LD-ld} -64"
8536 fi
8537 ;;
8538 esac
8539 ;;
8540 esac
8541 fi
8542 rm -rf conftest*
8543 ;;
8544 esac
8545
8546 need_locks="$enable_libtool_lock"
8547
8548
8549 case $host_os in
8550 rhapsody* | darwin*)
8551 if test -n "$ac_tool_prefix"; then
8552 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8553 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 if test -n "$DSYMUTIL"; then
8560 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8561 else
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 for as_dir in $PATH
8564 do
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8569 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 break 2
8572 fi
8573 done
8574 done
8575 IFS=$as_save_IFS
8576
8577 fi
8578 fi
8579 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8580 if test -n "$DSYMUTIL"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8582 $as_echo "$DSYMUTIL" >&6; }
8583 else
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8586 fi
8587
8588
8589 fi
8590 if test -z "$ac_cv_prog_DSYMUTIL"; then
8591 ac_ct_DSYMUTIL=$DSYMUTIL
8592 # Extract the first word of "dsymutil", so it can be a program name with args.
8593 set dummy dsymutil; ac_word=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 if test -n "$ac_ct_DSYMUTIL"; then
8600 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8601 else
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 for as_dir in $PATH
8604 do
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8609 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 break 2
8612 fi
8613 done
8614 done
8615 IFS=$as_save_IFS
8616
8617 fi
8618 fi
8619 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8620 if test -n "$ac_ct_DSYMUTIL"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8622 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8623 else
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8626 fi
8627
8628 if test "x$ac_ct_DSYMUTIL" = x; then
8629 DSYMUTIL=":"
8630 else
8631 case $cross_compiling:$ac_tool_warned in
8632 yes:)
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8635 ac_tool_warned=yes ;;
8636 esac
8637 DSYMUTIL=$ac_ct_DSYMUTIL
8638 fi
8639 else
8640 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8641 fi
8642
8643 if test -n "$ac_tool_prefix"; then
8644 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8645 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if ${ac_cv_prog_NMEDIT+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 if test -n "$NMEDIT"; then
8652 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8653 else
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8661 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8664 fi
8665 done
8666 done
8667 IFS=$as_save_IFS
8668
8669 fi
8670 fi
8671 NMEDIT=$ac_cv_prog_NMEDIT
8672 if test -n "$NMEDIT"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8674 $as_echo "$NMEDIT" >&6; }
8675 else
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8678 fi
8679
8680
8681 fi
8682 if test -z "$ac_cv_prog_NMEDIT"; then
8683 ac_ct_NMEDIT=$NMEDIT
8684 # Extract the first word of "nmedit", so it can be a program name with args.
8685 set dummy nmedit; ac_word=$2
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687 $as_echo_n "checking for $ac_word... " >&6; }
8688 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8689 $as_echo_n "(cached) " >&6
8690 else
8691 if test -n "$ac_ct_NMEDIT"; then
8692 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8693 else
8694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 for as_dir in $PATH
8696 do
8697 IFS=$as_save_IFS
8698 test -z "$as_dir" && as_dir=.
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8701 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 break 2
8704 fi
8705 done
8706 done
8707 IFS=$as_save_IFS
8708
8709 fi
8710 fi
8711 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8712 if test -n "$ac_ct_NMEDIT"; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8714 $as_echo "$ac_ct_NMEDIT" >&6; }
8715 else
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 $as_echo "no" >&6; }
8718 fi
8719
8720 if test "x$ac_ct_NMEDIT" = x; then
8721 NMEDIT=":"
8722 else
8723 case $cross_compiling:$ac_tool_warned in
8724 yes:)
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8727 ac_tool_warned=yes ;;
8728 esac
8729 NMEDIT=$ac_ct_NMEDIT
8730 fi
8731 else
8732 NMEDIT="$ac_cv_prog_NMEDIT"
8733 fi
8734
8735 if test -n "$ac_tool_prefix"; then
8736 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8737 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739 $as_echo_n "checking for $ac_word... " >&6; }
8740 if ${ac_cv_prog_LIPO+:} false; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 if test -n "$LIPO"; then
8744 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8745 else
8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747 for as_dir in $PATH
8748 do
8749 IFS=$as_save_IFS
8750 test -z "$as_dir" && as_dir=.
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8753 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8755 break 2
8756 fi
8757 done
8758 done
8759 IFS=$as_save_IFS
8760
8761 fi
8762 fi
8763 LIPO=$ac_cv_prog_LIPO
8764 if test -n "$LIPO"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8766 $as_echo "$LIPO" >&6; }
8767 else
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8770 fi
8771
8772
8773 fi
8774 if test -z "$ac_cv_prog_LIPO"; then
8775 ac_ct_LIPO=$LIPO
8776 # Extract the first word of "lipo", so it can be a program name with args.
8777 set dummy lipo; ac_word=$2
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779 $as_echo_n "checking for $ac_word... " >&6; }
8780 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 if test -n "$ac_ct_LIPO"; then
8784 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8785 else
8786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787 for as_dir in $PATH
8788 do
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8793 ac_cv_prog_ac_ct_LIPO="lipo"
8794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 break 2
8796 fi
8797 done
8798 done
8799 IFS=$as_save_IFS
8800
8801 fi
8802 fi
8803 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8804 if test -n "$ac_ct_LIPO"; then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8806 $as_echo "$ac_ct_LIPO" >&6; }
8807 else
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8810 fi
8811
8812 if test "x$ac_ct_LIPO" = x; then
8813 LIPO=":"
8814 else
8815 case $cross_compiling:$ac_tool_warned in
8816 yes:)
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8819 ac_tool_warned=yes ;;
8820 esac
8821 LIPO=$ac_ct_LIPO
8822 fi
8823 else
8824 LIPO="$ac_cv_prog_LIPO"
8825 fi
8826
8827 if test -n "$ac_tool_prefix"; then
8828 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8829 set dummy ${ac_tool_prefix}otool; ac_word=$2
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831 $as_echo_n "checking for $ac_word... " >&6; }
8832 if ${ac_cv_prog_OTOOL+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834 else
8835 if test -n "$OTOOL"; then
8836 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8837 else
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 for as_dir in $PATH
8840 do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8845 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 break 2
8848 fi
8849 done
8850 done
8851 IFS=$as_save_IFS
8852
8853 fi
8854 fi
8855 OTOOL=$ac_cv_prog_OTOOL
8856 if test -n "$OTOOL"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8858 $as_echo "$OTOOL" >&6; }
8859 else
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8862 fi
8863
8864
8865 fi
8866 if test -z "$ac_cv_prog_OTOOL"; then
8867 ac_ct_OTOOL=$OTOOL
8868 # Extract the first word of "otool", so it can be a program name with args.
8869 set dummy otool; ac_word=$2
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871 $as_echo_n "checking for $ac_word... " >&6; }
8872 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874 else
8875 if test -n "$ac_ct_OTOOL"; then
8876 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8877 else
8878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879 for as_dir in $PATH
8880 do
8881 IFS=$as_save_IFS
8882 test -z "$as_dir" && as_dir=.
8883 for ac_exec_ext in '' $ac_executable_extensions; do
8884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8885 ac_cv_prog_ac_ct_OTOOL="otool"
8886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8887 break 2
8888 fi
8889 done
8890 done
8891 IFS=$as_save_IFS
8892
8893 fi
8894 fi
8895 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8896 if test -n "$ac_ct_OTOOL"; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8898 $as_echo "$ac_ct_OTOOL" >&6; }
8899 else
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901 $as_echo "no" >&6; }
8902 fi
8903
8904 if test "x$ac_ct_OTOOL" = x; then
8905 OTOOL=":"
8906 else
8907 case $cross_compiling:$ac_tool_warned in
8908 yes:)
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8911 ac_tool_warned=yes ;;
8912 esac
8913 OTOOL=$ac_ct_OTOOL
8914 fi
8915 else
8916 OTOOL="$ac_cv_prog_OTOOL"
8917 fi
8918
8919 if test -n "$ac_tool_prefix"; then
8920 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8921 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923 $as_echo_n "checking for $ac_word... " >&6; }
8924 if ${ac_cv_prog_OTOOL64+:} false; then :
8925 $as_echo_n "(cached) " >&6
8926 else
8927 if test -n "$OTOOL64"; then
8928 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8929 else
8930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931 for as_dir in $PATH
8932 do
8933 IFS=$as_save_IFS
8934 test -z "$as_dir" && as_dir=.
8935 for ac_exec_ext in '' $ac_executable_extensions; do
8936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8937 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8939 break 2
8940 fi
8941 done
8942 done
8943 IFS=$as_save_IFS
8944
8945 fi
8946 fi
8947 OTOOL64=$ac_cv_prog_OTOOL64
8948 if test -n "$OTOOL64"; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8950 $as_echo "$OTOOL64" >&6; }
8951 else
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8954 fi
8955
8956
8957 fi
8958 if test -z "$ac_cv_prog_OTOOL64"; then
8959 ac_ct_OTOOL64=$OTOOL64
8960 # Extract the first word of "otool64", so it can be a program name with args.
8961 set dummy otool64; ac_word=$2
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963 $as_echo_n "checking for $ac_word... " >&6; }
8964 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 if test -n "$ac_ct_OTOOL64"; then
8968 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8969 else
8970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8971 for as_dir in $PATH
8972 do
8973 IFS=$as_save_IFS
8974 test -z "$as_dir" && as_dir=.
8975 for ac_exec_ext in '' $ac_executable_extensions; do
8976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8977 ac_cv_prog_ac_ct_OTOOL64="otool64"
8978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8979 break 2
8980 fi
8981 done
8982 done
8983 IFS=$as_save_IFS
8984
8985 fi
8986 fi
8987 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8988 if test -n "$ac_ct_OTOOL64"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8990 $as_echo "$ac_ct_OTOOL64" >&6; }
8991 else
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993 $as_echo "no" >&6; }
8994 fi
8995
8996 if test "x$ac_ct_OTOOL64" = x; then
8997 OTOOL64=":"
8998 else
8999 case $cross_compiling:$ac_tool_warned in
9000 yes:)
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9003 ac_tool_warned=yes ;;
9004 esac
9005 OTOOL64=$ac_ct_OTOOL64
9006 fi
9007 else
9008 OTOOL64="$ac_cv_prog_OTOOL64"
9009 fi
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9038 $as_echo_n "checking for -single_module linker flag... " >&6; }
9039 if ${lt_cv_apple_cc_single_mod+:} false; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 lt_cv_apple_cc_single_mod=no
9043 if test -z "${LT_MULTI_MODULE}"; then
9044 # By default we will add the -single_module flag. You can override
9045 # by either setting the environment variable LT_MULTI_MODULE
9046 # non-empty at configure time, or by adding -multi_module to the
9047 # link flags.
9048 rm -rf libconftest.dylib*
9049 echo "int foo(void){return 1;}" > conftest.c
9050 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9051 -dynamiclib -Wl,-single_module conftest.c" >&5
9052 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9053 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9054 _lt_result=$?
9055 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9056 lt_cv_apple_cc_single_mod=yes
9057 else
9058 cat conftest.err >&5
9059 fi
9060 rm -rf libconftest.dylib*
9061 rm -f conftest.*
9062 fi
9063 fi
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9065 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9067 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9068 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9069 $as_echo_n "(cached) " >&6
9070 else
9071 lt_cv_ld_exported_symbols_list=no
9072 save_LDFLAGS=$LDFLAGS
9073 echo "_main" > conftest.sym
9074 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9075 if test x$gcc_no_link = xyes; then
9076 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9077 fi
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080
9081 int
9082 main ()
9083 {
9084
9085 ;
9086 return 0;
9087 }
9088 _ACEOF
9089 if ac_fn_c_try_link "$LINENO"; then :
9090 lt_cv_ld_exported_symbols_list=yes
9091 else
9092 lt_cv_ld_exported_symbols_list=no
9093 fi
9094 rm -f core conftest.err conftest.$ac_objext \
9095 conftest$ac_exeext conftest.$ac_ext
9096 LDFLAGS="$save_LDFLAGS"
9097
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9100 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9102 $as_echo_n "checking for -force_load linker flag... " >&6; }
9103 if ${lt_cv_ld_force_load+:} false; then :
9104 $as_echo_n "(cached) " >&6
9105 else
9106 lt_cv_ld_force_load=no
9107 cat > conftest.c << _LT_EOF
9108 int forced_loaded() { return 2;}
9109 _LT_EOF
9110 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9111 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9112 echo "$AR cru libconftest.a conftest.o" >&5
9113 $AR cru libconftest.a conftest.o 2>&5
9114 cat > conftest.c << _LT_EOF
9115 int main() { return 0;}
9116 _LT_EOF
9117 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9118 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9119 _lt_result=$?
9120 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9121 lt_cv_ld_force_load=yes
9122 else
9123 cat conftest.err >&5
9124 fi
9125 rm -f conftest.err libconftest.a conftest conftest.c
9126 rm -rf conftest.dSYM
9127
9128 fi
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9130 $as_echo "$lt_cv_ld_force_load" >&6; }
9131 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
9132 # build without first building modern cctools / linker.
9133 case $host_cpu-$host_os in
9134 *-rhapsody* | *-darwin1.[012])
9135 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9136 *-darwin1.*)
9137 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9138 *-darwin*)
9139 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
9140 # deployment target is forced to an earlier version.
9141 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
9142 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
9143 ;;
9144 10.[012][,.]*)
9145 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9146 ;;
9147 *)
9148 ;;
9149 esac
9150 ;;
9151 esac
9152 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9153 _lt_dar_single_mod='$single_module'
9154 fi
9155 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9156 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9157 else
9158 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9159 fi
9160 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9161 _lt_dsymutil='~$DSYMUTIL $lib || :'
9162 else
9163 _lt_dsymutil=
9164 fi
9165 ;;
9166 esac
9167
9168 for ac_header in dlfcn.h
9169 do :
9170 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9171 "
9172 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9173 cat >>confdefs.h <<_ACEOF
9174 #define HAVE_DLFCN_H 1
9175 _ACEOF
9176
9177 fi
9178
9179 done
9180
9181
9182
9183
9184
9185
9186 # Set options
9187
9188
9189
9190 enable_dlopen=no
9191
9192
9193 enable_win32_dll=no
9194
9195
9196 # Check whether --enable-shared was given.
9197 if test "${enable_shared+set}" = set; then :
9198 enableval=$enable_shared; p=${PACKAGE-default}
9199 case $enableval in
9200 yes) enable_shared=yes ;;
9201 no) enable_shared=no ;;
9202 *)
9203 enable_shared=no
9204 # Look at the argument we got. We use all the common list separators.
9205 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9206 for pkg in $enableval; do
9207 IFS="$lt_save_ifs"
9208 if test "X$pkg" = "X$p"; then
9209 enable_shared=yes
9210 fi
9211 done
9212 IFS="$lt_save_ifs"
9213 ;;
9214 esac
9215 else
9216 enable_shared=yes
9217 fi
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227 # Check whether --enable-static was given.
9228 if test "${enable_static+set}" = set; then :
9229 enableval=$enable_static; p=${PACKAGE-default}
9230 case $enableval in
9231 yes) enable_static=yes ;;
9232 no) enable_static=no ;;
9233 *)
9234 enable_static=no
9235 # Look at the argument we got. We use all the common list separators.
9236 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9237 for pkg in $enableval; do
9238 IFS="$lt_save_ifs"
9239 if test "X$pkg" = "X$p"; then
9240 enable_static=yes
9241 fi
9242 done
9243 IFS="$lt_save_ifs"
9244 ;;
9245 esac
9246 else
9247 enable_static=yes
9248 fi
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259 # Check whether --with-pic was given.
9260 if test "${with_pic+set}" = set; then :
9261 withval=$with_pic; pic_mode="$withval"
9262 else
9263 pic_mode=default
9264 fi
9265
9266
9267 test -z "$pic_mode" && pic_mode=default
9268
9269
9270
9271
9272
9273
9274
9275 # Check whether --enable-fast-install was given.
9276 if test "${enable_fast_install+set}" = set; then :
9277 enableval=$enable_fast_install; p=${PACKAGE-default}
9278 case $enableval in
9279 yes) enable_fast_install=yes ;;
9280 no) enable_fast_install=no ;;
9281 *)
9282 enable_fast_install=no
9283 # Look at the argument we got. We use all the common list separators.
9284 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9285 for pkg in $enableval; do
9286 IFS="$lt_save_ifs"
9287 if test "X$pkg" = "X$p"; then
9288 enable_fast_install=yes
9289 fi
9290 done
9291 IFS="$lt_save_ifs"
9292 ;;
9293 esac
9294 else
9295 enable_fast_install=yes
9296 fi
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308 # This can be used to rebuild libtool when needed
9309 LIBTOOL_DEPS="$ltmain"
9310
9311 # Always use our own libtool.
9312 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339 test -z "$LN_S" && LN_S="ln -s"
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354 if test -n "${ZSH_VERSION+set}" ; then
9355 setopt NO_GLOB_SUBST
9356 fi
9357
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9359 $as_echo_n "checking for objdir... " >&6; }
9360 if ${lt_cv_objdir+:} false; then :
9361 $as_echo_n "(cached) " >&6
9362 else
9363 rm -f .libs 2>/dev/null
9364 mkdir .libs 2>/dev/null
9365 if test -d .libs; then
9366 lt_cv_objdir=.libs
9367 else
9368 # MS-DOS does not allow filenames that begin with a dot.
9369 lt_cv_objdir=_libs
9370 fi
9371 rmdir .libs 2>/dev/null
9372 fi
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9374 $as_echo "$lt_cv_objdir" >&6; }
9375 objdir=$lt_cv_objdir
9376
9377
9378
9379
9380
9381 cat >>confdefs.h <<_ACEOF
9382 #define LT_OBJDIR "$lt_cv_objdir/"
9383 _ACEOF
9384
9385
9386
9387
9388 case $host_os in
9389 aix3*)
9390 # AIX sometimes has problems with the GCC collect2 program. For some
9391 # reason, if we set the COLLECT_NAMES environment variable, the problems
9392 # vanish in a puff of smoke.
9393 if test "X${COLLECT_NAMES+set}" != Xset; then
9394 COLLECT_NAMES=
9395 export COLLECT_NAMES
9396 fi
9397 ;;
9398 esac
9399
9400 # Global variables:
9401 ofile=libtool
9402 can_build_shared=yes
9403
9404 # All known linkers require a `.a' archive for static linking (except MSVC,
9405 # which needs '.lib').
9406 libext=a
9407
9408 with_gnu_ld="$lt_cv_prog_gnu_ld"
9409
9410 old_CC="$CC"
9411 old_CFLAGS="$CFLAGS"
9412
9413 # Set sane defaults for various variables
9414 test -z "$CC" && CC=cc
9415 test -z "$LTCC" && LTCC=$CC
9416 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9417 test -z "$LD" && LD=ld
9418 test -z "$ac_objext" && ac_objext=o
9419
9420 for cc_temp in $compiler""; do
9421 case $cc_temp in
9422 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9423 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9424 \-*) ;;
9425 *) break;;
9426 esac
9427 done
9428 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9429
9430
9431 # Only perform the check for file, if the check method requires it
9432 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9433 case $deplibs_check_method in
9434 file_magic*)
9435 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9437 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9438 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 case $MAGIC_CMD in
9442 [\\/*] | ?:[\\/]*)
9443 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9444 ;;
9445 *)
9446 lt_save_MAGIC_CMD="$MAGIC_CMD"
9447 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9448 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9449 for ac_dir in $ac_dummy; do
9450 IFS="$lt_save_ifs"
9451 test -z "$ac_dir" && ac_dir=.
9452 if test -f $ac_dir/${ac_tool_prefix}file; then
9453 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9454 if test -n "$file_magic_test_file"; then
9455 case $deplibs_check_method in
9456 "file_magic "*)
9457 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9458 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9459 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9460 $EGREP "$file_magic_regex" > /dev/null; then
9461 :
9462 else
9463 cat <<_LT_EOF 1>&2
9464
9465 *** Warning: the command libtool uses to detect shared libraries,
9466 *** $file_magic_cmd, produces output that libtool cannot recognize.
9467 *** The result is that libtool may fail to recognize shared libraries
9468 *** as such. This will affect the creation of libtool libraries that
9469 *** depend on shared libraries, but programs linked with such libtool
9470 *** libraries will work regardless of this problem. Nevertheless, you
9471 *** may want to report the problem to your system manager and/or to
9472 *** bug-libtool@gnu.org
9473
9474 _LT_EOF
9475 fi ;;
9476 esac
9477 fi
9478 break
9479 fi
9480 done
9481 IFS="$lt_save_ifs"
9482 MAGIC_CMD="$lt_save_MAGIC_CMD"
9483 ;;
9484 esac
9485 fi
9486
9487 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9488 if test -n "$MAGIC_CMD"; then
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9490 $as_echo "$MAGIC_CMD" >&6; }
9491 else
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493 $as_echo "no" >&6; }
9494 fi
9495
9496
9497
9498
9499
9500 if test -z "$lt_cv_path_MAGIC_CMD"; then
9501 if test -n "$ac_tool_prefix"; then
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9503 $as_echo_n "checking for file... " >&6; }
9504 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9505 $as_echo_n "(cached) " >&6
9506 else
9507 case $MAGIC_CMD in
9508 [\\/*] | ?:[\\/]*)
9509 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9510 ;;
9511 *)
9512 lt_save_MAGIC_CMD="$MAGIC_CMD"
9513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9514 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9515 for ac_dir in $ac_dummy; do
9516 IFS="$lt_save_ifs"
9517 test -z "$ac_dir" && ac_dir=.
9518 if test -f $ac_dir/file; then
9519 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9520 if test -n "$file_magic_test_file"; then
9521 case $deplibs_check_method in
9522 "file_magic "*)
9523 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9525 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9526 $EGREP "$file_magic_regex" > /dev/null; then
9527 :
9528 else
9529 cat <<_LT_EOF 1>&2
9530
9531 *** Warning: the command libtool uses to detect shared libraries,
9532 *** $file_magic_cmd, produces output that libtool cannot recognize.
9533 *** The result is that libtool may fail to recognize shared libraries
9534 *** as such. This will affect the creation of libtool libraries that
9535 *** depend on shared libraries, but programs linked with such libtool
9536 *** libraries will work regardless of this problem. Nevertheless, you
9537 *** may want to report the problem to your system manager and/or to
9538 *** bug-libtool@gnu.org
9539
9540 _LT_EOF
9541 fi ;;
9542 esac
9543 fi
9544 break
9545 fi
9546 done
9547 IFS="$lt_save_ifs"
9548 MAGIC_CMD="$lt_save_MAGIC_CMD"
9549 ;;
9550 esac
9551 fi
9552
9553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9554 if test -n "$MAGIC_CMD"; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9556 $as_echo "$MAGIC_CMD" >&6; }
9557 else
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559 $as_echo "no" >&6; }
9560 fi
9561
9562
9563 else
9564 MAGIC_CMD=:
9565 fi
9566 fi
9567
9568 fi
9569 ;;
9570 esac
9571
9572 # Use C for the default configuration in the libtool script
9573
9574 lt_save_CC="$CC"
9575 ac_ext=c
9576 ac_cpp='$CPP $CPPFLAGS'
9577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9580
9581
9582 # Source file extension for C test sources.
9583 ac_ext=c
9584
9585 # Object file extension for compiled C test sources.
9586 objext=o
9587 objext=$objext
9588
9589 # Code to be used in simple compile tests
9590 lt_simple_compile_test_code="int some_variable = 0;"
9591
9592 # Code to be used in simple link tests
9593 lt_simple_link_test_code='int main(){return(0);}'
9594
9595
9596
9597
9598
9599
9600
9601 # If no C compiler was specified, use CC.
9602 LTCC=${LTCC-"$CC"}
9603
9604 # If no C compiler flags were specified, use CFLAGS.
9605 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9606
9607 # Allow CC to be a program name with arguments.
9608 compiler=$CC
9609
9610 # Save the default compiler, since it gets overwritten when the other
9611 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9612 compiler_DEFAULT=$CC
9613
9614 # save warnings/boilerplate of simple test code
9615 ac_outfile=conftest.$ac_objext
9616 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9617 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9618 _lt_compiler_boilerplate=`cat conftest.err`
9619 $RM conftest*
9620
9621 ac_outfile=conftest.$ac_objext
9622 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9623 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9624 _lt_linker_boilerplate=`cat conftest.err`
9625 $RM -r conftest*
9626
9627
9628 ## CAVEAT EMPTOR:
9629 ## There is no encapsulation within the following macros, do not change
9630 ## the running order or otherwise move them around unless you know exactly
9631 ## what you are doing...
9632 if test -n "$compiler"; then
9633
9634 lt_prog_compiler_no_builtin_flag=
9635
9636 if test "$GCC" = yes; then
9637 case $cc_basename in
9638 nvcc*)
9639 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9640 *)
9641 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9642 esac
9643
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9645 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9646 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9647 $as_echo_n "(cached) " >&6
9648 else
9649 lt_cv_prog_compiler_rtti_exceptions=no
9650 ac_outfile=conftest.$ac_objext
9651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9652 lt_compiler_flag="-fno-rtti -fno-exceptions"
9653 # Insert the option either (1) after the last *FLAGS variable, or
9654 # (2) before a word containing "conftest.", or (3) at the end.
9655 # Note that $ac_compile itself does not contain backslashes and begins
9656 # with a dollar sign (not a hyphen), so the echo should work correctly.
9657 # The option is referenced via a variable to avoid confusing sed.
9658 lt_compile=`echo "$ac_compile" | $SED \
9659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9661 -e 's:$: $lt_compiler_flag:'`
9662 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9663 (eval "$lt_compile" 2>conftest.err)
9664 ac_status=$?
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 if (exit $ac_status) && test -s "$ac_outfile"; then
9668 # The compiler can only warn and ignore the option if not recognized
9669 # So say no if there are warnings other than the usual output.
9670 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9672 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9673 lt_cv_prog_compiler_rtti_exceptions=yes
9674 fi
9675 fi
9676 $RM conftest*
9677
9678 fi
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9680 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9681
9682 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9683 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9684 else
9685 :
9686 fi
9687
9688 fi
9689
9690
9691
9692
9693
9694
9695 lt_prog_compiler_wl=
9696 lt_prog_compiler_pic=
9697 lt_prog_compiler_static=
9698
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9700 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9701
9702 if test "$GCC" = yes; then
9703 lt_prog_compiler_wl='-Wl,'
9704 lt_prog_compiler_static='-static'
9705
9706 case $host_os in
9707 aix*)
9708 # All AIX code is PIC.
9709 if test "$host_cpu" = ia64; then
9710 # AIX 5 now supports IA64 processor
9711 lt_prog_compiler_static='-Bstatic'
9712 fi
9713 lt_prog_compiler_pic='-fPIC'
9714 ;;
9715
9716 amigaos*)
9717 case $host_cpu in
9718 powerpc)
9719 # see comment about AmigaOS4 .so support
9720 lt_prog_compiler_pic='-fPIC'
9721 ;;
9722 m68k)
9723 # FIXME: we need at least 68020 code to build shared libraries, but
9724 # adding the `-m68020' flag to GCC prevents building anything better,
9725 # like `-m68040'.
9726 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9727 ;;
9728 esac
9729 ;;
9730
9731 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9732 # PIC is the default for these OSes.
9733 ;;
9734
9735 mingw* | cygwin* | pw32* | os2* | cegcc*)
9736 # This hack is so that the source file can tell whether it is being
9737 # built for inclusion in a dll (and should export symbols for example).
9738 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9739 # (--disable-auto-import) libraries
9740 lt_prog_compiler_pic='-DDLL_EXPORT'
9741 ;;
9742
9743 darwin* | rhapsody*)
9744 # PIC is the default on this platform
9745 # Common symbols not allowed in MH_DYLIB files
9746 lt_prog_compiler_pic='-fno-common'
9747 ;;
9748
9749 haiku*)
9750 # PIC is the default for Haiku.
9751 # The "-static" flag exists, but is broken.
9752 lt_prog_compiler_static=
9753 ;;
9754
9755 hpux*)
9756 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9757 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9758 # sets the default TLS model and affects inlining.
9759 case $host_cpu in
9760 hppa*64*)
9761 # +Z the default
9762 ;;
9763 *)
9764 lt_prog_compiler_pic='-fPIC'
9765 ;;
9766 esac
9767 ;;
9768
9769 interix[3-9]*)
9770 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9771 # Instead, we relocate shared libraries at runtime.
9772 ;;
9773
9774 msdosdjgpp*)
9775 # Just because we use GCC doesn't mean we suddenly get shared libraries
9776 # on systems that don't support them.
9777 lt_prog_compiler_can_build_shared=no
9778 enable_shared=no
9779 ;;
9780
9781 *nto* | *qnx*)
9782 # QNX uses GNU C++, but need to define -shared option too, otherwise
9783 # it will coredump.
9784 lt_prog_compiler_pic='-fPIC -shared'
9785 ;;
9786
9787 sysv4*MP*)
9788 if test -d /usr/nec; then
9789 lt_prog_compiler_pic=-Kconform_pic
9790 fi
9791 ;;
9792
9793 *)
9794 lt_prog_compiler_pic='-fPIC'
9795 ;;
9796 esac
9797
9798 case $cc_basename in
9799 nvcc*) # Cuda Compiler Driver 2.2
9800 lt_prog_compiler_wl='-Xlinker '
9801 lt_prog_compiler_pic='-Xcompiler -fPIC'
9802 ;;
9803 esac
9804 else
9805 # PORTME Check for flag to pass linker flags through the system compiler.
9806 case $host_os in
9807 aix*)
9808 lt_prog_compiler_wl='-Wl,'
9809 if test "$host_cpu" = ia64; then
9810 # AIX 5 now supports IA64 processor
9811 lt_prog_compiler_static='-Bstatic'
9812 else
9813 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9814 fi
9815 ;;
9816
9817 mingw* | cygwin* | pw32* | os2* | cegcc*)
9818 # This hack is so that the source file can tell whether it is being
9819 # built for inclusion in a dll (and should export symbols for example).
9820 lt_prog_compiler_pic='-DDLL_EXPORT'
9821 ;;
9822
9823 hpux9* | hpux10* | hpux11*)
9824 lt_prog_compiler_wl='-Wl,'
9825 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9826 # not for PA HP-UX.
9827 case $host_cpu in
9828 hppa*64*|ia64*)
9829 # +Z the default
9830 ;;
9831 *)
9832 lt_prog_compiler_pic='+Z'
9833 ;;
9834 esac
9835 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9836 lt_prog_compiler_static='${wl}-a ${wl}archive'
9837 ;;
9838
9839 irix5* | irix6* | nonstopux*)
9840 lt_prog_compiler_wl='-Wl,'
9841 # PIC (with -KPIC) is the default.
9842 lt_prog_compiler_static='-non_shared'
9843 ;;
9844
9845 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9846 case $cc_basename in
9847 # old Intel for x86_64 which still supported -KPIC.
9848 ecc*)
9849 lt_prog_compiler_wl='-Wl,'
9850 lt_prog_compiler_pic='-KPIC'
9851 lt_prog_compiler_static='-static'
9852 ;;
9853 # icc used to be incompatible with GCC.
9854 # ICC 10 doesn't accept -KPIC any more.
9855 icc* | ifort*)
9856 lt_prog_compiler_wl='-Wl,'
9857 lt_prog_compiler_pic='-fPIC'
9858 lt_prog_compiler_static='-static'
9859 ;;
9860 # Lahey Fortran 8.1.
9861 lf95*)
9862 lt_prog_compiler_wl='-Wl,'
9863 lt_prog_compiler_pic='--shared'
9864 lt_prog_compiler_static='--static'
9865 ;;
9866 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9867 # Portland Group compilers (*not* the Pentium gcc compiler,
9868 # which looks to be a dead project)
9869 lt_prog_compiler_wl='-Wl,'
9870 lt_prog_compiler_pic='-fpic'
9871 lt_prog_compiler_static='-Bstatic'
9872 ;;
9873 ccc*)
9874 lt_prog_compiler_wl='-Wl,'
9875 # All Alpha code is PIC.
9876 lt_prog_compiler_static='-non_shared'
9877 ;;
9878 xl* | bgxl* | bgf* | mpixl*)
9879 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9880 lt_prog_compiler_wl='-Wl,'
9881 lt_prog_compiler_pic='-qpic'
9882 lt_prog_compiler_static='-qstaticlink'
9883 ;;
9884 *)
9885 case `$CC -V 2>&1 | sed 5q` in
9886 *Sun\ F* | *Sun*Fortran*)
9887 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9888 lt_prog_compiler_pic='-KPIC'
9889 lt_prog_compiler_static='-Bstatic'
9890 lt_prog_compiler_wl=''
9891 ;;
9892 *Sun\ C*)
9893 # Sun C 5.9
9894 lt_prog_compiler_pic='-KPIC'
9895 lt_prog_compiler_static='-Bstatic'
9896 lt_prog_compiler_wl='-Wl,'
9897 ;;
9898 esac
9899 ;;
9900 esac
9901 ;;
9902
9903 newsos6)
9904 lt_prog_compiler_pic='-KPIC'
9905 lt_prog_compiler_static='-Bstatic'
9906 ;;
9907
9908 *nto* | *qnx*)
9909 # QNX uses GNU C++, but need to define -shared option too, otherwise
9910 # it will coredump.
9911 lt_prog_compiler_pic='-fPIC -shared'
9912 ;;
9913
9914 osf3* | osf4* | osf5*)
9915 lt_prog_compiler_wl='-Wl,'
9916 # All OSF/1 code is PIC.
9917 lt_prog_compiler_static='-non_shared'
9918 ;;
9919
9920 rdos*)
9921 lt_prog_compiler_static='-non_shared'
9922 ;;
9923
9924 solaris*)
9925 lt_prog_compiler_pic='-KPIC'
9926 lt_prog_compiler_static='-Bstatic'
9927 case $cc_basename in
9928 f77* | f90* | f95*)
9929 lt_prog_compiler_wl='-Qoption ld ';;
9930 *)
9931 lt_prog_compiler_wl='-Wl,';;
9932 esac
9933 ;;
9934
9935 sunos4*)
9936 lt_prog_compiler_wl='-Qoption ld '
9937 lt_prog_compiler_pic='-PIC'
9938 lt_prog_compiler_static='-Bstatic'
9939 ;;
9940
9941 sysv4 | sysv4.2uw2* | sysv4.3*)
9942 lt_prog_compiler_wl='-Wl,'
9943 lt_prog_compiler_pic='-KPIC'
9944 lt_prog_compiler_static='-Bstatic'
9945 ;;
9946
9947 sysv4*MP*)
9948 if test -d /usr/nec ;then
9949 lt_prog_compiler_pic='-Kconform_pic'
9950 lt_prog_compiler_static='-Bstatic'
9951 fi
9952 ;;
9953
9954 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9955 lt_prog_compiler_wl='-Wl,'
9956 lt_prog_compiler_pic='-KPIC'
9957 lt_prog_compiler_static='-Bstatic'
9958 ;;
9959
9960 unicos*)
9961 lt_prog_compiler_wl='-Wl,'
9962 lt_prog_compiler_can_build_shared=no
9963 ;;
9964
9965 uts4*)
9966 lt_prog_compiler_pic='-pic'
9967 lt_prog_compiler_static='-Bstatic'
9968 ;;
9969
9970 *)
9971 lt_prog_compiler_can_build_shared=no
9972 ;;
9973 esac
9974 fi
9975
9976 case $host_os in
9977 # For platforms which do not support PIC, -DPIC is meaningless:
9978 *djgpp*)
9979 lt_prog_compiler_pic=
9980 ;;
9981 *)
9982 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9983 ;;
9984 esac
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9986 $as_echo "$lt_prog_compiler_pic" >&6; }
9987
9988
9989
9990
9991
9992
9993 #
9994 # Check to make sure the PIC flag actually works.
9995 #
9996 if test -n "$lt_prog_compiler_pic"; then
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9998 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9999 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002 lt_cv_prog_compiler_pic_works=no
10003 ac_outfile=conftest.$ac_objext
10004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10005 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10006 # Insert the option either (1) after the last *FLAGS variable, or
10007 # (2) before a word containing "conftest.", or (3) at the end.
10008 # Note that $ac_compile itself does not contain backslashes and begins
10009 # with a dollar sign (not a hyphen), so the echo should work correctly.
10010 # The option is referenced via a variable to avoid confusing sed.
10011 lt_compile=`echo "$ac_compile" | $SED \
10012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10014 -e 's:$: $lt_compiler_flag:'`
10015 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10016 (eval "$lt_compile" 2>conftest.err)
10017 ac_status=$?
10018 cat conftest.err >&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 if (exit $ac_status) && test -s "$ac_outfile"; then
10021 # The compiler can only warn and ignore the option if not recognized
10022 # So say no if there are warnings other than the usual output.
10023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10025 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10026 lt_cv_prog_compiler_pic_works=yes
10027 fi
10028 fi
10029 $RM conftest*
10030
10031 fi
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10033 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10034
10035 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10036 case $lt_prog_compiler_pic in
10037 "" | " "*) ;;
10038 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10039 esac
10040 else
10041 lt_prog_compiler_pic=
10042 lt_prog_compiler_can_build_shared=no
10043 fi
10044
10045 fi
10046
10047
10048
10049
10050
10051
10052 #
10053 # Check to make sure the static flag actually works.
10054 #
10055 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10057 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10058 if ${lt_cv_prog_compiler_static_works+:} false; then :
10059 $as_echo_n "(cached) " >&6
10060 else
10061 lt_cv_prog_compiler_static_works=no
10062 save_LDFLAGS="$LDFLAGS"
10063 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10064 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10065 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10066 # The linker can only warn and ignore the option if not recognized
10067 # So say no if there are warnings
10068 if test -s conftest.err; then
10069 # Append any errors to the config.log.
10070 cat conftest.err 1>&5
10071 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10073 if diff conftest.exp conftest.er2 >/dev/null; then
10074 lt_cv_prog_compiler_static_works=yes
10075 fi
10076 else
10077 lt_cv_prog_compiler_static_works=yes
10078 fi
10079 fi
10080 $RM -r conftest*
10081 LDFLAGS="$save_LDFLAGS"
10082
10083 fi
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10085 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10086
10087 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10088 :
10089 else
10090 lt_prog_compiler_static=
10091 fi
10092
10093
10094
10095
10096
10097
10098
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10100 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10101 if ${lt_cv_prog_compiler_c_o+:} false; then :
10102 $as_echo_n "(cached) " >&6
10103 else
10104 lt_cv_prog_compiler_c_o=no
10105 $RM -r conftest 2>/dev/null
10106 mkdir conftest
10107 cd conftest
10108 mkdir out
10109 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10110
10111 lt_compiler_flag="-o out/conftest2.$ac_objext"
10112 # Insert the option either (1) after the last *FLAGS variable, or
10113 # (2) before a word containing "conftest.", or (3) at the end.
10114 # Note that $ac_compile itself does not contain backslashes and begins
10115 # with a dollar sign (not a hyphen), so the echo should work correctly.
10116 lt_compile=`echo "$ac_compile" | $SED \
10117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10119 -e 's:$: $lt_compiler_flag:'`
10120 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10121 (eval "$lt_compile" 2>out/conftest.err)
10122 ac_status=$?
10123 cat out/conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10126 then
10127 # The compiler can only warn and ignore the option if not recognized
10128 # So say no if there are warnings
10129 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10130 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10131 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10132 lt_cv_prog_compiler_c_o=yes
10133 fi
10134 fi
10135 chmod u+w . 2>&5
10136 $RM conftest*
10137 # SGI C++ compiler will create directory out/ii_files/ for
10138 # template instantiation
10139 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10140 $RM out/* && rmdir out
10141 cd ..
10142 $RM -r conftest
10143 $RM conftest*
10144
10145 fi
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10147 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10148
10149
10150
10151
10152
10153
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10155 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10156 if ${lt_cv_prog_compiler_c_o+:} false; then :
10157 $as_echo_n "(cached) " >&6
10158 else
10159 lt_cv_prog_compiler_c_o=no
10160 $RM -r conftest 2>/dev/null
10161 mkdir conftest
10162 cd conftest
10163 mkdir out
10164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10165
10166 lt_compiler_flag="-o out/conftest2.$ac_objext"
10167 # Insert the option either (1) after the last *FLAGS variable, or
10168 # (2) before a word containing "conftest.", or (3) at the end.
10169 # Note that $ac_compile itself does not contain backslashes and begins
10170 # with a dollar sign (not a hyphen), so the echo should work correctly.
10171 lt_compile=`echo "$ac_compile" | $SED \
10172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10174 -e 's:$: $lt_compiler_flag:'`
10175 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10176 (eval "$lt_compile" 2>out/conftest.err)
10177 ac_status=$?
10178 cat out/conftest.err >&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10181 then
10182 # The compiler can only warn and ignore the option if not recognized
10183 # So say no if there are warnings
10184 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10185 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10186 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10187 lt_cv_prog_compiler_c_o=yes
10188 fi
10189 fi
10190 chmod u+w . 2>&5
10191 $RM conftest*
10192 # SGI C++ compiler will create directory out/ii_files/ for
10193 # template instantiation
10194 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10195 $RM out/* && rmdir out
10196 cd ..
10197 $RM -r conftest
10198 $RM conftest*
10199
10200 fi
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10202 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10203
10204
10205
10206
10207 hard_links="nottested"
10208 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10209 # do not overwrite the value of need_locks provided by the user
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10211 $as_echo_n "checking if we can lock with hard links... " >&6; }
10212 hard_links=yes
10213 $RM conftest*
10214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10215 touch conftest.a
10216 ln conftest.a conftest.b 2>&5 || hard_links=no
10217 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10219 $as_echo "$hard_links" >&6; }
10220 if test "$hard_links" = no; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10222 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10223 need_locks=warn
10224 fi
10225 else
10226 need_locks=no
10227 fi
10228
10229
10230
10231
10232
10233
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10235 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10236
10237 runpath_var=
10238 allow_undefined_flag=
10239 always_export_symbols=no
10240 archive_cmds=
10241 archive_expsym_cmds=
10242 compiler_needs_object=no
10243 enable_shared_with_static_runtimes=no
10244 export_dynamic_flag_spec=
10245 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10246 hardcode_automatic=no
10247 hardcode_direct=no
10248 hardcode_direct_absolute=no
10249 hardcode_libdir_flag_spec=
10250 hardcode_libdir_flag_spec_ld=
10251 hardcode_libdir_separator=
10252 hardcode_minus_L=no
10253 hardcode_shlibpath_var=unsupported
10254 inherit_rpath=no
10255 link_all_deplibs=unknown
10256 module_cmds=
10257 module_expsym_cmds=
10258 old_archive_from_new_cmds=
10259 old_archive_from_expsyms_cmds=
10260 thread_safe_flag_spec=
10261 whole_archive_flag_spec=
10262 # include_expsyms should be a list of space-separated symbols to be *always*
10263 # included in the symbol list
10264 include_expsyms=
10265 # exclude_expsyms can be an extended regexp of symbols to exclude
10266 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10267 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10268 # as well as any symbol that contains `d'.
10269 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10270 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10271 # platforms (ab)use it in PIC code, but their linkers get confused if
10272 # the symbol is explicitly referenced. Since portable code cannot
10273 # rely on this symbol name, it's probably fine to never include it in
10274 # preloaded symbol tables.
10275 # Exclude shared library initialization/finalization symbols.
10276 extract_expsyms_cmds=
10277
10278 case $host_os in
10279 cygwin* | mingw* | pw32* | cegcc*)
10280 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10281 # When not using gcc, we currently assume that we are using
10282 # Microsoft Visual C++.
10283 if test "$GCC" != yes; then
10284 with_gnu_ld=no
10285 fi
10286 ;;
10287 interix*)
10288 # we just hope/assume this is gcc and not c89 (= MSVC++)
10289 with_gnu_ld=yes
10290 ;;
10291 openbsd*)
10292 with_gnu_ld=no
10293 ;;
10294 esac
10295
10296 ld_shlibs=yes
10297
10298 # On some targets, GNU ld is compatible enough with the native linker
10299 # that we're better off using the native interface for both.
10300 lt_use_gnu_ld_interface=no
10301 if test "$with_gnu_ld" = yes; then
10302 case $host_os in
10303 aix*)
10304 # The AIX port of GNU ld has always aspired to compatibility
10305 # with the native linker. However, as the warning in the GNU ld
10306 # block says, versions before 2.19.5* couldn't really create working
10307 # shared libraries, regardless of the interface used.
10308 case `$LD -v 2>&1` in
10309 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10310 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10311 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10312 *)
10313 lt_use_gnu_ld_interface=yes
10314 ;;
10315 esac
10316 ;;
10317 *)
10318 lt_use_gnu_ld_interface=yes
10319 ;;
10320 esac
10321 fi
10322
10323 if test "$lt_use_gnu_ld_interface" = yes; then
10324 # If archive_cmds runs LD, not CC, wlarc should be empty
10325 wlarc='${wl}'
10326
10327 # Set some defaults for GNU ld with shared library support. These
10328 # are reset later if shared libraries are not supported. Putting them
10329 # here allows them to be overridden if necessary.
10330 runpath_var=LD_RUN_PATH
10331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10332 export_dynamic_flag_spec='${wl}--export-dynamic'
10333 # ancient GNU ld didn't support --whole-archive et. al.
10334 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10335 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10336 else
10337 whole_archive_flag_spec=
10338 fi
10339 supports_anon_versioning=no
10340 case `$LD -v 2>&1` in
10341 *GNU\ gold*) supports_anon_versioning=yes ;;
10342 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10343 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10344 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10345 *\ 2.11.*) ;; # other 2.11 versions
10346 *) supports_anon_versioning=yes ;;
10347 esac
10348
10349 # See if GNU ld supports shared libraries.
10350 case $host_os in
10351 aix[3-9]*)
10352 # On AIX/PPC, the GNU linker is very broken
10353 if test "$host_cpu" != ia64; then
10354 ld_shlibs=no
10355 cat <<_LT_EOF 1>&2
10356
10357 *** Warning: the GNU linker, at least up to release 2.19, is reported
10358 *** to be unable to reliably create shared libraries on AIX.
10359 *** Therefore, libtool is disabling shared libraries support. If you
10360 *** really care for shared libraries, you may want to install binutils
10361 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10362 *** You will then need to restart the configuration process.
10363
10364 _LT_EOF
10365 fi
10366 ;;
10367
10368 amigaos*)
10369 case $host_cpu in
10370 powerpc)
10371 # see comment about AmigaOS4 .so support
10372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10373 archive_expsym_cmds=''
10374 ;;
10375 m68k)
10376 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)'
10377 hardcode_libdir_flag_spec='-L$libdir'
10378 hardcode_minus_L=yes
10379 ;;
10380 esac
10381 ;;
10382
10383 beos*)
10384 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10385 allow_undefined_flag=unsupported
10386 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10387 # support --undefined. This deserves some investigation. FIXME
10388 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10389 else
10390 ld_shlibs=no
10391 fi
10392 ;;
10393
10394 cygwin* | mingw* | pw32* | cegcc*)
10395 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10396 # as there is no search path for DLLs.
10397 hardcode_libdir_flag_spec='-L$libdir'
10398 export_dynamic_flag_spec='${wl}--export-all-symbols'
10399 allow_undefined_flag=unsupported
10400 always_export_symbols=no
10401 enable_shared_with_static_runtimes=yes
10402 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10403
10404 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10406 # If the export-symbols file already is a .def file (1st line
10407 # is EXPORTS), use it as is; otherwise, prepend...
10408 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10409 cp $export_symbols $output_objdir/$soname.def;
10410 else
10411 echo EXPORTS > $output_objdir/$soname.def;
10412 cat $export_symbols >> $output_objdir/$soname.def;
10413 fi~
10414 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10415 else
10416 ld_shlibs=no
10417 fi
10418 ;;
10419
10420 haiku*)
10421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10422 link_all_deplibs=yes
10423 ;;
10424
10425 interix[3-9]*)
10426 hardcode_direct=no
10427 hardcode_shlibpath_var=no
10428 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10429 export_dynamic_flag_spec='${wl}-E'
10430 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10431 # Instead, shared libraries are loaded at an image base (0x10000000 by
10432 # default) and relocated if they conflict, which is a slow very memory
10433 # consuming and fragmenting process. To avoid this, we pick a random,
10434 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10435 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10436 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10437 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'
10438 ;;
10439
10440 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10441 tmp_diet=no
10442 if test "$host_os" = linux-dietlibc; then
10443 case $cc_basename in
10444 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10445 esac
10446 fi
10447 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10448 && test "$tmp_diet" = no
10449 then
10450 tmp_addflag=' $pic_flag'
10451 tmp_sharedflag='-shared'
10452 case $cc_basename,$host_cpu in
10453 pgcc*) # Portland Group C compiler
10454 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'
10455 tmp_addflag=' $pic_flag'
10456 ;;
10457 pgf77* | pgf90* | pgf95* | pgfortran*)
10458 # Portland Group f77 and f90 compilers
10459 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'
10460 tmp_addflag=' $pic_flag -Mnomain' ;;
10461 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10462 tmp_addflag=' -i_dynamic' ;;
10463 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10464 tmp_addflag=' -i_dynamic -nofor_main' ;;
10465 ifc* | ifort*) # Intel Fortran compiler
10466 tmp_addflag=' -nofor_main' ;;
10467 lf95*) # Lahey Fortran 8.1
10468 whole_archive_flag_spec=
10469 tmp_sharedflag='--shared' ;;
10470 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10471 tmp_sharedflag='-qmkshrobj'
10472 tmp_addflag= ;;
10473 nvcc*) # Cuda Compiler Driver 2.2
10474 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'
10475 compiler_needs_object=yes
10476 ;;
10477 esac
10478 case `$CC -V 2>&1 | sed 5q` in
10479 *Sun\ C*) # Sun C 5.9
10480 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'
10481 compiler_needs_object=yes
10482 tmp_sharedflag='-G' ;;
10483 *Sun\ F*) # Sun Fortran 8.3
10484 tmp_sharedflag='-G' ;;
10485 esac
10486 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10487
10488 if test "x$supports_anon_versioning" = xyes; then
10489 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10490 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10491 echo "local: *; };" >> $output_objdir/$libname.ver~
10492 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10493 fi
10494
10495 case $cc_basename in
10496 xlf* | bgf* | bgxlf* | mpixlf*)
10497 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10498 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10499 hardcode_libdir_flag_spec=
10500 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10501 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10502 if test "x$supports_anon_versioning" = xyes; then
10503 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10504 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10505 echo "local: *; };" >> $output_objdir/$libname.ver~
10506 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10507 fi
10508 ;;
10509 esac
10510 else
10511 ld_shlibs=no
10512 fi
10513 ;;
10514
10515 netbsd*)
10516 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10517 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10518 wlarc=
10519 else
10520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10521 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10522 fi
10523 ;;
10524
10525 solaris*)
10526 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10527 ld_shlibs=no
10528 cat <<_LT_EOF 1>&2
10529
10530 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10531 *** create shared libraries on Solaris systems. Therefore, libtool
10532 *** is disabling shared libraries support. We urge you to upgrade GNU
10533 *** binutils to release 2.9.1 or newer. Another option is to modify
10534 *** your PATH or compiler configuration so that the native linker is
10535 *** used, and then restart.
10536
10537 _LT_EOF
10538 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10540 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10541 else
10542 ld_shlibs=no
10543 fi
10544 ;;
10545
10546 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10547 case `$LD -v 2>&1` in
10548 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10549 ld_shlibs=no
10550 cat <<_LT_EOF 1>&2
10551
10552 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10553 *** reliably create shared libraries on SCO systems. Therefore, libtool
10554 *** is disabling shared libraries support. We urge you to upgrade GNU
10555 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10556 *** your PATH or compiler configuration so that the native linker is
10557 *** used, and then restart.
10558
10559 _LT_EOF
10560 ;;
10561 *)
10562 # For security reasons, it is highly recommended that you always
10563 # use absolute paths for naming shared libraries, and exclude the
10564 # DT_RUNPATH tag from executables and libraries. But doing so
10565 # requires that you compile everything twice, which is a pain.
10566 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10568 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10569 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10570 else
10571 ld_shlibs=no
10572 fi
10573 ;;
10574 esac
10575 ;;
10576
10577 sunos4*)
10578 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10579 wlarc=
10580 hardcode_direct=yes
10581 hardcode_shlibpath_var=no
10582 ;;
10583
10584 *)
10585 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10587 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10588 else
10589 ld_shlibs=no
10590 fi
10591 ;;
10592 esac
10593
10594 if test "$ld_shlibs" = no; then
10595 runpath_var=
10596 hardcode_libdir_flag_spec=
10597 export_dynamic_flag_spec=
10598 whole_archive_flag_spec=
10599 fi
10600 else
10601 # PORTME fill in a description of your system's linker (not GNU ld)
10602 case $host_os in
10603 aix3*)
10604 allow_undefined_flag=unsupported
10605 always_export_symbols=yes
10606 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'
10607 # Note: this linker hardcodes the directories in LIBPATH if there
10608 # are no directories specified by -L.
10609 hardcode_minus_L=yes
10610 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10611 # Neither direct hardcoding nor static linking is supported with a
10612 # broken collect2.
10613 hardcode_direct=unsupported
10614 fi
10615 ;;
10616
10617 aix[4-9]*)
10618 if test "$host_cpu" = ia64; then
10619 # On IA64, the linker does run time linking by default, so we don't
10620 # have to do anything special.
10621 aix_use_runtimelinking=no
10622 exp_sym_flag='-Bexport'
10623 no_entry_flag=""
10624 else
10625 # If we're using GNU nm, then we don't want the "-C" option.
10626 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10627 # Also, AIX nm treats weak defined symbols like other global
10628 # defined symbols, whereas GNU nm marks them as "W".
10629 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10630 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'
10631 else
10632 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'
10633 fi
10634 aix_use_runtimelinking=no
10635
10636 # Test if we are trying to use run time linking or normal
10637 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10638 # need to do runtime linking.
10639 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10640 for ld_flag in $LDFLAGS; do
10641 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10642 aix_use_runtimelinking=yes
10643 break
10644 fi
10645 done
10646 ;;
10647 esac
10648
10649 exp_sym_flag='-bexport'
10650 no_entry_flag='-bnoentry'
10651 fi
10652
10653 # When large executables or shared objects are built, AIX ld can
10654 # have problems creating the table of contents. If linking a library
10655 # or program results in "error TOC overflow" add -mminimal-toc to
10656 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10657 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10658
10659 archive_cmds=''
10660 hardcode_direct=yes
10661 hardcode_direct_absolute=yes
10662 hardcode_libdir_separator=':'
10663 link_all_deplibs=yes
10664 file_list_spec='${wl}-f,'
10665
10666 if test "$GCC" = yes; then
10667 case $host_os in aix4.[012]|aix4.[012].*)
10668 # We only want to do this on AIX 4.2 and lower, the check
10669 # below for broken collect2 doesn't work under 4.3+
10670 collect2name=`${CC} -print-prog-name=collect2`
10671 if test -f "$collect2name" &&
10672 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10673 then
10674 # We have reworked collect2
10675 :
10676 else
10677 # We have old collect2
10678 hardcode_direct=unsupported
10679 # It fails to find uninstalled libraries when the uninstalled
10680 # path is not listed in the libpath. Setting hardcode_minus_L
10681 # to unsupported forces relinking
10682 hardcode_minus_L=yes
10683 hardcode_libdir_flag_spec='-L$libdir'
10684 hardcode_libdir_separator=
10685 fi
10686 ;;
10687 esac
10688 shared_flag='-shared'
10689 if test "$aix_use_runtimelinking" = yes; then
10690 shared_flag="$shared_flag "'${wl}-G'
10691 fi
10692 else
10693 # not using gcc
10694 if test "$host_cpu" = ia64; then
10695 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10696 # chokes on -Wl,-G. The following line is correct:
10697 shared_flag='-G'
10698 else
10699 if test "$aix_use_runtimelinking" = yes; then
10700 shared_flag='${wl}-G'
10701 else
10702 shared_flag='${wl}-bM:SRE'
10703 fi
10704 fi
10705 fi
10706
10707 export_dynamic_flag_spec='${wl}-bexpall'
10708 # It seems that -bexpall does not export symbols beginning with
10709 # underscore (_), so it is better to generate a list of symbols to export.
10710 always_export_symbols=yes
10711 if test "$aix_use_runtimelinking" = yes; then
10712 # Warning - without using the other runtime loading flags (-brtl),
10713 # -berok will link without error, but may produce a broken library.
10714 allow_undefined_flag='-berok'
10715 # Determine the default libpath from the value encoded in an
10716 # empty executable.
10717 if test x$gcc_no_link = xyes; then
10718 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10719 fi
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722
10723 int
10724 main ()
10725 {
10726
10727 ;
10728 return 0;
10729 }
10730 _ACEOF
10731 if ac_fn_c_try_link "$LINENO"; then :
10732
10733 lt_aix_libpath_sed='
10734 /Import File Strings/,/^$/ {
10735 /^0/ {
10736 s/^0 *\(.*\)$/\1/
10737 p
10738 }
10739 }'
10740 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10741 # Check for a 64-bit object if we didn't find anything.
10742 if test -z "$aix_libpath"; then
10743 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10744 fi
10745 fi
10746 rm -f core conftest.err conftest.$ac_objext \
10747 conftest$ac_exeext conftest.$ac_ext
10748 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10749
10750 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10751 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"
10752 else
10753 if test "$host_cpu" = ia64; then
10754 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10755 allow_undefined_flag="-z nodefs"
10756 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"
10757 else
10758 # Determine the default libpath from the value encoded in an
10759 # empty executable.
10760 if test x$gcc_no_link = xyes; then
10761 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10762 fi
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10765
10766 int
10767 main ()
10768 {
10769
10770 ;
10771 return 0;
10772 }
10773 _ACEOF
10774 if ac_fn_c_try_link "$LINENO"; then :
10775
10776 lt_aix_libpath_sed='
10777 /Import File Strings/,/^$/ {
10778 /^0/ {
10779 s/^0 *\(.*\)$/\1/
10780 p
10781 }
10782 }'
10783 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10784 # Check for a 64-bit object if we didn't find anything.
10785 if test -z "$aix_libpath"; then
10786 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10787 fi
10788 fi
10789 rm -f core conftest.err conftest.$ac_objext \
10790 conftest$ac_exeext conftest.$ac_ext
10791 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10792
10793 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10794 # Warning - without using the other run time loading flags,
10795 # -berok will link without error, but may produce a broken library.
10796 no_undefined_flag=' ${wl}-bernotok'
10797 allow_undefined_flag=' ${wl}-berok'
10798 if test "$with_gnu_ld" = yes; then
10799 # We only use this code for GNU lds that support --whole-archive.
10800 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10801 else
10802 # Exported symbols can be pulled into shared objects from archives
10803 whole_archive_flag_spec='$convenience'
10804 fi
10805 archive_cmds_need_lc=yes
10806 # This is similar to how AIX traditionally builds its shared libraries.
10807 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'
10808 fi
10809 fi
10810 ;;
10811
10812 amigaos*)
10813 case $host_cpu in
10814 powerpc)
10815 # see comment about AmigaOS4 .so support
10816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10817 archive_expsym_cmds=''
10818 ;;
10819 m68k)
10820 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)'
10821 hardcode_libdir_flag_spec='-L$libdir'
10822 hardcode_minus_L=yes
10823 ;;
10824 esac
10825 ;;
10826
10827 bsdi[45]*)
10828 export_dynamic_flag_spec=-rdynamic
10829 ;;
10830
10831 cygwin* | mingw* | pw32* | cegcc*)
10832 # When not using gcc, we currently assume that we are using
10833 # Microsoft Visual C++.
10834 # hardcode_libdir_flag_spec is actually meaningless, as there is
10835 # no search path for DLLs.
10836 hardcode_libdir_flag_spec=' '
10837 allow_undefined_flag=unsupported
10838 # Tell ltmain to make .lib files, not .a files.
10839 libext=lib
10840 # Tell ltmain to make .dll files, not .so files.
10841 shrext_cmds=".dll"
10842 # FIXME: Setting linknames here is a bad hack.
10843 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10844 # The linker will automatically build a .lib file if we build a DLL.
10845 old_archive_from_new_cmds='true'
10846 # FIXME: Should let the user specify the lib program.
10847 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10848 fix_srcfile_path='`cygpath -w "$srcfile"`'
10849 enable_shared_with_static_runtimes=yes
10850 ;;
10851
10852 darwin* | rhapsody*)
10853
10854
10855 archive_cmds_need_lc=no
10856 hardcode_direct=no
10857 hardcode_automatic=yes
10858 hardcode_shlibpath_var=unsupported
10859 if test "$lt_cv_ld_force_load" = "yes"; then
10860 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\"`'
10861 else
10862 whole_archive_flag_spec=''
10863 fi
10864 link_all_deplibs=yes
10865 allow_undefined_flag="$_lt_dar_allow_undefined"
10866 case $cc_basename in
10867 ifort*) _lt_dar_can_shared=yes ;;
10868 *) _lt_dar_can_shared=$GCC ;;
10869 esac
10870 if test "$_lt_dar_can_shared" = "yes"; then
10871 output_verbose_link_cmd=func_echo_all
10872 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10873 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10874 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}"
10875 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}"
10876
10877 else
10878 ld_shlibs=no
10879 fi
10880
10881 ;;
10882
10883 dgux*)
10884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10885 hardcode_libdir_flag_spec='-L$libdir'
10886 hardcode_shlibpath_var=no
10887 ;;
10888
10889 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10890 # support. Future versions do this automatically, but an explicit c++rt0.o
10891 # does not break anything, and helps significantly (at the cost of a little
10892 # extra space).
10893 freebsd2.2*)
10894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10895 hardcode_libdir_flag_spec='-R$libdir'
10896 hardcode_direct=yes
10897 hardcode_shlibpath_var=no
10898 ;;
10899
10900 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10901 freebsd2.*)
10902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10903 hardcode_direct=yes
10904 hardcode_minus_L=yes
10905 hardcode_shlibpath_var=no
10906 ;;
10907
10908 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10909 freebsd* | dragonfly*)
10910 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10911 hardcode_libdir_flag_spec='-R$libdir'
10912 hardcode_direct=yes
10913 hardcode_shlibpath_var=no
10914 ;;
10915
10916 hpux9*)
10917 if test "$GCC" = yes; then
10918 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'
10919 else
10920 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'
10921 fi
10922 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10923 hardcode_libdir_separator=:
10924 hardcode_direct=yes
10925
10926 # hardcode_minus_L: Not really in the search PATH,
10927 # but as the default location of the library.
10928 hardcode_minus_L=yes
10929 export_dynamic_flag_spec='${wl}-E'
10930 ;;
10931
10932 hpux10*)
10933 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10934 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10935 else
10936 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10937 fi
10938 if test "$with_gnu_ld" = no; then
10939 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10940 hardcode_libdir_flag_spec_ld='+b $libdir'
10941 hardcode_libdir_separator=:
10942 hardcode_direct=yes
10943 hardcode_direct_absolute=yes
10944 export_dynamic_flag_spec='${wl}-E'
10945 # hardcode_minus_L: Not really in the search PATH,
10946 # but as the default location of the library.
10947 hardcode_minus_L=yes
10948 fi
10949 ;;
10950
10951 hpux11*)
10952 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10953 case $host_cpu in
10954 hppa*64*)
10955 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10956 ;;
10957 ia64*)
10958 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10959 ;;
10960 *)
10961 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10962 ;;
10963 esac
10964 else
10965 case $host_cpu in
10966 hppa*64*)
10967 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10968 ;;
10969 ia64*)
10970 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10971 ;;
10972 *)
10973
10974 # Older versions of the 11.00 compiler do not understand -b yet
10975 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10977 $as_echo_n "checking if $CC understands -b... " >&6; }
10978 if ${lt_cv_prog_compiler__b+:} false; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981 lt_cv_prog_compiler__b=no
10982 save_LDFLAGS="$LDFLAGS"
10983 LDFLAGS="$LDFLAGS -b"
10984 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10985 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10986 # The linker can only warn and ignore the option if not recognized
10987 # So say no if there are warnings
10988 if test -s conftest.err; then
10989 # Append any errors to the config.log.
10990 cat conftest.err 1>&5
10991 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10993 if diff conftest.exp conftest.er2 >/dev/null; then
10994 lt_cv_prog_compiler__b=yes
10995 fi
10996 else
10997 lt_cv_prog_compiler__b=yes
10998 fi
10999 fi
11000 $RM -r conftest*
11001 LDFLAGS="$save_LDFLAGS"
11002
11003 fi
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11005 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11006
11007 if test x"$lt_cv_prog_compiler__b" = xyes; then
11008 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11009 else
11010 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11011 fi
11012
11013 ;;
11014 esac
11015 fi
11016 if test "$with_gnu_ld" = no; then
11017 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11018 hardcode_libdir_separator=:
11019
11020 case $host_cpu in
11021 hppa*64*|ia64*)
11022 hardcode_direct=no
11023 hardcode_shlibpath_var=no
11024 ;;
11025 *)
11026 hardcode_direct=yes
11027 hardcode_direct_absolute=yes
11028 export_dynamic_flag_spec='${wl}-E'
11029
11030 # hardcode_minus_L: Not really in the search PATH,
11031 # but as the default location of the library.
11032 hardcode_minus_L=yes
11033 ;;
11034 esac
11035 fi
11036 ;;
11037
11038 irix5* | irix6* | nonstopux*)
11039 if test "$GCC" = yes; then
11040 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'
11041 # Try to use the -exported_symbol ld option, if it does not
11042 # work, assume that -exports_file does not work either and
11043 # implicitly export all symbols.
11044 save_LDFLAGS="$LDFLAGS"
11045 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11046 if test x$gcc_no_link = xyes; then
11047 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11048 fi
11049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11050 /* end confdefs.h. */
11051 int foo(void) {}
11052 _ACEOF
11053 if ac_fn_c_try_link "$LINENO"; then :
11054 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'
11055
11056 fi
11057 rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059 LDFLAGS="$save_LDFLAGS"
11060 else
11061 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'
11062 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'
11063 fi
11064 archive_cmds_need_lc='no'
11065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11066 hardcode_libdir_separator=:
11067 inherit_rpath=yes
11068 link_all_deplibs=yes
11069 ;;
11070
11071 netbsd*)
11072 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11073 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11074 else
11075 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11076 fi
11077 hardcode_libdir_flag_spec='-R$libdir'
11078 hardcode_direct=yes
11079 hardcode_shlibpath_var=no
11080 ;;
11081
11082 newsos6)
11083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11084 hardcode_direct=yes
11085 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11086 hardcode_libdir_separator=:
11087 hardcode_shlibpath_var=no
11088 ;;
11089
11090 *nto* | *qnx*)
11091 ;;
11092
11093 openbsd*)
11094 if test -f /usr/libexec/ld.so; then
11095 hardcode_direct=yes
11096 hardcode_shlibpath_var=no
11097 hardcode_direct_absolute=yes
11098 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11099 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11100 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11101 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11102 export_dynamic_flag_spec='${wl}-E'
11103 else
11104 case $host_os in
11105 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11106 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11107 hardcode_libdir_flag_spec='-R$libdir'
11108 ;;
11109 *)
11110 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11111 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11112 ;;
11113 esac
11114 fi
11115 else
11116 ld_shlibs=no
11117 fi
11118 ;;
11119
11120 os2*)
11121 hardcode_libdir_flag_spec='-L$libdir'
11122 hardcode_minus_L=yes
11123 allow_undefined_flag=unsupported
11124 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'
11125 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11126 ;;
11127
11128 osf3*)
11129 if test "$GCC" = yes; then
11130 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11131 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'
11132 else
11133 allow_undefined_flag=' -expect_unresolved \*'
11134 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'
11135 fi
11136 archive_cmds_need_lc='no'
11137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11138 hardcode_libdir_separator=:
11139 ;;
11140
11141 osf4* | osf5*) # as osf3* with the addition of -msym flag
11142 if test "$GCC" = yes; then
11143 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11144 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'
11145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11146 else
11147 allow_undefined_flag=' -expect_unresolved \*'
11148 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'
11149 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~
11150 $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'
11151
11152 # Both c and cxx compiler support -rpath directly
11153 hardcode_libdir_flag_spec='-rpath $libdir'
11154 fi
11155 archive_cmds_need_lc='no'
11156 hardcode_libdir_separator=:
11157 ;;
11158
11159 solaris*)
11160 no_undefined_flag=' -z defs'
11161 if test "$GCC" = yes; then
11162 wlarc='${wl}'
11163 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11164 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11165 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11166 else
11167 case `$CC -V 2>&1` in
11168 *"Compilers 5.0"*)
11169 wlarc=''
11170 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11171 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11172 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11173 ;;
11174 *)
11175 wlarc='${wl}'
11176 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11177 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11178 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11179 ;;
11180 esac
11181 fi
11182 hardcode_libdir_flag_spec='-R$libdir'
11183 hardcode_shlibpath_var=no
11184 case $host_os in
11185 solaris2.[0-5] | solaris2.[0-5].*) ;;
11186 *)
11187 # The compiler driver will combine and reorder linker options,
11188 # but understands `-z linker_flag'. GCC discards it without `$wl',
11189 # but is careful enough not to reorder.
11190 # Supported since Solaris 2.6 (maybe 2.5.1?)
11191 if test "$GCC" = yes; then
11192 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11193 else
11194 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11195 fi
11196 ;;
11197 esac
11198 link_all_deplibs=yes
11199 ;;
11200
11201 sunos4*)
11202 if test "x$host_vendor" = xsequent; then
11203 # Use $CC to link under sequent, because it throws in some extra .o
11204 # files that make .init and .fini sections work.
11205 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11206 else
11207 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11208 fi
11209 hardcode_libdir_flag_spec='-L$libdir'
11210 hardcode_direct=yes
11211 hardcode_minus_L=yes
11212 hardcode_shlibpath_var=no
11213 ;;
11214
11215 sysv4)
11216 case $host_vendor in
11217 sni)
11218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11219 hardcode_direct=yes # is this really true???
11220 ;;
11221 siemens)
11222 ## LD is ld it makes a PLAMLIB
11223 ## CC just makes a GrossModule.
11224 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11225 reload_cmds='$CC -r -o $output$reload_objs'
11226 hardcode_direct=no
11227 ;;
11228 motorola)
11229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11230 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11231 ;;
11232 esac
11233 runpath_var='LD_RUN_PATH'
11234 hardcode_shlibpath_var=no
11235 ;;
11236
11237 sysv4.3*)
11238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11239 hardcode_shlibpath_var=no
11240 export_dynamic_flag_spec='-Bexport'
11241 ;;
11242
11243 sysv4*MP*)
11244 if test -d /usr/nec; then
11245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11246 hardcode_shlibpath_var=no
11247 runpath_var=LD_RUN_PATH
11248 hardcode_runpath_var=yes
11249 ld_shlibs=yes
11250 fi
11251 ;;
11252
11253 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11254 no_undefined_flag='${wl}-z,text'
11255 archive_cmds_need_lc=no
11256 hardcode_shlibpath_var=no
11257 runpath_var='LD_RUN_PATH'
11258
11259 if test "$GCC" = yes; then
11260 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11261 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11262 else
11263 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11264 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11265 fi
11266 ;;
11267
11268 sysv5* | sco3.2v5* | sco5v6*)
11269 # Note: We can NOT use -z defs as we might desire, because we do not
11270 # link with -lc, and that would cause any symbols used from libc to
11271 # always be unresolved, which means just about no library would
11272 # ever link correctly. If we're not using GNU ld we use -z text
11273 # though, which does catch some bad symbols but isn't as heavy-handed
11274 # as -z defs.
11275 no_undefined_flag='${wl}-z,text'
11276 allow_undefined_flag='${wl}-z,nodefs'
11277 archive_cmds_need_lc=no
11278 hardcode_shlibpath_var=no
11279 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11280 hardcode_libdir_separator=':'
11281 link_all_deplibs=yes
11282 export_dynamic_flag_spec='${wl}-Bexport'
11283 runpath_var='LD_RUN_PATH'
11284
11285 if test "$GCC" = yes; then
11286 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11287 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11288 else
11289 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11290 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11291 fi
11292 ;;
11293
11294 uts4*)
11295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11296 hardcode_libdir_flag_spec='-L$libdir'
11297 hardcode_shlibpath_var=no
11298 ;;
11299
11300 *)
11301 ld_shlibs=no
11302 ;;
11303 esac
11304
11305 if test x$host_vendor = xsni; then
11306 case $host in
11307 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11308 export_dynamic_flag_spec='${wl}-Blargedynsym'
11309 ;;
11310 esac
11311 fi
11312 fi
11313
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11315 $as_echo "$ld_shlibs" >&6; }
11316 test "$ld_shlibs" = no && can_build_shared=no
11317
11318 with_gnu_ld=$with_gnu_ld
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334 #
11335 # Do we need to explicitly link libc?
11336 #
11337 case "x$archive_cmds_need_lc" in
11338 x|xyes)
11339 # Assume -lc should be added
11340 archive_cmds_need_lc=yes
11341
11342 if test "$enable_shared" = yes && test "$GCC" = yes; then
11343 case $archive_cmds in
11344 *'~'*)
11345 # FIXME: we may have to deal with multi-command sequences.
11346 ;;
11347 '$CC '*)
11348 # Test whether the compiler implicitly links with -lc since on some
11349 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11350 # to ld, don't add -lc before -lgcc.
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11352 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11353 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11354 $as_echo_n "(cached) " >&6
11355 else
11356 $RM conftest*
11357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11358
11359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11360 (eval $ac_compile) 2>&5
11361 ac_status=$?
11362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11363 test $ac_status = 0; } 2>conftest.err; then
11364 soname=conftest
11365 lib=conftest
11366 libobjs=conftest.$ac_objext
11367 deplibs=
11368 wl=$lt_prog_compiler_wl
11369 pic_flag=$lt_prog_compiler_pic
11370 compiler_flags=-v
11371 linker_flags=-v
11372 verstring=
11373 output_objdir=.
11374 libname=conftest
11375 lt_save_allow_undefined_flag=$allow_undefined_flag
11376 allow_undefined_flag=
11377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11378 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11379 ac_status=$?
11380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11381 test $ac_status = 0; }
11382 then
11383 lt_cv_archive_cmds_need_lc=no
11384 else
11385 lt_cv_archive_cmds_need_lc=yes
11386 fi
11387 allow_undefined_flag=$lt_save_allow_undefined_flag
11388 else
11389 cat conftest.err 1>&5
11390 fi
11391 $RM conftest*
11392
11393 fi
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11395 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11396 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11397 ;;
11398 esac
11399 fi
11400 ;;
11401 esac
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11560 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11561
11562 if test "$GCC" = yes; then
11563 case $host_os in
11564 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11565 *) lt_awk_arg="/^libraries:/" ;;
11566 esac
11567 case $host_os in
11568 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11569 *) lt_sed_strip_eq="s,=/,/,g" ;;
11570 esac
11571 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11572 case $lt_search_path_spec in
11573 *\;*)
11574 # if the path contains ";" then we assume it to be the separator
11575 # otherwise default to the standard path separator (i.e. ":") - it is
11576 # assumed that no part of a normal pathname contains ";" but that should
11577 # okay in the real world where ";" in dirpaths is itself problematic.
11578 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11579 ;;
11580 *)
11581 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11582 ;;
11583 esac
11584 # Ok, now we have the path, separated by spaces, we can step through it
11585 # and add multilib dir if necessary.
11586 lt_tmp_lt_search_path_spec=
11587 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11588 for lt_sys_path in $lt_search_path_spec; do
11589 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11590 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11591 else
11592 test -d "$lt_sys_path" && \
11593 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11594 fi
11595 done
11596 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11597 BEGIN {RS=" "; FS="/|\n";} {
11598 lt_foo="";
11599 lt_count=0;
11600 for (lt_i = NF; lt_i > 0; lt_i--) {
11601 if ($lt_i != "" && $lt_i != ".") {
11602 if ($lt_i == "..") {
11603 lt_count++;
11604 } else {
11605 if (lt_count == 0) {
11606 lt_foo="/" $lt_i lt_foo;
11607 } else {
11608 lt_count--;
11609 }
11610 }
11611 }
11612 }
11613 if (lt_foo != "") { lt_freq[lt_foo]++; }
11614 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11615 }'`
11616 # AWK program above erroneously prepends '/' to C:/dos/paths
11617 # for these hosts.
11618 case $host_os in
11619 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11620 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11621 esac
11622 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11623 else
11624 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11625 fi
11626 library_names_spec=
11627 libname_spec='lib$name'
11628 soname_spec=
11629 shrext_cmds=".so"
11630 postinstall_cmds=
11631 postuninstall_cmds=
11632 finish_cmds=
11633 finish_eval=
11634 shlibpath_var=
11635 shlibpath_overrides_runpath=unknown
11636 version_type=none
11637 dynamic_linker="$host_os ld.so"
11638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11639 need_lib_prefix=unknown
11640 hardcode_into_libs=no
11641
11642 # when you set need_version to no, make sure it does not cause -set_version
11643 # flags to be left without arguments
11644 need_version=unknown
11645
11646 case $host_os in
11647 aix3*)
11648 version_type=linux
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11650 shlibpath_var=LIBPATH
11651
11652 # AIX 3 has no versioning support, so we append a major version to the name.
11653 soname_spec='${libname}${release}${shared_ext}$major'
11654 ;;
11655
11656 aix[4-9]*)
11657 version_type=linux
11658 need_lib_prefix=no
11659 need_version=no
11660 hardcode_into_libs=yes
11661 if test "$host_cpu" = ia64; then
11662 # AIX 5 supports IA64
11663 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11664 shlibpath_var=LD_LIBRARY_PATH
11665 else
11666 # With GCC up to 2.95.x, collect2 would create an import file
11667 # for dependence libraries. The import file would start with
11668 # the line `#! .'. This would cause the generated library to
11669 # depend on `.', always an invalid library. This was fixed in
11670 # development snapshots of GCC prior to 3.0.
11671 case $host_os in
11672 aix4 | aix4.[01] | aix4.[01].*)
11673 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11674 echo ' yes '
11675 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11676 :
11677 else
11678 can_build_shared=no
11679 fi
11680 ;;
11681 esac
11682 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11683 # soname into executable. Probably we can add versioning support to
11684 # collect2, so additional links can be useful in future.
11685 if test "$aix_use_runtimelinking" = yes; then
11686 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11687 # instead of lib<name>.a to let people know that these are not
11688 # typical AIX shared libraries.
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11690 else
11691 # We preserve .a as extension for shared libraries through AIX4.2
11692 # and later when we are not doing run time linking.
11693 library_names_spec='${libname}${release}.a $libname.a'
11694 soname_spec='${libname}${release}${shared_ext}$major'
11695 fi
11696 shlibpath_var=LIBPATH
11697 fi
11698 ;;
11699
11700 amigaos*)
11701 case $host_cpu in
11702 powerpc)
11703 # Since July 2007 AmigaOS4 officially supports .so libraries.
11704 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11706 ;;
11707 m68k)
11708 library_names_spec='$libname.ixlibrary $libname.a'
11709 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11710 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'
11711 ;;
11712 esac
11713 ;;
11714
11715 beos*)
11716 library_names_spec='${libname}${shared_ext}'
11717 dynamic_linker="$host_os ld.so"
11718 shlibpath_var=LIBRARY_PATH
11719 ;;
11720
11721 bsdi[45]*)
11722 version_type=linux
11723 need_version=no
11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11725 soname_spec='${libname}${release}${shared_ext}$major'
11726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11727 shlibpath_var=LD_LIBRARY_PATH
11728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11730 # the default ld.so.conf also contains /usr/contrib/lib and
11731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11732 # libtool to hard-code these into programs
11733 ;;
11734
11735 cygwin* | mingw* | pw32* | cegcc*)
11736 version_type=windows
11737 shrext_cmds=".dll"
11738 need_version=no
11739 need_lib_prefix=no
11740
11741 case $GCC,$host_os in
11742 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11743 library_names_spec='$libname.dll.a'
11744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11745 postinstall_cmds='base_file=`basename \${file}`~
11746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11747 dldir=$destdir/`dirname \$dlpath`~
11748 test -d \$dldir || mkdir -p \$dldir~
11749 $install_prog $dir/$dlname \$dldir/$dlname~
11750 chmod a+x \$dldir/$dlname~
11751 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11752 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11753 fi'
11754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11755 dlpath=$dir/\$dldll~
11756 $RM \$dlpath'
11757 shlibpath_overrides_runpath=yes
11758
11759 case $host_os in
11760 cygwin*)
11761 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11762 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11763
11764 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11765 ;;
11766 mingw* | cegcc*)
11767 # MinGW DLLs use traditional 'lib' prefix
11768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11769 ;;
11770 pw32*)
11771 # pw32 DLLs use 'pw' prefix rather than 'lib'
11772 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11773 ;;
11774 esac
11775 ;;
11776
11777 *)
11778 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11779 ;;
11780 esac
11781 dynamic_linker='Win32 ld.exe'
11782 # FIXME: first we should search . and the directory the executable is in
11783 shlibpath_var=PATH
11784 ;;
11785
11786 darwin* | rhapsody*)
11787 dynamic_linker="$host_os dyld"
11788 version_type=darwin
11789 need_lib_prefix=no
11790 need_version=no
11791 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11792 soname_spec='${libname}${release}${major}$shared_ext'
11793 shlibpath_overrides_runpath=yes
11794 shlibpath_var=DYLD_LIBRARY_PATH
11795 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11796
11797 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11798 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11799 ;;
11800
11801 dgux*)
11802 version_type=linux
11803 need_lib_prefix=no
11804 need_version=no
11805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11806 soname_spec='${libname}${release}${shared_ext}$major'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 ;;
11809
11810 freebsd* | dragonfly*)
11811 # DragonFly does not have aout. When/if they implement a new
11812 # versioning mechanism, adjust this.
11813 if test -x /usr/bin/objformat; then
11814 objformat=`/usr/bin/objformat`
11815 else
11816 case $host_os in
11817 freebsd[23].*) objformat=aout ;;
11818 *) objformat=elf ;;
11819 esac
11820 fi
11821 version_type=freebsd-$objformat
11822 case $version_type in
11823 freebsd-elf*)
11824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11825 need_version=no
11826 need_lib_prefix=no
11827 ;;
11828 freebsd-*)
11829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11830 need_version=yes
11831 ;;
11832 esac
11833 shlibpath_var=LD_LIBRARY_PATH
11834 case $host_os in
11835 freebsd2.*)
11836 shlibpath_overrides_runpath=yes
11837 ;;
11838 freebsd3.[01]* | freebsdelf3.[01]*)
11839 shlibpath_overrides_runpath=yes
11840 hardcode_into_libs=yes
11841 ;;
11842 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11843 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11844 shlibpath_overrides_runpath=no
11845 hardcode_into_libs=yes
11846 ;;
11847 *) # from 4.6 on, and DragonFly
11848 shlibpath_overrides_runpath=yes
11849 hardcode_into_libs=yes
11850 ;;
11851 esac
11852 ;;
11853
11854 haiku*)
11855 version_type=linux
11856 need_lib_prefix=no
11857 need_version=no
11858 dynamic_linker="$host_os runtime_loader"
11859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11860 soname_spec='${libname}${release}${shared_ext}$major'
11861 shlibpath_var=LIBRARY_PATH
11862 shlibpath_overrides_runpath=yes
11863 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11864 hardcode_into_libs=yes
11865 ;;
11866
11867 hpux9* | hpux10* | hpux11*)
11868 # Give a soname corresponding to the major version so that dld.sl refuses to
11869 # link against other versions.
11870 version_type=sunos
11871 need_lib_prefix=no
11872 need_version=no
11873 case $host_cpu in
11874 ia64*)
11875 shrext_cmds='.so'
11876 hardcode_into_libs=yes
11877 dynamic_linker="$host_os dld.so"
11878 shlibpath_var=LD_LIBRARY_PATH
11879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881 soname_spec='${libname}${release}${shared_ext}$major'
11882 if test "X$HPUX_IA64_MODE" = X32; then
11883 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11884 else
11885 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11886 fi
11887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11888 ;;
11889 hppa*64*)
11890 shrext_cmds='.sl'
11891 hardcode_into_libs=yes
11892 dynamic_linker="$host_os dld.sl"
11893 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11896 soname_spec='${libname}${release}${shared_ext}$major'
11897 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11899 ;;
11900 *)
11901 shrext_cmds='.sl'
11902 dynamic_linker="$host_os dld.sl"
11903 shlibpath_var=SHLIB_PATH
11904 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11906 soname_spec='${libname}${release}${shared_ext}$major'
11907 ;;
11908 esac
11909 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11910 postinstall_cmds='chmod 555 $lib'
11911 # or fails outright, so override atomically:
11912 install_override_mode=555
11913 ;;
11914
11915 interix[3-9]*)
11916 version_type=linux
11917 need_lib_prefix=no
11918 need_version=no
11919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11920 soname_spec='${libname}${release}${shared_ext}$major'
11921 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11922 shlibpath_var=LD_LIBRARY_PATH
11923 shlibpath_overrides_runpath=no
11924 hardcode_into_libs=yes
11925 ;;
11926
11927 irix5* | irix6* | nonstopux*)
11928 case $host_os in
11929 nonstopux*) version_type=nonstopux ;;
11930 *)
11931 if test "$lt_cv_prog_gnu_ld" = yes; then
11932 version_type=linux
11933 else
11934 version_type=irix
11935 fi ;;
11936 esac
11937 need_lib_prefix=no
11938 need_version=no
11939 soname_spec='${libname}${release}${shared_ext}$major'
11940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11941 case $host_os in
11942 irix5* | nonstopux*)
11943 libsuff= shlibsuff=
11944 ;;
11945 *)
11946 case $LD in # libtool.m4 will add one of these switches to LD
11947 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11948 libsuff= shlibsuff= libmagic=32-bit;;
11949 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11950 libsuff=32 shlibsuff=N32 libmagic=N32;;
11951 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11952 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11953 *) libsuff= shlibsuff= libmagic=never-match;;
11954 esac
11955 ;;
11956 esac
11957 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11958 shlibpath_overrides_runpath=no
11959 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11960 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11961 hardcode_into_libs=yes
11962 ;;
11963
11964 # No shared lib support for Linux oldld, aout, or coff.
11965 linux*oldld* | linux*aout* | linux*coff*)
11966 dynamic_linker=no
11967 ;;
11968
11969 # This must be Linux ELF.
11970
11971 # uclinux* changes (here and below) have been submitted to the libtool
11972 # project, but have not yet been accepted: they are GCC-local changes
11973 # for the time being. (See
11974 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11975 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11976 version_type=linux
11977 need_lib_prefix=no
11978 need_version=no
11979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11980 soname_spec='${libname}${release}${shared_ext}$major'
11981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11982 shlibpath_var=LD_LIBRARY_PATH
11983 shlibpath_overrides_runpath=no
11984
11985 # Some binutils ld are patched to set DT_RUNPATH
11986 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11987 $as_echo_n "(cached) " >&6
11988 else
11989 lt_cv_shlibpath_overrides_runpath=no
11990 save_LDFLAGS=$LDFLAGS
11991 save_libdir=$libdir
11992 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11993 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11994 if test x$gcc_no_link = xyes; then
11995 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11996 fi
11997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h. */
11999
12000 int
12001 main ()
12002 {
12003
12004 ;
12005 return 0;
12006 }
12007 _ACEOF
12008 if ac_fn_c_try_link "$LINENO"; then :
12009 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12010 lt_cv_shlibpath_overrides_runpath=yes
12011 fi
12012 fi
12013 rm -f core conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12015 LDFLAGS=$save_LDFLAGS
12016 libdir=$save_libdir
12017
12018 fi
12019
12020 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12021
12022 # This implies no fast_install, which is unacceptable.
12023 # Some rework will be needed to allow for fast_install
12024 # before this can be enabled.
12025 hardcode_into_libs=yes
12026
12027 # Append ld.so.conf contents to the search path
12028 if test -f /etc/ld.so.conf; then
12029 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' ' '`
12030 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12031 fi
12032
12033 # We used to test for /lib/ld.so.1 and disable shared libraries on
12034 # powerpc, because MkLinux only supported shared libraries with the
12035 # GNU dynamic linker. Since this was broken with cross compilers,
12036 # most powerpc-linux boxes support dynamic linking these days and
12037 # people can always --disable-shared, the test was removed, and we
12038 # assume the GNU/Linux dynamic linker is in use.
12039 dynamic_linker='GNU/Linux ld.so'
12040 ;;
12041
12042 netbsd*)
12043 version_type=sunos
12044 need_lib_prefix=no
12045 need_version=no
12046 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12049 dynamic_linker='NetBSD (a.out) ld.so'
12050 else
12051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12052 soname_spec='${libname}${release}${shared_ext}$major'
12053 dynamic_linker='NetBSD ld.elf_so'
12054 fi
12055 shlibpath_var=LD_LIBRARY_PATH
12056 shlibpath_overrides_runpath=yes
12057 hardcode_into_libs=yes
12058 ;;
12059
12060 newsos6)
12061 version_type=linux
12062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12063 shlibpath_var=LD_LIBRARY_PATH
12064 shlibpath_overrides_runpath=yes
12065 ;;
12066
12067 *nto* | *qnx*)
12068 version_type=qnx
12069 need_lib_prefix=no
12070 need_version=no
12071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12072 soname_spec='${libname}${release}${shared_ext}$major'
12073 shlibpath_var=LD_LIBRARY_PATH
12074 shlibpath_overrides_runpath=no
12075 hardcode_into_libs=yes
12076 dynamic_linker='ldqnx.so'
12077 ;;
12078
12079 openbsd*)
12080 version_type=sunos
12081 sys_lib_dlsearch_path_spec="/usr/lib"
12082 need_lib_prefix=no
12083 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12084 case $host_os in
12085 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12086 *) need_version=no ;;
12087 esac
12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12090 shlibpath_var=LD_LIBRARY_PATH
12091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12092 case $host_os in
12093 openbsd2.[89] | openbsd2.[89].*)
12094 shlibpath_overrides_runpath=no
12095 ;;
12096 *)
12097 shlibpath_overrides_runpath=yes
12098 ;;
12099 esac
12100 else
12101 shlibpath_overrides_runpath=yes
12102 fi
12103 ;;
12104
12105 os2*)
12106 libname_spec='$name'
12107 shrext_cmds=".dll"
12108 need_lib_prefix=no
12109 library_names_spec='$libname${shared_ext} $libname.a'
12110 dynamic_linker='OS/2 ld.exe'
12111 shlibpath_var=LIBPATH
12112 ;;
12113
12114 osf3* | osf4* | osf5*)
12115 version_type=osf
12116 need_lib_prefix=no
12117 need_version=no
12118 soname_spec='${libname}${release}${shared_ext}$major'
12119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12120 shlibpath_var=LD_LIBRARY_PATH
12121 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12122 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12123 ;;
12124
12125 rdos*)
12126 dynamic_linker=no
12127 ;;
12128
12129 solaris*)
12130 version_type=linux
12131 need_lib_prefix=no
12132 need_version=no
12133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12134 soname_spec='${libname}${release}${shared_ext}$major'
12135 shlibpath_var=LD_LIBRARY_PATH
12136 shlibpath_overrides_runpath=yes
12137 hardcode_into_libs=yes
12138 # ldd complains unless libraries are executable
12139 postinstall_cmds='chmod +x $lib'
12140 ;;
12141
12142 sunos4*)
12143 version_type=sunos
12144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12145 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12146 shlibpath_var=LD_LIBRARY_PATH
12147 shlibpath_overrides_runpath=yes
12148 if test "$with_gnu_ld" = yes; then
12149 need_lib_prefix=no
12150 fi
12151 need_version=yes
12152 ;;
12153
12154 sysv4 | sysv4.3*)
12155 version_type=linux
12156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12157 soname_spec='${libname}${release}${shared_ext}$major'
12158 shlibpath_var=LD_LIBRARY_PATH
12159 case $host_vendor in
12160 sni)
12161 shlibpath_overrides_runpath=no
12162 need_lib_prefix=no
12163 runpath_var=LD_RUN_PATH
12164 ;;
12165 siemens)
12166 need_lib_prefix=no
12167 ;;
12168 motorola)
12169 need_lib_prefix=no
12170 need_version=no
12171 shlibpath_overrides_runpath=no
12172 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12173 ;;
12174 esac
12175 ;;
12176
12177 sysv4*MP*)
12178 if test -d /usr/nec ;then
12179 version_type=linux
12180 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12181 soname_spec='$libname${shared_ext}.$major'
12182 shlibpath_var=LD_LIBRARY_PATH
12183 fi
12184 ;;
12185
12186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12187 version_type=freebsd-elf
12188 need_lib_prefix=no
12189 need_version=no
12190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12191 soname_spec='${libname}${release}${shared_ext}$major'
12192 shlibpath_var=LD_LIBRARY_PATH
12193 shlibpath_overrides_runpath=yes
12194 hardcode_into_libs=yes
12195 if test "$with_gnu_ld" = yes; then
12196 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12197 else
12198 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12199 case $host_os in
12200 sco3.2v5*)
12201 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12202 ;;
12203 esac
12204 fi
12205 sys_lib_dlsearch_path_spec='/usr/lib'
12206 ;;
12207
12208 tpf*)
12209 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12210 version_type=linux
12211 need_lib_prefix=no
12212 need_version=no
12213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12214 shlibpath_var=LD_LIBRARY_PATH
12215 shlibpath_overrides_runpath=no
12216 hardcode_into_libs=yes
12217 ;;
12218
12219 uts4*)
12220 version_type=linux
12221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12222 soname_spec='${libname}${release}${shared_ext}$major'
12223 shlibpath_var=LD_LIBRARY_PATH
12224 ;;
12225
12226 # Shared libraries for VwWorks, >= 7 only at this stage
12227 # and (fpic) still incompatible with "large" code models
12228 # in a few configurations. Only for RTP mode in any case,
12229 # and upon explicit request at configure time.
12230 vxworks7*)
12231 dynamic_linker=no
12232 case ${with_multisubdir}-${enable_shared} in
12233 *large*)
12234 ;;
12235 *mrtp*-yes)
12236 version_type=linux
12237 need_lib_prefix=no
12238 need_version=no
12239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12240 soname_spec='${libname}${release}${shared_ext}$major'
12241 dynamic_linker="$host_os module_loader"
12242 ;;
12243 esac
12244 ;;
12245 *)
12246 dynamic_linker=no
12247 ;;
12248 esac
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12250 $as_echo "$dynamic_linker" >&6; }
12251 test "$dynamic_linker" = no && can_build_shared=no
12252
12253 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12254 if test "$GCC" = yes; then
12255 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12256 fi
12257
12258 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12259 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12260 fi
12261 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12262 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12263 fi
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12357 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12358 hardcode_action=
12359 if test -n "$hardcode_libdir_flag_spec" ||
12360 test -n "$runpath_var" ||
12361 test "X$hardcode_automatic" = "Xyes" ; then
12362
12363 # We can hardcode non-existent directories.
12364 if test "$hardcode_direct" != no &&
12365 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12366 # have to relink, otherwise we might link with an installed library
12367 # when we should be linking with a yet-to-be-installed one
12368 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12369 test "$hardcode_minus_L" != no; then
12370 # Linking always hardcodes the temporary library directory.
12371 hardcode_action=relink
12372 else
12373 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12374 hardcode_action=immediate
12375 fi
12376 else
12377 # We cannot hardcode anything, or else we can only hardcode existing
12378 # directories.
12379 hardcode_action=unsupported
12380 fi
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12382 $as_echo "$hardcode_action" >&6; }
12383
12384 if test "$hardcode_action" = relink ||
12385 test "$inherit_rpath" = yes; then
12386 # Fast installation is not supported
12387 enable_fast_install=no
12388 elif test "$shlibpath_overrides_runpath" = yes ||
12389 test "$enable_shared" = no; then
12390 # Fast installation is not necessary
12391 enable_fast_install=needless
12392 fi
12393
12394
12395
12396
12397
12398
12399 if test "x$enable_dlopen" != xyes; then
12400 enable_dlopen=unknown
12401 enable_dlopen_self=unknown
12402 enable_dlopen_self_static=unknown
12403 else
12404 lt_cv_dlopen=no
12405 lt_cv_dlopen_libs=
12406
12407 case $host_os in
12408 beos*)
12409 lt_cv_dlopen="load_add_on"
12410 lt_cv_dlopen_libs=
12411 lt_cv_dlopen_self=yes
12412 ;;
12413
12414 mingw* | pw32* | cegcc*)
12415 lt_cv_dlopen="LoadLibrary"
12416 lt_cv_dlopen_libs=
12417 ;;
12418
12419 cygwin*)
12420 lt_cv_dlopen="dlopen"
12421 lt_cv_dlopen_libs=
12422 ;;
12423
12424 darwin*)
12425 # if libdl is installed we need to link against it
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12427 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12428 if ${ac_cv_lib_dl_dlopen+:} false; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 ac_check_lib_save_LIBS=$LIBS
12432 LIBS="-ldl $LIBS"
12433 if test x$gcc_no_link = xyes; then
12434 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12435 fi
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12438
12439 /* Override any GCC internal prototype to avoid an error.
12440 Use char because int might match the return type of a GCC
12441 builtin and then its argument prototype would still apply. */
12442 #ifdef __cplusplus
12443 extern "C"
12444 #endif
12445 char dlopen ();
12446 int
12447 main ()
12448 {
12449 return dlopen ();
12450 ;
12451 return 0;
12452 }
12453 _ACEOF
12454 if ac_fn_c_try_link "$LINENO"; then :
12455 ac_cv_lib_dl_dlopen=yes
12456 else
12457 ac_cv_lib_dl_dlopen=no
12458 fi
12459 rm -f core conftest.err conftest.$ac_objext \
12460 conftest$ac_exeext conftest.$ac_ext
12461 LIBS=$ac_check_lib_save_LIBS
12462 fi
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12464 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12465 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12466 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12467 else
12468
12469 lt_cv_dlopen="dyld"
12470 lt_cv_dlopen_libs=
12471 lt_cv_dlopen_self=yes
12472
12473 fi
12474
12475 ;;
12476
12477 *)
12478 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12479 if test "x$ac_cv_func_shl_load" = xyes; then :
12480 lt_cv_dlopen="shl_load"
12481 else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12483 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12484 if ${ac_cv_lib_dld_shl_load+:} false; then :
12485 $as_echo_n "(cached) " >&6
12486 else
12487 ac_check_lib_save_LIBS=$LIBS
12488 LIBS="-ldld $LIBS"
12489 if test x$gcc_no_link = xyes; then
12490 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12491 fi
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12494
12495 /* Override any GCC internal prototype to avoid an error.
12496 Use char because int might match the return type of a GCC
12497 builtin and then its argument prototype would still apply. */
12498 #ifdef __cplusplus
12499 extern "C"
12500 #endif
12501 char shl_load ();
12502 int
12503 main ()
12504 {
12505 return shl_load ();
12506 ;
12507 return 0;
12508 }
12509 _ACEOF
12510 if ac_fn_c_try_link "$LINENO"; then :
12511 ac_cv_lib_dld_shl_load=yes
12512 else
12513 ac_cv_lib_dld_shl_load=no
12514 fi
12515 rm -f core conftest.err conftest.$ac_objext \
12516 conftest$ac_exeext conftest.$ac_ext
12517 LIBS=$ac_check_lib_save_LIBS
12518 fi
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12520 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12521 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12522 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12523 else
12524 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12525 if test "x$ac_cv_func_dlopen" = xyes; then :
12526 lt_cv_dlopen="dlopen"
12527 else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12529 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12530 if ${ac_cv_lib_dl_dlopen+:} false; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533 ac_check_lib_save_LIBS=$LIBS
12534 LIBS="-ldl $LIBS"
12535 if test x$gcc_no_link = xyes; then
12536 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12537 fi
12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h. */
12540
12541 /* Override any GCC internal prototype to avoid an error.
12542 Use char because int might match the return type of a GCC
12543 builtin and then its argument prototype would still apply. */
12544 #ifdef __cplusplus
12545 extern "C"
12546 #endif
12547 char dlopen ();
12548 int
12549 main ()
12550 {
12551 return dlopen ();
12552 ;
12553 return 0;
12554 }
12555 _ACEOF
12556 if ac_fn_c_try_link "$LINENO"; then :
12557 ac_cv_lib_dl_dlopen=yes
12558 else
12559 ac_cv_lib_dl_dlopen=no
12560 fi
12561 rm -f core conftest.err conftest.$ac_objext \
12562 conftest$ac_exeext conftest.$ac_ext
12563 LIBS=$ac_check_lib_save_LIBS
12564 fi
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12566 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12567 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12568 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12569 else
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12571 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12572 if ${ac_cv_lib_svld_dlopen+:} false; then :
12573 $as_echo_n "(cached) " >&6
12574 else
12575 ac_check_lib_save_LIBS=$LIBS
12576 LIBS="-lsvld $LIBS"
12577 if test x$gcc_no_link = xyes; then
12578 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12579 fi
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12582
12583 /* Override any GCC internal prototype to avoid an error.
12584 Use char because int might match the return type of a GCC
12585 builtin and then its argument prototype would still apply. */
12586 #ifdef __cplusplus
12587 extern "C"
12588 #endif
12589 char dlopen ();
12590 int
12591 main ()
12592 {
12593 return dlopen ();
12594 ;
12595 return 0;
12596 }
12597 _ACEOF
12598 if ac_fn_c_try_link "$LINENO"; then :
12599 ac_cv_lib_svld_dlopen=yes
12600 else
12601 ac_cv_lib_svld_dlopen=no
12602 fi
12603 rm -f core conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
12605 LIBS=$ac_check_lib_save_LIBS
12606 fi
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12608 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12609 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12611 else
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12613 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12614 if ${ac_cv_lib_dld_dld_link+:} false; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 ac_check_lib_save_LIBS=$LIBS
12618 LIBS="-ldld $LIBS"
12619 if test x$gcc_no_link = xyes; then
12620 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12621 fi
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12624
12625 /* Override any GCC internal prototype to avoid an error.
12626 Use char because int might match the return type of a GCC
12627 builtin and then its argument prototype would still apply. */
12628 #ifdef __cplusplus
12629 extern "C"
12630 #endif
12631 char dld_link ();
12632 int
12633 main ()
12634 {
12635 return dld_link ();
12636 ;
12637 return 0;
12638 }
12639 _ACEOF
12640 if ac_fn_c_try_link "$LINENO"; then :
12641 ac_cv_lib_dld_dld_link=yes
12642 else
12643 ac_cv_lib_dld_dld_link=no
12644 fi
12645 rm -f core conftest.err conftest.$ac_objext \
12646 conftest$ac_exeext conftest.$ac_ext
12647 LIBS=$ac_check_lib_save_LIBS
12648 fi
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12650 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12651 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12652 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12653 fi
12654
12655
12656 fi
12657
12658
12659 fi
12660
12661
12662 fi
12663
12664
12665 fi
12666
12667
12668 fi
12669
12670 ;;
12671 esac
12672
12673 if test "x$lt_cv_dlopen" != xno; then
12674 enable_dlopen=yes
12675 else
12676 enable_dlopen=no
12677 fi
12678
12679 case $lt_cv_dlopen in
12680 dlopen)
12681 save_CPPFLAGS="$CPPFLAGS"
12682 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12683
12684 save_LDFLAGS="$LDFLAGS"
12685 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12686
12687 save_LIBS="$LIBS"
12688 LIBS="$lt_cv_dlopen_libs $LIBS"
12689
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12691 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12692 if ${lt_cv_dlopen_self+:} false; then :
12693 $as_echo_n "(cached) " >&6
12694 else
12695 if test "$cross_compiling" = yes; then :
12696 lt_cv_dlopen_self=cross
12697 else
12698 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12699 lt_status=$lt_dlunknown
12700 cat > conftest.$ac_ext <<_LT_EOF
12701 #line 12701 "configure"
12702 #include "confdefs.h"
12703
12704 #if HAVE_DLFCN_H
12705 #include <dlfcn.h>
12706 #endif
12707
12708 #include <stdio.h>
12709
12710 #ifdef RTLD_GLOBAL
12711 # define LT_DLGLOBAL RTLD_GLOBAL
12712 #else
12713 # ifdef DL_GLOBAL
12714 # define LT_DLGLOBAL DL_GLOBAL
12715 # else
12716 # define LT_DLGLOBAL 0
12717 # endif
12718 #endif
12719
12720 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12721 find out it does not work in some platform. */
12722 #ifndef LT_DLLAZY_OR_NOW
12723 # ifdef RTLD_LAZY
12724 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12725 # else
12726 # ifdef DL_LAZY
12727 # define LT_DLLAZY_OR_NOW DL_LAZY
12728 # else
12729 # ifdef RTLD_NOW
12730 # define LT_DLLAZY_OR_NOW RTLD_NOW
12731 # else
12732 # ifdef DL_NOW
12733 # define LT_DLLAZY_OR_NOW DL_NOW
12734 # else
12735 # define LT_DLLAZY_OR_NOW 0
12736 # endif
12737 # endif
12738 # endif
12739 # endif
12740 #endif
12741
12742 /* When -fvisbility=hidden is used, assume the code has been annotated
12743 correspondingly for the symbols needed. */
12744 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12745 void fnord () __attribute__((visibility("default")));
12746 #endif
12747
12748 void fnord () { int i=42; }
12749 int main ()
12750 {
12751 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12752 int status = $lt_dlunknown;
12753
12754 if (self)
12755 {
12756 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12757 else
12758 {
12759 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12760 else puts (dlerror ());
12761 }
12762 /* dlclose (self); */
12763 }
12764 else
12765 puts (dlerror ());
12766
12767 return status;
12768 }
12769 _LT_EOF
12770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12771 (eval $ac_link) 2>&5
12772 ac_status=$?
12773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12774 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12775 (./conftest; exit; ) >&5 2>/dev/null
12776 lt_status=$?
12777 case x$lt_status in
12778 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12779 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12780 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12781 esac
12782 else :
12783 # compilation failed
12784 lt_cv_dlopen_self=no
12785 fi
12786 fi
12787 rm -fr conftest*
12788
12789
12790 fi
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12792 $as_echo "$lt_cv_dlopen_self" >&6; }
12793
12794 if test "x$lt_cv_dlopen_self" = xyes; then
12795 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12797 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12798 if ${lt_cv_dlopen_self_static+:} false; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 if test "$cross_compiling" = yes; then :
12802 lt_cv_dlopen_self_static=cross
12803 else
12804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12805 lt_status=$lt_dlunknown
12806 cat > conftest.$ac_ext <<_LT_EOF
12807 #line 12807 "configure"
12808 #include "confdefs.h"
12809
12810 #if HAVE_DLFCN_H
12811 #include <dlfcn.h>
12812 #endif
12813
12814 #include <stdio.h>
12815
12816 #ifdef RTLD_GLOBAL
12817 # define LT_DLGLOBAL RTLD_GLOBAL
12818 #else
12819 # ifdef DL_GLOBAL
12820 # define LT_DLGLOBAL DL_GLOBAL
12821 # else
12822 # define LT_DLGLOBAL 0
12823 # endif
12824 #endif
12825
12826 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12827 find out it does not work in some platform. */
12828 #ifndef LT_DLLAZY_OR_NOW
12829 # ifdef RTLD_LAZY
12830 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12831 # else
12832 # ifdef DL_LAZY
12833 # define LT_DLLAZY_OR_NOW DL_LAZY
12834 # else
12835 # ifdef RTLD_NOW
12836 # define LT_DLLAZY_OR_NOW RTLD_NOW
12837 # else
12838 # ifdef DL_NOW
12839 # define LT_DLLAZY_OR_NOW DL_NOW
12840 # else
12841 # define LT_DLLAZY_OR_NOW 0
12842 # endif
12843 # endif
12844 # endif
12845 # endif
12846 #endif
12847
12848 /* When -fvisbility=hidden is used, assume the code has been annotated
12849 correspondingly for the symbols needed. */
12850 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12851 void fnord () __attribute__((visibility("default")));
12852 #endif
12853
12854 void fnord () { int i=42; }
12855 int main ()
12856 {
12857 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12858 int status = $lt_dlunknown;
12859
12860 if (self)
12861 {
12862 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12863 else
12864 {
12865 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12866 else puts (dlerror ());
12867 }
12868 /* dlclose (self); */
12869 }
12870 else
12871 puts (dlerror ());
12872
12873 return status;
12874 }
12875 _LT_EOF
12876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12877 (eval $ac_link) 2>&5
12878 ac_status=$?
12879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12880 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12881 (./conftest; exit; ) >&5 2>/dev/null
12882 lt_status=$?
12883 case x$lt_status in
12884 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12885 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12886 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12887 esac
12888 else :
12889 # compilation failed
12890 lt_cv_dlopen_self_static=no
12891 fi
12892 fi
12893 rm -fr conftest*
12894
12895
12896 fi
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12898 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12899 fi
12900
12901 CPPFLAGS="$save_CPPFLAGS"
12902 LDFLAGS="$save_LDFLAGS"
12903 LIBS="$save_LIBS"
12904 ;;
12905 esac
12906
12907 case $lt_cv_dlopen_self in
12908 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12909 *) enable_dlopen_self=unknown ;;
12910 esac
12911
12912 case $lt_cv_dlopen_self_static in
12913 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12914 *) enable_dlopen_self_static=unknown ;;
12915 esac
12916 fi
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934 striplib=
12935 old_striplib=
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12937 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12938 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12939 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12940 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12942 $as_echo "yes" >&6; }
12943 else
12944 # FIXME - insert some real tests, host_os isn't really good enough
12945 case $host_os in
12946 darwin*)
12947 if test -n "$STRIP" ; then
12948 striplib="$STRIP -x"
12949 old_striplib="$STRIP -S"
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12951 $as_echo "yes" >&6; }
12952 else
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954 $as_echo "no" >&6; }
12955 fi
12956 ;;
12957 *)
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959 $as_echo "no" >&6; }
12960 ;;
12961 esac
12962 fi
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975 # Report which library types will actually be built
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12977 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12979 $as_echo "$can_build_shared" >&6; }
12980
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12982 $as_echo_n "checking whether to build shared libraries... " >&6; }
12983 test "$can_build_shared" = "no" && enable_shared=no
12984
12985 # On AIX, shared libraries and static libraries use the same namespace, and
12986 # are all built from PIC.
12987 case $host_os in
12988 aix3*)
12989 test "$enable_shared" = yes && enable_static=no
12990 if test -n "$RANLIB"; then
12991 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12992 postinstall_cmds='$RANLIB $lib'
12993 fi
12994 ;;
12995
12996 aix[4-9]*)
12997 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12998 test "$enable_shared" = yes && enable_static=no
12999 fi
13000 ;;
13001 esac
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13003 $as_echo "$enable_shared" >&6; }
13004
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13006 $as_echo_n "checking whether to build static libraries... " >&6; }
13007 # Make sure either enable_shared or enable_static is yes.
13008 test "$enable_shared" = yes || enable_static=yes
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13010 $as_echo "$enable_static" >&6; }
13011
13012
13013
13014
13015 fi
13016 ac_ext=c
13017 ac_cpp='$CPP $CPPFLAGS'
13018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13021
13022 CC="$lt_save_CC"
13023
13024 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13025 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13026 (test "X$CXX" != "Xg++"))) ; then
13027 ac_ext=cpp
13028 ac_cpp='$CXXCPP $CPPFLAGS'
13029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13033 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13034 if test -z "$CXXCPP"; then
13035 if ${ac_cv_prog_CXXCPP+:} false; then :
13036 $as_echo_n "(cached) " >&6
13037 else
13038 # Double quotes because CXXCPP needs to be expanded
13039 for CXXCPP in "$CXX -E" "/lib/cpp"
13040 do
13041 ac_preproc_ok=false
13042 for ac_cxx_preproc_warn_flag in '' yes
13043 do
13044 # Use a header file that comes with gcc, so configuring glibc
13045 # with a fresh cross-compiler works.
13046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13047 # <limits.h> exists even on freestanding compilers.
13048 # On the NeXT, cc -E runs the code through the compiler's parser,
13049 # not just through cpp. "Syntax error" is here to catch this case.
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h. */
13052 #ifdef __STDC__
13053 # include <limits.h>
13054 #else
13055 # include <assert.h>
13056 #endif
13057 Syntax error
13058 _ACEOF
13059 if ac_fn_cxx_try_cpp "$LINENO"; then :
13060
13061 else
13062 # Broken: fails on valid input.
13063 continue
13064 fi
13065 rm -f conftest.err conftest.i conftest.$ac_ext
13066
13067 # OK, works on sane cases. Now check whether nonexistent headers
13068 # can be detected and how.
13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070 /* end confdefs.h. */
13071 #include <ac_nonexistent.h>
13072 _ACEOF
13073 if ac_fn_cxx_try_cpp "$LINENO"; then :
13074 # Broken: success on invalid input.
13075 continue
13076 else
13077 # Passes both tests.
13078 ac_preproc_ok=:
13079 break
13080 fi
13081 rm -f conftest.err conftest.i conftest.$ac_ext
13082
13083 done
13084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13085 rm -f conftest.i conftest.err conftest.$ac_ext
13086 if $ac_preproc_ok; then :
13087 break
13088 fi
13089
13090 done
13091 ac_cv_prog_CXXCPP=$CXXCPP
13092
13093 fi
13094 CXXCPP=$ac_cv_prog_CXXCPP
13095 else
13096 ac_cv_prog_CXXCPP=$CXXCPP
13097 fi
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13099 $as_echo "$CXXCPP" >&6; }
13100 ac_preproc_ok=false
13101 for ac_cxx_preproc_warn_flag in '' yes
13102 do
13103 # Use a header file that comes with gcc, so configuring glibc
13104 # with a fresh cross-compiler works.
13105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13106 # <limits.h> exists even on freestanding compilers.
13107 # On the NeXT, cc -E runs the code through the compiler's parser,
13108 # not just through cpp. "Syntax error" is here to catch this case.
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13111 #ifdef __STDC__
13112 # include <limits.h>
13113 #else
13114 # include <assert.h>
13115 #endif
13116 Syntax error
13117 _ACEOF
13118 if ac_fn_cxx_try_cpp "$LINENO"; then :
13119
13120 else
13121 # Broken: fails on valid input.
13122 continue
13123 fi
13124 rm -f conftest.err conftest.i conftest.$ac_ext
13125
13126 # OK, works on sane cases. Now check whether nonexistent headers
13127 # can be detected and how.
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13130 #include <ac_nonexistent.h>
13131 _ACEOF
13132 if ac_fn_cxx_try_cpp "$LINENO"; then :
13133 # Broken: success on invalid input.
13134 continue
13135 else
13136 # Passes both tests.
13137 ac_preproc_ok=:
13138 break
13139 fi
13140 rm -f conftest.err conftest.i conftest.$ac_ext
13141
13142 done
13143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13144 rm -f conftest.i conftest.err conftest.$ac_ext
13145 if $ac_preproc_ok; then :
13146
13147 else
13148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13150 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13151 See \`config.log' for more details" "$LINENO" 5; }
13152 fi
13153
13154 ac_ext=c
13155 ac_cpp='$CPP $CPPFLAGS'
13156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13159
13160 else
13161 _lt_caught_CXX_error=yes
13162 fi
13163
13164 ac_ext=cpp
13165 ac_cpp='$CXXCPP $CPPFLAGS'
13166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13169
13170 archive_cmds_need_lc_CXX=no
13171 allow_undefined_flag_CXX=
13172 always_export_symbols_CXX=no
13173 archive_expsym_cmds_CXX=
13174 compiler_needs_object_CXX=no
13175 export_dynamic_flag_spec_CXX=
13176 hardcode_direct_CXX=no
13177 hardcode_direct_absolute_CXX=no
13178 hardcode_libdir_flag_spec_CXX=
13179 hardcode_libdir_flag_spec_ld_CXX=
13180 hardcode_libdir_separator_CXX=
13181 hardcode_minus_L_CXX=no
13182 hardcode_shlibpath_var_CXX=unsupported
13183 hardcode_automatic_CXX=no
13184 inherit_rpath_CXX=no
13185 module_cmds_CXX=
13186 module_expsym_cmds_CXX=
13187 link_all_deplibs_CXX=unknown
13188 old_archive_cmds_CXX=$old_archive_cmds
13189 reload_flag_CXX=$reload_flag
13190 reload_cmds_CXX=$reload_cmds
13191 no_undefined_flag_CXX=
13192 whole_archive_flag_spec_CXX=
13193 enable_shared_with_static_runtimes_CXX=no
13194
13195 # Source file extension for C++ test sources.
13196 ac_ext=cpp
13197
13198 # Object file extension for compiled C++ test sources.
13199 objext=o
13200 objext_CXX=$objext
13201
13202 # No sense in running all these tests if we already determined that
13203 # the CXX compiler isn't working. Some variables (like enable_shared)
13204 # are currently assumed to apply to all compilers on this platform,
13205 # and will be corrupted by setting them based on a non-working compiler.
13206 if test "$_lt_caught_CXX_error" != yes; then
13207 # Code to be used in simple compile tests
13208 lt_simple_compile_test_code="int some_variable = 0;"
13209
13210 # Code to be used in simple link tests
13211 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13212
13213 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13214
13215
13216
13217
13218
13219
13220 # If no C compiler was specified, use CC.
13221 LTCC=${LTCC-"$CC"}
13222
13223 # If no C compiler flags were specified, use CFLAGS.
13224 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13225
13226 # Allow CC to be a program name with arguments.
13227 compiler=$CC
13228
13229
13230 # save warnings/boilerplate of simple test code
13231 ac_outfile=conftest.$ac_objext
13232 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13233 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13234 _lt_compiler_boilerplate=`cat conftest.err`
13235 $RM conftest*
13236
13237 ac_outfile=conftest.$ac_objext
13238 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13239 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13240 _lt_linker_boilerplate=`cat conftest.err`
13241 $RM -r conftest*
13242
13243
13244 # Allow CC to be a program name with arguments.
13245 lt_save_CC=$CC
13246 lt_save_LD=$LD
13247 lt_save_GCC=$GCC
13248 GCC=$GXX
13249 lt_save_with_gnu_ld=$with_gnu_ld
13250 lt_save_path_LD=$lt_cv_path_LD
13251 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13252 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13253 else
13254 $as_unset lt_cv_prog_gnu_ld
13255 fi
13256 if test -n "${lt_cv_path_LDCXX+set}"; then
13257 lt_cv_path_LD=$lt_cv_path_LDCXX
13258 else
13259 $as_unset lt_cv_path_LD
13260 fi
13261 test -z "${LDCXX+set}" || LD=$LDCXX
13262 CC=${CXX-"c++"}
13263 compiler=$CC
13264 compiler_CXX=$CC
13265 for cc_temp in $compiler""; do
13266 case $cc_temp in
13267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13269 \-*) ;;
13270 *) break;;
13271 esac
13272 done
13273 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13274
13275
13276 if test -n "$compiler"; then
13277 # We don't want -fno-exception when compiling C++ code, so set the
13278 # no_builtin_flag separately
13279 if test "$GXX" = yes; then
13280 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13281 else
13282 lt_prog_compiler_no_builtin_flag_CXX=
13283 fi
13284
13285 if test "$GXX" = yes; then
13286 # Set up default GNU C++ configuration
13287
13288
13289
13290 # Check whether --with-gnu-ld was given.
13291 if test "${with_gnu_ld+set}" = set; then :
13292 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13293 else
13294 with_gnu_ld=no
13295 fi
13296
13297 ac_prog=ld
13298 if test "$GCC" = yes; then
13299 # Check if gcc -print-prog-name=ld gives a path.
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13301 $as_echo_n "checking for ld used by $CC... " >&6; }
13302 case $host in
13303 *-*-mingw*)
13304 # gcc leaves a trailing carriage return which upsets mingw
13305 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13306 *)
13307 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13308 esac
13309 case $ac_prog in
13310 # Accept absolute paths.
13311 [\\/]* | ?:[\\/]*)
13312 re_direlt='/[^/][^/]*/\.\./'
13313 # Canonicalize the pathname of ld
13314 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13315 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13316 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13317 done
13318 test -z "$LD" && LD="$ac_prog"
13319 ;;
13320 "")
13321 # If it fails, then pretend we aren't using GCC.
13322 ac_prog=ld
13323 ;;
13324 *)
13325 # If it is relative, then search for the first ld in PATH.
13326 with_gnu_ld=unknown
13327 ;;
13328 esac
13329 elif test "$with_gnu_ld" = yes; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13331 $as_echo_n "checking for GNU ld... " >&6; }
13332 else
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13334 $as_echo_n "checking for non-GNU ld... " >&6; }
13335 fi
13336 if ${lt_cv_path_LD+:} false; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339 if test -z "$LD"; then
13340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13341 for ac_dir in $PATH; do
13342 IFS="$lt_save_ifs"
13343 test -z "$ac_dir" && ac_dir=.
13344 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13345 lt_cv_path_LD="$ac_dir/$ac_prog"
13346 # Check to see if the program is GNU ld. I'd rather use --version,
13347 # but apparently some variants of GNU ld only accept -v.
13348 # Break only if it was the GNU/non-GNU ld that we prefer.
13349 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13350 *GNU* | *'with BFD'*)
13351 test "$with_gnu_ld" != no && break
13352 ;;
13353 *)
13354 test "$with_gnu_ld" != yes && break
13355 ;;
13356 esac
13357 fi
13358 done
13359 IFS="$lt_save_ifs"
13360 else
13361 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13362 fi
13363 fi
13364
13365 LD="$lt_cv_path_LD"
13366 if test -n "$LD"; then
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13368 $as_echo "$LD" >&6; }
13369 else
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371 $as_echo "no" >&6; }
13372 fi
13373 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13375 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13376 if ${lt_cv_prog_gnu_ld+:} false; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13380 case `$LD -v 2>&1 </dev/null` in
13381 *GNU* | *'with BFD'*)
13382 lt_cv_prog_gnu_ld=yes
13383 ;;
13384 *)
13385 lt_cv_prog_gnu_ld=no
13386 ;;
13387 esac
13388 fi
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13390 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13391 with_gnu_ld=$lt_cv_prog_gnu_ld
13392
13393
13394
13395
13396
13397
13398
13399 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13400 # archiving commands below assume that GNU ld is being used.
13401 if test "$with_gnu_ld" = yes; then
13402 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13403 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'
13404
13405 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13406 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13407
13408 # If archive_cmds runs LD, not CC, wlarc should be empty
13409 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13410 # investigate it a little bit more. (MM)
13411 wlarc='${wl}'
13412
13413 # ancient GNU ld didn't support --whole-archive et. al.
13414 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13415 $GREP 'no-whole-archive' > /dev/null; then
13416 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13417 else
13418 whole_archive_flag_spec_CXX=
13419 fi
13420 else
13421 with_gnu_ld=no
13422 wlarc=
13423
13424 # A generic and very simple default shared library creation
13425 # command for GNU C++ for the case where it uses the native
13426 # linker, instead of GNU ld. If possible, this setting should
13427 # overridden to take advantage of the native linker features on
13428 # the platform it is being used on.
13429 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13430 fi
13431
13432 # Commands to make compiler produce verbose output that lists
13433 # what "hidden" libraries, object files and flags are used when
13434 # linking a shared library.
13435 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13436
13437 else
13438 GXX=no
13439 with_gnu_ld=no
13440 wlarc=
13441 fi
13442
13443 # PORTME: fill in a description of your system's C++ link characteristics
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13445 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13446 ld_shlibs_CXX=yes
13447 case $host_os in
13448 aix3*)
13449 # FIXME: insert proper C++ library support
13450 ld_shlibs_CXX=no
13451 ;;
13452 aix[4-9]*)
13453 if test "$host_cpu" = ia64; then
13454 # On IA64, the linker does run time linking by default, so we don't
13455 # have to do anything special.
13456 aix_use_runtimelinking=no
13457 exp_sym_flag='-Bexport'
13458 no_entry_flag=""
13459 else
13460 aix_use_runtimelinking=no
13461
13462 # Test if we are trying to use run time linking or normal
13463 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13464 # need to do runtime linking.
13465 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13466 for ld_flag in $LDFLAGS; do
13467 case $ld_flag in
13468 *-brtl*)
13469 aix_use_runtimelinking=yes
13470 break
13471 ;;
13472 esac
13473 done
13474 ;;
13475 esac
13476
13477 exp_sym_flag='-bexport'
13478 no_entry_flag='-bnoentry'
13479 fi
13480
13481 # When large executables or shared objects are built, AIX ld can
13482 # have problems creating the table of contents. If linking a library
13483 # or program results in "error TOC overflow" add -mminimal-toc to
13484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13486
13487 archive_cmds_CXX=''
13488 hardcode_direct_CXX=yes
13489 hardcode_direct_absolute_CXX=yes
13490 hardcode_libdir_separator_CXX=':'
13491 link_all_deplibs_CXX=yes
13492 file_list_spec_CXX='${wl}-f,'
13493
13494 if test "$GXX" = yes; then
13495 case $host_os in aix4.[012]|aix4.[012].*)
13496 # We only want to do this on AIX 4.2 and lower, the check
13497 # below for broken collect2 doesn't work under 4.3+
13498 collect2name=`${CC} -print-prog-name=collect2`
13499 if test -f "$collect2name" &&
13500 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13501 then
13502 # We have reworked collect2
13503 :
13504 else
13505 # We have old collect2
13506 hardcode_direct_CXX=unsupported
13507 # It fails to find uninstalled libraries when the uninstalled
13508 # path is not listed in the libpath. Setting hardcode_minus_L
13509 # to unsupported forces relinking
13510 hardcode_minus_L_CXX=yes
13511 hardcode_libdir_flag_spec_CXX='-L$libdir'
13512 hardcode_libdir_separator_CXX=
13513 fi
13514 esac
13515 shared_flag='-shared'
13516 if test "$aix_use_runtimelinking" = yes; then
13517 shared_flag="$shared_flag "'${wl}-G'
13518 fi
13519 else
13520 # not using gcc
13521 if test "$host_cpu" = ia64; then
13522 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13523 # chokes on -Wl,-G. The following line is correct:
13524 shared_flag='-G'
13525 else
13526 if test "$aix_use_runtimelinking" = yes; then
13527 shared_flag='${wl}-G'
13528 else
13529 shared_flag='${wl}-bM:SRE'
13530 fi
13531 fi
13532 fi
13533
13534 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13535 # It seems that -bexpall does not export symbols beginning with
13536 # underscore (_), so it is better to generate a list of symbols to
13537 # export.
13538 always_export_symbols_CXX=yes
13539 if test "$aix_use_runtimelinking" = yes; then
13540 # Warning - without using the other runtime loading flags (-brtl),
13541 # -berok will link without error, but may produce a broken library.
13542 allow_undefined_flag_CXX='-berok'
13543 # Determine the default libpath from the value encoded in an empty
13544 # executable.
13545 if test x$gcc_no_link = xyes; then
13546 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13547 fi
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13550
13551 int
13552 main ()
13553 {
13554
13555 ;
13556 return 0;
13557 }
13558 _ACEOF
13559 if ac_fn_cxx_try_link "$LINENO"; then :
13560
13561 lt_aix_libpath_sed='
13562 /Import File Strings/,/^$/ {
13563 /^0/ {
13564 s/^0 *\(.*\)$/\1/
13565 p
13566 }
13567 }'
13568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13569 # Check for a 64-bit object if we didn't find anything.
13570 if test -z "$aix_libpath"; then
13571 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13572 fi
13573 fi
13574 rm -f core conftest.err conftest.$ac_objext \
13575 conftest$ac_exeext conftest.$ac_ext
13576 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13577
13578 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13579
13580 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"
13581 else
13582 if test "$host_cpu" = ia64; then
13583 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13584 allow_undefined_flag_CXX="-z nodefs"
13585 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"
13586 else
13587 # Determine the default libpath from the value encoded in an
13588 # empty executable.
13589 if test x$gcc_no_link = xyes; then
13590 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13591 fi
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13594
13595 int
13596 main ()
13597 {
13598
13599 ;
13600 return 0;
13601 }
13602 _ACEOF
13603 if ac_fn_cxx_try_link "$LINENO"; then :
13604
13605 lt_aix_libpath_sed='
13606 /Import File Strings/,/^$/ {
13607 /^0/ {
13608 s/^0 *\(.*\)$/\1/
13609 p
13610 }
13611 }'
13612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13613 # Check for a 64-bit object if we didn't find anything.
13614 if test -z "$aix_libpath"; then
13615 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13616 fi
13617 fi
13618 rm -f core conftest.err conftest.$ac_objext \
13619 conftest$ac_exeext conftest.$ac_ext
13620 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13621
13622 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13623 # Warning - without using the other run time loading flags,
13624 # -berok will link without error, but may produce a broken library.
13625 no_undefined_flag_CXX=' ${wl}-bernotok'
13626 allow_undefined_flag_CXX=' ${wl}-berok'
13627 if test "$with_gnu_ld" = yes; then
13628 # We only use this code for GNU lds that support --whole-archive.
13629 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13630 else
13631 # Exported symbols can be pulled into shared objects from archives
13632 whole_archive_flag_spec_CXX='$convenience'
13633 fi
13634 archive_cmds_need_lc_CXX=yes
13635 # This is similar to how AIX traditionally builds its shared
13636 # libraries.
13637 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'
13638 fi
13639 fi
13640 ;;
13641
13642 beos*)
13643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13644 allow_undefined_flag_CXX=unsupported
13645 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13646 # support --undefined. This deserves some investigation. FIXME
13647 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13648 else
13649 ld_shlibs_CXX=no
13650 fi
13651 ;;
13652
13653 chorus*)
13654 case $cc_basename in
13655 *)
13656 # FIXME: insert proper C++ library support
13657 ld_shlibs_CXX=no
13658 ;;
13659 esac
13660 ;;
13661
13662 cygwin* | mingw* | pw32* | cegcc*)
13663 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13664 # as there is no search path for DLLs.
13665 hardcode_libdir_flag_spec_CXX='-L$libdir'
13666 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13667 allow_undefined_flag_CXX=unsupported
13668 always_export_symbols_CXX=no
13669 enable_shared_with_static_runtimes_CXX=yes
13670
13671 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13672 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'
13673 # If the export-symbols file already is a .def file (1st line
13674 # is EXPORTS), use it as is; otherwise, prepend...
13675 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13676 cp $export_symbols $output_objdir/$soname.def;
13677 else
13678 echo EXPORTS > $output_objdir/$soname.def;
13679 cat $export_symbols >> $output_objdir/$soname.def;
13680 fi~
13681 $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'
13682 else
13683 ld_shlibs_CXX=no
13684 fi
13685 ;;
13686 darwin* | rhapsody*)
13687
13688
13689 archive_cmds_need_lc_CXX=no
13690 hardcode_direct_CXX=no
13691 hardcode_automatic_CXX=yes
13692 hardcode_shlibpath_var_CXX=unsupported
13693 if test "$lt_cv_ld_force_load" = "yes"; then
13694 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\"`'
13695 else
13696 whole_archive_flag_spec_CXX=''
13697 fi
13698 link_all_deplibs_CXX=yes
13699 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13700 case $cc_basename in
13701 ifort*) _lt_dar_can_shared=yes ;;
13702 *) _lt_dar_can_shared=$GCC ;;
13703 esac
13704 if test "$_lt_dar_can_shared" = "yes"; then
13705 output_verbose_link_cmd=func_echo_all
13706 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}"
13707 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13708 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}"
13709 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}"
13710 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13711 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}"
13712 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}"
13713 fi
13714
13715 else
13716 ld_shlibs_CXX=no
13717 fi
13718
13719 ;;
13720
13721 dgux*)
13722 case $cc_basename in
13723 ec++*)
13724 # FIXME: insert proper C++ library support
13725 ld_shlibs_CXX=no
13726 ;;
13727 ghcx*)
13728 # Green Hills C++ Compiler
13729 # FIXME: insert proper C++ library support
13730 ld_shlibs_CXX=no
13731 ;;
13732 *)
13733 # FIXME: insert proper C++ library support
13734 ld_shlibs_CXX=no
13735 ;;
13736 esac
13737 ;;
13738
13739 freebsd2.*)
13740 # C++ shared libraries reported to be fairly broken before
13741 # switch to ELF
13742 ld_shlibs_CXX=no
13743 ;;
13744
13745 freebsd-elf*)
13746 archive_cmds_need_lc_CXX=no
13747 ;;
13748
13749 freebsd* | dragonfly*)
13750 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13751 # conventions
13752 ld_shlibs_CXX=yes
13753 ;;
13754
13755 gnu*)
13756 ;;
13757
13758 haiku*)
13759 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13760 link_all_deplibs_CXX=yes
13761 ;;
13762
13763 hpux9*)
13764 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13765 hardcode_libdir_separator_CXX=:
13766 export_dynamic_flag_spec_CXX='${wl}-E'
13767 hardcode_direct_CXX=yes
13768 hardcode_minus_L_CXX=yes # Not in the search PATH,
13769 # but as the default
13770 # location of the library.
13771
13772 case $cc_basename in
13773 CC*)
13774 # FIXME: insert proper C++ library support
13775 ld_shlibs_CXX=no
13776 ;;
13777 aCC*)
13778 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'
13779 # Commands to make compiler produce verbose output that lists
13780 # what "hidden" libraries, object files and flags are used when
13781 # linking a shared library.
13782 #
13783 # There doesn't appear to be a way to prevent this compiler from
13784 # explicitly linking system object files so we need to strip them
13785 # from the output so that they don't get included in the library
13786 # dependencies.
13787 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"'
13788 ;;
13789 *)
13790 if test "$GXX" = yes; then
13791 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'
13792 else
13793 # FIXME: insert proper C++ library support
13794 ld_shlibs_CXX=no
13795 fi
13796 ;;
13797 esac
13798 ;;
13799
13800 hpux10*|hpux11*)
13801 if test $with_gnu_ld = no; then
13802 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13803 hardcode_libdir_separator_CXX=:
13804
13805 case $host_cpu in
13806 hppa*64*|ia64*)
13807 ;;
13808 *)
13809 export_dynamic_flag_spec_CXX='${wl}-E'
13810 ;;
13811 esac
13812 fi
13813 case $host_cpu in
13814 hppa*64*|ia64*)
13815 hardcode_direct_CXX=no
13816 hardcode_shlibpath_var_CXX=no
13817 ;;
13818 *)
13819 hardcode_direct_CXX=yes
13820 hardcode_direct_absolute_CXX=yes
13821 hardcode_minus_L_CXX=yes # Not in the search PATH,
13822 # but as the default
13823 # location of the library.
13824 ;;
13825 esac
13826
13827 case $cc_basename in
13828 CC*)
13829 # FIXME: insert proper C++ library support
13830 ld_shlibs_CXX=no
13831 ;;
13832 aCC*)
13833 case $host_cpu in
13834 hppa*64*)
13835 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13836 ;;
13837 ia64*)
13838 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13839 ;;
13840 *)
13841 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13842 ;;
13843 esac
13844 # Commands to make compiler produce verbose output that lists
13845 # what "hidden" libraries, object files and flags are used when
13846 # linking a shared library.
13847 #
13848 # There doesn't appear to be a way to prevent this compiler from
13849 # explicitly linking system object files so we need to strip them
13850 # from the output so that they don't get included in the library
13851 # dependencies.
13852 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"'
13853 ;;
13854 *)
13855 if test "$GXX" = yes; then
13856 if test $with_gnu_ld = no; then
13857 case $host_cpu in
13858 hppa*64*)
13859 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13860 ;;
13861 ia64*)
13862 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13863 ;;
13864 *)
13865 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'
13866 ;;
13867 esac
13868 fi
13869 else
13870 # FIXME: insert proper C++ library support
13871 ld_shlibs_CXX=no
13872 fi
13873 ;;
13874 esac
13875 ;;
13876
13877 interix[3-9]*)
13878 hardcode_direct_CXX=no
13879 hardcode_shlibpath_var_CXX=no
13880 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13881 export_dynamic_flag_spec_CXX='${wl}-E'
13882 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13883 # Instead, shared libraries are loaded at an image base (0x10000000 by
13884 # default) and relocated if they conflict, which is a slow very memory
13885 # consuming and fragmenting process. To avoid this, we pick a random,
13886 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13887 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13888 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'
13889 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'
13890 ;;
13891 irix5* | irix6*)
13892 case $cc_basename in
13893 CC*)
13894 # SGI C++
13895 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'
13896
13897 # Archives containing C++ object files must be created using
13898 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13899 # necessary to make sure instantiated templates are included
13900 # in the archive.
13901 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13902 ;;
13903 *)
13904 if test "$GXX" = yes; then
13905 if test "$with_gnu_ld" = no; then
13906 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'
13907 else
13908 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'
13909 fi
13910 fi
13911 link_all_deplibs_CXX=yes
13912 ;;
13913 esac
13914 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13915 hardcode_libdir_separator_CXX=:
13916 inherit_rpath_CXX=yes
13917 ;;
13918
13919 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13920 case $cc_basename in
13921 KCC*)
13922 # Kuck and Associates, Inc. (KAI) C++ Compiler
13923
13924 # KCC will only create a shared library if the output file
13925 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13926 # to its proper name (with version) after linking.
13927 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'
13928 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'
13929 # Commands to make compiler produce verbose output that lists
13930 # what "hidden" libraries, object files and flags are used when
13931 # linking a shared library.
13932 #
13933 # There doesn't appear to be a way to prevent this compiler from
13934 # explicitly linking system object files so we need to strip them
13935 # from the output so that they don't get included in the library
13936 # dependencies.
13937 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"'
13938
13939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13940 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13941
13942 # Archives containing C++ object files must be created using
13943 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13944 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13945 ;;
13946 icpc* | ecpc* )
13947 # Intel C++
13948 with_gnu_ld=yes
13949 # version 8.0 and above of icpc choke on multiply defined symbols
13950 # if we add $predep_objects and $postdep_objects, however 7.1 and
13951 # earlier do not add the objects themselves.
13952 case `$CC -V 2>&1` in
13953 *"Version 7."*)
13954 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13955 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'
13956 ;;
13957 *) # Version 8.0 or newer
13958 tmp_idyn=
13959 case $host_cpu in
13960 ia64*) tmp_idyn=' -i_dynamic';;
13961 esac
13962 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13963 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'
13964 ;;
13965 esac
13966 archive_cmds_need_lc_CXX=no
13967 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13968 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13969 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13970 ;;
13971 pgCC* | pgcpp*)
13972 # Portland Group C++ compiler
13973 case `$CC -V` in
13974 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13975 prelink_cmds_CXX='tpldir=Template.dir~
13976 rm -rf $tpldir~
13977 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13978 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13979 old_archive_cmds_CXX='tpldir=Template.dir~
13980 rm -rf $tpldir~
13981 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13982 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13983 $RANLIB $oldlib'
13984 archive_cmds_CXX='tpldir=Template.dir~
13985 rm -rf $tpldir~
13986 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13987 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13988 archive_expsym_cmds_CXX='tpldir=Template.dir~
13989 rm -rf $tpldir~
13990 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13991 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13992 ;;
13993 *) # Version 6 and above use weak symbols
13994 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13995 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'
13996 ;;
13997 esac
13998
13999 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14000 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14001 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'
14002 ;;
14003 cxx*)
14004 # Compaq C++
14005 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14006 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'
14007
14008 runpath_var=LD_RUN_PATH
14009 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14010 hardcode_libdir_separator_CXX=:
14011
14012 # Commands to make compiler produce verbose output that lists
14013 # what "hidden" libraries, object files and flags are used when
14014 # linking a shared library.
14015 #
14016 # There doesn't appear to be a way to prevent this compiler from
14017 # explicitly linking system object files so we need to strip them
14018 # from the output so that they don't get included in the library
14019 # dependencies.
14020 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'
14021 ;;
14022 xl* | mpixl* | bgxl*)
14023 # IBM XL 8.0 on PPC, with GNU ld
14024 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14025 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14026 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14027 if test "x$supports_anon_versioning" = xyes; then
14028 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14029 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14030 echo "local: *; };" >> $output_objdir/$libname.ver~
14031 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14032 fi
14033 ;;
14034 *)
14035 case `$CC -V 2>&1 | sed 5q` in
14036 *Sun\ C*)
14037 # Sun C++ 5.9
14038 no_undefined_flag_CXX=' -zdefs'
14039 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14040 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'
14041 hardcode_libdir_flag_spec_CXX='-R$libdir'
14042 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'
14043 compiler_needs_object_CXX=yes
14044
14045 # Not sure whether something based on
14046 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14047 # would be better.
14048 output_verbose_link_cmd='func_echo_all'
14049
14050 # Archives containing C++ object files must be created using
14051 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14052 # necessary to make sure instantiated templates are included
14053 # in the archive.
14054 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14055 ;;
14056 esac
14057 ;;
14058 esac
14059 ;;
14060
14061 lynxos*)
14062 # FIXME: insert proper C++ library support
14063 ld_shlibs_CXX=no
14064 ;;
14065
14066 m88k*)
14067 # FIXME: insert proper C++ library support
14068 ld_shlibs_CXX=no
14069 ;;
14070
14071 mvs*)
14072 case $cc_basename in
14073 cxx*)
14074 # FIXME: insert proper C++ library support
14075 ld_shlibs_CXX=no
14076 ;;
14077 *)
14078 # FIXME: insert proper C++ library support
14079 ld_shlibs_CXX=no
14080 ;;
14081 esac
14082 ;;
14083
14084 netbsd*)
14085 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14086 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14087 wlarc=
14088 hardcode_libdir_flag_spec_CXX='-R$libdir'
14089 hardcode_direct_CXX=yes
14090 hardcode_shlibpath_var_CXX=no
14091 fi
14092 # Workaround some broken pre-1.5 toolchains
14093 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14094 ;;
14095
14096 *nto* | *qnx*)
14097 ld_shlibs_CXX=yes
14098 ;;
14099
14100 openbsd2*)
14101 # C++ shared libraries are fairly broken
14102 ld_shlibs_CXX=no
14103 ;;
14104
14105 openbsd*)
14106 if test -f /usr/libexec/ld.so; then
14107 hardcode_direct_CXX=yes
14108 hardcode_shlibpath_var_CXX=no
14109 hardcode_direct_absolute_CXX=yes
14110 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14111 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14112 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14113 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14114 export_dynamic_flag_spec_CXX='${wl}-E'
14115 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14116 fi
14117 output_verbose_link_cmd=func_echo_all
14118 else
14119 ld_shlibs_CXX=no
14120 fi
14121 ;;
14122
14123 osf3* | osf4* | osf5*)
14124 case $cc_basename in
14125 KCC*)
14126 # Kuck and Associates, Inc. (KAI) C++ Compiler
14127
14128 # KCC will only create a shared library if the output file
14129 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14130 # to its proper name (with version) after linking.
14131 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'
14132
14133 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14134 hardcode_libdir_separator_CXX=:
14135
14136 # Archives containing C++ object files must be created using
14137 # the KAI C++ compiler.
14138 case $host in
14139 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14140 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14141 esac
14142 ;;
14143 RCC*)
14144 # Rational C++ 2.4.1
14145 # FIXME: insert proper C++ library support
14146 ld_shlibs_CXX=no
14147 ;;
14148 cxx*)
14149 case $host in
14150 osf3*)
14151 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14152 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'
14153 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14154 ;;
14155 *)
14156 allow_undefined_flag_CXX=' -expect_unresolved \*'
14157 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'
14158 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14159 echo "-hidden">> $lib.exp~
14160 $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~
14161 $RM $lib.exp'
14162 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14163 ;;
14164 esac
14165
14166 hardcode_libdir_separator_CXX=:
14167
14168 # Commands to make compiler produce verbose output that lists
14169 # what "hidden" libraries, object files and flags are used when
14170 # linking a shared library.
14171 #
14172 # There doesn't appear to be a way to prevent this compiler from
14173 # explicitly linking system object files so we need to strip them
14174 # from the output so that they don't get included in the library
14175 # dependencies.
14176 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"'
14177 ;;
14178 *)
14179 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14180 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14181 case $host in
14182 osf3*)
14183 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'
14184 ;;
14185 *)
14186 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'
14187 ;;
14188 esac
14189
14190 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14191 hardcode_libdir_separator_CXX=:
14192
14193 # Commands to make compiler produce verbose output that lists
14194 # what "hidden" libraries, object files and flags are used when
14195 # linking a shared library.
14196 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14197
14198 else
14199 # FIXME: insert proper C++ library support
14200 ld_shlibs_CXX=no
14201 fi
14202 ;;
14203 esac
14204 ;;
14205
14206 psos*)
14207 # FIXME: insert proper C++ library support
14208 ld_shlibs_CXX=no
14209 ;;
14210
14211 sunos4*)
14212 case $cc_basename in
14213 CC*)
14214 # Sun C++ 4.x
14215 # FIXME: insert proper C++ library support
14216 ld_shlibs_CXX=no
14217 ;;
14218 lcc*)
14219 # Lucid
14220 # FIXME: insert proper C++ library support
14221 ld_shlibs_CXX=no
14222 ;;
14223 *)
14224 # FIXME: insert proper C++ library support
14225 ld_shlibs_CXX=no
14226 ;;
14227 esac
14228 ;;
14229
14230 solaris*)
14231 case $cc_basename in
14232 CC*)
14233 # Sun C++ 4.2, 5.x and Centerline C++
14234 archive_cmds_need_lc_CXX=yes
14235 no_undefined_flag_CXX=' -zdefs'
14236 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14237 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14238 $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'
14239
14240 hardcode_libdir_flag_spec_CXX='-R$libdir'
14241 hardcode_shlibpath_var_CXX=no
14242 case $host_os in
14243 solaris2.[0-5] | solaris2.[0-5].*) ;;
14244 *)
14245 # The compiler driver will combine and reorder linker options,
14246 # but understands `-z linker_flag'.
14247 # Supported since Solaris 2.6 (maybe 2.5.1?)
14248 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14249 ;;
14250 esac
14251 link_all_deplibs_CXX=yes
14252
14253 output_verbose_link_cmd='func_echo_all'
14254
14255 # Archives containing C++ object files must be created using
14256 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14257 # necessary to make sure instantiated templates are included
14258 # in the archive.
14259 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14260 ;;
14261 gcx*)
14262 # Green Hills C++ Compiler
14263 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14264
14265 # The C++ compiler must be used to create the archive.
14266 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14267 ;;
14268 *)
14269 # GNU C++ compiler with Solaris linker
14270 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14271 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14272 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14273 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14274 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14275 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14276
14277 # Commands to make compiler produce verbose output that lists
14278 # what "hidden" libraries, object files and flags are used when
14279 # linking a shared library.
14280 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14281 else
14282 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14283 # platform.
14284 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14285 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14286 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14287
14288 # Commands to make compiler produce verbose output that lists
14289 # what "hidden" libraries, object files and flags are used when
14290 # linking a shared library.
14291 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14292 fi
14293
14294 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14295 case $host_os in
14296 solaris2.[0-5] | solaris2.[0-5].*) ;;
14297 *)
14298 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14299 ;;
14300 esac
14301 fi
14302 ;;
14303 esac
14304 ;;
14305
14306 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14307 no_undefined_flag_CXX='${wl}-z,text'
14308 archive_cmds_need_lc_CXX=no
14309 hardcode_shlibpath_var_CXX=no
14310 runpath_var='LD_RUN_PATH'
14311
14312 case $cc_basename in
14313 CC*)
14314 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14315 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14316 ;;
14317 *)
14318 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14319 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14320 ;;
14321 esac
14322 ;;
14323
14324 sysv5* | sco3.2v5* | sco5v6*)
14325 # Note: We can NOT use -z defs as we might desire, because we do not
14326 # link with -lc, and that would cause any symbols used from libc to
14327 # always be unresolved, which means just about no library would
14328 # ever link correctly. If we're not using GNU ld we use -z text
14329 # though, which does catch some bad symbols but isn't as heavy-handed
14330 # as -z defs.
14331 no_undefined_flag_CXX='${wl}-z,text'
14332 allow_undefined_flag_CXX='${wl}-z,nodefs'
14333 archive_cmds_need_lc_CXX=no
14334 hardcode_shlibpath_var_CXX=no
14335 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14336 hardcode_libdir_separator_CXX=':'
14337 link_all_deplibs_CXX=yes
14338 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14339 runpath_var='LD_RUN_PATH'
14340
14341 case $cc_basename in
14342 CC*)
14343 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14344 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14345 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14346 '"$old_archive_cmds_CXX"
14347 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14348 '"$reload_cmds_CXX"
14349 ;;
14350 *)
14351 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14352 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14353 ;;
14354 esac
14355 ;;
14356
14357 tandem*)
14358 case $cc_basename in
14359 NCC*)
14360 # NonStop-UX NCC 3.20
14361 # FIXME: insert proper C++ library support
14362 ld_shlibs_CXX=no
14363 ;;
14364 *)
14365 # FIXME: insert proper C++ library support
14366 ld_shlibs_CXX=no
14367 ;;
14368 esac
14369 ;;
14370
14371 vxworks*)
14372 # For VxWorks ports, we assume the use of a GNU linker with
14373 # standard elf conventions.
14374 ld_shlibs_CXX=yes
14375 ;;
14376
14377 *)
14378 # FIXME: insert proper C++ library support
14379 ld_shlibs_CXX=no
14380 ;;
14381 esac
14382
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14384 $as_echo "$ld_shlibs_CXX" >&6; }
14385 test "$ld_shlibs_CXX" = no && can_build_shared=no
14386
14387 GCC_CXX="$GXX"
14388 LD_CXX="$LD"
14389
14390 ## CAVEAT EMPTOR:
14391 ## There is no encapsulation within the following macros, do not change
14392 ## the running order or otherwise move them around unless you know exactly
14393 ## what you are doing...
14394 # Dependencies to place before and after the object being linked:
14395 predep_objects_CXX=
14396 postdep_objects_CXX=
14397 predeps_CXX=
14398 postdeps_CXX=
14399 compiler_lib_search_path_CXX=
14400
14401 cat > conftest.$ac_ext <<_LT_EOF
14402 class Foo
14403 {
14404 public:
14405 Foo (void) { a = 0; }
14406 private:
14407 int a;
14408 };
14409 _LT_EOF
14410
14411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14412 (eval $ac_compile) 2>&5
14413 ac_status=$?
14414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14415 test $ac_status = 0; }; then
14416 # Parse the compiler output and extract the necessary
14417 # objects, libraries and library flags.
14418
14419 # Sentinel used to keep track of whether or not we are before
14420 # the conftest object file.
14421 pre_test_object_deps_done=no
14422
14423 for p in `eval "$output_verbose_link_cmd"`; do
14424 case $p in
14425
14426 -L* | -R* | -l*)
14427 # Some compilers place space between "-{L,R}" and the path.
14428 # Remove the space.
14429 if test $p = "-L" ||
14430 test $p = "-R"; then
14431 prev=$p
14432 continue
14433 else
14434 prev=
14435 fi
14436
14437 if test "$pre_test_object_deps_done" = no; then
14438 case $p in
14439 -L* | -R*)
14440 # Internal compiler library paths should come after those
14441 # provided the user. The postdeps already come after the
14442 # user supplied libs so there is no need to process them.
14443 if test -z "$compiler_lib_search_path_CXX"; then
14444 compiler_lib_search_path_CXX="${prev}${p}"
14445 else
14446 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14447 fi
14448 ;;
14449 # The "-l" case would never come before the object being
14450 # linked, so don't bother handling this case.
14451 esac
14452 else
14453 if test -z "$postdeps_CXX"; then
14454 postdeps_CXX="${prev}${p}"
14455 else
14456 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14457 fi
14458 fi
14459 ;;
14460
14461 *.$objext)
14462 # This assumes that the test object file only shows up
14463 # once in the compiler output.
14464 if test "$p" = "conftest.$objext"; then
14465 pre_test_object_deps_done=yes
14466 continue
14467 fi
14468
14469 if test "$pre_test_object_deps_done" = no; then
14470 if test -z "$predep_objects_CXX"; then
14471 predep_objects_CXX="$p"
14472 else
14473 predep_objects_CXX="$predep_objects_CXX $p"
14474 fi
14475 else
14476 if test -z "$postdep_objects_CXX"; then
14477 postdep_objects_CXX="$p"
14478 else
14479 postdep_objects_CXX="$postdep_objects_CXX $p"
14480 fi
14481 fi
14482 ;;
14483
14484 *) ;; # Ignore the rest.
14485
14486 esac
14487 done
14488
14489 # Clean up.
14490 rm -f a.out a.exe
14491 else
14492 echo "libtool.m4: error: problem compiling CXX test program"
14493 fi
14494
14495 $RM -f confest.$objext
14496
14497 # PORTME: override above test on systems where it is broken
14498 case $host_os in
14499 interix[3-9]*)
14500 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14501 # hack all around it, let's just trust "g++" to DTRT.
14502 predep_objects_CXX=
14503 postdep_objects_CXX=
14504 postdeps_CXX=
14505 ;;
14506
14507 linux*)
14508 case `$CC -V 2>&1 | sed 5q` in
14509 *Sun\ C*)
14510 # Sun C++ 5.9
14511
14512 # The more standards-conforming stlport4 library is
14513 # incompatible with the Cstd library. Avoid specifying
14514 # it if it's in CXXFLAGS. Ignore libCrun as
14515 # -library=stlport4 depends on it.
14516 case " $CXX $CXXFLAGS " in
14517 *" -library=stlport4 "*)
14518 solaris_use_stlport4=yes
14519 ;;
14520 esac
14521
14522 if test "$solaris_use_stlport4" != yes; then
14523 postdeps_CXX='-library=Cstd -library=Crun'
14524 fi
14525 ;;
14526 esac
14527 ;;
14528
14529 solaris*)
14530 case $cc_basename in
14531 CC*)
14532 # The more standards-conforming stlport4 library is
14533 # incompatible with the Cstd library. Avoid specifying
14534 # it if it's in CXXFLAGS. Ignore libCrun as
14535 # -library=stlport4 depends on it.
14536 case " $CXX $CXXFLAGS " in
14537 *" -library=stlport4 "*)
14538 solaris_use_stlport4=yes
14539 ;;
14540 esac
14541
14542 # Adding this requires a known-good setup of shared libraries for
14543 # Sun compiler versions before 5.6, else PIC objects from an old
14544 # archive will be linked into the output, leading to subtle bugs.
14545 if test "$solaris_use_stlport4" != yes; then
14546 postdeps_CXX='-library=Cstd -library=Crun'
14547 fi
14548 ;;
14549 esac
14550 ;;
14551 esac
14552
14553
14554 case " $postdeps_CXX " in
14555 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14556 esac
14557 compiler_lib_search_dirs_CXX=
14558 if test -n "${compiler_lib_search_path_CXX}"; then
14559 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14560 fi
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592 lt_prog_compiler_wl_CXX=
14593 lt_prog_compiler_pic_CXX=
14594 lt_prog_compiler_static_CXX=
14595
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14597 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14598
14599 # C++ specific cases for pic, static, wl, etc.
14600 if test "$GXX" = yes; then
14601 lt_prog_compiler_wl_CXX='-Wl,'
14602 lt_prog_compiler_static_CXX='-static'
14603
14604 case $host_os in
14605 aix*)
14606 # All AIX code is PIC.
14607 if test "$host_cpu" = ia64; then
14608 # AIX 5 now supports IA64 processor
14609 lt_prog_compiler_static_CXX='-Bstatic'
14610 fi
14611 lt_prog_compiler_pic_CXX='-fPIC'
14612 ;;
14613
14614 amigaos*)
14615 case $host_cpu in
14616 powerpc)
14617 # see comment about AmigaOS4 .so support
14618 lt_prog_compiler_pic_CXX='-fPIC'
14619 ;;
14620 m68k)
14621 # FIXME: we need at least 68020 code to build shared libraries, but
14622 # adding the `-m68020' flag to GCC prevents building anything better,
14623 # like `-m68040'.
14624 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14625 ;;
14626 esac
14627 ;;
14628
14629 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14630 # PIC is the default for these OSes.
14631 ;;
14632 mingw* | cygwin* | os2* | pw32* | cegcc*)
14633 # This hack is so that the source file can tell whether it is being
14634 # built for inclusion in a dll (and should export symbols for example).
14635 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14636 # (--disable-auto-import) libraries
14637 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14638 ;;
14639 darwin* | rhapsody*)
14640 # PIC is the default on this platform
14641 # Common symbols not allowed in MH_DYLIB files
14642 lt_prog_compiler_pic_CXX='-fno-common'
14643 ;;
14644 *djgpp*)
14645 # DJGPP does not support shared libraries at all
14646 lt_prog_compiler_pic_CXX=
14647 ;;
14648 haiku*)
14649 # PIC is the default for Haiku.
14650 # The "-static" flag exists, but is broken.
14651 lt_prog_compiler_static_CXX=
14652 ;;
14653 interix[3-9]*)
14654 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14655 # Instead, we relocate shared libraries at runtime.
14656 ;;
14657 sysv4*MP*)
14658 if test -d /usr/nec; then
14659 lt_prog_compiler_pic_CXX=-Kconform_pic
14660 fi
14661 ;;
14662 hpux*)
14663 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14664 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14665 # sets the default TLS model and affects inlining.
14666 case $host_cpu in
14667 hppa*64*)
14668 ;;
14669 *)
14670 lt_prog_compiler_pic_CXX='-fPIC'
14671 ;;
14672 esac
14673 ;;
14674 *qnx* | *nto*)
14675 # QNX uses GNU C++, but need to define -shared option too, otherwise
14676 # it will coredump.
14677 lt_prog_compiler_pic_CXX='-fPIC -shared'
14678 ;;
14679 *)
14680 lt_prog_compiler_pic_CXX='-fPIC'
14681 ;;
14682 esac
14683 else
14684 case $host_os in
14685 aix[4-9]*)
14686 # All AIX code is PIC.
14687 if test "$host_cpu" = ia64; then
14688 # AIX 5 now supports IA64 processor
14689 lt_prog_compiler_static_CXX='-Bstatic'
14690 else
14691 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14692 fi
14693 ;;
14694 chorus*)
14695 case $cc_basename in
14696 cxch68*)
14697 # Green Hills C++ Compiler
14698 # _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"
14699 ;;
14700 esac
14701 ;;
14702 dgux*)
14703 case $cc_basename in
14704 ec++*)
14705 lt_prog_compiler_pic_CXX='-KPIC'
14706 ;;
14707 ghcx*)
14708 # Green Hills C++ Compiler
14709 lt_prog_compiler_pic_CXX='-pic'
14710 ;;
14711 *)
14712 ;;
14713 esac
14714 ;;
14715 freebsd* | dragonfly*)
14716 # FreeBSD uses GNU C++
14717 ;;
14718 hpux9* | hpux10* | hpux11*)
14719 case $cc_basename in
14720 CC*)
14721 lt_prog_compiler_wl_CXX='-Wl,'
14722 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14723 if test "$host_cpu" != ia64; then
14724 lt_prog_compiler_pic_CXX='+Z'
14725 fi
14726 ;;
14727 aCC*)
14728 lt_prog_compiler_wl_CXX='-Wl,'
14729 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14730 case $host_cpu in
14731 hppa*64*|ia64*)
14732 # +Z the default
14733 ;;
14734 *)
14735 lt_prog_compiler_pic_CXX='+Z'
14736 ;;
14737 esac
14738 ;;
14739 *)
14740 ;;
14741 esac
14742 ;;
14743 interix*)
14744 # This is c89, which is MS Visual C++ (no shared libs)
14745 # Anyone wants to do a port?
14746 ;;
14747 irix5* | irix6* | nonstopux*)
14748 case $cc_basename in
14749 CC*)
14750 lt_prog_compiler_wl_CXX='-Wl,'
14751 lt_prog_compiler_static_CXX='-non_shared'
14752 # CC pic flag -KPIC is the default.
14753 ;;
14754 *)
14755 ;;
14756 esac
14757 ;;
14758 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14759 case $cc_basename in
14760 KCC*)
14761 # KAI C++ Compiler
14762 lt_prog_compiler_wl_CXX='--backend -Wl,'
14763 lt_prog_compiler_pic_CXX='-fPIC'
14764 ;;
14765 ecpc* )
14766 # old Intel C++ for x86_64 which still supported -KPIC.
14767 lt_prog_compiler_wl_CXX='-Wl,'
14768 lt_prog_compiler_pic_CXX='-KPIC'
14769 lt_prog_compiler_static_CXX='-static'
14770 ;;
14771 icpc* )
14772 # Intel C++, used to be incompatible with GCC.
14773 # ICC 10 doesn't accept -KPIC any more.
14774 lt_prog_compiler_wl_CXX='-Wl,'
14775 lt_prog_compiler_pic_CXX='-fPIC'
14776 lt_prog_compiler_static_CXX='-static'
14777 ;;
14778 pgCC* | pgcpp*)
14779 # Portland Group C++ compiler
14780 lt_prog_compiler_wl_CXX='-Wl,'
14781 lt_prog_compiler_pic_CXX='-fpic'
14782 lt_prog_compiler_static_CXX='-Bstatic'
14783 ;;
14784 cxx*)
14785 # Compaq C++
14786 # Make sure the PIC flag is empty. It appears that all Alpha
14787 # Linux and Compaq Tru64 Unix objects are PIC.
14788 lt_prog_compiler_pic_CXX=
14789 lt_prog_compiler_static_CXX='-non_shared'
14790 ;;
14791 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14792 # IBM XL 8.0, 9.0 on PPC and BlueGene
14793 lt_prog_compiler_wl_CXX='-Wl,'
14794 lt_prog_compiler_pic_CXX='-qpic'
14795 lt_prog_compiler_static_CXX='-qstaticlink'
14796 ;;
14797 *)
14798 case `$CC -V 2>&1 | sed 5q` in
14799 *Sun\ C*)
14800 # Sun C++ 5.9
14801 lt_prog_compiler_pic_CXX='-KPIC'
14802 lt_prog_compiler_static_CXX='-Bstatic'
14803 lt_prog_compiler_wl_CXX='-Qoption ld '
14804 ;;
14805 esac
14806 ;;
14807 esac
14808 ;;
14809 lynxos*)
14810 ;;
14811 m88k*)
14812 ;;
14813 mvs*)
14814 case $cc_basename in
14815 cxx*)
14816 lt_prog_compiler_pic_CXX='-W c,exportall'
14817 ;;
14818 *)
14819 ;;
14820 esac
14821 ;;
14822 netbsd*)
14823 ;;
14824 *qnx* | *nto*)
14825 # QNX uses GNU C++, but need to define -shared option too, otherwise
14826 # it will coredump.
14827 lt_prog_compiler_pic_CXX='-fPIC -shared'
14828 ;;
14829 osf3* | osf4* | osf5*)
14830 case $cc_basename in
14831 KCC*)
14832 lt_prog_compiler_wl_CXX='--backend -Wl,'
14833 ;;
14834 RCC*)
14835 # Rational C++ 2.4.1
14836 lt_prog_compiler_pic_CXX='-pic'
14837 ;;
14838 cxx*)
14839 # Digital/Compaq C++
14840 lt_prog_compiler_wl_CXX='-Wl,'
14841 # Make sure the PIC flag is empty. It appears that all Alpha
14842 # Linux and Compaq Tru64 Unix objects are PIC.
14843 lt_prog_compiler_pic_CXX=
14844 lt_prog_compiler_static_CXX='-non_shared'
14845 ;;
14846 *)
14847 ;;
14848 esac
14849 ;;
14850 psos*)
14851 ;;
14852 solaris*)
14853 case $cc_basename in
14854 CC*)
14855 # Sun C++ 4.2, 5.x and Centerline C++
14856 lt_prog_compiler_pic_CXX='-KPIC'
14857 lt_prog_compiler_static_CXX='-Bstatic'
14858 lt_prog_compiler_wl_CXX='-Qoption ld '
14859 ;;
14860 gcx*)
14861 # Green Hills C++ Compiler
14862 lt_prog_compiler_pic_CXX='-PIC'
14863 ;;
14864 *)
14865 ;;
14866 esac
14867 ;;
14868 sunos4*)
14869 case $cc_basename in
14870 CC*)
14871 # Sun C++ 4.x
14872 lt_prog_compiler_pic_CXX='-pic'
14873 lt_prog_compiler_static_CXX='-Bstatic'
14874 ;;
14875 lcc*)
14876 # Lucid
14877 lt_prog_compiler_pic_CXX='-pic'
14878 ;;
14879 *)
14880 ;;
14881 esac
14882 ;;
14883 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14884 case $cc_basename in
14885 CC*)
14886 lt_prog_compiler_wl_CXX='-Wl,'
14887 lt_prog_compiler_pic_CXX='-KPIC'
14888 lt_prog_compiler_static_CXX='-Bstatic'
14889 ;;
14890 esac
14891 ;;
14892 tandem*)
14893 case $cc_basename in
14894 NCC*)
14895 # NonStop-UX NCC 3.20
14896 lt_prog_compiler_pic_CXX='-KPIC'
14897 ;;
14898 *)
14899 ;;
14900 esac
14901 ;;
14902 vxworks*)
14903 ;;
14904 *)
14905 lt_prog_compiler_can_build_shared_CXX=no
14906 ;;
14907 esac
14908 fi
14909
14910 case $host_os in
14911 # For platforms which do not support PIC, -DPIC is meaningless:
14912 *djgpp*)
14913 lt_prog_compiler_pic_CXX=
14914 ;;
14915 *)
14916 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14917 ;;
14918 esac
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14920 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14921
14922
14923
14924 #
14925 # Check to make sure the PIC flag actually works.
14926 #
14927 if test -n "$lt_prog_compiler_pic_CXX"; then
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14929 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14930 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14931 $as_echo_n "(cached) " >&6
14932 else
14933 lt_cv_prog_compiler_pic_works_CXX=no
14934 ac_outfile=conftest.$ac_objext
14935 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14936 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14937 # Insert the option either (1) after the last *FLAGS variable, or
14938 # (2) before a word containing "conftest.", or (3) at the end.
14939 # Note that $ac_compile itself does not contain backslashes and begins
14940 # with a dollar sign (not a hyphen), so the echo should work correctly.
14941 # The option is referenced via a variable to avoid confusing sed.
14942 lt_compile=`echo "$ac_compile" | $SED \
14943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14945 -e 's:$: $lt_compiler_flag:'`
14946 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14947 (eval "$lt_compile" 2>conftest.err)
14948 ac_status=$?
14949 cat conftest.err >&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 if (exit $ac_status) && test -s "$ac_outfile"; then
14952 # The compiler can only warn and ignore the option if not recognized
14953 # So say no if there are warnings other than the usual output.
14954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14956 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14957 lt_cv_prog_compiler_pic_works_CXX=yes
14958 fi
14959 fi
14960 $RM conftest*
14961
14962 fi
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14964 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14965
14966 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14967 case $lt_prog_compiler_pic_CXX in
14968 "" | " "*) ;;
14969 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14970 esac
14971 else
14972 lt_prog_compiler_pic_CXX=
14973 lt_prog_compiler_can_build_shared_CXX=no
14974 fi
14975
14976 fi
14977
14978
14979
14980 #
14981 # Check to make sure the static flag actually works.
14982 #
14983 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14985 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14986 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14987 $as_echo_n "(cached) " >&6
14988 else
14989 lt_cv_prog_compiler_static_works_CXX=no
14990 save_LDFLAGS="$LDFLAGS"
14991 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14992 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14993 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14994 # The linker can only warn and ignore the option if not recognized
14995 # So say no if there are warnings
14996 if test -s conftest.err; then
14997 # Append any errors to the config.log.
14998 cat conftest.err 1>&5
14999 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15001 if diff conftest.exp conftest.er2 >/dev/null; then
15002 lt_cv_prog_compiler_static_works_CXX=yes
15003 fi
15004 else
15005 lt_cv_prog_compiler_static_works_CXX=yes
15006 fi
15007 fi
15008 $RM -r conftest*
15009 LDFLAGS="$save_LDFLAGS"
15010
15011 fi
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15013 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15014
15015 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15016 :
15017 else
15018 lt_prog_compiler_static_CXX=
15019 fi
15020
15021
15022
15023
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15025 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15026 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15027 $as_echo_n "(cached) " >&6
15028 else
15029 lt_cv_prog_compiler_c_o_CXX=no
15030 $RM -r conftest 2>/dev/null
15031 mkdir conftest
15032 cd conftest
15033 mkdir out
15034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15035
15036 lt_compiler_flag="-o out/conftest2.$ac_objext"
15037 # Insert the option either (1) after the last *FLAGS variable, or
15038 # (2) before a word containing "conftest.", or (3) at the end.
15039 # Note that $ac_compile itself does not contain backslashes and begins
15040 # with a dollar sign (not a hyphen), so the echo should work correctly.
15041 lt_compile=`echo "$ac_compile" | $SED \
15042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15044 -e 's:$: $lt_compiler_flag:'`
15045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15046 (eval "$lt_compile" 2>out/conftest.err)
15047 ac_status=$?
15048 cat out/conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15051 then
15052 # The compiler can only warn and ignore the option if not recognized
15053 # So say no if there are warnings
15054 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15055 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15056 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15057 lt_cv_prog_compiler_c_o_CXX=yes
15058 fi
15059 fi
15060 chmod u+w . 2>&5
15061 $RM conftest*
15062 # SGI C++ compiler will create directory out/ii_files/ for
15063 # template instantiation
15064 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15065 $RM out/* && rmdir out
15066 cd ..
15067 $RM -r conftest
15068 $RM conftest*
15069
15070 fi
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15072 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15073
15074
15075
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15077 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15078 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15079 $as_echo_n "(cached) " >&6
15080 else
15081 lt_cv_prog_compiler_c_o_CXX=no
15082 $RM -r conftest 2>/dev/null
15083 mkdir conftest
15084 cd conftest
15085 mkdir out
15086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15087
15088 lt_compiler_flag="-o out/conftest2.$ac_objext"
15089 # Insert the option either (1) after the last *FLAGS variable, or
15090 # (2) before a word containing "conftest.", or (3) at the end.
15091 # Note that $ac_compile itself does not contain backslashes and begins
15092 # with a dollar sign (not a hyphen), so the echo should work correctly.
15093 lt_compile=`echo "$ac_compile" | $SED \
15094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15096 -e 's:$: $lt_compiler_flag:'`
15097 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15098 (eval "$lt_compile" 2>out/conftest.err)
15099 ac_status=$?
15100 cat out/conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15103 then
15104 # The compiler can only warn and ignore the option if not recognized
15105 # So say no if there are warnings
15106 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15107 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15108 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15109 lt_cv_prog_compiler_c_o_CXX=yes
15110 fi
15111 fi
15112 chmod u+w . 2>&5
15113 $RM conftest*
15114 # SGI C++ compiler will create directory out/ii_files/ for
15115 # template instantiation
15116 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15117 $RM out/* && rmdir out
15118 cd ..
15119 $RM -r conftest
15120 $RM conftest*
15121
15122 fi
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15124 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15125
15126
15127
15128
15129 hard_links="nottested"
15130 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15131 # do not overwrite the value of need_locks provided by the user
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15133 $as_echo_n "checking if we can lock with hard links... " >&6; }
15134 hard_links=yes
15135 $RM conftest*
15136 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15137 touch conftest.a
15138 ln conftest.a conftest.b 2>&5 || hard_links=no
15139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15141 $as_echo "$hard_links" >&6; }
15142 if test "$hard_links" = no; then
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15144 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15145 need_locks=warn
15146 fi
15147 else
15148 need_locks=no
15149 fi
15150
15151
15152
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15154 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15155
15156 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15157 case $host_os in
15158 aix[4-9]*)
15159 # If we're using GNU nm, then we don't want the "-C" option.
15160 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15161 # Also, AIX nm treats weak defined symbols like other global defined
15162 # symbols, whereas GNU nm marks them as "W".
15163 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15164 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'
15165 else
15166 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'
15167 fi
15168 ;;
15169 pw32*)
15170 export_symbols_cmds_CXX="$ltdll_cmds"
15171 ;;
15172 cygwin* | mingw* | cegcc*)
15173 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'
15174 ;;
15175 *)
15176 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15177 ;;
15178 esac
15179 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15180
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15182 $as_echo "$ld_shlibs_CXX" >&6; }
15183 test "$ld_shlibs_CXX" = no && can_build_shared=no
15184
15185 with_gnu_ld_CXX=$with_gnu_ld
15186
15187
15188
15189
15190
15191
15192 #
15193 # Do we need to explicitly link libc?
15194 #
15195 case "x$archive_cmds_need_lc_CXX" in
15196 x|xyes)
15197 # Assume -lc should be added
15198 archive_cmds_need_lc_CXX=yes
15199
15200 if test "$enable_shared" = yes && test "$GCC" = yes; then
15201 case $archive_cmds_CXX in
15202 *'~'*)
15203 # FIXME: we may have to deal with multi-command sequences.
15204 ;;
15205 '$CC '*)
15206 # Test whether the compiler implicitly links with -lc since on some
15207 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15208 # to ld, don't add -lc before -lgcc.
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15210 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15211 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15212 $as_echo_n "(cached) " >&6
15213 else
15214 $RM conftest*
15215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15216
15217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15218 (eval $ac_compile) 2>&5
15219 ac_status=$?
15220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15221 test $ac_status = 0; } 2>conftest.err; then
15222 soname=conftest
15223 lib=conftest
15224 libobjs=conftest.$ac_objext
15225 deplibs=
15226 wl=$lt_prog_compiler_wl_CXX
15227 pic_flag=$lt_prog_compiler_pic_CXX
15228 compiler_flags=-v
15229 linker_flags=-v
15230 verstring=
15231 output_objdir=.
15232 libname=conftest
15233 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15234 allow_undefined_flag_CXX=
15235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15236 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15237 ac_status=$?
15238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15239 test $ac_status = 0; }
15240 then
15241 lt_cv_archive_cmds_need_lc_CXX=no
15242 else
15243 lt_cv_archive_cmds_need_lc_CXX=yes
15244 fi
15245 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15246 else
15247 cat conftest.err 1>&5
15248 fi
15249 $RM conftest*
15250
15251 fi
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15253 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15254 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15255 ;;
15256 esac
15257 fi
15258 ;;
15259 esac
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15325 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15326
15327 library_names_spec=
15328 libname_spec='lib$name'
15329 soname_spec=
15330 shrext_cmds=".so"
15331 postinstall_cmds=
15332 postuninstall_cmds=
15333 finish_cmds=
15334 finish_eval=
15335 shlibpath_var=
15336 shlibpath_overrides_runpath=unknown
15337 version_type=none
15338 dynamic_linker="$host_os ld.so"
15339 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15340 need_lib_prefix=unknown
15341 hardcode_into_libs=no
15342
15343 # when you set need_version to no, make sure it does not cause -set_version
15344 # flags to be left without arguments
15345 need_version=unknown
15346
15347 case $host_os in
15348 aix3*)
15349 version_type=linux
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15351 shlibpath_var=LIBPATH
15352
15353 # AIX 3 has no versioning support, so we append a major version to the name.
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 ;;
15356
15357 aix[4-9]*)
15358 version_type=linux
15359 need_lib_prefix=no
15360 need_version=no
15361 hardcode_into_libs=yes
15362 if test "$host_cpu" = ia64; then
15363 # AIX 5 supports IA64
15364 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15365 shlibpath_var=LD_LIBRARY_PATH
15366 else
15367 # With GCC up to 2.95.x, collect2 would create an import file
15368 # for dependence libraries. The import file would start with
15369 # the line `#! .'. This would cause the generated library to
15370 # depend on `.', always an invalid library. This was fixed in
15371 # development snapshots of GCC prior to 3.0.
15372 case $host_os in
15373 aix4 | aix4.[01] | aix4.[01].*)
15374 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15375 echo ' yes '
15376 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15377 :
15378 else
15379 can_build_shared=no
15380 fi
15381 ;;
15382 esac
15383 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15384 # soname into executable. Probably we can add versioning support to
15385 # collect2, so additional links can be useful in future.
15386 if test "$aix_use_runtimelinking" = yes; then
15387 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15388 # instead of lib<name>.a to let people know that these are not
15389 # typical AIX shared libraries.
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15391 else
15392 # We preserve .a as extension for shared libraries through AIX4.2
15393 # and later when we are not doing run time linking.
15394 library_names_spec='${libname}${release}.a $libname.a'
15395 soname_spec='${libname}${release}${shared_ext}$major'
15396 fi
15397 shlibpath_var=LIBPATH
15398 fi
15399 ;;
15400
15401 amigaos*)
15402 case $host_cpu in
15403 powerpc)
15404 # Since July 2007 AmigaOS4 officially supports .so libraries.
15405 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407 ;;
15408 m68k)
15409 library_names_spec='$libname.ixlibrary $libname.a'
15410 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15411 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'
15412 ;;
15413 esac
15414 ;;
15415
15416 beos*)
15417 library_names_spec='${libname}${shared_ext}'
15418 dynamic_linker="$host_os ld.so"
15419 shlibpath_var=LIBRARY_PATH
15420 ;;
15421
15422 bsdi[45]*)
15423 version_type=linux
15424 need_version=no
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426 soname_spec='${libname}${release}${shared_ext}$major'
15427 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15430 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15431 # the default ld.so.conf also contains /usr/contrib/lib and
15432 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15433 # libtool to hard-code these into programs
15434 ;;
15435
15436 cygwin* | mingw* | pw32* | cegcc*)
15437 version_type=windows
15438 shrext_cmds=".dll"
15439 need_version=no
15440 need_lib_prefix=no
15441
15442 case $GCC,$host_os in
15443 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15444 library_names_spec='$libname.dll.a'
15445 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15446 postinstall_cmds='base_file=`basename \${file}`~
15447 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15448 dldir=$destdir/`dirname \$dlpath`~
15449 test -d \$dldir || mkdir -p \$dldir~
15450 $install_prog $dir/$dlname \$dldir/$dlname~
15451 chmod a+x \$dldir/$dlname~
15452 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15453 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15454 fi'
15455 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15456 dlpath=$dir/\$dldll~
15457 $RM \$dlpath'
15458 shlibpath_overrides_runpath=yes
15459
15460 case $host_os in
15461 cygwin*)
15462 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15463 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15464
15465 ;;
15466 mingw* | cegcc*)
15467 # MinGW DLLs use traditional 'lib' prefix
15468 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15469 ;;
15470 pw32*)
15471 # pw32 DLLs use 'pw' prefix rather than 'lib'
15472 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15473 ;;
15474 esac
15475 ;;
15476
15477 *)
15478 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15479 ;;
15480 esac
15481 dynamic_linker='Win32 ld.exe'
15482 # FIXME: first we should search . and the directory the executable is in
15483 shlibpath_var=PATH
15484 ;;
15485
15486 darwin* | rhapsody*)
15487 dynamic_linker="$host_os dyld"
15488 version_type=darwin
15489 need_lib_prefix=no
15490 need_version=no
15491 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15492 soname_spec='${libname}${release}${major}$shared_ext'
15493 shlibpath_overrides_runpath=yes
15494 shlibpath_var=DYLD_LIBRARY_PATH
15495 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15496
15497 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15498 ;;
15499
15500 dgux*)
15501 version_type=linux
15502 need_lib_prefix=no
15503 need_version=no
15504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15505 soname_spec='${libname}${release}${shared_ext}$major'
15506 shlibpath_var=LD_LIBRARY_PATH
15507 ;;
15508
15509 freebsd* | dragonfly*)
15510 # DragonFly does not have aout. When/if they implement a new
15511 # versioning mechanism, adjust this.
15512 if test -x /usr/bin/objformat; then
15513 objformat=`/usr/bin/objformat`
15514 else
15515 case $host_os in
15516 freebsd[23].*) objformat=aout ;;
15517 *) objformat=elf ;;
15518 esac
15519 fi
15520 version_type=freebsd-$objformat
15521 case $version_type in
15522 freebsd-elf*)
15523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15524 need_version=no
15525 need_lib_prefix=no
15526 ;;
15527 freebsd-*)
15528 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15529 need_version=yes
15530 ;;
15531 esac
15532 shlibpath_var=LD_LIBRARY_PATH
15533 case $host_os in
15534 freebsd2.*)
15535 shlibpath_overrides_runpath=yes
15536 ;;
15537 freebsd3.[01]* | freebsdelf3.[01]*)
15538 shlibpath_overrides_runpath=yes
15539 hardcode_into_libs=yes
15540 ;;
15541 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15542 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15543 shlibpath_overrides_runpath=no
15544 hardcode_into_libs=yes
15545 ;;
15546 *) # from 4.6 on, and DragonFly
15547 shlibpath_overrides_runpath=yes
15548 hardcode_into_libs=yes
15549 ;;
15550 esac
15551 ;;
15552
15553 haiku*)
15554 version_type=linux
15555 need_lib_prefix=no
15556 need_version=no
15557 dynamic_linker="$host_os runtime_loader"
15558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15559 soname_spec='${libname}${release}${shared_ext}$major'
15560 shlibpath_var=LIBRARY_PATH
15561 shlibpath_overrides_runpath=yes
15562 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15563 hardcode_into_libs=yes
15564 ;;
15565
15566 hpux9* | hpux10* | hpux11*)
15567 # Give a soname corresponding to the major version so that dld.sl refuses to
15568 # link against other versions.
15569 version_type=sunos
15570 need_lib_prefix=no
15571 need_version=no
15572 case $host_cpu in
15573 ia64*)
15574 shrext_cmds='.so'
15575 hardcode_into_libs=yes
15576 dynamic_linker="$host_os dld.so"
15577 shlibpath_var=LD_LIBRARY_PATH
15578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580 soname_spec='${libname}${release}${shared_ext}$major'
15581 if test "X$HPUX_IA64_MODE" = X32; then
15582 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15583 else
15584 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15585 fi
15586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15587 ;;
15588 hppa*64*)
15589 shrext_cmds='.sl'
15590 hardcode_into_libs=yes
15591 dynamic_linker="$host_os dld.sl"
15592 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15593 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15595 soname_spec='${libname}${release}${shared_ext}$major'
15596 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15598 ;;
15599 *)
15600 shrext_cmds='.sl'
15601 dynamic_linker="$host_os dld.sl"
15602 shlibpath_var=SHLIB_PATH
15603 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605 soname_spec='${libname}${release}${shared_ext}$major'
15606 ;;
15607 esac
15608 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15609 postinstall_cmds='chmod 555 $lib'
15610 # or fails outright, so override atomically:
15611 install_override_mode=555
15612 ;;
15613
15614 interix[3-9]*)
15615 version_type=linux
15616 need_lib_prefix=no
15617 need_version=no
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15619 soname_spec='${libname}${release}${shared_ext}$major'
15620 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15621 shlibpath_var=LD_LIBRARY_PATH
15622 shlibpath_overrides_runpath=no
15623 hardcode_into_libs=yes
15624 ;;
15625
15626 irix5* | irix6* | nonstopux*)
15627 case $host_os in
15628 nonstopux*) version_type=nonstopux ;;
15629 *)
15630 if test "$lt_cv_prog_gnu_ld" = yes; then
15631 version_type=linux
15632 else
15633 version_type=irix
15634 fi ;;
15635 esac
15636 need_lib_prefix=no
15637 need_version=no
15638 soname_spec='${libname}${release}${shared_ext}$major'
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15640 case $host_os in
15641 irix5* | nonstopux*)
15642 libsuff= shlibsuff=
15643 ;;
15644 *)
15645 case $LD in # libtool.m4 will add one of these switches to LD
15646 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15647 libsuff= shlibsuff= libmagic=32-bit;;
15648 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15649 libsuff=32 shlibsuff=N32 libmagic=N32;;
15650 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15651 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15652 *) libsuff= shlibsuff= libmagic=never-match;;
15653 esac
15654 ;;
15655 esac
15656 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15657 shlibpath_overrides_runpath=no
15658 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15659 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15660 hardcode_into_libs=yes
15661 ;;
15662
15663 # No shared lib support for Linux oldld, aout, or coff.
15664 linux*oldld* | linux*aout* | linux*coff*)
15665 dynamic_linker=no
15666 ;;
15667
15668 # This must be Linux ELF.
15669
15670 # uclinux* changes (here and below) have been submitted to the libtool
15671 # project, but have not yet been accepted: they are GCC-local changes
15672 # for the time being. (See
15673 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15674 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15675 version_type=linux
15676 need_lib_prefix=no
15677 need_version=no
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15679 soname_spec='${libname}${release}${shared_ext}$major'
15680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15681 shlibpath_var=LD_LIBRARY_PATH
15682 shlibpath_overrides_runpath=no
15683
15684 # Some binutils ld are patched to set DT_RUNPATH
15685 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15686 $as_echo_n "(cached) " >&6
15687 else
15688 lt_cv_shlibpath_overrides_runpath=no
15689 save_LDFLAGS=$LDFLAGS
15690 save_libdir=$libdir
15691 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15692 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15693 if test x$gcc_no_link = xyes; then
15694 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15695 fi
15696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15697 /* end confdefs.h. */
15698
15699 int
15700 main ()
15701 {
15702
15703 ;
15704 return 0;
15705 }
15706 _ACEOF
15707 if ac_fn_cxx_try_link "$LINENO"; then :
15708 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15709 lt_cv_shlibpath_overrides_runpath=yes
15710 fi
15711 fi
15712 rm -f core conftest.err conftest.$ac_objext \
15713 conftest$ac_exeext conftest.$ac_ext
15714 LDFLAGS=$save_LDFLAGS
15715 libdir=$save_libdir
15716
15717 fi
15718
15719 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15720
15721 # This implies no fast_install, which is unacceptable.
15722 # Some rework will be needed to allow for fast_install
15723 # before this can be enabled.
15724 hardcode_into_libs=yes
15725
15726 # Append ld.so.conf contents to the search path
15727 if test -f /etc/ld.so.conf; then
15728 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' ' '`
15729 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15730 fi
15731
15732 # We used to test for /lib/ld.so.1 and disable shared libraries on
15733 # powerpc, because MkLinux only supported shared libraries with the
15734 # GNU dynamic linker. Since this was broken with cross compilers,
15735 # most powerpc-linux boxes support dynamic linking these days and
15736 # people can always --disable-shared, the test was removed, and we
15737 # assume the GNU/Linux dynamic linker is in use.
15738 dynamic_linker='GNU/Linux ld.so'
15739 ;;
15740
15741 netbsd*)
15742 version_type=sunos
15743 need_lib_prefix=no
15744 need_version=no
15745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15748 dynamic_linker='NetBSD (a.out) ld.so'
15749 else
15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15751 soname_spec='${libname}${release}${shared_ext}$major'
15752 dynamic_linker='NetBSD ld.elf_so'
15753 fi
15754 shlibpath_var=LD_LIBRARY_PATH
15755 shlibpath_overrides_runpath=yes
15756 hardcode_into_libs=yes
15757 ;;
15758
15759 newsos6)
15760 version_type=linux
15761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15762 shlibpath_var=LD_LIBRARY_PATH
15763 shlibpath_overrides_runpath=yes
15764 ;;
15765
15766 *nto* | *qnx*)
15767 version_type=qnx
15768 need_lib_prefix=no
15769 need_version=no
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15771 soname_spec='${libname}${release}${shared_ext}$major'
15772 shlibpath_var=LD_LIBRARY_PATH
15773 shlibpath_overrides_runpath=no
15774 hardcode_into_libs=yes
15775 dynamic_linker='ldqnx.so'
15776 ;;
15777
15778 openbsd*)
15779 version_type=sunos
15780 sys_lib_dlsearch_path_spec="/usr/lib"
15781 need_lib_prefix=no
15782 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15783 case $host_os in
15784 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15785 *) need_version=no ;;
15786 esac
15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15789 shlibpath_var=LD_LIBRARY_PATH
15790 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15791 case $host_os in
15792 openbsd2.[89] | openbsd2.[89].*)
15793 shlibpath_overrides_runpath=no
15794 ;;
15795 *)
15796 shlibpath_overrides_runpath=yes
15797 ;;
15798 esac
15799 else
15800 shlibpath_overrides_runpath=yes
15801 fi
15802 ;;
15803
15804 os2*)
15805 libname_spec='$name'
15806 shrext_cmds=".dll"
15807 need_lib_prefix=no
15808 library_names_spec='$libname${shared_ext} $libname.a'
15809 dynamic_linker='OS/2 ld.exe'
15810 shlibpath_var=LIBPATH
15811 ;;
15812
15813 osf3* | osf4* | osf5*)
15814 version_type=osf
15815 need_lib_prefix=no
15816 need_version=no
15817 soname_spec='${libname}${release}${shared_ext}$major'
15818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15819 shlibpath_var=LD_LIBRARY_PATH
15820 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15821 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15822 ;;
15823
15824 rdos*)
15825 dynamic_linker=no
15826 ;;
15827
15828 solaris*)
15829 version_type=linux
15830 need_lib_prefix=no
15831 need_version=no
15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15833 soname_spec='${libname}${release}${shared_ext}$major'
15834 shlibpath_var=LD_LIBRARY_PATH
15835 shlibpath_overrides_runpath=yes
15836 hardcode_into_libs=yes
15837 # ldd complains unless libraries are executable
15838 postinstall_cmds='chmod +x $lib'
15839 ;;
15840
15841 sunos4*)
15842 version_type=sunos
15843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15844 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15845 shlibpath_var=LD_LIBRARY_PATH
15846 shlibpath_overrides_runpath=yes
15847 if test "$with_gnu_ld" = yes; then
15848 need_lib_prefix=no
15849 fi
15850 need_version=yes
15851 ;;
15852
15853 sysv4 | sysv4.3*)
15854 version_type=linux
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15856 soname_spec='${libname}${release}${shared_ext}$major'
15857 shlibpath_var=LD_LIBRARY_PATH
15858 case $host_vendor in
15859 sni)
15860 shlibpath_overrides_runpath=no
15861 need_lib_prefix=no
15862 runpath_var=LD_RUN_PATH
15863 ;;
15864 siemens)
15865 need_lib_prefix=no
15866 ;;
15867 motorola)
15868 need_lib_prefix=no
15869 need_version=no
15870 shlibpath_overrides_runpath=no
15871 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15872 ;;
15873 esac
15874 ;;
15875
15876 sysv4*MP*)
15877 if test -d /usr/nec ;then
15878 version_type=linux
15879 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15880 soname_spec='$libname${shared_ext}.$major'
15881 shlibpath_var=LD_LIBRARY_PATH
15882 fi
15883 ;;
15884
15885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15886 version_type=freebsd-elf
15887 need_lib_prefix=no
15888 need_version=no
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15890 soname_spec='${libname}${release}${shared_ext}$major'
15891 shlibpath_var=LD_LIBRARY_PATH
15892 shlibpath_overrides_runpath=yes
15893 hardcode_into_libs=yes
15894 if test "$with_gnu_ld" = yes; then
15895 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15896 else
15897 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15898 case $host_os in
15899 sco3.2v5*)
15900 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15901 ;;
15902 esac
15903 fi
15904 sys_lib_dlsearch_path_spec='/usr/lib'
15905 ;;
15906
15907 tpf*)
15908 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15909 version_type=linux
15910 need_lib_prefix=no
15911 need_version=no
15912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913 shlibpath_var=LD_LIBRARY_PATH
15914 shlibpath_overrides_runpath=no
15915 hardcode_into_libs=yes
15916 ;;
15917
15918 uts4*)
15919 version_type=linux
15920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15921 soname_spec='${libname}${release}${shared_ext}$major'
15922 shlibpath_var=LD_LIBRARY_PATH
15923 ;;
15924
15925 # Shared libraries for VwWorks, >= 7 only at this stage
15926 # and (fpic) still incompatible with "large" code models
15927 # in a few configurations. Only for RTP mode in any case,
15928 # and upon explicit request at configure time.
15929 vxworks7*)
15930 dynamic_linker=no
15931 case ${with_multisubdir}-${enable_shared} in
15932 *large*)
15933 ;;
15934 *mrtp*-yes)
15935 version_type=linux
15936 need_lib_prefix=no
15937 need_version=no
15938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939 soname_spec='${libname}${release}${shared_ext}$major'
15940 dynamic_linker="$host_os module_loader"
15941 ;;
15942 esac
15943 ;;
15944 *)
15945 dynamic_linker=no
15946 ;;
15947 esac
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15949 $as_echo "$dynamic_linker" >&6; }
15950 test "$dynamic_linker" = no && can_build_shared=no
15951
15952 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15953 if test "$GCC" = yes; then
15954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15955 fi
15956
15957 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15958 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15959 fi
15960 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15961 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15962 fi
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16002 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16003 hardcode_action_CXX=
16004 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16005 test -n "$runpath_var_CXX" ||
16006 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16007
16008 # We can hardcode non-existent directories.
16009 if test "$hardcode_direct_CXX" != no &&
16010 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16011 # have to relink, otherwise we might link with an installed library
16012 # when we should be linking with a yet-to-be-installed one
16013 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16014 test "$hardcode_minus_L_CXX" != no; then
16015 # Linking always hardcodes the temporary library directory.
16016 hardcode_action_CXX=relink
16017 else
16018 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16019 hardcode_action_CXX=immediate
16020 fi
16021 else
16022 # We cannot hardcode anything, or else we can only hardcode existing
16023 # directories.
16024 hardcode_action_CXX=unsupported
16025 fi
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16027 $as_echo "$hardcode_action_CXX" >&6; }
16028
16029 if test "$hardcode_action_CXX" = relink ||
16030 test "$inherit_rpath_CXX" = yes; then
16031 # Fast installation is not supported
16032 enable_fast_install=no
16033 elif test "$shlibpath_overrides_runpath" = yes ||
16034 test "$enable_shared" = no; then
16035 # Fast installation is not necessary
16036 enable_fast_install=needless
16037 fi
16038
16039
16040
16041
16042
16043
16044
16045 fi # test -n "$compiler"
16046
16047 CC=$lt_save_CC
16048 LDCXX=$LD
16049 LD=$lt_save_LD
16050 GCC=$lt_save_GCC
16051 with_gnu_ld=$lt_save_with_gnu_ld
16052 lt_cv_path_LDCXX=$lt_cv_path_LD
16053 lt_cv_path_LD=$lt_save_path_LD
16054 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16055 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16056 fi # test "$_lt_caught_CXX_error" != yes
16057
16058 ac_ext=c
16059 ac_cpp='$CPP $CPPFLAGS'
16060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076 ac_config_commands="$ac_config_commands libtool"
16077
16078
16079
16080
16081 # Only expand once:
16082
16083
16084 enable_dlopen=yes
16085
16086
16087
16088 # AM_PROG_LIBTOOL
16089
16090
16091
16092 ac_fn_c_check_type "$LINENO" "struct timezone" "ac_cv_type_struct_timezone" "$ac_includes_default"
16093 if test "x$ac_cv_type_struct_timezone" = xyes; then :
16094
16095 cat >>confdefs.h <<_ACEOF
16096 #define HAVE_STRUCT_TIMEZONE 1
16097 _ACEOF
16098
16099
16100 fi
16101 ac_fn_c_check_type "$LINENO" "struct stat" "ac_cv_type_struct_stat" "$ac_includes_default"
16102 if test "x$ac_cv_type_struct_stat" = xyes; then :
16103
16104 cat >>confdefs.h <<_ACEOF
16105 #define HAVE_STRUCT_STAT 1
16106 _ACEOF
16107
16108
16109 fi
16110 ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "$ac_includes_default"
16111 if test "x$ac_cv_type_struct_timeval" = xyes; then :
16112
16113 cat >>confdefs.h <<_ACEOF
16114 #define HAVE_STRUCT_TIMEVAL 1
16115 _ACEOF
16116
16117
16118 fi
16119
16120
16121 ac_ext=c
16122 ac_cpp='$CPP $CPPFLAGS'
16123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16126
16127 # Check the compiler.
16128 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
16129 # We must force CC to /not/ be precious variables; otherwise
16130 # the wrong, non-multilib-adjusted value will be used in multilibs.
16131 # As a side effect, we have to subst CFLAGS ourselves.
16132
16133
16134
16135 ac_ext=c
16136 ac_cpp='$CPP $CPPFLAGS'
16137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16140 if test -n "$ac_tool_prefix"; then
16141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16144 $as_echo_n "checking for $ac_word... " >&6; }
16145 if ${ac_cv_prog_CC+:} false; then :
16146 $as_echo_n "(cached) " >&6
16147 else
16148 if test -n "$CC"; then
16149 ac_cv_prog_CC="$CC" # Let the user override the test.
16150 else
16151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16152 for as_dir in $PATH
16153 do
16154 IFS=$as_save_IFS
16155 test -z "$as_dir" && as_dir=.
16156 for ac_exec_ext in '' $ac_executable_extensions; do
16157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
16159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16160 break 2
16161 fi
16162 done
16163 done
16164 IFS=$as_save_IFS
16165
16166 fi
16167 fi
16168 CC=$ac_cv_prog_CC
16169 if test -n "$CC"; then
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16171 $as_echo "$CC" >&6; }
16172 else
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16174 $as_echo "no" >&6; }
16175 fi
16176
16177
16178 fi
16179 if test -z "$ac_cv_prog_CC"; then
16180 ac_ct_CC=$CC
16181 # Extract the first word of "gcc", so it can be a program name with args.
16182 set dummy gcc; ac_word=$2
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16184 $as_echo_n "checking for $ac_word... " >&6; }
16185 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16186 $as_echo_n "(cached) " >&6
16187 else
16188 if test -n "$ac_ct_CC"; then
16189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16190 else
16191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16192 for as_dir in $PATH
16193 do
16194 IFS=$as_save_IFS
16195 test -z "$as_dir" && as_dir=.
16196 for ac_exec_ext in '' $ac_executable_extensions; do
16197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16198 ac_cv_prog_ac_ct_CC="gcc"
16199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16200 break 2
16201 fi
16202 done
16203 done
16204 IFS=$as_save_IFS
16205
16206 fi
16207 fi
16208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16209 if test -n "$ac_ct_CC"; then
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16211 $as_echo "$ac_ct_CC" >&6; }
16212 else
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16214 $as_echo "no" >&6; }
16215 fi
16216
16217 if test "x$ac_ct_CC" = x; then
16218 CC=""
16219 else
16220 case $cross_compiling:$ac_tool_warned in
16221 yes:)
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16224 ac_tool_warned=yes ;;
16225 esac
16226 CC=$ac_ct_CC
16227 fi
16228 else
16229 CC="$ac_cv_prog_CC"
16230 fi
16231
16232 if test -z "$CC"; then
16233 if test -n "$ac_tool_prefix"; then
16234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16235 set dummy ${ac_tool_prefix}cc; ac_word=$2
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16237 $as_echo_n "checking for $ac_word... " >&6; }
16238 if ${ac_cv_prog_CC+:} false; then :
16239 $as_echo_n "(cached) " >&6
16240 else
16241 if test -n "$CC"; then
16242 ac_cv_prog_CC="$CC" # Let the user override the test.
16243 else
16244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16245 for as_dir in $PATH
16246 do
16247 IFS=$as_save_IFS
16248 test -z "$as_dir" && as_dir=.
16249 for ac_exec_ext in '' $ac_executable_extensions; do
16250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16251 ac_cv_prog_CC="${ac_tool_prefix}cc"
16252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16253 break 2
16254 fi
16255 done
16256 done
16257 IFS=$as_save_IFS
16258
16259 fi
16260 fi
16261 CC=$ac_cv_prog_CC
16262 if test -n "$CC"; then
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16264 $as_echo "$CC" >&6; }
16265 else
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16267 $as_echo "no" >&6; }
16268 fi
16269
16270
16271 fi
16272 fi
16273 if test -z "$CC"; then
16274 # Extract the first word of "cc", so it can be a program name with args.
16275 set dummy cc; ac_word=$2
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16277 $as_echo_n "checking for $ac_word... " >&6; }
16278 if ${ac_cv_prog_CC+:} false; then :
16279 $as_echo_n "(cached) " >&6
16280 else
16281 if test -n "$CC"; then
16282 ac_cv_prog_CC="$CC" # Let the user override the test.
16283 else
16284 ac_prog_rejected=no
16285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16286 for as_dir in $PATH
16287 do
16288 IFS=$as_save_IFS
16289 test -z "$as_dir" && as_dir=.
16290 for ac_exec_ext in '' $ac_executable_extensions; do
16291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16293 ac_prog_rejected=yes
16294 continue
16295 fi
16296 ac_cv_prog_CC="cc"
16297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16298 break 2
16299 fi
16300 done
16301 done
16302 IFS=$as_save_IFS
16303
16304 if test $ac_prog_rejected = yes; then
16305 # We found a bogon in the path, so make sure we never use it.
16306 set dummy $ac_cv_prog_CC
16307 shift
16308 if test $# != 0; then
16309 # We chose a different compiler from the bogus one.
16310 # However, it has the same basename, so the bogon will be chosen
16311 # first if we set CC to just the basename; use the full file name.
16312 shift
16313 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16314 fi
16315 fi
16316 fi
16317 fi
16318 CC=$ac_cv_prog_CC
16319 if test -n "$CC"; then
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16321 $as_echo "$CC" >&6; }
16322 else
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16324 $as_echo "no" >&6; }
16325 fi
16326
16327
16328 fi
16329 if test -z "$CC"; then
16330 if test -n "$ac_tool_prefix"; then
16331 for ac_prog in cl.exe
16332 do
16333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16336 $as_echo_n "checking for $ac_word... " >&6; }
16337 if ${ac_cv_prog_CC+:} false; then :
16338 $as_echo_n "(cached) " >&6
16339 else
16340 if test -n "$CC"; then
16341 ac_cv_prog_CC="$CC" # Let the user override the test.
16342 else
16343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16344 for as_dir in $PATH
16345 do
16346 IFS=$as_save_IFS
16347 test -z "$as_dir" && as_dir=.
16348 for ac_exec_ext in '' $ac_executable_extensions; do
16349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16350 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16352 break 2
16353 fi
16354 done
16355 done
16356 IFS=$as_save_IFS
16357
16358 fi
16359 fi
16360 CC=$ac_cv_prog_CC
16361 if test -n "$CC"; then
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16363 $as_echo "$CC" >&6; }
16364 else
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16366 $as_echo "no" >&6; }
16367 fi
16368
16369
16370 test -n "$CC" && break
16371 done
16372 fi
16373 if test -z "$CC"; then
16374 ac_ct_CC=$CC
16375 for ac_prog in cl.exe
16376 do
16377 # Extract the first word of "$ac_prog", so it can be a program name with args.
16378 set dummy $ac_prog; ac_word=$2
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16380 $as_echo_n "checking for $ac_word... " >&6; }
16381 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16382 $as_echo_n "(cached) " >&6
16383 else
16384 if test -n "$ac_ct_CC"; then
16385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16386 else
16387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16388 for as_dir in $PATH
16389 do
16390 IFS=$as_save_IFS
16391 test -z "$as_dir" && as_dir=.
16392 for ac_exec_ext in '' $ac_executable_extensions; do
16393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16394 ac_cv_prog_ac_ct_CC="$ac_prog"
16395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16396 break 2
16397 fi
16398 done
16399 done
16400 IFS=$as_save_IFS
16401
16402 fi
16403 fi
16404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16405 if test -n "$ac_ct_CC"; then
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16407 $as_echo "$ac_ct_CC" >&6; }
16408 else
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16410 $as_echo "no" >&6; }
16411 fi
16412
16413
16414 test -n "$ac_ct_CC" && break
16415 done
16416
16417 if test "x$ac_ct_CC" = x; then
16418 CC=""
16419 else
16420 case $cross_compiling:$ac_tool_warned in
16421 yes:)
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16424 ac_tool_warned=yes ;;
16425 esac
16426 CC=$ac_ct_CC
16427 fi
16428 fi
16429
16430 fi
16431
16432
16433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16435 as_fn_error $? "no acceptable C compiler found in \$PATH
16436 See \`config.log' for more details" "$LINENO" 5; }
16437
16438 # Provide some information about the compiler.
16439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16440 set X $ac_compile
16441 ac_compiler=$2
16442 for ac_option in --version -v -V -qversion; do
16443 { { ac_try="$ac_compiler $ac_option >&5"
16444 case "(($ac_try" in
16445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446 *) ac_try_echo=$ac_try;;
16447 esac
16448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16449 $as_echo "$ac_try_echo"; } >&5
16450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16451 ac_status=$?
16452 if test -s conftest.err; then
16453 sed '10a\
16454 ... rest of stderr output deleted ...
16455 10q' conftest.err >conftest.er1
16456 cat conftest.er1 >&5
16457 fi
16458 rm -f conftest.er1 conftest.err
16459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16460 test $ac_status = 0; }
16461 done
16462
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
16464 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
16465 if ${ac_cv_c_compiler_gnu+:} false; then :
16466 $as_echo_n "(cached) " >&6
16467 else
16468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16469 /* end confdefs.h. */
16470
16471 int
16472 main ()
16473 {
16474 #ifndef __GNUC__
16475 choke me
16476 #endif
16477
16478 ;
16479 return 0;
16480 }
16481 _ACEOF
16482 if ac_fn_c_try_compile "$LINENO"; then :
16483 ac_compiler_gnu=yes
16484 else
16485 ac_compiler_gnu=no
16486 fi
16487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16488 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16489
16490 fi
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16492 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
16493 if test $ac_compiler_gnu = yes; then
16494 GCC=yes
16495 else
16496 GCC=
16497 fi
16498 ac_test_CFLAGS=${CFLAGS+set}
16499 ac_save_CFLAGS=$CFLAGS
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16501 $as_echo_n "checking whether $CC accepts -g... " >&6; }
16502 if ${ac_cv_prog_cc_g+:} false; then :
16503 $as_echo_n "(cached) " >&6
16504 else
16505 ac_save_c_werror_flag=$ac_c_werror_flag
16506 ac_c_werror_flag=yes
16507 ac_cv_prog_cc_g=no
16508 CFLAGS="-g"
16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16511
16512 int
16513 main ()
16514 {
16515
16516 ;
16517 return 0;
16518 }
16519 _ACEOF
16520 if ac_fn_c_try_compile "$LINENO"; then :
16521 ac_cv_prog_cc_g=yes
16522 else
16523 CFLAGS=""
16524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16525 /* end confdefs.h. */
16526
16527 int
16528 main ()
16529 {
16530
16531 ;
16532 return 0;
16533 }
16534 _ACEOF
16535 if ac_fn_c_try_compile "$LINENO"; then :
16536
16537 else
16538 ac_c_werror_flag=$ac_save_c_werror_flag
16539 CFLAGS="-g"
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16542
16543 int
16544 main ()
16545 {
16546
16547 ;
16548 return 0;
16549 }
16550 _ACEOF
16551 if ac_fn_c_try_compile "$LINENO"; then :
16552 ac_cv_prog_cc_g=yes
16553 fi
16554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16555 fi
16556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557 fi
16558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16559 ac_c_werror_flag=$ac_save_c_werror_flag
16560 fi
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16562 $as_echo "$ac_cv_prog_cc_g" >&6; }
16563 if test "$ac_test_CFLAGS" = set; then
16564 CFLAGS=$ac_save_CFLAGS
16565 elif test $ac_cv_prog_cc_g = yes; then
16566 if test "$GCC" = yes; then
16567 CFLAGS="-g -O2"
16568 else
16569 CFLAGS="-g"
16570 fi
16571 else
16572 if test "$GCC" = yes; then
16573 CFLAGS="-O2"
16574 else
16575 CFLAGS=
16576 fi
16577 fi
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16579 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16580 if ${ac_cv_prog_cc_c89+:} false; then :
16581 $as_echo_n "(cached) " >&6
16582 else
16583 ac_cv_prog_cc_c89=no
16584 ac_save_CC=$CC
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h. */
16587 #include <stdarg.h>
16588 #include <stdio.h>
16589 struct stat;
16590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16591 struct buf { int x; };
16592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16593 static char *e (p, i)
16594 char **p;
16595 int i;
16596 {
16597 return p[i];
16598 }
16599 static char *f (char * (*g) (char **, int), char **p, ...)
16600 {
16601 char *s;
16602 va_list v;
16603 va_start (v,p);
16604 s = g (p, va_arg (v,int));
16605 va_end (v);
16606 return s;
16607 }
16608
16609 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16610 function prototypes and stuff, but not '\xHH' hex character constants.
16611 These don't provoke an error unfortunately, instead are silently treated
16612 as 'x'. The following induces an error, until -std is added to get
16613 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16614 array size at least. It's necessary to write '\x00'==0 to get something
16615 that's true only with -std. */
16616 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16617
16618 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16619 inside strings and character constants. */
16620 #define FOO(x) 'x'
16621 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16622
16623 int test (int i, double x);
16624 struct s1 {int (*f) (int a);};
16625 struct s2 {int (*f) (double a);};
16626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16627 int argc;
16628 char **argv;
16629 int
16630 main ()
16631 {
16632 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16633 ;
16634 return 0;
16635 }
16636 _ACEOF
16637 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16638 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16639 do
16640 CC="$ac_save_CC $ac_arg"
16641 if ac_fn_c_try_compile "$LINENO"; then :
16642 ac_cv_prog_cc_c89=$ac_arg
16643 fi
16644 rm -f core conftest.err conftest.$ac_objext
16645 test "x$ac_cv_prog_cc_c89" != "xno" && break
16646 done
16647 rm -f conftest.$ac_ext
16648 CC=$ac_save_CC
16649
16650 fi
16651 # AC_CACHE_VAL
16652 case "x$ac_cv_prog_cc_c89" in
16653 x)
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16655 $as_echo "none needed" >&6; } ;;
16656 xno)
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16658 $as_echo "unsupported" >&6; } ;;
16659 *)
16660 CC="$CC $ac_cv_prog_cc_c89"
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16662 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16663 esac
16664 if test "x$ac_cv_prog_cc_c89" != xno; then :
16665
16666 fi
16667
16668 ac_ext=c
16669 ac_cpp='$CPP $CPPFLAGS'
16670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16673
16674 ac_ext=c
16675 ac_cpp='$CPP $CPPFLAGS'
16676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
16680 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
16681 if ${am_cv_prog_cc_c_o+:} false; then :
16682 $as_echo_n "(cached) " >&6
16683 else
16684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16685 /* end confdefs.h. */
16686
16687 int
16688 main ()
16689 {
16690
16691 ;
16692 return 0;
16693 }
16694 _ACEOF
16695 # Make sure it works both with $CC and with simple cc.
16696 # Following AC_PROG_CC_C_O, we do the test twice because some
16697 # compilers refuse to overwrite an existing .o file with -o,
16698 # though they will create one.
16699 am_cv_prog_cc_c_o=yes
16700 for am_i in 1 2; do
16701 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
16702 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } \
16706 && test -f conftest2.$ac_objext; then
16707 : OK
16708 else
16709 am_cv_prog_cc_c_o=no
16710 break
16711 fi
16712 done
16713 rm -f core conftest*
16714 unset am_i
16715 fi
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
16717 $as_echo "$am_cv_prog_cc_c_o" >&6; }
16718 if test "$am_cv_prog_cc_c_o" != yes; then
16719 # Losing compiler, so override with the script.
16720 # FIXME: It is wrong to rewrite CC.
16721 # But if we don't then we get into trouble of one sort or another.
16722 # A longer-term fix would be to have automake use am__CC in this case,
16723 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16724 CC="$am_aux_dir/compile $CC"
16725 fi
16726 ac_ext=c
16727 ac_cpp='$CPP $CPPFLAGS'
16728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for access" >&5
16743 $as_echo_n "checking m2 front end checking c library for access... " >&6; }
16744 if test x$gcc_no_link != xyes; then
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for access in -lc" >&5
16746 $as_echo_n "checking for access in -lc... " >&6; }
16747 if ${ac_cv_lib_c_access+:} false; then :
16748 $as_echo_n "(cached) " >&6
16749 else
16750 ac_check_lib_save_LIBS=$LIBS
16751 LIBS="-lc $LIBS"
16752 if test x$gcc_no_link = xyes; then
16753 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16754 fi
16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16757
16758 /* Override any GCC internal prototype to avoid an error.
16759 Use char because int might match the return type of a GCC
16760 builtin and then its argument prototype would still apply. */
16761 #ifdef __cplusplus
16762 extern "C"
16763 #endif
16764 char access ();
16765 int
16766 main ()
16767 {
16768 return access ();
16769 ;
16770 return 0;
16771 }
16772 _ACEOF
16773 if ac_fn_c_try_link "$LINENO"; then :
16774 ac_cv_lib_c_access=yes
16775 else
16776 ac_cv_lib_c_access=no
16777 fi
16778 rm -f core conftest.err conftest.$ac_objext \
16779 conftest$ac_exeext conftest.$ac_ext
16780 LIBS=$ac_check_lib_save_LIBS
16781 fi
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_access" >&5
16783 $as_echo "$ac_cv_lib_c_access" >&6; }
16784 if test "x$ac_cv_lib_c_access" = xyes; then :
16785
16786 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
16787
16788 else
16789
16790 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
16791
16792 fi
16793
16794 else
16795 if test "x$ac_cv_lib_c_access" = xyes; then
16796
16797 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
16798
16799 elif test "x$ac_cv_func_access" = xyes; then
16800
16801 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
16802
16803 else
16804
16805 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
16806
16807 fi
16808 fi
16809
16810
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for brk" >&5
16812 $as_echo_n "checking m2 front end checking c library for brk... " >&6; }
16813 if test x$gcc_no_link != xyes; then
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for brk in -lc" >&5
16815 $as_echo_n "checking for brk in -lc... " >&6; }
16816 if ${ac_cv_lib_c_brk+:} false; then :
16817 $as_echo_n "(cached) " >&6
16818 else
16819 ac_check_lib_save_LIBS=$LIBS
16820 LIBS="-lc $LIBS"
16821 if test x$gcc_no_link = xyes; then
16822 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16823 fi
16824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16825 /* end confdefs.h. */
16826
16827 /* Override any GCC internal prototype to avoid an error.
16828 Use char because int might match the return type of a GCC
16829 builtin and then its argument prototype would still apply. */
16830 #ifdef __cplusplus
16831 extern "C"
16832 #endif
16833 char brk ();
16834 int
16835 main ()
16836 {
16837 return brk ();
16838 ;
16839 return 0;
16840 }
16841 _ACEOF
16842 if ac_fn_c_try_link "$LINENO"; then :
16843 ac_cv_lib_c_brk=yes
16844 else
16845 ac_cv_lib_c_brk=no
16846 fi
16847 rm -f core conftest.err conftest.$ac_objext \
16848 conftest$ac_exeext conftest.$ac_ext
16849 LIBS=$ac_check_lib_save_LIBS
16850 fi
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_brk" >&5
16852 $as_echo "$ac_cv_lib_c_brk" >&6; }
16853 if test "x$ac_cv_lib_c_brk" = xyes; then :
16854
16855 $as_echo "#define HAVE_BRK 1" >>confdefs.h
16856
16857 else
16858
16859 $as_echo "#undef HAVE_BRK" >>confdefs.h
16860
16861 fi
16862
16863 else
16864 if test "x$ac_cv_lib_c_brk" = xyes; then
16865
16866 $as_echo "#define HAVE_BRK 1" >>confdefs.h
16867
16868 elif test "x$ac_cv_func_brk" = xyes; then
16869
16870 $as_echo "#define HAVE_BRK 1" >>confdefs.h
16871
16872 else
16873
16874 $as_echo "#undef HAVE_BRK" >>confdefs.h
16875
16876 fi
16877 fi
16878
16879
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for cfmakeraw" >&5
16881 $as_echo_n "checking m2 front end checking c library for cfmakeraw... " >&6; }
16882 if test x$gcc_no_link != xyes; then
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfmakeraw in -lc" >&5
16884 $as_echo_n "checking for cfmakeraw in -lc... " >&6; }
16885 if ${ac_cv_lib_c_cfmakeraw+:} false; then :
16886 $as_echo_n "(cached) " >&6
16887 else
16888 ac_check_lib_save_LIBS=$LIBS
16889 LIBS="-lc $LIBS"
16890 if test x$gcc_no_link = xyes; then
16891 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16892 fi
16893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16894 /* end confdefs.h. */
16895
16896 /* Override any GCC internal prototype to avoid an error.
16897 Use char because int might match the return type of a GCC
16898 builtin and then its argument prototype would still apply. */
16899 #ifdef __cplusplus
16900 extern "C"
16901 #endif
16902 char cfmakeraw ();
16903 int
16904 main ()
16905 {
16906 return cfmakeraw ();
16907 ;
16908 return 0;
16909 }
16910 _ACEOF
16911 if ac_fn_c_try_link "$LINENO"; then :
16912 ac_cv_lib_c_cfmakeraw=yes
16913 else
16914 ac_cv_lib_c_cfmakeraw=no
16915 fi
16916 rm -f core conftest.err conftest.$ac_objext \
16917 conftest$ac_exeext conftest.$ac_ext
16918 LIBS=$ac_check_lib_save_LIBS
16919 fi
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_cfmakeraw" >&5
16921 $as_echo "$ac_cv_lib_c_cfmakeraw" >&6; }
16922 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then :
16923
16924 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
16925
16926 else
16927
16928 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
16929
16930 fi
16931
16932 else
16933 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then
16934
16935 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
16936
16937 elif test "x$ac_cv_func_cfmakeraw" = xyes; then
16938
16939 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
16940
16941 else
16942
16943 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
16944
16945 fi
16946 fi
16947
16948
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for close" >&5
16950 $as_echo_n "checking m2 front end checking c library for close... " >&6; }
16951 if test x$gcc_no_link != xyes; then
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lc" >&5
16953 $as_echo_n "checking for close in -lc... " >&6; }
16954 if ${ac_cv_lib_c_close+:} false; then :
16955 $as_echo_n "(cached) " >&6
16956 else
16957 ac_check_lib_save_LIBS=$LIBS
16958 LIBS="-lc $LIBS"
16959 if test x$gcc_no_link = xyes; then
16960 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16961 fi
16962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963 /* end confdefs.h. */
16964
16965 /* Override any GCC internal prototype to avoid an error.
16966 Use char because int might match the return type of a GCC
16967 builtin and then its argument prototype would still apply. */
16968 #ifdef __cplusplus
16969 extern "C"
16970 #endif
16971 char close ();
16972 int
16973 main ()
16974 {
16975 return close ();
16976 ;
16977 return 0;
16978 }
16979 _ACEOF
16980 if ac_fn_c_try_link "$LINENO"; then :
16981 ac_cv_lib_c_close=yes
16982 else
16983 ac_cv_lib_c_close=no
16984 fi
16985 rm -f core conftest.err conftest.$ac_objext \
16986 conftest$ac_exeext conftest.$ac_ext
16987 LIBS=$ac_check_lib_save_LIBS
16988 fi
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_close" >&5
16990 $as_echo "$ac_cv_lib_c_close" >&6; }
16991 if test "x$ac_cv_lib_c_close" = xyes; then :
16992
16993 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
16994
16995 else
16996
16997 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
16998
16999 fi
17000
17001 else
17002 if test "x$ac_cv_lib_c_close" = xyes; then
17003
17004 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
17005
17006 elif test "x$ac_cv_func_close" = xyes; then
17007
17008 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
17009
17010 else
17011
17012 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
17013
17014 fi
17015 fi
17016
17017
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ctime" >&5
17019 $as_echo_n "checking m2 front end checking c library for ctime... " >&6; }
17020 if test x$gcc_no_link != xyes; then
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime in -lc" >&5
17022 $as_echo_n "checking for ctime in -lc... " >&6; }
17023 if ${ac_cv_lib_c_ctime+:} false; then :
17024 $as_echo_n "(cached) " >&6
17025 else
17026 ac_check_lib_save_LIBS=$LIBS
17027 LIBS="-lc $LIBS"
17028 if test x$gcc_no_link = xyes; then
17029 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17030 fi
17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17033
17034 /* Override any GCC internal prototype to avoid an error.
17035 Use char because int might match the return type of a GCC
17036 builtin and then its argument prototype would still apply. */
17037 #ifdef __cplusplus
17038 extern "C"
17039 #endif
17040 char ctime ();
17041 int
17042 main ()
17043 {
17044 return ctime ();
17045 ;
17046 return 0;
17047 }
17048 _ACEOF
17049 if ac_fn_c_try_link "$LINENO"; then :
17050 ac_cv_lib_c_ctime=yes
17051 else
17052 ac_cv_lib_c_ctime=no
17053 fi
17054 rm -f core conftest.err conftest.$ac_objext \
17055 conftest$ac_exeext conftest.$ac_ext
17056 LIBS=$ac_check_lib_save_LIBS
17057 fi
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ctime" >&5
17059 $as_echo "$ac_cv_lib_c_ctime" >&6; }
17060 if test "x$ac_cv_lib_c_ctime" = xyes; then :
17061
17062 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17063
17064 else
17065
17066 $as_echo "#undef HAVE_CTIME" >>confdefs.h
17067
17068 fi
17069
17070 else
17071 if test "x$ac_cv_lib_c_ctime" = xyes; then
17072
17073 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17074
17075 elif test "x$ac_cv_func_ctime" = xyes; then
17076
17077 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17078
17079 else
17080
17081 $as_echo "#undef HAVE_CTIME" >>confdefs.h
17082
17083 fi
17084 fi
17085
17086
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for creat" >&5
17088 $as_echo_n "checking m2 front end checking c library for creat... " >&6; }
17089 if test x$gcc_no_link != xyes; then
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for creat in -lc" >&5
17091 $as_echo_n "checking for creat in -lc... " >&6; }
17092 if ${ac_cv_lib_c_creat+:} false; then :
17093 $as_echo_n "(cached) " >&6
17094 else
17095 ac_check_lib_save_LIBS=$LIBS
17096 LIBS="-lc $LIBS"
17097 if test x$gcc_no_link = xyes; then
17098 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17099 fi
17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17102
17103 /* Override any GCC internal prototype to avoid an error.
17104 Use char because int might match the return type of a GCC
17105 builtin and then its argument prototype would still apply. */
17106 #ifdef __cplusplus
17107 extern "C"
17108 #endif
17109 char creat ();
17110 int
17111 main ()
17112 {
17113 return creat ();
17114 ;
17115 return 0;
17116 }
17117 _ACEOF
17118 if ac_fn_c_try_link "$LINENO"; then :
17119 ac_cv_lib_c_creat=yes
17120 else
17121 ac_cv_lib_c_creat=no
17122 fi
17123 rm -f core conftest.err conftest.$ac_objext \
17124 conftest$ac_exeext conftest.$ac_ext
17125 LIBS=$ac_check_lib_save_LIBS
17126 fi
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_creat" >&5
17128 $as_echo "$ac_cv_lib_c_creat" >&6; }
17129 if test "x$ac_cv_lib_c_creat" = xyes; then :
17130
17131 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17132
17133 else
17134
17135 $as_echo "#undef HAVE_CREAT" >>confdefs.h
17136
17137 fi
17138
17139 else
17140 if test "x$ac_cv_lib_c_creat" = xyes; then
17141
17142 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17143
17144 elif test "x$ac_cv_func_creat" = xyes; then
17145
17146 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17147
17148 else
17149
17150 $as_echo "#undef HAVE_CREAT" >>confdefs.h
17151
17152 fi
17153 fi
17154
17155
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for dup" >&5
17157 $as_echo_n "checking m2 front end checking c library for dup... " >&6; }
17158 if test x$gcc_no_link != xyes; then
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup in -lc" >&5
17160 $as_echo_n "checking for dup in -lc... " >&6; }
17161 if ${ac_cv_lib_c_dup+:} false; then :
17162 $as_echo_n "(cached) " >&6
17163 else
17164 ac_check_lib_save_LIBS=$LIBS
17165 LIBS="-lc $LIBS"
17166 if test x$gcc_no_link = xyes; then
17167 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17168 fi
17169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17170 /* end confdefs.h. */
17171
17172 /* Override any GCC internal prototype to avoid an error.
17173 Use char because int might match the return type of a GCC
17174 builtin and then its argument prototype would still apply. */
17175 #ifdef __cplusplus
17176 extern "C"
17177 #endif
17178 char dup ();
17179 int
17180 main ()
17181 {
17182 return dup ();
17183 ;
17184 return 0;
17185 }
17186 _ACEOF
17187 if ac_fn_c_try_link "$LINENO"; then :
17188 ac_cv_lib_c_dup=yes
17189 else
17190 ac_cv_lib_c_dup=no
17191 fi
17192 rm -f core conftest.err conftest.$ac_objext \
17193 conftest$ac_exeext conftest.$ac_ext
17194 LIBS=$ac_check_lib_save_LIBS
17195 fi
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dup" >&5
17197 $as_echo "$ac_cv_lib_c_dup" >&6; }
17198 if test "x$ac_cv_lib_c_dup" = xyes; then :
17199
17200 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17201
17202 else
17203
17204 $as_echo "#undef HAVE_DUP" >>confdefs.h
17205
17206 fi
17207
17208 else
17209 if test "x$ac_cv_lib_c_dup" = xyes; then
17210
17211 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17212
17213 elif test "x$ac_cv_func_dup" = xyes; then
17214
17215 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17216
17217 else
17218
17219 $as_echo "#undef HAVE_DUP" >>confdefs.h
17220
17221 fi
17222 fi
17223
17224
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for execve" >&5
17226 $as_echo_n "checking m2 front end checking c library for execve... " >&6; }
17227 if test x$gcc_no_link != xyes; then
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execve in -lc" >&5
17229 $as_echo_n "checking for execve in -lc... " >&6; }
17230 if ${ac_cv_lib_c_execve+:} false; then :
17231 $as_echo_n "(cached) " >&6
17232 else
17233 ac_check_lib_save_LIBS=$LIBS
17234 LIBS="-lc $LIBS"
17235 if test x$gcc_no_link = xyes; then
17236 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17237 fi
17238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17239 /* end confdefs.h. */
17240
17241 /* Override any GCC internal prototype to avoid an error.
17242 Use char because int might match the return type of a GCC
17243 builtin and then its argument prototype would still apply. */
17244 #ifdef __cplusplus
17245 extern "C"
17246 #endif
17247 char execve ();
17248 int
17249 main ()
17250 {
17251 return execve ();
17252 ;
17253 return 0;
17254 }
17255 _ACEOF
17256 if ac_fn_c_try_link "$LINENO"; then :
17257 ac_cv_lib_c_execve=yes
17258 else
17259 ac_cv_lib_c_execve=no
17260 fi
17261 rm -f core conftest.err conftest.$ac_objext \
17262 conftest$ac_exeext conftest.$ac_ext
17263 LIBS=$ac_check_lib_save_LIBS
17264 fi
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_execve" >&5
17266 $as_echo "$ac_cv_lib_c_execve" >&6; }
17267 if test "x$ac_cv_lib_c_execve" = xyes; then :
17268
17269 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17270
17271 else
17272
17273 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
17274
17275 fi
17276
17277 else
17278 if test "x$ac_cv_lib_c_execve" = xyes; then
17279
17280 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17281
17282 elif test "x$ac_cv_func_execve" = xyes; then
17283
17284 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17285
17286 else
17287
17288 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
17289
17290 fi
17291 fi
17292
17293
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for exit" >&5
17295 $as_echo_n "checking m2 front end checking c library for exit... " >&6; }
17296 if test x$gcc_no_link != xyes; then
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lc" >&5
17298 $as_echo_n "checking for exit in -lc... " >&6; }
17299 if ${ac_cv_lib_c_exit+:} false; then :
17300 $as_echo_n "(cached) " >&6
17301 else
17302 ac_check_lib_save_LIBS=$LIBS
17303 LIBS="-lc $LIBS"
17304 if test x$gcc_no_link = xyes; then
17305 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17306 fi
17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308 /* end confdefs.h. */
17309
17310 /* Override any GCC internal prototype to avoid an error.
17311 Use char because int might match the return type of a GCC
17312 builtin and then its argument prototype would still apply. */
17313 #ifdef __cplusplus
17314 extern "C"
17315 #endif
17316 char exit ();
17317 int
17318 main ()
17319 {
17320 return exit ();
17321 ;
17322 return 0;
17323 }
17324 _ACEOF
17325 if ac_fn_c_try_link "$LINENO"; then :
17326 ac_cv_lib_c_exit=yes
17327 else
17328 ac_cv_lib_c_exit=no
17329 fi
17330 rm -f core conftest.err conftest.$ac_objext \
17331 conftest$ac_exeext conftest.$ac_ext
17332 LIBS=$ac_check_lib_save_LIBS
17333 fi
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_exit" >&5
17335 $as_echo "$ac_cv_lib_c_exit" >&6; }
17336 if test "x$ac_cv_lib_c_exit" = xyes; then :
17337
17338 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17339
17340 else
17341
17342 $as_echo "#undef HAVE_EXIT" >>confdefs.h
17343
17344 fi
17345
17346 else
17347 if test "x$ac_cv_lib_c_exit" = xyes; then
17348
17349 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17350
17351 elif test "x$ac_cv_func_exit" = xyes; then
17352
17353 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17354
17355 else
17356
17357 $as_echo "#undef HAVE_EXIT" >>confdefs.h
17358
17359 fi
17360 fi
17361
17362
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fcntl" >&5
17364 $as_echo_n "checking m2 front end checking c library for fcntl... " >&6; }
17365 if test x$gcc_no_link != xyes; then
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl in -lc" >&5
17367 $as_echo_n "checking for fcntl in -lc... " >&6; }
17368 if ${ac_cv_lib_c_fcntl+:} false; then :
17369 $as_echo_n "(cached) " >&6
17370 else
17371 ac_check_lib_save_LIBS=$LIBS
17372 LIBS="-lc $LIBS"
17373 if test x$gcc_no_link = xyes; then
17374 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17375 fi
17376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h. */
17378
17379 /* Override any GCC internal prototype to avoid an error.
17380 Use char because int might match the return type of a GCC
17381 builtin and then its argument prototype would still apply. */
17382 #ifdef __cplusplus
17383 extern "C"
17384 #endif
17385 char fcntl ();
17386 int
17387 main ()
17388 {
17389 return fcntl ();
17390 ;
17391 return 0;
17392 }
17393 _ACEOF
17394 if ac_fn_c_try_link "$LINENO"; then :
17395 ac_cv_lib_c_fcntl=yes
17396 else
17397 ac_cv_lib_c_fcntl=no
17398 fi
17399 rm -f core conftest.err conftest.$ac_objext \
17400 conftest$ac_exeext conftest.$ac_ext
17401 LIBS=$ac_check_lib_save_LIBS
17402 fi
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fcntl" >&5
17404 $as_echo "$ac_cv_lib_c_fcntl" >&6; }
17405 if test "x$ac_cv_lib_c_fcntl" = xyes; then :
17406
17407 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17408
17409 else
17410
17411 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
17412
17413 fi
17414
17415 else
17416 if test "x$ac_cv_lib_c_fcntl" = xyes; then
17417
17418 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17419
17420 elif test "x$ac_cv_func_fcntl" = xyes; then
17421
17422 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17423
17424 else
17425
17426 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
17427
17428 fi
17429 fi
17430
17431
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fstat" >&5
17433 $as_echo_n "checking m2 front end checking c library for fstat... " >&6; }
17434 if test x$gcc_no_link != xyes; then
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fstat in -lc" >&5
17436 $as_echo_n "checking for fstat in -lc... " >&6; }
17437 if ${ac_cv_lib_c_fstat+:} false; then :
17438 $as_echo_n "(cached) " >&6
17439 else
17440 ac_check_lib_save_LIBS=$LIBS
17441 LIBS="-lc $LIBS"
17442 if test x$gcc_no_link = xyes; then
17443 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17444 fi
17445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446 /* end confdefs.h. */
17447
17448 /* Override any GCC internal prototype to avoid an error.
17449 Use char because int might match the return type of a GCC
17450 builtin and then its argument prototype would still apply. */
17451 #ifdef __cplusplus
17452 extern "C"
17453 #endif
17454 char fstat ();
17455 int
17456 main ()
17457 {
17458 return fstat ();
17459 ;
17460 return 0;
17461 }
17462 _ACEOF
17463 if ac_fn_c_try_link "$LINENO"; then :
17464 ac_cv_lib_c_fstat=yes
17465 else
17466 ac_cv_lib_c_fstat=no
17467 fi
17468 rm -f core conftest.err conftest.$ac_objext \
17469 conftest$ac_exeext conftest.$ac_ext
17470 LIBS=$ac_check_lib_save_LIBS
17471 fi
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fstat" >&5
17473 $as_echo "$ac_cv_lib_c_fstat" >&6; }
17474 if test "x$ac_cv_lib_c_fstat" = xyes; then :
17475
17476 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17477
17478 else
17479
17480 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
17481
17482 fi
17483
17484 else
17485 if test "x$ac_cv_lib_c_fstat" = xyes; then
17486
17487 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17488
17489 elif test "x$ac_cv_func_fstat" = xyes; then
17490
17491 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17492
17493 else
17494
17495 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
17496
17497 fi
17498 fi
17499
17500
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getdents" >&5
17502 $as_echo_n "checking m2 front end checking c library for getdents... " >&6; }
17503 if test x$gcc_no_link != xyes; then
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getdents in -lc" >&5
17505 $as_echo_n "checking for getdents in -lc... " >&6; }
17506 if ${ac_cv_lib_c_getdents+:} false; then :
17507 $as_echo_n "(cached) " >&6
17508 else
17509 ac_check_lib_save_LIBS=$LIBS
17510 LIBS="-lc $LIBS"
17511 if test x$gcc_no_link = xyes; then
17512 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17513 fi
17514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17515 /* end confdefs.h. */
17516
17517 /* Override any GCC internal prototype to avoid an error.
17518 Use char because int might match the return type of a GCC
17519 builtin and then its argument prototype would still apply. */
17520 #ifdef __cplusplus
17521 extern "C"
17522 #endif
17523 char getdents ();
17524 int
17525 main ()
17526 {
17527 return getdents ();
17528 ;
17529 return 0;
17530 }
17531 _ACEOF
17532 if ac_fn_c_try_link "$LINENO"; then :
17533 ac_cv_lib_c_getdents=yes
17534 else
17535 ac_cv_lib_c_getdents=no
17536 fi
17537 rm -f core conftest.err conftest.$ac_objext \
17538 conftest$ac_exeext conftest.$ac_ext
17539 LIBS=$ac_check_lib_save_LIBS
17540 fi
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getdents" >&5
17542 $as_echo "$ac_cv_lib_c_getdents" >&6; }
17543 if test "x$ac_cv_lib_c_getdents" = xyes; then :
17544
17545 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17546
17547 else
17548
17549 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
17550
17551 fi
17552
17553 else
17554 if test "x$ac_cv_lib_c_getdents" = xyes; then
17555
17556 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17557
17558 elif test "x$ac_cv_func_getdents" = xyes; then
17559
17560 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17561
17562 else
17563
17564 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
17565
17566 fi
17567 fi
17568
17569
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getgid" >&5
17571 $as_echo_n "checking m2 front end checking c library for getgid... " >&6; }
17572 if test x$gcc_no_link != xyes; then
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgid in -lc" >&5
17574 $as_echo_n "checking for getgid in -lc... " >&6; }
17575 if ${ac_cv_lib_c_getgid+:} false; then :
17576 $as_echo_n "(cached) " >&6
17577 else
17578 ac_check_lib_save_LIBS=$LIBS
17579 LIBS="-lc $LIBS"
17580 if test x$gcc_no_link = xyes; then
17581 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17582 fi
17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584 /* end confdefs.h. */
17585
17586 /* Override any GCC internal prototype to avoid an error.
17587 Use char because int might match the return type of a GCC
17588 builtin and then its argument prototype would still apply. */
17589 #ifdef __cplusplus
17590 extern "C"
17591 #endif
17592 char getgid ();
17593 int
17594 main ()
17595 {
17596 return getgid ();
17597 ;
17598 return 0;
17599 }
17600 _ACEOF
17601 if ac_fn_c_try_link "$LINENO"; then :
17602 ac_cv_lib_c_getgid=yes
17603 else
17604 ac_cv_lib_c_getgid=no
17605 fi
17606 rm -f core conftest.err conftest.$ac_objext \
17607 conftest$ac_exeext conftest.$ac_ext
17608 LIBS=$ac_check_lib_save_LIBS
17609 fi
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgid" >&5
17611 $as_echo "$ac_cv_lib_c_getgid" >&6; }
17612 if test "x$ac_cv_lib_c_getgid" = xyes; then :
17613
17614 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
17615
17616 else
17617
17618 $as_echo "#undef HAVE_GETGID" >>confdefs.h
17619
17620 fi
17621
17622 else
17623 if test "x$ac_cv_lib_c_getgid" = xyes; then
17624
17625 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
17626
17627 elif test "x$ac_cv_func_getgid" = xyes; then
17628
17629 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
17630
17631 else
17632
17633 $as_echo "#undef HAVE_GETGID" >>confdefs.h
17634
17635 fi
17636 fi
17637
17638
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getpid" >&5
17640 $as_echo_n "checking m2 front end checking c library for getpid... " >&6; }
17641 if test x$gcc_no_link != xyes; then
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lc" >&5
17643 $as_echo_n "checking for getpid in -lc... " >&6; }
17644 if ${ac_cv_lib_c_getpid+:} false; then :
17645 $as_echo_n "(cached) " >&6
17646 else
17647 ac_check_lib_save_LIBS=$LIBS
17648 LIBS="-lc $LIBS"
17649 if test x$gcc_no_link = xyes; then
17650 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17651 fi
17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653 /* end confdefs.h. */
17654
17655 /* Override any GCC internal prototype to avoid an error.
17656 Use char because int might match the return type of a GCC
17657 builtin and then its argument prototype would still apply. */
17658 #ifdef __cplusplus
17659 extern "C"
17660 #endif
17661 char getpid ();
17662 int
17663 main ()
17664 {
17665 return getpid ();
17666 ;
17667 return 0;
17668 }
17669 _ACEOF
17670 if ac_fn_c_try_link "$LINENO"; then :
17671 ac_cv_lib_c_getpid=yes
17672 else
17673 ac_cv_lib_c_getpid=no
17674 fi
17675 rm -f core conftest.err conftest.$ac_objext \
17676 conftest$ac_exeext conftest.$ac_ext
17677 LIBS=$ac_check_lib_save_LIBS
17678 fi
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpid" >&5
17680 $as_echo "$ac_cv_lib_c_getpid" >&6; }
17681 if test "x$ac_cv_lib_c_getpid" = xyes; then :
17682
17683 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
17684
17685 else
17686
17687 $as_echo "#undef HAVE_GETPID" >>confdefs.h
17688
17689 fi
17690
17691 else
17692 if test "x$ac_cv_lib_c_getpid" = xyes; then
17693
17694 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
17695
17696 elif test "x$ac_cv_func_getpid" = xyes; then
17697
17698 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
17699
17700 else
17701
17702 $as_echo "#undef HAVE_GETPID" >>confdefs.h
17703
17704 fi
17705 fi
17706
17707
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for gettimeofday" >&5
17709 $as_echo_n "checking m2 front end checking c library for gettimeofday... " >&6; }
17710 if test x$gcc_no_link != xyes; then
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lc" >&5
17712 $as_echo_n "checking for gettimeofday in -lc... " >&6; }
17713 if ${ac_cv_lib_c_gettimeofday+:} false; then :
17714 $as_echo_n "(cached) " >&6
17715 else
17716 ac_check_lib_save_LIBS=$LIBS
17717 LIBS="-lc $LIBS"
17718 if test x$gcc_no_link = xyes; then
17719 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17720 fi
17721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17722 /* end confdefs.h. */
17723
17724 /* Override any GCC internal prototype to avoid an error.
17725 Use char because int might match the return type of a GCC
17726 builtin and then its argument prototype would still apply. */
17727 #ifdef __cplusplus
17728 extern "C"
17729 #endif
17730 char gettimeofday ();
17731 int
17732 main ()
17733 {
17734 return gettimeofday ();
17735 ;
17736 return 0;
17737 }
17738 _ACEOF
17739 if ac_fn_c_try_link "$LINENO"; then :
17740 ac_cv_lib_c_gettimeofday=yes
17741 else
17742 ac_cv_lib_c_gettimeofday=no
17743 fi
17744 rm -f core conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17746 LIBS=$ac_check_lib_save_LIBS
17747 fi
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gettimeofday" >&5
17749 $as_echo "$ac_cv_lib_c_gettimeofday" >&6; }
17750 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then :
17751
17752 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
17753
17754 else
17755
17756 $as_echo "#undef HAVE_GETTIMEOFD" >>confdefs.h
17757
17758 fi
17759
17760 else
17761 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then
17762
17763 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
17764
17765 elif test "x$ac_cv_func_gettimeofday" = xyes; then
17766
17767 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
17768
17769 else
17770
17771 $as_echo "#undef HAVE_GETTIMEOFD" >>confdefs.h
17772
17773 fi
17774 fi
17775
17776
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getuid" >&5
17778 $as_echo_n "checking m2 front end checking c library for getuid... " >&6; }
17779 if test x$gcc_no_link != xyes; then
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getuid in -lc" >&5
17781 $as_echo_n "checking for getuid in -lc... " >&6; }
17782 if ${ac_cv_lib_c_getuid+:} false; then :
17783 $as_echo_n "(cached) " >&6
17784 else
17785 ac_check_lib_save_LIBS=$LIBS
17786 LIBS="-lc $LIBS"
17787 if test x$gcc_no_link = xyes; then
17788 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17789 fi
17790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17791 /* end confdefs.h. */
17792
17793 /* Override any GCC internal prototype to avoid an error.
17794 Use char because int might match the return type of a GCC
17795 builtin and then its argument prototype would still apply. */
17796 #ifdef __cplusplus
17797 extern "C"
17798 #endif
17799 char getuid ();
17800 int
17801 main ()
17802 {
17803 return getuid ();
17804 ;
17805 return 0;
17806 }
17807 _ACEOF
17808 if ac_fn_c_try_link "$LINENO"; then :
17809 ac_cv_lib_c_getuid=yes
17810 else
17811 ac_cv_lib_c_getuid=no
17812 fi
17813 rm -f core conftest.err conftest.$ac_objext \
17814 conftest$ac_exeext conftest.$ac_ext
17815 LIBS=$ac_check_lib_save_LIBS
17816 fi
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getuid" >&5
17818 $as_echo "$ac_cv_lib_c_getuid" >&6; }
17819 if test "x$ac_cv_lib_c_getuid" = xyes; then :
17820
17821 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
17822
17823 else
17824
17825 $as_echo "#undef HAVE_GETUID" >>confdefs.h
17826
17827 fi
17828
17829 else
17830 if test "x$ac_cv_lib_c_getuid" = xyes; then
17831
17832 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
17833
17834 elif test "x$ac_cv_func_getuid" = xyes; then
17835
17836 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
17837
17838 else
17839
17840 $as_echo "#undef HAVE_GETUID" >>confdefs.h
17841
17842 fi
17843 fi
17844
17845
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ioctl" >&5
17847 $as_echo_n "checking m2 front end checking c library for ioctl... " >&6; }
17848 if test x$gcc_no_link != xyes; then
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl in -lc" >&5
17850 $as_echo_n "checking for ioctl in -lc... " >&6; }
17851 if ${ac_cv_lib_c_ioctl+:} false; then :
17852 $as_echo_n "(cached) " >&6
17853 else
17854 ac_check_lib_save_LIBS=$LIBS
17855 LIBS="-lc $LIBS"
17856 if test x$gcc_no_link = xyes; then
17857 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17858 fi
17859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17860 /* end confdefs.h. */
17861
17862 /* Override any GCC internal prototype to avoid an error.
17863 Use char because int might match the return type of a GCC
17864 builtin and then its argument prototype would still apply. */
17865 #ifdef __cplusplus
17866 extern "C"
17867 #endif
17868 char ioctl ();
17869 int
17870 main ()
17871 {
17872 return ioctl ();
17873 ;
17874 return 0;
17875 }
17876 _ACEOF
17877 if ac_fn_c_try_link "$LINENO"; then :
17878 ac_cv_lib_c_ioctl=yes
17879 else
17880 ac_cv_lib_c_ioctl=no
17881 fi
17882 rm -f core conftest.err conftest.$ac_objext \
17883 conftest$ac_exeext conftest.$ac_ext
17884 LIBS=$ac_check_lib_save_LIBS
17885 fi
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ioctl" >&5
17887 $as_echo "$ac_cv_lib_c_ioctl" >&6; }
17888 if test "x$ac_cv_lib_c_ioctl" = xyes; then :
17889
17890 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
17891
17892 else
17893
17894 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
17895
17896 fi
17897
17898 else
17899 if test "x$ac_cv_lib_c_ioctl" = xyes; then
17900
17901 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
17902
17903 elif test "x$ac_cv_func_ioctl" = xyes; then
17904
17905 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
17906
17907 else
17908
17909 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
17910
17911 fi
17912 fi
17913
17914
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for kill" >&5
17916 $as_echo_n "checking m2 front end checking c library for kill... " >&6; }
17917 if test x$gcc_no_link != xyes; then
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kill in -lc" >&5
17919 $as_echo_n "checking for kill in -lc... " >&6; }
17920 if ${ac_cv_lib_c_kill+:} false; then :
17921 $as_echo_n "(cached) " >&6
17922 else
17923 ac_check_lib_save_LIBS=$LIBS
17924 LIBS="-lc $LIBS"
17925 if test x$gcc_no_link = xyes; then
17926 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17927 fi
17928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17929 /* end confdefs.h. */
17930
17931 /* Override any GCC internal prototype to avoid an error.
17932 Use char because int might match the return type of a GCC
17933 builtin and then its argument prototype would still apply. */
17934 #ifdef __cplusplus
17935 extern "C"
17936 #endif
17937 char kill ();
17938 int
17939 main ()
17940 {
17941 return kill ();
17942 ;
17943 return 0;
17944 }
17945 _ACEOF
17946 if ac_fn_c_try_link "$LINENO"; then :
17947 ac_cv_lib_c_kill=yes
17948 else
17949 ac_cv_lib_c_kill=no
17950 fi
17951 rm -f core conftest.err conftest.$ac_objext \
17952 conftest$ac_exeext conftest.$ac_ext
17953 LIBS=$ac_check_lib_save_LIBS
17954 fi
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_kill" >&5
17956 $as_echo "$ac_cv_lib_c_kill" >&6; }
17957 if test "x$ac_cv_lib_c_kill" = xyes; then :
17958
17959 $as_echo "#define HAVE_KILL 1" >>confdefs.h
17960
17961 else
17962
17963 $as_echo "#undef HAVE_KILL" >>confdefs.h
17964
17965 fi
17966
17967 else
17968 if test "x$ac_cv_lib_c_kill" = xyes; then
17969
17970 $as_echo "#define HAVE_KILL 1" >>confdefs.h
17971
17972 elif test "x$ac_cv_func_kill" = xyes; then
17973
17974 $as_echo "#define HAVE_KILL 1" >>confdefs.h
17975
17976 else
17977
17978 $as_echo "#undef HAVE_KILL" >>confdefs.h
17979
17980 fi
17981 fi
17982
17983
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for link" >&5
17985 $as_echo_n "checking m2 front end checking c library for link... " >&6; }
17986 if test x$gcc_no_link != xyes; then
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link in -lc" >&5
17988 $as_echo_n "checking for link in -lc... " >&6; }
17989 if ${ac_cv_lib_c_link+:} false; then :
17990 $as_echo_n "(cached) " >&6
17991 else
17992 ac_check_lib_save_LIBS=$LIBS
17993 LIBS="-lc $LIBS"
17994 if test x$gcc_no_link = xyes; then
17995 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17996 fi
17997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
17999
18000 /* Override any GCC internal prototype to avoid an error.
18001 Use char because int might match the return type of a GCC
18002 builtin and then its argument prototype would still apply. */
18003 #ifdef __cplusplus
18004 extern "C"
18005 #endif
18006 char link ();
18007 int
18008 main ()
18009 {
18010 return link ();
18011 ;
18012 return 0;
18013 }
18014 _ACEOF
18015 if ac_fn_c_try_link "$LINENO"; then :
18016 ac_cv_lib_c_link=yes
18017 else
18018 ac_cv_lib_c_link=no
18019 fi
18020 rm -f core conftest.err conftest.$ac_objext \
18021 conftest$ac_exeext conftest.$ac_ext
18022 LIBS=$ac_check_lib_save_LIBS
18023 fi
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_link" >&5
18025 $as_echo "$ac_cv_lib_c_link" >&6; }
18026 if test "x$ac_cv_lib_c_link" = xyes; then :
18027
18028 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18029
18030 else
18031
18032 $as_echo "#undef HAVE_LINK" >>confdefs.h
18033
18034 fi
18035
18036 else
18037 if test "x$ac_cv_lib_c_link" = xyes; then
18038
18039 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18040
18041 elif test "x$ac_cv_func_link" = xyes; then
18042
18043 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18044
18045 else
18046
18047 $as_echo "#undef HAVE_LINK" >>confdefs.h
18048
18049 fi
18050 fi
18051
18052
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for lseek" >&5
18054 $as_echo_n "checking m2 front end checking c library for lseek... " >&6; }
18055 if test x$gcc_no_link != xyes; then
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lseek in -lc" >&5
18057 $as_echo_n "checking for lseek in -lc... " >&6; }
18058 if ${ac_cv_lib_c_lseek+:} false; then :
18059 $as_echo_n "(cached) " >&6
18060 else
18061 ac_check_lib_save_LIBS=$LIBS
18062 LIBS="-lc $LIBS"
18063 if test x$gcc_no_link = xyes; then
18064 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18065 fi
18066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18067 /* end confdefs.h. */
18068
18069 /* Override any GCC internal prototype to avoid an error.
18070 Use char because int might match the return type of a GCC
18071 builtin and then its argument prototype would still apply. */
18072 #ifdef __cplusplus
18073 extern "C"
18074 #endif
18075 char lseek ();
18076 int
18077 main ()
18078 {
18079 return lseek ();
18080 ;
18081 return 0;
18082 }
18083 _ACEOF
18084 if ac_fn_c_try_link "$LINENO"; then :
18085 ac_cv_lib_c_lseek=yes
18086 else
18087 ac_cv_lib_c_lseek=no
18088 fi
18089 rm -f core conftest.err conftest.$ac_objext \
18090 conftest$ac_exeext conftest.$ac_ext
18091 LIBS=$ac_check_lib_save_LIBS
18092 fi
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_lseek" >&5
18094 $as_echo "$ac_cv_lib_c_lseek" >&6; }
18095 if test "x$ac_cv_lib_c_lseek" = xyes; then :
18096
18097 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18098
18099 else
18100
18101 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
18102
18103 fi
18104
18105 else
18106 if test "x$ac_cv_lib_c_lseek" = xyes; then
18107
18108 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18109
18110 elif test "x$ac_cv_func_lseek" = xyes; then
18111
18112 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18113
18114 else
18115
18116 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
18117
18118 fi
18119 fi
18120
18121
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for open" >&5
18123 $as_echo_n "checking m2 front end checking c library for open... " >&6; }
18124 if test x$gcc_no_link != xyes; then
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open in -lc" >&5
18126 $as_echo_n "checking for open in -lc... " >&6; }
18127 if ${ac_cv_lib_c_open+:} false; then :
18128 $as_echo_n "(cached) " >&6
18129 else
18130 ac_check_lib_save_LIBS=$LIBS
18131 LIBS="-lc $LIBS"
18132 if test x$gcc_no_link = xyes; then
18133 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18134 fi
18135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18136 /* end confdefs.h. */
18137
18138 /* Override any GCC internal prototype to avoid an error.
18139 Use char because int might match the return type of a GCC
18140 builtin and then its argument prototype would still apply. */
18141 #ifdef __cplusplus
18142 extern "C"
18143 #endif
18144 char open ();
18145 int
18146 main ()
18147 {
18148 return open ();
18149 ;
18150 return 0;
18151 }
18152 _ACEOF
18153 if ac_fn_c_try_link "$LINENO"; then :
18154 ac_cv_lib_c_open=yes
18155 else
18156 ac_cv_lib_c_open=no
18157 fi
18158 rm -f core conftest.err conftest.$ac_objext \
18159 conftest$ac_exeext conftest.$ac_ext
18160 LIBS=$ac_check_lib_save_LIBS
18161 fi
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_open" >&5
18163 $as_echo "$ac_cv_lib_c_open" >&6; }
18164 if test "x$ac_cv_lib_c_open" = xyes; then :
18165
18166 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18167
18168 else
18169
18170 $as_echo "#undef HAVE_OPEN" >>confdefs.h
18171
18172 fi
18173
18174 else
18175 if test "x$ac_cv_lib_c_open" = xyes; then
18176
18177 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18178
18179 elif test "x$ac_cv_func_open" = xyes; then
18180
18181 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18182
18183 else
18184
18185 $as_echo "#undef HAVE_OPEN" >>confdefs.h
18186
18187 fi
18188 fi
18189
18190
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pause" >&5
18192 $as_echo_n "checking m2 front end checking c library for pause... " >&6; }
18193 if test x$gcc_no_link != xyes; then
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause in -lc" >&5
18195 $as_echo_n "checking for pause in -lc... " >&6; }
18196 if ${ac_cv_lib_c_pause+:} false; then :
18197 $as_echo_n "(cached) " >&6
18198 else
18199 ac_check_lib_save_LIBS=$LIBS
18200 LIBS="-lc $LIBS"
18201 if test x$gcc_no_link = xyes; then
18202 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18203 fi
18204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18205 /* end confdefs.h. */
18206
18207 /* Override any GCC internal prototype to avoid an error.
18208 Use char because int might match the return type of a GCC
18209 builtin and then its argument prototype would still apply. */
18210 #ifdef __cplusplus
18211 extern "C"
18212 #endif
18213 char pause ();
18214 int
18215 main ()
18216 {
18217 return pause ();
18218 ;
18219 return 0;
18220 }
18221 _ACEOF
18222 if ac_fn_c_try_link "$LINENO"; then :
18223 ac_cv_lib_c_pause=yes
18224 else
18225 ac_cv_lib_c_pause=no
18226 fi
18227 rm -f core conftest.err conftest.$ac_objext \
18228 conftest$ac_exeext conftest.$ac_ext
18229 LIBS=$ac_check_lib_save_LIBS
18230 fi
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pause" >&5
18232 $as_echo "$ac_cv_lib_c_pause" >&6; }
18233 if test "x$ac_cv_lib_c_pause" = xyes; then :
18234
18235 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18236
18237 else
18238
18239 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
18240
18241 fi
18242
18243 else
18244 if test "x$ac_cv_lib_c_pause" = xyes; then
18245
18246 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18247
18248 elif test "x$ac_cv_func_pause" = xyes; then
18249
18250 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18251
18252 else
18253
18254 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
18255
18256 fi
18257 fi
18258
18259
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pipe" >&5
18261 $as_echo_n "checking m2 front end checking c library for pipe... " >&6; }
18262 if test x$gcc_no_link != xyes; then
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe in -lc" >&5
18264 $as_echo_n "checking for pipe in -lc... " >&6; }
18265 if ${ac_cv_lib_c_pipe+:} false; then :
18266 $as_echo_n "(cached) " >&6
18267 else
18268 ac_check_lib_save_LIBS=$LIBS
18269 LIBS="-lc $LIBS"
18270 if test x$gcc_no_link = xyes; then
18271 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18272 fi
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18275
18276 /* Override any GCC internal prototype to avoid an error.
18277 Use char because int might match the return type of a GCC
18278 builtin and then its argument prototype would still apply. */
18279 #ifdef __cplusplus
18280 extern "C"
18281 #endif
18282 char pipe ();
18283 int
18284 main ()
18285 {
18286 return pipe ();
18287 ;
18288 return 0;
18289 }
18290 _ACEOF
18291 if ac_fn_c_try_link "$LINENO"; then :
18292 ac_cv_lib_c_pipe=yes
18293 else
18294 ac_cv_lib_c_pipe=no
18295 fi
18296 rm -f core conftest.err conftest.$ac_objext \
18297 conftest$ac_exeext conftest.$ac_ext
18298 LIBS=$ac_check_lib_save_LIBS
18299 fi
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pipe" >&5
18301 $as_echo "$ac_cv_lib_c_pipe" >&6; }
18302 if test "x$ac_cv_lib_c_pipe" = xyes; then :
18303
18304 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18305
18306 else
18307
18308 $as_echo "#undef HAVE_PIPE" >>confdefs.h
18309
18310 fi
18311
18312 else
18313 if test "x$ac_cv_lib_c_pipe" = xyes; then
18314
18315 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18316
18317 elif test "x$ac_cv_func_pipe" = xyes; then
18318
18319 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18320
18321 else
18322
18323 $as_echo "#undef HAVE_PIPE" >>confdefs.h
18324
18325 fi
18326 fi
18327
18328
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for rand" >&5
18330 $as_echo_n "checking m2 front end checking c library for rand... " >&6; }
18331 if test x$gcc_no_link != xyes; then
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rand in -lc" >&5
18333 $as_echo_n "checking for rand in -lc... " >&6; }
18334 if ${ac_cv_lib_c_rand+:} false; then :
18335 $as_echo_n "(cached) " >&6
18336 else
18337 ac_check_lib_save_LIBS=$LIBS
18338 LIBS="-lc $LIBS"
18339 if test x$gcc_no_link = xyes; then
18340 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18341 fi
18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h. */
18344
18345 /* Override any GCC internal prototype to avoid an error.
18346 Use char because int might match the return type of a GCC
18347 builtin and then its argument prototype would still apply. */
18348 #ifdef __cplusplus
18349 extern "C"
18350 #endif
18351 char rand ();
18352 int
18353 main ()
18354 {
18355 return rand ();
18356 ;
18357 return 0;
18358 }
18359 _ACEOF
18360 if ac_fn_c_try_link "$LINENO"; then :
18361 ac_cv_lib_c_rand=yes
18362 else
18363 ac_cv_lib_c_rand=no
18364 fi
18365 rm -f core conftest.err conftest.$ac_objext \
18366 conftest$ac_exeext conftest.$ac_ext
18367 LIBS=$ac_check_lib_save_LIBS
18368 fi
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_rand" >&5
18370 $as_echo "$ac_cv_lib_c_rand" >&6; }
18371 if test "x$ac_cv_lib_c_rand" = xyes; then :
18372
18373 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18374
18375 else
18376
18377 $as_echo "#undef HAVE_RAND" >>confdefs.h
18378
18379 fi
18380
18381 else
18382 if test "x$ac_cv_lib_c_rand" = xyes; then
18383
18384 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18385
18386 elif test "x$ac_cv_func_rand" = xyes; then
18387
18388 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18389
18390 else
18391
18392 $as_echo "#undef HAVE_RAND" >>confdefs.h
18393
18394 fi
18395 fi
18396
18397
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for read" >&5
18399 $as_echo_n "checking m2 front end checking c library for read... " >&6; }
18400 if test x$gcc_no_link != xyes; then
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for read in -lc" >&5
18402 $as_echo_n "checking for read in -lc... " >&6; }
18403 if ${ac_cv_lib_c_read+:} false; then :
18404 $as_echo_n "(cached) " >&6
18405 else
18406 ac_check_lib_save_LIBS=$LIBS
18407 LIBS="-lc $LIBS"
18408 if test x$gcc_no_link = xyes; then
18409 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18410 fi
18411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18412 /* end confdefs.h. */
18413
18414 /* Override any GCC internal prototype to avoid an error.
18415 Use char because int might match the return type of a GCC
18416 builtin and then its argument prototype would still apply. */
18417 #ifdef __cplusplus
18418 extern "C"
18419 #endif
18420 char read ();
18421 int
18422 main ()
18423 {
18424 return read ();
18425 ;
18426 return 0;
18427 }
18428 _ACEOF
18429 if ac_fn_c_try_link "$LINENO"; then :
18430 ac_cv_lib_c_read=yes
18431 else
18432 ac_cv_lib_c_read=no
18433 fi
18434 rm -f core conftest.err conftest.$ac_objext \
18435 conftest$ac_exeext conftest.$ac_ext
18436 LIBS=$ac_check_lib_save_LIBS
18437 fi
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_read" >&5
18439 $as_echo "$ac_cv_lib_c_read" >&6; }
18440 if test "x$ac_cv_lib_c_read" = xyes; then :
18441
18442 $as_echo "#define HAVE_READ 1" >>confdefs.h
18443
18444 else
18445
18446 $as_echo "#undef HAVE_READ" >>confdefs.h
18447
18448 fi
18449
18450 else
18451 if test "x$ac_cv_lib_c_read" = xyes; then
18452
18453 $as_echo "#define HAVE_READ 1" >>confdefs.h
18454
18455 elif test "x$ac_cv_func_read" = xyes; then
18456
18457 $as_echo "#define HAVE_READ 1" >>confdefs.h
18458
18459 else
18460
18461 $as_echo "#undef HAVE_READ" >>confdefs.h
18462
18463 fi
18464 fi
18465
18466
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for select" >&5
18468 $as_echo_n "checking m2 front end checking c library for select... " >&6; }
18469 if test x$gcc_no_link != xyes; then
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select in -lc" >&5
18471 $as_echo_n "checking for select in -lc... " >&6; }
18472 if ${ac_cv_lib_c_select+:} false; then :
18473 $as_echo_n "(cached) " >&6
18474 else
18475 ac_check_lib_save_LIBS=$LIBS
18476 LIBS="-lc $LIBS"
18477 if test x$gcc_no_link = xyes; then
18478 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18479 fi
18480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h. */
18482
18483 /* Override any GCC internal prototype to avoid an error.
18484 Use char because int might match the return type of a GCC
18485 builtin and then its argument prototype would still apply. */
18486 #ifdef __cplusplus
18487 extern "C"
18488 #endif
18489 char select ();
18490 int
18491 main ()
18492 {
18493 return select ();
18494 ;
18495 return 0;
18496 }
18497 _ACEOF
18498 if ac_fn_c_try_link "$LINENO"; then :
18499 ac_cv_lib_c_select=yes
18500 else
18501 ac_cv_lib_c_select=no
18502 fi
18503 rm -f core conftest.err conftest.$ac_objext \
18504 conftest$ac_exeext conftest.$ac_ext
18505 LIBS=$ac_check_lib_save_LIBS
18506 fi
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_select" >&5
18508 $as_echo "$ac_cv_lib_c_select" >&6; }
18509 if test "x$ac_cv_lib_c_select" = xyes; then :
18510
18511 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
18512
18513 else
18514
18515 $as_echo "#undef HAVE_SELECT" >>confdefs.h
18516
18517 fi
18518
18519 else
18520 if test "x$ac_cv_lib_c_select" = xyes; then
18521
18522 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
18523
18524 elif test "x$ac_cv_func_select" = xyes; then
18525
18526 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
18527
18528 else
18529
18530 $as_echo "#undef HAVE_SELECT" >>confdefs.h
18531
18532 fi
18533 fi
18534
18535
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setitimer" >&5
18537 $as_echo_n "checking m2 front end checking c library for setitimer... " >&6; }
18538 if test x$gcc_no_link != xyes; then
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setitimer in -lc" >&5
18540 $as_echo_n "checking for setitimer in -lc... " >&6; }
18541 if ${ac_cv_lib_c_setitimer+:} false; then :
18542 $as_echo_n "(cached) " >&6
18543 else
18544 ac_check_lib_save_LIBS=$LIBS
18545 LIBS="-lc $LIBS"
18546 if test x$gcc_no_link = xyes; then
18547 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18548 fi
18549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18550 /* end confdefs.h. */
18551
18552 /* Override any GCC internal prototype to avoid an error.
18553 Use char because int might match the return type of a GCC
18554 builtin and then its argument prototype would still apply. */
18555 #ifdef __cplusplus
18556 extern "C"
18557 #endif
18558 char setitimer ();
18559 int
18560 main ()
18561 {
18562 return setitimer ();
18563 ;
18564 return 0;
18565 }
18566 _ACEOF
18567 if ac_fn_c_try_link "$LINENO"; then :
18568 ac_cv_lib_c_setitimer=yes
18569 else
18570 ac_cv_lib_c_setitimer=no
18571 fi
18572 rm -f core conftest.err conftest.$ac_objext \
18573 conftest$ac_exeext conftest.$ac_ext
18574 LIBS=$ac_check_lib_save_LIBS
18575 fi
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setitimer" >&5
18577 $as_echo "$ac_cv_lib_c_setitimer" >&6; }
18578 if test "x$ac_cv_lib_c_setitimer" = xyes; then :
18579
18580 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
18581
18582 else
18583
18584 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
18585
18586 fi
18587
18588 else
18589 if test "x$ac_cv_lib_c_setitimer" = xyes; then
18590
18591 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
18592
18593 elif test "x$ac_cv_func_setitimer" = xyes; then
18594
18595 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
18596
18597 else
18598
18599 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
18600
18601 fi
18602 fi
18603
18604
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setgid" >&5
18606 $as_echo_n "checking m2 front end checking c library for setgid... " >&6; }
18607 if test x$gcc_no_link != xyes; then
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgid in -lc" >&5
18609 $as_echo_n "checking for setgid in -lc... " >&6; }
18610 if ${ac_cv_lib_c_setgid+:} false; then :
18611 $as_echo_n "(cached) " >&6
18612 else
18613 ac_check_lib_save_LIBS=$LIBS
18614 LIBS="-lc $LIBS"
18615 if test x$gcc_no_link = xyes; then
18616 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18617 fi
18618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18619 /* end confdefs.h. */
18620
18621 /* Override any GCC internal prototype to avoid an error.
18622 Use char because int might match the return type of a GCC
18623 builtin and then its argument prototype would still apply. */
18624 #ifdef __cplusplus
18625 extern "C"
18626 #endif
18627 char setgid ();
18628 int
18629 main ()
18630 {
18631 return setgid ();
18632 ;
18633 return 0;
18634 }
18635 _ACEOF
18636 if ac_fn_c_try_link "$LINENO"; then :
18637 ac_cv_lib_c_setgid=yes
18638 else
18639 ac_cv_lib_c_setgid=no
18640 fi
18641 rm -f core conftest.err conftest.$ac_objext \
18642 conftest$ac_exeext conftest.$ac_ext
18643 LIBS=$ac_check_lib_save_LIBS
18644 fi
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setgid" >&5
18646 $as_echo "$ac_cv_lib_c_setgid" >&6; }
18647 if test "x$ac_cv_lib_c_setgid" = xyes; then :
18648
18649 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
18650
18651 else
18652
18653 $as_echo "#undef HAVE_SETGID" >>confdefs.h
18654
18655 fi
18656
18657 else
18658 if test "x$ac_cv_lib_c_setgid" = xyes; then
18659
18660 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
18661
18662 elif test "x$ac_cv_func_setgid" = xyes; then
18663
18664 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
18665
18666 else
18667
18668 $as_echo "#undef HAVE_SETGID" >>confdefs.h
18669
18670 fi
18671 fi
18672
18673
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setuid" >&5
18675 $as_echo_n "checking m2 front end checking c library for setuid... " >&6; }
18676 if test x$gcc_no_link != xyes; then
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid in -lc" >&5
18678 $as_echo_n "checking for setuid in -lc... " >&6; }
18679 if ${ac_cv_lib_c_setuid+:} false; then :
18680 $as_echo_n "(cached) " >&6
18681 else
18682 ac_check_lib_save_LIBS=$LIBS
18683 LIBS="-lc $LIBS"
18684 if test x$gcc_no_link = xyes; then
18685 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18686 fi
18687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h. */
18689
18690 /* Override any GCC internal prototype to avoid an error.
18691 Use char because int might match the return type of a GCC
18692 builtin and then its argument prototype would still apply. */
18693 #ifdef __cplusplus
18694 extern "C"
18695 #endif
18696 char setuid ();
18697 int
18698 main ()
18699 {
18700 return setuid ();
18701 ;
18702 return 0;
18703 }
18704 _ACEOF
18705 if ac_fn_c_try_link "$LINENO"; then :
18706 ac_cv_lib_c_setuid=yes
18707 else
18708 ac_cv_lib_c_setuid=no
18709 fi
18710 rm -f core conftest.err conftest.$ac_objext \
18711 conftest$ac_exeext conftest.$ac_ext
18712 LIBS=$ac_check_lib_save_LIBS
18713 fi
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setuid" >&5
18715 $as_echo "$ac_cv_lib_c_setuid" >&6; }
18716 if test "x$ac_cv_lib_c_setuid" = xyes; then :
18717
18718 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
18719
18720 else
18721
18722 $as_echo "#undef HAVE_SETUID" >>confdefs.h
18723
18724 fi
18725
18726 else
18727 if test "x$ac_cv_lib_c_setuid" = xyes; then
18728
18729 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
18730
18731 elif test "x$ac_cv_func_setuid" = xyes; then
18732
18733 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
18734
18735 else
18736
18737 $as_echo "#undef HAVE_SETUID" >>confdefs.h
18738
18739 fi
18740 fi
18741
18742
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for stat" >&5
18744 $as_echo_n "checking m2 front end checking c library for stat... " >&6; }
18745 if test x$gcc_no_link != xyes; then
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stat in -lc" >&5
18747 $as_echo_n "checking for stat in -lc... " >&6; }
18748 if ${ac_cv_lib_c_stat+:} false; then :
18749 $as_echo_n "(cached) " >&6
18750 else
18751 ac_check_lib_save_LIBS=$LIBS
18752 LIBS="-lc $LIBS"
18753 if test x$gcc_no_link = xyes; then
18754 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18755 fi
18756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18757 /* end confdefs.h. */
18758
18759 /* Override any GCC internal prototype to avoid an error.
18760 Use char because int might match the return type of a GCC
18761 builtin and then its argument prototype would still apply. */
18762 #ifdef __cplusplus
18763 extern "C"
18764 #endif
18765 char stat ();
18766 int
18767 main ()
18768 {
18769 return stat ();
18770 ;
18771 return 0;
18772 }
18773 _ACEOF
18774 if ac_fn_c_try_link "$LINENO"; then :
18775 ac_cv_lib_c_stat=yes
18776 else
18777 ac_cv_lib_c_stat=no
18778 fi
18779 rm -f core conftest.err conftest.$ac_objext \
18780 conftest$ac_exeext conftest.$ac_ext
18781 LIBS=$ac_check_lib_save_LIBS
18782 fi
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_stat" >&5
18784 $as_echo "$ac_cv_lib_c_stat" >&6; }
18785 if test "x$ac_cv_lib_c_stat" = xyes; then :
18786
18787 $as_echo "#define HAVE_STAT 1" >>confdefs.h
18788
18789 else
18790
18791 $as_echo "#undef HAVE_STAT" >>confdefs.h
18792
18793 fi
18794
18795 else
18796 if test "x$ac_cv_lib_c_stat" = xyes; then
18797
18798 $as_echo "#define HAVE_STAT 1" >>confdefs.h
18799
18800 elif test "x$ac_cv_func_stat" = xyes; then
18801
18802 $as_echo "#define HAVE_STAT 1" >>confdefs.h
18803
18804 else
18805
18806 $as_echo "#undef HAVE_STAT" >>confdefs.h
18807
18808 fi
18809 fi
18810
18811
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strsignal" >&5
18813 $as_echo_n "checking m2 front end checking c library for strsignal... " >&6; }
18814 if test x$gcc_no_link != xyes; then
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strsignal in -lc" >&5
18816 $as_echo_n "checking for strsignal in -lc... " >&6; }
18817 if ${ac_cv_lib_c_strsignal+:} false; then :
18818 $as_echo_n "(cached) " >&6
18819 else
18820 ac_check_lib_save_LIBS=$LIBS
18821 LIBS="-lc $LIBS"
18822 if test x$gcc_no_link = xyes; then
18823 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18824 fi
18825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18826 /* end confdefs.h. */
18827
18828 /* Override any GCC internal prototype to avoid an error.
18829 Use char because int might match the return type of a GCC
18830 builtin and then its argument prototype would still apply. */
18831 #ifdef __cplusplus
18832 extern "C"
18833 #endif
18834 char strsignal ();
18835 int
18836 main ()
18837 {
18838 return strsignal ();
18839 ;
18840 return 0;
18841 }
18842 _ACEOF
18843 if ac_fn_c_try_link "$LINENO"; then :
18844 ac_cv_lib_c_strsignal=yes
18845 else
18846 ac_cv_lib_c_strsignal=no
18847 fi
18848 rm -f core conftest.err conftest.$ac_objext \
18849 conftest$ac_exeext conftest.$ac_ext
18850 LIBS=$ac_check_lib_save_LIBS
18851 fi
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strsignal" >&5
18853 $as_echo "$ac_cv_lib_c_strsignal" >&6; }
18854 if test "x$ac_cv_lib_c_strsignal" = xyes; then :
18855
18856 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
18857
18858 else
18859
18860 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
18861
18862 fi
18863
18864 else
18865 if test "x$ac_cv_lib_c_strsignal" = xyes; then
18866
18867 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
18868
18869 elif test "x$ac_cv_func_strsignal" = xyes; then
18870
18871 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
18872
18873 else
18874
18875 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
18876
18877 fi
18878 fi
18879
18880
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtod" >&5
18882 $as_echo_n "checking m2 front end checking c library for strtod... " >&6; }
18883 if test x$gcc_no_link != xyes; then
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lc" >&5
18885 $as_echo_n "checking for strtod in -lc... " >&6; }
18886 if ${ac_cv_lib_c_strtod+:} false; then :
18887 $as_echo_n "(cached) " >&6
18888 else
18889 ac_check_lib_save_LIBS=$LIBS
18890 LIBS="-lc $LIBS"
18891 if test x$gcc_no_link = xyes; then
18892 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18893 fi
18894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18895 /* end confdefs.h. */
18896
18897 /* Override any GCC internal prototype to avoid an error.
18898 Use char because int might match the return type of a GCC
18899 builtin and then its argument prototype would still apply. */
18900 #ifdef __cplusplus
18901 extern "C"
18902 #endif
18903 char strtod ();
18904 int
18905 main ()
18906 {
18907 return strtod ();
18908 ;
18909 return 0;
18910 }
18911 _ACEOF
18912 if ac_fn_c_try_link "$LINENO"; then :
18913 ac_cv_lib_c_strtod=yes
18914 else
18915 ac_cv_lib_c_strtod=no
18916 fi
18917 rm -f core conftest.err conftest.$ac_objext \
18918 conftest$ac_exeext conftest.$ac_ext
18919 LIBS=$ac_check_lib_save_LIBS
18920 fi
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtod" >&5
18922 $as_echo "$ac_cv_lib_c_strtod" >&6; }
18923 if test "x$ac_cv_lib_c_strtod" = xyes; then :
18924
18925 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
18926
18927 else
18928
18929 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
18930
18931 fi
18932
18933 else
18934 if test "x$ac_cv_lib_c_strtod" = xyes; then
18935
18936 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
18937
18938 elif test "x$ac_cv_func_strtod" = xyes; then
18939
18940 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
18941
18942 else
18943
18944 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
18945
18946 fi
18947 fi
18948
18949
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtold" >&5
18951 $as_echo_n "checking m2 front end checking c library for strtold... " >&6; }
18952 if test x$gcc_no_link != xyes; then
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold in -lc" >&5
18954 $as_echo_n "checking for strtold in -lc... " >&6; }
18955 if ${ac_cv_lib_c_strtold+:} false; then :
18956 $as_echo_n "(cached) " >&6
18957 else
18958 ac_check_lib_save_LIBS=$LIBS
18959 LIBS="-lc $LIBS"
18960 if test x$gcc_no_link = xyes; then
18961 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18962 fi
18963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18964 /* end confdefs.h. */
18965
18966 /* Override any GCC internal prototype to avoid an error.
18967 Use char because int might match the return type of a GCC
18968 builtin and then its argument prototype would still apply. */
18969 #ifdef __cplusplus
18970 extern "C"
18971 #endif
18972 char strtold ();
18973 int
18974 main ()
18975 {
18976 return strtold ();
18977 ;
18978 return 0;
18979 }
18980 _ACEOF
18981 if ac_fn_c_try_link "$LINENO"; then :
18982 ac_cv_lib_c_strtold=yes
18983 else
18984 ac_cv_lib_c_strtold=no
18985 fi
18986 rm -f core conftest.err conftest.$ac_objext \
18987 conftest$ac_exeext conftest.$ac_ext
18988 LIBS=$ac_check_lib_save_LIBS
18989 fi
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtold" >&5
18991 $as_echo "$ac_cv_lib_c_strtold" >&6; }
18992 if test "x$ac_cv_lib_c_strtold" = xyes; then :
18993
18994 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
18995
18996 else
18997
18998 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
18999
19000 fi
19001
19002 else
19003 if test "x$ac_cv_lib_c_strtold" = xyes; then
19004
19005 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
19006
19007 elif test "x$ac_cv_func_strtold" = xyes; then
19008
19009 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
19010
19011 else
19012
19013 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
19014
19015 fi
19016 fi
19017
19018
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for times" >&5
19020 $as_echo_n "checking m2 front end checking c library for times... " >&6; }
19021 if test x$gcc_no_link != xyes; then
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times in -lc" >&5
19023 $as_echo_n "checking for times in -lc... " >&6; }
19024 if ${ac_cv_lib_c_times+:} false; then :
19025 $as_echo_n "(cached) " >&6
19026 else
19027 ac_check_lib_save_LIBS=$LIBS
19028 LIBS="-lc $LIBS"
19029 if test x$gcc_no_link = xyes; then
19030 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19031 fi
19032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19033 /* end confdefs.h. */
19034
19035 /* Override any GCC internal prototype to avoid an error.
19036 Use char because int might match the return type of a GCC
19037 builtin and then its argument prototype would still apply. */
19038 #ifdef __cplusplus
19039 extern "C"
19040 #endif
19041 char times ();
19042 int
19043 main ()
19044 {
19045 return times ();
19046 ;
19047 return 0;
19048 }
19049 _ACEOF
19050 if ac_fn_c_try_link "$LINENO"; then :
19051 ac_cv_lib_c_times=yes
19052 else
19053 ac_cv_lib_c_times=no
19054 fi
19055 rm -f core conftest.err conftest.$ac_objext \
19056 conftest$ac_exeext conftest.$ac_ext
19057 LIBS=$ac_check_lib_save_LIBS
19058 fi
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_times" >&5
19060 $as_echo "$ac_cv_lib_c_times" >&6; }
19061 if test "x$ac_cv_lib_c_times" = xyes; then :
19062
19063 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19064
19065 else
19066
19067 $as_echo "#undef HAVE_TIMES" >>confdefs.h
19068
19069 fi
19070
19071 else
19072 if test "x$ac_cv_lib_c_times" = xyes; then
19073
19074 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19075
19076 elif test "x$ac_cv_func_times" = xyes; then
19077
19078 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19079
19080 else
19081
19082 $as_echo "#undef HAVE_TIMES" >>confdefs.h
19083
19084 fi
19085 fi
19086
19087
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for unlink" >&5
19089 $as_echo_n "checking m2 front end checking c library for unlink... " >&6; }
19090 if test x$gcc_no_link != xyes; then
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unlink in -lc" >&5
19092 $as_echo_n "checking for unlink in -lc... " >&6; }
19093 if ${ac_cv_lib_c_unlink+:} false; then :
19094 $as_echo_n "(cached) " >&6
19095 else
19096 ac_check_lib_save_LIBS=$LIBS
19097 LIBS="-lc $LIBS"
19098 if test x$gcc_no_link = xyes; then
19099 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19100 fi
19101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19102 /* end confdefs.h. */
19103
19104 /* Override any GCC internal prototype to avoid an error.
19105 Use char because int might match the return type of a GCC
19106 builtin and then its argument prototype would still apply. */
19107 #ifdef __cplusplus
19108 extern "C"
19109 #endif
19110 char unlink ();
19111 int
19112 main ()
19113 {
19114 return unlink ();
19115 ;
19116 return 0;
19117 }
19118 _ACEOF
19119 if ac_fn_c_try_link "$LINENO"; then :
19120 ac_cv_lib_c_unlink=yes
19121 else
19122 ac_cv_lib_c_unlink=no
19123 fi
19124 rm -f core conftest.err conftest.$ac_objext \
19125 conftest$ac_exeext conftest.$ac_ext
19126 LIBS=$ac_check_lib_save_LIBS
19127 fi
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_unlink" >&5
19129 $as_echo "$ac_cv_lib_c_unlink" >&6; }
19130 if test "x$ac_cv_lib_c_unlink" = xyes; then :
19131
19132 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19133
19134 else
19135
19136 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
19137
19138 fi
19139
19140 else
19141 if test "x$ac_cv_lib_c_unlink" = xyes; then
19142
19143 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19144
19145 elif test "x$ac_cv_func_unlink" = xyes; then
19146
19147 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19148
19149 else
19150
19151 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
19152
19153 fi
19154 fi
19155
19156
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for wait" >&5
19158 $as_echo_n "checking m2 front end checking c library for wait... " >&6; }
19159 if test x$gcc_no_link != xyes; then
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait in -lc" >&5
19161 $as_echo_n "checking for wait in -lc... " >&6; }
19162 if ${ac_cv_lib_c_wait+:} false; then :
19163 $as_echo_n "(cached) " >&6
19164 else
19165 ac_check_lib_save_LIBS=$LIBS
19166 LIBS="-lc $LIBS"
19167 if test x$gcc_no_link = xyes; then
19168 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19169 fi
19170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19171 /* end confdefs.h. */
19172
19173 /* Override any GCC internal prototype to avoid an error.
19174 Use char because int might match the return type of a GCC
19175 builtin and then its argument prototype would still apply. */
19176 #ifdef __cplusplus
19177 extern "C"
19178 #endif
19179 char wait ();
19180 int
19181 main ()
19182 {
19183 return wait ();
19184 ;
19185 return 0;
19186 }
19187 _ACEOF
19188 if ac_fn_c_try_link "$LINENO"; then :
19189 ac_cv_lib_c_wait=yes
19190 else
19191 ac_cv_lib_c_wait=no
19192 fi
19193 rm -f core conftest.err conftest.$ac_objext \
19194 conftest$ac_exeext conftest.$ac_ext
19195 LIBS=$ac_check_lib_save_LIBS
19196 fi
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_wait" >&5
19198 $as_echo "$ac_cv_lib_c_wait" >&6; }
19199 if test "x$ac_cv_lib_c_wait" = xyes; then :
19200
19201 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19202
19203 else
19204
19205 $as_echo "#undef HAVE_WAIT" >>confdefs.h
19206
19207 fi
19208
19209 else
19210 if test "x$ac_cv_lib_c_wait" = xyes; then
19211
19212 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19213
19214 elif test "x$ac_cv_func_wait" = xyes; then
19215
19216 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19217
19218 else
19219
19220 $as_echo "#undef HAVE_WAIT" >>confdefs.h
19221
19222 fi
19223 fi
19224
19225
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for write" >&5
19227 $as_echo_n "checking m2 front end checking c library for write... " >&6; }
19228 if test x$gcc_no_link != xyes; then
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for write in -lc" >&5
19230 $as_echo_n "checking for write in -lc... " >&6; }
19231 if ${ac_cv_lib_c_write+:} false; then :
19232 $as_echo_n "(cached) " >&6
19233 else
19234 ac_check_lib_save_LIBS=$LIBS
19235 LIBS="-lc $LIBS"
19236 if test x$gcc_no_link = xyes; then
19237 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19238 fi
19239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19240 /* end confdefs.h. */
19241
19242 /* Override any GCC internal prototype to avoid an error.
19243 Use char because int might match the return type of a GCC
19244 builtin and then its argument prototype would still apply. */
19245 #ifdef __cplusplus
19246 extern "C"
19247 #endif
19248 char write ();
19249 int
19250 main ()
19251 {
19252 return write ();
19253 ;
19254 return 0;
19255 }
19256 _ACEOF
19257 if ac_fn_c_try_link "$LINENO"; then :
19258 ac_cv_lib_c_write=yes
19259 else
19260 ac_cv_lib_c_write=no
19261 fi
19262 rm -f core conftest.err conftest.$ac_objext \
19263 conftest$ac_exeext conftest.$ac_ext
19264 LIBS=$ac_check_lib_save_LIBS
19265 fi
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_write" >&5
19267 $as_echo "$ac_cv_lib_c_write" >&6; }
19268 if test "x$ac_cv_lib_c_write" = xyes; then :
19269
19270 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19271
19272 else
19273
19274 $as_echo "#undef HAVE_WRITE" >>confdefs.h
19275
19276 fi
19277
19278 else
19279 if test "x$ac_cv_lib_c_write" = xyes; then
19280
19281 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19282
19283 elif test "x$ac_cv_func_write" = xyes; then
19284
19285 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19286
19287 else
19288
19289 $as_echo "#undef HAVE_WRITE" >>confdefs.h
19290
19291 fi
19292 fi
19293
19294
19295
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbit" >&5
19297 $as_echo_n "checking m2 front end checking m library for signbit... " >&6; }
19298 if test x$gcc_no_link != xyes; then
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit in -lm" >&5
19300 $as_echo_n "checking for signbit in -lm... " >&6; }
19301 if ${ac_cv_lib_m_signbit+:} false; then :
19302 $as_echo_n "(cached) " >&6
19303 else
19304 ac_check_lib_save_LIBS=$LIBS
19305 LIBS="-lm $LIBS"
19306 if test x$gcc_no_link = xyes; then
19307 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19308 fi
19309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19310 /* end confdefs.h. */
19311
19312 /* Override any GCC internal prototype to avoid an error.
19313 Use char because int might match the return type of a GCC
19314 builtin and then its argument prototype would still apply. */
19315 #ifdef __cplusplus
19316 extern "C"
19317 #endif
19318 char signbit ();
19319 int
19320 main ()
19321 {
19322 return signbit ();
19323 ;
19324 return 0;
19325 }
19326 _ACEOF
19327 if ac_fn_c_try_link "$LINENO"; then :
19328 ac_cv_lib_m_signbit=yes
19329 else
19330 ac_cv_lib_m_signbit=no
19331 fi
19332 rm -f core conftest.err conftest.$ac_objext \
19333 conftest$ac_exeext conftest.$ac_ext
19334 LIBS=$ac_check_lib_save_LIBS
19335 fi
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbit" >&5
19337 $as_echo "$ac_cv_lib_m_signbit" >&6; }
19338 if test "x$ac_cv_lib_m_signbit" = xyes; then :
19339
19340 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
19341
19342 else
19343
19344 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
19345
19346 fi
19347
19348 else
19349 if test "x$ac_cv_lib_m_signbit" = xyes; then
19350
19351 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
19352
19353 elif test "x$ac_cv_func_signbit" = xyes; then
19354
19355 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
19356
19357 else
19358
19359 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
19360
19361 fi
19362 fi
19363
19364
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitf" >&5
19366 $as_echo_n "checking m2 front end checking m library for signbitf... " >&6; }
19367 if test x$gcc_no_link != xyes; then
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitf in -lm" >&5
19369 $as_echo_n "checking for signbitf in -lm... " >&6; }
19370 if ${ac_cv_lib_m_signbitf+:} false; then :
19371 $as_echo_n "(cached) " >&6
19372 else
19373 ac_check_lib_save_LIBS=$LIBS
19374 LIBS="-lm $LIBS"
19375 if test x$gcc_no_link = xyes; then
19376 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19377 fi
19378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19379 /* end confdefs.h. */
19380
19381 /* Override any GCC internal prototype to avoid an error.
19382 Use char because int might match the return type of a GCC
19383 builtin and then its argument prototype would still apply. */
19384 #ifdef __cplusplus
19385 extern "C"
19386 #endif
19387 char signbitf ();
19388 int
19389 main ()
19390 {
19391 return signbitf ();
19392 ;
19393 return 0;
19394 }
19395 _ACEOF
19396 if ac_fn_c_try_link "$LINENO"; then :
19397 ac_cv_lib_m_signbitf=yes
19398 else
19399 ac_cv_lib_m_signbitf=no
19400 fi
19401 rm -f core conftest.err conftest.$ac_objext \
19402 conftest$ac_exeext conftest.$ac_ext
19403 LIBS=$ac_check_lib_save_LIBS
19404 fi
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitf" >&5
19406 $as_echo "$ac_cv_lib_m_signbitf" >&6; }
19407 if test "x$ac_cv_lib_m_signbitf" = xyes; then :
19408
19409 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
19410
19411 else
19412
19413 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
19414
19415 fi
19416
19417 else
19418 if test "x$ac_cv_lib_m_signbitf" = xyes; then
19419
19420 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
19421
19422 elif test "x$ac_cv_func_signbitf" = xyes; then
19423
19424 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
19425
19426 else
19427
19428 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
19429
19430 fi
19431 fi
19432
19433
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitl" >&5
19435 $as_echo_n "checking m2 front end checking m library for signbitl... " >&6; }
19436 if test x$gcc_no_link != xyes; then
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitl in -lm" >&5
19438 $as_echo_n "checking for signbitl in -lm... " >&6; }
19439 if ${ac_cv_lib_m_signbitl+:} false; then :
19440 $as_echo_n "(cached) " >&6
19441 else
19442 ac_check_lib_save_LIBS=$LIBS
19443 LIBS="-lm $LIBS"
19444 if test x$gcc_no_link = xyes; then
19445 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19446 fi
19447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19448 /* end confdefs.h. */
19449
19450 /* Override any GCC internal prototype to avoid an error.
19451 Use char because int might match the return type of a GCC
19452 builtin and then its argument prototype would still apply. */
19453 #ifdef __cplusplus
19454 extern "C"
19455 #endif
19456 char signbitl ();
19457 int
19458 main ()
19459 {
19460 return signbitl ();
19461 ;
19462 return 0;
19463 }
19464 _ACEOF
19465 if ac_fn_c_try_link "$LINENO"; then :
19466 ac_cv_lib_m_signbitl=yes
19467 else
19468 ac_cv_lib_m_signbitl=no
19469 fi
19470 rm -f core conftest.err conftest.$ac_objext \
19471 conftest$ac_exeext conftest.$ac_ext
19472 LIBS=$ac_check_lib_save_LIBS
19473 fi
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitl" >&5
19475 $as_echo "$ac_cv_lib_m_signbitl" >&6; }
19476 if test "x$ac_cv_lib_m_signbitl" = xyes; then :
19477
19478 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
19479
19480 else
19481
19482 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
19483
19484 fi
19485
19486 else
19487 if test "x$ac_cv_lib_m_signbitl" = xyes; then
19488
19489 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
19490
19491 elif test "x$ac_cv_func_signbitl" = xyes; then
19492
19493 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
19494
19495 else
19496
19497 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
19498
19499 fi
19500 fi
19501
19502
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has finished checking target libc and libm contents." >&5
19504 $as_echo "$as_me: libgm2 has finished checking target libc and libm contents." >&6;}
19505
19506 # We test the host here and later on check the target.
19507
19508 # All known M2_HOST_OS values. This is the union of all host operating systems
19509 # supported by gm2.
19510
19511 M2_SUPPORTED_HOST_OS="aix freebsd hurd linux netbsd openbsd solaris windows"
19512
19513 M2_HOST_OS=unknown
19514
19515 case ${host} in
19516 *-*-darwin*) M2_HOST_OS=darwin ;;
19517 *-*-freebsd*) M2_HOST_OS=freebsd ;;
19518 *-*-linux*) M2_HOST_OS=linux ;;
19519 *-*-netbsd*) M2_HOST_OS=netbsd ;;
19520 *-*-openbsd*) M2_HOST_OS=openbsd ;;
19521 *-*-solaris2*) M2_HOST_OS=solaris ;;
19522 *-*-aix*) M2_HOST_OS=aix ;;
19523 *-*-gnu*) M2_HOST_OS=hurd ;;
19524 esac
19525
19526 # M2_HOST_OS=unknown
19527 if test x${M2_HOST_OS} = xunknown; then
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported host, will build a minimal m2 library" >&5
19529 $as_echo "$as_me: unsupported host, will build a minimal m2 library" >&6;}
19530 BUILD_PIMLIB=false
19531 BUILD_ISOLIB=false
19532 BUILD_CORLIB=false
19533 BUILD_LOGLIB=false
19534 else
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library will be built on ${M2_HOST_OS}" >&5
19536 $as_echo "$as_me: m2 library will be built on ${M2_HOST_OS}" >&6;}
19537 BUILD_PIMLIB=true
19538 BUILD_ISOLIB=true
19539 BUILD_CORLIB=true
19540 BUILD_LOGLIB=true
19541 fi
19542
19543 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
19544
19545
19546 # Propagate GM2_FOR_TARGET into Makefiles
19547 GM2_FOR_TARGET=${GM2_FOR_TARGET:-gcc}
19548
19549
19550 # Now we check the target as long as it is a supported host.
19551 # For some embedded targets we choose minimal runtime system which is
19552 # just enough to satisfy the linker targetting raw metal.
19553 if test x${M2_HOST_OS} != xunknown; then
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library building for target ${target}" >&5
19555 $as_echo "$as_me: m2 library building for target ${target}" >&6;}
19556 case "$target" in
19557
19558 avr25*-*-* | avr31*-*-* | avr35*-*-* | avr4*-*-* | avr5*-*-* | avr51*-*-* | avr6*-*-*)
19559 BUILD_PIMLIB=false
19560 BUILD_ISOLIB=false
19561 BUILD_CORLIB=false
19562 BUILD_LOGLIB=false
19563 ;;
19564
19565 avrxmega2*-*-* | avrxmega4*-*-* | avrxmega5*-*-* | avrxmega6*-*-* | avrxmega7*-*-*)
19566 BUILD_PIMLIB=false
19567 BUILD_ISOLIB=false
19568 BUILD_CORLIB=false
19569 BUILD_LOGLIB=false
19570 ;;
19571
19572 avr3-*-*)
19573 BUILD_PIMLIB=true
19574 BUILD_ISOLIB=true
19575 BUILD_CORLIB=true
19576 BUILD_LOGLIB=true
19577 ;;
19578 esp32-*-*)
19579 BUILD_PIMLIB=false
19580 BUILD_ISOLIB=false
19581 BUILD_CORLIB=false
19582 BUILD_LOGLIB=false
19583 ;;
19584
19585 esac
19586 fi
19587
19588 # GM2_MSG_RESULT issue a query message from the first parameter and a boolean result
19589 # in the second parameter is printed as a "yes" or "no".
19590
19591
19592
19593 if test x${M2_HOST_OS} = xunknown; then
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 front end will only build minimal Modula-2 runtime library on this host" >&5
19595 $as_echo "$as_me: m2 front end will only build minimal Modula-2 runtime library on this host" >&6;}
19596 else
19597
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build PIM libraries:" >&5
19599 $as_echo_n "checking m2 front end will build PIM libraries:... " >&6; }
19600 if test x${BUILD_PIMLIB} = xtrue; then
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19602 $as_echo "yes" >&6; }
19603 else
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19605 $as_echo "no" >&6; }
19606 fi
19607
19608
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build ISO libraries:" >&5
19610 $as_echo_n "checking m2 front end will build ISO libraries:... " >&6; }
19611 if test x${BUILD_ISOLIB} = xtrue; then
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19613 $as_echo "yes" >&6; }
19614 else
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19616 $as_echo "no" >&6; }
19617 fi
19618
19619
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build coroutine libraries:" >&5
19621 $as_echo_n "checking m2 front end will build coroutine libraries:... " >&6; }
19622 if test x${BUILD_CORLIB} = xtrue; then
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19624 $as_echo "yes" >&6; }
19625 else
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19627 $as_echo "no" >&6; }
19628 fi
19629
19630
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build Logitech compatability libraries:" >&5
19632 $as_echo_n "checking m2 front end will build Logitech compatability libraries:... " >&6; }
19633 if test x${BUILD_LOGLIB} = xtrue; then
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19635 $as_echo "yes" >&6; }
19636 else
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19638 $as_echo "no" >&6; }
19639 fi
19640
19641 fi
19642
19643 if test x$BUILD_PIMLIB = xtrue; then
19644 BUILD_PIMLIB_TRUE=
19645 BUILD_PIMLIB_FALSE='#'
19646 else
19647 BUILD_PIMLIB_TRUE='#'
19648 BUILD_PIMLIB_FALSE=
19649 fi
19650
19651 if test x$BUILD_ISOLIB = xtrue; then
19652 BUILD_ISOLIB_TRUE=
19653 BUILD_ISOLIB_FALSE='#'
19654 else
19655 BUILD_ISOLIB_TRUE='#'
19656 BUILD_ISOLIB_FALSE=
19657 fi
19658
19659 if test x$BUILD_CORLIB = xtrue; then
19660 BUILD_CORLIB_TRUE=
19661 BUILD_CORLIB_FALSE='#'
19662 else
19663 BUILD_CORLIB_TRUE='#'
19664 BUILD_CORLIB_FALSE=
19665 fi
19666
19667 if test x$BUILD_LOGLIB = xtrue; then
19668 BUILD_LOGLIB_TRUE=
19669 BUILD_LOGLIB_FALSE='#'
19670 else
19671 BUILD_LOGLIB_TRUE='#'
19672 BUILD_LOGLIB_FALSE=
19673 fi
19674
19675
19676
19677 ac_config_files="$ac_config_files Makefile libm2min/Makefile libm2pim/Makefile libm2iso/Makefile libm2cor/Makefile libm2log/Makefile"
19678
19679
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has been configured." >&5
19681 $as_echo "$as_me: libgm2 has been configured." >&6;}
19682
19683 cat >confcache <<\_ACEOF
19684 # This file is a shell script that caches the results of configure
19685 # tests run on this system so they can be shared between configure
19686 # scripts and configure runs, see configure's option --config-cache.
19687 # It is not useful on other systems. If it contains results you don't
19688 # want to keep, you may remove or edit it.
19689 #
19690 # config.status only pays attention to the cache file if you give it
19691 # the --recheck option to rerun configure.
19692 #
19693 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19694 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19695 # following values.
19696
19697 _ACEOF
19698
19699 # The following way of writing the cache mishandles newlines in values,
19700 # but we know of no workaround that is simple, portable, and efficient.
19701 # So, we kill variables containing newlines.
19702 # Ultrix sh set writes to stderr and can't be redirected directly,
19703 # and sets the high bit in the cache file unless we assign to the vars.
19704 (
19705 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19706 eval ac_val=\$$ac_var
19707 case $ac_val in #(
19708 *${as_nl}*)
19709 case $ac_var in #(
19710 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19711 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19712 esac
19713 case $ac_var in #(
19714 _ | IFS | as_nl) ;; #(
19715 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19716 *) { eval $ac_var=; unset $ac_var;} ;;
19717 esac ;;
19718 esac
19719 done
19720
19721 (set) 2>&1 |
19722 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19723 *${as_nl}ac_space=\ *)
19724 # `set' does not quote correctly, so add quotes: double-quote
19725 # substitution turns \\\\ into \\, and sed turns \\ into \.
19726 sed -n \
19727 "s/'/'\\\\''/g;
19728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19729 ;; #(
19730 *)
19731 # `set' quotes correctly as required by POSIX, so do not add quotes.
19732 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19733 ;;
19734 esac |
19735 sort
19736 ) |
19737 sed '
19738 /^ac_cv_env_/b end
19739 t clear
19740 :clear
19741 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19742 t end
19743 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19744 :end' >>confcache
19745 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19746 if test -w "$cache_file"; then
19747 if test "x$cache_file" != "x/dev/null"; then
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19749 $as_echo "$as_me: updating cache $cache_file" >&6;}
19750 if test ! -f "$cache_file" || test -h "$cache_file"; then
19751 cat confcache >"$cache_file"
19752 else
19753 case $cache_file in #(
19754 */* | ?:*)
19755 mv -f confcache "$cache_file"$$ &&
19756 mv -f "$cache_file"$$ "$cache_file" ;; #(
19757 *)
19758 mv -f confcache "$cache_file" ;;
19759 esac
19760 fi
19761 fi
19762 else
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19764 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19765 fi
19766 fi
19767 rm -f confcache
19768
19769 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19770 # Let make expand exec_prefix.
19771 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19772
19773 DEFS=-DHAVE_CONFIG_H
19774
19775 ac_libobjs=
19776 ac_ltlibobjs=
19777 U=
19778 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19779 # 1. Remove the extension, and $U if already installed.
19780 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19781 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19782 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19783 # will be set to the directory where LIBOBJS objects are built.
19784 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19785 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19786 done
19787 LIBOBJS=$ac_libobjs
19788
19789 LTLIBOBJS=$ac_ltlibobjs
19790
19791
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19793 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19794 if test -n "$am_sleep_pid"; then
19795 # Hide warnings about reused PIDs.
19796 wait $am_sleep_pid 2>/dev/null
19797 fi
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19799 $as_echo "done" >&6; }
19800 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19801 as_fn_error $? "conditional \"AMDEP\" was never defined.
19802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19803 fi
19804 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19805 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19807 fi
19808 if test -n "$EXEEXT"; then
19809 am__EXEEXT_TRUE=
19810 am__EXEEXT_FALSE='#'
19811 else
19812 am__EXEEXT_TRUE='#'
19813 am__EXEEXT_FALSE=
19814 fi
19815
19816 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19817 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19819 fi
19820 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19821 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19823 fi
19824 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19825 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
19826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19827 fi
19828 if test -z "${BUILD_PIMLIB_TRUE}" && test -z "${BUILD_PIMLIB_FALSE}"; then
19829 as_fn_error $? "conditional \"BUILD_PIMLIB\" was never defined.
19830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19831 fi
19832 if test -z "${BUILD_ISOLIB_TRUE}" && test -z "${BUILD_ISOLIB_FALSE}"; then
19833 as_fn_error $? "conditional \"BUILD_ISOLIB\" was never defined.
19834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19835 fi
19836 if test -z "${BUILD_CORLIB_TRUE}" && test -z "${BUILD_CORLIB_FALSE}"; then
19837 as_fn_error $? "conditional \"BUILD_CORLIB\" was never defined.
19838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19839 fi
19840 if test -z "${BUILD_LOGLIB_TRUE}" && test -z "${BUILD_LOGLIB_FALSE}"; then
19841 as_fn_error $? "conditional \"BUILD_LOGLIB\" was never defined.
19842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19843 fi
19844
19845 : "${CONFIG_STATUS=./config.status}"
19846 ac_write_fail=0
19847 ac_clean_files_save=$ac_clean_files
19848 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19850 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19851 as_write_fail=0
19852 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19853 #! $SHELL
19854 # Generated by $as_me.
19855 # Run this file to recreate the current configuration.
19856 # Compiler output produced by configure, useful for debugging
19857 # configure, is in config.log if it exists.
19858
19859 debug=false
19860 ac_cs_recheck=false
19861 ac_cs_silent=false
19862
19863 SHELL=\${CONFIG_SHELL-$SHELL}
19864 export SHELL
19865 _ASEOF
19866 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19867 ## -------------------- ##
19868 ## M4sh Initialization. ##
19869 ## -------------------- ##
19870
19871 # Be more Bourne compatible
19872 DUALCASE=1; export DUALCASE # for MKS sh
19873 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19874 emulate sh
19875 NULLCMD=:
19876 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19877 # is contrary to our usage. Disable this feature.
19878 alias -g '${1+"$@"}'='"$@"'
19879 setopt NO_GLOB_SUBST
19880 else
19881 case `(set -o) 2>/dev/null` in #(
19882 *posix*) :
19883 set -o posix ;; #(
19884 *) :
19885 ;;
19886 esac
19887 fi
19888
19889
19890 as_nl='
19891 '
19892 export as_nl
19893 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19894 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19895 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19896 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19897 # Prefer a ksh shell builtin over an external printf program on Solaris,
19898 # but without wasting forks for bash or zsh.
19899 if test -z "$BASH_VERSION$ZSH_VERSION" \
19900 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19901 as_echo='print -r --'
19902 as_echo_n='print -rn --'
19903 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19904 as_echo='printf %s\n'
19905 as_echo_n='printf %s'
19906 else
19907 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19908 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19909 as_echo_n='/usr/ucb/echo -n'
19910 else
19911 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19912 as_echo_n_body='eval
19913 arg=$1;
19914 case $arg in #(
19915 *"$as_nl"*)
19916 expr "X$arg" : "X\\(.*\\)$as_nl";
19917 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19918 esac;
19919 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19920 '
19921 export as_echo_n_body
19922 as_echo_n='sh -c $as_echo_n_body as_echo'
19923 fi
19924 export as_echo_body
19925 as_echo='sh -c $as_echo_body as_echo'
19926 fi
19927
19928 # The user is always right.
19929 if test "${PATH_SEPARATOR+set}" != set; then
19930 PATH_SEPARATOR=:
19931 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19932 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19933 PATH_SEPARATOR=';'
19934 }
19935 fi
19936
19937
19938 # IFS
19939 # We need space, tab and new line, in precisely that order. Quoting is
19940 # there to prevent editors from complaining about space-tab.
19941 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19942 # splitting by setting IFS to empty value.)
19943 IFS=" "" $as_nl"
19944
19945 # Find who we are. Look in the path if we contain no directory separator.
19946 as_myself=
19947 case $0 in #((
19948 *[\\/]* ) as_myself=$0 ;;
19949 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19950 for as_dir in $PATH
19951 do
19952 IFS=$as_save_IFS
19953 test -z "$as_dir" && as_dir=.
19954 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19955 done
19956 IFS=$as_save_IFS
19957
19958 ;;
19959 esac
19960 # We did not find ourselves, most probably we were run as `sh COMMAND'
19961 # in which case we are not to be found in the path.
19962 if test "x$as_myself" = x; then
19963 as_myself=$0
19964 fi
19965 if test ! -f "$as_myself"; then
19966 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19967 exit 1
19968 fi
19969
19970 # Unset variables that we do not need and which cause bugs (e.g. in
19971 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19972 # suppresses any "Segmentation fault" message there. '((' could
19973 # trigger a bug in pdksh 5.2.14.
19974 for as_var in BASH_ENV ENV MAIL MAILPATH
19975 do eval test x\${$as_var+set} = xset \
19976 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19977 done
19978 PS1='$ '
19979 PS2='> '
19980 PS4='+ '
19981
19982 # NLS nuisances.
19983 LC_ALL=C
19984 export LC_ALL
19985 LANGUAGE=C
19986 export LANGUAGE
19987
19988 # CDPATH.
19989 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19990
19991
19992 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19993 # ----------------------------------------
19994 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19995 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19996 # script with STATUS, using 1 if that was 0.
19997 as_fn_error ()
19998 {
19999 as_status=$1; test $as_status -eq 0 && as_status=1
20000 if test "$4"; then
20001 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20002 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20003 fi
20004 $as_echo "$as_me: error: $2" >&2
20005 as_fn_exit $as_status
20006 } # as_fn_error
20007
20008
20009 # as_fn_set_status STATUS
20010 # -----------------------
20011 # Set $? to STATUS, without forking.
20012 as_fn_set_status ()
20013 {
20014 return $1
20015 } # as_fn_set_status
20016
20017 # as_fn_exit STATUS
20018 # -----------------
20019 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20020 as_fn_exit ()
20021 {
20022 set +e
20023 as_fn_set_status $1
20024 exit $1
20025 } # as_fn_exit
20026
20027 # as_fn_unset VAR
20028 # ---------------
20029 # Portably unset VAR.
20030 as_fn_unset ()
20031 {
20032 { eval $1=; unset $1;}
20033 }
20034 as_unset=as_fn_unset
20035 # as_fn_append VAR VALUE
20036 # ----------------------
20037 # Append the text in VALUE to the end of the definition contained in VAR. Take
20038 # advantage of any shell optimizations that allow amortized linear growth over
20039 # repeated appends, instead of the typical quadratic growth present in naive
20040 # implementations.
20041 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20042 eval 'as_fn_append ()
20043 {
20044 eval $1+=\$2
20045 }'
20046 else
20047 as_fn_append ()
20048 {
20049 eval $1=\$$1\$2
20050 }
20051 fi # as_fn_append
20052
20053 # as_fn_arith ARG...
20054 # ------------------
20055 # Perform arithmetic evaluation on the ARGs, and store the result in the
20056 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20057 # must be portable across $(()) and expr.
20058 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20059 eval 'as_fn_arith ()
20060 {
20061 as_val=$(( $* ))
20062 }'
20063 else
20064 as_fn_arith ()
20065 {
20066 as_val=`expr "$@" || test $? -eq 1`
20067 }
20068 fi # as_fn_arith
20069
20070
20071 if expr a : '\(a\)' >/dev/null 2>&1 &&
20072 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20073 as_expr=expr
20074 else
20075 as_expr=false
20076 fi
20077
20078 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20079 as_basename=basename
20080 else
20081 as_basename=false
20082 fi
20083
20084 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20085 as_dirname=dirname
20086 else
20087 as_dirname=false
20088 fi
20089
20090 as_me=`$as_basename -- "$0" ||
20091 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20092 X"$0" : 'X\(//\)$' \| \
20093 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20094 $as_echo X/"$0" |
20095 sed '/^.*\/\([^/][^/]*\)\/*$/{
20096 s//\1/
20097 q
20098 }
20099 /^X\/\(\/\/\)$/{
20100 s//\1/
20101 q
20102 }
20103 /^X\/\(\/\).*/{
20104 s//\1/
20105 q
20106 }
20107 s/.*/./; q'`
20108
20109 # Avoid depending upon Character Ranges.
20110 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20111 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20112 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20113 as_cr_digits='0123456789'
20114 as_cr_alnum=$as_cr_Letters$as_cr_digits
20115
20116 ECHO_C= ECHO_N= ECHO_T=
20117 case `echo -n x` in #(((((
20118 -n*)
20119 case `echo 'xy\c'` in
20120 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20121 xy) ECHO_C='\c';;
20122 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20123 ECHO_T=' ';;
20124 esac;;
20125 *)
20126 ECHO_N='-n';;
20127 esac
20128
20129 rm -f conf$$ conf$$.exe conf$$.file
20130 if test -d conf$$.dir; then
20131 rm -f conf$$.dir/conf$$.file
20132 else
20133 rm -f conf$$.dir
20134 mkdir conf$$.dir 2>/dev/null
20135 fi
20136 if (echo >conf$$.file) 2>/dev/null; then
20137 if ln -s conf$$.file conf$$ 2>/dev/null; then
20138 as_ln_s='ln -s'
20139 # ... but there are two gotchas:
20140 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20141 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20142 # In both cases, we have to default to `cp -pR'.
20143 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20144 as_ln_s='cp -pR'
20145 elif ln conf$$.file conf$$ 2>/dev/null; then
20146 as_ln_s=ln
20147 else
20148 as_ln_s='cp -pR'
20149 fi
20150 else
20151 as_ln_s='cp -pR'
20152 fi
20153 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20154 rmdir conf$$.dir 2>/dev/null
20155
20156
20157 # as_fn_mkdir_p
20158 # -------------
20159 # Create "$as_dir" as a directory, including parents if necessary.
20160 as_fn_mkdir_p ()
20161 {
20162
20163 case $as_dir in #(
20164 -*) as_dir=./$as_dir;;
20165 esac
20166 test -d "$as_dir" || eval $as_mkdir_p || {
20167 as_dirs=
20168 while :; do
20169 case $as_dir in #(
20170 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20171 *) as_qdir=$as_dir;;
20172 esac
20173 as_dirs="'$as_qdir' $as_dirs"
20174 as_dir=`$as_dirname -- "$as_dir" ||
20175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20176 X"$as_dir" : 'X\(//\)[^/]' \| \
20177 X"$as_dir" : 'X\(//\)$' \| \
20178 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20179 $as_echo X"$as_dir" |
20180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20181 s//\1/
20182 q
20183 }
20184 /^X\(\/\/\)[^/].*/{
20185 s//\1/
20186 q
20187 }
20188 /^X\(\/\/\)$/{
20189 s//\1/
20190 q
20191 }
20192 /^X\(\/\).*/{
20193 s//\1/
20194 q
20195 }
20196 s/.*/./; q'`
20197 test -d "$as_dir" && break
20198 done
20199 test -z "$as_dirs" || eval "mkdir $as_dirs"
20200 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20201
20202
20203 } # as_fn_mkdir_p
20204 if mkdir -p . 2>/dev/null; then
20205 as_mkdir_p='mkdir -p "$as_dir"'
20206 else
20207 test -d ./-p && rmdir ./-p
20208 as_mkdir_p=false
20209 fi
20210
20211
20212 # as_fn_executable_p FILE
20213 # -----------------------
20214 # Test if FILE is an executable regular file.
20215 as_fn_executable_p ()
20216 {
20217 test -f "$1" && test -x "$1"
20218 } # as_fn_executable_p
20219 as_test_x='test -x'
20220 as_executable_p=as_fn_executable_p
20221
20222 # Sed expression to map a string onto a valid CPP name.
20223 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20224
20225 # Sed expression to map a string onto a valid variable name.
20226 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20227
20228
20229 exec 6>&1
20230 ## ----------------------------------- ##
20231 ## Main body of $CONFIG_STATUS script. ##
20232 ## ----------------------------------- ##
20233 _ASEOF
20234 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20235
20236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20237 # Save the log message, to keep $0 and so on meaningful, and to
20238 # report actual input values of CONFIG_FILES etc. instead of their
20239 # values after options handling.
20240 ac_log="
20241 This file was extended by package-unused $as_me version-unused, which was
20242 generated by GNU Autoconf 2.69. Invocation command line was
20243
20244 CONFIG_FILES = $CONFIG_FILES
20245 CONFIG_HEADERS = $CONFIG_HEADERS
20246 CONFIG_LINKS = $CONFIG_LINKS
20247 CONFIG_COMMANDS = $CONFIG_COMMANDS
20248 $ $0 $@
20249
20250 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20251 "
20252
20253 _ACEOF
20254
20255 case $ac_config_files in *"
20256 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20257 esac
20258
20259 case $ac_config_headers in *"
20260 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20261 esac
20262
20263
20264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20265 # Files that config.status was made for.
20266 config_files="$ac_config_files"
20267 config_headers="$ac_config_headers"
20268 config_commands="$ac_config_commands"
20269
20270 _ACEOF
20271
20272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20273 ac_cs_usage="\
20274 \`$as_me' instantiates files and other configuration actions
20275 from templates according to the current configuration. Unless the files
20276 and actions are specified as TAGs, all are instantiated by default.
20277
20278 Usage: $0 [OPTION]... [TAG]...
20279
20280 -h, --help print this help, then exit
20281 -V, --version print version number and configuration settings, then exit
20282 --config print configuration, then exit
20283 -q, --quiet, --silent
20284 do not print progress messages
20285 -d, --debug don't remove temporary files
20286 --recheck update $as_me by reconfiguring in the same conditions
20287 --file=FILE[:TEMPLATE]
20288 instantiate the configuration file FILE
20289 --header=FILE[:TEMPLATE]
20290 instantiate the configuration header FILE
20291
20292 Configuration files:
20293 $config_files
20294
20295 Configuration headers:
20296 $config_headers
20297
20298 Configuration commands:
20299 $config_commands
20300
20301 Report bugs to the package provider."
20302
20303 _ACEOF
20304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20305 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20306 ac_cs_version="\\
20307 package-unused config.status version-unused
20308 configured by $0, generated by GNU Autoconf 2.69,
20309 with options \\"\$ac_cs_config\\"
20310
20311 Copyright (C) 2012 Free Software Foundation, Inc.
20312 This config.status script is free software; the Free Software Foundation
20313 gives unlimited permission to copy, distribute and modify it."
20314
20315 ac_pwd='$ac_pwd'
20316 srcdir='$srcdir'
20317 INSTALL='$INSTALL'
20318 MKDIR_P='$MKDIR_P'
20319 AWK='$AWK'
20320 test -n "\$AWK" || AWK=awk
20321 _ACEOF
20322
20323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20324 # The default lists apply if the user does not specify any file.
20325 ac_need_defaults=:
20326 while test $# != 0
20327 do
20328 case $1 in
20329 --*=?*)
20330 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20331 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20332 ac_shift=:
20333 ;;
20334 --*=)
20335 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20336 ac_optarg=
20337 ac_shift=:
20338 ;;
20339 *)
20340 ac_option=$1
20341 ac_optarg=$2
20342 ac_shift=shift
20343 ;;
20344 esac
20345
20346 case $ac_option in
20347 # Handling of the options.
20348 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20349 ac_cs_recheck=: ;;
20350 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20351 $as_echo "$ac_cs_version"; exit ;;
20352 --config | --confi | --conf | --con | --co | --c )
20353 $as_echo "$ac_cs_config"; exit ;;
20354 --debug | --debu | --deb | --de | --d | -d )
20355 debug=: ;;
20356 --file | --fil | --fi | --f )
20357 $ac_shift
20358 case $ac_optarg in
20359 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20360 '') as_fn_error $? "missing file argument" ;;
20361 esac
20362 as_fn_append CONFIG_FILES " '$ac_optarg'"
20363 ac_need_defaults=false;;
20364 --header | --heade | --head | --hea )
20365 $ac_shift
20366 case $ac_optarg in
20367 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20368 esac
20369 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20370 ac_need_defaults=false;;
20371 --he | --h)
20372 # Conflict between --help and --header
20373 as_fn_error $? "ambiguous option: \`$1'
20374 Try \`$0 --help' for more information.";;
20375 --help | --hel | -h )
20376 $as_echo "$ac_cs_usage"; exit ;;
20377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20378 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20379 ac_cs_silent=: ;;
20380
20381 # This is an error.
20382 -*) as_fn_error $? "unrecognized option: \`$1'
20383 Try \`$0 --help' for more information." ;;
20384
20385 *) as_fn_append ac_config_targets " $1"
20386 ac_need_defaults=false ;;
20387
20388 esac
20389 shift
20390 done
20391
20392 ac_configure_extra_args=
20393
20394 if $ac_cs_silent; then
20395 exec 6>/dev/null
20396 ac_configure_extra_args="$ac_configure_extra_args --silent"
20397 fi
20398
20399 _ACEOF
20400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20401 if \$ac_cs_recheck; then
20402 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20403 shift
20404 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20405 CONFIG_SHELL='$SHELL'
20406 export CONFIG_SHELL
20407 exec "\$@"
20408 fi
20409
20410 _ACEOF
20411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20412 exec 5>>config.log
20413 {
20414 echo
20415 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20416 ## Running $as_me. ##
20417 _ASBOX
20418 $as_echo "$ac_log"
20419 } >&5
20420
20421 _ACEOF
20422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20423 #
20424 # INIT-COMMANDS
20425 #
20426
20427 srcdir="$srcdir"
20428 host="$host"
20429 target="$target"
20430 with_multisubdir="$with_multisubdir"
20431 with_multisrctop="$with_multisrctop"
20432 with_target_subdir="$with_target_subdir"
20433 ac_configure_args="${multilib_arg} ${ac_configure_args}"
20434 multi_basedir="$multi_basedir"
20435 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
20436 CC="$CC"
20437 CXX="$CXX"
20438 GFORTRAN="$GFORTRAN"
20439 GDC="$GDC"
20440 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20441
20442
20443 # The HP-UX ksh and POSIX shell print the target directory to stdout
20444 # if CDPATH is set.
20445 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20446
20447 sed_quote_subst='$sed_quote_subst'
20448 double_quote_subst='$double_quote_subst'
20449 delay_variable_subst='$delay_variable_subst'
20450 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20451 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20452 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20453 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20454 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20455 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20456 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20457 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20458 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20459 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20460 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20461 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20462 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20463 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20464 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20465 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20466 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20467 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20468 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20469 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20470 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20471 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20472 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20473 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20474 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20475 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20476 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20477 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20478 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20479 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20480 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20481 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20482 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20483 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20484 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20485 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20486 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20487 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20488 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20489 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20490 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20491 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20492 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20493 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20494 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20495 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20496 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20497 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20498 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"`'
20499 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20500 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20501 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20502 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20503 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20504 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20505 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20506 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20507 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20508 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20509 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20510 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20511 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20512 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20513 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20514 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20515 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20516 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20517 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20518 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20519 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20520 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20521 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20522 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20523 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20524 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20525 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20526 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20527 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20528 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20529 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20530 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20531 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20532 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20533 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20534 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20535 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20536 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20537 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20538 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20539 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
20540 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20541 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20542 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20543 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20544 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20545 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20546 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20547 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20548 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20549 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20550 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20551 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20552 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20553 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20554 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20555 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20556 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20557 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20558 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20559 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20560 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20561 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20562 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20563 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20564 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20565 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20566 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20567 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20568 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20569 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20570 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20571 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20572 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20573 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20574 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20575 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20576 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20577 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20578 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20579 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20580 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20581 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20582 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20583 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20584 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20585 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20586 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20587 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20588 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20589 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20590 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20591 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20592 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20593 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20594 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20595 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20596 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20597 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20598 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20599 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20600 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20601 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20602 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20603 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20604 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20605 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20606 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20607 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20608 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20609 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20610 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20611 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
20612 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20613 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20614 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20615 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20616 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20617 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20618 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20619 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20620 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20621 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20622 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20623 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20624 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20625
20626 LTCC='$LTCC'
20627 LTCFLAGS='$LTCFLAGS'
20628 compiler='$compiler_DEFAULT'
20629
20630 # A function that is used when there is no print builtin or printf.
20631 func_fallback_echo ()
20632 {
20633 eval 'cat <<_LTECHO_EOF
20634 \$1
20635 _LTECHO_EOF'
20636 }
20637
20638 # Quote evaled strings.
20639 for var in SHELL \
20640 ECHO \
20641 SED \
20642 GREP \
20643 EGREP \
20644 FGREP \
20645 LD \
20646 NM \
20647 LN_S \
20648 lt_SP2NL \
20649 lt_NL2SP \
20650 reload_flag \
20651 OBJDUMP \
20652 deplibs_check_method \
20653 file_magic_cmd \
20654 AR \
20655 AR_FLAGS \
20656 STRIP \
20657 RANLIB \
20658 CC \
20659 CFLAGS \
20660 compiler \
20661 lt_cv_sys_global_symbol_pipe \
20662 lt_cv_sys_global_symbol_to_cdecl \
20663 lt_cv_sys_global_symbol_to_c_name_address \
20664 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20665 lt_prog_compiler_no_builtin_flag \
20666 lt_prog_compiler_wl \
20667 lt_prog_compiler_pic \
20668 lt_prog_compiler_static \
20669 lt_cv_prog_compiler_c_o \
20670 need_locks \
20671 DSYMUTIL \
20672 NMEDIT \
20673 LIPO \
20674 OTOOL \
20675 OTOOL64 \
20676 shrext_cmds \
20677 export_dynamic_flag_spec \
20678 whole_archive_flag_spec \
20679 compiler_needs_object \
20680 with_gnu_ld \
20681 allow_undefined_flag \
20682 no_undefined_flag \
20683 hardcode_libdir_flag_spec \
20684 hardcode_libdir_flag_spec_ld \
20685 hardcode_libdir_separator \
20686 fix_srcfile_path \
20687 exclude_expsyms \
20688 include_expsyms \
20689 file_list_spec \
20690 variables_saved_for_relink \
20691 libname_spec \
20692 library_names_spec \
20693 soname_spec \
20694 install_override_mode \
20695 finish_eval \
20696 old_striplib \
20697 striplib \
20698 compiler_lib_search_dirs \
20699 predep_objects \
20700 postdep_objects \
20701 predeps \
20702 postdeps \
20703 compiler_lib_search_path \
20704 LD_CXX \
20705 reload_flag_CXX \
20706 compiler_CXX \
20707 lt_prog_compiler_no_builtin_flag_CXX \
20708 lt_prog_compiler_wl_CXX \
20709 lt_prog_compiler_pic_CXX \
20710 lt_prog_compiler_static_CXX \
20711 lt_cv_prog_compiler_c_o_CXX \
20712 export_dynamic_flag_spec_CXX \
20713 whole_archive_flag_spec_CXX \
20714 compiler_needs_object_CXX \
20715 with_gnu_ld_CXX \
20716 allow_undefined_flag_CXX \
20717 no_undefined_flag_CXX \
20718 hardcode_libdir_flag_spec_CXX \
20719 hardcode_libdir_flag_spec_ld_CXX \
20720 hardcode_libdir_separator_CXX \
20721 fix_srcfile_path_CXX \
20722 exclude_expsyms_CXX \
20723 include_expsyms_CXX \
20724 file_list_spec_CXX \
20725 compiler_lib_search_dirs_CXX \
20726 predep_objects_CXX \
20727 postdep_objects_CXX \
20728 predeps_CXX \
20729 postdeps_CXX \
20730 compiler_lib_search_path_CXX; do
20731 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20732 *[\\\\\\\`\\"\\\$]*)
20733 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20734 ;;
20735 *)
20736 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20737 ;;
20738 esac
20739 done
20740
20741 # Double-quote double-evaled strings.
20742 for var in reload_cmds \
20743 old_postinstall_cmds \
20744 old_postuninstall_cmds \
20745 old_archive_cmds \
20746 extract_expsyms_cmds \
20747 old_archive_from_new_cmds \
20748 old_archive_from_expsyms_cmds \
20749 archive_cmds \
20750 archive_expsym_cmds \
20751 module_cmds \
20752 module_expsym_cmds \
20753 export_symbols_cmds \
20754 prelink_cmds \
20755 postinstall_cmds \
20756 postuninstall_cmds \
20757 finish_cmds \
20758 sys_lib_search_path_spec \
20759 sys_lib_dlsearch_path_spec \
20760 reload_cmds_CXX \
20761 old_archive_cmds_CXX \
20762 old_archive_from_new_cmds_CXX \
20763 old_archive_from_expsyms_cmds_CXX \
20764 archive_cmds_CXX \
20765 archive_expsym_cmds_CXX \
20766 module_cmds_CXX \
20767 module_expsym_cmds_CXX \
20768 export_symbols_cmds_CXX \
20769 prelink_cmds_CXX; do
20770 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20771 *[\\\\\\\`\\"\\\$]*)
20772 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20773 ;;
20774 *)
20775 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20776 ;;
20777 esac
20778 done
20779
20780 ac_aux_dir='$ac_aux_dir'
20781 xsi_shell='$xsi_shell'
20782 lt_shell_append='$lt_shell_append'
20783
20784 # See if we are running on zsh, and set the options which allow our
20785 # commands through without removal of \ escapes INIT.
20786 if test -n "\${ZSH_VERSION+set}" ; then
20787 setopt NO_GLOB_SUBST
20788 fi
20789
20790
20791 PACKAGE='$PACKAGE'
20792 VERSION='$VERSION'
20793 TIMESTAMP='$TIMESTAMP'
20794 RM='$RM'
20795 ofile='$ofile'
20796
20797
20798
20799
20800
20801
20802 _ACEOF
20803
20804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20805
20806 # Handling of arguments.
20807 for ac_config_target in $ac_config_targets
20808 do
20809 case $ac_config_target in
20810 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20811 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20812 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20813 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20814 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20815 "libm2min/Makefile") CONFIG_FILES="$CONFIG_FILES libm2min/Makefile" ;;
20816 "libm2pim/Makefile") CONFIG_FILES="$CONFIG_FILES libm2pim/Makefile" ;;
20817 "libm2iso/Makefile") CONFIG_FILES="$CONFIG_FILES libm2iso/Makefile" ;;
20818 "libm2cor/Makefile") CONFIG_FILES="$CONFIG_FILES libm2cor/Makefile" ;;
20819 "libm2log/Makefile") CONFIG_FILES="$CONFIG_FILES libm2log/Makefile" ;;
20820
20821 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20822 esac
20823 done
20824
20825
20826 # If the user did not use the arguments to specify the items to instantiate,
20827 # then the envvar interface is used. Set only those that are not.
20828 # We use the long form for the default assignment because of an extremely
20829 # bizarre bug on SunOS 4.1.3.
20830 if $ac_need_defaults; then
20831 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20832 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20833 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20834 fi
20835
20836 # Have a temporary directory for convenience. Make it in the build tree
20837 # simply because there is no reason against having it here, and in addition,
20838 # creating and moving files from /tmp can sometimes cause problems.
20839 # Hook for its removal unless debugging.
20840 # Note that there is a small window in which the directory will not be cleaned:
20841 # after its creation but before its name has been assigned to `$tmp'.
20842 $debug ||
20843 {
20844 tmp= ac_tmp=
20845 trap 'exit_status=$?
20846 : "${ac_tmp:=$tmp}"
20847 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20848 ' 0
20849 trap 'as_fn_exit 1' 1 2 13 15
20850 }
20851 # Create a (secure) tmp directory for tmp files.
20852
20853 {
20854 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20855 test -d "$tmp"
20856 } ||
20857 {
20858 tmp=./conf$$-$RANDOM
20859 (umask 077 && mkdir "$tmp")
20860 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20861 ac_tmp=$tmp
20862
20863 # Set up the scripts for CONFIG_FILES section.
20864 # No need to generate them if there are no CONFIG_FILES.
20865 # This happens for instance with `./config.status config.h'.
20866 if test -n "$CONFIG_FILES"; then
20867
20868
20869 ac_cr=`echo X | tr X '\015'`
20870 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20871 # But we know of no other shell where ac_cr would be empty at this
20872 # point, so we can use a bashism as a fallback.
20873 if test "x$ac_cr" = x; then
20874 eval ac_cr=\$\'\\r\'
20875 fi
20876 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20877 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20878 ac_cs_awk_cr='\\r'
20879 else
20880 ac_cs_awk_cr=$ac_cr
20881 fi
20882
20883 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20884 _ACEOF
20885
20886
20887 {
20888 echo "cat >conf$$subs.awk <<_ACEOF" &&
20889 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20890 echo "_ACEOF"
20891 } >conf$$subs.sh ||
20892 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20893 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20894 ac_delim='%!_!# '
20895 for ac_last_try in false false false false false :; do
20896 . ./conf$$subs.sh ||
20897 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20898
20899 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20900 if test $ac_delim_n = $ac_delim_num; then
20901 break
20902 elif $ac_last_try; then
20903 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20904 else
20905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20906 fi
20907 done
20908 rm -f conf$$subs.sh
20909
20910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20911 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20912 _ACEOF
20913 sed -n '
20914 h
20915 s/^/S["/; s/!.*/"]=/
20916 p
20917 g
20918 s/^[^!]*!//
20919 :repl
20920 t repl
20921 s/'"$ac_delim"'$//
20922 t delim
20923 :nl
20924 h
20925 s/\(.\{148\}\)..*/\1/
20926 t more1
20927 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20928 p
20929 n
20930 b repl
20931 :more1
20932 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20933 p
20934 g
20935 s/.\{148\}//
20936 t nl
20937 :delim
20938 h
20939 s/\(.\{148\}\)..*/\1/
20940 t more2
20941 s/["\\]/\\&/g; s/^/"/; s/$/"/
20942 p
20943 b
20944 :more2
20945 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20946 p
20947 g
20948 s/.\{148\}//
20949 t delim
20950 ' <conf$$subs.awk | sed '
20951 /^[^""]/{
20952 N
20953 s/\n//
20954 }
20955 ' >>$CONFIG_STATUS || ac_write_fail=1
20956 rm -f conf$$subs.awk
20957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20958 _ACAWK
20959 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20960 for (key in S) S_is_set[key] = 1
20961 FS = "\a"
20962
20963 }
20964 {
20965 line = $ 0
20966 nfields = split(line, field, "@")
20967 substed = 0
20968 len = length(field[1])
20969 for (i = 2; i < nfields; i++) {
20970 key = field[i]
20971 keylen = length(key)
20972 if (S_is_set[key]) {
20973 value = S[key]
20974 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20975 len += length(value) + length(field[++i])
20976 substed = 1
20977 } else
20978 len += 1 + keylen
20979 }
20980
20981 print line
20982 }
20983
20984 _ACAWK
20985 _ACEOF
20986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20987 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20988 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20989 else
20990 cat
20991 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20992 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20993 _ACEOF
20994
20995 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20996 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20997 # trailing colons and then remove the whole line if VPATH becomes empty
20998 # (actually we leave an empty line to preserve line numbers).
20999 if test "x$srcdir" = x.; then
21000 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21001 h
21002 s///
21003 s/^/:/
21004 s/[ ]*$/:/
21005 s/:\$(srcdir):/:/g
21006 s/:\${srcdir}:/:/g
21007 s/:@srcdir@:/:/g
21008 s/^:*//
21009 s/:*$//
21010 x
21011 s/\(=[ ]*\).*/\1/
21012 G
21013 s/\n//
21014 s/^[^=]*=[ ]*$//
21015 }'
21016 fi
21017
21018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21019 fi # test -n "$CONFIG_FILES"
21020
21021 # Set up the scripts for CONFIG_HEADERS section.
21022 # No need to generate them if there are no CONFIG_HEADERS.
21023 # This happens for instance with `./config.status Makefile'.
21024 if test -n "$CONFIG_HEADERS"; then
21025 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21026 BEGIN {
21027 _ACEOF
21028
21029 # Transform confdefs.h into an awk script `defines.awk', embedded as
21030 # here-document in config.status, that substitutes the proper values into
21031 # config.h.in to produce config.h.
21032
21033 # Create a delimiter string that does not exist in confdefs.h, to ease
21034 # handling of long lines.
21035 ac_delim='%!_!# '
21036 for ac_last_try in false false :; do
21037 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21038 if test -z "$ac_tt"; then
21039 break
21040 elif $ac_last_try; then
21041 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21042 else
21043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21044 fi
21045 done
21046
21047 # For the awk script, D is an array of macro values keyed by name,
21048 # likewise P contains macro parameters if any. Preserve backslash
21049 # newline sequences.
21050
21051 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21052 sed -n '
21053 s/.\{148\}/&'"$ac_delim"'/g
21054 t rset
21055 :rset
21056 s/^[ ]*#[ ]*define[ ][ ]*/ /
21057 t def
21058 d
21059 :def
21060 s/\\$//
21061 t bsnl
21062 s/["\\]/\\&/g
21063 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21064 D["\1"]=" \3"/p
21065 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21066 d
21067 :bsnl
21068 s/["\\]/\\&/g
21069 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21070 D["\1"]=" \3\\\\\\n"\\/p
21071 t cont
21072 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21073 t cont
21074 d
21075 :cont
21076 n
21077 s/.\{148\}/&'"$ac_delim"'/g
21078 t clear
21079 :clear
21080 s/\\$//
21081 t bsnlc
21082 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21083 d
21084 :bsnlc
21085 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21086 b cont
21087 ' <confdefs.h | sed '
21088 s/'"$ac_delim"'/"\\\
21089 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21090
21091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21092 for (key in D) D_is_set[key] = 1
21093 FS = "\a"
21094 }
21095 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21096 line = \$ 0
21097 split(line, arg, " ")
21098 if (arg[1] == "#") {
21099 defundef = arg[2]
21100 mac1 = arg[3]
21101 } else {
21102 defundef = substr(arg[1], 2)
21103 mac1 = arg[2]
21104 }
21105 split(mac1, mac2, "(") #)
21106 macro = mac2[1]
21107 prefix = substr(line, 1, index(line, defundef) - 1)
21108 if (D_is_set[macro]) {
21109 # Preserve the white space surrounding the "#".
21110 print prefix "define", macro P[macro] D[macro]
21111 next
21112 } else {
21113 # Replace #undef with comments. This is necessary, for example,
21114 # in the case of _POSIX_SOURCE, which is predefined and required
21115 # on some systems where configure will not decide to define it.
21116 if (defundef == "undef") {
21117 print "/*", prefix defundef, macro, "*/"
21118 next
21119 }
21120 }
21121 }
21122 { print }
21123 _ACAWK
21124 _ACEOF
21125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21126 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21127 fi # test -n "$CONFIG_HEADERS"
21128
21129
21130 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21131 shift
21132 for ac_tag
21133 do
21134 case $ac_tag in
21135 :[FHLC]) ac_mode=$ac_tag; continue;;
21136 esac
21137 case $ac_mode$ac_tag in
21138 :[FHL]*:*);;
21139 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21140 :[FH]-) ac_tag=-:-;;
21141 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21142 esac
21143 ac_save_IFS=$IFS
21144 IFS=:
21145 set x $ac_tag
21146 IFS=$ac_save_IFS
21147 shift
21148 ac_file=$1
21149 shift
21150
21151 case $ac_mode in
21152 :L) ac_source=$1;;
21153 :[FH])
21154 ac_file_inputs=
21155 for ac_f
21156 do
21157 case $ac_f in
21158 -) ac_f="$ac_tmp/stdin";;
21159 *) # Look for the file first in the build tree, then in the source tree
21160 # (if the path is not absolute). The absolute path cannot be DOS-style,
21161 # because $ac_f cannot contain `:'.
21162 test -f "$ac_f" ||
21163 case $ac_f in
21164 [\\/$]*) false;;
21165 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21166 esac ||
21167 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21168 esac
21169 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21170 as_fn_append ac_file_inputs " '$ac_f'"
21171 done
21172
21173 # Let's still pretend it is `configure' which instantiates (i.e., don't
21174 # use $as_me), people would be surprised to read:
21175 # /* config.h. Generated by config.status. */
21176 configure_input='Generated from '`
21177 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21178 `' by configure.'
21179 if test x"$ac_file" != x-; then
21180 configure_input="$ac_file. $configure_input"
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21182 $as_echo "$as_me: creating $ac_file" >&6;}
21183 fi
21184 # Neutralize special characters interpreted by sed in replacement strings.
21185 case $configure_input in #(
21186 *\&* | *\|* | *\\* )
21187 ac_sed_conf_input=`$as_echo "$configure_input" |
21188 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21189 *) ac_sed_conf_input=$configure_input;;
21190 esac
21191
21192 case $ac_tag in
21193 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21194 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21195 esac
21196 ;;
21197 esac
21198
21199 ac_dir=`$as_dirname -- "$ac_file" ||
21200 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21201 X"$ac_file" : 'X\(//\)[^/]' \| \
21202 X"$ac_file" : 'X\(//\)$' \| \
21203 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21204 $as_echo X"$ac_file" |
21205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21206 s//\1/
21207 q
21208 }
21209 /^X\(\/\/\)[^/].*/{
21210 s//\1/
21211 q
21212 }
21213 /^X\(\/\/\)$/{
21214 s//\1/
21215 q
21216 }
21217 /^X\(\/\).*/{
21218 s//\1/
21219 q
21220 }
21221 s/.*/./; q'`
21222 as_dir="$ac_dir"; as_fn_mkdir_p
21223 ac_builddir=.
21224
21225 case "$ac_dir" in
21226 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21227 *)
21228 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21229 # A ".." for each directory in $ac_dir_suffix.
21230 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21231 case $ac_top_builddir_sub in
21232 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21233 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21234 esac ;;
21235 esac
21236 ac_abs_top_builddir=$ac_pwd
21237 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21238 # for backward compatibility:
21239 ac_top_builddir=$ac_top_build_prefix
21240
21241 case $srcdir in
21242 .) # We are building in place.
21243 ac_srcdir=.
21244 ac_top_srcdir=$ac_top_builddir_sub
21245 ac_abs_top_srcdir=$ac_pwd ;;
21246 [\\/]* | ?:[\\/]* ) # Absolute name.
21247 ac_srcdir=$srcdir$ac_dir_suffix;
21248 ac_top_srcdir=$srcdir
21249 ac_abs_top_srcdir=$srcdir ;;
21250 *) # Relative name.
21251 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21252 ac_top_srcdir=$ac_top_build_prefix$srcdir
21253 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21254 esac
21255 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21256
21257
21258 case $ac_mode in
21259 :F)
21260 #
21261 # CONFIG_FILE
21262 #
21263
21264 case $INSTALL in
21265 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21266 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21267 esac
21268 ac_MKDIR_P=$MKDIR_P
21269 case $MKDIR_P in
21270 [\\/$]* | ?:[\\/]* ) ;;
21271 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21272 esac
21273 _ACEOF
21274
21275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21276 # If the template does not know about datarootdir, expand it.
21277 # FIXME: This hack should be removed a few years after 2.60.
21278 ac_datarootdir_hack=; ac_datarootdir_seen=
21279 ac_sed_dataroot='
21280 /datarootdir/ {
21281 p
21282 q
21283 }
21284 /@datadir@/p
21285 /@docdir@/p
21286 /@infodir@/p
21287 /@localedir@/p
21288 /@mandir@/p'
21289 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21290 *datarootdir*) ac_datarootdir_seen=yes;;
21291 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21293 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21294 _ACEOF
21295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21296 ac_datarootdir_hack='
21297 s&@datadir@&$datadir&g
21298 s&@docdir@&$docdir&g
21299 s&@infodir@&$infodir&g
21300 s&@localedir@&$localedir&g
21301 s&@mandir@&$mandir&g
21302 s&\\\${datarootdir}&$datarootdir&g' ;;
21303 esac
21304 _ACEOF
21305
21306 # Neutralize VPATH when `$srcdir' = `.'.
21307 # Shell code in configure.ac might set extrasub.
21308 # FIXME: do we really want to maintain this feature?
21309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21310 ac_sed_extra="$ac_vpsub
21311 $extrasub
21312 _ACEOF
21313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21314 :t
21315 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21316 s|@configure_input@|$ac_sed_conf_input|;t t
21317 s&@top_builddir@&$ac_top_builddir_sub&;t t
21318 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21319 s&@srcdir@&$ac_srcdir&;t t
21320 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21321 s&@top_srcdir@&$ac_top_srcdir&;t t
21322 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21323 s&@builddir@&$ac_builddir&;t t
21324 s&@abs_builddir@&$ac_abs_builddir&;t t
21325 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21326 s&@INSTALL@&$ac_INSTALL&;t t
21327 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21328 $ac_datarootdir_hack
21329 "
21330 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21331 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21332
21333 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21334 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21335 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21336 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21338 which seems to be undefined. Please make sure it is defined" >&5
21339 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21340 which seems to be undefined. Please make sure it is defined" >&2;}
21341
21342 rm -f "$ac_tmp/stdin"
21343 case $ac_file in
21344 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21345 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21346 esac \
21347 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21348 ;;
21349 :H)
21350 #
21351 # CONFIG_HEADER
21352 #
21353 if test x"$ac_file" != x-; then
21354 {
21355 $as_echo "/* $configure_input */" \
21356 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21357 } >"$ac_tmp/config.h" \
21358 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21359 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21360 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21361 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21362 else
21363 rm -f "$ac_file"
21364 mv "$ac_tmp/config.h" "$ac_file" \
21365 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21366 fi
21367 else
21368 $as_echo "/* $configure_input */" \
21369 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21370 || as_fn_error $? "could not create -" "$LINENO" 5
21371 fi
21372 # Compute "$ac_file"'s index in $config_headers.
21373 _am_arg="$ac_file"
21374 _am_stamp_count=1
21375 for _am_header in $config_headers :; do
21376 case $_am_header in
21377 $_am_arg | $_am_arg:* )
21378 break ;;
21379 * )
21380 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21381 esac
21382 done
21383 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21384 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21385 X"$_am_arg" : 'X\(//\)[^/]' \| \
21386 X"$_am_arg" : 'X\(//\)$' \| \
21387 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21388 $as_echo X"$_am_arg" |
21389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21390 s//\1/
21391 q
21392 }
21393 /^X\(\/\/\)[^/].*/{
21394 s//\1/
21395 q
21396 }
21397 /^X\(\/\/\)$/{
21398 s//\1/
21399 q
21400 }
21401 /^X\(\/\).*/{
21402 s//\1/
21403 q
21404 }
21405 s/.*/./; q'`/stamp-h$_am_stamp_count
21406 ;;
21407
21408 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21409 $as_echo "$as_me: executing $ac_file commands" >&6;}
21410 ;;
21411 esac
21412
21413
21414 case $ac_file$ac_mode in
21415 "default-1":C)
21416 # Only add multilib support code if we just rebuilt the top-level
21417 # Makefile.
21418 case " $CONFIG_FILES " in
21419 *" Makefile "*)
21420 ac_file=Makefile . ${multi_basedir}/config-ml.in
21421 ;;
21422 esac ;;
21423 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21424 # Older Autoconf quotes --file arguments for eval, but not when files
21425 # are listed without --file. Let's play safe and only enable the eval
21426 # if we detect the quoting.
21427 case $CONFIG_FILES in
21428 *\'*) eval set x "$CONFIG_FILES" ;;
21429 *) set x $CONFIG_FILES ;;
21430 esac
21431 shift
21432 for mf
21433 do
21434 # Strip MF so we end up with the name of the file.
21435 mf=`echo "$mf" | sed -e 's/:.*$//'`
21436 # Check whether this is an Automake generated Makefile or not.
21437 # We used to match only the files named 'Makefile.in', but
21438 # some people rename them; so instead we look at the file content.
21439 # Grep'ing the first line is not enough: some people post-process
21440 # each Makefile.in and add a new line on top of each file to say so.
21441 # Grep'ing the whole file is not good either: AIX grep has a line
21442 # limit of 2048, but all sed's we know have understand at least 4000.
21443 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21444 dirpart=`$as_dirname -- "$mf" ||
21445 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21446 X"$mf" : 'X\(//\)[^/]' \| \
21447 X"$mf" : 'X\(//\)$' \| \
21448 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21449 $as_echo X"$mf" |
21450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21451 s//\1/
21452 q
21453 }
21454 /^X\(\/\/\)[^/].*/{
21455 s//\1/
21456 q
21457 }
21458 /^X\(\/\/\)$/{
21459 s//\1/
21460 q
21461 }
21462 /^X\(\/\).*/{
21463 s//\1/
21464 q
21465 }
21466 s/.*/./; q'`
21467 else
21468 continue
21469 fi
21470 # Extract the definition of DEPDIR, am__include, and am__quote
21471 # from the Makefile without running 'make'.
21472 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21473 test -z "$DEPDIR" && continue
21474 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21475 test -z "$am__include" && continue
21476 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21477 # Find all dependency output files, they are included files with
21478 # $(DEPDIR) in their names. We invoke sed twice because it is the
21479 # simplest approach to changing $(DEPDIR) to its actual value in the
21480 # expansion.
21481 for file in `sed -n "
21482 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21483 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21484 # Make sure the directory exists.
21485 test -f "$dirpart/$file" && continue
21486 fdir=`$as_dirname -- "$file" ||
21487 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21488 X"$file" : 'X\(//\)[^/]' \| \
21489 X"$file" : 'X\(//\)$' \| \
21490 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21491 $as_echo X"$file" |
21492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21493 s//\1/
21494 q
21495 }
21496 /^X\(\/\/\)[^/].*/{
21497 s//\1/
21498 q
21499 }
21500 /^X\(\/\/\)$/{
21501 s//\1/
21502 q
21503 }
21504 /^X\(\/\).*/{
21505 s//\1/
21506 q
21507 }
21508 s/.*/./; q'`
21509 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21510 # echo "creating $dirpart/$file"
21511 echo '# dummy' > "$dirpart/$file"
21512 done
21513 done
21514 }
21515 ;;
21516 "libtool":C)
21517
21518 # See if we are running on zsh, and set the options which allow our
21519 # commands through without removal of \ escapes.
21520 if test -n "${ZSH_VERSION+set}" ; then
21521 setopt NO_GLOB_SUBST
21522 fi
21523
21524 cfgfile="${ofile}T"
21525 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21526 $RM "$cfgfile"
21527
21528 cat <<_LT_EOF >> "$cfgfile"
21529 #! $SHELL
21530
21531 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21532 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21533 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21534 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21535 #
21536 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21537 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
21538 # Written by Gordon Matzigkeit, 1996
21539 #
21540 # This file is part of GNU Libtool.
21541 #
21542 # GNU Libtool is free software; you can redistribute it and/or
21543 # modify it under the terms of the GNU General Public License as
21544 # published by the Free Software Foundation; either version 2 of
21545 # the License, or (at your option) any later version.
21546 #
21547 # As a special exception to the GNU General Public License,
21548 # if you distribute this file as part of a program or library that
21549 # is built using GNU Libtool, you may include this file under the
21550 # same distribution terms that you use for the rest of that program.
21551 #
21552 # GNU Libtool is distributed in the hope that it will be useful,
21553 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21554 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21555 # GNU General Public License for more details.
21556 #
21557 # You should have received a copy of the GNU General Public License
21558 # along with GNU Libtool; see the file COPYING. If not, a copy
21559 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21560 # obtained by writing to the Free Software Foundation, Inc.,
21561 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21562
21563
21564 # The names of the tagged configurations supported by this script.
21565 available_tags="CXX "
21566
21567 # ### BEGIN LIBTOOL CONFIG
21568
21569 # Which release of libtool.m4 was used?
21570 macro_version=$macro_version
21571 macro_revision=$macro_revision
21572
21573 # Whether or not to build shared libraries.
21574 build_libtool_libs=$enable_shared
21575
21576 # Whether or not to build static libraries.
21577 build_old_libs=$enable_static
21578
21579 # What type of objects to build.
21580 pic_mode=$pic_mode
21581
21582 # Whether or not to optimize for fast installation.
21583 fast_install=$enable_fast_install
21584
21585 # Shell to use when invoking shell scripts.
21586 SHELL=$lt_SHELL
21587
21588 # An echo program that protects backslashes.
21589 ECHO=$lt_ECHO
21590
21591 # The host system.
21592 host_alias=$host_alias
21593 host=$host
21594 host_os=$host_os
21595
21596 # The build system.
21597 build_alias=$build_alias
21598 build=$build
21599 build_os=$build_os
21600
21601 # A sed program that does not truncate output.
21602 SED=$lt_SED
21603
21604 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21605 Xsed="\$SED -e 1s/^X//"
21606
21607 # A grep program that handles long lines.
21608 GREP=$lt_GREP
21609
21610 # An ERE matcher.
21611 EGREP=$lt_EGREP
21612
21613 # A literal string matcher.
21614 FGREP=$lt_FGREP
21615
21616 # A BSD- or MS-compatible name lister.
21617 NM=$lt_NM
21618
21619 # Whether we need soft or hard links.
21620 LN_S=$lt_LN_S
21621
21622 # What is the maximum length of a command?
21623 max_cmd_len=$max_cmd_len
21624
21625 # Object file suffix (normally "o").
21626 objext=$ac_objext
21627
21628 # Executable file suffix (normally "").
21629 exeext=$exeext
21630
21631 # whether the shell understands "unset".
21632 lt_unset=$lt_unset
21633
21634 # turn spaces into newlines.
21635 SP2NL=$lt_lt_SP2NL
21636
21637 # turn newlines into spaces.
21638 NL2SP=$lt_lt_NL2SP
21639
21640 # An object symbol dumper.
21641 OBJDUMP=$lt_OBJDUMP
21642
21643 # Method to check whether dependent libraries are shared objects.
21644 deplibs_check_method=$lt_deplibs_check_method
21645
21646 # Command to use when deplibs_check_method == "file_magic".
21647 file_magic_cmd=$lt_file_magic_cmd
21648
21649 # The archiver.
21650 AR=$lt_AR
21651 AR_FLAGS=$lt_AR_FLAGS
21652
21653 # A symbol stripping program.
21654 STRIP=$lt_STRIP
21655
21656 # Commands used to install an old-style archive.
21657 RANLIB=$lt_RANLIB
21658 old_postinstall_cmds=$lt_old_postinstall_cmds
21659 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21660
21661 # Whether to use a lock for old archive extraction.
21662 lock_old_archive_extraction=$lock_old_archive_extraction
21663
21664 # A C compiler.
21665 LTCC=$lt_CC
21666
21667 # LTCC compiler flags.
21668 LTCFLAGS=$lt_CFLAGS
21669
21670 # Take the output of nm and produce a listing of raw symbols and C names.
21671 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21672
21673 # Transform the output of nm in a proper C declaration.
21674 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21675
21676 # Transform the output of nm in a C name address pair.
21677 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21678
21679 # Transform the output of nm in a C name address pair when lib prefix is needed.
21680 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21681
21682 # The name of the directory that contains temporary libtool files.
21683 objdir=$objdir
21684
21685 # Used to examine libraries when file_magic_cmd begins with "file".
21686 MAGIC_CMD=$MAGIC_CMD
21687
21688 # Must we lock files when doing compilation?
21689 need_locks=$lt_need_locks
21690
21691 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21692 DSYMUTIL=$lt_DSYMUTIL
21693
21694 # Tool to change global to local symbols on Mac OS X.
21695 NMEDIT=$lt_NMEDIT
21696
21697 # Tool to manipulate fat objects and archives on Mac OS X.
21698 LIPO=$lt_LIPO
21699
21700 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21701 OTOOL=$lt_OTOOL
21702
21703 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21704 OTOOL64=$lt_OTOOL64
21705
21706 # Old archive suffix (normally "a").
21707 libext=$libext
21708
21709 # Shared library suffix (normally ".so").
21710 shrext_cmds=$lt_shrext_cmds
21711
21712 # The commands to extract the exported symbol list from a shared archive.
21713 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21714
21715 # Variables whose values should be saved in libtool wrapper scripts and
21716 # restored at link time.
21717 variables_saved_for_relink=$lt_variables_saved_for_relink
21718
21719 # Do we need the "lib" prefix for modules?
21720 need_lib_prefix=$need_lib_prefix
21721
21722 # Do we need a version for libraries?
21723 need_version=$need_version
21724
21725 # Library versioning type.
21726 version_type=$version_type
21727
21728 # Shared library runtime path variable.
21729 runpath_var=$runpath_var
21730
21731 # Shared library path variable.
21732 shlibpath_var=$shlibpath_var
21733
21734 # Is shlibpath searched before the hard-coded library search path?
21735 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21736
21737 # Format of library name prefix.
21738 libname_spec=$lt_libname_spec
21739
21740 # List of archive names. First name is the real one, the rest are links.
21741 # The last name is the one that the linker finds with -lNAME
21742 library_names_spec=$lt_library_names_spec
21743
21744 # The coded name of the library, if different from the real name.
21745 soname_spec=$lt_soname_spec
21746
21747 # Permission mode override for installation of shared libraries.
21748 install_override_mode=$lt_install_override_mode
21749
21750 # Command to use after installation of a shared archive.
21751 postinstall_cmds=$lt_postinstall_cmds
21752
21753 # Command to use after uninstallation of a shared archive.
21754 postuninstall_cmds=$lt_postuninstall_cmds
21755
21756 # Commands used to finish a libtool library installation in a directory.
21757 finish_cmds=$lt_finish_cmds
21758
21759 # As "finish_cmds", except a single script fragment to be evaled but
21760 # not shown.
21761 finish_eval=$lt_finish_eval
21762
21763 # Whether we should hardcode library paths into libraries.
21764 hardcode_into_libs=$hardcode_into_libs
21765
21766 # Compile-time system search path for libraries.
21767 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21768
21769 # Run-time system search path for libraries.
21770 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21771
21772 # Whether dlopen is supported.
21773 dlopen_support=$enable_dlopen
21774
21775 # Whether dlopen of programs is supported.
21776 dlopen_self=$enable_dlopen_self
21777
21778 # Whether dlopen of statically linked programs is supported.
21779 dlopen_self_static=$enable_dlopen_self_static
21780
21781 # Commands to strip libraries.
21782 old_striplib=$lt_old_striplib
21783 striplib=$lt_striplib
21784
21785
21786 # The linker used to build libraries.
21787 LD=$lt_LD
21788
21789 # How to create reloadable object files.
21790 reload_flag=$lt_reload_flag
21791 reload_cmds=$lt_reload_cmds
21792
21793 # Commands used to build an old-style archive.
21794 old_archive_cmds=$lt_old_archive_cmds
21795
21796 # A language specific compiler.
21797 CC=$lt_compiler
21798
21799 # Is the compiler the GNU compiler?
21800 with_gcc=$GCC
21801
21802 # Compiler flag to turn off builtin functions.
21803 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21804
21805 # How to pass a linker flag through the compiler.
21806 wl=$lt_lt_prog_compiler_wl
21807
21808 # Additional compiler flags for building library objects.
21809 pic_flag=$lt_lt_prog_compiler_pic
21810
21811 # Compiler flag to prevent dynamic linking.
21812 link_static_flag=$lt_lt_prog_compiler_static
21813
21814 # Does compiler simultaneously support -c and -o options?
21815 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21816
21817 # Whether or not to add -lc for building shared libraries.
21818 build_libtool_need_lc=$archive_cmds_need_lc
21819
21820 # Whether or not to disallow shared libs when runtime libs are static.
21821 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21822
21823 # Compiler flag to allow reflexive dlopens.
21824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21825
21826 # Compiler flag to generate shared objects directly from archives.
21827 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21828
21829 # Whether the compiler copes with passing no objects directly.
21830 compiler_needs_object=$lt_compiler_needs_object
21831
21832 # Create an old-style archive from a shared archive.
21833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21834
21835 # Create a temporary old-style archive to link instead of a shared archive.
21836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21837
21838 # Commands used to build a shared archive.
21839 archive_cmds=$lt_archive_cmds
21840 archive_expsym_cmds=$lt_archive_expsym_cmds
21841
21842 # Commands used to build a loadable module if different from building
21843 # a shared archive.
21844 module_cmds=$lt_module_cmds
21845 module_expsym_cmds=$lt_module_expsym_cmds
21846
21847 # Whether we are building with GNU ld or not.
21848 with_gnu_ld=$lt_with_gnu_ld
21849
21850 # Flag that allows shared libraries with undefined symbols to be built.
21851 allow_undefined_flag=$lt_allow_undefined_flag
21852
21853 # Flag that enforces no undefined symbols.
21854 no_undefined_flag=$lt_no_undefined_flag
21855
21856 # Flag to hardcode \$libdir into a binary during linking.
21857 # This must work even if \$libdir does not exist
21858 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21859
21860 # If ld is used when linking, flag to hardcode \$libdir into a binary
21861 # during linking. This must work even if \$libdir does not exist.
21862 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21863
21864 # Whether we need a single "-rpath" flag with a separated argument.
21865 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21866
21867 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21868 # DIR into the resulting binary.
21869 hardcode_direct=$hardcode_direct
21870
21871 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21872 # DIR into the resulting binary and the resulting library dependency is
21873 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21874 # library is relocated.
21875 hardcode_direct_absolute=$hardcode_direct_absolute
21876
21877 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21878 # into the resulting binary.
21879 hardcode_minus_L=$hardcode_minus_L
21880
21881 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21882 # into the resulting binary.
21883 hardcode_shlibpath_var=$hardcode_shlibpath_var
21884
21885 # Set to "yes" if building a shared library automatically hardcodes DIR
21886 # into the library and all subsequent libraries and executables linked
21887 # against it.
21888 hardcode_automatic=$hardcode_automatic
21889
21890 # Set to yes if linker adds runtime paths of dependent libraries
21891 # to runtime path list.
21892 inherit_rpath=$inherit_rpath
21893
21894 # Whether libtool must link a program against all its dependency libraries.
21895 link_all_deplibs=$link_all_deplibs
21896
21897 # Fix the shell variable \$srcfile for the compiler.
21898 fix_srcfile_path=$lt_fix_srcfile_path
21899
21900 # Set to "yes" if exported symbols are required.
21901 always_export_symbols=$always_export_symbols
21902
21903 # The commands to list exported symbols.
21904 export_symbols_cmds=$lt_export_symbols_cmds
21905
21906 # Symbols that should not be listed in the preloaded symbols.
21907 exclude_expsyms=$lt_exclude_expsyms
21908
21909 # Symbols that must always be exported.
21910 include_expsyms=$lt_include_expsyms
21911
21912 # Commands necessary for linking programs (against libraries) with templates.
21913 prelink_cmds=$lt_prelink_cmds
21914
21915 # Specify filename containing input files.
21916 file_list_spec=$lt_file_list_spec
21917
21918 # How to hardcode a shared library path into an executable.
21919 hardcode_action=$hardcode_action
21920
21921 # The directories searched by this compiler when creating a shared library.
21922 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21923
21924 # Dependencies to place before and after the objects being linked to
21925 # create a shared library.
21926 predep_objects=$lt_predep_objects
21927 postdep_objects=$lt_postdep_objects
21928 predeps=$lt_predeps
21929 postdeps=$lt_postdeps
21930
21931 # The library search path used internally by the compiler when linking
21932 # a shared library.
21933 compiler_lib_search_path=$lt_compiler_lib_search_path
21934
21935 # ### END LIBTOOL CONFIG
21936
21937 _LT_EOF
21938
21939 case $host_os in
21940 aix3*)
21941 cat <<\_LT_EOF >> "$cfgfile"
21942 # AIX sometimes has problems with the GCC collect2 program. For some
21943 # reason, if we set the COLLECT_NAMES environment variable, the problems
21944 # vanish in a puff of smoke.
21945 if test "X${COLLECT_NAMES+set}" != Xset; then
21946 COLLECT_NAMES=
21947 export COLLECT_NAMES
21948 fi
21949 _LT_EOF
21950 ;;
21951 esac
21952
21953
21954 ltmain="$ac_aux_dir/ltmain.sh"
21955
21956
21957 # We use sed instead of cat because bash on DJGPP gets confused if
21958 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21959 # text mode, it properly converts lines to CR/LF. This bash problem
21960 # is reportedly fixed, but why not run on old versions too?
21961 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21962 || (rm -f "$cfgfile"; exit 1)
21963
21964 case $xsi_shell in
21965 yes)
21966 cat << \_LT_EOF >> "$cfgfile"
21967
21968 # func_dirname file append nondir_replacement
21969 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21970 # otherwise set result to NONDIR_REPLACEMENT.
21971 func_dirname ()
21972 {
21973 case ${1} in
21974 */*) func_dirname_result="${1%/*}${2}" ;;
21975 * ) func_dirname_result="${3}" ;;
21976 esac
21977 }
21978
21979 # func_basename file
21980 func_basename ()
21981 {
21982 func_basename_result="${1##*/}"
21983 }
21984
21985 # func_dirname_and_basename file append nondir_replacement
21986 # perform func_basename and func_dirname in a single function
21987 # call:
21988 # dirname: Compute the dirname of FILE. If nonempty,
21989 # add APPEND to the result, otherwise set result
21990 # to NONDIR_REPLACEMENT.
21991 # value returned in "$func_dirname_result"
21992 # basename: Compute filename of FILE.
21993 # value retuned in "$func_basename_result"
21994 # Implementation must be kept synchronized with func_dirname
21995 # and func_basename. For efficiency, we do not delegate to
21996 # those functions but instead duplicate the functionality here.
21997 func_dirname_and_basename ()
21998 {
21999 case ${1} in
22000 */*) func_dirname_result="${1%/*}${2}" ;;
22001 * ) func_dirname_result="${3}" ;;
22002 esac
22003 func_basename_result="${1##*/}"
22004 }
22005
22006 # func_stripname prefix suffix name
22007 # strip PREFIX and SUFFIX off of NAME.
22008 # PREFIX and SUFFIX must not contain globbing or regex special
22009 # characters, hashes, percent signs, but SUFFIX may contain a leading
22010 # dot (in which case that matches only a dot).
22011 func_stripname ()
22012 {
22013 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22014 # positional parameters, so assign one to ordinary parameter first.
22015 func_stripname_result=${3}
22016 func_stripname_result=${func_stripname_result#"${1}"}
22017 func_stripname_result=${func_stripname_result%"${2}"}
22018 }
22019
22020 # func_opt_split
22021 func_opt_split ()
22022 {
22023 func_opt_split_opt=${1%%=*}
22024 func_opt_split_arg=${1#*=}
22025 }
22026
22027 # func_lo2o object
22028 func_lo2o ()
22029 {
22030 case ${1} in
22031 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22032 *) func_lo2o_result=${1} ;;
22033 esac
22034 }
22035
22036 # func_xform libobj-or-source
22037 func_xform ()
22038 {
22039 func_xform_result=${1%.*}.lo
22040 }
22041
22042 # func_arith arithmetic-term...
22043 func_arith ()
22044 {
22045 func_arith_result=$(( $* ))
22046 }
22047
22048 # func_len string
22049 # STRING may not start with a hyphen.
22050 func_len ()
22051 {
22052 func_len_result=${#1}
22053 }
22054
22055 _LT_EOF
22056 ;;
22057 *) # Bourne compatible functions.
22058 cat << \_LT_EOF >> "$cfgfile"
22059
22060 # func_dirname file append nondir_replacement
22061 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22062 # otherwise set result to NONDIR_REPLACEMENT.
22063 func_dirname ()
22064 {
22065 # Extract subdirectory from the argument.
22066 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
22067 if test "X$func_dirname_result" = "X${1}"; then
22068 func_dirname_result="${3}"
22069 else
22070 func_dirname_result="$func_dirname_result${2}"
22071 fi
22072 }
22073
22074 # func_basename file
22075 func_basename ()
22076 {
22077 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
22078 }
22079
22080
22081 # func_stripname prefix suffix name
22082 # strip PREFIX and SUFFIX off of NAME.
22083 # PREFIX and SUFFIX must not contain globbing or regex special
22084 # characters, hashes, percent signs, but SUFFIX may contain a leading
22085 # dot (in which case that matches only a dot).
22086 # func_strip_suffix prefix name
22087 func_stripname ()
22088 {
22089 case ${2} in
22090 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
22091 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
22092 esac
22093 }
22094
22095 # sed scripts:
22096 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22097 my_sed_long_arg='1s/^-[^=]*=//'
22098
22099 # func_opt_split
22100 func_opt_split ()
22101 {
22102 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
22103 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
22104 }
22105
22106 # func_lo2o object
22107 func_lo2o ()
22108 {
22109 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
22110 }
22111
22112 # func_xform libobj-or-source
22113 func_xform ()
22114 {
22115 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
22116 }
22117
22118 # func_arith arithmetic-term...
22119 func_arith ()
22120 {
22121 func_arith_result=`expr "$@"`
22122 }
22123
22124 # func_len string
22125 # STRING may not start with a hyphen.
22126 func_len ()
22127 {
22128 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22129 }
22130
22131 _LT_EOF
22132 esac
22133
22134 case $lt_shell_append in
22135 yes)
22136 cat << \_LT_EOF >> "$cfgfile"
22137
22138 # func_append var value
22139 # Append VALUE to the end of shell variable VAR.
22140 func_append ()
22141 {
22142 eval "$1+=\$2"
22143 }
22144 _LT_EOF
22145 ;;
22146 *)
22147 cat << \_LT_EOF >> "$cfgfile"
22148
22149 # func_append var value
22150 # Append VALUE to the end of shell variable VAR.
22151 func_append ()
22152 {
22153 eval "$1=\$$1\$2"
22154 }
22155
22156 _LT_EOF
22157 ;;
22158 esac
22159
22160
22161 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22162 || (rm -f "$cfgfile"; exit 1)
22163
22164 mv -f "$cfgfile" "$ofile" ||
22165 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22166 chmod +x "$ofile"
22167
22168
22169 cat <<_LT_EOF >> "$ofile"
22170
22171 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22172
22173 # The linker used to build libraries.
22174 LD=$lt_LD_CXX
22175
22176 # How to create reloadable object files.
22177 reload_flag=$lt_reload_flag_CXX
22178 reload_cmds=$lt_reload_cmds_CXX
22179
22180 # Commands used to build an old-style archive.
22181 old_archive_cmds=$lt_old_archive_cmds_CXX
22182
22183 # A language specific compiler.
22184 CC=$lt_compiler_CXX
22185
22186 # Is the compiler the GNU compiler?
22187 with_gcc=$GCC_CXX
22188
22189 # Compiler flag to turn off builtin functions.
22190 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22191
22192 # How to pass a linker flag through the compiler.
22193 wl=$lt_lt_prog_compiler_wl_CXX
22194
22195 # Additional compiler flags for building library objects.
22196 pic_flag=$lt_lt_prog_compiler_pic_CXX
22197
22198 # Compiler flag to prevent dynamic linking.
22199 link_static_flag=$lt_lt_prog_compiler_static_CXX
22200
22201 # Does compiler simultaneously support -c and -o options?
22202 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22203
22204 # Whether or not to add -lc for building shared libraries.
22205 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22206
22207 # Whether or not to disallow shared libs when runtime libs are static.
22208 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22209
22210 # Compiler flag to allow reflexive dlopens.
22211 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22212
22213 # Compiler flag to generate shared objects directly from archives.
22214 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22215
22216 # Whether the compiler copes with passing no objects directly.
22217 compiler_needs_object=$lt_compiler_needs_object_CXX
22218
22219 # Create an old-style archive from a shared archive.
22220 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22221
22222 # Create a temporary old-style archive to link instead of a shared archive.
22223 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22224
22225 # Commands used to build a shared archive.
22226 archive_cmds=$lt_archive_cmds_CXX
22227 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22228
22229 # Commands used to build a loadable module if different from building
22230 # a shared archive.
22231 module_cmds=$lt_module_cmds_CXX
22232 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22233
22234 # Whether we are building with GNU ld or not.
22235 with_gnu_ld=$lt_with_gnu_ld_CXX
22236
22237 # Flag that allows shared libraries with undefined symbols to be built.
22238 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22239
22240 # Flag that enforces no undefined symbols.
22241 no_undefined_flag=$lt_no_undefined_flag_CXX
22242
22243 # Flag to hardcode \$libdir into a binary during linking.
22244 # This must work even if \$libdir does not exist
22245 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22246
22247 # If ld is used when linking, flag to hardcode \$libdir into a binary
22248 # during linking. This must work even if \$libdir does not exist.
22249 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22250
22251 # Whether we need a single "-rpath" flag with a separated argument.
22252 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22253
22254 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22255 # DIR into the resulting binary.
22256 hardcode_direct=$hardcode_direct_CXX
22257
22258 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22259 # DIR into the resulting binary and the resulting library dependency is
22260 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22261 # library is relocated.
22262 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22263
22264 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22265 # into the resulting binary.
22266 hardcode_minus_L=$hardcode_minus_L_CXX
22267
22268 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22269 # into the resulting binary.
22270 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22271
22272 # Set to "yes" if building a shared library automatically hardcodes DIR
22273 # into the library and all subsequent libraries and executables linked
22274 # against it.
22275 hardcode_automatic=$hardcode_automatic_CXX
22276
22277 # Set to yes if linker adds runtime paths of dependent libraries
22278 # to runtime path list.
22279 inherit_rpath=$inherit_rpath_CXX
22280
22281 # Whether libtool must link a program against all its dependency libraries.
22282 link_all_deplibs=$link_all_deplibs_CXX
22283
22284 # Fix the shell variable \$srcfile for the compiler.
22285 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22286
22287 # Set to "yes" if exported symbols are required.
22288 always_export_symbols=$always_export_symbols_CXX
22289
22290 # The commands to list exported symbols.
22291 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22292
22293 # Symbols that should not be listed in the preloaded symbols.
22294 exclude_expsyms=$lt_exclude_expsyms_CXX
22295
22296 # Symbols that must always be exported.
22297 include_expsyms=$lt_include_expsyms_CXX
22298
22299 # Commands necessary for linking programs (against libraries) with templates.
22300 prelink_cmds=$lt_prelink_cmds_CXX
22301
22302 # Specify filename containing input files.
22303 file_list_spec=$lt_file_list_spec_CXX
22304
22305 # How to hardcode a shared library path into an executable.
22306 hardcode_action=$hardcode_action_CXX
22307
22308 # The directories searched by this compiler when creating a shared library.
22309 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22310
22311 # Dependencies to place before and after the objects being linked to
22312 # create a shared library.
22313 predep_objects=$lt_predep_objects_CXX
22314 postdep_objects=$lt_postdep_objects_CXX
22315 predeps=$lt_predeps_CXX
22316 postdeps=$lt_postdeps_CXX
22317
22318 # The library search path used internally by the compiler when linking
22319 # a shared library.
22320 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22321
22322 # ### END LIBTOOL TAG CONFIG: CXX
22323 _LT_EOF
22324
22325 ;;
22326
22327 esac
22328 done # for ac_tag
22329
22330
22331 as_fn_exit 0
22332 _ACEOF
22333 ac_clean_files=$ac_clean_files_save
22334
22335 test $ac_write_fail = 0 ||
22336 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22337
22338
22339 # configure is writing to config.log, and then calls config.status.
22340 # config.status does its own redirection, appending to config.log.
22341 # Unfortunately, on DOS this fails, as config.log is still kept open
22342 # by configure, so config.status won't be able to write to it; its
22343 # output is simply discarded. So we exec the FD to /dev/null,
22344 # effectively closing config.log, so it can be properly (re)opened and
22345 # appended to by config.status. When coming back to configure, we
22346 # need to make the FD available again.
22347 if test "$no_create" != yes; then
22348 ac_cs_success=:
22349 ac_config_status_args=
22350 test "$silent" = yes &&
22351 ac_config_status_args="$ac_config_status_args --quiet"
22352 exec 5>/dev/null
22353 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22354 exec 5>>config.log
22355 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22356 # would make configure fail if this is the last instruction.
22357 $ac_cs_success || as_fn_exit 1
22358 fi
22359 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22361 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22362 fi
22363