Debian Codegraph @

libgm2/configure

raw
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 [email protected] 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 get_gcc_base_ver
638 TARGET_DARWIN_FALSE
639 TARGET_DARWIN_TRUE
640 BUILD_LOGLIB_FALSE
641 BUILD_LOGLIB_TRUE
642 BUILD_CORLIB_FALSE
643 BUILD_CORLIB_TRUE
644 BUILD_ISOLIB_FALSE
645 BUILD_ISOLIB_TRUE
646 BUILD_PIMLIB_FALSE
647 BUILD_PIMLIB_TRUE
648 GM2_FOR_TARGET
649 CC_FOR_BUILD
650 enable_static
651 enable_shared
652 ENABLE_DARWIN_AT_RPATH_FALSE
653 ENABLE_DARWIN_AT_RPATH_TRUE
654 OTOOL64
655 OTOOL
656 LIPO
657 NMEDIT
658 DSYMUTIL
659 OBJDUMP
660 ac_ct_DUMPBIN
661 DUMPBIN
662 LD
663 FGREP
664 SED
665 LIBTOOL
666 NM
667 am__fastdepCCAS_FALSE
668 am__fastdepCCAS_TRUE
669 CCASDEPMODE
670 CCASFLAGS
671 CCAS
672 toolexeclibdir
673 toolexecdir
674 slibdir
675 target_subdir
676 host_subdir
677 build_subdir
678 build_libsubdir
679 target_noncanonical
680 host_noncanonical
681 AM_BACKSLASH
682 AM_DEFAULT_VERBOSITY
683 AM_DEFAULT_V
684 AM_V
685 am__fastdepCXX_FALSE
686 am__fastdepCXX_TRUE
687 CXXDEPMODE
688 am__fastdepCC_FALSE
689 am__fastdepCC_TRUE
690 CCDEPMODE
691 am__nodep
692 AMDEPBACKSLASH
693 AMDEP_FALSE
694 AMDEP_TRUE
695 am__quote
696 am__include
697 DEPDIR
698 am__untar
699 am__tar
700 AMTAR
701 am__leading_dot
702 SET_MAKE
703 AWK
704 mkdir_p
705 MKDIR_P
706 INSTALL_STRIP_PROGRAM
707 STRIP
708 install_sh
709 MAKEINFO
710 AUTOHEADER
711 AUTOMAKE
712 AUTOCONF
713 ACLOCAL
714 VERSION
715 PACKAGE
716 CYGPATH_W
717 am__isrc
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 GLIBCXX_LIBS
722 CXXCPP
723 ac_ct_CXX
724 CXXFLAGS
725 CXX
726 MAINT
727 MAINTAINER_MODE_FALSE
728 MAINTAINER_MODE_TRUE
729 RANLIB
730 AR
731 AS
732 LN_S
733 toplevel_srcdir
734 toplevel_builddir
735 glibcxx_srcdir
736 glibcxx_builddir
737 target_os
738 target_vendor
739 target_cpu
740 target
741 host_os
742 host_vendor
743 host_cpu
744 host
745 build_os
746 build_vendor
747 build_cpu
748 build
749 EGREP
750 GREP
751 CPP
752 OBJEXT
753 EXEEXT
754 ac_ct_CC
755 CPPFLAGS
756 LDFLAGS
757 CFLAGS
758 CC
759 multi_basedir
760 libtool_VERSION
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_multilib
803 with_target_subdir
804 with_cross_host
805 with_newlib
806 enable_maintainer_mode
807 enable_libstdcxx_time
808 enable_dependency_tracking
809 enable_silent_rules
810 with_build_libsubdir
811 enable_version_specific_runtime_libs
812 with_slibdir
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 with_gnu_ld
818 enable_libtool_lock
819 enable_darwin_at_rpath
820 with_gcc_major_version_only
821 '
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CC
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
830 CPP
831 CXX
832 CXXFLAGS
833 CCC
834 CXXCPP'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
894 fi
895
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
912
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
927
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
932
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
965
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1001
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1006
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1036
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1110
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1169
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1185
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1219
1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1222 ;;
1223
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1233
1234 *)
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240 ;;
1241
1242 esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $? "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1263 do
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\).*/{
1332 s//\1/
1333 q
1334 }
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1339 fi
1340 else
1341 ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/libgm2]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1429
1430 cat <<\_ACEOF
1431
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 --target=TARGET configure for building compilers for TARGET [HOST]
1441 _ACEOF
1442 fi
1443
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of package-unused version-unused:";;
1447 esac
1448 cat <<\_ACEOF
1449
1450 Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-multilib build many library versions (default)
1455 --enable-maintainer-mode
1456 enable make rules and dependencies not useful (and
1457 sometimes confusing) to the casual installer
1458 --enable-libstdcxx-time[=KIND]
1459 use KIND for check type [default=auto]
1460 --enable-dependency-tracking
1461 do not reject slow dependency extractors
1462 --disable-dependency-tracking
1463 speeds up one-time build
1464 --enable-silent-rules less verbose build output (undo: "make V=1")
1465 --disable-silent-rules verbose build output (undo: "make V=0")
1466 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1467 --enable-maintainer-mode
1468 enable make rules and dependencies not useful (and
1469 sometimes confusing) to the casual installer
1470 --enable-shared[=PKGS] build shared libraries [default=yes]
1471 --enable-static[=PKGS] build static libraries [default=yes]
1472 --enable-fast-install[=PKGS]
1473 optimize for fast installation [default=yes]
1474 --disable-libtool-lock avoid locking (might break parallel builds)
1475 --enable-darwin-at-rpath
1476 install libraries with @rpath/library-name, requires
1477 rpaths to be added to executables
1478
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-target-subdir=SUBDIR
1483 configuring in a subdirectory
1484 --with-cross-host=HOST configuring with a cross compiler
1485 --with-newlib assume newlib as a system C library
1486 --with-cross-host=HOST Configuring with a cross compiler
1487 --with-build-libsubdir=DIR Directory where to find libraries for build system
1488 --with-slibdir=DIR shared libraries in DIR LIBDIR
1489 --with-pic try to use only PIC/non-PIC objects [default=use
1490 both]
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-gcc-major-version-only
1493 use only GCC major number in filesystem paths
1494
1495 Some influential environment variables:
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 LIBS libraries to pass to the linker, e.g. -l<library>
1501 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1502 you have headers in a nonstandard directory <include dir>
1503 CPP C preprocessor
1504 CXX C++ compiler command
1505 CXXFLAGS C++ compiler flags
1506 CXXCPP C++ preprocessor
1507 CCAS assembler compiler command (defaults to CC)
1508 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1509
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1512
1513 Report bugs to the package provider.
1514 _ACEOF
1515 ac_status=$?
1516 fi
1517
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 continue
1524 ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 package-unused configure version-unused
1577 generated by GNU Autoconf 2.69
1578
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1584 fi
1585
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1589
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622 fi
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_compile
1627
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_cpp ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1647 fi
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } > conftest.i && {
1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 }; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=1
1659 fi
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_cpp
1664
1665 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1668 # the include files in INCLUDES and setting the cache variable VAR
1669 # accordingly.
1670 ac_fn_c_check_header_mongrel ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if eval \${$3+:} false; then :
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1678 fi
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 else
1683 # Is the header compilable?
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1685 $as_echo_n "checking $2 usability... " >&6; }
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1688 $4
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692 ac_header_compiler=yes
1693 else
1694 ac_header_compiler=no
1695 fi
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1698 $as_echo "$ac_header_compiler" >&6; }
1699
1700 # Is the header present?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1702 $as_echo_n "checking $2 presence... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_cpp "$LINENO"; then :
1708 ac_header_preproc=yes
1709 else
1710 ac_header_preproc=no
1711 fi
1712 rm -f conftest.err conftest.i conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1714 $as_echo "$ac_header_preproc" >&6; }
1715
1716 # So? What about this header?
1717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1718 yes:no: )
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1720 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723 ;;
1724 no:yes:* )
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1726 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1728 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1730 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1732 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735 ;;
1736 esac
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740 $as_echo_n "(cached) " >&6
1741 else
1742 eval "$3=\$ac_header_compiler"
1743 fi
1744 eval ac_res=\$$3
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747 fi
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749
1750 } # ac_fn_c_check_header_mongrel
1751
1752 # ac_fn_c_try_run LINENO
1753 # ----------------------
1754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755 # that executables *can* be run.
1756 ac_fn_c_try_run ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_link"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_link") 2>&5
1767 ac_status=$?
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770 { { case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_try") 2>&5
1777 ac_status=$?
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; }; }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: program exited with status $ac_status" >&5
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1785
1786 ac_retval=$ac_status
1787 fi
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_run
1793
1794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists and can be compiled using the include files in
1797 # INCLUDES, setting the cache variable VAR accordingly.
1798 ac_fn_c_check_header_compile ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1805 else
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1808 $4
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 eval "$3=yes"
1813 else
1814 eval "$3=no"
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 fi
1818 eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823 } # ac_fn_c_check_header_compile
1824
1825 # ac_fn_cxx_try_compile LINENO
1826 # ----------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_compile ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext
1832 if { { ac_try="$ac_compile"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1845 fi
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_cxx_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1851 ac_retval=0
1852 else
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856 ac_retval=1
1857 fi
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1860
1861 } # ac_fn_cxx_try_compile
1862
1863 # ac_fn_cxx_try_cpp LINENO
1864 # ------------------------
1865 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_cpp ()
1867 {
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_cpp conftest.$ac_ext"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1882 fi
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } > conftest.i && {
1885 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1886 test ! -s conftest.err
1887 }; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1892
1893 ac_retval=1
1894 fi
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896 as_fn_set_status $ac_retval
1897
1898 } # ac_fn_cxx_try_cpp
1899
1900 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1901 # ---------------------------------------------------------
1902 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1903 # the include files in INCLUDES and setting the cache variable VAR
1904 # accordingly.
1905 ac_fn_cxx_check_header_mongrel ()
1906 {
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if eval \${$3+:} false; then :
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval \${$3+:} false; then :
1912 $as_echo_n "(cached) " >&6
1913 fi
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 else
1918 # Is the header compilable?
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1920 $as_echo_n "checking $2 usability... " >&6; }
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1923 $4
1924 #include <$2>
1925 _ACEOF
1926 if ac_fn_cxx_try_compile "$LINENO"; then :
1927 ac_header_compiler=yes
1928 else
1929 ac_header_compiler=no
1930 fi
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1933 $as_echo "$ac_header_compiler" >&6; }
1934
1935 # Is the header present?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1937 $as_echo_n "checking $2 presence... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_cxx_try_cpp "$LINENO"; then :
1943 ac_header_preproc=yes
1944 else
1945 ac_header_preproc=no
1946 fi
1947 rm -f conftest.err conftest.i conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1949 $as_echo "$ac_header_preproc" >&6; }
1950
1951 # So? What about this header?
1952 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1953 yes:no: )
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1955 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958 ;;
1959 no:yes:* )
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1961 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1963 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1965 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1967 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1970 ;;
1971 esac
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if eval \${$3+:} false; then :
1975 $as_echo_n "(cached) " >&6
1976 else
1977 eval "$3=\$ac_header_compiler"
1978 fi
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 fi
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985 } # ac_fn_cxx_check_header_mongrel
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_cxx_check_func LINENO FUNC VAR
2034 # ------------------------------------
2035 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2036 ac_fn_cxx_check_func ()
2037 {
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 if test x$gcc_no_link = xyes; then
2045 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2046 fi
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2049 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2051 #define $2 innocuous_$2
2052
2053 /* System header to define __stub macros and hopefully few prototypes,
2054 which can conflict with char $2 (); below.
2055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2056 <limits.h> exists even on freestanding compilers. */
2057
2058 #ifdef __STDC__
2059 # include <limits.h>
2060 #else
2061 # include <assert.h>
2062 #endif
2063
2064 #undef $2
2065
2066 /* Override any GCC internal prototype to avoid an error.
2067 Use char because int might match the return type of a GCC
2068 builtin and then its argument prototype would still apply. */
2069 #ifdef __cplusplus
2070 extern "C"
2071 #endif
2072 char $2 ();
2073 /* The GNU C library defines this for functions which it implements
2074 to always fail with ENOSYS. Some functions are actually named
2075 something starting with __ and the normal name is an alias. */
2076 #if defined __stub_$2 || defined __stub___$2
2077 choke me
2078 #endif
2079
2080 int
2081 main ()
2082 {
2083 return $2 ();
2084 ;
2085 return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_cxx_try_link "$LINENO"; then :
2089 eval "$3=yes"
2090 else
2091 eval "$3=no"
2092 fi
2093 rm -f core conftest.err conftest.$ac_objext \
2094 conftest$ac_exeext conftest.$ac_ext
2095 fi
2096 eval ac_res=\$$3
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100
2101 } # ac_fn_cxx_check_func
2102
2103 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2104 # ----------------------------------------------------
2105 # Tries to find if the field MEMBER exists in type AGGR, after including
2106 # INCLUDES, setting cache variable VAR accordingly.
2107 ac_fn_c_check_member ()
2108 {
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2111 $as_echo_n "checking for $2.$3... " >&6; }
2112 if eval \${$4+:} false; then :
2113 $as_echo_n "(cached) " >&6
2114 else
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 $5
2118 int
2119 main ()
2120 {
2121 static $2 ac_aggr;
2122 if (ac_aggr.$3)
2123 return 0;
2124 ;
2125 return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 eval "$4=yes"
2130 else
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2133 $5
2134 int
2135 main ()
2136 {
2137 static $2 ac_aggr;
2138 if (sizeof ac_aggr.$3)
2139 return 0;
2140 ;
2141 return 0;
2142 }
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 eval "$4=yes"
2146 else
2147 eval "$4=no"
2148 fi
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 fi
2153 eval ac_res=\$$4
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157
2158 } # ac_fn_c_check_member
2159
2160 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2161 # ---------------------------------------------
2162 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2163 # accordingly.
2164 ac_fn_c_check_decl ()
2165 {
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 as_decl_name=`echo $2|sed 's/ *(.*//'`
2168 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2170 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2171 if eval \${$3+:} false; then :
2172 $as_echo_n "(cached) " >&6
2173 else
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2176 $4
2177 int
2178 main ()
2179 {
2180 #ifndef $as_decl_name
2181 #ifdef __cplusplus
2182 (void) $as_decl_use;
2183 #else
2184 (void) $as_decl_name;
2185 #endif
2186 #endif
2187
2188 ;
2189 return 0;
2190 }
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 eval "$3=yes"
2194 else
2195 eval "$3=no"
2196 fi
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 fi
2199 eval ac_res=\$$3
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201 $as_echo "$ac_res" >&6; }
2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203
2204 } # ac_fn_c_check_decl
2205
2206 # ac_fn_c_try_link LINENO
2207 # -----------------------
2208 # Try to link conftest.$ac_ext, and return whether this succeeded.
2209 ac_fn_c_try_link ()
2210 {
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 rm -f conftest.$ac_objext conftest$ac_exeext
2213 if { { ac_try="$ac_link"
2214 case "(($ac_try" in
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2217 esac
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_link") 2>conftest.err
2221 ac_status=$?
2222 if test -s conftest.err; then
2223 grep -v '^ *+' conftest.err >conftest.er1
2224 cat conftest.er1 >&5
2225 mv -f conftest.er1 conftest.err
2226 fi
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; } && {
2229 test -z "$ac_c_werror_flag" ||
2230 test ! -s conftest.err
2231 } && test -s conftest$ac_exeext && {
2232 test "$cross_compiling" = yes ||
2233 test -x conftest$ac_exeext
2234 }; then :
2235 ac_retval=0
2236 else
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 ac_retval=1
2241 fi
2242 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2243 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2244 # interfere with the next link command; also delete a directory that is
2245 # left behind by Apple's compiler. We do this before executing the actions.
2246 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248 as_fn_set_status $ac_retval
2249
2250 } # ac_fn_c_try_link
2251
2252 # ac_fn_c_check_func LINENO FUNC VAR
2253 # ----------------------------------
2254 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2255 ac_fn_c_check_func ()
2256 {
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if eval \${$3+:} false; then :
2261 $as_echo_n "(cached) " >&6
2262 else
2263 if test x$gcc_no_link = xyes; then
2264 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2265 fi
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2268 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2270 #define $2 innocuous_$2
2271
2272 /* System header to define __stub macros and hopefully few prototypes,
2273 which can conflict with char $2 (); below.
2274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2275 <limits.h> exists even on freestanding compilers. */
2276
2277 #ifdef __STDC__
2278 # include <limits.h>
2279 #else
2280 # include <assert.h>
2281 #endif
2282
2283 #undef $2
2284
2285 /* Override any GCC internal prototype to avoid an error.
2286 Use char because int might match the return type of a GCC
2287 builtin and then its argument prototype would still apply. */
2288 #ifdef __cplusplus
2289 extern "C"
2290 #endif
2291 char $2 ();
2292 /* The GNU C library defines this for functions which it implements
2293 to always fail with ENOSYS. Some functions are actually named
2294 something starting with __ and the normal name is an alias. */
2295 #if defined __stub_$2 || defined __stub___$2
2296 choke me
2297 #endif
2298
2299 int
2300 main ()
2301 {
2302 return $2 ();
2303 ;
2304 return 0;
2305 }
2306 _ACEOF
2307 if ac_fn_c_try_link "$LINENO"; then :
2308 eval "$3=yes"
2309 else
2310 eval "$3=no"
2311 fi
2312 rm -f core conftest.err conftest.$ac_objext \
2313 conftest$ac_exeext conftest.$ac_ext
2314 fi
2315 eval ac_res=\$$3
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317 $as_echo "$ac_res" >&6; }
2318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319
2320 } # ac_fn_c_check_func
2321
2322 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2323 # -------------------------------------------
2324 # Tests whether TYPE exists after having included INCLUDES, setting cache
2325 # variable VAR accordingly.
2326 ac_fn_c_check_type ()
2327 {
2328 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2330 $as_echo_n "checking for $2... " >&6; }
2331 if eval \${$3+:} false; then :
2332 $as_echo_n "(cached) " >&6
2333 else
2334 eval "$3=no"
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2337 $4
2338 int
2339 main ()
2340 {
2341 if (sizeof ($2))
2342 return 0;
2343 ;
2344 return 0;
2345 }
2346 _ACEOF
2347 if ac_fn_c_try_compile "$LINENO"; then :
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2350 $4
2351 int
2352 main ()
2353 {
2354 if (sizeof (($2)))
2355 return 0;
2356 ;
2357 return 0;
2358 }
2359 _ACEOF
2360 if ac_fn_c_try_compile "$LINENO"; then :
2361
2362 else
2363 eval "$3=yes"
2364 fi
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 fi
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 fi
2369 eval ac_res=\$$3
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2371 $as_echo "$ac_res" >&6; }
2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2373
2374 } # ac_fn_c_check_type
2375 cat >config.log <<_ACEOF
2376 This file contains any messages produced by compilers while
2377 running configure, to aid debugging if configure makes a mistake.
2378
2379 It was created by package-unused $as_me version-unused, which was
2380 generated by GNU Autoconf 2.69. Invocation command line was
2381
2382 $ $0 $@
2383
2384 _ACEOF
2385 exec 5>>config.log
2386 {
2387 cat <<_ASUNAME
2388 ## --------- ##
2389 ## Platform. ##
2390 ## --------- ##
2391
2392 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2393 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2394 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2395 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2396 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2397
2398 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2399 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2400
2401 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2402 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2403 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2404 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2405 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2406 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2407 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2408
2409 _ASUNAME
2410
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 $as_echo "PATH: $as_dir"
2417 done
2418 IFS=$as_save_IFS
2419
2420 } >&5
2421
2422 cat >&5 <<_ACEOF
2423
2424
2425 ## ----------- ##
2426 ## Core tests. ##
2427 ## ----------- ##
2428
2429 _ACEOF
2430
2431
2432 # Keep a trace of the command line.
2433 # Strip out --no-create and --no-recursion so they do not pile up.
2434 # Strip out --silent because we don't want to record it for future runs.
2435 # Also quote any args containing shell meta-characters.
2436 # Make two passes to allow for proper duplicate-argument suppression.
2437 ac_configure_args=
2438 ac_configure_args0=
2439 ac_configure_args1=
2440 ac_must_keep_next=false
2441 for ac_pass in 1 2
2442 do
2443 for ac_arg
2444 do
2445 case $ac_arg in
2446 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2447 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2448 | -silent | --silent | --silen | --sile | --sil)
2449 continue ;;
2450 *\'*)
2451 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2452 esac
2453 case $ac_pass in
2454 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2455 2)
2456 as_fn_append ac_configure_args1 " '$ac_arg'"
2457 if test $ac_must_keep_next = true; then
2458 ac_must_keep_next=false # Got value, back to normal.
2459 else
2460 case $ac_arg in
2461 *=* | --config-cache | -C | -disable-* | --disable-* \
2462 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2463 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2464 | -with-* | --with-* | -without-* | --without-* | --x)
2465 case "$ac_configure_args0 " in
2466 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2467 esac
2468 ;;
2469 -* ) ac_must_keep_next=true ;;
2470 esac
2471 fi
2472 as_fn_append ac_configure_args " '$ac_arg'"
2473 ;;
2474 esac
2475 done
2476 done
2477 { ac_configure_args0=; unset ac_configure_args0;}
2478 { ac_configure_args1=; unset ac_configure_args1;}
2479
2480 # When interrupted or exit'd, cleanup temporary files, and complete
2481 # config.log. We remove comments because anyway the quotes in there
2482 # would cause problems or look ugly.
2483 # WARNING: Use '\'' to represent an apostrophe within the trap.
2484 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2485 trap 'exit_status=$?
2486 # Save into config.log some information that might help in debugging.
2487 {
2488 echo
2489
2490 $as_echo "## ---------------- ##
2491 ## Cache variables. ##
2492 ## ---------------- ##"
2493 echo
2494 # The following way of writing the cache mishandles newlines in values,
2495 (
2496 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2497 eval ac_val=\$$ac_var
2498 case $ac_val in #(
2499 *${as_nl}*)
2500 case $ac_var in #(
2501 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2502 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2503 esac
2504 case $ac_var in #(
2505 _ | IFS | as_nl) ;; #(
2506 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2507 *) { eval $ac_var=; unset $ac_var;} ;;
2508 esac ;;
2509 esac
2510 done
2511 (set) 2>&1 |
2512 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2513 *${as_nl}ac_space=\ *)
2514 sed -n \
2515 "s/'\''/'\''\\\\'\'''\''/g;
2516 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2517 ;; #(
2518 *)
2519 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2520 ;;
2521 esac |
2522 sort
2523 )
2524 echo
2525
2526 $as_echo "## ----------------- ##
2527 ## Output variables. ##
2528 ## ----------------- ##"
2529 echo
2530 for ac_var in $ac_subst_vars
2531 do
2532 eval ac_val=\$$ac_var
2533 case $ac_val in
2534 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2535 esac
2536 $as_echo "$ac_var='\''$ac_val'\''"
2537 done | sort
2538 echo
2539
2540 if test -n "$ac_subst_files"; then
2541 $as_echo "## ------------------- ##
2542 ## File substitutions. ##
2543 ## ------------------- ##"
2544 echo
2545 for ac_var in $ac_subst_files
2546 do
2547 eval ac_val=\$$ac_var
2548 case $ac_val in
2549 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2550 esac
2551 $as_echo "$ac_var='\''$ac_val'\''"
2552 done | sort
2553 echo
2554 fi
2555
2556 if test -s confdefs.h; then
2557 $as_echo "## ----------- ##
2558 ## confdefs.h. ##
2559 ## ----------- ##"
2560 echo
2561 cat confdefs.h
2562 echo
2563 fi
2564 test "$ac_signal" != 0 &&
2565 $as_echo "$as_me: caught signal $ac_signal"
2566 $as_echo "$as_me: exit $exit_status"
2567 } >&5
2568 rm -f core *.core core.conftest.* &&
2569 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2570 exit $exit_status
2571 ' 0
2572 for ac_signal in 1 2 13 15; do
2573 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2574 done
2575 ac_signal=0
2576
2577 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2578 rm -f -r conftest* confdefs.h
2579
2580 $as_echo "/* confdefs.h */" > confdefs.h
2581
2582 # Predefined preprocessor variables.
2583
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_NAME "$PACKAGE_NAME"
2586 _ACEOF
2587
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2590 _ACEOF
2591
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2594 _ACEOF
2595
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_STRING "$PACKAGE_STRING"
2598 _ACEOF
2599
2600 cat >>confdefs.h <<_ACEOF
2601 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2602 _ACEOF
2603
2604 cat >>confdefs.h <<_ACEOF
2605 #define PACKAGE_URL "$PACKAGE_URL"
2606 _ACEOF
2607
2608
2609 # Let the site file select an alternate cache file if it wants to.
2610 # Prefer an explicitly selected file to automatically selected ones.
2611 ac_site_file1=NONE
2612 ac_site_file2=NONE
2613 if test -n "$CONFIG_SITE"; then
2614 # We do not want a PATH search for config.site.
2615 case $CONFIG_SITE in #((
2616 -*) ac_site_file1=./$CONFIG_SITE;;
2617 */*) ac_site_file1=$CONFIG_SITE;;
2618 *) ac_site_file1=./$CONFIG_SITE;;
2619 esac
2620 elif test "x$prefix" != xNONE; then
2621 ac_site_file1=$prefix/share/config.site
2622 ac_site_file2=$prefix/etc/config.site
2623 else
2624 ac_site_file1=$ac_default_prefix/share/config.site
2625 ac_site_file2=$ac_default_prefix/etc/config.site
2626 fi
2627 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2628 do
2629 test "x$ac_site_file" = xNONE && continue
2630 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2632 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2633 sed 's/^/| /' "$ac_site_file" >&5
2634 . "$ac_site_file" \
2635 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2637 as_fn_error $? "failed to load site script $ac_site_file
2638 See \`config.log' for more details" "$LINENO" 5; }
2639 fi
2640 done
2641
2642 if test -r "$cache_file"; then
2643 # Some versions of bash will fail to source /dev/null (special files
2644 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2645 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2647 $as_echo "$as_me: loading cache $cache_file" >&6;}
2648 case $cache_file in
2649 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2650 *) . "./$cache_file";;
2651 esac
2652 fi
2653 else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2655 $as_echo "$as_me: creating cache $cache_file" >&6;}
2656 >$cache_file
2657 fi
2658
2659 # Check that the precious variables saved in the cache have kept the same
2660 # value.
2661 ac_cache_corrupted=false
2662 for ac_var in $ac_precious_vars; do
2663 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2664 eval ac_new_set=\$ac_env_${ac_var}_set
2665 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2666 eval ac_new_val=\$ac_env_${ac_var}_value
2667 case $ac_old_set,$ac_new_set in
2668 set,)
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2670 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2671 ac_cache_corrupted=: ;;
2672 ,set)
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2674 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2675 ac_cache_corrupted=: ;;
2676 ,);;
2677 *)
2678 if test "x$ac_old_val" != "x$ac_new_val"; then
2679 # differences in whitespace do not lead to failure.
2680 ac_old_val_w=`echo x $ac_old_val`
2681 ac_new_val_w=`echo x $ac_new_val`
2682 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2684 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2685 ac_cache_corrupted=:
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2688 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2689 eval $ac_var=\$ac_old_val
2690 fi
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2692 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2694 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2695 fi;;
2696 esac
2697 # Pass precious variables to config.status.
2698 if test "$ac_new_set" = set; then
2699 case $ac_new_val in
2700 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2701 *) ac_arg=$ac_var=$ac_new_val ;;
2702 esac
2703 case " $ac_configure_args " in
2704 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2705 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2706 esac
2707 fi
2708 done
2709 if $ac_cache_corrupted; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2713 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2714 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2715 fi
2716 ## -------------------- ##
2717 ## Main body of script. ##
2718 ## -------------------- ##
2719
2720 ac_ext=c
2721 ac_cpp='$CPP $CPPFLAGS'
2722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725
2726
2727
2728
2729
2730
2731 # AC_CONFIG_MACRO_DIR([config])
2732 ac_config_headers="$ac_config_headers config.h"
2733
2734
2735 libtool_VERSION=20:0:0
2736
2737
2738 # Default to --enable-multilib
2739 # Check whether --enable-multilib was given.
2740 if test "${enable_multilib+set}" = set; then :
2741 enableval=$enable_multilib; case "$enableval" in
2742 yes) multilib=yes ;;
2743 no) multilib=no ;;
2744 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2745 esac
2746 else
2747 multilib=yes
2748 fi
2749
2750
2751 # We may get other options which we leave undocumented:
2752 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2753 # See config-ml.in if you want the gory details.
2754
2755 if test "$srcdir" = "."; then
2756 if test "$with_target_subdir" != "."; then
2757 multi_basedir="$srcdir/$with_multisrctop../.."
2758 else
2759 multi_basedir="$srcdir/$with_multisrctop.."
2760 fi
2761 else
2762 multi_basedir="$srcdir/.."
2763 fi
2764
2765
2766 # Even if the default multilib is not a cross compilation,
2767 # it may be that some of the other multilibs are.
2768 if test $cross_compiling = no && test $multilib = yes \
2769 && test "x${with_multisubdir}" != x ; then
2770 cross_compiling=maybe
2771 fi
2772
2773 ac_config_commands="$ac_config_commands default-1"
2774
2775
2776
2777
2778 ac_aux_dir=
2779 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2780 if test -f "$ac_dir/install-sh"; then
2781 ac_aux_dir=$ac_dir
2782 ac_install_sh="$ac_aux_dir/install-sh -c"
2783 break
2784 elif test -f "$ac_dir/install.sh"; then
2785 ac_aux_dir=$ac_dir
2786 ac_install_sh="$ac_aux_dir/install.sh -c"
2787 break
2788 elif test -f "$ac_dir/shtool"; then
2789 ac_aux_dir=$ac_dir
2790 ac_install_sh="$ac_aux_dir/shtool install -c"
2791 break
2792 fi
2793 done
2794 if test -z "$ac_aux_dir"; then
2795 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2796 fi
2797
2798 # These three variables are undocumented and unsupported,
2799 # and are intended to be withdrawn in a future Autoconf release.
2800 # They can cause serious problems if a builder's source tree is in a directory
2801 # whose full name contains unusual characters.
2802 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2803 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2804 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2805
2806
2807 # Expand $ac_aux_dir to an absolute path.
2808 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2809
2810 ac_ext=c
2811 ac_cpp='$CPP $CPPFLAGS'
2812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2815 if test -n "$ac_tool_prefix"; then
2816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if ${ac_cv_prog_CC+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 if test -n "$CC"; then
2824 ac_cv_prog_CC="$CC" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2836 fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 CC=$ac_cv_prog_CC
2844 if test -n "$CC"; then
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2846 $as_echo "$CC" >&6; }
2847 else
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2850 fi
2851
2852
2853 fi
2854 if test -z "$ac_cv_prog_CC"; then
2855 ac_ct_CC=$CC
2856 # Extract the first word of "gcc", so it can be a program name with args.
2857 set dummy gcc; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 if test -n "$ac_ct_CC"; then
2864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2868 do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873 ac_cv_prog_ac_ct_CC="gcc"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2876 fi
2877 done
2878 done
2879 IFS=$as_save_IFS
2880
2881 fi
2882 fi
2883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2884 if test -n "$ac_ct_CC"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2886 $as_echo "$ac_ct_CC" >&6; }
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2890 fi
2891
2892 if test "x$ac_ct_CC" = x; then
2893 CC=""
2894 else
2895 case $cross_compiling:$ac_tool_warned in
2896 yes:)
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2899 ac_tool_warned=yes ;;
2900 esac
2901 CC=$ac_ct_CC
2902 fi
2903 else
2904 CC="$ac_cv_prog_CC"
2905 fi
2906
2907 if test -z "$CC"; then
2908 if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2910 set dummy ${ac_tool_prefix}cc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_CC+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_CC="${ac_tool_prefix}cc"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 CC=$ac_cv_prog_CC
2937 if test -n "$CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2939 $as_echo "$CC" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945
2946 fi
2947 fi
2948 if test -z "$CC"; then
2949 # Extract the first word of "cc", so it can be a program name with args.
2950 set dummy cc; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_CC+:} false; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2958 else
2959 ac_prog_rejected=no
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2968 ac_prog_rejected=yes
2969 continue
2970 fi
2971 ac_cv_prog_CC="cc"
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2974 fi
2975 done
2976 done
2977 IFS=$as_save_IFS
2978
2979 if test $ac_prog_rejected = yes; then
2980 # We found a bogon in the path, so make sure we never use it.
2981 set dummy $ac_cv_prog_CC
2982 shift
2983 if test $# != 0; then
2984 # We chose a different compiler from the bogus one.
2985 # However, it has the same basename, so the bogon will be chosen
2986 # first if we set CC to just the basename; use the full file name.
2987 shift
2988 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2989 fi
2990 fi
2991 fi
2992 fi
2993 CC=$ac_cv_prog_CC
2994 if test -n "$CC"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002
3003 fi
3004 if test -z "$CC"; then
3005 if test -n "$ac_tool_prefix"; then
3006 for ac_prog in cl.exe
3007 do
3008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_CC+:} false; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$CC"; then
3016 ac_cv_prog_CC="$CC" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 CC=$ac_cv_prog_CC
3036 if test -n "$CC"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3038 $as_echo "$CC" >&6; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044
3045 test -n "$CC" && break
3046 done
3047 fi
3048 if test -z "$CC"; then
3049 ac_ct_CC=$CC
3050 for ac_prog in cl.exe
3051 do
3052 # Extract the first word of "$ac_prog", so it can be a program name with args.
3053 set dummy $ac_prog; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 if test -n "$ac_ct_CC"; then
3060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3064 do
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069 ac_cv_prog_ac_ct_CC="$ac_prog"
3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3072 fi
3073 done
3074 done
3075 IFS=$as_save_IFS
3076
3077 fi
3078 fi
3079 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3080 if test -n "$ac_ct_CC"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3082 $as_echo "$ac_ct_CC" >&6; }
3083 else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3086 fi
3087
3088
3089 test -n "$ac_ct_CC" && break
3090 done
3091
3092 if test "x$ac_ct_CC" = x; then
3093 CC=""
3094 else
3095 case $cross_compiling:$ac_tool_warned in
3096 yes:)
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3099 ac_tool_warned=yes ;;
3100 esac
3101 CC=$ac_ct_CC
3102 fi
3103 fi
3104
3105 fi
3106
3107
3108 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3110 as_fn_error $? "no acceptable C compiler found in \$PATH
3111 See \`config.log' for more details" "$LINENO" 5; }
3112
3113 # Provide some information about the compiler.
3114 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3115 set X $ac_compile
3116 ac_compiler=$2
3117 for ac_option in --version -v -V -qversion; do
3118 { { ac_try="$ac_compiler $ac_option >&5"
3119 case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124 $as_echo "$ac_try_echo"; } >&5
3125 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3126 ac_status=$?
3127 if test -s conftest.err; then
3128 sed '10a\
3129 ... rest of stderr output deleted ...
3130 10q' conftest.err >conftest.er1
3131 cat conftest.er1 >&5
3132 fi
3133 rm -f conftest.er1 conftest.err
3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135 test $ac_status = 0; }
3136 done
3137
3138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139 /* end confdefs.h. */
3140 #include <stdio.h>
3141 int
3142 main ()
3143 {
3144 printf ("hello world\n");
3145 ;
3146 return 0;
3147 }
3148 _ACEOF
3149 # FIXME: Cleanup?
3150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3151 (eval $ac_link) 2>&5
3152 ac_status=$?
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }; then :
3155 gcc_no_link=no
3156 else
3157 gcc_no_link=yes
3158 fi
3159 if test x$gcc_no_link = xyes; then
3160 # Setting cross_compile will disable run tests; it will
3161 # also disable AC_CHECK_FILE but that's generally
3162 # correct if we can't link.
3163 cross_compiling=yes
3164 EXEEXT=
3165 else
3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167 /* end confdefs.h. */
3168
3169 int
3170 main ()
3171 {
3172
3173 ;
3174 return 0;
3175 }
3176 _ACEOF
3177 ac_clean_files_save=$ac_clean_files
3178 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3179 # Try to create an executable without -o first, disregard a.out.
3180 # It will help us diagnose broken compilers, and finding out an intuition
3181 # of exeext.
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3183 $as_echo_n "checking whether the C compiler works... " >&6; }
3184 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3185
3186 # The possible output files:
3187 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3188
3189 ac_rmfiles=
3190 for ac_file in $ac_files
3191 do
3192 case $ac_file in
3193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3194 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3195 esac
3196 done
3197 rm -f $ac_rmfiles
3198
3199 if { { ac_try="$ac_link_default"
3200 case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205 $as_echo "$ac_try_echo"; } >&5
3206 (eval "$ac_link_default") 2>&5
3207 ac_status=$?
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }; then :
3210 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3211 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3212 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3213 # so that the user can short-circuit this test for compilers unknown to
3214 # Autoconf.
3215 for ac_file in $ac_files ''
3216 do
3217 test -f "$ac_file" || continue
3218 case $ac_file in
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3220 ;;
3221 [ab].out )
3222 # We found the default executable, but exeext='' is most
3223 # certainly right.
3224 break;;
3225 *.* )
3226 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3227 then :; else
3228 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229 fi
3230 # We set ac_cv_exeext here because the later test for it is not
3231 # safe: cross compilers may not add the suffix if given an `-o'
3232 # argument, so we may need to know it at that point already.
3233 # Even if this section looks crufty: it has the advantage of
3234 # actually working.
3235 break;;
3236 * )
3237 break;;
3238 esac
3239 done
3240 test "$ac_cv_exeext" = no && ac_cv_exeext=
3241
3242 else
3243 ac_file=''
3244 fi
3245 if test -z "$ac_file"; then :
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3248 $as_echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253 as_fn_error 77 "C compiler cannot create executables
3254 See \`config.log' for more details" "$LINENO" 5; }
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257 $as_echo "yes" >&6; }
3258 fi
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3260 $as_echo_n "checking for C compiler default output file name... " >&6; }
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3262 $as_echo "$ac_file" >&6; }
3263 ac_exeext=$ac_cv_exeext
3264
3265 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3266 ac_clean_files=$ac_clean_files_save
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3268 $as_echo_n "checking for suffix of executables... " >&6; }
3269 if { { ac_try="$ac_link"
3270 case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_link") 2>&5
3277 ac_status=$?
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }; then :
3280 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3281 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3282 # work properly (i.e., refer to `conftest.exe'), while it won't with
3283 # `rm'.
3284 for ac_file in conftest.exe conftest conftest.*; do
3285 test -f "$ac_file" || continue
3286 case $ac_file in
3287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3288 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289 break;;
3290 * ) break;;
3291 esac
3292 done
3293 else
3294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3297 See \`config.log' for more details" "$LINENO" 5; }
3298 fi
3299 rm -f conftest conftest$ac_cv_exeext
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3301 $as_echo "$ac_cv_exeext" >&6; }
3302
3303 rm -f conftest.$ac_ext
3304 EXEEXT=$ac_cv_exeext
3305 ac_exeext=$EXEEXT
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3308 #include <stdio.h>
3309 int
3310 main ()
3311 {
3312 FILE *f = fopen ("conftest.out", "w");
3313 return ferror (f) || fclose (f) != 0;
3314
3315 ;
3316 return 0;
3317 }
3318 _ACEOF
3319 ac_clean_files="$ac_clean_files conftest.out"
3320 # Check that the compiler produces executables we can run. If not, either
3321 # the compiler is broken, or we cross compile.
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3323 $as_echo_n "checking whether we are cross compiling... " >&6; }
3324 if test "$cross_compiling" != yes; then
3325 { { ac_try="$ac_link"
3326 case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_link") 2>&5
3333 ac_status=$?
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }
3336 if { ac_try='./conftest$ac_cv_exeext'
3337 { { case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340 esac
3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343 (eval "$ac_try") 2>&5
3344 ac_status=$?
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }; }; then
3347 cross_compiling=no
3348 else
3349 if test "$cross_compiling" = maybe; then
3350 cross_compiling=yes
3351 else
3352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354 as_fn_error $? "cannot run C compiled programs.
3355 If you meant to cross compile, use \`--host'.
3356 See \`config.log' for more details" "$LINENO" 5; }
3357 fi
3358 fi
3359 fi
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3361 $as_echo "$cross_compiling" >&6; }
3362
3363 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3364 ac_clean_files=$ac_clean_files_save
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3367 $as_echo_n "checking for suffix of object files... " >&6; }
3368 if ${ac_cv_objext+:} false; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3373
3374 int
3375 main ()
3376 {
3377
3378 ;
3379 return 0;
3380 }
3381 _ACEOF
3382 rm -f conftest.o conftest.obj
3383 if { { ac_try="$ac_compile"
3384 case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_compile") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; then :
3394 for ac_file in conftest.o conftest.obj conftest.*; do
3395 test -f "$ac_file" || continue;
3396 case $ac_file in
3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3398 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3399 break;;
3400 esac
3401 done
3402 else
3403 $as_echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error $? "cannot compute suffix of object files: cannot compile
3409 See \`config.log' for more details" "$LINENO" 5; }
3410 fi
3411 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3412 fi
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3414 $as_echo "$ac_cv_objext" >&6; }
3415 OBJEXT=$ac_cv_objext
3416 ac_objext=$OBJEXT
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3418 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3419 if ${ac_cv_c_compiler_gnu+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3424
3425 int
3426 main ()
3427 {
3428 #ifndef __GNUC__
3429 choke me
3430 #endif
3431
3432 ;
3433 return 0;
3434 }
3435 _ACEOF
3436 if ac_fn_c_try_compile "$LINENO"; then :
3437 ac_compiler_gnu=yes
3438 else
3439 ac_compiler_gnu=no
3440 fi
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3443
3444 fi
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3446 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3447 if test $ac_compiler_gnu = yes; then
3448 GCC=yes
3449 else
3450 GCC=
3451 fi
3452 ac_test_CFLAGS=${CFLAGS+set}
3453 ac_save_CFLAGS=$CFLAGS
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3455 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3456 if ${ac_cv_prog_cc_g+:} false; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 ac_save_c_werror_flag=$ac_c_werror_flag
3460 ac_c_werror_flag=yes
3461 ac_cv_prog_cc_g=no
3462 CFLAGS="-g"
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3465
3466 int
3467 main ()
3468 {
3469
3470 ;
3471 return 0;
3472 }
3473 _ACEOF
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475 ac_cv_prog_cc_g=yes
3476 else
3477 CFLAGS=""
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3480
3481 int
3482 main ()
3483 {
3484
3485 ;
3486 return 0;
3487 }
3488 _ACEOF
3489 if ac_fn_c_try_compile "$LINENO"; then :
3490
3491 else
3492 ac_c_werror_flag=$ac_save_c_werror_flag
3493 CFLAGS="-g"
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496
3497 int
3498 main ()
3499 {
3500
3501 ;
3502 return 0;
3503 }
3504 _ACEOF
3505 if ac_fn_c_try_compile "$LINENO"; then :
3506 ac_cv_prog_cc_g=yes
3507 fi
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 fi
3510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511 fi
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 ac_c_werror_flag=$ac_save_c_werror_flag
3514 fi
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3516 $as_echo "$ac_cv_prog_cc_g" >&6; }
3517 if test "$ac_test_CFLAGS" = set; then
3518 CFLAGS=$ac_save_CFLAGS
3519 elif test $ac_cv_prog_cc_g = yes; then
3520 if test "$GCC" = yes; then
3521 CFLAGS="-g -O2"
3522 else
3523 CFLAGS="-g"
3524 fi
3525 else
3526 if test "$GCC" = yes; then
3527 CFLAGS="-O2"
3528 else
3529 CFLAGS=
3530 fi
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3533 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3534 if ${ac_cv_prog_cc_c89+:} false; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 ac_cv_prog_cc_c89=no
3538 ac_save_CC=$CC
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3541 #include <stdarg.h>
3542 #include <stdio.h>
3543 struct stat;
3544 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3545 struct buf { int x; };
3546 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3547 static char *e (p, i)
3548 char **p;
3549 int i;
3550 {
3551 return p[i];
3552 }
3553 static char *f (char * (*g) (char **, int), char **p, ...)
3554 {
3555 char *s;
3556 va_list v;
3557 va_start (v,p);
3558 s = g (p, va_arg (v,int));
3559 va_end (v);
3560 return s;
3561 }
3562
3563 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3564 function prototypes and stuff, but not '\xHH' hex character constants.
3565 These don't provoke an error unfortunately, instead are silently treated
3566 as 'x'. The following induces an error, until -std is added to get
3567 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3568 array size at least. It's necessary to write '\x00'==0 to get something
3569 that's true only with -std. */
3570 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3571
3572 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3573 inside strings and character constants. */
3574 #define FOO(x) 'x'
3575 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3576
3577 int test (int i, double x);
3578 struct s1 {int (*f) (int a);};
3579 struct s2 {int (*f) (double a);};
3580 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3581 int argc;
3582 char **argv;
3583 int
3584 main ()
3585 {
3586 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3587 ;
3588 return 0;
3589 }
3590 _ACEOF
3591 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3592 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3593 do
3594 CC="$ac_save_CC $ac_arg"
3595 if ac_fn_c_try_compile "$LINENO"; then :
3596 ac_cv_prog_cc_c89=$ac_arg
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext
3599 test "x$ac_cv_prog_cc_c89" != "xno" && break
3600 done
3601 rm -f conftest.$ac_ext
3602 CC=$ac_save_CC
3603
3604 fi
3605 # AC_CACHE_VAL
3606 case "x$ac_cv_prog_cc_c89" in
3607 x)
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3609 $as_echo "none needed" >&6; } ;;
3610 xno)
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3612 $as_echo "unsupported" >&6; } ;;
3613 *)
3614 CC="$CC $ac_cv_prog_cc_c89"
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3616 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3617 esac
3618 if test "x$ac_cv_prog_cc_c89" != xno; then :
3619
3620 fi
3621
3622 ac_ext=c
3623 ac_cpp='$CPP $CPPFLAGS'
3624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627
3628 ac_ext=c
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3634 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3635 if ${am_cv_prog_cc_c_o+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3640
3641 int
3642 main ()
3643 {
3644
3645 ;
3646 return 0;
3647 }
3648 _ACEOF
3649 # Make sure it works both with $CC and with simple cc.
3650 # Following AC_PROG_CC_C_O, we do the test twice because some
3651 # compilers refuse to overwrite an existing .o file with -o,
3652 # though they will create one.
3653 am_cv_prog_cc_c_o=yes
3654 for am_i in 1 2; do
3655 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3656 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } \
3660 && test -f conftest2.$ac_objext; then
3661 : OK
3662 else
3663 am_cv_prog_cc_c_o=no
3664 break
3665 fi
3666 done
3667 rm -f core conftest*
3668 unset am_i
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3671 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3672 if test "$am_cv_prog_cc_c_o" != yes; then
3673 # Losing compiler, so override with the script.
3674 # FIXME: It is wrong to rewrite CC.
3675 # But if we don't then we get into trouble of one sort or another.
3676 # A longer-term fix would be to have automake use am__CC in this case,
3677 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3678 CC="$am_aux_dir/compile $CC"
3679 fi
3680 ac_ext=c
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685
3686
3687
3688 ac_ext=c
3689 ac_cpp='$CPP $CPPFLAGS'
3690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3694 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3695 # On Suns, sometimes $CPP names a directory.
3696 if test -n "$CPP" && test -d "$CPP"; then
3697 CPP=
3698 fi
3699 if test -z "$CPP"; then
3700 if ${ac_cv_prog_CPP+:} false; then :
3701 $as_echo_n "(cached) " >&6
3702 else
3703 # Double quotes because CPP needs to be expanded
3704 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3705 do
3706 ac_preproc_ok=false
3707 for ac_c_preproc_warn_flag in '' yes
3708 do
3709 # Use a header file that comes with gcc, so configuring glibc
3710 # with a fresh cross-compiler works.
3711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3712 # <limits.h> exists even on freestanding compilers.
3713 # On the NeXT, cc -E runs the code through the compiler's parser,
3714 # not just through cpp. "Syntax error" is here to catch this case.
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3717 #ifdef __STDC__
3718 # include <limits.h>
3719 #else
3720 # include <assert.h>
3721 #endif
3722 Syntax error
3723 _ACEOF
3724 if ac_fn_c_try_cpp "$LINENO"; then :
3725
3726 else
3727 # Broken: fails on valid input.
3728 continue
3729 fi
3730 rm -f conftest.err conftest.i conftest.$ac_ext
3731
3732 # OK, works on sane cases. Now check whether nonexistent headers
3733 # can be detected and how.
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3736 #include <ac_nonexistent.h>
3737 _ACEOF
3738 if ac_fn_c_try_cpp "$LINENO"; then :
3739 # Broken: success on invalid input.
3740 continue
3741 else
3742 # Passes both tests.
3743 ac_preproc_ok=:
3744 break
3745 fi
3746 rm -f conftest.err conftest.i conftest.$ac_ext
3747
3748 done
3749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3750 rm -f conftest.i conftest.err conftest.$ac_ext
3751 if $ac_preproc_ok; then :
3752 break
3753 fi
3754
3755 done
3756 ac_cv_prog_CPP=$CPP
3757
3758 fi
3759 CPP=$ac_cv_prog_CPP
3760 else
3761 ac_cv_prog_CPP=$CPP
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3764 $as_echo "$CPP" >&6; }
3765 ac_preproc_ok=false
3766 for ac_c_preproc_warn_flag in '' yes
3767 do
3768 # Use a header file that comes with gcc, so configuring glibc
3769 # with a fresh cross-compiler works.
3770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3771 # <limits.h> exists even on freestanding compilers.
3772 # On the NeXT, cc -E runs the code through the compiler's parser,
3773 # not just through cpp. "Syntax error" is here to catch this case.
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3776 #ifdef __STDC__
3777 # include <limits.h>
3778 #else
3779 # include <assert.h>
3780 #endif
3781 Syntax error
3782 _ACEOF
3783 if ac_fn_c_try_cpp "$LINENO"; then :
3784
3785 else
3786 # Broken: fails on valid input.
3787 continue
3788 fi
3789 rm -f conftest.err conftest.i conftest.$ac_ext
3790
3791 # OK, works on sane cases. Now check whether nonexistent headers
3792 # can be detected and how.
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795 #include <ac_nonexistent.h>
3796 _ACEOF
3797 if ac_fn_c_try_cpp "$LINENO"; then :
3798 # Broken: success on invalid input.
3799 continue
3800 else
3801 # Passes both tests.
3802 ac_preproc_ok=:
3803 break
3804 fi
3805 rm -f conftest.err conftest.i conftest.$ac_ext
3806
3807 done
3808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3809 rm -f conftest.i conftest.err conftest.$ac_ext
3810 if $ac_preproc_ok; then :
3811
3812 else
3813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3815 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3816 See \`config.log' for more details" "$LINENO" 5; }
3817 fi
3818
3819 ac_ext=c
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3824
3825
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3827 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3828 if ${ac_cv_path_GREP+:} false; then :
3829 $as_echo_n "(cached) " >&6
3830 else
3831 if test -z "$GREP"; then
3832 ac_path_GREP_found=false
3833 # Loop through the user's path and test for each of PROGNAME-LIST
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3836 do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_prog in grep ggrep; do
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3842 as_fn_executable_p "$ac_path_GREP" || continue
3843 # Check for GNU ac_path_GREP and select it if it is found.
3844 # Check for GNU $ac_path_GREP
3845 case `"$ac_path_GREP" --version 2>&1` in
3846 *GNU*)
3847 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3848 *)
3849 ac_count=0
3850 $as_echo_n 0123456789 >"conftest.in"
3851 while :
3852 do
3853 cat "conftest.in" "conftest.in" >"conftest.tmp"
3854 mv "conftest.tmp" "conftest.in"
3855 cp "conftest.in" "conftest.nl"
3856 $as_echo 'GREP' >> "conftest.nl"
3857 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3859 as_fn_arith $ac_count + 1 && ac_count=$as_val
3860 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3861 # Best one so far, save it but keep looking for a better one
3862 ac_cv_path_GREP="$ac_path_GREP"
3863 ac_path_GREP_max=$ac_count
3864 fi
3865 # 10*(2^10) chars as input seems more than enough
3866 test $ac_count -gt 10 && break
3867 done
3868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3869 esac
3870
3871 $ac_path_GREP_found && break 3
3872 done
3873 done
3874 done
3875 IFS=$as_save_IFS
3876 if test -z "$ac_cv_path_GREP"; then
3877 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3878 fi
3879 else
3880 ac_cv_path_GREP=$GREP
3881 fi
3882
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3885 $as_echo "$ac_cv_path_GREP" >&6; }
3886 GREP="$ac_cv_path_GREP"
3887
3888
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3890 $as_echo_n "checking for egrep... " >&6; }
3891 if ${ac_cv_path_EGREP+:} false; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3895 then ac_cv_path_EGREP="$GREP -E"
3896 else
3897 if test -z "$EGREP"; then
3898 ac_path_EGREP_found=false
3899 # Loop through the user's path and test for each of PROGNAME-LIST
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3902 do
3903 IFS=$as_save_IFS
3904 test -z "$as_dir" && as_dir=.
3905 for ac_prog in egrep; do
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3908 as_fn_executable_p "$ac_path_EGREP" || continue
3909 # Check for GNU ac_path_EGREP and select it if it is found.
3910 # Check for GNU $ac_path_EGREP
3911 case `"$ac_path_EGREP" --version 2>&1` in
3912 *GNU*)
3913 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3914 *)
3915 ac_count=0
3916 $as_echo_n 0123456789 >"conftest.in"
3917 while :
3918 do
3919 cat "conftest.in" "conftest.in" >"conftest.tmp"
3920 mv "conftest.tmp" "conftest.in"
3921 cp "conftest.in" "conftest.nl"
3922 $as_echo 'EGREP' >> "conftest.nl"
3923 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3925 as_fn_arith $ac_count + 1 && ac_count=$as_val
3926 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3927 # Best one so far, save it but keep looking for a better one
3928 ac_cv_path_EGREP="$ac_path_EGREP"
3929 ac_path_EGREP_max=$ac_count
3930 fi
3931 # 10*(2^10) chars as input seems more than enough
3932 test $ac_count -gt 10 && break
3933 done
3934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3935 esac
3936
3937 $ac_path_EGREP_found && break 3
3938 done
3939 done
3940 done
3941 IFS=$as_save_IFS
3942 if test -z "$ac_cv_path_EGREP"; then
3943 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3944 fi
3945 else
3946 ac_cv_path_EGREP=$EGREP
3947 fi
3948
3949 fi
3950 fi
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3952 $as_echo "$ac_cv_path_EGREP" >&6; }
3953 EGREP="$ac_cv_path_EGREP"
3954
3955
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3957 $as_echo_n "checking for ANSI C header files... " >&6; }
3958 if ${ac_cv_header_stdc+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963 #include <stdlib.h>
3964 #include <stdarg.h>
3965 #include <string.h>
3966 #include <float.h>
3967
3968 int
3969 main ()
3970 {
3971
3972 ;
3973 return 0;
3974 }
3975 _ACEOF
3976 if ac_fn_c_try_compile "$LINENO"; then :
3977 ac_cv_header_stdc=yes
3978 else
3979 ac_cv_header_stdc=no
3980 fi
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982
3983 if test $ac_cv_header_stdc = yes; then
3984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3987 #include <string.h>
3988
3989 _ACEOF
3990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3991 $EGREP "memchr" >/dev/null 2>&1; then :
3992
3993 else
3994 ac_cv_header_stdc=no
3995 fi
3996 rm -f conftest*
3997
3998 fi
3999
4000 if test $ac_cv_header_stdc = yes; then
4001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004 #include <stdlib.h>
4005
4006 _ACEOF
4007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4008 $EGREP "free" >/dev/null 2>&1; then :
4009
4010 else
4011 ac_cv_header_stdc=no
4012 fi
4013 rm -f conftest*
4014
4015 fi
4016
4017 if test $ac_cv_header_stdc = yes; then
4018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4019 if test "$cross_compiling" = yes; then :
4020 :
4021 else
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4024 #include <ctype.h>
4025 #include <stdlib.h>
4026 #if ((' ' & 0x0FF) == 0x020)
4027 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4028 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4029 #else
4030 # define ISLOWER(c) \
4031 (('a' <= (c) && (c) <= 'i') \
4032 || ('j' <= (c) && (c) <= 'r') \
4033 || ('s' <= (c) && (c) <= 'z'))
4034 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4035 #endif
4036
4037 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4038 int
4039 main ()
4040 {
4041 int i;
4042 for (i = 0; i < 256; i++)
4043 if (XOR (islower (i), ISLOWER (i))
4044 || toupper (i) != TOUPPER (i))
4045 return 2;
4046 return 0;
4047 }
4048 _ACEOF
4049 if ac_fn_c_try_run "$LINENO"; then :
4050
4051 else
4052 ac_cv_header_stdc=no
4053 fi
4054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4055 conftest.$ac_objext conftest.beam conftest.$ac_ext
4056 fi
4057
4058 fi
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4061 $as_echo "$ac_cv_header_stdc" >&6; }
4062 if test $ac_cv_header_stdc = yes; then
4063
4064 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4065
4066 fi
4067
4068 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4069 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4070 inttypes.h stdint.h unistd.h
4071 do :
4072 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4073 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4074 "
4075 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4076 cat >>confdefs.h <<_ACEOF
4077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4078 _ACEOF
4079
4080 fi
4081
4082 done
4083
4084
4085
4086 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4087 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4088 MINIX=yes
4089 else
4090 MINIX=
4091 fi
4092
4093
4094 if test "$MINIX" = yes; then
4095
4096 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4097
4098
4099 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4100
4101
4102 $as_echo "#define _MINIX 1" >>confdefs.h
4103
4104 fi
4105
4106
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4108 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4109 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114
4115 # define __EXTENSIONS__ 1
4116 $ac_includes_default
4117 int
4118 main ()
4119 {
4120
4121 ;
4122 return 0;
4123 }
4124 _ACEOF
4125 if ac_fn_c_try_compile "$LINENO"; then :
4126 ac_cv_safe_to_define___extensions__=yes
4127 else
4128 ac_cv_safe_to_define___extensions__=no
4129 fi
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 fi
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4133 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4134 test $ac_cv_safe_to_define___extensions__ = yes &&
4135 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4136
4137 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4138
4139 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4140
4141 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4142
4143 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4144
4145
4146
4147 # Do not delete or change the following two lines. For why, see
4148 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
4149 # Make sure we can run config.sub.
4150 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4151 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4152
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4154 $as_echo_n "checking build system type... " >&6; }
4155 if ${ac_cv_build+:} false; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 ac_build_alias=$build_alias
4159 test "x$ac_build_alias" = x &&
4160 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4161 test "x$ac_build_alias" = x &&
4162 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4163 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4164 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4165
4166 fi
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4168 $as_echo "$ac_cv_build" >&6; }
4169 case $ac_cv_build in
4170 *-*-*) ;;
4171 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4172 esac
4173 build=$ac_cv_build
4174 ac_save_IFS=$IFS; IFS='-'
4175 set x $ac_cv_build
4176 shift
4177 build_cpu=$1
4178 build_vendor=$2
4179 shift; shift
4180 # Remember, the first character of IFS is used to create $*,
4181 # except with old shells:
4182 build_os=$*
4183 IFS=$ac_save_IFS
4184 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4185
4186
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4188 $as_echo_n "checking host system type... " >&6; }
4189 if ${ac_cv_host+:} false; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 if test "x$host_alias" = x; then
4193 ac_cv_host=$ac_cv_build
4194 else
4195 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4196 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4197 fi
4198
4199 fi
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4201 $as_echo "$ac_cv_host" >&6; }
4202 case $ac_cv_host in
4203 *-*-*) ;;
4204 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4205 esac
4206 host=$ac_cv_host
4207 ac_save_IFS=$IFS; IFS='-'
4208 set x $ac_cv_host
4209 shift
4210 host_cpu=$1
4211 host_vendor=$2
4212 shift; shift
4213 # Remember, the first character of IFS is used to create $*,
4214 # except with old shells:
4215 host_os=$*
4216 IFS=$ac_save_IFS
4217 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4218
4219
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4221 $as_echo_n "checking target system type... " >&6; }
4222 if ${ac_cv_target+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 if test "x$target_alias" = x; then
4226 ac_cv_target=$ac_cv_host
4227 else
4228 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4229 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4230 fi
4231
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4234 $as_echo "$ac_cv_target" >&6; }
4235 case $ac_cv_target in
4236 *-*-*) ;;
4237 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4238 esac
4239 target=$ac_cv_target
4240 ac_save_IFS=$IFS; IFS='-'
4241 set x $ac_cv_target
4242 shift
4243 target_cpu=$1
4244 target_vendor=$2
4245 shift; shift
4246 # Remember, the first character of IFS is used to create $*,
4247 # except with old shells:
4248 target_os=$*
4249 IFS=$ac_save_IFS
4250 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4251
4252
4253 # The aliases save the names the user supplied, while $host etc.
4254 # will get canonicalized.
4255 test -n "$target_alias" &&
4256 test "$program_prefix$program_suffix$program_transform_name" = \
4257 NONENONEs,x,x, &&
4258 program_prefix=${target_alias}-
4259
4260 target_alias=${target_alias-$host_alias}
4261
4262
4263 if test "$build" != "$host"; then
4264 # We are being configured with some form of cross compiler.
4265 GLIBCXX_IS_NATIVE=false
4266 case "$host","$target" in
4267 # Darwin crosses can use the host system's libraries and headers,
4268 # because of the fat library support. Of course, it must be the
4269 # same version of Darwin on both sides. Allow the user to
4270 # just say --target=foo-darwin without a version number to mean
4271 # "the version on this system".
4272 *-*-darwin*,*-*-darwin*)
4273 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
4274 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
4275 if test $hostos = $targetos || test $targetos = darwin ; then
4276 GLIBCXX_IS_NATIVE=true
4277 fi
4278 ;;
4279
4280 *)
4281
4282 ;;
4283 esac
4284 else
4285 GLIBCXX_IS_NATIVE=true
4286 fi
4287
4288 # Runs configure.host, and assorted other critical bits. Sets
4289 # up critical shell variables.
4290
4291 # Keep these sync'd with the list in Makefile.am. The first provides an
4292 # expandable list at autoconf time; the second provides an expandable list
4293 # (i.e., shell variable) at configure time.
4294
4295 SUBDIRS=''
4296
4297 # These need to be absolute paths, yet at the same time need to
4298 # canonicalize only relative paths, because then amd will not unmount
4299 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
4300 glibcxx_builddir=`${PWDCMD-pwd}`
4301 case $srcdir in
4302 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
4303 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
4304 esac
4305 toplevel_builddir=${glibcxx_builddir}/..
4306 toplevel_srcdir=${glibcxx_srcdir}/..
4307
4308
4309
4310
4311
4312 # We use these options to decide which functions to include. They are
4313 # set from the top level.
4314
4315 # Check whether --with-target-subdir was given.
4316 if test "${with_target_subdir+set}" = set; then :
4317 withval=$with_target_subdir;
4318 fi
4319
4320
4321
4322 # Check whether --with-cross-host was given.
4323 if test "${with_cross_host+set}" = set; then :
4324 withval=$with_cross_host;
4325 fi
4326
4327
4328
4329 # Check whether --with-newlib was given.
4330 if test "${with_newlib+set}" = set; then :
4331 withval=$with_newlib;
4332 fi
4333
4334
4335 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
4336 # available). Uncomment the next line to force a particular method.
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4338 $as_echo_n "checking whether ln -s works... " >&6; }
4339 LN_S=$as_ln_s
4340 if test "$LN_S" = "ln -s"; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4342 $as_echo "yes" >&6; }
4343 else
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4345 $as_echo "no, using $LN_S" >&6; }
4346 fi
4347
4348 #LN_S='cp -p'
4349
4350 if test -n "$ac_tool_prefix"; then
4351 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4352 set dummy ${ac_tool_prefix}as; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if ${ac_cv_prog_AS+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 if test -n "$AS"; then
4359 ac_cv_prog_AS="$AS" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4363 do
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4368 ac_cv_prog_AS="${ac_tool_prefix}as"
4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4371 fi
4372 done
4373 done
4374 IFS=$as_save_IFS
4375
4376 fi
4377 fi
4378 AS=$ac_cv_prog_AS
4379 if test -n "$AS"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4381 $as_echo "$AS" >&6; }
4382 else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4385 fi
4386
4387
4388 fi
4389 if test -z "$ac_cv_prog_AS"; then
4390 ac_ct_AS=$AS
4391 # Extract the first word of "as", so it can be a program name with args.
4392 set dummy as; ac_word=$2
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 $as_echo_n "checking for $ac_word... " >&6; }
4395 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 if test -n "$ac_ct_AS"; then
4399 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4400 else
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4403 do
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4408 ac_cv_prog_ac_ct_AS="as"
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4411 fi
4412 done
4413 done
4414 IFS=$as_save_IFS
4415
4416 fi
4417 fi
4418 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4419 if test -n "$ac_ct_AS"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4421 $as_echo "$ac_ct_AS" >&6; }
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4425 fi
4426
4427 if test "x$ac_ct_AS" = x; then
4428 AS=""
4429 else
4430 case $cross_compiling:$ac_tool_warned in
4431 yes:)
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4434 ac_tool_warned=yes ;;
4435 esac
4436 AS=$ac_ct_AS
4437 fi
4438 else
4439 AS="$ac_cv_prog_AS"
4440 fi
4441
4442 if test -n "$ac_tool_prefix"; then
4443 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4444 set dummy ${ac_tool_prefix}ar; ac_word=$2
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 $as_echo_n "checking for $ac_word... " >&6; }
4447 if ${ac_cv_prog_AR+:} false; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 if test -n "$AR"; then
4451 ac_cv_prog_AR="$AR" # Let the user override the test.
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4455 do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460 ac_cv_prog_AR="${ac_tool_prefix}ar"
4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4463 fi
4464 done
4465 done
4466 IFS=$as_save_IFS
4467
4468 fi
4469 fi
4470 AR=$ac_cv_prog_AR
4471 if test -n "$AR"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4473 $as_echo "$AR" >&6; }
4474 else
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4477 fi
4478
4479
4480 fi
4481 if test -z "$ac_cv_prog_AR"; then
4482 ac_ct_AR=$AR
4483 # Extract the first word of "ar", so it can be a program name with args.
4484 set dummy ar; ac_word=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 if test -n "$ac_ct_AR"; then
4491 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4492 else
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4495 do
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500 ac_cv_prog_ac_ct_AR="ar"
4501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 break 2
4503 fi
4504 done
4505 done
4506 IFS=$as_save_IFS
4507
4508 fi
4509 fi
4510 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4511 if test -n "$ac_ct_AR"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4513 $as_echo "$ac_ct_AR" >&6; }
4514 else
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4517 fi
4518
4519 if test "x$ac_ct_AR" = x; then
4520 AR=""
4521 else
4522 case $cross_compiling:$ac_tool_warned in
4523 yes:)
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4526 ac_tool_warned=yes ;;
4527 esac
4528 AR=$ac_ct_AR
4529 fi
4530 else
4531 AR="$ac_cv_prog_AR"
4532 fi
4533
4534 if test -n "$ac_tool_prefix"; then
4535 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4536 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if ${ac_cv_prog_RANLIB+:} false; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 if test -n "$RANLIB"; then
4543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4555 fi
4556 done
4557 done
4558 IFS=$as_save_IFS
4559
4560 fi
4561 fi
4562 RANLIB=$ac_cv_prog_RANLIB
4563 if test -n "$RANLIB"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4565 $as_echo "$RANLIB" >&6; }
4566 else
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4569 fi
4570
4571
4572 fi
4573 if test -z "$ac_cv_prog_RANLIB"; then
4574 ac_ct_RANLIB=$RANLIB
4575 # Extract the first word of "ranlib", so it can be a program name with args.
4576 set dummy ranlib; ac_word=$2
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578 $as_echo_n "checking for $ac_word... " >&6; }
4579 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 if test -n "$ac_ct_RANLIB"; then
4583 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4584 else
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4587 do
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4592 ac_cv_prog_ac_ct_RANLIB="ranlib"
4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4595 fi
4596 done
4597 done
4598 IFS=$as_save_IFS
4599
4600 fi
4601 fi
4602 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4603 if test -n "$ac_ct_RANLIB"; then
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4605 $as_echo "$ac_ct_RANLIB" >&6; }
4606 else
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 $as_echo "no" >&6; }
4609 fi
4610
4611 if test "x$ac_ct_RANLIB" = x; then
4612 RANLIB="ranlib-not-found-in-path-error"
4613 else
4614 case $cross_compiling:$ac_tool_warned in
4615 yes:)
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4618 ac_tool_warned=yes ;;
4619 esac
4620 RANLIB=$ac_ct_RANLIB
4621 fi
4622 else
4623 RANLIB="$ac_cv_prog_RANLIB"
4624 fi
4625
4626
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4629 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4630 # Check whether --enable-maintainer-mode was given.
4631 if test "${enable_maintainer_mode+set}" = set; then :
4632 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4633 else
4634 USE_MAINTAINER_MODE=no
4635 fi
4636
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4638 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4639 if test $USE_MAINTAINER_MODE = yes; then
4640 MAINTAINER_MODE_TRUE=
4641 MAINTAINER_MODE_FALSE='#'
4642 else
4643 MAINTAINER_MODE_TRUE='#'
4644 MAINTAINER_MODE_FALSE=
4645 fi
4646
4647 MAINT=$MAINTAINER_MODE_TRUE
4648
4649
4650
4651 # Set up safe default values for all subsequent AM_CONDITIONAL tests
4652 # which are themselves conditionally expanded.
4653 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
4654 ## other macros from doing the same. This should be automated.) -pme
4655
4656 # Check for C library flavor since GNU/Linux platforms use different
4657 # configuration directories depending on the C library in use.
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660
4661 #include <stdio.h>
4662 #if __UCLIBC__
4663 _using_uclibc
4664 #endif
4665
4666 _ACEOF
4667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4668 $EGREP "_using_uclibc" >/dev/null 2>&1; then :
4669 uclibc=yes
4670 else
4671 uclibc=no
4672 fi
4673 rm -f conftest*
4674
4675
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4678
4679 #include <stdio.h>
4680 #if __BIONIC__
4681 _using_bionic
4682 #endif
4683
4684 _ACEOF
4685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4686 $EGREP "_using_bionic" >/dev/null 2>&1; then :
4687 bionic=yes
4688 else
4689 bionic=no
4690 fi
4691 rm -f conftest*
4692
4693
4694 # Find platform-specific directories containing configuration info.
4695 # Also possibly modify flags used elsewhere, as needed by the platform.
4696
4697 . $glibcxx_srcdir/configure.host
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: CPU config directory is $cpu_include_dir" >&5
4699 $as_echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: OS config directory is $os_include_dir" >&5
4701 $as_echo "$as_me: OS config directory is $os_include_dir" >&6;}
4702
4703
4704
4705 # For gettimeofday support.
4706 ac_ext=cpp
4707 ac_cpp='$CXXCPP $CPPFLAGS'
4708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4711 if test -z "$CXX"; then
4712 if test -n "$CCC"; then
4713 CXX=$CCC
4714 else
4715 if test -n "$ac_tool_prefix"; then
4716 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4717 do
4718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if ${ac_cv_prog_CXX+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if test -n "$CXX"; then
4726 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4730 do
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4738 fi
4739 done
4740 done
4741 IFS=$as_save_IFS
4742
4743 fi
4744 fi
4745 CXX=$ac_cv_prog_CXX
4746 if test -n "$CXX"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4748 $as_echo "$CXX" >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4752 fi
4753
4754
4755 test -n "$CXX" && break
4756 done
4757 fi
4758 if test -z "$CXX"; then
4759 ac_ct_CXX=$CXX
4760 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4761 do
4762 # Extract the first word of "$ac_prog", so it can be a program name with args.
4763 set dummy $ac_prog; ac_word=$2
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if test -n "$ac_ct_CXX"; then
4770 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779 ac_cv_prog_ac_ct_CXX="$ac_prog"
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4782 fi
4783 done
4784 done
4785 IFS=$as_save_IFS
4786
4787 fi
4788 fi
4789 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4790 if test -n "$ac_ct_CXX"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4792 $as_echo "$ac_ct_CXX" >&6; }
4793 else
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4796 fi
4797
4798
4799 test -n "$ac_ct_CXX" && break
4800 done
4801
4802 if test "x$ac_ct_CXX" = x; then
4803 CXX="g++"
4804 else
4805 case $cross_compiling:$ac_tool_warned in
4806 yes:)
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4809 ac_tool_warned=yes ;;
4810 esac
4811 CXX=$ac_ct_CXX
4812 fi
4813 fi
4814
4815 fi
4816 fi
4817 # Provide some information about the compiler.
4818 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4819 set X $ac_compile
4820 ac_compiler=$2
4821 for ac_option in --version -v -V -qversion; do
4822 { { ac_try="$ac_compiler $ac_option >&5"
4823 case "(($ac_try" in
4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825 *) ac_try_echo=$ac_try;;
4826 esac
4827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4828 $as_echo "$ac_try_echo"; } >&5
4829 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4830 ac_status=$?
4831 if test -s conftest.err; then
4832 sed '10a\
4833 ... rest of stderr output deleted ...
4834 10q' conftest.err >conftest.er1
4835 cat conftest.er1 >&5
4836 fi
4837 rm -f conftest.er1 conftest.err
4838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4839 test $ac_status = 0; }
4840 done
4841
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4843 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4844 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849
4850 int
4851 main ()
4852 {
4853 #ifndef __GNUC__
4854 choke me
4855 #endif
4856
4857 ;
4858 return 0;
4859 }
4860 _ACEOF
4861 if ac_fn_cxx_try_compile "$LINENO"; then :
4862 ac_compiler_gnu=yes
4863 else
4864 ac_compiler_gnu=no
4865 fi
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4868
4869 fi
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4871 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4872 if test $ac_compiler_gnu = yes; then
4873 GXX=yes
4874 else
4875 GXX=
4876 fi
4877 ac_test_CXXFLAGS=${CXXFLAGS+set}
4878 ac_save_CXXFLAGS=$CXXFLAGS
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4880 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4881 if ${ac_cv_prog_cxx_g+:} false; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4885 ac_cxx_werror_flag=yes
4886 ac_cv_prog_cxx_g=no
4887 CXXFLAGS="-g"
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890
4891 int
4892 main ()
4893 {
4894
4895 ;
4896 return 0;
4897 }
4898 _ACEOF
4899 if ac_fn_cxx_try_compile "$LINENO"; then :
4900 ac_cv_prog_cxx_g=yes
4901 else
4902 CXXFLAGS=""
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4905
4906 int
4907 main ()
4908 {
4909
4910 ;
4911 return 0;
4912 }
4913 _ACEOF
4914 if ac_fn_cxx_try_compile "$LINENO"; then :
4915
4916 else
4917 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4918 CXXFLAGS="-g"
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4921
4922 int
4923 main ()
4924 {
4925
4926 ;
4927 return 0;
4928 }
4929 _ACEOF
4930 if ac_fn_cxx_try_compile "$LINENO"; then :
4931 ac_cv_prog_cxx_g=yes
4932 fi
4933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934 fi
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936 fi
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4939 fi
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4941 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4942 if test "$ac_test_CXXFLAGS" = set; then
4943 CXXFLAGS=$ac_save_CXXFLAGS
4944 elif test $ac_cv_prog_cxx_g = yes; then
4945 if test "$GXX" = yes; then
4946 CXXFLAGS="-g -O2"
4947 else
4948 CXXFLAGS="-g"
4949 fi
4950 else
4951 if test "$GXX" = yes; then
4952 CXXFLAGS="-O2"
4953 else
4954 CXXFLAGS=
4955 fi
4956 fi
4957 ac_ext=cpp
4958 ac_cpp='$CXXCPP $CPPFLAGS'
4959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4962
4963
4964 ac_ext=cpp
4965 ac_cpp='$CXXCPP $CPPFLAGS'
4966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4970 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4971 if test -z "$CXXCPP"; then
4972 if ${ac_cv_prog_CXXCPP+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 # Double quotes because CXXCPP needs to be expanded
4976 for CXXCPP in "$CXX -E" "/lib/cpp"
4977 do
4978 ac_preproc_ok=false
4979 for ac_cxx_preproc_warn_flag in '' yes
4980 do
4981 # Use a header file that comes with gcc, so configuring glibc
4982 # with a fresh cross-compiler works.
4983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4984 # <limits.h> exists even on freestanding compilers.
4985 # On the NeXT, cc -E runs the code through the compiler's parser,
4986 # not just through cpp. "Syntax error" is here to catch this case.
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4989 #ifdef __STDC__
4990 # include <limits.h>
4991 #else
4992 # include <assert.h>
4993 #endif
4994 Syntax error
4995 _ACEOF
4996 if ac_fn_cxx_try_cpp "$LINENO"; then :
4997
4998 else
4999 # Broken: fails on valid input.
5000 continue
5001 fi
5002 rm -f conftest.err conftest.i conftest.$ac_ext
5003
5004 # OK, works on sane cases. Now check whether nonexistent headers
5005 # can be detected and how.
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008 #include <ac_nonexistent.h>
5009 _ACEOF
5010 if ac_fn_cxx_try_cpp "$LINENO"; then :
5011 # Broken: success on invalid input.
5012 continue
5013 else
5014 # Passes both tests.
5015 ac_preproc_ok=:
5016 break
5017 fi
5018 rm -f conftest.err conftest.i conftest.$ac_ext
5019
5020 done
5021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022 rm -f conftest.i conftest.err conftest.$ac_ext
5023 if $ac_preproc_ok; then :
5024 break
5025 fi
5026
5027 done
5028 ac_cv_prog_CXXCPP=$CXXCPP
5029
5030 fi
5031 CXXCPP=$ac_cv_prog_CXXCPP
5032 else
5033 ac_cv_prog_CXXCPP=$CXXCPP
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5036 $as_echo "$CXXCPP" >&6; }
5037 ac_preproc_ok=false
5038 for ac_cxx_preproc_warn_flag in '' yes
5039 do
5040 # Use a header file that comes with gcc, so configuring glibc
5041 # with a fresh cross-compiler works.
5042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043 # <limits.h> exists even on freestanding compilers.
5044 # On the NeXT, cc -E runs the code through the compiler's parser,
5045 # not just through cpp. "Syntax error" is here to catch this case.
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048 #ifdef __STDC__
5049 # include <limits.h>
5050 #else
5051 # include <assert.h>
5052 #endif
5053 Syntax error
5054 _ACEOF
5055 if ac_fn_cxx_try_cpp "$LINENO"; then :
5056
5057 else
5058 # Broken: fails on valid input.
5059 continue
5060 fi
5061 rm -f conftest.err conftest.i conftest.$ac_ext
5062
5063 # OK, works on sane cases. Now check whether nonexistent headers
5064 # can be detected and how.
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5067 #include <ac_nonexistent.h>
5068 _ACEOF
5069 if ac_fn_cxx_try_cpp "$LINENO"; then :
5070 # Broken: success on invalid input.
5071 continue
5072 else
5073 # Passes both tests.
5074 ac_preproc_ok=:
5075 break
5076 fi
5077 rm -f conftest.err conftest.i conftest.$ac_ext
5078
5079 done
5080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5081 rm -f conftest.i conftest.err conftest.$ac_ext
5082 if $ac_preproc_ok; then :
5083
5084 else
5085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5087 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5088 See \`config.log' for more details" "$LINENO" 5; }
5089 fi
5090
5091 ac_ext=cpp
5092 ac_cpp='$CXXCPP $CPPFLAGS'
5093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5096
5097
5098
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
5101 $as_echo_n "checking for gettimeofday... " >&6; }
5102
5103
5104 ac_ext=cpp
5105 ac_cpp='$CXXCPP $CPPFLAGS'
5106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5109
5110 ac_save_CXXFLAGS="$CXXFLAGS"
5111 CXXFLAGS="$CXXFLAGS -fno-exceptions"
5112
5113 ac_has_gettimeofday=no;
5114 for ac_header in sys/time.h
5115 do :
5116 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5117 if test "x$ac_cv_header_sys_time_h" = xyes; then :
5118 cat >>confdefs.h <<_ACEOF
5119 #define HAVE_SYS_TIME_H 1
5120 _ACEOF
5121 ac_has_sys_time_h=yes
5122 else
5123 ac_has_sys_time_h=no
5124 fi
5125
5126 done
5127
5128 if test x"$ac_has_sys_time_h" = x"yes"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
5130 $as_echo_n "checking for gettimeofday... " >&6; }
5131 if test x$gcc_no_link = xyes; then
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134 #include <sys/time.h>
5135 int
5136 main ()
5137 {
5138 timeval tv; gettimeofday(&tv, 0);
5139 ;
5140 return 0;
5141 }
5142 _ACEOF
5143 if ac_fn_cxx_try_compile "$LINENO"; then :
5144 ac_has_gettimeofday=yes
5145 else
5146 ac_has_gettimeofday=no
5147 fi
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149 else
5150 if test x$gcc_no_link = xyes; then
5151 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5152 fi
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155 #include <sys/time.h>
5156 int
5157 main ()
5158 {
5159 timeval tv; gettimeofday(&tv, 0);
5160 ;
5161 return 0;
5162 }
5163 _ACEOF
5164 if ac_fn_cxx_try_link "$LINENO"; then :
5165 ac_has_gettimeofday=yes
5166 else
5167 ac_has_gettimeofday=no
5168 fi
5169 rm -f core conftest.err conftest.$ac_objext \
5170 conftest$ac_exeext conftest.$ac_ext
5171 fi
5172
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_gettimeofday" >&5
5174 $as_echo "$ac_has_gettimeofday" >&6; }
5175 fi
5176
5177 if test x"$ac_has_gettimeofday" = x"yes"; then
5178
5179 $as_echo "#define _GLIBCXX_USE_GETTIMEOFDAY 1" >>confdefs.h
5180
5181 fi
5182
5183 CXXFLAGS="$ac_save_CXXFLAGS"
5184 ac_ext=c
5185 ac_cpp='$CPP $CPPFLAGS'
5186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5189
5190
5191
5192 # For clock_gettime, nanosleep and sched_yield support.
5193
5194
5195 # Check whether --enable-libstdcxx-time was given.
5196 if test "${enable_libstdcxx_time+set}" = set; then :
5197 enableval=$enable_libstdcxx_time;
5198 case "$enableval" in
5199 yes|no|rt) ;;
5200 *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-time" "$LINENO" 5 ;;
5201 esac
5202
5203 else
5204 enable_libstdcxx_time=auto
5205 fi
5206
5207
5208
5209
5210 ac_ext=cpp
5211 ac_cpp='$CXXCPP $CPPFLAGS'
5212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5215
5216 ac_save_CXXFLAGS="$CXXFLAGS"
5217 CXXFLAGS="$CXXFLAGS -fno-exceptions"
5218 ac_save_LIBS="$LIBS"
5219
5220 ac_has_clock_monotonic=no
5221 ac_has_clock_realtime=no
5222 ac_has_nanosleep=no
5223 ac_has_sched_yield=no
5224
5225 if test x"$enable_libstdcxx_time" = x"auto"; then
5226
5227 case "${target_os}" in
5228 cygwin*)
5229 ac_has_nanosleep=yes
5230 ;;
5231 mingw*)
5232 ac_has_win32_sleep=yes
5233 ac_has_sched_yield=yes
5234 ;;
5235 darwin*)
5236 ac_has_nanosleep=yes
5237 ac_has_sched_yield=yes
5238 ;;
5239 # VxWorks has nanosleep as soon as the kernel is configured with
5240 # INCLUDE_POSIX_TIMERS, which is normally/most-often the case.
5241 vxworks*)
5242 ac_has_nanosleep=yes
5243 ;;
5244 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
5245 # Don't use link test for freestanding library, in case gcc_no_link=yes
5246 if test x"$is_hosted" = xyes; then
5247 # Versions of glibc before 2.17 needed -lrt for clock_gettime.
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5249 $as_echo_n "checking for library containing clock_gettime... " >&6; }
5250 if ${ac_cv_search_clock_gettime+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 ac_func_search_save_LIBS=$LIBS
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256
5257 /* Override any GCC internal prototype to avoid an error.
5258 Use char because int might match the return type of a GCC
5259 builtin and then its argument prototype would still apply. */
5260 #ifdef __cplusplus
5261 extern "C"
5262 #endif
5263 char clock_gettime ();
5264 int
5265 main ()
5266 {
5267 return clock_gettime ();
5268 ;
5269 return 0;
5270 }
5271 _ACEOF
5272 for ac_lib in '' rt; do
5273 if test -z "$ac_lib"; then
5274 ac_res="none required"
5275 else
5276 ac_res=-l$ac_lib
5277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5278 fi
5279 if test x$gcc_no_link = xyes; then
5280 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5281 fi
5282 if ac_fn_cxx_try_link "$LINENO"; then :
5283 ac_cv_search_clock_gettime=$ac_res
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext \
5286 conftest$ac_exeext
5287 if ${ac_cv_search_clock_gettime+:} false; then :
5288 break
5289 fi
5290 done
5291 if ${ac_cv_search_clock_gettime+:} false; then :
5292
5293 else
5294 ac_cv_search_clock_gettime=no
5295 fi
5296 rm conftest.$ac_ext
5297 LIBS=$ac_func_search_save_LIBS
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5300 $as_echo "$ac_cv_search_clock_gettime" >&6; }
5301 ac_res=$ac_cv_search_clock_gettime
5302 if test "$ac_res" != no; then :
5303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5304
5305 fi
5306
5307 if test x"$ac_cv_search_clock_gettime" = x"none required"; then
5308 ac_has_clock_monotonic=yes
5309 ac_has_clock_realtime=yes
5310 fi
5311 fi
5312 ac_has_nanosleep=yes
5313 ac_has_sched_yield=yes
5314 ;;
5315 freebsd*|netbsd*|dragonfly*|rtems*)
5316 ac_has_clock_monotonic=yes
5317 ac_has_clock_realtime=yes
5318 ac_has_nanosleep=yes
5319 ac_has_sched_yield=yes
5320 ;;
5321 openbsd*)
5322 ac_has_clock_monotonic=yes
5323 ac_has_clock_realtime=yes
5324 ac_has_nanosleep=yes
5325 ;;
5326 solaris*)
5327 ac_has_clock_monotonic=yes
5328 ac_has_clock_realtime=yes
5329 ac_has_nanosleep=yes
5330 ac_has_sched_yield=yes
5331 ;;
5332 uclinux*)
5333 ac_has_nanosleep=yes
5334 ac_has_sched_yield=yes
5335 esac
5336
5337 elif test x"$enable_libstdcxx_time" != x"no"; then
5338
5339 if test x"$enable_libstdcxx_time" = x"rt"; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5341 $as_echo_n "checking for library containing clock_gettime... " >&6; }
5342 if ${ac_cv_search_clock_gettime+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 ac_func_search_save_LIBS=$LIBS
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348
5349 /* Override any GCC internal prototype to avoid an error.
5350 Use char because int might match the return type of a GCC
5351 builtin and then its argument prototype would still apply. */
5352 #ifdef __cplusplus
5353 extern "C"
5354 #endif
5355 char clock_gettime ();
5356 int
5357 main ()
5358 {
5359 return clock_gettime ();
5360 ;
5361 return 0;
5362 }
5363 _ACEOF
5364 for ac_lib in '' rt; do
5365 if test -z "$ac_lib"; then
5366 ac_res="none required"
5367 else
5368 ac_res=-l$ac_lib
5369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5370 fi
5371 if test x$gcc_no_link = xyes; then
5372 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5373 fi
5374 if ac_fn_cxx_try_link "$LINENO"; then :
5375 ac_cv_search_clock_gettime=$ac_res
5376 fi
5377 rm -f core conftest.err conftest.$ac_objext \
5378 conftest$ac_exeext
5379 if ${ac_cv_search_clock_gettime+:} false; then :
5380 break
5381 fi
5382 done
5383 if ${ac_cv_search_clock_gettime+:} false; then :
5384
5385 else
5386 ac_cv_search_clock_gettime=no
5387 fi
5388 rm conftest.$ac_ext
5389 LIBS=$ac_func_search_save_LIBS
5390 fi
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5392 $as_echo "$ac_cv_search_clock_gettime" >&6; }
5393 ac_res=$ac_cv_search_clock_gettime
5394 if test "$ac_res" != no; then :
5395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5396
5397 fi
5398
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
5400 $as_echo_n "checking for library containing nanosleep... " >&6; }
5401 if ${ac_cv_search_nanosleep+:} false; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 ac_func_search_save_LIBS=$LIBS
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407
5408 /* Override any GCC internal prototype to avoid an error.
5409 Use char because int might match the return type of a GCC
5410 builtin and then its argument prototype would still apply. */
5411 #ifdef __cplusplus
5412 extern "C"
5413 #endif
5414 char nanosleep ();
5415 int
5416 main ()
5417 {
5418 return nanosleep ();
5419 ;
5420 return 0;
5421 }
5422 _ACEOF
5423 for ac_lib in '' rt; do
5424 if test -z "$ac_lib"; then
5425 ac_res="none required"
5426 else
5427 ac_res=-l$ac_lib
5428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5429 fi
5430 if test x$gcc_no_link = xyes; then
5431 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5432 fi
5433 if ac_fn_cxx_try_link "$LINENO"; then :
5434 ac_cv_search_nanosleep=$ac_res
5435 fi
5436 rm -f core conftest.err conftest.$ac_objext \
5437 conftest$ac_exeext
5438 if ${ac_cv_search_nanosleep+:} false; then :
5439 break
5440 fi
5441 done
5442 if ${ac_cv_search_nanosleep+:} false; then :
5443
5444 else
5445 ac_cv_search_nanosleep=no
5446 fi
5447 rm conftest.$ac_ext
5448 LIBS=$ac_func_search_save_LIBS
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
5451 $as_echo "$ac_cv_search_nanosleep" >&6; }
5452 ac_res=$ac_cv_search_nanosleep
5453 if test "$ac_res" != no; then :
5454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5455
5456 fi
5457
5458 else
5459 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5460 if test "x$ac_cv_func_clock_gettime" = xyes; then :
5461
5462 fi
5463
5464 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5465 if test "x$ac_cv_func_nanosleep" = xyes; then :
5466
5467 fi
5468
5469 fi
5470
5471 case "$ac_cv_search_clock_gettime" in
5472 -l*) GLIBCXX_LIBS=$ac_cv_search_clock_gettime
5473 ;;
5474 esac
5475 case "$ac_cv_search_nanosleep" in
5476 -l*) GLIBCXX_LIBS="$GLIBCXX_LIBS $ac_cv_search_nanosleep"
5477 ;;
5478 esac
5479
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
5481 $as_echo_n "checking for library containing sched_yield... " >&6; }
5482 if ${ac_cv_search_sched_yield+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 ac_func_search_save_LIBS=$LIBS
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488
5489 /* Override any GCC internal prototype to avoid an error.
5490 Use char because int might match the return type of a GCC
5491 builtin and then its argument prototype would still apply. */
5492 #ifdef __cplusplus
5493 extern "C"
5494 #endif
5495 char sched_yield ();
5496 int
5497 main ()
5498 {
5499 return sched_yield ();
5500 ;
5501 return 0;
5502 }
5503 _ACEOF
5504 for ac_lib in '' rt; do
5505 if test -z "$ac_lib"; then
5506 ac_res="none required"
5507 else
5508 ac_res=-l$ac_lib
5509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5510 fi
5511 if test x$gcc_no_link = xyes; then
5512 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5513 fi
5514 if ac_fn_cxx_try_link "$LINENO"; then :
5515 ac_cv_search_sched_yield=$ac_res
5516 fi
5517 rm -f core conftest.err conftest.$ac_objext \
5518 conftest$ac_exeext
5519 if ${ac_cv_search_sched_yield+:} false; then :
5520 break
5521 fi
5522 done
5523 if ${ac_cv_search_sched_yield+:} false; then :
5524
5525 else
5526 ac_cv_search_sched_yield=no
5527 fi
5528 rm conftest.$ac_ext
5529 LIBS=$ac_func_search_save_LIBS
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
5532 $as_echo "$ac_cv_search_sched_yield" >&6; }
5533 ac_res=$ac_cv_search_sched_yield
5534 if test "$ac_res" != no; then :
5535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5536
5537 fi
5538
5539
5540 case "$ac_cv_search_sched_yield" in
5541 -lrt*)
5542 if test x"$enable_libstdcxx_time" = x"rt"; then
5543 GLIBCXX_LIBS="$GLIBCXX_LIBS $ac_cv_search_sched_yield"
5544 ac_has_sched_yield=yes
5545 fi
5546 ;;
5547 *)
5548 ac_has_sched_yield=yes
5549 ;;
5550 esac
5551
5552 for ac_header in unistd.h
5553 do :
5554 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5555 if test "x$ac_cv_header_unistd_h" = xyes; then :
5556 cat >>confdefs.h <<_ACEOF
5557 #define HAVE_UNISTD_H 1
5558 _ACEOF
5559 ac_has_unistd_h=yes
5560 else
5561 ac_has_unistd_h=no
5562 fi
5563
5564 done
5565
5566
5567 if test x"$ac_has_unistd_h" = x"yes"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock" >&5
5569 $as_echo_n "checking for monotonic clock... " >&6; }
5570 if test x$gcc_no_link = xyes; then
5571 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5572 fi
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #include <unistd.h>
5576 #include <time.h>
5577
5578 int
5579 main ()
5580 {
5581 #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
5582 timespec tp;
5583 #endif
5584 clock_gettime(CLOCK_MONOTONIC, &tp);
5585
5586 ;
5587 return 0;
5588 }
5589 _ACEOF
5590 if ac_fn_cxx_try_link "$LINENO"; then :
5591 ac_has_clock_monotonic=yes
5592 else
5593 ac_has_clock_monotonic=no
5594 fi
5595 rm -f core conftest.err conftest.$ac_objext \
5596 conftest$ac_exeext conftest.$ac_ext
5597
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_monotonic" >&5
5599 $as_echo "$ac_has_clock_monotonic" >&6; }
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realtime clock" >&5
5602 $as_echo_n "checking for realtime clock... " >&6; }
5603 if test x$gcc_no_link = xyes; then
5604 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5605 fi
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 #include <unistd.h>
5609 #include <time.h>
5610
5611 int
5612 main ()
5613 {
5614 #if _POSIX_TIMERS > 0
5615 timespec tp;
5616 #endif
5617 clock_gettime(CLOCK_REALTIME, &tp);
5618
5619 ;
5620 return 0;
5621 }
5622 _ACEOF
5623 if ac_fn_cxx_try_link "$LINENO"; then :
5624 ac_has_clock_realtime=yes
5625 else
5626 ac_has_clock_realtime=no
5627 fi
5628 rm -f core conftest.err conftest.$ac_objext \
5629 conftest$ac_exeext conftest.$ac_ext
5630
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_realtime" >&5
5632 $as_echo "$ac_has_clock_realtime" >&6; }
5633
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep" >&5
5635 $as_echo_n "checking for nanosleep... " >&6; }
5636 if test x$gcc_no_link = xyes; then
5637 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5638 fi
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 #include <unistd.h>
5642 #include <time.h>
5643
5644 int
5645 main ()
5646 {
5647 #if _POSIX_TIMERS > 0
5648 timespec tp;
5649 #endif
5650 nanosleep(&tp, 0);
5651
5652 ;
5653 return 0;
5654 }
5655 _ACEOF
5656 if ac_fn_cxx_try_link "$LINENO"; then :
5657 ac_has_nanosleep=yes
5658 else
5659 ac_has_nanosleep=no
5660 fi
5661 rm -f core conftest.err conftest.$ac_objext \
5662 conftest$ac_exeext conftest.$ac_ext
5663
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_nanosleep" >&5
5665 $as_echo "$ac_has_nanosleep" >&6; }
5666 fi
5667 fi
5668
5669 if test x"$ac_has_clock_monotonic" != x"yes"; then
5670 case ${target_os} in
5671 linux* | uclinux*)
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5673 $as_echo_n "checking for clock_gettime syscall... " >&6; }
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 #include <unistd.h>
5677 #include <time.h>
5678 #include <sys/syscall.h>
5679
5680 int
5681 main ()
5682 {
5683 #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
5684 timespec tp;
5685 #endif
5686 syscall(SYS_clock_gettime, CLOCK_MONOTONIC, &tp);
5687 syscall(SYS_clock_gettime, CLOCK_REALTIME, &tp);
5688
5689 ;
5690 return 0;
5691 }
5692 _ACEOF
5693 if ac_fn_cxx_try_compile "$LINENO"; then :
5694 ac_has_clock_gettime_syscall=yes
5695 else
5696 ac_has_clock_gettime_syscall=no
5697 fi
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_gettime_syscall" >&5
5700 $as_echo "$ac_has_clock_gettime_syscall" >&6; }
5701 if test x"$ac_has_clock_gettime_syscall" = x"yes"; then
5702
5703 $as_echo "#define _GLIBCXX_USE_CLOCK_GETTIME_SYSCALL 1" >>confdefs.h
5704
5705 ac_has_clock_monotonic=yes
5706 ac_has_clock_realtime=yes
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec that matches syscall" >&5
5708 $as_echo_n "checking for struct timespec that matches syscall... " >&6; }
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 #include <time.h>
5712 #include <sys/syscall.h>
5713
5714 int
5715 main ()
5716 {
5717 #ifdef SYS_clock_gettime64
5718 #if SYS_clock_gettime64 != SYS_clock_gettime
5719 // We need to use SYS_clock_gettime and libc appears to
5720 // also know about the SYS_clock_gettime64 syscall.
5721 // Check that userspace doesn't use time64 version of timespec.
5722 static_assert(sizeof(timespec::tv_sec) == sizeof(long),
5723 "struct timespec must be compatible with SYS_clock_gettime");
5724 #endif
5725 #endif
5726
5727 ;
5728 return 0;
5729 }
5730 _ACEOF
5731 if ac_fn_cxx_try_compile "$LINENO"; then :
5732 ac_timespec_matches_syscall=yes
5733 else
5734 ac_timespec_matches_syscall=no
5735 fi
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_timespec_matches_syscall" >&5
5738 $as_echo "$ac_timespec_matches_syscall" >&6; }
5739 if test x"$ac_timespec_matches_syscall" = no; then
5740 as_fn_error $? "struct timespec is not compatible with SYS_clock_gettime, please report a bug to http://gcc.gnu.org/bugzilla" "$LINENO" 5
5741 fi
5742 fi;;
5743 esac
5744 fi
5745
5746 if test x"$ac_has_clock_monotonic" = x"yes"; then
5747
5748 $as_echo "#define _GLIBCXX_USE_CLOCK_MONOTONIC 1" >>confdefs.h
5749
5750 fi
5751
5752 if test x"$ac_has_clock_realtime" = x"yes"; then
5753
5754 $as_echo "#define _GLIBCXX_USE_CLOCK_REALTIME 1" >>confdefs.h
5755
5756 fi
5757
5758 if test x"$ac_has_sched_yield" = x"yes"; then
5759
5760 $as_echo "#define _GLIBCXX_USE_SCHED_YIELD 1" >>confdefs.h
5761
5762 fi
5763
5764 if test x"$ac_has_nanosleep" = x"yes"; then
5765
5766 $as_echo "#define _GLIBCXX_USE_NANOSLEEP 1" >>confdefs.h
5767
5768 elif test x"$ac_has_win32_sleep" = x"yes"; then
5769
5770 $as_echo "#define _GLIBCXX_USE_WIN32_SLEEP 1" >>confdefs.h
5771
5772 else
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sleep" >&5
5774 $as_echo_n "checking for sleep... " >&6; }
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5777 #include <unistd.h>
5778 int
5779 main ()
5780 {
5781 sleep(1)
5782 ;
5783 return 0;
5784 }
5785 _ACEOF
5786 if ac_fn_cxx_try_compile "$LINENO"; then :
5787 ac_has_sleep=yes
5788 else
5789 ac_has_sleep=no
5790 fi
5791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792 if test x"$ac_has_sleep" = x"yes"; then
5793
5794 $as_echo "#define HAVE_SLEEP 1" >>confdefs.h
5795
5796 fi
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_sleep" >&5
5798 $as_echo "$ac_has_sleep" >&6; }
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usleep" >&5
5800 $as_echo_n "checking for usleep... " >&6; }
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5803 #include <unistd.h>
5804 int
5805 main ()
5806 {
5807 sleep(1);
5808 usleep(100);
5809 ;
5810 return 0;
5811 }
5812 _ACEOF
5813 if ac_fn_cxx_try_compile "$LINENO"; then :
5814 ac_has_usleep=yes
5815 else
5816 ac_has_usleep=no
5817 fi
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 if test x"$ac_has_usleep" = x"yes"; then
5820
5821 $as_echo "#define HAVE_USLEEP 1" >>confdefs.h
5822
5823 fi
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_usleep" >&5
5825 $as_echo "$ac_has_usleep" >&6; }
5826 fi
5827
5828 if test x"$ac_has_nanosleep$ac_has_win32_sleep$ac_has_sleep" = x"nonono"; then
5829
5830 $as_echo "#define _GLIBCXX_NO_SLEEP 1" >>confdefs.h
5831
5832 fi
5833
5834
5835
5836 CXXFLAGS="$ac_save_CXXFLAGS"
5837 LIBS="$ac_save_LIBS"
5838 ac_ext=c
5839 ac_cpp='$CPP $CPPFLAGS'
5840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5843
5844
5845
5846 am__api_version='1.15'
5847
5848 # Find a good install program. We prefer a C program (faster),
5849 # so one script is as good as another. But avoid the broken or
5850 # incompatible versions:
5851 # SysV /etc/install, /usr/sbin/install
5852 # SunOS /usr/etc/install
5853 # IRIX /sbin/install
5854 # AIX /bin/install
5855 # AmigaOS /C/install, which installs bootblocks on floppy discs
5856 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5857 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5858 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5859 # OS/2's system install, which has a completely different semantic
5860 # ./install, which can be erroneously created by make from ./install.sh.
5861 # Reject install programs that cannot install multiple files.
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5863 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5864 if test -z "$INSTALL"; then
5865 if ${ac_cv_path_install+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 # Account for people who put trailing slashes in PATH elements.
5874 case $as_dir/ in #((
5875 ./ | .// | /[cC]/* | \
5876 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5877 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5878 /usr/ucb/* ) ;;
5879 *)
5880 # OSF1 and SCO ODT 3.0 have their own names for install.
5881 # Don't use installbsd from OSF since it installs stuff as root
5882 # by default.
5883 for ac_prog in ginstall scoinst install; do
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5886 if test $ac_prog = install &&
5887 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5888 # AIX install. It has an incompatible calling convention.
5889 :
5890 elif test $ac_prog = install &&
5891 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5892 # program-specific install script used by HP pwplus--don't use.
5893 :
5894 else
5895 rm -rf conftest.one conftest.two conftest.dir
5896 echo one > conftest.one
5897 echo two > conftest.two
5898 mkdir conftest.dir
5899 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5900 test -s conftest.one && test -s conftest.two &&
5901 test -s conftest.dir/conftest.one &&
5902 test -s conftest.dir/conftest.two
5903 then
5904 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5905 break 3
5906 fi
5907 fi
5908 fi
5909 done
5910 done
5911 ;;
5912 esac
5913
5914 done
5915 IFS=$as_save_IFS
5916
5917 rm -rf conftest.one conftest.two conftest.dir
5918
5919 fi
5920 if test "${ac_cv_path_install+set}" = set; then
5921 INSTALL=$ac_cv_path_install
5922 else
5923 # As a last resort, use the slow shell script. Don't cache a
5924 # value for INSTALL within a source directory, because that will
5925 # break other packages using the cache if that directory is
5926 # removed, or if the value is a relative name.
5927 INSTALL=$ac_install_sh
5928 fi
5929 fi
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5931 $as_echo "$INSTALL" >&6; }
5932
5933 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5934 # It thinks the first close brace ends the variable substitution.
5935 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5936
5937 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5938
5939 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5940
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5942 $as_echo_n "checking whether build environment is sane... " >&6; }
5943 # Reject unsafe characters in $srcdir or the absolute working directory
5944 # name. Accept space and tab only in the latter.
5945 am_lf='
5946 '
5947 case `pwd` in
5948 *[\\\"\#\$\&\'\`$am_lf]*)
5949 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5950 esac
5951 case $srcdir in
5952 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5953 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5954 esac
5955
5956 # Do 'set' in a subshell so we don't clobber the current shell's
5957 # arguments. Must try -L first in case configure is actually a
5958 # symlink; some systems play weird games with the mod time of symlinks
5959 # (eg FreeBSD returns the mod time of the symlink's containing
5960 # directory).
5961 if (
5962 am_has_slept=no
5963 for am_try in 1 2; do
5964 echo "timestamp, slept: $am_has_slept" > conftest.file
5965 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5966 if test "$*" = "X"; then
5967 # -L didn't work.
5968 set X `ls -t "$srcdir/configure" conftest.file`
5969 fi
5970 if test "$*" != "X $srcdir/configure conftest.file" \
5971 && test "$*" != "X conftest.file $srcdir/configure"; then
5972
5973 # If neither matched, then we have a broken ls. This can happen
5974 # if, for instance, CONFIG_SHELL is bash and it inherits a
5975 # broken ls alias from the environment. This has actually
5976 # happened. Such a system could not be considered "sane".
5977 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5978 alias in your environment" "$LINENO" 5
5979 fi
5980 if test "$2" = conftest.file || test $am_try -eq 2; then
5981 break
5982 fi
5983 # Just in case.
5984 sleep 1
5985 am_has_slept=yes
5986 done
5987 test "$2" = conftest.file
5988 )
5989 then
5990 # Ok.
5991 :
5992 else
5993 as_fn_error $? "newly created file is older than distributed files!
5994 Check your system clock" "$LINENO" 5
5995 fi
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5997 $as_echo "yes" >&6; }
5998 # If we didn't sleep, we still need to ensure time stamps of config.status and
5999 # generated files are strictly newer.
6000 am_sleep_pid=
6001 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6002 ( sleep 1 ) &
6003 am_sleep_pid=$!
6004 fi
6005
6006 rm -f conftest.file
6007
6008 test "$program_prefix" != NONE &&
6009 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6010 # Use a double $ so make ignores it.
6011 test "$program_suffix" != NONE &&
6012 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6013 # Double any \ or $.
6014 # By default was `s,x,x', remove it if useless.
6015 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6016 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6017
6018 if test x"${MISSING+set}" != xset; then
6019 case $am_aux_dir in
6020 *\ * | *\ *)
6021 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
6022 *)
6023 MISSING="\${SHELL} $am_aux_dir/missing" ;;
6024 esac
6025 fi
6026 # Use eval to expand $SHELL
6027 if eval "$MISSING --is-lightweight"; then
6028 am_missing_run="$MISSING "
6029 else
6030 am_missing_run=
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
6032 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6033 fi
6034
6035 if test x"${install_sh+set}" != xset; then
6036 case $am_aux_dir in
6037 *\ * | *\ *)
6038 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6039 *)
6040 install_sh="\${SHELL} $am_aux_dir/install-sh"
6041 esac
6042 fi
6043
6044 # Installed binaries are usually stripped using 'strip' when the user
6045 # run "make install-strip". However 'strip' might not be the right
6046 # tool to use in cross-compilation environments, therefore Automake
6047 # will honor the 'STRIP' environment variable to overrule this program.
6048 if test "$cross_compiling" != no; then
6049 if test -n "$ac_tool_prefix"; then
6050 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6051 set dummy ${ac_tool_prefix}strip; ac_word=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if ${ac_cv_prog_STRIP+:} false; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 if test -n "$STRIP"; then
6058 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071 done
6072 done
6073 IFS=$as_save_IFS
6074
6075 fi
6076 fi
6077 STRIP=$ac_cv_prog_STRIP
6078 if test -n "$STRIP"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6080 $as_echo "$STRIP" >&6; }
6081 else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6084 fi
6085
6086
6087 fi
6088 if test -z "$ac_cv_prog_STRIP"; then
6089 ac_ct_STRIP=$STRIP
6090 # Extract the first word of "strip", so it can be a program name with args.
6091 set dummy strip; ac_word=$2
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 $as_echo_n "checking for $ac_word... " >&6; }
6094 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if test -n "$ac_ct_STRIP"; then
6098 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107 ac_cv_prog_ac_ct_STRIP="strip"
6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6110 fi
6111 done
6112 done
6113 IFS=$as_save_IFS
6114
6115 fi
6116 fi
6117 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6118 if test -n "$ac_ct_STRIP"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6120 $as_echo "$ac_ct_STRIP" >&6; }
6121 else
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6124 fi
6125
6126 if test "x$ac_ct_STRIP" = x; then
6127 STRIP=":"
6128 else
6129 case $cross_compiling:$ac_tool_warned in
6130 yes:)
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6133 ac_tool_warned=yes ;;
6134 esac
6135 STRIP=$ac_ct_STRIP
6136 fi
6137 else
6138 STRIP="$ac_cv_prog_STRIP"
6139 fi
6140
6141 fi
6142 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6143
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6145 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6146 if test -z "$MKDIR_P"; then
6147 if ${ac_cv_path_mkdir+:} false; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6152 do
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
6155 for ac_prog in mkdir gmkdir; do
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6158 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6159 'mkdir (GNU coreutils) '* | \
6160 'mkdir (coreutils) '* | \
6161 'mkdir (fileutils) '4.1*)
6162 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6163 break 3;;
6164 esac
6165 done
6166 done
6167 done
6168 IFS=$as_save_IFS
6169
6170 fi
6171
6172 test -d ./--version && rmdir ./--version
6173 if test "${ac_cv_path_mkdir+set}" = set; then
6174 MKDIR_P="$ac_cv_path_mkdir -p"
6175 else
6176 # As a last resort, use the slow shell script. Don't cache a
6177 # value for MKDIR_P within a source directory, because that will
6178 # break other packages using the cache if that directory is
6179 # removed, or if the value is a relative name.
6180 MKDIR_P="$ac_install_sh -d"
6181 fi
6182 fi
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6184 $as_echo "$MKDIR_P" >&6; }
6185
6186 for ac_prog in gawk mawk nawk awk
6187 do
6188 # Extract the first word of "$ac_prog", so it can be a program name with args.
6189 set dummy $ac_prog; ac_word=$2
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191 $as_echo_n "checking for $ac_word... " >&6; }
6192 if ${ac_cv_prog_AWK+:} false; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 if test -n "$AWK"; then
6196 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205 ac_cv_prog_AWK="$ac_prog"
6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6208 fi
6209 done
6210 done
6211 IFS=$as_save_IFS
6212
6213 fi
6214 fi
6215 AWK=$ac_cv_prog_AWK
6216 if test -n "$AWK"; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6218 $as_echo "$AWK" >&6; }
6219 else
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221 $as_echo "no" >&6; }
6222 fi
6223
6224
6225 test -n "$AWK" && break
6226 done
6227
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6229 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6230 set x ${MAKE-make}
6231 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6232 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 cat >conftest.make <<\_ACEOF
6236 SHELL = /bin/sh
6237 all:
6238 @echo '@@@%%%=$(MAKE)=@@@%%%'
6239 _ACEOF
6240 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6241 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6242 *@@@%%%=?*=@@@%%%*)
6243 eval ac_cv_prog_make_${ac_make}_set=yes;;
6244 *)
6245 eval ac_cv_prog_make_${ac_make}_set=no;;
6246 esac
6247 rm -f conftest.make
6248 fi
6249 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6251 $as_echo "yes" >&6; }
6252 SET_MAKE=
6253 else
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6256 SET_MAKE="MAKE=${MAKE-make}"
6257 fi
6258
6259 rm -rf .tst 2>/dev/null
6260 mkdir .tst 2>/dev/null
6261 if test -d .tst; then
6262 am__leading_dot=.
6263 else
6264 am__leading_dot=_
6265 fi
6266 rmdir .tst 2>/dev/null
6267
6268 DEPDIR="${am__leading_dot}deps"
6269
6270 ac_config_commands="$ac_config_commands depfiles"
6271
6272
6273 am_make=${MAKE-make}
6274 cat > confinc << 'END'
6275 am__doit:
6276 @echo this is the am__doit target
6277 .PHONY: am__doit
6278 END
6279 # If we don't find an include directive, just comment out the code.
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
6281 $as_echo_n "checking for style of include used by $am_make... " >&6; }
6282 am__include="#"
6283 am__quote=
6284 _am_result=none
6285 # First try GNU make style include.
6286 echo "include confinc" > confmf
6287 # Ignore all kinds of additional output from 'make'.
6288 case `$am_make -s -f confmf 2> /dev/null` in #(
6289 *the\ am__doit\ target*)
6290 am__include=include
6291 am__quote=
6292 _am_result=GNU
6293 ;;
6294 esac
6295 # Now try BSD make style include.
6296 if test "$am__include" = "#"; then
6297 echo '.include "confinc"' > confmf
6298 case `$am_make -s -f confmf 2> /dev/null` in #(
6299 *the\ am__doit\ target*)
6300 am__include=.include
6301 am__quote="\""
6302 _am_result=BSD
6303 ;;
6304 esac
6305 fi
6306
6307
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
6309 $as_echo "$_am_result" >&6; }
6310 rm -f confinc confmf
6311
6312 # Check whether --enable-dependency-tracking was given.
6313 if test "${enable_dependency_tracking+set}" = set; then :
6314 enableval=$enable_dependency_tracking;
6315 fi
6316
6317 if test "x$enable_dependency_tracking" != xno; then
6318 am_depcomp="$ac_aux_dir/depcomp"
6319 AMDEPBACKSLASH='\'
6320 am__nodep='_no'
6321 fi
6322 if test "x$enable_dependency_tracking" != xno; then
6323 AMDEP_TRUE=
6324 AMDEP_FALSE='#'
6325 else
6326 AMDEP_TRUE='#'
6327 AMDEP_FALSE=
6328 fi
6329
6330
6331 # Check whether --enable-silent-rules was given.
6332 if test "${enable_silent_rules+set}" = set; then :
6333 enableval=$enable_silent_rules;
6334 fi
6335
6336 case $enable_silent_rules in # (((
6337 yes) AM_DEFAULT_VERBOSITY=0;;
6338 no) AM_DEFAULT_VERBOSITY=1;;
6339 *) AM_DEFAULT_VERBOSITY=1;;
6340 esac
6341 am_make=${MAKE-make}
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6343 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6344 if ${am_cv_make_support_nested_variables+:} false; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 if $as_echo 'TRUE=$(BAR$(V))
6348 BAR0=false
6349 BAR1=true
6350 V=1
6351 am__doit:
6352 @$(TRUE)
6353 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6354 am_cv_make_support_nested_variables=yes
6355 else
6356 am_cv_make_support_nested_variables=no
6357 fi
6358 fi
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6360 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6361 if test $am_cv_make_support_nested_variables = yes; then
6362 AM_V='$(V)'
6363 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6364 else
6365 AM_V=$AM_DEFAULT_VERBOSITY
6366 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6367 fi
6368 AM_BACKSLASH='\'
6369
6370 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6371 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6372 # is not polluted with repeated "-I."
6373 am__isrc=' -I$(srcdir)'
6374 # test to see if srcdir already configured
6375 if test -f $srcdir/config.status; then
6376 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6377 fi
6378 fi
6379
6380 # test whether we have cygpath
6381 if test -z "$CYGPATH_W"; then
6382 if (cygpath --version) >/dev/null 2>/dev/null; then
6383 CYGPATH_W='cygpath -w'
6384 else
6385 CYGPATH_W=echo
6386 fi
6387 fi
6388
6389
6390 # Define the identity of the package.
6391 PACKAGE='libgm2'
6392 VERSION='version-unused'
6393
6394
6395 # Some tools Automake needs.
6396
6397 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6398
6399
6400 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6401
6402
6403 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6404
6405
6406 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6407
6408
6409 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6410
6411 # For better backward compatibility. To be removed once Automake 1.9.x
6412 # dies out for good. For more background, see:
6413 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6414 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6415 mkdir_p='$(MKDIR_P)'
6416
6417 # We need awk for the "check" target (and possibly the TAP driver). The
6418 # system "awk" is bad on some platforms.
6419 # Always define AMTAR for backward compatibility. Yes, it's still used
6420 # in the wild :-( We should find a proper way to deprecate it ...
6421 AMTAR='$${TAR-tar}'
6422
6423
6424 # We'll loop over all known methods to create a tar archive until one works.
6425 _am_tools='gnutar pax cpio none'
6426
6427 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6428
6429
6430
6431
6432
6433 depcc="$CC" am_compiler_list=
6434
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6436 $as_echo_n "checking dependency style of $depcc... " >&6; }
6437 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6441 # We make a subdir and do the tests there. Otherwise we can end up
6442 # making bogus files that we don't know about and never remove. For
6443 # instance it was reported that on HP-UX the gcc test will end up
6444 # making a dummy file named 'D' -- because '-MD' means "put the output
6445 # in D".
6446 rm -rf conftest.dir
6447 mkdir conftest.dir
6448 # Copy depcomp to subdir because otherwise we won't find it if we're
6449 # using a relative directory.
6450 cp "$am_depcomp" conftest.dir
6451 cd conftest.dir
6452 # We will build objects and dependencies in a subdirectory because
6453 # it helps to detect inapplicable dependency modes. For instance
6454 # both Tru64's cc and ICC support -MD to output dependencies as a
6455 # side effect of compilation, but ICC will put the dependencies in
6456 # the current directory while Tru64 will put them in the object
6457 # directory.
6458 mkdir sub
6459
6460 am_cv_CC_dependencies_compiler_type=none
6461 if test "$am_compiler_list" = ""; then
6462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6463 fi
6464 am__universal=false
6465 case " $depcc " in #(
6466 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6467 esac
6468
6469 for depmode in $am_compiler_list; do
6470 # Setup a source with many dependencies, because some compilers
6471 # like to wrap large dependency lists on column 80 (with \), and
6472 # we should not choose a depcomp mode which is confused by this.
6473 #
6474 # We need to recreate these files for each test, as the compiler may
6475 # overwrite some of them when testing with obscure command lines.
6476 # This happens at least with the AIX C compiler.
6477 : > sub/conftest.c
6478 for i in 1 2 3 4 5 6; do
6479 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6480 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6481 # Solaris 10 /bin/sh.
6482 echo '/* dummy */' > sub/conftst$i.h
6483 done
6484 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6485
6486 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6487 # mode. It turns out that the SunPro C++ compiler does not properly
6488 # handle '-M -o', and we need to detect this. Also, some Intel
6489 # versions had trouble with output in subdirs.
6490 am__obj=sub/conftest.${OBJEXT-o}
6491 am__minus_obj="-o $am__obj"
6492 case $depmode in
6493 gcc)
6494 # This depmode causes a compiler race in universal mode.
6495 test "$am__universal" = false || continue
6496 ;;
6497 nosideeffect)
6498 # After this tag, mechanisms are not by side-effect, so they'll
6499 # only be used when explicitly requested.
6500 if test "x$enable_dependency_tracking" = xyes; then
6501 continue
6502 else
6503 break
6504 fi
6505 ;;
6506 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6507 # This compiler won't grok '-c -o', but also, the minuso test has
6508 # not run yet. These depmodes are late enough in the game, and
6509 # so weak that their functioning should not be impacted.
6510 am__obj=conftest.${OBJEXT-o}
6511 am__minus_obj=
6512 ;;
6513 none) break ;;
6514 esac
6515 if depmode=$depmode \
6516 source=sub/conftest.c object=$am__obj \
6517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6518 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6519 >/dev/null 2>conftest.err &&
6520 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6522 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6524 # icc doesn't choke on unknown options, it will just issue warnings
6525 # or remarks (even with -Werror). So we grep stderr for any message
6526 # that says an option was ignored or not supported.
6527 # When given -MP, icc 7.0 and 7.1 complain thusly:
6528 # icc: Command line warning: ignoring option '-M'; no argument required
6529 # The diagnosis changed in icc 8.0:
6530 # icc: Command line remark: option '-MP' not supported
6531 if (grep 'ignoring option' conftest.err ||
6532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6533 am_cv_CC_dependencies_compiler_type=$depmode
6534 break
6535 fi
6536 fi
6537 done
6538
6539 cd ..
6540 rm -rf conftest.dir
6541 else
6542 am_cv_CC_dependencies_compiler_type=none
6543 fi
6544
6545 fi
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6547 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6548 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6549
6550 if
6551 test "x$enable_dependency_tracking" != xno \
6552 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6553 am__fastdepCC_TRUE=
6554 am__fastdepCC_FALSE='#'
6555 else
6556 am__fastdepCC_TRUE='#'
6557 am__fastdepCC_FALSE=
6558 fi
6559
6560
6561 depcc="$CXX" am_compiler_list=
6562
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6564 $as_echo_n "checking dependency style of $depcc... " >&6; }
6565 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6569 # We make a subdir and do the tests there. Otherwise we can end up
6570 # making bogus files that we don't know about and never remove. For
6571 # instance it was reported that on HP-UX the gcc test will end up
6572 # making a dummy file named 'D' -- because '-MD' means "put the output
6573 # in D".
6574 rm -rf conftest.dir
6575 mkdir conftest.dir
6576 # Copy depcomp to subdir because otherwise we won't find it if we're
6577 # using a relative directory.
6578 cp "$am_depcomp" conftest.dir
6579 cd conftest.dir
6580 # We will build objects and dependencies in a subdirectory because
6581 # it helps to detect inapplicable dependency modes. For instance
6582 # both Tru64's cc and ICC support -MD to output dependencies as a
6583 # side effect of compilation, but ICC will put the dependencies in
6584 # the current directory while Tru64 will put them in the object
6585 # directory.
6586 mkdir sub
6587
6588 am_cv_CXX_dependencies_compiler_type=none
6589 if test "$am_compiler_list" = ""; then
6590 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6591 fi
6592 am__universal=false
6593 case " $depcc " in #(
6594 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6595 esac
6596
6597 for depmode in $am_compiler_list; do
6598 # Setup a source with many dependencies, because some compilers
6599 # like to wrap large dependency lists on column 80 (with \), and
6600 # we should not choose a depcomp mode which is confused by this.
6601 #
6602 # We need to recreate these files for each test, as the compiler may
6603 # overwrite some of them when testing with obscure command lines.
6604 # This happens at least with the AIX C compiler.
6605 : > sub/conftest.c
6606 for i in 1 2 3 4 5 6; do
6607 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6608 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6609 # Solaris 10 /bin/sh.
6610 echo '/* dummy */' > sub/conftst$i.h
6611 done
6612 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6613
6614 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6615 # mode. It turns out that the SunPro C++ compiler does not properly
6616 # handle '-M -o', and we need to detect this. Also, some Intel
6617 # versions had trouble with output in subdirs.
6618 am__obj=sub/conftest.${OBJEXT-o}
6619 am__minus_obj="-o $am__obj"
6620 case $depmode in
6621 gcc)
6622 # This depmode causes a compiler race in universal mode.
6623 test "$am__universal" = false || continue
6624 ;;
6625 nosideeffect)
6626 # After this tag, mechanisms are not by side-effect, so they'll
6627 # only be used when explicitly requested.
6628 if test "x$enable_dependency_tracking" = xyes; then
6629 continue
6630 else
6631 break
6632 fi
6633 ;;
6634 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6635 # This compiler won't grok '-c -o', but also, the minuso test has
6636 # not run yet. These depmodes are late enough in the game, and
6637 # so weak that their functioning should not be impacted.
6638 am__obj=conftest.${OBJEXT-o}
6639 am__minus_obj=
6640 ;;
6641 none) break ;;
6642 esac
6643 if depmode=$depmode \
6644 source=sub/conftest.c object=$am__obj \
6645 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6646 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6647 >/dev/null 2>conftest.err &&
6648 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6649 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6650 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6651 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6652 # icc doesn't choke on unknown options, it will just issue warnings
6653 # or remarks (even with -Werror). So we grep stderr for any message
6654 # that says an option was ignored or not supported.
6655 # When given -MP, icc 7.0 and 7.1 complain thusly:
6656 # icc: Command line warning: ignoring option '-M'; no argument required
6657 # The diagnosis changed in icc 8.0:
6658 # icc: Command line remark: option '-MP' not supported
6659 if (grep 'ignoring option' conftest.err ||
6660 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6661 am_cv_CXX_dependencies_compiler_type=$depmode
6662 break
6663 fi
6664 fi
6665 done
6666
6667 cd ..
6668 rm -rf conftest.dir
6669 else
6670 am_cv_CXX_dependencies_compiler_type=none
6671 fi
6672
6673 fi
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6675 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6676 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6677
6678 if
6679 test "x$enable_dependency_tracking" != xno \
6680 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6681 am__fastdepCXX_TRUE=
6682 am__fastdepCXX_FALSE='#'
6683 else
6684 am__fastdepCXX_TRUE='#'
6685 am__fastdepCXX_FALSE=
6686 fi
6687
6688
6689
6690 # POSIX will say in a future version that running "rm -f" with no argument
6691 # is OK; and we want to be able to make that assumption in our Makefile
6692 # recipes. So use an aggressive probe to check that the usage we want is
6693 # actually supported "in the wild" to an acceptable degree.
6694 # See automake bug#10828.
6695 # To make any issue more visible, cause the running configure to be aborted
6696 # by default if the 'rm' program in use doesn't match our expectations; the
6697 # user can still override this though.
6698 if rm -f && rm -fr && rm -rf; then : OK; else
6699 cat >&2 <<'END'
6700 Oops!
6701
6702 Your 'rm' program seems unable to run without file operands specified
6703 on the command line, even when the '-f' option is present. This is contrary
6704 to the behaviour of most rm programs out there, and not conforming with
6705 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6706
6707 Please tell [email protected] about your system, including the value
6708 of your $PATH and any error possibly output before this message. This
6709 can help us improve future automake versions.
6710
6711 END
6712 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6713 echo 'Configuration will proceed anyway, since you have set the' >&2
6714 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6715 echo >&2
6716 else
6717 cat >&2 <<'END'
6718 Aborting the configuration process, to ensure you take notice of the issue.
6719
6720 You can download and install GNU coreutils to get an 'rm' implementation
6721 that behaves properly: <http://www.gnu.org/software/coreutils/>.
6722
6723 If you want to complete the configuration process using your problematic
6724 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6725 to "yes", and re-run configure.
6726
6727 END
6728 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6729 fi
6730 fi
6731
6732
6733
6734
6735
6736
6737 # Check whether --with-cross-host was given.
6738 if test "${with_cross_host+set}" = set; then :
6739 withval=$with_cross_host;
6740 fi
6741
6742
6743 # Checks for header files.
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6745 $as_echo_n "checking for ANSI C header files... " >&6; }
6746 if ${ac_cv_header_stdc+:} false; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 #include <stdlib.h>
6752 #include <stdarg.h>
6753 #include <string.h>
6754 #include <float.h>
6755
6756 int
6757 main ()
6758 {
6759
6760 ;
6761 return 0;
6762 }
6763 _ACEOF
6764 if ac_fn_c_try_compile "$LINENO"; then :
6765 ac_cv_header_stdc=yes
6766 else
6767 ac_cv_header_stdc=no
6768 fi
6769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770
6771 if test $ac_cv_header_stdc = yes; then
6772 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6775 #include <string.h>
6776
6777 _ACEOF
6778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6779 $EGREP "memchr" >/dev/null 2>&1; then :
6780
6781 else
6782 ac_cv_header_stdc=no
6783 fi
6784 rm -f conftest*
6785
6786 fi
6787
6788 if test $ac_cv_header_stdc = yes; then
6789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h. */
6792 #include <stdlib.h>
6793
6794 _ACEOF
6795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6796 $EGREP "free" >/dev/null 2>&1; then :
6797
6798 else
6799 ac_cv_header_stdc=no
6800 fi
6801 rm -f conftest*
6802
6803 fi
6804
6805 if test $ac_cv_header_stdc = yes; then
6806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6807 if test "$cross_compiling" = yes; then :
6808 :
6809 else
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 #include <ctype.h>
6813 #include <stdlib.h>
6814 #if ((' ' & 0x0FF) == 0x020)
6815 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6816 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6817 #else
6818 # define ISLOWER(c) \
6819 (('a' <= (c) && (c) <= 'i') \
6820 || ('j' <= (c) && (c) <= 'r') \
6821 || ('s' <= (c) && (c) <= 'z'))
6822 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6823 #endif
6824
6825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6826 int
6827 main ()
6828 {
6829 int i;
6830 for (i = 0; i < 256; i++)
6831 if (XOR (islower (i), ISLOWER (i))
6832 || toupper (i) != TOUPPER (i))
6833 return 2;
6834 return 0;
6835 }
6836 _ACEOF
6837 if ac_fn_c_try_run "$LINENO"; then :
6838
6839 else
6840 ac_cv_header_stdc=no
6841 fi
6842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6843 conftest.$ac_objext conftest.beam conftest.$ac_ext
6844 fi
6845
6846 fi
6847 fi
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6849 $as_echo "$ac_cv_header_stdc" >&6; }
6850 if test $ac_cv_header_stdc = yes; then
6851
6852 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6853
6854 fi
6855
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6857 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6858 if ${ac_cv_header_sys_wait_h+:} false; then :
6859 $as_echo_n "(cached) " >&6
6860 else
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863 #include <sys/types.h>
6864 #include <sys/wait.h>
6865 #ifndef WEXITSTATUS
6866 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6867 #endif
6868 #ifndef WIFEXITED
6869 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6870 #endif
6871
6872 int
6873 main ()
6874 {
6875 int s;
6876 wait (&s);
6877 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6878 ;
6879 return 0;
6880 }
6881 _ACEOF
6882 if ac_fn_c_try_compile "$LINENO"; then :
6883 ac_cv_header_sys_wait_h=yes
6884 else
6885 ac_cv_header_sys_wait_h=no
6886 fi
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 fi
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6890 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6891 if test $ac_cv_header_sys_wait_h = yes; then
6892
6893 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6894
6895 fi
6896
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6898 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6899 if ${ac_cv_header_time+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904 #include <sys/types.h>
6905 #include <sys/time.h>
6906 #include <time.h>
6907
6908 int
6909 main ()
6910 {
6911 if ((struct tm *) 0)
6912 return 0;
6913 ;
6914 return 0;
6915 }
6916 _ACEOF
6917 if ac_fn_c_try_compile "$LINENO"; then :
6918 ac_cv_header_time=yes
6919 else
6920 ac_cv_header_time=no
6921 fi
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923 fi
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6925 $as_echo "$ac_cv_header_time" >&6; }
6926 if test $ac_cv_header_time = yes; then
6927
6928 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6929
6930 fi
6931
6932
6933 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
6934 if test "x$ac_cv_header_math_h" = xyes; then :
6935
6936 $as_echo "#define HAVE_MATH_H 1" >>confdefs.h
6937
6938 fi
6939
6940
6941
6942 for ac_header in getopt.h limits.h stddef.h string.h strings.h \
6943 stdlib.h time.h \
6944 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
6945 sys/resource.h sys/param.h sys/times.h sys/stat.h \
6946 sys/socket.h \
6947 sys/wait.h sys/ioctl.h errno.h sys/errno.h \
6948 pwd.h direct.h dirent.h signal.h malloc.h langinfo.h \
6949 pthread.h stdarg.h stdio.h sys/types.h termios.h \
6950 netinet/in.h netdb.h sys/uio.h sys/stat.h wchar.h
6951 do :
6952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6953 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6955 cat >>confdefs.h <<_ACEOF
6956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6957 _ACEOF
6958
6959 fi
6960
6961 done
6962
6963
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6965 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6966 if ${ac_cv_struct_tm+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971 #include <sys/types.h>
6972 #include <time.h>
6973
6974 int
6975 main ()
6976 {
6977 struct tm tm;
6978 int *p = &tm.tm_sec;
6979 return !p;
6980 ;
6981 return 0;
6982 }
6983 _ACEOF
6984 if ac_fn_c_try_compile "$LINENO"; then :
6985 ac_cv_struct_tm=time.h
6986 else
6987 ac_cv_struct_tm=sys/time.h
6988 fi
6989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990 fi
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6992 $as_echo "$ac_cv_struct_tm" >&6; }
6993 if test $ac_cv_struct_tm = sys/time.h; then
6994
6995 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6996
6997 fi
6998
6999 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7000 #include <$ac_cv_struct_tm>
7001
7002 "
7003 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7004
7005 cat >>confdefs.h <<_ACEOF
7006 #define HAVE_STRUCT_TM_TM_ZONE 1
7007 _ACEOF
7008
7009
7010 fi
7011
7012 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7013
7014 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7015
7016 else
7017 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7018 "
7019 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7020 ac_have_decl=1
7021 else
7022 ac_have_decl=0
7023 fi
7024
7025 cat >>confdefs.h <<_ACEOF
7026 #define HAVE_DECL_TZNAME $ac_have_decl
7027 _ACEOF
7028
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7030 $as_echo_n "checking for tzname... " >&6; }
7031 if ${ac_cv_var_tzname+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 if test x$gcc_no_link = xyes; then
7035 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7036 fi
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7039 #include <time.h>
7040 #if !HAVE_DECL_TZNAME
7041 extern char *tzname[];
7042 #endif
7043
7044 int
7045 main ()
7046 {
7047 return tzname[0][0];
7048 ;
7049 return 0;
7050 }
7051 _ACEOF
7052 if ac_fn_c_try_link "$LINENO"; then :
7053 ac_cv_var_tzname=yes
7054 else
7055 ac_cv_var_tzname=no
7056 fi
7057 rm -f core conftest.err conftest.$ac_objext \
7058 conftest$ac_exeext conftest.$ac_ext
7059 fi
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7061 $as_echo "$ac_cv_var_tzname" >&6; }
7062 if test $ac_cv_var_tzname = yes; then
7063
7064 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7065
7066 fi
7067 fi
7068
7069
7070 ac_fn_c_check_member "$LINENO" "struct tm" "tm_year" "ac_cv_member_struct_tm_tm_year" "#include <time.h>
7071 "
7072 if test "x$ac_cv_member_struct_tm_tm_year" = xyes; then :
7073
7074 $as_echo "#define WE_HAVE_STRUCT_TM 1" >>confdefs.h
7075
7076 fi
7077
7078 ac_fn_c_check_member "$LINENO" "struct tm" "tm_year" "ac_cv_member_struct_tm_tm_year" "#include <time.h>
7079 "
7080 if test "x$ac_cv_member_struct_tm_tm_year" = xyes; then :
7081
7082 $as_echo "#define WE_HAVE_STRUCT_TM_YEAR 1" >>confdefs.h
7083
7084 fi
7085
7086 ac_fn_c_check_member "$LINENO" "struct tm" "tm_mon" "ac_cv_member_struct_tm_tm_mon" "#include <time.h>
7087 "
7088 if test "x$ac_cv_member_struct_tm_tm_mon" = xyes; then :
7089
7090 $as_echo "#define WE_HAVE_STRUCT_TM_MON 1" >>confdefs.h
7091
7092 fi
7093
7094 ac_fn_c_check_member "$LINENO" "struct tm" "tm_mday" "ac_cv_member_struct_tm_tm_mday" "#include <time.h>
7095 "
7096 if test "x$ac_cv_member_struct_tm_tm_mday" = xyes; then :
7097
7098 $as_echo "#define WE_HAVE_STRUCT_TM_MDAY 1" >>confdefs.h
7099
7100 fi
7101
7102 ac_fn_c_check_member "$LINENO" "struct tm" "tm_hour" "ac_cv_member_struct_tm_tm_hour" "#include <time.h>
7103 "
7104 if test "x$ac_cv_member_struct_tm_tm_hour" = xyes; then :
7105
7106 $as_echo "#define WE_HAVE_STRUCT_TM_HOUR 1" >>confdefs.h
7107
7108 fi
7109
7110 ac_fn_c_check_member "$LINENO" "struct tm" "tm_min" "ac_cv_member_struct_tm_tm_min" "#include <time.h>
7111 "
7112 if test "x$ac_cv_member_struct_tm_tm_min" = xyes; then :
7113
7114 $as_echo "#define WE_HAVE_STRUCT_TM_MIN 1" >>confdefs.h
7115
7116 fi
7117
7118 ac_fn_c_check_member "$LINENO" "struct tm" "tm_sec" "ac_cv_member_struct_tm_tm_sec" "#include <time.h>
7119 "
7120 if test "x$ac_cv_member_struct_tm_tm_sec" = xyes; then :
7121
7122 $as_echo "#define WE_HAVE_STRUCT_TM_SEC 1" >>confdefs.h
7123
7124 fi
7125
7126 ac_fn_c_check_member "$LINENO" "struct tm" "tm_year" "ac_cv_member_struct_tm_tm_year" "#include <time.h>
7127 "
7128 if test "x$ac_cv_member_struct_tm_tm_year" = xyes; then :
7129
7130 $as_echo "#define WE_HAVE_STRUCT_TM_YEAR 1" >>confdefs.h
7131
7132 fi
7133
7134 ac_fn_c_check_member "$LINENO" "struct tm" "tm_yday" "ac_cv_member_struct_tm_tm_yday" "#include <time.h>
7135 "
7136 if test "x$ac_cv_member_struct_tm_tm_yday" = xyes; then :
7137
7138 $as_echo "#define WE_HAVE_STRUCT_TM_YDAY 1" >>confdefs.h
7139
7140 fi
7141
7142 ac_fn_c_check_member "$LINENO" "struct tm" "tm_wday" "ac_cv_member_struct_tm_tm_wday" "#include <time.h>
7143 "
7144 if test "x$ac_cv_member_struct_tm_tm_wday" = xyes; then :
7145
7146 $as_echo "#define WE_HAVE_STRUCT_TM_WDAY 1" >>confdefs.h
7147
7148 fi
7149
7150 ac_fn_c_check_member "$LINENO" "struct tm" "tm_isdst" "ac_cv_member_struct_tm_tm_isdst" "#include <time.h>
7151 "
7152 if test "x$ac_cv_member_struct_tm_tm_isdst" = xyes; then :
7153
7154 $as_echo "#define WE_HAVE_STRUCT_TM_ISDST 1" >>confdefs.h
7155
7156 fi
7157
7158
7159 ac_fn_c_check_member "$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "$ac_includes_default"
7160 if test "x$ac_cv_member_struct_timeval_tv_sec" = xyes; then :
7161
7162 $as_echo "#define WE_HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
7163
7164 fi
7165
7166 ac_fn_c_check_member "$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "$ac_includes_default"
7167 if test "x$ac_cv_member_struct_timeval_tv_sec" = xyes; then :
7168
7169 $as_echo "#define WE_HAVE_STRUCT_TIMEVAL_TV_SEC 1" >>confdefs.h
7170
7171 fi
7172
7173 ac_fn_c_check_member "$LINENO" "struct timeval" "tv_usec" "ac_cv_member_struct_timeval_tv_usec" "$ac_includes_default"
7174 if test "x$ac_cv_member_struct_timeval_tv_usec" = xyes; then :
7175
7176 $as_echo "#define WE_HAVE_STRUCT_TIMEVAL_TV_USEC 1" >>confdefs.h
7177
7178 fi
7179
7180
7181
7182 case ${build_alias} in
7183 "") build_noncanonical=${build} ;;
7184 *) build_noncanonical=${build_alias} ;;
7185 esac
7186
7187 case ${host_alias} in
7188 "") host_noncanonical=${build_noncanonical} ;;
7189 *) host_noncanonical=${host_alias} ;;
7190 esac
7191
7192
7193
7194 case ${target_alias} in
7195 "") target_noncanonical=${host_noncanonical} ;;
7196 *) target_noncanonical=${target_alias} ;;
7197 esac
7198
7199
7200
7201
7202 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
7203 # have matching libraries, they should use host libraries: Makefile.tpl
7204 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
7205 # However, they still use the build modules, because the corresponding
7206 # host modules (e.g. bison) are only built for the host when bootstrap
7207 # finishes. So:
7208 # - build_subdir is where we find build modules, and never changes.
7209 # - build_libsubdir is where we find build libraries, and can be overridden.
7210
7211 # Prefix 'build-' so this never conflicts with target_subdir.
7212 build_subdir="build-${build_noncanonical}"
7213
7214 # Check whether --with-build-libsubdir was given.
7215 if test "${with_build_libsubdir+set}" = set; then :
7216 withval=$with_build_libsubdir; build_libsubdir="$withval"
7217 else
7218 build_libsubdir="$build_subdir"
7219 fi
7220
7221 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
7222 if ( test $srcdir = . && test -d gcc ) \
7223 || test -d $srcdir/../host-${host_noncanonical}; then
7224 host_subdir="host-${host_noncanonical}"
7225 else
7226 host_subdir=.
7227 fi
7228 # No prefix.
7229 target_subdir=${target_noncanonical}
7230
7231
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
7233 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
7234 # Check whether --enable-version-specific-runtime-libs was given.
7235 if test "${enable_version_specific_runtime_libs+set}" = set; then :
7236 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
7237 yes) version_specific_libs=yes ;;
7238 no) version_specific_libs=no ;;
7239 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
7240 esac
7241 else
7242 version_specific_libs=no
7243 fi
7244
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
7246 $as_echo "$version_specific_libs" >&6; }
7247
7248
7249 # Check whether --with-slibdir was given.
7250 if test "${with_slibdir+set}" = set; then :
7251 withval=$with_slibdir; slibdir="$with_slibdir"
7252 else
7253 if test "${version_specific_libs}" = yes; then
7254 slibdir='$(libsubdir)'
7255 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
7256 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
7257 else
7258 slibdir='$(libdir)'
7259 fi
7260 fi
7261
7262
7263
7264 # Command-line options.
7265 # Very limited version of AC_MAINTAINER_MODE.
7266 # Check whether --enable-maintainer-mode was given.
7267 if test "${enable_maintainer_mode+set}" = set; then :
7268 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
7269 yes) MAINT='' ;;
7270 no) MAINT='#' ;;
7271 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
7272 esac
7273 maintainer_mode=${enableval}
7274 else
7275 MAINT='#'
7276 fi
7277
7278
7279 toolexecdir=no
7280 toolexeclibdir=no
7281
7282 # Calculate toolexeclibdir
7283 # Also toolexecdir, though it's only used in toolexeclibdir
7284 case ${version_specific_libs} in
7285 yes)
7286 # Need the gcc compiler version to know where to install libraries
7287 # and header files if --enable-version-specific-runtime-libs option
7288 # is selected.
7289 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
7290 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
7291 ;;
7292 no)
7293 if test -n "$with_cross_host" &&
7294 test x"$with_cross_host" != x"no"; then
7295 # Install a library built with a cross compiler in tooldir, not libdir.
7296 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
7297 toolexeclibdir='$(toolexecdir)/lib'
7298 else
7299 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
7300 toolexeclibdir='$(libdir)'
7301 fi
7302 multi_os_directory=`$CC -print-multi-os-directory`
7303 case $multi_os_directory in
7304 .) ;; # Avoid trailing /.
7305 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
7306 esac
7307 ;;
7308 esac
7309
7310
7311
7312
7313
7314
7315
7316
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
7318 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
7319 # Check whether --enable-maintainer-mode was given.
7320 if test "${enable_maintainer_mode+set}" = set; then :
7321 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
7322 else
7323 USE_MAINTAINER_MODE=no
7324 fi
7325
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
7327 $as_echo "$USE_MAINTAINER_MODE" >&6; }
7328 if test $USE_MAINTAINER_MODE = yes; then
7329 MAINTAINER_MODE_TRUE=
7330 MAINTAINER_MODE_FALSE='#'
7331 else
7332 MAINTAINER_MODE_TRUE='#'
7333 MAINTAINER_MODE_FALSE=
7334 fi
7335
7336 MAINT=$MAINTAINER_MODE_TRUE
7337
7338
7339
7340 # Check the compiler.
7341 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
7342 # We must force CC to /not/ be precious variables; otherwise
7343 # the wrong, non-multilib-adjusted value will be used in multilibs.
7344 # As a side effect, we have to subst CFLAGS ourselves.
7345
7346
7347
7348 ac_ext=c
7349 ac_cpp='$CPP $CPPFLAGS'
7350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7353 if test -n "$ac_tool_prefix"; then
7354 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7355 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if ${ac_cv_prog_CC+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 if test -n "$CC"; then
7362 ac_cv_prog_CC="$CC" # Let the user override the test.
7363 else
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7371 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7374 fi
7375 done
7376 done
7377 IFS=$as_save_IFS
7378
7379 fi
7380 fi
7381 CC=$ac_cv_prog_CC
7382 if test -n "$CC"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7384 $as_echo "$CC" >&6; }
7385 else
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7388 fi
7389
7390
7391 fi
7392 if test -z "$ac_cv_prog_CC"; then
7393 ac_ct_CC=$CC
7394 # Extract the first word of "gcc", so it can be a program name with args.
7395 set dummy gcc; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 if test -n "$ac_ct_CC"; then
7402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411 ac_cv_prog_ac_ct_CC="gcc"
7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7414 fi
7415 done
7416 done
7417 IFS=$as_save_IFS
7418
7419 fi
7420 fi
7421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7422 if test -n "$ac_ct_CC"; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7424 $as_echo "$ac_ct_CC" >&6; }
7425 else
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429
7430 if test "x$ac_ct_CC" = x; then
7431 CC=""
7432 else
7433 case $cross_compiling:$ac_tool_warned in
7434 yes:)
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7437 ac_tool_warned=yes ;;
7438 esac
7439 CC=$ac_ct_CC
7440 fi
7441 else
7442 CC="$ac_cv_prog_CC"
7443 fi
7444
7445 if test -z "$CC"; then
7446 if test -n "$ac_tool_prefix"; then
7447 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7448 set dummy ${ac_tool_prefix}cc; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if ${ac_cv_prog_CC+:} false; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 if test -n "$CC"; then
7455 ac_cv_prog_CC="$CC" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464 ac_cv_prog_CC="${ac_tool_prefix}cc"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 CC=$ac_cv_prog_CC
7475 if test -n "$CC"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7477 $as_echo "$CC" >&6; }
7478 else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7481 fi
7482
7483
7484 fi
7485 fi
7486 if test -z "$CC"; then
7487 # Extract the first word of "cc", so it can be a program name with args.
7488 set dummy cc; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if ${ac_cv_prog_CC+:} false; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 if test -n "$CC"; then
7495 ac_cv_prog_CC="$CC" # Let the user override the test.
7496 else
7497 ac_prog_rejected=no
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7500 do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7505 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7506 ac_prog_rejected=yes
7507 continue
7508 fi
7509 ac_cv_prog_CC="cc"
7510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 break 2
7512 fi
7513 done
7514 done
7515 IFS=$as_save_IFS
7516
7517 if test $ac_prog_rejected = yes; then
7518 # We found a bogon in the path, so make sure we never use it.
7519 set dummy $ac_cv_prog_CC
7520 shift
7521 if test $# != 0; then
7522 # We chose a different compiler from the bogus one.
7523 # However, it has the same basename, so the bogon will be chosen
7524 # first if we set CC to just the basename; use the full file name.
7525 shift
7526 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7527 fi
7528 fi
7529 fi
7530 fi
7531 CC=$ac_cv_prog_CC
7532 if test -n "$CC"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7534 $as_echo "$CC" >&6; }
7535 else
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7538 fi
7539
7540
7541 fi
7542 if test -z "$CC"; then
7543 if test -n "$ac_tool_prefix"; then
7544 for ac_prog in cl.exe
7545 do
7546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 $as_echo_n "checking for $ac_word... " >&6; }
7550 if ${ac_cv_prog_CC+:} false; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 if test -n "$CC"; then
7554 ac_cv_prog_CC="$CC" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7563 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571 fi
7572 fi
7573 CC=$ac_cv_prog_CC
7574 if test -n "$CC"; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7576 $as_echo "$CC" >&6; }
7577 else
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581
7582
7583 test -n "$CC" && break
7584 done
7585 fi
7586 if test -z "$CC"; then
7587 ac_ct_CC=$CC
7588 for ac_prog in cl.exe
7589 do
7590 # Extract the first word of "$ac_prog", so it can be a program name with args.
7591 set dummy $ac_prog; ac_word=$2
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593 $as_echo_n "checking for $ac_word... " >&6; }
7594 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7595 $as_echo_n "(cached) " >&6
7596 else
7597 if test -n "$ac_ct_CC"; then
7598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7599 else
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7602 do
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7607 ac_cv_prog_ac_ct_CC="$ac_prog"
7608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7610 fi
7611 done
7612 done
7613 IFS=$as_save_IFS
7614
7615 fi
7616 fi
7617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7618 if test -n "$ac_ct_CC"; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7620 $as_echo "$ac_ct_CC" >&6; }
7621 else
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 $as_echo "no" >&6; }
7624 fi
7625
7626
7627 test -n "$ac_ct_CC" && break
7628 done
7629
7630 if test "x$ac_ct_CC" = x; then
7631 CC=""
7632 else
7633 case $cross_compiling:$ac_tool_warned in
7634 yes:)
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7637 ac_tool_warned=yes ;;
7638 esac
7639 CC=$ac_ct_CC
7640 fi
7641 fi
7642
7643 fi
7644
7645
7646 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7648 as_fn_error $? "no acceptable C compiler found in \$PATH
7649 See \`config.log' for more details" "$LINENO" 5; }
7650
7651 # Provide some information about the compiler.
7652 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7653 set X $ac_compile
7654 ac_compiler=$2
7655 for ac_option in --version -v -V -qversion; do
7656 { { ac_try="$ac_compiler $ac_option >&5"
7657 case "(($ac_try" in
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7660 esac
7661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7662 $as_echo "$ac_try_echo"; } >&5
7663 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7664 ac_status=$?
7665 if test -s conftest.err; then
7666 sed '10a\
7667 ... rest of stderr output deleted ...
7668 10q' conftest.err >conftest.er1
7669 cat conftest.er1 >&5
7670 fi
7671 rm -f conftest.er1 conftest.err
7672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7673 test $ac_status = 0; }
7674 done
7675
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7677 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7678 if ${ac_cv_c_compiler_gnu+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683
7684 int
7685 main ()
7686 {
7687 #ifndef __GNUC__
7688 choke me
7689 #endif
7690
7691 ;
7692 return 0;
7693 }
7694 _ACEOF
7695 if ac_fn_c_try_compile "$LINENO"; then :
7696 ac_compiler_gnu=yes
7697 else
7698 ac_compiler_gnu=no
7699 fi
7700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7702
7703 fi
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7705 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7706 if test $ac_compiler_gnu = yes; then
7707 GCC=yes
7708 else
7709 GCC=
7710 fi
7711 ac_test_CFLAGS=${CFLAGS+set}
7712 ac_save_CFLAGS=$CFLAGS
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7714 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7715 if ${ac_cv_prog_cc_g+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 ac_save_c_werror_flag=$ac_c_werror_flag
7719 ac_c_werror_flag=yes
7720 ac_cv_prog_cc_g=no
7721 CFLAGS="-g"
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724
7725 int
7726 main ()
7727 {
7728
7729 ;
7730 return 0;
7731 }
7732 _ACEOF
7733 if ac_fn_c_try_compile "$LINENO"; then :
7734 ac_cv_prog_cc_g=yes
7735 else
7736 CFLAGS=""
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739
7740 int
7741 main ()
7742 {
7743
7744 ;
7745 return 0;
7746 }
7747 _ACEOF
7748 if ac_fn_c_try_compile "$LINENO"; then :
7749
7750 else
7751 ac_c_werror_flag=$ac_save_c_werror_flag
7752 CFLAGS="-g"
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7755
7756 int
7757 main ()
7758 {
7759
7760 ;
7761 return 0;
7762 }
7763 _ACEOF
7764 if ac_fn_c_try_compile "$LINENO"; then :
7765 ac_cv_prog_cc_g=yes
7766 fi
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768 fi
7769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 fi
7771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772 ac_c_werror_flag=$ac_save_c_werror_flag
7773 fi
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7775 $as_echo "$ac_cv_prog_cc_g" >&6; }
7776 if test "$ac_test_CFLAGS" = set; then
7777 CFLAGS=$ac_save_CFLAGS
7778 elif test $ac_cv_prog_cc_g = yes; then
7779 if test "$GCC" = yes; then
7780 CFLAGS="-g -O2"
7781 else
7782 CFLAGS="-g"
7783 fi
7784 else
7785 if test "$GCC" = yes; then
7786 CFLAGS="-O2"
7787 else
7788 CFLAGS=
7789 fi
7790 fi
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7792 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7793 if ${ac_cv_prog_cc_c89+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 ac_cv_prog_cc_c89=no
7797 ac_save_CC=$CC
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7800 #include <stdarg.h>
7801 #include <stdio.h>
7802 struct stat;
7803 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7804 struct buf { int x; };
7805 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7806 static char *e (p, i)
7807 char **p;
7808 int i;
7809 {
7810 return p[i];
7811 }
7812 static char *f (char * (*g) (char **, int), char **p, ...)
7813 {
7814 char *s;
7815 va_list v;
7816 va_start (v,p);
7817 s = g (p, va_arg (v,int));
7818 va_end (v);
7819 return s;
7820 }
7821
7822 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7823 function prototypes and stuff, but not '\xHH' hex character constants.
7824 These don't provoke an error unfortunately, instead are silently treated
7825 as 'x'. The following induces an error, until -std is added to get
7826 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7827 array size at least. It's necessary to write '\x00'==0 to get something
7828 that's true only with -std. */
7829 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7830
7831 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7832 inside strings and character constants. */
7833 #define FOO(x) 'x'
7834 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7835
7836 int test (int i, double x);
7837 struct s1 {int (*f) (int a);};
7838 struct s2 {int (*f) (double a);};
7839 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7840 int argc;
7841 char **argv;
7842 int
7843 main ()
7844 {
7845 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7846 ;
7847 return 0;
7848 }
7849 _ACEOF
7850 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7851 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7852 do
7853 CC="$ac_save_CC $ac_arg"
7854 if ac_fn_c_try_compile "$LINENO"; then :
7855 ac_cv_prog_cc_c89=$ac_arg
7856 fi
7857 rm -f core conftest.err conftest.$ac_objext
7858 test "x$ac_cv_prog_cc_c89" != "xno" && break
7859 done
7860 rm -f conftest.$ac_ext
7861 CC=$ac_save_CC
7862
7863 fi
7864 # AC_CACHE_VAL
7865 case "x$ac_cv_prog_cc_c89" in
7866 x)
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7868 $as_echo "none needed" >&6; } ;;
7869 xno)
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7871 $as_echo "unsupported" >&6; } ;;
7872 *)
7873 CC="$CC $ac_cv_prog_cc_c89"
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7875 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7876 esac
7877 if test "x$ac_cv_prog_cc_c89" != xno; then :
7878
7879 fi
7880
7881 ac_ext=c
7882 ac_cpp='$CPP $CPPFLAGS'
7883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7886
7887 ac_ext=c
7888 ac_cpp='$CPP $CPPFLAGS'
7889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7893 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7894 if ${am_cv_prog_cc_c_o+:} false; then :
7895 $as_echo_n "(cached) " >&6
7896 else
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7899
7900 int
7901 main ()
7902 {
7903
7904 ;
7905 return 0;
7906 }
7907 _ACEOF
7908 # Make sure it works both with $CC and with simple cc.
7909 # Following AC_PROG_CC_C_O, we do the test twice because some
7910 # compilers refuse to overwrite an existing .o file with -o,
7911 # though they will create one.
7912 am_cv_prog_cc_c_o=yes
7913 for am_i in 1 2; do
7914 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7915 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } \
7919 && test -f conftest2.$ac_objext; then
7920 : OK
7921 else
7922 am_cv_prog_cc_c_o=no
7923 break
7924 fi
7925 done
7926 rm -f core conftest*
7927 unset am_i
7928 fi
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7930 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7931 if test "$am_cv_prog_cc_c_o" != yes; then
7932 # Losing compiler, so override with the script.
7933 # FIXME: It is wrong to rewrite CC.
7934 # But if we don't then we get into trouble of one sort or another.
7935 # A longer-term fix would be to have automake use am__CC in this case,
7936 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7937 CC="$am_aux_dir/compile $CC"
7938 fi
7939 ac_ext=c
7940 ac_cpp='$CPP $CPPFLAGS'
7941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7944
7945
7946 ac_ext=cpp
7947 ac_cpp='$CXXCPP $CPPFLAGS'
7948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7951 if test -z "$CXX"; then
7952 if test -n "$CCC"; then
7953 CXX=$CCC
7954 else
7955 if test -n "$ac_tool_prefix"; then
7956 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7957 do
7958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if ${ac_cv_prog_CXX+:} false; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 if test -n "$CXX"; then
7966 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7970 do
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7978 fi
7979 done
7980 done
7981 IFS=$as_save_IFS
7982
7983 fi
7984 fi
7985 CXX=$ac_cv_prog_CXX
7986 if test -n "$CXX"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7988 $as_echo "$CXX" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7992 fi
7993
7994
7995 test -n "$CXX" && break
7996 done
7997 fi
7998 if test -z "$CXX"; then
7999 ac_ct_CXX=$CXX
8000 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8001 do
8002 # Extract the first word of "$ac_prog", so it can be a program name with args.
8003 set dummy $ac_prog; ac_word=$2
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8005 $as_echo_n "checking for $ac_word... " >&6; }
8006 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 if test -n "$ac_ct_CXX"; then
8010 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8011 else
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8014 do
8015 IFS=$as_save_IFS
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8019 ac_cv_prog_ac_ct_CXX="$ac_prog"
8020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 break 2
8022 fi
8023 done
8024 done
8025 IFS=$as_save_IFS
8026
8027 fi
8028 fi
8029 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8030 if test -n "$ac_ct_CXX"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8032 $as_echo "$ac_ct_CXX" >&6; }
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8036 fi
8037
8038
8039 test -n "$ac_ct_CXX" && break
8040 done
8041
8042 if test "x$ac_ct_CXX" = x; then
8043 CXX="g++"
8044 else
8045 case $cross_compiling:$ac_tool_warned in
8046 yes:)
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8049 ac_tool_warned=yes ;;
8050 esac
8051 CXX=$ac_ct_CXX
8052 fi
8053 fi
8054
8055 fi
8056 fi
8057 # Provide some information about the compiler.
8058 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8059 set X $ac_compile
8060 ac_compiler=$2
8061 for ac_option in --version -v -V -qversion; do
8062 { { ac_try="$ac_compiler $ac_option >&5"
8063 case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066 esac
8067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8068 $as_echo "$ac_try_echo"; } >&5
8069 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8070 ac_status=$?
8071 if test -s conftest.err; then
8072 sed '10a\
8073 ... rest of stderr output deleted ...
8074 10q' conftest.err >conftest.er1
8075 cat conftest.er1 >&5
8076 fi
8077 rm -f conftest.er1 conftest.err
8078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8079 test $ac_status = 0; }
8080 done
8081
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8083 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8084 if ${ac_cv_cxx_compiler_gnu+:} false; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8089
8090 int
8091 main ()
8092 {
8093 #ifndef __GNUC__
8094 choke me
8095 #endif
8096
8097 ;
8098 return 0;
8099 }
8100 _ACEOF
8101 if ac_fn_cxx_try_compile "$LINENO"; then :
8102 ac_compiler_gnu=yes
8103 else
8104 ac_compiler_gnu=no
8105 fi
8106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8107 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8108
8109 fi
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8111 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8112 if test $ac_compiler_gnu = yes; then
8113 GXX=yes
8114 else
8115 GXX=
8116 fi
8117 ac_test_CXXFLAGS=${CXXFLAGS+set}
8118 ac_save_CXXFLAGS=$CXXFLAGS
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8120 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8121 if ${ac_cv_prog_cxx_g+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8125 ac_cxx_werror_flag=yes
8126 ac_cv_prog_cxx_g=no
8127 CXXFLAGS="-g"
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8130
8131 int
8132 main ()
8133 {
8134
8135 ;
8136 return 0;
8137 }
8138 _ACEOF
8139 if ac_fn_cxx_try_compile "$LINENO"; then :
8140 ac_cv_prog_cxx_g=yes
8141 else
8142 CXXFLAGS=""
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8145
8146 int
8147 main ()
8148 {
8149
8150 ;
8151 return 0;
8152 }
8153 _ACEOF
8154 if ac_fn_cxx_try_compile "$LINENO"; then :
8155
8156 else
8157 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8158 CXXFLAGS="-g"
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161
8162 int
8163 main ()
8164 {
8165
8166 ;
8167 return 0;
8168 }
8169 _ACEOF
8170 if ac_fn_cxx_try_compile "$LINENO"; then :
8171 ac_cv_prog_cxx_g=yes
8172 fi
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 fi
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176 fi
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8179 fi
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8181 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8182 if test "$ac_test_CXXFLAGS" = set; then
8183 CXXFLAGS=$ac_save_CXXFLAGS
8184 elif test $ac_cv_prog_cxx_g = yes; then
8185 if test "$GXX" = yes; then
8186 CXXFLAGS="-g -O2"
8187 else
8188 CXXFLAGS="-g"
8189 fi
8190 else
8191 if test "$GXX" = yes; then
8192 CXXFLAGS="-O2"
8193 else
8194 CXXFLAGS=
8195 fi
8196 fi
8197 ac_ext=c
8198 ac_cpp='$CPP $CPPFLAGS'
8199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8202
8203 # By default we simply use the C compiler to build assembly code.
8204
8205 test "${CCAS+set}" = set || CCAS=$CC
8206 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
8207
8208
8209
8210 depcc="$CCAS" am_compiler_list=
8211
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8213 $as_echo_n "checking dependency style of $depcc... " >&6; }
8214 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8218 # We make a subdir and do the tests there. Otherwise we can end up
8219 # making bogus files that we don't know about and never remove. For
8220 # instance it was reported that on HP-UX the gcc test will end up
8221 # making a dummy file named 'D' -- because '-MD' means "put the output
8222 # in D".
8223 rm -rf conftest.dir
8224 mkdir conftest.dir
8225 # Copy depcomp to subdir because otherwise we won't find it if we're
8226 # using a relative directory.
8227 cp "$am_depcomp" conftest.dir
8228 cd conftest.dir
8229 # We will build objects and dependencies in a subdirectory because
8230 # it helps to detect inapplicable dependency modes. For instance
8231 # both Tru64's cc and ICC support -MD to output dependencies as a
8232 # side effect of compilation, but ICC will put the dependencies in
8233 # the current directory while Tru64 will put them in the object
8234 # directory.
8235 mkdir sub
8236
8237 am_cv_CCAS_dependencies_compiler_type=none
8238 if test "$am_compiler_list" = ""; then
8239 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8240 fi
8241 am__universal=false
8242
8243
8244 for depmode in $am_compiler_list; do
8245 # Setup a source with many dependencies, because some compilers
8246 # like to wrap large dependency lists on column 80 (with \), and
8247 # we should not choose a depcomp mode which is confused by this.
8248 #
8249 # We need to recreate these files for each test, as the compiler may
8250 # overwrite some of them when testing with obscure command lines.
8251 # This happens at least with the AIX C compiler.
8252 : > sub/conftest.c
8253 for i in 1 2 3 4 5 6; do
8254 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8255 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8256 # Solaris 10 /bin/sh.
8257 echo '/* dummy */' > sub/conftst$i.h
8258 done
8259 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8260
8261 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8262 # mode. It turns out that the SunPro C++ compiler does not properly
8263 # handle '-M -o', and we need to detect this. Also, some Intel
8264 # versions had trouble with output in subdirs.
8265 am__obj=sub/conftest.${OBJEXT-o}
8266 am__minus_obj="-o $am__obj"
8267 case $depmode in
8268 gcc)
8269 # This depmode causes a compiler race in universal mode.
8270 test "$am__universal" = false || continue
8271 ;;
8272 nosideeffect)
8273 # After this tag, mechanisms are not by side-effect, so they'll
8274 # only be used when explicitly requested.
8275 if test "x$enable_dependency_tracking" = xyes; then
8276 continue
8277 else
8278 break
8279 fi
8280 ;;
8281 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8282 # This compiler won't grok '-c -o', but also, the minuso test has
8283 # not run yet. These depmodes are late enough in the game, and
8284 # so weak that their functioning should not be impacted.
8285 am__obj=conftest.${OBJEXT-o}
8286 am__minus_obj=
8287 ;;
8288 none) break ;;
8289 esac
8290 if depmode=$depmode \
8291 source=sub/conftest.c object=$am__obj \
8292 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8293 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8294 >/dev/null 2>conftest.err &&
8295 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8296 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8297 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8298 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8299 # icc doesn't choke on unknown options, it will just issue warnings
8300 # or remarks (even with -Werror). So we grep stderr for any message
8301 # that says an option was ignored or not supported.
8302 # When given -MP, icc 7.0 and 7.1 complain thusly:
8303 # icc: Command line warning: ignoring option '-M'; no argument required
8304 # The diagnosis changed in icc 8.0:
8305 # icc: Command line remark: option '-MP' not supported
8306 if (grep 'ignoring option' conftest.err ||
8307 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8308 am_cv_CCAS_dependencies_compiler_type=$depmode
8309 break
8310 fi
8311 fi
8312 done
8313
8314 cd ..
8315 rm -rf conftest.dir
8316 else
8317 am_cv_CCAS_dependencies_compiler_type=none
8318 fi
8319
8320 fi
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
8322 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
8323 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
8324
8325 if
8326 test "x$enable_dependency_tracking" != xno \
8327 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
8328 am__fastdepCCAS_TRUE=
8329 am__fastdepCCAS_FALSE='#'
8330 else
8331 am__fastdepCCAS_TRUE='#'
8332 am__fastdepCCAS_FALSE=
8333 fi
8334
8335
8336
8337
8338
8339
8340 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
8341 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
8342 # in both places for now and restore CFLAGS at the end of config.
8343 save_CFLAGS="$CFLAGS"
8344
8345 # Find other programs we need.
8346 if test -n "$ac_tool_prefix"; then
8347 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8348 set dummy ${ac_tool_prefix}ar; ac_word=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if ${ac_cv_prog_AR+:} false; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 if test -n "$AR"; then
8355 ac_cv_prog_AR="$AR" # Let the user override the test.
8356 else
8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 for as_dir in $PATH
8359 do
8360 IFS=$as_save_IFS
8361 test -z "$as_dir" && as_dir=.
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8364 ac_cv_prog_AR="${ac_tool_prefix}ar"
8365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 break 2
8367 fi
8368 done
8369 done
8370 IFS=$as_save_IFS
8371
8372 fi
8373 fi
8374 AR=$ac_cv_prog_AR
8375 if test -n "$AR"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8377 $as_echo "$AR" >&6; }
8378 else
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8381 fi
8382
8383
8384 fi
8385 if test -z "$ac_cv_prog_AR"; then
8386 ac_ct_AR=$AR
8387 # Extract the first word of "ar", so it can be a program name with args.
8388 set dummy ar; ac_word=$2
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390 $as_echo_n "checking for $ac_word... " >&6; }
8391 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8392 $as_echo_n "(cached) " >&6
8393 else
8394 if test -n "$ac_ct_AR"; then
8395 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8396 else
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 for as_dir in $PATH
8399 do
8400 IFS=$as_save_IFS
8401 test -z "$as_dir" && as_dir=.
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8404 ac_cv_prog_ac_ct_AR="ar"
8405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 break 2
8407 fi
8408 done
8409 done
8410 IFS=$as_save_IFS
8411
8412 fi
8413 fi
8414 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8415 if test -n "$ac_ct_AR"; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8417 $as_echo "$ac_ct_AR" >&6; }
8418 else
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8421 fi
8422
8423 if test "x$ac_ct_AR" = x; then
8424 AR=""
8425 else
8426 case $cross_compiling:$ac_tool_warned in
8427 yes:)
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8430 ac_tool_warned=yes ;;
8431 esac
8432 AR=$ac_ct_AR
8433 fi
8434 else
8435 AR="$ac_cv_prog_AR"
8436 fi
8437
8438 if test -n "$ac_tool_prefix"; then
8439 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
8440 set dummy ${ac_tool_prefix}nm; ac_word=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if ${ac_cv_prog_NM+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 if test -n "$NM"; then
8447 ac_cv_prog_NM="$NM" # Let the user override the test.
8448 else
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 for as_dir in $PATH
8451 do
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8456 ac_cv_prog_NM="${ac_tool_prefix}nm"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 break 2
8459 fi
8460 done
8461 done
8462 IFS=$as_save_IFS
8463
8464 fi
8465 fi
8466 NM=$ac_cv_prog_NM
8467 if test -n "$NM"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8469 $as_echo "$NM" >&6; }
8470 else
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8473 fi
8474
8475
8476 fi
8477 if test -z "$ac_cv_prog_NM"; then
8478 ac_ct_NM=$NM
8479 # Extract the first word of "nm", so it can be a program name with args.
8480 set dummy nm; ac_word=$2
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8482 $as_echo_n "checking for $ac_word... " >&6; }
8483 if ${ac_cv_prog_ac_ct_NM+:} false; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 if test -n "$ac_ct_NM"; then
8487 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
8488 else
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8491 do
8492 IFS=$as_save_IFS
8493 test -z "$as_dir" && as_dir=.
8494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8496 ac_cv_prog_ac_ct_NM="nm"
8497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 break 2
8499 fi
8500 done
8501 done
8502 IFS=$as_save_IFS
8503
8504 fi
8505 fi
8506 ac_ct_NM=$ac_cv_prog_ac_ct_NM
8507 if test -n "$ac_ct_NM"; then
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
8509 $as_echo "$ac_ct_NM" >&6; }
8510 else
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512 $as_echo "no" >&6; }
8513 fi
8514
8515 if test "x$ac_ct_NM" = x; then
8516 NM=""
8517 else
8518 case $cross_compiling:$ac_tool_warned in
8519 yes:)
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8522 ac_tool_warned=yes ;;
8523 esac
8524 NM=$ac_ct_NM
8525 fi
8526 else
8527 NM="$ac_cv_prog_NM"
8528 fi
8529
8530 if test -n "$ac_tool_prefix"; then
8531 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8532 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if ${ac_cv_prog_RANLIB+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 if test -n "$RANLIB"; then
8539 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8540 else
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 for as_dir in $PATH
8543 do
8544 IFS=$as_save_IFS
8545 test -z "$as_dir" && as_dir=.
8546 for ac_exec_ext in '' $ac_executable_extensions; do
8547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8548 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550 break 2
8551 fi
8552 done
8553 done
8554 IFS=$as_save_IFS
8555
8556 fi
8557 fi
8558 RANLIB=$ac_cv_prog_RANLIB
8559 if test -n "$RANLIB"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8561 $as_echo "$RANLIB" >&6; }
8562 else
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8565 fi
8566
8567
8568 fi
8569 if test -z "$ac_cv_prog_RANLIB"; then
8570 ac_ct_RANLIB=$RANLIB
8571 # Extract the first word of "ranlib", so it can be a program name with args.
8572 set dummy ranlib; ac_word=$2
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574 $as_echo_n "checking for $ac_word... " >&6; }
8575 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 if test -n "$ac_ct_RANLIB"; then
8579 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8580 else
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $PATH
8583 do
8584 IFS=$as_save_IFS
8585 test -z "$as_dir" && as_dir=.
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8588 ac_cv_prog_ac_ct_RANLIB="ranlib"
8589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590 break 2
8591 fi
8592 done
8593 done
8594 IFS=$as_save_IFS
8595
8596 fi
8597 fi
8598 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8599 if test -n "$ac_ct_RANLIB"; then
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8601 $as_echo "$ac_ct_RANLIB" >&6; }
8602 else
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604 $as_echo "no" >&6; }
8605 fi
8606
8607 if test "x$ac_ct_RANLIB" = x; then
8608 RANLIB="ranlib-not-found-in-path-error"
8609 else
8610 case $cross_compiling:$ac_tool_warned in
8611 yes:)
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8614 ac_tool_warned=yes ;;
8615 esac
8616 RANLIB=$ac_ct_RANLIB
8617 fi
8618 else
8619 RANLIB="$ac_cv_prog_RANLIB"
8620 fi
8621
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8623 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8624 set x ${MAKE-make}
8625 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8626 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 cat >conftest.make <<\_ACEOF
8630 SHELL = /bin/sh
8631 all:
8632 @echo '@@@%%%=$(MAKE)=@@@%%%'
8633 _ACEOF
8634 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8635 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8636 *@@@%%%=?*=@@@%%%*)
8637 eval ac_cv_prog_make_${ac_make}_set=yes;;
8638 *)
8639 eval ac_cv_prog_make_${ac_make}_set=no;;
8640 esac
8641 rm -f conftest.make
8642 fi
8643 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8645 $as_echo "yes" >&6; }
8646 SET_MAKE=
8647 else
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649 $as_echo "no" >&6; }
8650 SET_MAKE="MAKE=${MAKE-make}"
8651 fi
8652
8653
8654
8655 case `pwd` in
8656 *\ * | *\ *)
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8658 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8659 esac
8660
8661
8662
8663 macro_version='2.2.7a'
8664 macro_revision='1.3134'
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678 ltmain="$ac_aux_dir/ltmain.sh"
8679
8680 # Backslashify metacharacters that are still active within
8681 # double-quoted strings.
8682 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8683
8684 # Same as above, but do not quote variable references.
8685 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8686
8687 # Sed substitution to delay expansion of an escaped shell variable in a
8688 # double_quote_subst'ed string.
8689 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8690
8691 # Sed substitution to delay expansion of an escaped single quote.
8692 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8693
8694 # Sed substitution to avoid accidental globbing in evaled expressions
8695 no_glob_subst='s/\*/\\\*/g'
8696
8697 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8698 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8699 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8700
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8702 $as_echo_n "checking how to print strings... " >&6; }
8703 # Test print first, because it will be a builtin if present.
8704 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
8705 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8706 ECHO='print -r --'
8707 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8708 ECHO='printf %s\n'
8709 else
8710 # Use this function as a fallback that always works.
8711 func_fallback_echo ()
8712 {
8713 eval 'cat <<_LTECHO_EOF
8714 $1
8715 _LTECHO_EOF'
8716 }
8717 ECHO='func_fallback_echo'
8718 fi
8719
8720 # func_echo_all arg...
8721 # Invoke $ECHO with all args, space-separated.
8722 func_echo_all ()
8723 {
8724 $ECHO ""
8725 }
8726
8727 case "$ECHO" in
8728 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8729 $as_echo "printf" >&6; } ;;
8730 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8731 $as_echo "print -r" >&6; } ;;
8732 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8733 $as_echo "cat" >&6; } ;;
8734 esac
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8750 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8751 if ${ac_cv_path_SED+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8755 for ac_i in 1 2 3 4 5 6 7; do
8756 ac_script="$ac_script$as_nl$ac_script"
8757 done
8758 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8759 { ac_script=; unset ac_script;}
8760 if test -z "$SED"; then
8761 ac_path_SED_found=false
8762 # Loop through the user's path and test for each of PROGNAME-LIST
8763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764 for as_dir in $PATH
8765 do
8766 IFS=$as_save_IFS
8767 test -z "$as_dir" && as_dir=.
8768 for ac_prog in sed gsed; do
8769 for ac_exec_ext in '' $ac_executable_extensions; do
8770 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8771 as_fn_executable_p "$ac_path_SED" || continue
8772 # Check for GNU ac_path_SED and select it if it is found.
8773 # Check for GNU $ac_path_SED
8774 case `"$ac_path_SED" --version 2>&1` in
8775 *GNU*)
8776 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8777 *)
8778 ac_count=0
8779 $as_echo_n 0123456789 >"conftest.in"
8780 while :
8781 do
8782 cat "conftest.in" "conftest.in" >"conftest.tmp"
8783 mv "conftest.tmp" "conftest.in"
8784 cp "conftest.in" "conftest.nl"
8785 $as_echo '' >> "conftest.nl"
8786 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8788 as_fn_arith $ac_count + 1 && ac_count=$as_val
8789 if test $ac_count -gt ${ac_path_SED_max-0}; then
8790 # Best one so far, save it but keep looking for a better one
8791 ac_cv_path_SED="$ac_path_SED"
8792 ac_path_SED_max=$ac_count
8793 fi
8794 # 10*(2^10) chars as input seems more than enough
8795 test $ac_count -gt 10 && break
8796 done
8797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8798 esac
8799
8800 $ac_path_SED_found && break 3
8801 done
8802 done
8803 done
8804 IFS=$as_save_IFS
8805 if test -z "$ac_cv_path_SED"; then
8806 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8807 fi
8808 else
8809 ac_cv_path_SED=$SED
8810 fi
8811
8812 fi
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8814 $as_echo "$ac_cv_path_SED" >&6; }
8815 SED="$ac_cv_path_SED"
8816 rm -f conftest.sed
8817
8818 test -z "$SED" && SED=sed
8819 Xsed="$SED -e 1s/^X//"
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8832 $as_echo_n "checking for fgrep... " >&6; }
8833 if ${ac_cv_path_FGREP+:} false; then :
8834 $as_echo_n "(cached) " >&6
8835 else
8836 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8837 then ac_cv_path_FGREP="$GREP -F"
8838 else
8839 if test -z "$FGREP"; then
8840 ac_path_FGREP_found=false
8841 # Loop through the user's path and test for each of PROGNAME-LIST
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8844 do
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
8847 for ac_prog in fgrep; do
8848 for ac_exec_ext in '' $ac_executable_extensions; do
8849 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8850 as_fn_executable_p "$ac_path_FGREP" || continue
8851 # Check for GNU ac_path_FGREP and select it if it is found.
8852 # Check for GNU $ac_path_FGREP
8853 case `"$ac_path_FGREP" --version 2>&1` in
8854 *GNU*)
8855 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8856 *)
8857 ac_count=0
8858 $as_echo_n 0123456789 >"conftest.in"
8859 while :
8860 do
8861 cat "conftest.in" "conftest.in" >"conftest.tmp"
8862 mv "conftest.tmp" "conftest.in"
8863 cp "conftest.in" "conftest.nl"
8864 $as_echo 'FGREP' >> "conftest.nl"
8865 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8866 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8867 as_fn_arith $ac_count + 1 && ac_count=$as_val
8868 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8869 # Best one so far, save it but keep looking for a better one
8870 ac_cv_path_FGREP="$ac_path_FGREP"
8871 ac_path_FGREP_max=$ac_count
8872 fi
8873 # 10*(2^10) chars as input seems more than enough
8874 test $ac_count -gt 10 && break
8875 done
8876 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8877 esac
8878
8879 $ac_path_FGREP_found && break 3
8880 done
8881 done
8882 done
8883 IFS=$as_save_IFS
8884 if test -z "$ac_cv_path_FGREP"; then
8885 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8886 fi
8887 else
8888 ac_cv_path_FGREP=$FGREP
8889 fi
8890
8891 fi
8892 fi
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8894 $as_echo "$ac_cv_path_FGREP" >&6; }
8895 FGREP="$ac_cv_path_FGREP"
8896
8897
8898 test -z "$GREP" && GREP=grep
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918 # Check whether --with-gnu-ld was given.
8919 if test "${with_gnu_ld+set}" = set; then :
8920 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8921 else
8922 with_gnu_ld=no
8923 fi
8924
8925 ac_prog=ld
8926 if test "$GCC" = yes; then
8927 # Check if gcc -print-prog-name=ld gives a path.
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8929 $as_echo_n "checking for ld used by $CC... " >&6; }
8930 case $host in
8931 *-*-mingw*)
8932 # gcc leaves a trailing carriage return which upsets mingw
8933 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8934 *)
8935 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8936 esac
8937 case $ac_prog in
8938 # Accept absolute paths.
8939 [\\/]* | ?:[\\/]*)
8940 re_direlt='/[^/][^/]*/\.\./'
8941 # Canonicalize the pathname of ld
8942 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8943 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8944 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8945 done
8946 test -z "$LD" && LD="$ac_prog"
8947 ;;
8948 "")
8949 # If it fails, then pretend we aren't using GCC.
8950 ac_prog=ld
8951 ;;
8952 *)
8953 # If it is relative, then search for the first ld in PATH.
8954 with_gnu_ld=unknown
8955 ;;
8956 esac
8957 elif test "$with_gnu_ld" = yes; then
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8959 $as_echo_n "checking for GNU ld... " >&6; }
8960 else
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8962 $as_echo_n "checking for non-GNU ld... " >&6; }
8963 fi
8964 if ${lt_cv_path_LD+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 if test -z "$LD"; then
8968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8969 for ac_dir in $PATH; do
8970 IFS="$lt_save_ifs"
8971 test -z "$ac_dir" && ac_dir=.
8972 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8973 lt_cv_path_LD="$ac_dir/$ac_prog"
8974 # Check to see if the program is GNU ld. I'd rather use --version,
8975 # but apparently some variants of GNU ld only accept -v.
8976 # Break only if it was the GNU/non-GNU ld that we prefer.
8977 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8978 *GNU* | *'with BFD'*)
8979 test "$with_gnu_ld" != no && break
8980 ;;
8981 *)
8982 test "$with_gnu_ld" != yes && break
8983 ;;
8984 esac
8985 fi
8986 done
8987 IFS="$lt_save_ifs"
8988 else
8989 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8990 fi
8991 fi
8992
8993 LD="$lt_cv_path_LD"
8994 if test -n "$LD"; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8996 $as_echo "$LD" >&6; }
8997 else
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 $as_echo "no" >&6; }
9000 fi
9001 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9003 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9004 if ${lt_cv_prog_gnu_ld+:} false; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9008 case `$LD -v 2>&1 </dev/null` in
9009 *GNU* | *'with BFD'*)
9010 lt_cv_prog_gnu_ld=yes
9011 ;;
9012 *)
9013 lt_cv_prog_gnu_ld=no
9014 ;;
9015 esac
9016 fi
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9018 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9019 with_gnu_ld=$lt_cv_prog_gnu_ld
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9030 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9031 if ${lt_cv_path_NM+:} false; then :
9032 $as_echo_n "(cached) " >&6
9033 else
9034 if test -n "$NM"; then
9035 # Let the user override the nm to test.
9036 lt_nm_to_check="$NM"
9037 else
9038 lt_nm_to_check="${ac_tool_prefix}nm"
9039 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9040 lt_nm_to_check="$lt_nm_to_check nm"
9041 fi
9042 fi
9043 for lt_tmp_nm in "$lt_nm_to_check"; do
9044 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9045 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9046 IFS="$lt_save_ifs"
9047 test -z "$ac_dir" && ac_dir=.
9048 # Strip out any user-provided options from the nm to test twice,
9049 # the first time to test to see if nm (rather than its options) has
9050 # an explicit path, the second time to yield a file which can be
9051 # nm'ed itself.
9052 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
9053 case "$tmp_nm_path" in
9054 */*|*\\*) tmp_nm="$lt_tmp_nm";;
9055 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
9056 esac
9057 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
9058 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
9059 # Check to see if the nm accepts a BSD-compat flag.
9060 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9061 # nm: unknown option "B" ignored
9062 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
9063 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
9064 break
9065 ;;
9066 *)
9067 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
9068 *$tmp_nm*)
9069 lt_cv_path_NM="$tmp_nm -p"
9070 break
9071 ;;
9072 *)
9073 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9074 continue # so that we can try to find one that supports BSD flags
9075 ;;
9076 esac
9077 ;;
9078 esac
9079 fi
9080 done
9081 IFS="$lt_save_ifs"
9082 done
9083 : ${lt_cv_path_NM=no}
9084 fi
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9086 $as_echo "$lt_cv_path_NM" >&6; }
9087 if test "$lt_cv_path_NM" != "no"; then
9088 NM="$lt_cv_path_NM"
9089 else
9090 # Didn't find any BSD compatible name lister, look for dumpbin.
9091 if test -n "$DUMPBIN"; then :
9092 # Let the user override the test.
9093 else
9094 if test -n "$ac_tool_prefix"; then
9095 for ac_prog in dumpbin "link -dump"
9096 do
9097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9100 $as_echo_n "checking for $ac_word... " >&6; }
9101 if ${ac_cv_prog_DUMPBIN+:} false; then :
9102 $as_echo_n "(cached) " >&6
9103 else
9104 if test -n "$DUMPBIN"; then
9105 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9106 else
9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 for as_dir in $PATH
9109 do
9110 IFS=$as_save_IFS
9111 test -z "$as_dir" && as_dir=.
9112 for ac_exec_ext in '' $ac_executable_extensions; do
9113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9114 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9116 break 2
9117 fi
9118 done
9119 done
9120 IFS=$as_save_IFS
9121
9122 fi
9123 fi
9124 DUMPBIN=$ac_cv_prog_DUMPBIN
9125 if test -n "$DUMPBIN"; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9127 $as_echo "$DUMPBIN" >&6; }
9128 else
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 $as_echo "no" >&6; }
9131 fi
9132
9133
9134 test -n "$DUMPBIN" && break
9135 done
9136 fi
9137 if test -z "$DUMPBIN"; then
9138 ac_ct_DUMPBIN=$DUMPBIN
9139 for ac_prog in dumpbin "link -dump"
9140 do
9141 # Extract the first word of "$ac_prog", so it can be a program name with args.
9142 set dummy $ac_prog; ac_word=$2
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9144 $as_echo_n "checking for $ac_word... " >&6; }
9145 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 if test -n "$ac_ct_DUMPBIN"; then
9149 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9150 else
9151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 for as_dir in $PATH
9153 do
9154 IFS=$as_save_IFS
9155 test -z "$as_dir" && as_dir=.
9156 for ac_exec_ext in '' $ac_executable_extensions; do
9157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9158 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9160 break 2
9161 fi
9162 done
9163 done
9164 IFS=$as_save_IFS
9165
9166 fi
9167 fi
9168 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9169 if test -n "$ac_ct_DUMPBIN"; then
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9171 $as_echo "$ac_ct_DUMPBIN" >&6; }
9172 else
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9174 $as_echo "no" >&6; }
9175 fi
9176
9177
9178 test -n "$ac_ct_DUMPBIN" && break
9179 done
9180
9181 if test "x$ac_ct_DUMPBIN" = x; then
9182 DUMPBIN=":"
9183 else
9184 case $cross_compiling:$ac_tool_warned in
9185 yes:)
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9188 ac_tool_warned=yes ;;
9189 esac
9190 DUMPBIN=$ac_ct_DUMPBIN
9191 fi
9192 fi
9193
9194 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9195 *COFF*)
9196 DUMPBIN="$DUMPBIN -symbols"
9197 ;;
9198 *)
9199 DUMPBIN=:
9200 ;;
9201 esac
9202 fi
9203
9204 if test "$DUMPBIN" != ":"; then
9205 NM="$DUMPBIN"
9206 fi
9207 fi
9208 test -z "$NM" && NM=nm
9209
9210
9211
9212
9213
9214
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9216 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9217 if ${lt_cv_nm_interface+:} false; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 lt_cv_nm_interface="BSD nm"
9221 echo "int some_variable = 0;" > conftest.$ac_ext
9222 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9223 (eval "$ac_compile" 2>conftest.err)
9224 cat conftest.err >&5
9225 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9226 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9227 cat conftest.err >&5
9228 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9229 cat conftest.out >&5
9230 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9231 lt_cv_nm_interface="MS dumpbin"
9232 fi
9233 rm -f conftest*
9234 fi
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9236 $as_echo "$lt_cv_nm_interface" >&6; }
9237
9238 # find the maximum length of command line arguments
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9240 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9241 if ${lt_cv_sys_max_cmd_len+:} false; then :
9242 $as_echo_n "(cached) " >&6
9243 else
9244 i=0
9245 teststring="ABCD"
9246
9247 case $build_os in
9248 msdosdjgpp*)
9249 # On DJGPP, this test can blow up pretty badly due to problems in libc
9250 # (any single argument exceeding 2000 bytes causes a buffer overrun
9251 # during glob expansion). Even if it were fixed, the result of this
9252 # check would be larger than it should be.
9253 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9254 ;;
9255
9256 gnu*)
9257 # Under GNU Hurd, this test is not required because there is
9258 # no limit to the length of command line arguments.
9259 # Libtool will interpret -1 as no limit whatsoever
9260 lt_cv_sys_max_cmd_len=-1;
9261 ;;
9262
9263 cygwin* | mingw* | cegcc*)
9264 # On Win9x/ME, this test blows up -- it succeeds, but takes
9265 # about 5 minutes as the teststring grows exponentially.
9266 # Worse, since 9x/ME are not pre-emptively multitasking,
9267 # you end up with a "frozen" computer, even though with patience
9268 # the test eventually succeeds (with a max line length of 256k).
9269 # Instead, let's just punt: use the minimum linelength reported by
9270 # all of the supported platforms: 8192 (on NT/2K/XP).
9271 lt_cv_sys_max_cmd_len=8192;
9272 ;;
9273
9274 mint*)
9275 # On MiNT this can take a long time and run out of memory.
9276 lt_cv_sys_max_cmd_len=8192;
9277 ;;
9278
9279 amigaos*)
9280 # On AmigaOS with pdksh, this test takes hours, literally.
9281 # So we just punt and use a minimum line length of 8192.
9282 lt_cv_sys_max_cmd_len=8192;
9283 ;;
9284
9285 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9286 # This has been around since 386BSD, at least. Likely further.
9287 if test -x /sbin/sysctl; then
9288 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9289 elif test -x /usr/sbin/sysctl; then
9290 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9291 else
9292 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9293 fi
9294 # And add a safety zone
9295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9296 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9297 ;;
9298
9299 interix*)
9300 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9301 lt_cv_sys_max_cmd_len=196608
9302 ;;
9303
9304 osf*)
9305 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9306 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9307 # nice to cause kernel panics so lets avoid the loop below.
9308 # First set a reasonable default.
9309 lt_cv_sys_max_cmd_len=16384
9310 #
9311 if test -x /sbin/sysconfig; then
9312 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9313 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9314 esac
9315 fi
9316 ;;
9317 sco3.2v5*)
9318 lt_cv_sys_max_cmd_len=102400
9319 ;;
9320 sysv5* | sco5v6* | sysv4.2uw2*)
9321 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9322 if test -n "$kargmax"; then
9323 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9324 else
9325 lt_cv_sys_max_cmd_len=32768
9326 fi
9327 ;;
9328 *)
9329 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9330 if test -n "$lt_cv_sys_max_cmd_len"; then
9331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9333 else
9334 # Make teststring a little bigger before we do anything with it.
9335 # a 1K string should be a reasonable start.
9336 for i in 1 2 3 4 5 6 7 8 ; do
9337 teststring=$teststring$teststring
9338 done
9339 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9340 # If test is not a shell built-in, we'll probably end up computing a
9341 # maximum length that is only half of the actual maximum length, but
9342 # we can't tell.
9343 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9344 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9345 test $i != 17 # 1/2 MB should be enough
9346 do
9347 i=`expr $i + 1`
9348 teststring=$teststring$teststring
9349 done
9350 # Only check the string length outside the loop.
9351 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9352 teststring=
9353 # Add a significant safety factor because C++ compilers can tack on
9354 # massive amounts of additional arguments before passing them to the
9355 # linker. It appears as though 1/2 is a usable value.
9356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9357 fi
9358 ;;
9359 esac
9360
9361 fi
9362
9363 if test -n $lt_cv_sys_max_cmd_len ; then
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9365 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9366 else
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9368 $as_echo "none" >&6; }
9369 fi
9370 max_cmd_len=$lt_cv_sys_max_cmd_len
9371
9372
9373
9374
9375
9376
9377 : ${CP="cp -f"}
9378 : ${MV="mv -f"}
9379 : ${RM="rm -f"}
9380
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9382 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9383 # Try some XSI features
9384 xsi_shell=no
9385 ( _lt_dummy="a/b/c"
9386 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9387 = c,a/b,, \
9388 && eval 'test $(( 1 + 1 )) -eq 2 \
9389 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9390 && xsi_shell=yes
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9392 $as_echo "$xsi_shell" >&6; }
9393
9394
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9396 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9397 lt_shell_append=no
9398 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9399 >/dev/null 2>&1 \
9400 && lt_shell_append=yes
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9402 $as_echo "$lt_shell_append" >&6; }
9403
9404
9405 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9406 lt_unset=unset
9407 else
9408 lt_unset=false
9409 fi
9410
9411
9412
9413
9414
9415 # test EBCDIC or ASCII
9416 case `echo X|tr X '\101'` in
9417 A) # ASCII based system
9418 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9419 lt_SP2NL='tr \040 \012'
9420 lt_NL2SP='tr \015\012 \040\040'
9421 ;;
9422 *) # EBCDIC based system
9423 lt_SP2NL='tr \100 \n'
9424 lt_NL2SP='tr \r\n \100\100'
9425 ;;
9426 esac
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9437 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9438 if ${lt_cv_ld_reload_flag+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 lt_cv_ld_reload_flag='-r'
9442 fi
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9444 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9445 reload_flag=$lt_cv_ld_reload_flag
9446 case $reload_flag in
9447 "" | " "*) ;;
9448 *) reload_flag=" $reload_flag" ;;
9449 esac
9450 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9451 case $host_os in
9452 darwin*)
9453 if test "$GCC" = yes; then
9454 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9455 else
9456 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9457 fi
9458 ;;
9459 esac
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469 if test -n "$ac_tool_prefix"; then
9470 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9471 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473 $as_echo_n "checking for $ac_word... " >&6; }
9474 if ${ac_cv_prog_OBJDUMP+:} false; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 if test -n "$OBJDUMP"; then
9478 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9479 else
9480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481 for as_dir in $PATH
9482 do
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9487 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 break 2
9490 fi
9491 done
9492 done
9493 IFS=$as_save_IFS
9494
9495 fi
9496 fi
9497 OBJDUMP=$ac_cv_prog_OBJDUMP
9498 if test -n "$OBJDUMP"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9500 $as_echo "$OBJDUMP" >&6; }
9501 else
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9504 fi
9505
9506
9507 fi
9508 if test -z "$ac_cv_prog_OBJDUMP"; then
9509 ac_ct_OBJDUMP=$OBJDUMP
9510 # Extract the first word of "objdump", so it can be a program name with args.
9511 set dummy objdump; ac_word=$2
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9513 $as_echo_n "checking for $ac_word... " >&6; }
9514 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 if test -n "$ac_ct_OBJDUMP"; then
9518 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9519 else
9520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9521 for as_dir in $PATH
9522 do
9523 IFS=$as_save_IFS
9524 test -z "$as_dir" && as_dir=.
9525 for ac_exec_ext in '' $ac_executable_extensions; do
9526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9527 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9529 break 2
9530 fi
9531 done
9532 done
9533 IFS=$as_save_IFS
9534
9535 fi
9536 fi
9537 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9538 if test -n "$ac_ct_OBJDUMP"; then
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9540 $as_echo "$ac_ct_OBJDUMP" >&6; }
9541 else
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9543 $as_echo "no" >&6; }
9544 fi
9545
9546 if test "x$ac_ct_OBJDUMP" = x; then
9547 OBJDUMP="false"
9548 else
9549 case $cross_compiling:$ac_tool_warned in
9550 yes:)
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9553 ac_tool_warned=yes ;;
9554 esac
9555 OBJDUMP=$ac_ct_OBJDUMP
9556 fi
9557 else
9558 OBJDUMP="$ac_cv_prog_OBJDUMP"
9559 fi
9560
9561 test -z "$OBJDUMP" && OBJDUMP=objdump
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9572 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9573 if ${lt_cv_deplibs_check_method+:} false; then :
9574 $as_echo_n "(cached) " >&6
9575 else
9576 lt_cv_file_magic_cmd='$MAGIC_CMD'
9577 lt_cv_file_magic_test_file=
9578 lt_cv_deplibs_check_method='unknown'
9579 # Need to set the preceding variable on all platforms that support
9580 # interlibrary dependencies.
9581 # 'none' -- dependencies not supported.
9582 # `unknown' -- same as none, but documents that we really don't know.
9583 # 'pass_all' -- all dependencies passed with no checks.
9584 # 'test_compile' -- check by making test program.
9585 # 'file_magic [[regex]]' -- check by looking for files in library path
9586 # which responds to the $file_magic_cmd with a given extended regex.
9587 # If you have `file' or equivalent on your system and you're not sure
9588 # whether `pass_all' will *always* work, you probably want this one.
9589
9590 case $host_os in
9591 aix[4-9]*)
9592 lt_cv_deplibs_check_method=pass_all
9593 ;;
9594
9595 beos*)
9596 lt_cv_deplibs_check_method=pass_all
9597 ;;
9598
9599 bsdi[45]*)
9600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9601 lt_cv_file_magic_cmd='/usr/bin/file -L'
9602 lt_cv_file_magic_test_file=/shlib/libc.so
9603 ;;
9604
9605 cygwin*)
9606 # func_win32_libid is a shell function defined in ltmain.sh
9607 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9608 lt_cv_file_magic_cmd='func_win32_libid'
9609 ;;
9610
9611 mingw* | pw32*)
9612 # Base MSYS/MinGW do not provide the 'file' command needed by
9613 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9614 # unless we find 'file', for example because we are cross-compiling.
9615 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9616 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9617 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9618 lt_cv_file_magic_cmd='func_win32_libid'
9619 else
9620 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9621 lt_cv_file_magic_cmd='$OBJDUMP -f'
9622 fi
9623 ;;
9624
9625 cegcc*)
9626 # use the weaker test based on 'objdump'. See mingw*.
9627 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9628 lt_cv_file_magic_cmd='$OBJDUMP -f'
9629 ;;
9630
9631 darwin* | rhapsody*)
9632 lt_cv_deplibs_check_method=pass_all
9633 ;;
9634
9635 freebsd* | dragonfly*)
9636 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9637 case $host_cpu in
9638 i*86 )
9639 # Not sure whether the presence of OpenBSD here was a mistake.
9640 # Let's accept both of them until this is cleared up.
9641 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9642 lt_cv_file_magic_cmd=/usr/bin/file
9643 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9644 ;;
9645 esac
9646 else
9647 lt_cv_deplibs_check_method=pass_all
9648 fi
9649 ;;
9650
9651 gnu*)
9652 lt_cv_deplibs_check_method=pass_all
9653 ;;
9654
9655 haiku*)
9656 lt_cv_deplibs_check_method=pass_all
9657 ;;
9658
9659 hpux10.20* | hpux11*)
9660 lt_cv_file_magic_cmd=/usr/bin/file
9661 case $host_cpu in
9662 ia64*)
9663 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9664 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9665 ;;
9666 hppa*64*)
9667 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]'
9668 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9669 ;;
9670 *)
9671 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9672 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9673 ;;
9674 esac
9675 ;;
9676
9677 interix[3-9]*)
9678 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9680 ;;
9681
9682 irix5* | irix6* | nonstopux*)
9683 case $LD in
9684 *-32|*"-32 ") libmagic=32-bit;;
9685 *-n32|*"-n32 ") libmagic=N32;;
9686 *-64|*"-64 ") libmagic=64-bit;;
9687 *) libmagic=never-match;;
9688 esac
9689 lt_cv_deplibs_check_method=pass_all
9690 ;;
9691
9692 # This must be Linux ELF.
9693 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9694 lt_cv_deplibs_check_method=pass_all
9695 ;;
9696
9697 netbsd*)
9698 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9700 else
9701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9702 fi
9703 ;;
9704
9705 newos6*)
9706 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9707 lt_cv_file_magic_cmd=/usr/bin/file
9708 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9709 ;;
9710
9711 *nto* | *qnx*)
9712 lt_cv_deplibs_check_method=pass_all
9713 ;;
9714
9715 openbsd*)
9716 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9718 else
9719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9720 fi
9721 ;;
9722
9723 osf3* | osf4* | osf5*)
9724 lt_cv_deplibs_check_method=pass_all
9725 ;;
9726
9727 rdos*)
9728 lt_cv_deplibs_check_method=pass_all
9729 ;;
9730
9731 solaris*)
9732 lt_cv_deplibs_check_method=pass_all
9733 ;;
9734
9735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9736 lt_cv_deplibs_check_method=pass_all
9737 ;;
9738
9739 sysv4 | sysv4.3*)
9740 case $host_vendor in
9741 motorola)
9742 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]'
9743 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9744 ;;
9745 ncr)
9746 lt_cv_deplibs_check_method=pass_all
9747 ;;
9748 sequent)
9749 lt_cv_file_magic_cmd='/bin/file'
9750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9751 ;;
9752 sni)
9753 lt_cv_file_magic_cmd='/bin/file'
9754 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9755 lt_cv_file_magic_test_file=/lib/libc.so
9756 ;;
9757 siemens)
9758 lt_cv_deplibs_check_method=pass_all
9759 ;;
9760 pc)
9761 lt_cv_deplibs_check_method=pass_all
9762 ;;
9763 esac
9764 ;;
9765
9766 tpf*)
9767 lt_cv_deplibs_check_method=pass_all
9768 ;;
9769 vxworks*)
9770 # Assume VxWorks cross toolchains are built on Linux, possibly
9771 # as canadian for Windows hosts.
9772 lt_cv_deplibs_check_method=pass_all
9773 ;;
9774 esac
9775
9776 fi
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9778 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9779 file_magic_cmd=$lt_cv_file_magic_cmd
9780 deplibs_check_method=$lt_cv_deplibs_check_method
9781 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794 plugin_option=
9795 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
9796 for plugin in $plugin_names; do
9797 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
9798 if test x$plugin_so = x$plugin; then
9799 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
9800 fi
9801 if test x$plugin_so != x$plugin; then
9802 plugin_option="--plugin $plugin_so"
9803 break
9804 fi
9805 done
9806
9807 if test -n "$ac_tool_prefix"; then
9808 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9809 set dummy ${ac_tool_prefix}ar; ac_word=$2
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811 $as_echo_n "checking for $ac_word... " >&6; }
9812 if ${ac_cv_prog_AR+:} false; then :
9813 $as_echo_n "(cached) " >&6
9814 else
9815 if test -n "$AR"; then
9816 ac_cv_prog_AR="$AR" # Let the user override the test.
9817 else
9818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9819 for as_dir in $PATH
9820 do
9821 IFS=$as_save_IFS
9822 test -z "$as_dir" && as_dir=.
9823 for ac_exec_ext in '' $ac_executable_extensions; do
9824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9825 ac_cv_prog_AR="${ac_tool_prefix}ar"
9826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9827 break 2
9828 fi
9829 done
9830 done
9831 IFS=$as_save_IFS
9832
9833 fi
9834 fi
9835 AR=$ac_cv_prog_AR
9836 if test -n "$AR"; then
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9838 $as_echo "$AR" >&6; }
9839 else
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841 $as_echo "no" >&6; }
9842 fi
9843
9844
9845 fi
9846 if test -z "$ac_cv_prog_AR"; then
9847 ac_ct_AR=$AR
9848 # Extract the first word of "ar", so it can be a program name with args.
9849 set dummy ar; ac_word=$2
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9851 $as_echo_n "checking for $ac_word... " >&6; }
9852 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9853 $as_echo_n "(cached) " >&6
9854 else
9855 if test -n "$ac_ct_AR"; then
9856 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9857 else
9858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859 for as_dir in $PATH
9860 do
9861 IFS=$as_save_IFS
9862 test -z "$as_dir" && as_dir=.
9863 for ac_exec_ext in '' $ac_executable_extensions; do
9864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9865 ac_cv_prog_ac_ct_AR="ar"
9866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9867 break 2
9868 fi
9869 done
9870 done
9871 IFS=$as_save_IFS
9872
9873 fi
9874 fi
9875 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9876 if test -n "$ac_ct_AR"; then
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9878 $as_echo "$ac_ct_AR" >&6; }
9879 else
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9881 $as_echo "no" >&6; }
9882 fi
9883
9884 if test "x$ac_ct_AR" = x; then
9885 AR="false"
9886 else
9887 case $cross_compiling:$ac_tool_warned in
9888 yes:)
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9891 ac_tool_warned=yes ;;
9892 esac
9893 AR=$ac_ct_AR
9894 fi
9895 else
9896 AR="$ac_cv_prog_AR"
9897 fi
9898
9899 test -z "$AR" && AR=ar
9900 if test -n "$plugin_option"; then
9901 if $AR --help 2>&1 | grep -q "\--plugin"; then
9902 touch conftest.c
9903 $AR $plugin_option rc conftest.a conftest.c
9904 if test "$?" != 0; then
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
9906 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
9907 else
9908 AR="$AR $plugin_option"
9909 fi
9910 rm -f conftest.*
9911 fi
9912 fi
9913 test -z "$AR_FLAGS" && AR_FLAGS=cru
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925 if test -n "$ac_tool_prefix"; then
9926 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9927 set dummy ${ac_tool_prefix}strip; ac_word=$2
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929 $as_echo_n "checking for $ac_word... " >&6; }
9930 if ${ac_cv_prog_STRIP+:} false; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 if test -n "$STRIP"; then
9934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9935 else
9936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937 for as_dir in $PATH
9938 do
9939 IFS=$as_save_IFS
9940 test -z "$as_dir" && as_dir=.
9941 for ac_exec_ext in '' $ac_executable_extensions; do
9942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9943 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 break 2
9946 fi
9947 done
9948 done
9949 IFS=$as_save_IFS
9950
9951 fi
9952 fi
9953 STRIP=$ac_cv_prog_STRIP
9954 if test -n "$STRIP"; then
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9956 $as_echo "$STRIP" >&6; }
9957 else
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959 $as_echo "no" >&6; }
9960 fi
9961
9962
9963 fi
9964 if test -z "$ac_cv_prog_STRIP"; then
9965 ac_ct_STRIP=$STRIP
9966 # Extract the first word of "strip", so it can be a program name with args.
9967 set dummy strip; ac_word=$2
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9969 $as_echo_n "checking for $ac_word... " >&6; }
9970 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 if test -n "$ac_ct_STRIP"; then
9974 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9975 else
9976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977 for as_dir in $PATH
9978 do
9979 IFS=$as_save_IFS
9980 test -z "$as_dir" && as_dir=.
9981 for ac_exec_ext in '' $ac_executable_extensions; do
9982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9983 ac_cv_prog_ac_ct_STRIP="strip"
9984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9985 break 2
9986 fi
9987 done
9988 done
9989 IFS=$as_save_IFS
9990
9991 fi
9992 fi
9993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9994 if test -n "$ac_ct_STRIP"; then
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9996 $as_echo "$ac_ct_STRIP" >&6; }
9997 else
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999 $as_echo "no" >&6; }
10000 fi
10001
10002 if test "x$ac_ct_STRIP" = x; then
10003 STRIP=":"
10004 else
10005 case $cross_compiling:$ac_tool_warned in
10006 yes:)
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10009 ac_tool_warned=yes ;;
10010 esac
10011 STRIP=$ac_ct_STRIP
10012 fi
10013 else
10014 STRIP="$ac_cv_prog_STRIP"
10015 fi
10016
10017 test -z "$STRIP" && STRIP=:
10018
10019
10020
10021
10022
10023
10024 if test -n "$ac_tool_prefix"; then
10025 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10028 $as_echo_n "checking for $ac_word... " >&6; }
10029 if ${ac_cv_prog_RANLIB+:} false; then :
10030 $as_echo_n "(cached) " >&6
10031 else
10032 if test -n "$RANLIB"; then
10033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10034 else
10035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10036 for as_dir in $PATH
10037 do
10038 IFS=$as_save_IFS
10039 test -z "$as_dir" && as_dir=.
10040 for ac_exec_ext in '' $ac_executable_extensions; do
10041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10042 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10044 break 2
10045 fi
10046 done
10047 done
10048 IFS=$as_save_IFS
10049
10050 fi
10051 fi
10052 RANLIB=$ac_cv_prog_RANLIB
10053 if test -n "$RANLIB"; then
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10055 $as_echo "$RANLIB" >&6; }
10056 else
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058 $as_echo "no" >&6; }
10059 fi
10060
10061
10062 fi
10063 if test -z "$ac_cv_prog_RANLIB"; then
10064 ac_ct_RANLIB=$RANLIB
10065 # Extract the first word of "ranlib", so it can be a program name with args.
10066 set dummy ranlib; ac_word=$2
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10068 $as_echo_n "checking for $ac_word... " >&6; }
10069 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10070 $as_echo_n "(cached) " >&6
10071 else
10072 if test -n "$ac_ct_RANLIB"; then
10073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10074 else
10075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10076 for as_dir in $PATH
10077 do
10078 IFS=$as_save_IFS
10079 test -z "$as_dir" && as_dir=.
10080 for ac_exec_ext in '' $ac_executable_extensions; do
10081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10082 ac_cv_prog_ac_ct_RANLIB="ranlib"
10083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10084 break 2
10085 fi
10086 done
10087 done
10088 IFS=$as_save_IFS
10089
10090 fi
10091 fi
10092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10093 if test -n "$ac_ct_RANLIB"; then
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10095 $as_echo "$ac_ct_RANLIB" >&6; }
10096 else
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10098 $as_echo "no" >&6; }
10099 fi
10100
10101 if test "x$ac_ct_RANLIB" = x; then
10102 RANLIB=":"
10103 else
10104 case $cross_compiling:$ac_tool_warned in
10105 yes:)
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10108 ac_tool_warned=yes ;;
10109 esac
10110 RANLIB=$ac_ct_RANLIB
10111 fi
10112 else
10113 RANLIB="$ac_cv_prog_RANLIB"
10114 fi
10115
10116 test -z "$RANLIB" && RANLIB=:
10117 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
10118 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10119 RANLIB="$RANLIB $plugin_option"
10120 fi
10121 fi
10122
10123
10124
10125
10126
10127
10128 # Determine commands to create old-style static archives.
10129 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10130 old_postinstall_cmds='chmod 644 $oldlib'
10131 old_postuninstall_cmds=
10132
10133 if test -n "$RANLIB"; then
10134 case $host_os in
10135 openbsd*)
10136 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10137 ;;
10138 *)
10139 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10140 ;;
10141 esac
10142 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10143 fi
10144
10145 case $host_os in
10146 darwin*)
10147 lock_old_archive_extraction=yes ;;
10148 *)
10149 lock_old_archive_extraction=no ;;
10150 esac
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190 # If no C compiler was specified, use CC.
10191 LTCC=${LTCC-"$CC"}
10192
10193 # If no C compiler flags were specified, use CFLAGS.
10194 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10195
10196 # Allow CC to be a program name with arguments.
10197 compiler=$CC
10198
10199
10200 # Check for command to grab the raw symbol name followed by C symbol from nm.
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10202 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10203 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10204 $as_echo_n "(cached) " >&6
10205 else
10206
10207 # These are sane defaults that work on at least a few old systems.
10208 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10209
10210 # Character class describing NM global symbol codes.
10211 symcode='[BCDEGRST]'
10212
10213 # Regexp to match symbols that can be accessed directly from C.
10214 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10215
10216 # Define system-specific variables.
10217 case $host_os in
10218 aix*)
10219 symcode='[BCDT]'
10220 ;;
10221 cygwin* | mingw* | pw32* | cegcc*)
10222 symcode='[ABCDGISTW]'
10223 ;;
10224 hpux*)
10225 if test "$host_cpu" = ia64; then
10226 symcode='[ABCDEGRST]'
10227 fi
10228 ;;
10229 irix* | nonstopux*)
10230 symcode='[BCDEGRST]'
10231 ;;
10232 osf*)
10233 symcode='[BCDEGQRST]'
10234 ;;
10235 solaris*)
10236 symcode='[BCDRT]'
10237 ;;
10238 sco3.2v5*)
10239 symcode='[DT]'
10240 ;;
10241 sysv4.2uw2*)
10242 symcode='[DT]'
10243 ;;
10244 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10245 symcode='[ABDT]'
10246 ;;
10247 sysv4)
10248 symcode='[DFNSTU]'
10249 ;;
10250 esac
10251
10252 # If we're using GNU nm, then use its standard symbol codes.
10253 case `$NM -V 2>&1` in
10254 *GNU* | *'with BFD'*)
10255 symcode='[ABCDGIRSTW]' ;;
10256 esac
10257
10258 # Transform an extracted symbol line into a proper C declaration.
10259 # Some systems (esp. on ia64) link data and code symbols differently,
10260 # so use this general approach.
10261 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10262
10263 # Transform an extracted symbol line into symbol name and symbol address
10264 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10265 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'"
10266
10267 # Handle CRLF in mingw tool chain
10268 opt_cr=
10269 case $build_os in
10270 mingw*)
10271 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10272 ;;
10273 esac
10274
10275 # Try without a prefix underscore, then with it.
10276 for ac_symprfx in "" "_"; do
10277
10278 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10279 symxfrm="\\1 $ac_symprfx\\2 \\2"
10280
10281 # Write the raw and C identifiers.
10282 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10283 # Fake it for dumpbin and say T for any non-static function
10284 # and D for any global variable.
10285 # Also find C++ and __fastcall symbols from MSVC++,
10286 # which start with @ or ?.
10287 lt_cv_sys_global_symbol_pipe="$AWK '"\
10288 " {last_section=section; section=\$ 3};"\
10289 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10290 " \$ 0!~/External *\|/{next};"\
10291 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10292 " {if(hide[section]) next};"\
10293 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10294 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10295 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
10296 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10297 " ' prfx=^$ac_symprfx"
10298 else
10299 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10300 fi
10301
10302 # Check to see that the pipe works correctly.
10303 pipe_works=no
10304
10305 rm -f conftest*
10306 cat > conftest.$ac_ext <<_LT_EOF
10307 #ifdef __cplusplus
10308 extern "C" {
10309 #endif
10310 char nm_test_var;
10311 void nm_test_func(void);
10312 void nm_test_func(void){}
10313 #ifdef __cplusplus
10314 }
10315 #endif
10316 int main(){nm_test_var='a';nm_test_func();return(0);}
10317 _LT_EOF
10318
10319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10320 (eval $ac_compile) 2>&5
10321 ac_status=$?
10322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10323 test $ac_status = 0; }; then
10324 # Now try to grab the symbols.
10325 nlist=conftest.nm
10326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10327 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10328 ac_status=$?
10329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10330 test $ac_status = 0; } && test -s "$nlist"; then
10331 # Try sorting and uniquifying the output.
10332 if sort "$nlist" | uniq > "$nlist"T; then
10333 mv -f "$nlist"T "$nlist"
10334 else
10335 rm -f "$nlist"T
10336 fi
10337
10338 # Make sure that we snagged all the symbols we need.
10339 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10340 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10341 cat <<_LT_EOF > conftest.$ac_ext
10342 #ifdef __cplusplus
10343 extern "C" {
10344 #endif
10345
10346 _LT_EOF
10347 # Now generate the symbol file.
10348 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10349
10350 cat <<_LT_EOF >> conftest.$ac_ext
10351
10352 /* The mapping between symbol names and symbols. */
10353 const struct {
10354 const char *name;
10355 void *address;
10356 }
10357 lt__PROGRAM__LTX_preloaded_symbols[] =
10358 {
10359 { "@PROGRAM@", (void *) 0 },
10360 _LT_EOF
10361 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10362 cat <<\_LT_EOF >> conftest.$ac_ext
10363 {0, (void *) 0}
10364 };
10365
10366 /* This works around a problem in FreeBSD linker */
10367 #ifdef FREEBSD_WORKAROUND
10368 static const void *lt_preloaded_setup() {
10369 return lt__PROGRAM__LTX_preloaded_symbols;
10370 }
10371 #endif
10372
10373 #ifdef __cplusplus
10374 }
10375 #endif
10376 _LT_EOF
10377 # Now try linking the two files.
10378 mv conftest.$ac_objext conftstm.$ac_objext
10379 lt_save_LIBS="$LIBS"
10380 lt_save_CFLAGS="$CFLAGS"
10381 LIBS="conftstm.$ac_objext"
10382 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10384 (eval $ac_link) 2>&5
10385 ac_status=$?
10386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10387 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10388 pipe_works=yes
10389 fi
10390 LIBS="$lt_save_LIBS"
10391 CFLAGS="$lt_save_CFLAGS"
10392 else
10393 echo "cannot find nm_test_func in $nlist" >&5
10394 fi
10395 else
10396 echo "cannot find nm_test_var in $nlist" >&5
10397 fi
10398 else
10399 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10400 fi
10401 else
10402 echo "$progname: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10404 fi
10405 rm -rf conftest* conftst*
10406
10407 # Do not use the global_symbol_pipe unless it works.
10408 if test "$pipe_works" = yes; then
10409 break
10410 else
10411 lt_cv_sys_global_symbol_pipe=
10412 fi
10413 done
10414
10415 fi
10416
10417 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10418 lt_cv_sys_global_symbol_to_cdecl=
10419 fi
10420 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10422 $as_echo "failed" >&6; }
10423 else
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10425 $as_echo "ok" >&6; }
10426 fi
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449 # Check whether --enable-libtool-lock was given.
10450 if test "${enable_libtool_lock+set}" = set; then :
10451 enableval=$enable_libtool_lock;
10452 fi
10453
10454 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10455
10456 # Some flags need to be propagated to the compiler or linker for good
10457 # libtool support.
10458 case $host in
10459 ia64-*-hpux*)
10460 # Find out which ABI we are using.
10461 echo 'int i;' > conftest.$ac_ext
10462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10463 (eval $ac_compile) 2>&5
10464 ac_status=$?
10465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10466 test $ac_status = 0; }; then
10467 case `/usr/bin/file conftest.$ac_objext` in
10468 *ELF-32*)
10469 HPUX_IA64_MODE="32"
10470 ;;
10471 *ELF-64*)
10472 HPUX_IA64_MODE="64"
10473 ;;
10474 esac
10475 fi
10476 rm -rf conftest*
10477 ;;
10478 *-*-irix6*)
10479 # Find out which ABI we are using.
10480 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10482 (eval $ac_compile) 2>&5
10483 ac_status=$?
10484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10485 test $ac_status = 0; }; then
10486 if test "$lt_cv_prog_gnu_ld" = yes; then
10487 case `/usr/bin/file conftest.$ac_objext` in
10488 *32-bit*)
10489 LD="${LD-ld} -melf32bsmip"
10490 ;;
10491 *N32*)
10492 LD="${LD-ld} -melf32bmipn32"
10493 ;;
10494 *64-bit*)
10495 LD="${LD-ld} -melf64bmip"
10496 ;;
10497 esac
10498 else
10499 case `/usr/bin/file conftest.$ac_objext` in
10500 *32-bit*)
10501 LD="${LD-ld} -32"
10502 ;;
10503 *N32*)
10504 LD="${LD-ld} -n32"
10505 ;;
10506 *64-bit*)
10507 LD="${LD-ld} -64"
10508 ;;
10509 esac
10510 fi
10511 fi
10512 rm -rf conftest*
10513 ;;
10514
10515 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10516 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10517 # Find out which ABI we are using.
10518 echo 'int i;' > conftest.$ac_ext
10519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10520 (eval $ac_compile) 2>&5
10521 ac_status=$?
10522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10523 test $ac_status = 0; }; then
10524 case `/usr/bin/file conftest.o` in
10525 *32-bit*)
10526 case $host in
10527 x86_64-*kfreebsd*-gnu)
10528 LD="${LD-ld} -m elf_i386_fbsd"
10529 ;;
10530 x86_64-*linux*)
10531 case `/usr/bin/file conftest.o` in
10532 *x86-64*)
10533 LD="${LD-ld} -m elf32_x86_64"
10534 ;;
10535 *)
10536 LD="${LD-ld} -m elf_i386"
10537 ;;
10538 esac
10539 ;;
10540 powerpc64le-*linux*)
10541 LD="${LD-ld} -m elf32lppclinux"
10542 ;;
10543 powerpc64-*linux*)
10544 LD="${LD-ld} -m elf32ppclinux"
10545 ;;
10546 s390x-*linux*)
10547 LD="${LD-ld} -m elf_s390"
10548 ;;
10549 sparc64-*linux*)
10550 LD="${LD-ld} -m elf32_sparc"
10551 ;;
10552 esac
10553 ;;
10554 *64-bit*)
10555 case $host in
10556 x86_64-*kfreebsd*-gnu)
10557 LD="${LD-ld} -m elf_x86_64_fbsd"
10558 ;;
10559 x86_64-*linux*)
10560 LD="${LD-ld} -m elf_x86_64"
10561 ;;
10562 powerpcle-*linux*)
10563 LD="${LD-ld} -m elf64lppc"
10564 ;;
10565 powerpc-*linux*)
10566 LD="${LD-ld} -m elf64ppc"
10567 ;;
10568 s390*-*linux*|s390*-*tpf*)
10569 LD="${LD-ld} -m elf64_s390"
10570 ;;
10571 sparc*-*linux*)
10572 LD="${LD-ld} -m elf64_sparc"
10573 ;;
10574 esac
10575 ;;
10576 esac
10577 fi
10578 rm -rf conftest*
10579 ;;
10580
10581 *-*-sco3.2v5*)
10582 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10583 SAVE_CFLAGS="$CFLAGS"
10584 CFLAGS="$CFLAGS -belf"
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10586 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10587 if ${lt_cv_cc_needs_belf+:} false; then :
10588 $as_echo_n "(cached) " >&6
10589 else
10590 ac_ext=c
10591 ac_cpp='$CPP $CPPFLAGS'
10592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10595
10596 if test x$gcc_no_link = xyes; then
10597 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10598 fi
10599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10600 /* end confdefs.h. */
10601
10602 int
10603 main ()
10604 {
10605
10606 ;
10607 return 0;
10608 }
10609 _ACEOF
10610 if ac_fn_c_try_link "$LINENO"; then :
10611 lt_cv_cc_needs_belf=yes
10612 else
10613 lt_cv_cc_needs_belf=no
10614 fi
10615 rm -f core conftest.err conftest.$ac_objext \
10616 conftest$ac_exeext conftest.$ac_ext
10617 ac_ext=c
10618 ac_cpp='$CPP $CPPFLAGS'
10619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10622
10623 fi
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10625 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10626 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10627 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10628 CFLAGS="$SAVE_CFLAGS"
10629 fi
10630 ;;
10631 sparc*-*solaris*)
10632 # Find out which ABI we are using.
10633 echo 'int i;' > conftest.$ac_ext
10634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10635 (eval $ac_compile) 2>&5
10636 ac_status=$?
10637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10638 test $ac_status = 0; }; then
10639 case `/usr/bin/file conftest.o` in
10640 *64-bit*)
10641 case $lt_cv_prog_gnu_ld in
10642 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10643 *)
10644 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10645 LD="${LD-ld} -64"
10646 fi
10647 ;;
10648 esac
10649 ;;
10650 esac
10651 fi
10652 rm -rf conftest*
10653 ;;
10654 esac
10655
10656 need_locks="$enable_libtool_lock"
10657
10658
10659 case $host_os in
10660 rhapsody* | darwin*)
10661 if test -n "$ac_tool_prefix"; then
10662 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10663 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10665 $as_echo_n "checking for $ac_word... " >&6; }
10666 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10667 $as_echo_n "(cached) " >&6
10668 else
10669 if test -n "$DSYMUTIL"; then
10670 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10671 else
10672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673 for as_dir in $PATH
10674 do
10675 IFS=$as_save_IFS
10676 test -z "$as_dir" && as_dir=.
10677 for ac_exec_ext in '' $ac_executable_extensions; do
10678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10679 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10681 break 2
10682 fi
10683 done
10684 done
10685 IFS=$as_save_IFS
10686
10687 fi
10688 fi
10689 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10690 if test -n "$DSYMUTIL"; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10692 $as_echo "$DSYMUTIL" >&6; }
10693 else
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695 $as_echo "no" >&6; }
10696 fi
10697
10698
10699 fi
10700 if test -z "$ac_cv_prog_DSYMUTIL"; then
10701 ac_ct_DSYMUTIL=$DSYMUTIL
10702 # Extract the first word of "dsymutil", so it can be a program name with args.
10703 set dummy dsymutil; ac_word=$2
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10705 $as_echo_n "checking for $ac_word... " >&6; }
10706 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10707 $as_echo_n "(cached) " >&6
10708 else
10709 if test -n "$ac_ct_DSYMUTIL"; then
10710 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10711 else
10712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713 for as_dir in $PATH
10714 do
10715 IFS=$as_save_IFS
10716 test -z "$as_dir" && as_dir=.
10717 for ac_exec_ext in '' $ac_executable_extensions; do
10718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10719 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10721 break 2
10722 fi
10723 done
10724 done
10725 IFS=$as_save_IFS
10726
10727 fi
10728 fi
10729 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10730 if test -n "$ac_ct_DSYMUTIL"; then
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10732 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10733 else
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10735 $as_echo "no" >&6; }
10736 fi
10737
10738 if test "x$ac_ct_DSYMUTIL" = x; then
10739 DSYMUTIL=":"
10740 else
10741 case $cross_compiling:$ac_tool_warned in
10742 yes:)
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10745 ac_tool_warned=yes ;;
10746 esac
10747 DSYMUTIL=$ac_ct_DSYMUTIL
10748 fi
10749 else
10750 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10751 fi
10752
10753 if test -n "$ac_tool_prefix"; then
10754 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10755 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10757 $as_echo_n "checking for $ac_word... " >&6; }
10758 if ${ac_cv_prog_NMEDIT+:} false; then :
10759 $as_echo_n "(cached) " >&6
10760 else
10761 if test -n "$NMEDIT"; then
10762 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10763 else
10764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765 for as_dir in $PATH
10766 do
10767 IFS=$as_save_IFS
10768 test -z "$as_dir" && as_dir=.
10769 for ac_exec_ext in '' $ac_executable_extensions; do
10770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10771 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10773 break 2
10774 fi
10775 done
10776 done
10777 IFS=$as_save_IFS
10778
10779 fi
10780 fi
10781 NMEDIT=$ac_cv_prog_NMEDIT
10782 if test -n "$NMEDIT"; then
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10784 $as_echo "$NMEDIT" >&6; }
10785 else
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787 $as_echo "no" >&6; }
10788 fi
10789
10790
10791 fi
10792 if test -z "$ac_cv_prog_NMEDIT"; then
10793 ac_ct_NMEDIT=$NMEDIT
10794 # Extract the first word of "nmedit", so it can be a program name with args.
10795 set dummy nmedit; ac_word=$2
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10797 $as_echo_n "checking for $ac_word... " >&6; }
10798 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10799 $as_echo_n "(cached) " >&6
10800 else
10801 if test -n "$ac_ct_NMEDIT"; then
10802 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10803 else
10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805 for as_dir in $PATH
10806 do
10807 IFS=$as_save_IFS
10808 test -z "$as_dir" && as_dir=.
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10811 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 break 2
10814 fi
10815 done
10816 done
10817 IFS=$as_save_IFS
10818
10819 fi
10820 fi
10821 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10822 if test -n "$ac_ct_NMEDIT"; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10824 $as_echo "$ac_ct_NMEDIT" >&6; }
10825 else
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827 $as_echo "no" >&6; }
10828 fi
10829
10830 if test "x$ac_ct_NMEDIT" = x; then
10831 NMEDIT=":"
10832 else
10833 case $cross_compiling:$ac_tool_warned in
10834 yes:)
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10837 ac_tool_warned=yes ;;
10838 esac
10839 NMEDIT=$ac_ct_NMEDIT
10840 fi
10841 else
10842 NMEDIT="$ac_cv_prog_NMEDIT"
10843 fi
10844
10845 if test -n "$ac_tool_prefix"; then
10846 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10847 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10849 $as_echo_n "checking for $ac_word... " >&6; }
10850 if ${ac_cv_prog_LIPO+:} false; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 if test -n "$LIPO"; then
10854 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10855 else
10856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10857 for as_dir in $PATH
10858 do
10859 IFS=$as_save_IFS
10860 test -z "$as_dir" && as_dir=.
10861 for ac_exec_ext in '' $ac_executable_extensions; do
10862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10863 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10865 break 2
10866 fi
10867 done
10868 done
10869 IFS=$as_save_IFS
10870
10871 fi
10872 fi
10873 LIPO=$ac_cv_prog_LIPO
10874 if test -n "$LIPO"; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10876 $as_echo "$LIPO" >&6; }
10877 else
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879 $as_echo "no" >&6; }
10880 fi
10881
10882
10883 fi
10884 if test -z "$ac_cv_prog_LIPO"; then
10885 ac_ct_LIPO=$LIPO
10886 # Extract the first word of "lipo", so it can be a program name with args.
10887 set dummy lipo; ac_word=$2
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10889 $as_echo_n "checking for $ac_word... " >&6; }
10890 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 if test -n "$ac_ct_LIPO"; then
10894 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10895 else
10896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897 for as_dir in $PATH
10898 do
10899 IFS=$as_save_IFS
10900 test -z "$as_dir" && as_dir=.
10901 for ac_exec_ext in '' $ac_executable_extensions; do
10902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10903 ac_cv_prog_ac_ct_LIPO="lipo"
10904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10905 break 2
10906 fi
10907 done
10908 done
10909 IFS=$as_save_IFS
10910
10911 fi
10912 fi
10913 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10914 if test -n "$ac_ct_LIPO"; then
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10916 $as_echo "$ac_ct_LIPO" >&6; }
10917 else
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; }
10920 fi
10921
10922 if test "x$ac_ct_LIPO" = x; then
10923 LIPO=":"
10924 else
10925 case $cross_compiling:$ac_tool_warned in
10926 yes:)
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10929 ac_tool_warned=yes ;;
10930 esac
10931 LIPO=$ac_ct_LIPO
10932 fi
10933 else
10934 LIPO="$ac_cv_prog_LIPO"
10935 fi
10936
10937 if test -n "$ac_tool_prefix"; then
10938 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10939 set dummy ${ac_tool_prefix}otool; ac_word=$2
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10941 $as_echo_n "checking for $ac_word... " >&6; }
10942 if ${ac_cv_prog_OTOOL+:} false; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 if test -n "$OTOOL"; then
10946 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10947 else
10948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10949 for as_dir in $PATH
10950 do
10951 IFS=$as_save_IFS
10952 test -z "$as_dir" && as_dir=.
10953 for ac_exec_ext in '' $ac_executable_extensions; do
10954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10955 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10957 break 2
10958 fi
10959 done
10960 done
10961 IFS=$as_save_IFS
10962
10963 fi
10964 fi
10965 OTOOL=$ac_cv_prog_OTOOL
10966 if test -n "$OTOOL"; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10968 $as_echo "$OTOOL" >&6; }
10969 else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 $as_echo "no" >&6; }
10972 fi
10973
10974
10975 fi
10976 if test -z "$ac_cv_prog_OTOOL"; then
10977 ac_ct_OTOOL=$OTOOL
10978 # Extract the first word of "otool", so it can be a program name with args.
10979 set dummy otool; ac_word=$2
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10981 $as_echo_n "checking for $ac_word... " >&6; }
10982 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10983 $as_echo_n "(cached) " >&6
10984 else
10985 if test -n "$ac_ct_OTOOL"; then
10986 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10987 else
10988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10989 for as_dir in $PATH
10990 do
10991 IFS=$as_save_IFS
10992 test -z "$as_dir" && as_dir=.
10993 for ac_exec_ext in '' $ac_executable_extensions; do
10994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10995 ac_cv_prog_ac_ct_OTOOL="otool"
10996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10997 break 2
10998 fi
10999 done
11000 done
11001 IFS=$as_save_IFS
11002
11003 fi
11004 fi
11005 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11006 if test -n "$ac_ct_OTOOL"; then
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11008 $as_echo "$ac_ct_OTOOL" >&6; }
11009 else
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011 $as_echo "no" >&6; }
11012 fi
11013
11014 if test "x$ac_ct_OTOOL" = x; then
11015 OTOOL=":"
11016 else
11017 case $cross_compiling:$ac_tool_warned in
11018 yes:)
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11021 ac_tool_warned=yes ;;
11022 esac
11023 OTOOL=$ac_ct_OTOOL
11024 fi
11025 else
11026 OTOOL="$ac_cv_prog_OTOOL"
11027 fi
11028
11029 if test -n "$ac_tool_prefix"; then
11030 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11031 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033 $as_echo_n "checking for $ac_word... " >&6; }
11034 if ${ac_cv_prog_OTOOL64+:} false; then :
11035 $as_echo_n "(cached) " >&6
11036 else
11037 if test -n "$OTOOL64"; then
11038 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11039 else
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11042 do
11043 IFS=$as_save_IFS
11044 test -z "$as_dir" && as_dir=.
11045 for ac_exec_ext in '' $ac_executable_extensions; do
11046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11047 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11049 break 2
11050 fi
11051 done
11052 done
11053 IFS=$as_save_IFS
11054
11055 fi
11056 fi
11057 OTOOL64=$ac_cv_prog_OTOOL64
11058 if test -n "$OTOOL64"; then
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11060 $as_echo "$OTOOL64" >&6; }
11061 else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063 $as_echo "no" >&6; }
11064 fi
11065
11066
11067 fi
11068 if test -z "$ac_cv_prog_OTOOL64"; then
11069 ac_ct_OTOOL64=$OTOOL64
11070 # Extract the first word of "otool64", so it can be a program name with args.
11071 set dummy otool64; ac_word=$2
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11073 $as_echo_n "checking for $ac_word... " >&6; }
11074 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11075 $as_echo_n "(cached) " >&6
11076 else
11077 if test -n "$ac_ct_OTOOL64"; then
11078 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11079 else
11080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081 for as_dir in $PATH
11082 do
11083 IFS=$as_save_IFS
11084 test -z "$as_dir" && as_dir=.
11085 for ac_exec_ext in '' $ac_executable_extensions; do
11086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11087 ac_cv_prog_ac_ct_OTOOL64="otool64"
11088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11089 break 2
11090 fi
11091 done
11092 done
11093 IFS=$as_save_IFS
11094
11095 fi
11096 fi
11097 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11098 if test -n "$ac_ct_OTOOL64"; then
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11100 $as_echo "$ac_ct_OTOOL64" >&6; }
11101 else
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 $as_echo "no" >&6; }
11104 fi
11105
11106 if test "x$ac_ct_OTOOL64" = x; then
11107 OTOOL64=":"
11108 else
11109 case $cross_compiling:$ac_tool_warned in
11110 yes:)
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11113 ac_tool_warned=yes ;;
11114 esac
11115 OTOOL64=$ac_ct_OTOOL64
11116 fi
11117 else
11118 OTOOL64="$ac_cv_prog_OTOOL64"
11119 fi
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11148 $as_echo_n "checking for -single_module linker flag... " >&6; }
11149 if ${lt_cv_apple_cc_single_mod+:} false; then :
11150 $as_echo_n "(cached) " >&6
11151 else
11152 lt_cv_apple_cc_single_mod=no
11153 if test -z "${LT_MULTI_MODULE}"; then
11154 # By default we will add the -single_module flag. You can override
11155 # by either setting the environment variable LT_MULTI_MODULE
11156 # non-empty at configure time, or by adding -multi_module to the
11157 # link flags.
11158 rm -rf libconftest.dylib*
11159 echo "int foo(void){return 1;}" > conftest.c
11160 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11161 -dynamiclib -Wl,-single_module conftest.c" >&5
11162 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11163 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11164 _lt_result=$?
11165 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11166 lt_cv_apple_cc_single_mod=yes
11167 else
11168 cat conftest.err >&5
11169 fi
11170 rm -rf libconftest.dylib*
11171 rm -f conftest.*
11172 fi
11173 fi
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11175 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11177 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11178 if ${lt_cv_ld_exported_symbols_list+:} false; then :
11179 $as_echo_n "(cached) " >&6
11180 else
11181 lt_cv_ld_exported_symbols_list=no
11182 save_LDFLAGS=$LDFLAGS
11183 echo "_main" > conftest.sym
11184 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11185 if test x$gcc_no_link = xyes; then
11186 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11187 fi
11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11190
11191 int
11192 main ()
11193 {
11194
11195 ;
11196 return 0;
11197 }
11198 _ACEOF
11199 if ac_fn_c_try_link "$LINENO"; then :
11200 lt_cv_ld_exported_symbols_list=yes
11201 else
11202 lt_cv_ld_exported_symbols_list=no
11203 fi
11204 rm -f core conftest.err conftest.$ac_objext \
11205 conftest$ac_exeext conftest.$ac_ext
11206 LDFLAGS="$save_LDFLAGS"
11207
11208 fi
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11210 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11212 $as_echo_n "checking for -force_load linker flag... " >&6; }
11213 if ${lt_cv_ld_force_load+:} false; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 lt_cv_ld_force_load=no
11217 cat > conftest.c << _LT_EOF
11218 int forced_loaded() { return 2;}
11219 _LT_EOF
11220 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11221 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11222 echo "$AR cru libconftest.a conftest.o" >&5
11223 $AR cru libconftest.a conftest.o 2>&5
11224 cat > conftest.c << _LT_EOF
11225 int main() { return 0;}
11226 _LT_EOF
11227 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11228 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11229 _lt_result=$?
11230 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11231 lt_cv_ld_force_load=yes
11232 else
11233 cat conftest.err >&5
11234 fi
11235 rm -f conftest.err libconftest.a conftest conftest.c
11236 rm -rf conftest.dSYM
11237
11238 fi
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11240 $as_echo "$lt_cv_ld_force_load" >&6; }
11241 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
11242 # build without first building modern cctools / linker.
11243 case $host_cpu-$host_os in
11244 *-rhapsody* | *-darwin1.[012])
11245 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11246 *-darwin1.*)
11247 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11248 *-darwin*)
11249 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
11250 # deployment target is forced to an earlier version.
11251 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
11252 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
11253 ;;
11254 10.[012][,.]*)
11255 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11256 ;;
11257 *)
11258 ;;
11259 esac
11260 ;;
11261 esac
11262 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11263 _lt_dar_single_mod='$single_module'
11264 fi
11265 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11266 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11267 else
11268 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11269 fi
11270 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11271 _lt_dsymutil='~$DSYMUTIL $lib || :'
11272 else
11273 _lt_dsymutil=
11274 fi
11275 ;;
11276 esac
11277
11278 for ac_header in dlfcn.h
11279 do :
11280 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11281 "
11282 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11283 cat >>confdefs.h <<_ACEOF
11284 #define HAVE_DLFCN_H 1
11285 _ACEOF
11286
11287 fi
11288
11289 done
11290
11291
11292
11293
11294
11295 # Set options
11296
11297
11298
11299 enable_dlopen=no
11300
11301
11302 enable_win32_dll=no
11303
11304
11305 # Check whether --enable-shared was given.
11306 if test "${enable_shared+set}" = set; then :
11307 enableval=$enable_shared; p=${PACKAGE-default}
11308 case $enableval in
11309 yes) enable_shared=yes ;;
11310 no) enable_shared=no ;;
11311 *)
11312 enable_shared=no
11313 # Look at the argument we got. We use all the common list separators.
11314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11315 for pkg in $enableval; do
11316 IFS="$lt_save_ifs"
11317 if test "X$pkg" = "X$p"; then
11318 enable_shared=yes
11319 fi
11320 done
11321 IFS="$lt_save_ifs"
11322 ;;
11323 esac
11324 else
11325 enable_shared=yes
11326 fi
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336 # Check whether --enable-static was given.
11337 if test "${enable_static+set}" = set; then :
11338 enableval=$enable_static; p=${PACKAGE-default}
11339 case $enableval in
11340 yes) enable_static=yes ;;
11341 no) enable_static=no ;;
11342 *)
11343 enable_static=no
11344 # Look at the argument we got. We use all the common list separators.
11345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11346 for pkg in $enableval; do
11347 IFS="$lt_save_ifs"
11348 if test "X$pkg" = "X$p"; then
11349 enable_static=yes
11350 fi
11351 done
11352 IFS="$lt_save_ifs"
11353 ;;
11354 esac
11355 else
11356 enable_static=yes
11357 fi
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368 # Check whether --with-pic was given.
11369 if test "${with_pic+set}" = set; then :
11370 withval=$with_pic; pic_mode="$withval"
11371 else
11372 pic_mode=default
11373 fi
11374
11375
11376 test -z "$pic_mode" && pic_mode=default
11377
11378
11379
11380
11381
11382
11383
11384 # Check whether --enable-fast-install was given.
11385 if test "${enable_fast_install+set}" = set; then :
11386 enableval=$enable_fast_install; p=${PACKAGE-default}
11387 case $enableval in
11388 yes) enable_fast_install=yes ;;
11389 no) enable_fast_install=no ;;
11390 *)
11391 enable_fast_install=no
11392 # Look at the argument we got. We use all the common list separators.
11393 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11394 for pkg in $enableval; do
11395 IFS="$lt_save_ifs"
11396 if test "X$pkg" = "X$p"; then
11397 enable_fast_install=yes
11398 fi
11399 done
11400 IFS="$lt_save_ifs"
11401 ;;
11402 esac
11403 else
11404 enable_fast_install=yes
11405 fi
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417 # This can be used to rebuild libtool when needed
11418 LIBTOOL_DEPS="$ltmain"
11419
11420 # Always use our own libtool.
11421 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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 test -z "$LN_S" && LN_S="ln -s"
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463 if test -n "${ZSH_VERSION+set}" ; then
11464 setopt NO_GLOB_SUBST
11465 fi
11466
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11468 $as_echo_n "checking for objdir... " >&6; }
11469 if ${lt_cv_objdir+:} false; then :
11470 $as_echo_n "(cached) " >&6
11471 else
11472 rm -f .libs 2>/dev/null
11473 mkdir .libs 2>/dev/null
11474 if test -d .libs; then
11475 lt_cv_objdir=.libs
11476 else
11477 # MS-DOS does not allow filenames that begin with a dot.
11478 lt_cv_objdir=_libs
11479 fi
11480 rmdir .libs 2>/dev/null
11481 fi
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11483 $as_echo "$lt_cv_objdir" >&6; }
11484 objdir=$lt_cv_objdir
11485
11486
11487
11488
11489
11490 cat >>confdefs.h <<_ACEOF
11491 #define LT_OBJDIR "$lt_cv_objdir/"
11492 _ACEOF
11493
11494
11495
11496
11497 case $host_os in
11498 aix3*)
11499 # AIX sometimes has problems with the GCC collect2 program. For some
11500 # reason, if we set the COLLECT_NAMES environment variable, the problems
11501 # vanish in a puff of smoke.
11502 if test "X${COLLECT_NAMES+set}" != Xset; then
11503 COLLECT_NAMES=
11504 export COLLECT_NAMES
11505 fi
11506 ;;
11507 esac
11508
11509 # Global variables:
11510 ofile=libtool
11511 can_build_shared=yes
11512
11513 # All known linkers require a `.a' archive for static linking (except MSVC,
11514 # which needs '.lib').
11515 libext=a
11516
11517 with_gnu_ld="$lt_cv_prog_gnu_ld"
11518
11519 old_CC="$CC"
11520 old_CFLAGS="$CFLAGS"
11521
11522 # Set sane defaults for various variables
11523 test -z "$CC" && CC=cc
11524 test -z "$LTCC" && LTCC=$CC
11525 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11526 test -z "$LD" && LD=ld
11527 test -z "$ac_objext" && ac_objext=o
11528
11529 for cc_temp in $compiler""; do
11530 case $cc_temp in
11531 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11532 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11533 \-*) ;;
11534 *) break;;
11535 esac
11536 done
11537 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11538
11539
11540 # Only perform the check for file, if the check method requires it
11541 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11542 case $deplibs_check_method in
11543 file_magic*)
11544 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11546 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11547 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11548 $as_echo_n "(cached) " >&6
11549 else
11550 case $MAGIC_CMD in
11551 [\\/*] | ?:[\\/]*)
11552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11553 ;;
11554 *)
11555 lt_save_MAGIC_CMD="$MAGIC_CMD"
11556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11557 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11558 for ac_dir in $ac_dummy; do
11559 IFS="$lt_save_ifs"
11560 test -z "$ac_dir" && ac_dir=.
11561 if test -f $ac_dir/${ac_tool_prefix}file; then
11562 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11563 if test -n "$file_magic_test_file"; then
11564 case $deplibs_check_method in
11565 "file_magic "*)
11566 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11567 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11568 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11569 $EGREP "$file_magic_regex" > /dev/null; then
11570 :
11571 else
11572 cat <<_LT_EOF 1>&2
11573
11574 *** Warning: the command libtool uses to detect shared libraries,
11575 *** $file_magic_cmd, produces output that libtool cannot recognize.
11576 *** The result is that libtool may fail to recognize shared libraries
11577 *** as such. This will affect the creation of libtool libraries that
11578 *** depend on shared libraries, but programs linked with such libtool
11579 *** libraries will work regardless of this problem. Nevertheless, you
11580 *** may want to report the problem to your system manager and/or to
11581 *** [email protected]
11582
11583 _LT_EOF
11584 fi ;;
11585 esac
11586 fi
11587 break
11588 fi
11589 done
11590 IFS="$lt_save_ifs"
11591 MAGIC_CMD="$lt_save_MAGIC_CMD"
11592 ;;
11593 esac
11594 fi
11595
11596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11597 if test -n "$MAGIC_CMD"; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11599 $as_echo "$MAGIC_CMD" >&6; }
11600 else
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 $as_echo "no" >&6; }
11603 fi
11604
11605
11606
11607
11608
11609 if test -z "$lt_cv_path_MAGIC_CMD"; then
11610 if test -n "$ac_tool_prefix"; then
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11612 $as_echo_n "checking for file... " >&6; }
11613 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 case $MAGIC_CMD in
11617 [\\/*] | ?:[\\/]*)
11618 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11619 ;;
11620 *)
11621 lt_save_MAGIC_CMD="$MAGIC_CMD"
11622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11623 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11624 for ac_dir in $ac_dummy; do
11625 IFS="$lt_save_ifs"
11626 test -z "$ac_dir" && ac_dir=.
11627 if test -f $ac_dir/file; then
11628 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11629 if test -n "$file_magic_test_file"; then
11630 case $deplibs_check_method in
11631 "file_magic "*)
11632 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11633 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11634 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11635 $EGREP "$file_magic_regex" > /dev/null; then
11636 :
11637 else
11638 cat <<_LT_EOF 1>&2
11639
11640 *** Warning: the command libtool uses to detect shared libraries,
11641 *** $file_magic_cmd, produces output that libtool cannot recognize.
11642 *** The result is that libtool may fail to recognize shared libraries
11643 *** as such. This will affect the creation of libtool libraries that
11644 *** depend on shared libraries, but programs linked with such libtool
11645 *** libraries will work regardless of this problem. Nevertheless, you
11646 *** may want to report the problem to your system manager and/or to
11647 *** [email protected]
11648
11649 _LT_EOF
11650 fi ;;
11651 esac
11652 fi
11653 break
11654 fi
11655 done
11656 IFS="$lt_save_ifs"
11657 MAGIC_CMD="$lt_save_MAGIC_CMD"
11658 ;;
11659 esac
11660 fi
11661
11662 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11663 if test -n "$MAGIC_CMD"; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11665 $as_echo "$MAGIC_CMD" >&6; }
11666 else
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 $as_echo "no" >&6; }
11669 fi
11670
11671
11672 else
11673 MAGIC_CMD=:
11674 fi
11675 fi
11676
11677 fi
11678 ;;
11679 esac
11680
11681 # Use C for the default configuration in the libtool script
11682
11683 lt_save_CC="$CC"
11684 ac_ext=c
11685 ac_cpp='$CPP $CPPFLAGS'
11686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11689
11690
11691 # Source file extension for C test sources.
11692 ac_ext=c
11693
11694 # Object file extension for compiled C test sources.
11695 objext=o
11696 objext=$objext
11697
11698 # Code to be used in simple compile tests
11699 lt_simple_compile_test_code="int some_variable = 0;"
11700
11701 # Code to be used in simple link tests
11702 lt_simple_link_test_code='int main(){return(0);}'
11703
11704
11705
11706
11707
11708
11709
11710 # If no C compiler was specified, use CC.
11711 LTCC=${LTCC-"$CC"}
11712
11713 # If no C compiler flags were specified, use CFLAGS.
11714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11715
11716 # Allow CC to be a program name with arguments.
11717 compiler=$CC
11718
11719 # Save the default compiler, since it gets overwritten when the other
11720 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11721 compiler_DEFAULT=$CC
11722
11723 # save warnings/boilerplate of simple test code
11724 ac_outfile=conftest.$ac_objext
11725 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11726 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11727 _lt_compiler_boilerplate=`cat conftest.err`
11728 $RM conftest*
11729
11730 ac_outfile=conftest.$ac_objext
11731 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11732 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11733 _lt_linker_boilerplate=`cat conftest.err`
11734 $RM -r conftest*
11735
11736
11737 ## CAVEAT EMPTOR:
11738 ## There is no encapsulation within the following macros, do not change
11739 ## the running order or otherwise move them around unless you know exactly
11740 ## what you are doing...
11741 if test -n "$compiler"; then
11742
11743 lt_prog_compiler_no_builtin_flag=
11744
11745 if test "$GCC" = yes; then
11746 case $cc_basename in
11747 nvcc*)
11748 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11749 *)
11750 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11751 esac
11752
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11754 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11755 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 lt_cv_prog_compiler_rtti_exceptions=no
11759 ac_outfile=conftest.$ac_objext
11760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11761 lt_compiler_flag="-fno-rtti -fno-exceptions"
11762 # Insert the option either (1) after the last *FLAGS variable, or
11763 # (2) before a word containing "conftest.", or (3) at the end.
11764 # Note that $ac_compile itself does not contain backslashes and begins
11765 # with a dollar sign (not a hyphen), so the echo should work correctly.
11766 # The option is referenced via a variable to avoid confusing sed.
11767 lt_compile=`echo "$ac_compile" | $SED \
11768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11770 -e 's:$: $lt_compiler_flag:'`
11771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11772 (eval "$lt_compile" 2>conftest.err)
11773 ac_status=$?
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 if (exit $ac_status) && test -s "$ac_outfile"; then
11777 # The compiler can only warn and ignore the option if not recognized
11778 # So say no if there are warnings other than the usual output.
11779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11781 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11782 lt_cv_prog_compiler_rtti_exceptions=yes
11783 fi
11784 fi
11785 $RM conftest*
11786
11787 fi
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11789 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11790
11791 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11792 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11793 else
11794 :
11795 fi
11796
11797 fi
11798
11799
11800
11801
11802
11803
11804 lt_prog_compiler_wl=
11805 lt_prog_compiler_pic=
11806 lt_prog_compiler_static=
11807
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11809 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11810
11811 if test "$GCC" = yes; then
11812 lt_prog_compiler_wl='-Wl,'
11813 lt_prog_compiler_static='-static'
11814
11815 case $host_os in
11816 aix*)
11817 # All AIX code is PIC.
11818 if test "$host_cpu" = ia64; then
11819 # AIX 5 now supports IA64 processor
11820 lt_prog_compiler_static='-Bstatic'
11821 fi
11822 lt_prog_compiler_pic='-fPIC'
11823 ;;
11824
11825 amigaos*)
11826 case $host_cpu in
11827 powerpc)
11828 # see comment about AmigaOS4 .so support
11829 lt_prog_compiler_pic='-fPIC'
11830 ;;
11831 m68k)
11832 # FIXME: we need at least 68020 code to build shared libraries, but
11833 # adding the `-m68020' flag to GCC prevents building anything better,
11834 # like `-m68040'.
11835 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11836 ;;
11837 esac
11838 ;;
11839
11840 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11841 # PIC is the default for these OSes.
11842 ;;
11843
11844 mingw* | cygwin* | pw32* | os2* | cegcc*)
11845 # This hack is so that the source file can tell whether it is being
11846 # built for inclusion in a dll (and should export symbols for example).
11847 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11848 # (--disable-auto-import) libraries
11849 lt_prog_compiler_pic='-DDLL_EXPORT'
11850 ;;
11851
11852 darwin* | rhapsody*)
11853 # PIC is the default on this platform
11854 # Common symbols not allowed in MH_DYLIB files
11855 lt_prog_compiler_pic='-fno-common'
11856 ;;
11857
11858 haiku*)
11859 # PIC is the default for Haiku.
11860 # The "-static" flag exists, but is broken.
11861 lt_prog_compiler_static=
11862 ;;
11863
11864 hpux*)
11865 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11866 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11867 # sets the default TLS model and affects inlining.
11868 case $host_cpu in
11869 hppa*64*)
11870 # +Z the default
11871 ;;
11872 *)
11873 lt_prog_compiler_pic='-fPIC'
11874 ;;
11875 esac
11876 ;;
11877
11878 interix[3-9]*)
11879 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11880 # Instead, we relocate shared libraries at runtime.
11881 ;;
11882
11883 msdosdjgpp*)
11884 # Just because we use GCC doesn't mean we suddenly get shared libraries
11885 # on systems that don't support them.
11886 lt_prog_compiler_can_build_shared=no
11887 enable_shared=no
11888 ;;
11889
11890 *nto* | *qnx*)
11891 # QNX uses GNU C++, but need to define -shared option too, otherwise
11892 # it will coredump.
11893 lt_prog_compiler_pic='-fPIC -shared'
11894 ;;
11895
11896 sysv4*MP*)
11897 if test -d /usr/nec; then
11898 lt_prog_compiler_pic=-Kconform_pic
11899 fi
11900 ;;
11901
11902 *)
11903 lt_prog_compiler_pic='-fPIC'
11904 ;;
11905 esac
11906
11907 case $cc_basename in
11908 nvcc*) # Cuda Compiler Driver 2.2
11909 lt_prog_compiler_wl='-Xlinker '
11910 lt_prog_compiler_pic='-Xcompiler -fPIC'
11911 ;;
11912 esac
11913 else
11914 # PORTME Check for flag to pass linker flags through the system compiler.
11915 case $host_os in
11916 aix*)
11917 lt_prog_compiler_wl='-Wl,'
11918 if test "$host_cpu" = ia64; then
11919 # AIX 5 now supports IA64 processor
11920 lt_prog_compiler_static='-Bstatic'
11921 else
11922 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11923 fi
11924 ;;
11925
11926 mingw* | cygwin* | pw32* | os2* | cegcc*)
11927 # This hack is so that the source file can tell whether it is being
11928 # built for inclusion in a dll (and should export symbols for example).
11929 lt_prog_compiler_pic='-DDLL_EXPORT'
11930 ;;
11931
11932 hpux9* | hpux10* | hpux11*)
11933 lt_prog_compiler_wl='-Wl,'
11934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11935 # not for PA HP-UX.
11936 case $host_cpu in
11937 hppa*64*|ia64*)
11938 # +Z the default
11939 ;;
11940 *)
11941 lt_prog_compiler_pic='+Z'
11942 ;;
11943 esac
11944 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11945 lt_prog_compiler_static='${wl}-a ${wl}archive'
11946 ;;
11947
11948 irix5* | irix6* | nonstopux*)
11949 lt_prog_compiler_wl='-Wl,'
11950 # PIC (with -KPIC) is the default.
11951 lt_prog_compiler_static='-non_shared'
11952 ;;
11953
11954 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11955 case $cc_basename in
11956 # old Intel for x86_64 which still supported -KPIC.
11957 ecc*)
11958 lt_prog_compiler_wl='-Wl,'
11959 lt_prog_compiler_pic='-KPIC'
11960 lt_prog_compiler_static='-static'
11961 ;;
11962 # icc used to be incompatible with GCC.
11963 # ICC 10 doesn't accept -KPIC any more.
11964 icc* | ifort*)
11965 lt_prog_compiler_wl='-Wl,'
11966 lt_prog_compiler_pic='-fPIC'
11967 lt_prog_compiler_static='-static'
11968 ;;
11969 # Lahey Fortran 8.1.
11970 lf95*)
11971 lt_prog_compiler_wl='-Wl,'
11972 lt_prog_compiler_pic='--shared'
11973 lt_prog_compiler_static='--static'
11974 ;;
11975 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11976 # Portland Group compilers (*not* the Pentium gcc compiler,
11977 # which looks to be a dead project)
11978 lt_prog_compiler_wl='-Wl,'
11979 lt_prog_compiler_pic='-fpic'
11980 lt_prog_compiler_static='-Bstatic'
11981 ;;
11982 ccc*)
11983 lt_prog_compiler_wl='-Wl,'
11984 # All Alpha code is PIC.
11985 lt_prog_compiler_static='-non_shared'
11986 ;;
11987 xl* | bgxl* | bgf* | mpixl*)
11988 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11989 lt_prog_compiler_wl='-Wl,'
11990 lt_prog_compiler_pic='-qpic'
11991 lt_prog_compiler_static='-qstaticlink'
11992 ;;
11993 *)
11994 case `$CC -V 2>&1 | sed 5q` in
11995 *Sun\ F* | *Sun*Fortran*)
11996 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11997 lt_prog_compiler_pic='-KPIC'
11998 lt_prog_compiler_static='-Bstatic'
11999 lt_prog_compiler_wl=''
12000 ;;
12001 *Sun\ C*)
12002 # Sun C 5.9
12003 lt_prog_compiler_pic='-KPIC'
12004 lt_prog_compiler_static='-Bstatic'
12005 lt_prog_compiler_wl='-Wl,'
12006 ;;
12007 esac
12008 ;;
12009 esac
12010 ;;
12011
12012 newsos6)
12013 lt_prog_compiler_pic='-KPIC'
12014 lt_prog_compiler_static='-Bstatic'
12015 ;;
12016
12017 *nto* | *qnx*)
12018 # QNX uses GNU C++, but need to define -shared option too, otherwise
12019 # it will coredump.
12020 lt_prog_compiler_pic='-fPIC -shared'
12021 ;;
12022
12023 osf3* | osf4* | osf5*)
12024 lt_prog_compiler_wl='-Wl,'
12025 # All OSF/1 code is PIC.
12026 lt_prog_compiler_static='-non_shared'
12027 ;;
12028
12029 rdos*)
12030 lt_prog_compiler_static='-non_shared'
12031 ;;
12032
12033 solaris*)
12034 lt_prog_compiler_pic='-KPIC'
12035 lt_prog_compiler_static='-Bstatic'
12036 case $cc_basename in
12037 f77* | f90* | f95*)
12038 lt_prog_compiler_wl='-Qoption ld ';;
12039 *)
12040 lt_prog_compiler_wl='-Wl,';;
12041 esac
12042 ;;
12043
12044 sunos4*)
12045 lt_prog_compiler_wl='-Qoption ld '
12046 lt_prog_compiler_pic='-PIC'
12047 lt_prog_compiler_static='-Bstatic'
12048 ;;
12049
12050 sysv4 | sysv4.2uw2* | sysv4.3*)
12051 lt_prog_compiler_wl='-Wl,'
12052 lt_prog_compiler_pic='-KPIC'
12053 lt_prog_compiler_static='-Bstatic'
12054 ;;
12055
12056 sysv4*MP*)
12057 if test -d /usr/nec ;then
12058 lt_prog_compiler_pic='-Kconform_pic'
12059 lt_prog_compiler_static='-Bstatic'
12060 fi
12061 ;;
12062
12063 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12064 lt_prog_compiler_wl='-Wl,'
12065 lt_prog_compiler_pic='-KPIC'
12066 lt_prog_compiler_static='-Bstatic'
12067 ;;
12068
12069 unicos*)
12070 lt_prog_compiler_wl='-Wl,'
12071 lt_prog_compiler_can_build_shared=no
12072 ;;
12073
12074 uts4*)
12075 lt_prog_compiler_pic='-pic'
12076 lt_prog_compiler_static='-Bstatic'
12077 ;;
12078
12079 *)
12080 lt_prog_compiler_can_build_shared=no
12081 ;;
12082 esac
12083 fi
12084
12085 case $host_os in
12086 # For platforms which do not support PIC, -DPIC is meaningless:
12087 *djgpp*)
12088 lt_prog_compiler_pic=
12089 ;;
12090 *)
12091 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12092 ;;
12093 esac
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12095 $as_echo "$lt_prog_compiler_pic" >&6; }
12096
12097
12098
12099
12100
12101
12102 #
12103 # Check to make sure the PIC flag actually works.
12104 #
12105 if test -n "$lt_prog_compiler_pic"; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12107 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12108 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12109 $as_echo_n "(cached) " >&6
12110 else
12111 lt_cv_prog_compiler_pic_works=no
12112 ac_outfile=conftest.$ac_objext
12113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12114 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12115 # Insert the option either (1) after the last *FLAGS variable, or
12116 # (2) before a word containing "conftest.", or (3) at the end.
12117 # Note that $ac_compile itself does not contain backslashes and begins
12118 # with a dollar sign (not a hyphen), so the echo should work correctly.
12119 # The option is referenced via a variable to avoid confusing sed.
12120 lt_compile=`echo "$ac_compile" | $SED \
12121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12123 -e 's:$: $lt_compiler_flag:'`
12124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12125 (eval "$lt_compile" 2>conftest.err)
12126 ac_status=$?
12127 cat conftest.err >&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 if (exit $ac_status) && test -s "$ac_outfile"; then
12130 # The compiler can only warn and ignore the option if not recognized
12131 # So say no if there are warnings other than the usual output.
12132 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12134 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12135 lt_cv_prog_compiler_pic_works=yes
12136 fi
12137 fi
12138 $RM conftest*
12139
12140 fi
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12142 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12143
12144 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12145 case $lt_prog_compiler_pic in
12146 "" | " "*) ;;
12147 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12148 esac
12149 else
12150 lt_prog_compiler_pic=
12151 lt_prog_compiler_can_build_shared=no
12152 fi
12153
12154 fi
12155
12156
12157
12158
12159
12160
12161 #
12162 # Check to make sure the static flag actually works.
12163 #
12164 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12166 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12167 if ${lt_cv_prog_compiler_static_works+:} false; then :
12168 $as_echo_n "(cached) " >&6
12169 else
12170 lt_cv_prog_compiler_static_works=no
12171 save_LDFLAGS="$LDFLAGS"
12172 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12173 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12174 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12175 # The linker can only warn and ignore the option if not recognized
12176 # So say no if there are warnings
12177 if test -s conftest.err; then
12178 # Append any errors to the config.log.
12179 cat conftest.err 1>&5
12180 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12182 if diff conftest.exp conftest.er2 >/dev/null; then
12183 lt_cv_prog_compiler_static_works=yes
12184 fi
12185 else
12186 lt_cv_prog_compiler_static_works=yes
12187 fi
12188 fi
12189 $RM -r conftest*
12190 LDFLAGS="$save_LDFLAGS"
12191
12192 fi
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12194 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12195
12196 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12197 :
12198 else
12199 lt_prog_compiler_static=
12200 fi
12201
12202
12203
12204
12205
12206
12207
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12209 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12210 if ${lt_cv_prog_compiler_c_o+:} false; then :
12211 $as_echo_n "(cached) " >&6
12212 else
12213 lt_cv_prog_compiler_c_o=no
12214 $RM -r conftest 2>/dev/null
12215 mkdir conftest
12216 cd conftest
12217 mkdir out
12218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12219
12220 lt_compiler_flag="-o out/conftest2.$ac_objext"
12221 # Insert the option either (1) after the last *FLAGS variable, or
12222 # (2) before a word containing "conftest.", or (3) at the end.
12223 # Note that $ac_compile itself does not contain backslashes and begins
12224 # with a dollar sign (not a hyphen), so the echo should work correctly.
12225 lt_compile=`echo "$ac_compile" | $SED \
12226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12228 -e 's:$: $lt_compiler_flag:'`
12229 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12230 (eval "$lt_compile" 2>out/conftest.err)
12231 ac_status=$?
12232 cat out/conftest.err >&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12235 then
12236 # The compiler can only warn and ignore the option if not recognized
12237 # So say no if there are warnings
12238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12239 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12240 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12241 lt_cv_prog_compiler_c_o=yes
12242 fi
12243 fi
12244 chmod u+w . 2>&5
12245 $RM conftest*
12246 # SGI C++ compiler will create directory out/ii_files/ for
12247 # template instantiation
12248 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12249 $RM out/* && rmdir out
12250 cd ..
12251 $RM -r conftest
12252 $RM conftest*
12253
12254 fi
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12256 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12257
12258
12259
12260
12261
12262
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12264 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12265 if ${lt_cv_prog_compiler_c_o+:} false; then :
12266 $as_echo_n "(cached) " >&6
12267 else
12268 lt_cv_prog_compiler_c_o=no
12269 $RM -r conftest 2>/dev/null
12270 mkdir conftest
12271 cd conftest
12272 mkdir out
12273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12274
12275 lt_compiler_flag="-o out/conftest2.$ac_objext"
12276 # Insert the option either (1) after the last *FLAGS variable, or
12277 # (2) before a word containing "conftest.", or (3) at the end.
12278 # Note that $ac_compile itself does not contain backslashes and begins
12279 # with a dollar sign (not a hyphen), so the echo should work correctly.
12280 lt_compile=`echo "$ac_compile" | $SED \
12281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12283 -e 's:$: $lt_compiler_flag:'`
12284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12285 (eval "$lt_compile" 2>out/conftest.err)
12286 ac_status=$?
12287 cat out/conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12290 then
12291 # The compiler can only warn and ignore the option if not recognized
12292 # So say no if there are warnings
12293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12294 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12295 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12296 lt_cv_prog_compiler_c_o=yes
12297 fi
12298 fi
12299 chmod u+w . 2>&5
12300 $RM conftest*
12301 # SGI C++ compiler will create directory out/ii_files/ for
12302 # template instantiation
12303 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12304 $RM out/* && rmdir out
12305 cd ..
12306 $RM -r conftest
12307 $RM conftest*
12308
12309 fi
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12311 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12312
12313
12314
12315
12316 hard_links="nottested"
12317 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12318 # do not overwrite the value of need_locks provided by the user
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12320 $as_echo_n "checking if we can lock with hard links... " >&6; }
12321 hard_links=yes
12322 $RM conftest*
12323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12324 touch conftest.a
12325 ln conftest.a conftest.b 2>&5 || hard_links=no
12326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12328 $as_echo "$hard_links" >&6; }
12329 if test "$hard_links" = no; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12331 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12332 need_locks=warn
12333 fi
12334 else
12335 need_locks=no
12336 fi
12337
12338
12339
12340
12341
12342
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12344 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12345
12346 runpath_var=
12347 allow_undefined_flag=
12348 always_export_symbols=no
12349 archive_cmds=
12350 archive_expsym_cmds=
12351 compiler_needs_object=no
12352 enable_shared_with_static_runtimes=no
12353 export_dynamic_flag_spec=
12354 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12355 hardcode_automatic=no
12356 hardcode_direct=no
12357 hardcode_direct_absolute=no
12358 hardcode_libdir_flag_spec=
12359 hardcode_libdir_flag_spec_ld=
12360 hardcode_libdir_separator=
12361 hardcode_minus_L=no
12362 hardcode_shlibpath_var=unsupported
12363 inherit_rpath=no
12364 link_all_deplibs=unknown
12365 module_cmds=
12366 module_expsym_cmds=
12367 old_archive_from_new_cmds=
12368 old_archive_from_expsyms_cmds=
12369 thread_safe_flag_spec=
12370 whole_archive_flag_spec=
12371 # include_expsyms should be a list of space-separated symbols to be *always*
12372 # included in the symbol list
12373 include_expsyms=
12374 # exclude_expsyms can be an extended regexp of symbols to exclude
12375 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12376 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12377 # as well as any symbol that contains `d'.
12378 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12379 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12380 # platforms (ab)use it in PIC code, but their linkers get confused if
12381 # the symbol is explicitly referenced. Since portable code cannot
12382 # rely on this symbol name, it's probably fine to never include it in
12383 # preloaded symbol tables.
12384 # Exclude shared library initialization/finalization symbols.
12385 extract_expsyms_cmds=
12386
12387 case $host_os in
12388 cygwin* | mingw* | pw32* | cegcc*)
12389 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12390 # When not using gcc, we currently assume that we are using
12391 # Microsoft Visual C++.
12392 if test "$GCC" != yes; then
12393 with_gnu_ld=no
12394 fi
12395 ;;
12396 interix*)
12397 # we just hope/assume this is gcc and not c89 (= MSVC++)
12398 with_gnu_ld=yes
12399 ;;
12400 openbsd*)
12401 with_gnu_ld=no
12402 ;;
12403 esac
12404
12405 ld_shlibs=yes
12406
12407 # On some targets, GNU ld is compatible enough with the native linker
12408 # that we're better off using the native interface for both.
12409 lt_use_gnu_ld_interface=no
12410 if test "$with_gnu_ld" = yes; then
12411 case $host_os in
12412 aix*)
12413 # The AIX port of GNU ld has always aspired to compatibility
12414 # with the native linker. However, as the warning in the GNU ld
12415 # block says, versions before 2.19.5* couldn't really create working
12416 # shared libraries, regardless of the interface used.
12417 case `$LD -v 2>&1` in
12418 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12419 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12420 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12421 *)
12422 lt_use_gnu_ld_interface=yes
12423 ;;
12424 esac
12425 ;;
12426 *)
12427 lt_use_gnu_ld_interface=yes
12428 ;;
12429 esac
12430 fi
12431
12432 if test "$lt_use_gnu_ld_interface" = yes; then
12433 # If archive_cmds runs LD, not CC, wlarc should be empty
12434 wlarc='${wl}'
12435
12436 # Set some defaults for GNU ld with shared library support. These
12437 # are reset later if shared libraries are not supported. Putting them
12438 # here allows them to be overridden if necessary.
12439 runpath_var=LD_RUN_PATH
12440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12441 export_dynamic_flag_spec='${wl}--export-dynamic'
12442 # ancient GNU ld didn't support --whole-archive et. al.
12443 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12444 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12445 else
12446 whole_archive_flag_spec=
12447 fi
12448 supports_anon_versioning=no
12449 case `$LD -v 2>&1` in
12450 *GNU\ gold*) supports_anon_versioning=yes ;;
12451 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12452 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12453 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12454 *\ 2.11.*) ;; # other 2.11 versions
12455 *) supports_anon_versioning=yes ;;
12456 esac
12457
12458 # See if GNU ld supports shared libraries.
12459 case $host_os in
12460 aix[3-9]*)
12461 # On AIX/PPC, the GNU linker is very broken
12462 if test "$host_cpu" != ia64; then
12463 ld_shlibs=no
12464 cat <<_LT_EOF 1>&2
12465
12466 *** Warning: the GNU linker, at least up to release 2.19, is reported
12467 *** to be unable to reliably create shared libraries on AIX.
12468 *** Therefore, libtool is disabling shared libraries support. If you
12469 *** really care for shared libraries, you may want to install binutils
12470 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12471 *** You will then need to restart the configuration process.
12472
12473 _LT_EOF
12474 fi
12475 ;;
12476
12477 amigaos*)
12478 case $host_cpu in
12479 powerpc)
12480 # see comment about AmigaOS4 .so support
12481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12482 archive_expsym_cmds=''
12483 ;;
12484 m68k)
12485 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)'
12486 hardcode_libdir_flag_spec='-L$libdir'
12487 hardcode_minus_L=yes
12488 ;;
12489 esac
12490 ;;
12491
12492 beos*)
12493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12494 allow_undefined_flag=unsupported
12495 # Joseph Beckenbach <[email protected]> says some releases of gcc
12496 # support --undefined. This deserves some investigation. FIXME
12497 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12498 else
12499 ld_shlibs=no
12500 fi
12501 ;;
12502
12503 cygwin* | mingw* | pw32* | cegcc*)
12504 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12505 # as there is no search path for DLLs.
12506 hardcode_libdir_flag_spec='-L$libdir'
12507 export_dynamic_flag_spec='${wl}--export-all-symbols'
12508 allow_undefined_flag=unsupported
12509 always_export_symbols=no
12510 enable_shared_with_static_runtimes=yes
12511 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12512
12513 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12515 # If the export-symbols file already is a .def file (1st line
12516 # is EXPORTS), use it as is; otherwise, prepend...
12517 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12518 cp $export_symbols $output_objdir/$soname.def;
12519 else
12520 echo EXPORTS > $output_objdir/$soname.def;
12521 cat $export_symbols >> $output_objdir/$soname.def;
12522 fi~
12523 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12524 else
12525 ld_shlibs=no
12526 fi
12527 ;;
12528
12529 haiku*)
12530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12531 link_all_deplibs=yes
12532 ;;
12533
12534 interix[3-9]*)
12535 hardcode_direct=no
12536 hardcode_shlibpath_var=no
12537 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12538 export_dynamic_flag_spec='${wl}-E'
12539 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12540 # Instead, shared libraries are loaded at an image base (0x10000000 by
12541 # default) and relocated if they conflict, which is a slow very memory
12542 # consuming and fragmenting process. To avoid this, we pick a random,
12543 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12544 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12545 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12546 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'
12547 ;;
12548
12549 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12550 tmp_diet=no
12551 if test "$host_os" = linux-dietlibc; then
12552 case $cc_basename in
12553 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12554 esac
12555 fi
12556 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12557 && test "$tmp_diet" = no
12558 then
12559 tmp_addflag=' $pic_flag'
12560 tmp_sharedflag='-shared'
12561 case $cc_basename,$host_cpu in
12562 pgcc*) # Portland Group C compiler
12563 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'
12564 tmp_addflag=' $pic_flag'
12565 ;;
12566 pgf77* | pgf90* | pgf95* | pgfortran*)
12567 # Portland Group f77 and f90 compilers
12568 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'
12569 tmp_addflag=' $pic_flag -Mnomain' ;;
12570 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12571 tmp_addflag=' -i_dynamic' ;;
12572 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12573 tmp_addflag=' -i_dynamic -nofor_main' ;;
12574 ifc* | ifort*) # Intel Fortran compiler
12575 tmp_addflag=' -nofor_main' ;;
12576 lf95*) # Lahey Fortran 8.1
12577 whole_archive_flag_spec=
12578 tmp_sharedflag='--shared' ;;
12579 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12580 tmp_sharedflag='-qmkshrobj'
12581 tmp_addflag= ;;
12582 nvcc*) # Cuda Compiler Driver 2.2
12583 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'
12584 compiler_needs_object=yes
12585 ;;
12586 esac
12587 case `$CC -V 2>&1 | sed 5q` in
12588 *Sun\ C*) # Sun C 5.9
12589 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'
12590 compiler_needs_object=yes
12591 tmp_sharedflag='-G' ;;
12592 *Sun\ F*) # Sun Fortran 8.3
12593 tmp_sharedflag='-G' ;;
12594 esac
12595 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12596
12597 if test "x$supports_anon_versioning" = xyes; then
12598 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12599 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12600 echo "local: *; };" >> $output_objdir/$libname.ver~
12601 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12602 fi
12603
12604 case $cc_basename in
12605 xlf* | bgf* | bgxlf* | mpixlf*)
12606 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12607 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12608 hardcode_libdir_flag_spec=
12609 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12610 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12611 if test "x$supports_anon_versioning" = xyes; then
12612 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12614 echo "local: *; };" >> $output_objdir/$libname.ver~
12615 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12616 fi
12617 ;;
12618 esac
12619 else
12620 ld_shlibs=no
12621 fi
12622 ;;
12623
12624 netbsd*)
12625 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12626 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12627 wlarc=
12628 else
12629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12631 fi
12632 ;;
12633
12634 solaris*)
12635 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12636 ld_shlibs=no
12637 cat <<_LT_EOF 1>&2
12638
12639 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12640 *** create shared libraries on Solaris systems. Therefore, libtool
12641 *** is disabling shared libraries support. We urge you to upgrade GNU
12642 *** binutils to release 2.9.1 or newer. Another option is to modify
12643 *** your PATH or compiler configuration so that the native linker is
12644 *** used, and then restart.
12645
12646 _LT_EOF
12647 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12650 else
12651 ld_shlibs=no
12652 fi
12653 ;;
12654
12655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12656 case `$LD -v 2>&1` in
12657 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12658 ld_shlibs=no
12659 cat <<_LT_EOF 1>&2
12660
12661 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12662 *** reliably create shared libraries on SCO systems. Therefore, libtool
12663 *** is disabling shared libraries support. We urge you to upgrade GNU
12664 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12665 *** your PATH or compiler configuration so that the native linker is
12666 *** used, and then restart.
12667
12668 _LT_EOF
12669 ;;
12670 *)
12671 # For security reasons, it is highly recommended that you always
12672 # use absolute paths for naming shared libraries, and exclude the
12673 # DT_RUNPATH tag from executables and libraries. But doing so
12674 # requires that you compile everything twice, which is a pain.
12675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12679 else
12680 ld_shlibs=no
12681 fi
12682 ;;
12683 esac
12684 ;;
12685
12686 sunos4*)
12687 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12688 wlarc=
12689 hardcode_direct=yes
12690 hardcode_shlibpath_var=no
12691 ;;
12692
12693 *)
12694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12696 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12697 else
12698 ld_shlibs=no
12699 fi
12700 ;;
12701 esac
12702
12703 if test "$ld_shlibs" = no; then
12704 runpath_var=
12705 hardcode_libdir_flag_spec=
12706 export_dynamic_flag_spec=
12707 whole_archive_flag_spec=
12708 fi
12709 else
12710 # PORTME fill in a description of your system's linker (not GNU ld)
12711 case $host_os in
12712 aix3*)
12713 allow_undefined_flag=unsupported
12714 always_export_symbols=yes
12715 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'
12716 # Note: this linker hardcodes the directories in LIBPATH if there
12717 # are no directories specified by -L.
12718 hardcode_minus_L=yes
12719 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12720 # Neither direct hardcoding nor static linking is supported with a
12721 # broken collect2.
12722 hardcode_direct=unsupported
12723 fi
12724 ;;
12725
12726 aix[4-9]*)
12727 if test "$host_cpu" = ia64; then
12728 # On IA64, the linker does run time linking by default, so we don't
12729 # have to do anything special.
12730 aix_use_runtimelinking=no
12731 exp_sym_flag='-Bexport'
12732 no_entry_flag=""
12733 else
12734 # If we're using GNU nm, then we don't want the "-C" option.
12735 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12736 # Also, AIX nm treats weak defined symbols like other global
12737 # defined symbols, whereas GNU nm marks them as "W".
12738 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12739 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'
12740 else
12741 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'
12742 fi
12743 aix_use_runtimelinking=no
12744
12745 # Test if we are trying to use run time linking or normal
12746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12747 # need to do runtime linking.
12748 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12749 for ld_flag in $LDFLAGS; do
12750 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12751 aix_use_runtimelinking=yes
12752 break
12753 fi
12754 done
12755 ;;
12756 esac
12757
12758 exp_sym_flag='-bexport'
12759 no_entry_flag='-bnoentry'
12760 fi
12761
12762 # When large executables or shared objects are built, AIX ld can
12763 # have problems creating the table of contents. If linking a library
12764 # or program results in "error TOC overflow" add -mminimal-toc to
12765 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12766 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12767
12768 archive_cmds=''
12769 hardcode_direct=yes
12770 hardcode_direct_absolute=yes
12771 hardcode_libdir_separator=':'
12772 link_all_deplibs=yes
12773 file_list_spec='${wl}-f,'
12774
12775 if test "$GCC" = yes; then
12776 case $host_os in aix4.[012]|aix4.[012].*)
12777 # We only want to do this on AIX 4.2 and lower, the check
12778 # below for broken collect2 doesn't work under 4.3+
12779 collect2name=`${CC} -print-prog-name=collect2`
12780 if test -f "$collect2name" &&
12781 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12782 then
12783 # We have reworked collect2
12784 :
12785 else
12786 # We have old collect2
12787 hardcode_direct=unsupported
12788 # It fails to find uninstalled libraries when the uninstalled
12789 # path is not listed in the libpath. Setting hardcode_minus_L
12790 # to unsupported forces relinking
12791 hardcode_minus_L=yes
12792 hardcode_libdir_flag_spec='-L$libdir'
12793 hardcode_libdir_separator=
12794 fi
12795 ;;
12796 esac
12797 shared_flag='-shared'
12798 if test "$aix_use_runtimelinking" = yes; then
12799 shared_flag="$shared_flag "'${wl}-G'
12800 fi
12801 else
12802 # not using gcc
12803 if test "$host_cpu" = ia64; then
12804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12805 # chokes on -Wl,-G. The following line is correct:
12806 shared_flag='-G'
12807 else
12808 if test "$aix_use_runtimelinking" = yes; then
12809 shared_flag='${wl}-G'
12810 else
12811 shared_flag='${wl}-bM:SRE'
12812 fi
12813 fi
12814 fi
12815
12816 export_dynamic_flag_spec='${wl}-bexpall'
12817 # It seems that -bexpall does not export symbols beginning with
12818 # underscore (_), so it is better to generate a list of symbols to export.
12819 always_export_symbols=yes
12820 if test "$aix_use_runtimelinking" = yes; then
12821 # Warning - without using the other runtime loading flags (-brtl),
12822 # -berok will link without error, but may produce a broken library.
12823 allow_undefined_flag='-berok'
12824 # Determine the default libpath from the value encoded in an
12825 # empty executable.
12826 if test x$gcc_no_link = xyes; then
12827 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12828 fi
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12831
12832 int
12833 main ()
12834 {
12835
12836 ;
12837 return 0;
12838 }
12839 _ACEOF
12840 if ac_fn_c_try_link "$LINENO"; then :
12841
12842 lt_aix_libpath_sed='
12843 /Import File Strings/,/^$/ {
12844 /^0/ {
12845 s/^0 *\(.*\)$/\1/
12846 p
12847 }
12848 }'
12849 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12850 # Check for a 64-bit object if we didn't find anything.
12851 if test -z "$aix_libpath"; then
12852 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12853 fi
12854 fi
12855 rm -f core conftest.err conftest.$ac_objext \
12856 conftest$ac_exeext conftest.$ac_ext
12857 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12858
12859 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12860 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"
12861 else
12862 if test "$host_cpu" = ia64; then
12863 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12864 allow_undefined_flag="-z nodefs"
12865 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"
12866 else
12867 # Determine the default libpath from the value encoded in an
12868 # empty executable.
12869 if test x$gcc_no_link = xyes; then
12870 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12871 fi
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12874
12875 int
12876 main ()
12877 {
12878
12879 ;
12880 return 0;
12881 }
12882 _ACEOF
12883 if ac_fn_c_try_link "$LINENO"; then :
12884
12885 lt_aix_libpath_sed='
12886 /Import File Strings/,/^$/ {
12887 /^0/ {
12888 s/^0 *\(.*\)$/\1/
12889 p
12890 }
12891 }'
12892 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12893 # Check for a 64-bit object if we didn't find anything.
12894 if test -z "$aix_libpath"; then
12895 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12896 fi
12897 fi
12898 rm -f core conftest.err conftest.$ac_objext \
12899 conftest$ac_exeext conftest.$ac_ext
12900 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12901
12902 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12903 # Warning - without using the other run time loading flags,
12904 # -berok will link without error, but may produce a broken library.
12905 no_undefined_flag=' ${wl}-bernotok'
12906 allow_undefined_flag=' ${wl}-berok'
12907 if test "$with_gnu_ld" = yes; then
12908 # We only use this code for GNU lds that support --whole-archive.
12909 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12910 else
12911 # Exported symbols can be pulled into shared objects from archives
12912 whole_archive_flag_spec='$convenience'
12913 fi
12914 archive_cmds_need_lc=yes
12915 # This is similar to how AIX traditionally builds its shared libraries.
12916 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'
12917 fi
12918 fi
12919 ;;
12920
12921 amigaos*)
12922 case $host_cpu in
12923 powerpc)
12924 # see comment about AmigaOS4 .so support
12925 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12926 archive_expsym_cmds=''
12927 ;;
12928 m68k)
12929 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)'
12930 hardcode_libdir_flag_spec='-L$libdir'
12931 hardcode_minus_L=yes
12932 ;;
12933 esac
12934 ;;
12935
12936 bsdi[45]*)
12937 export_dynamic_flag_spec=-rdynamic
12938 ;;
12939
12940 cygwin* | mingw* | pw32* | cegcc*)
12941 # When not using gcc, we currently assume that we are using
12942 # Microsoft Visual C++.
12943 # hardcode_libdir_flag_spec is actually meaningless, as there is
12944 # no search path for DLLs.
12945 hardcode_libdir_flag_spec=' '
12946 allow_undefined_flag=unsupported
12947 # Tell ltmain to make .lib files, not .a files.
12948 libext=lib
12949 # Tell ltmain to make .dll files, not .so files.
12950 shrext_cmds=".dll"
12951 # FIXME: Setting linknames here is a bad hack.
12952 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12953 # The linker will automatically build a .lib file if we build a DLL.
12954 old_archive_from_new_cmds='true'
12955 # FIXME: Should let the user specify the lib program.
12956 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12957 fix_srcfile_path='`cygpath -w "$srcfile"`'
12958 enable_shared_with_static_runtimes=yes
12959 ;;
12960
12961 darwin* | rhapsody*)
12962
12963
12964
12965 # Publish an arg to allow the user to select that Darwin host (and target)
12966 # libraries should be given install-names like @rpath/libfoo.dylib. This
12967 # requires that the user of the library then adds an 'rpath' to the DSO that
12968 # needs access.
12969 # NOTE: there are defaults below, for systems that support rpaths. The person
12970 # configuring can override the defaults for any system version that supports
12971 # them - they are, however, forced off for system versions without support.
12972 # Check whether --enable-darwin-at-rpath was given.
12973 if test "${enable_darwin_at_rpath+set}" = set; then :
12974 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
12975 # This is not supported before macOS 10.5 / Darwin9.
12976 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
12977 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
12979 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
12980 enable_darwin_at_rpath=no
12981 ;;
12982 esac
12983 fi
12984 else
12985 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
12986 # As above, before 10.5 / Darwin9 this does not work.
12987 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
12988 enable_darwin_at_rpath=no
12989 ;;
12990
12991 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
12992 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
12993 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
12994 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
12996 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
12997 enable_darwin_at_rpath=yes
12998 ;;
12999 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
13000 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
13001
13002 esac
13003
13004 fi
13005
13006
13007 archive_cmds_need_lc=no
13008 hardcode_direct=no
13009 hardcode_automatic=yes
13010 hardcode_shlibpath_var=unsupported
13011 if test "$lt_cv_ld_force_load" = "yes"; then
13012 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\"`'
13013 else
13014 whole_archive_flag_spec=''
13015 fi
13016 link_all_deplibs=yes
13017 allow_undefined_flag="$_lt_dar_allow_undefined"
13018 case $cc_basename in
13019 ifort*) _lt_dar_can_shared=yes ;;
13020 *) _lt_dar_can_shared=$GCC ;;
13021 esac
13022 if test "$_lt_dar_can_shared" = "yes"; then
13023 output_verbose_link_cmd=func_echo_all
13024 _lt_install_name='\$rpath/\$soname'
13025 if test "x$enable_darwin_at_rpath" = "xyes"; then
13026 _lt_install_name='@rpath/\$soname'
13027 fi
13028 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
13029 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13030 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
13031 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}"
13032
13033 else
13034 ld_shlibs=no
13035 fi
13036
13037 ;;
13038
13039 dgux*)
13040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13041 hardcode_libdir_flag_spec='-L$libdir'
13042 hardcode_shlibpath_var=no
13043 ;;
13044
13045 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13046 # support. Future versions do this automatically, but an explicit c++rt0.o
13047 # does not break anything, and helps significantly (at the cost of a little
13048 # extra space).
13049 freebsd2.2*)
13050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13051 hardcode_libdir_flag_spec='-R$libdir'
13052 hardcode_direct=yes
13053 hardcode_shlibpath_var=no
13054 ;;
13055
13056 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13057 freebsd2.*)
13058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13059 hardcode_direct=yes
13060 hardcode_minus_L=yes
13061 hardcode_shlibpath_var=no
13062 ;;
13063
13064 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13065 freebsd* | dragonfly*)
13066 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13067 hardcode_libdir_flag_spec='-R$libdir'
13068 hardcode_direct=yes
13069 hardcode_shlibpath_var=no
13070 ;;
13071
13072 hpux9*)
13073 if test "$GCC" = yes; then
13074 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'
13075 else
13076 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'
13077 fi
13078 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13079 hardcode_libdir_separator=:
13080 hardcode_direct=yes
13081
13082 # hardcode_minus_L: Not really in the search PATH,
13083 # but as the default location of the library.
13084 hardcode_minus_L=yes
13085 export_dynamic_flag_spec='${wl}-E'
13086 ;;
13087
13088 hpux10*)
13089 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13090 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13091 else
13092 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13093 fi
13094 if test "$with_gnu_ld" = no; then
13095 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13096 hardcode_libdir_flag_spec_ld='+b $libdir'
13097 hardcode_libdir_separator=:
13098 hardcode_direct=yes
13099 hardcode_direct_absolute=yes
13100 export_dynamic_flag_spec='${wl}-E'
13101 # hardcode_minus_L: Not really in the search PATH,
13102 # but as the default location of the library.
13103 hardcode_minus_L=yes
13104 fi
13105 ;;
13106
13107 hpux11*)
13108 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13109 case $host_cpu in
13110 hppa*64*)
13111 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13112 ;;
13113 ia64*)
13114 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13115 ;;
13116 *)
13117 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13118 ;;
13119 esac
13120 else
13121 case $host_cpu in
13122 hppa*64*)
13123 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13124 ;;
13125 ia64*)
13126 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13127 ;;
13128 *)
13129
13130 # Older versions of the 11.00 compiler do not understand -b yet
13131 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13133 $as_echo_n "checking if $CC understands -b... " >&6; }
13134 if ${lt_cv_prog_compiler__b+:} false; then :
13135 $as_echo_n "(cached) " >&6
13136 else
13137 lt_cv_prog_compiler__b=no
13138 save_LDFLAGS="$LDFLAGS"
13139 LDFLAGS="$LDFLAGS -b"
13140 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13142 # The linker can only warn and ignore the option if not recognized
13143 # So say no if there are warnings
13144 if test -s conftest.err; then
13145 # Append any errors to the config.log.
13146 cat conftest.err 1>&5
13147 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13149 if diff conftest.exp conftest.er2 >/dev/null; then
13150 lt_cv_prog_compiler__b=yes
13151 fi
13152 else
13153 lt_cv_prog_compiler__b=yes
13154 fi
13155 fi
13156 $RM -r conftest*
13157 LDFLAGS="$save_LDFLAGS"
13158
13159 fi
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13161 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13162
13163 if test x"$lt_cv_prog_compiler__b" = xyes; then
13164 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13165 else
13166 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13167 fi
13168
13169 ;;
13170 esac
13171 fi
13172 if test "$with_gnu_ld" = no; then
13173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13174 hardcode_libdir_separator=:
13175
13176 case $host_cpu in
13177 hppa*64*|ia64*)
13178 hardcode_direct=no
13179 hardcode_shlibpath_var=no
13180 ;;
13181 *)
13182 hardcode_direct=yes
13183 hardcode_direct_absolute=yes
13184 export_dynamic_flag_spec='${wl}-E'
13185
13186 # hardcode_minus_L: Not really in the search PATH,
13187 # but as the default location of the library.
13188 hardcode_minus_L=yes
13189 ;;
13190 esac
13191 fi
13192 ;;
13193
13194 irix5* | irix6* | nonstopux*)
13195 if test "$GCC" = yes; then
13196 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'
13197 # Try to use the -exported_symbol ld option, if it does not
13198 # work, assume that -exports_file does not work either and
13199 # implicitly export all symbols.
13200 save_LDFLAGS="$LDFLAGS"
13201 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13202 if test x$gcc_no_link = xyes; then
13203 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13204 fi
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13207 int foo(void) {}
13208 _ACEOF
13209 if ac_fn_c_try_link "$LINENO"; then :
13210 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'
13211
13212 fi
13213 rm -f core conftest.err conftest.$ac_objext \
13214 conftest$ac_exeext conftest.$ac_ext
13215 LDFLAGS="$save_LDFLAGS"
13216 else
13217 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'
13218 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'
13219 fi
13220 archive_cmds_need_lc='no'
13221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13222 hardcode_libdir_separator=:
13223 inherit_rpath=yes
13224 link_all_deplibs=yes
13225 ;;
13226
13227 netbsd*)
13228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13230 else
13231 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13232 fi
13233 hardcode_libdir_flag_spec='-R$libdir'
13234 hardcode_direct=yes
13235 hardcode_shlibpath_var=no
13236 ;;
13237
13238 newsos6)
13239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13240 hardcode_direct=yes
13241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13242 hardcode_libdir_separator=:
13243 hardcode_shlibpath_var=no
13244 ;;
13245
13246 *nto* | *qnx*)
13247 ;;
13248
13249 openbsd*)
13250 if test -f /usr/libexec/ld.so; then
13251 hardcode_direct=yes
13252 hardcode_shlibpath_var=no
13253 hardcode_direct_absolute=yes
13254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13256 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13258 export_dynamic_flag_spec='${wl}-E'
13259 else
13260 case $host_os in
13261 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13263 hardcode_libdir_flag_spec='-R$libdir'
13264 ;;
13265 *)
13266 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13267 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13268 ;;
13269 esac
13270 fi
13271 else
13272 ld_shlibs=no
13273 fi
13274 ;;
13275
13276 os2*)
13277 hardcode_libdir_flag_spec='-L$libdir'
13278 hardcode_minus_L=yes
13279 allow_undefined_flag=unsupported
13280 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'
13281 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13282 ;;
13283
13284 osf3*)
13285 if test "$GCC" = yes; then
13286 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13287 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'
13288 else
13289 allow_undefined_flag=' -expect_unresolved \*'
13290 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'
13291 fi
13292 archive_cmds_need_lc='no'
13293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13294 hardcode_libdir_separator=:
13295 ;;
13296
13297 osf4* | osf5*) # as osf3* with the addition of -msym flag
13298 if test "$GCC" = yes; then
13299 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13300 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'
13301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13302 else
13303 allow_undefined_flag=' -expect_unresolved \*'
13304 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'
13305 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~
13306 $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'
13307
13308 # Both c and cxx compiler support -rpath directly
13309 hardcode_libdir_flag_spec='-rpath $libdir'
13310 fi
13311 archive_cmds_need_lc='no'
13312 hardcode_libdir_separator=:
13313 ;;
13314
13315 solaris*)
13316 no_undefined_flag=' -z defs'
13317 if test "$GCC" = yes; then
13318 wlarc='${wl}'
13319 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13320 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13321 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13322 else
13323 case `$CC -V 2>&1` in
13324 *"Compilers 5.0"*)
13325 wlarc=''
13326 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13328 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13329 ;;
13330 *)
13331 wlarc='${wl}'
13332 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13333 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13334 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13335 ;;
13336 esac
13337 fi
13338 hardcode_libdir_flag_spec='-R$libdir'
13339 hardcode_shlibpath_var=no
13340 case $host_os in
13341 solaris2.[0-5] | solaris2.[0-5].*) ;;
13342 *)
13343 # The compiler driver will combine and reorder linker options,
13344 # but understands `-z linker_flag'. GCC discards it without `$wl',
13345 # but is careful enough not to reorder.
13346 # Supported since Solaris 2.6 (maybe 2.5.1?)
13347 if test "$GCC" = yes; then
13348 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13349 else
13350 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13351 fi
13352 ;;
13353 esac
13354 link_all_deplibs=yes
13355 ;;
13356
13357 sunos4*)
13358 if test "x$host_vendor" = xsequent; then
13359 # Use $CC to link under sequent, because it throws in some extra .o
13360 # files that make .init and .fini sections work.
13361 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13362 else
13363 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13364 fi
13365 hardcode_libdir_flag_spec='-L$libdir'
13366 hardcode_direct=yes
13367 hardcode_minus_L=yes
13368 hardcode_shlibpath_var=no
13369 ;;
13370
13371 sysv4)
13372 case $host_vendor in
13373 sni)
13374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13375 hardcode_direct=yes # is this really true???
13376 ;;
13377 siemens)
13378 ## LD is ld it makes a PLAMLIB
13379 ## CC just makes a GrossModule.
13380 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13381 reload_cmds='$CC -r -o $output$reload_objs'
13382 hardcode_direct=no
13383 ;;
13384 motorola)
13385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13386 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13387 ;;
13388 esac
13389 runpath_var='LD_RUN_PATH'
13390 hardcode_shlibpath_var=no
13391 ;;
13392
13393 sysv4.3*)
13394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13395 hardcode_shlibpath_var=no
13396 export_dynamic_flag_spec='-Bexport'
13397 ;;
13398
13399 sysv4*MP*)
13400 if test -d /usr/nec; then
13401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13402 hardcode_shlibpath_var=no
13403 runpath_var=LD_RUN_PATH
13404 hardcode_runpath_var=yes
13405 ld_shlibs=yes
13406 fi
13407 ;;
13408
13409 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13410 no_undefined_flag='${wl}-z,text'
13411 archive_cmds_need_lc=no
13412 hardcode_shlibpath_var=no
13413 runpath_var='LD_RUN_PATH'
13414
13415 if test "$GCC" = yes; then
13416 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13417 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13418 else
13419 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13420 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13421 fi
13422 ;;
13423
13424 sysv5* | sco3.2v5* | sco5v6*)
13425 # Note: We can NOT use -z defs as we might desire, because we do not
13426 # link with -lc, and that would cause any symbols used from libc to
13427 # always be unresolved, which means just about no library would
13428 # ever link correctly. If we're not using GNU ld we use -z text
13429 # though, which does catch some bad symbols but isn't as heavy-handed
13430 # as -z defs.
13431 no_undefined_flag='${wl}-z,text'
13432 allow_undefined_flag='${wl}-z,nodefs'
13433 archive_cmds_need_lc=no
13434 hardcode_shlibpath_var=no
13435 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13436 hardcode_libdir_separator=':'
13437 link_all_deplibs=yes
13438 export_dynamic_flag_spec='${wl}-Bexport'
13439 runpath_var='LD_RUN_PATH'
13440
13441 if test "$GCC" = yes; then
13442 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13443 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13444 else
13445 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13446 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13447 fi
13448 ;;
13449
13450 uts4*)
13451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13452 hardcode_libdir_flag_spec='-L$libdir'
13453 hardcode_shlibpath_var=no
13454 ;;
13455
13456 *)
13457 ld_shlibs=no
13458 ;;
13459 esac
13460
13461 if test x$host_vendor = xsni; then
13462 case $host in
13463 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13464 export_dynamic_flag_spec='${wl}-Blargedynsym'
13465 ;;
13466 esac
13467 fi
13468 fi
13469
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13471 $as_echo "$ld_shlibs" >&6; }
13472 test "$ld_shlibs" = no && can_build_shared=no
13473
13474 with_gnu_ld=$with_gnu_ld
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490 #
13491 # Do we need to explicitly link libc?
13492 #
13493 case "x$archive_cmds_need_lc" in
13494 x|xyes)
13495 # Assume -lc should be added
13496 archive_cmds_need_lc=yes
13497
13498 if test "$enable_shared" = yes && test "$GCC" = yes; then
13499 case $archive_cmds in
13500 *'~'*)
13501 # FIXME: we may have to deal with multi-command sequences.
13502 ;;
13503 '$CC '*)
13504 # Test whether the compiler implicitly links with -lc since on some
13505 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13506 # to ld, don't add -lc before -lgcc.
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13508 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13509 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 $RM conftest*
13513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13514
13515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13516 (eval $ac_compile) 2>&5
13517 ac_status=$?
13518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13519 test $ac_status = 0; } 2>conftest.err; then
13520 soname=conftest
13521 lib=conftest
13522 libobjs=conftest.$ac_objext
13523 deplibs=
13524 wl=$lt_prog_compiler_wl
13525 pic_flag=$lt_prog_compiler_pic
13526 compiler_flags=-v
13527 linker_flags=-v
13528 verstring=
13529 output_objdir=.
13530 libname=conftest
13531 lt_save_allow_undefined_flag=$allow_undefined_flag
13532 allow_undefined_flag=
13533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13534 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13535 ac_status=$?
13536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13537 test $ac_status = 0; }
13538 then
13539 lt_cv_archive_cmds_need_lc=no
13540 else
13541 lt_cv_archive_cmds_need_lc=yes
13542 fi
13543 allow_undefined_flag=$lt_save_allow_undefined_flag
13544 else
13545 cat conftest.err 1>&5
13546 fi
13547 $RM conftest*
13548
13549 fi
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13551 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13552 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13553 ;;
13554 esac
13555 fi
13556 ;;
13557 esac
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13716 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13717
13718 if test "$GCC" = yes; then
13719 case $host_os in
13720 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13721 *) lt_awk_arg="/^libraries:/" ;;
13722 esac
13723 case $host_os in
13724 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13725 *) lt_sed_strip_eq="s,=/,/,g" ;;
13726 esac
13727 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13728 case $lt_search_path_spec in
13729 *\;*)
13730 # if the path contains ";" then we assume it to be the separator
13731 # otherwise default to the standard path separator (i.e. ":") - it is
13732 # assumed that no part of a normal pathname contains ";" but that should
13733 # okay in the real world where ";" in dirpaths is itself problematic.
13734 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13735 ;;
13736 *)
13737 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13738 ;;
13739 esac
13740 # Ok, now we have the path, separated by spaces, we can step through it
13741 # and add multilib dir if necessary.
13742 lt_tmp_lt_search_path_spec=
13743 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13744 for lt_sys_path in $lt_search_path_spec; do
13745 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13746 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13747 else
13748 test -d "$lt_sys_path" && \
13749 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13750 fi
13751 done
13752 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13753 BEGIN {RS=" "; FS="/|\n";} {
13754 lt_foo="";
13755 lt_count=0;
13756 for (lt_i = NF; lt_i > 0; lt_i--) {
13757 if ($lt_i != "" && $lt_i != ".") {
13758 if ($lt_i == "..") {
13759 lt_count++;
13760 } else {
13761 if (lt_count == 0) {
13762 lt_foo="/" $lt_i lt_foo;
13763 } else {
13764 lt_count--;
13765 }
13766 }
13767 }
13768 }
13769 if (lt_foo != "") { lt_freq[lt_foo]++; }
13770 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13771 }'`
13772 # AWK program above erroneously prepends '/' to C:/dos/paths
13773 # for these hosts.
13774 case $host_os in
13775 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13776 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13777 esac
13778 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13779 else
13780 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13781 fi
13782 library_names_spec=
13783 libname_spec='lib$name'
13784 soname_spec=
13785 shrext_cmds=".so"
13786 postinstall_cmds=
13787 postuninstall_cmds=
13788 finish_cmds=
13789 finish_eval=
13790 shlibpath_var=
13791 shlibpath_overrides_runpath=unknown
13792 version_type=none
13793 dynamic_linker="$host_os ld.so"
13794 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13795 need_lib_prefix=unknown
13796 hardcode_into_libs=no
13797
13798 # when you set need_version to no, make sure it does not cause -set_version
13799 # flags to be left without arguments
13800 need_version=unknown
13801
13802 case $host_os in
13803 aix3*)
13804 version_type=linux
13805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13806 shlibpath_var=LIBPATH
13807
13808 # AIX 3 has no versioning support, so we append a major version to the name.
13809 soname_spec='${libname}${release}${shared_ext}$major'
13810 ;;
13811
13812 aix[4-9]*)
13813 version_type=linux
13814 need_lib_prefix=no
13815 need_version=no
13816 hardcode_into_libs=yes
13817 if test "$host_cpu" = ia64; then
13818 # AIX 5 supports IA64
13819 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13820 shlibpath_var=LD_LIBRARY_PATH
13821 else
13822 # With GCC up to 2.95.x, collect2 would create an import file
13823 # for dependence libraries. The import file would start with
13824 # the line `#! .'. This would cause the generated library to
13825 # depend on `.', always an invalid library. This was fixed in
13826 # development snapshots of GCC prior to 3.0.
13827 case $host_os in
13828 aix4 | aix4.[01] | aix4.[01].*)
13829 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13830 echo ' yes '
13831 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13832 :
13833 else
13834 can_build_shared=no
13835 fi
13836 ;;
13837 esac
13838 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13839 # soname into executable. Probably we can add versioning support to
13840 # collect2, so additional links can be useful in future.
13841 if test "$aix_use_runtimelinking" = yes; then
13842 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13843 # instead of lib<name>.a to let people know that these are not
13844 # typical AIX shared libraries.
13845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13846 else
13847 # We preserve .a as extension for shared libraries through AIX4.2
13848 # and later when we are not doing run time linking.
13849 library_names_spec='${libname}${release}.a $libname.a'
13850 soname_spec='${libname}${release}${shared_ext}$major'
13851 fi
13852 shlibpath_var=LIBPATH
13853 fi
13854 ;;
13855
13856 amigaos*)
13857 case $host_cpu in
13858 powerpc)
13859 # Since July 2007 AmigaOS4 officially supports .so libraries.
13860 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13862 ;;
13863 m68k)
13864 library_names_spec='$libname.ixlibrary $libname.a'
13865 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13866 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'
13867 ;;
13868 esac
13869 ;;
13870
13871 beos*)
13872 library_names_spec='${libname}${shared_ext}'
13873 dynamic_linker="$host_os ld.so"
13874 shlibpath_var=LIBRARY_PATH
13875 ;;
13876
13877 bsdi[45]*)
13878 version_type=linux
13879 need_version=no
13880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13881 soname_spec='${libname}${release}${shared_ext}$major'
13882 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13883 shlibpath_var=LD_LIBRARY_PATH
13884 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13885 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13886 # the default ld.so.conf also contains /usr/contrib/lib and
13887 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13888 # libtool to hard-code these into programs
13889 ;;
13890
13891 cygwin* | mingw* | pw32* | cegcc*)
13892 version_type=windows
13893 shrext_cmds=".dll"
13894 need_version=no
13895 need_lib_prefix=no
13896
13897 case $GCC,$host_os in
13898 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13899 library_names_spec='$libname.dll.a'
13900 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13901 postinstall_cmds='base_file=`basename \${file}`~
13902 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13903 dldir=$destdir/`dirname \$dlpath`~
13904 test -d \$dldir || mkdir -p \$dldir~
13905 $install_prog $dir/$dlname \$dldir/$dlname~
13906 chmod a+x \$dldir/$dlname~
13907 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13908 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13909 fi'
13910 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13911 dlpath=$dir/\$dldll~
13912 $RM \$dlpath'
13913 shlibpath_overrides_runpath=yes
13914
13915 case $host_os in
13916 cygwin*)
13917 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13918 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13919
13920 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13921 ;;
13922 mingw* | cegcc*)
13923 # MinGW DLLs use traditional 'lib' prefix
13924 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13925 ;;
13926 pw32*)
13927 # pw32 DLLs use 'pw' prefix rather than 'lib'
13928 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13929 ;;
13930 esac
13931 ;;
13932
13933 *)
13934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13935 ;;
13936 esac
13937 dynamic_linker='Win32 ld.exe'
13938 # FIXME: first we should search . and the directory the executable is in
13939 shlibpath_var=PATH
13940 ;;
13941
13942 darwin* | rhapsody*)
13943 dynamic_linker="$host_os dyld"
13944 version_type=darwin
13945 need_lib_prefix=no
13946 need_version=no
13947 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13948 soname_spec='${libname}${release}${major}$shared_ext'
13949 shlibpath_overrides_runpath=yes
13950 shlibpath_var=DYLD_LIBRARY_PATH
13951 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13952
13953 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13954 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13955 ;;
13956
13957 dgux*)
13958 version_type=linux
13959 need_lib_prefix=no
13960 need_version=no
13961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13962 soname_spec='${libname}${release}${shared_ext}$major'
13963 shlibpath_var=LD_LIBRARY_PATH
13964 ;;
13965
13966 freebsd* | dragonfly*)
13967 # DragonFly does not have aout. When/if they implement a new
13968 # versioning mechanism, adjust this.
13969 if test -x /usr/bin/objformat; then
13970 objformat=`/usr/bin/objformat`
13971 else
13972 case $host_os in
13973 freebsd[23].*) objformat=aout ;;
13974 *) objformat=elf ;;
13975 esac
13976 fi
13977 version_type=freebsd-$objformat
13978 case $version_type in
13979 freebsd-elf*)
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13981 need_version=no
13982 need_lib_prefix=no
13983 ;;
13984 freebsd-*)
13985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13986 need_version=yes
13987 ;;
13988 esac
13989 shlibpath_var=LD_LIBRARY_PATH
13990 case $host_os in
13991 freebsd2.*)
13992 shlibpath_overrides_runpath=yes
13993 ;;
13994 freebsd3.[01]* | freebsdelf3.[01]*)
13995 shlibpath_overrides_runpath=yes
13996 hardcode_into_libs=yes
13997 ;;
13998 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13999 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14000 shlibpath_overrides_runpath=no
14001 hardcode_into_libs=yes
14002 ;;
14003 *) # from 4.6 on, and DragonFly
14004 shlibpath_overrides_runpath=yes
14005 hardcode_into_libs=yes
14006 ;;
14007 esac
14008 ;;
14009
14010 haiku*)
14011 version_type=linux
14012 need_lib_prefix=no
14013 need_version=no
14014 dynamic_linker="$host_os runtime_loader"
14015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14016 soname_spec='${libname}${release}${shared_ext}$major'
14017 shlibpath_var=LIBRARY_PATH
14018 shlibpath_overrides_runpath=yes
14019 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14020 hardcode_into_libs=yes
14021 ;;
14022
14023 hpux9* | hpux10* | hpux11*)
14024 # Give a soname corresponding to the major version so that dld.sl refuses to
14025 # link against other versions.
14026 version_type=sunos
14027 need_lib_prefix=no
14028 need_version=no
14029 case $host_cpu in
14030 ia64*)
14031 shrext_cmds='.so'
14032 hardcode_into_libs=yes
14033 dynamic_linker="$host_os dld.so"
14034 shlibpath_var=LD_LIBRARY_PATH
14035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14037 soname_spec='${libname}${release}${shared_ext}$major'
14038 if test "X$HPUX_IA64_MODE" = X32; then
14039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14040 else
14041 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14042 fi
14043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14044 ;;
14045 hppa*64*)
14046 shrext_cmds='.sl'
14047 hardcode_into_libs=yes
14048 dynamic_linker="$host_os dld.sl"
14049 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14052 soname_spec='${libname}${release}${shared_ext}$major'
14053 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14055 ;;
14056 *)
14057 shrext_cmds='.sl'
14058 dynamic_linker="$host_os dld.sl"
14059 shlibpath_var=SHLIB_PATH
14060 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14062 soname_spec='${libname}${release}${shared_ext}$major'
14063 ;;
14064 esac
14065 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14066 postinstall_cmds='chmod 555 $lib'
14067 # or fails outright, so override atomically:
14068 install_override_mode=555
14069 ;;
14070
14071 interix[3-9]*)
14072 version_type=linux
14073 need_lib_prefix=no
14074 need_version=no
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14076 soname_spec='${libname}${release}${shared_ext}$major'
14077 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14078 shlibpath_var=LD_LIBRARY_PATH
14079 shlibpath_overrides_runpath=no
14080 hardcode_into_libs=yes
14081 ;;
14082
14083 irix5* | irix6* | nonstopux*)
14084 case $host_os in
14085 nonstopux*) version_type=nonstopux ;;
14086 *)
14087 if test "$lt_cv_prog_gnu_ld" = yes; then
14088 version_type=linux
14089 else
14090 version_type=irix
14091 fi ;;
14092 esac
14093 need_lib_prefix=no
14094 need_version=no
14095 soname_spec='${libname}${release}${shared_ext}$major'
14096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14097 case $host_os in
14098 irix5* | nonstopux*)
14099 libsuff= shlibsuff=
14100 ;;
14101 *)
14102 case $LD in # libtool.m4 will add one of these switches to LD
14103 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14104 libsuff= shlibsuff= libmagic=32-bit;;
14105 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14106 libsuff=32 shlibsuff=N32 libmagic=N32;;
14107 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14108 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14109 *) libsuff= shlibsuff= libmagic=never-match;;
14110 esac
14111 ;;
14112 esac
14113 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14114 shlibpath_overrides_runpath=no
14115 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14116 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14117 hardcode_into_libs=yes
14118 ;;
14119
14120 # No shared lib support for Linux oldld, aout, or coff.
14121 linux*oldld* | linux*aout* | linux*coff*)
14122 dynamic_linker=no
14123 ;;
14124
14125 # This must be Linux ELF.
14126
14127 # uclinux* changes (here and below) have been submitted to the libtool
14128 # project, but have not yet been accepted: they are GCC-local changes
14129 # for the time being. (See
14130 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14131 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14132 version_type=linux
14133 need_lib_prefix=no
14134 need_version=no
14135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14136 soname_spec='${libname}${release}${shared_ext}$major'
14137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14138 shlibpath_var=LD_LIBRARY_PATH
14139 shlibpath_overrides_runpath=no
14140
14141 # Some binutils ld are patched to set DT_RUNPATH
14142 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14143 $as_echo_n "(cached) " >&6
14144 else
14145 lt_cv_shlibpath_overrides_runpath=no
14146 save_LDFLAGS=$LDFLAGS
14147 save_libdir=$libdir
14148 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14149 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14150 if test x$gcc_no_link = xyes; then
14151 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14152 fi
14153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154 /* end confdefs.h. */
14155
14156 int
14157 main ()
14158 {
14159
14160 ;
14161 return 0;
14162 }
14163 _ACEOF
14164 if ac_fn_c_try_link "$LINENO"; then :
14165 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14166 lt_cv_shlibpath_overrides_runpath=yes
14167 fi
14168 fi
14169 rm -f core conftest.err conftest.$ac_objext \
14170 conftest$ac_exeext conftest.$ac_ext
14171 LDFLAGS=$save_LDFLAGS
14172 libdir=$save_libdir
14173
14174 fi
14175
14176 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14177
14178 # This implies no fast_install, which is unacceptable.
14179 # Some rework will be needed to allow for fast_install
14180 # before this can be enabled.
14181 hardcode_into_libs=yes
14182
14183 # Append ld.so.conf contents to the search path
14184 if test -f /etc/ld.so.conf; then
14185 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' ' '`
14186 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14187 fi
14188
14189 # We used to test for /lib/ld.so.1 and disable shared libraries on
14190 # powerpc, because MkLinux only supported shared libraries with the
14191 # GNU dynamic linker. Since this was broken with cross compilers,
14192 # most powerpc-linux boxes support dynamic linking these days and
14193 # people can always --disable-shared, the test was removed, and we
14194 # assume the GNU/Linux dynamic linker is in use.
14195 dynamic_linker='GNU/Linux ld.so'
14196 ;;
14197
14198 netbsd*)
14199 version_type=sunos
14200 need_lib_prefix=no
14201 need_version=no
14202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14205 dynamic_linker='NetBSD (a.out) ld.so'
14206 else
14207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14208 soname_spec='${libname}${release}${shared_ext}$major'
14209 dynamic_linker='NetBSD ld.elf_so'
14210 fi
14211 shlibpath_var=LD_LIBRARY_PATH
14212 shlibpath_overrides_runpath=yes
14213 hardcode_into_libs=yes
14214 ;;
14215
14216 newsos6)
14217 version_type=linux
14218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14219 shlibpath_var=LD_LIBRARY_PATH
14220 shlibpath_overrides_runpath=yes
14221 ;;
14222
14223 *nto* | *qnx*)
14224 version_type=qnx
14225 need_lib_prefix=no
14226 need_version=no
14227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14228 soname_spec='${libname}${release}${shared_ext}$major'
14229 shlibpath_var=LD_LIBRARY_PATH
14230 shlibpath_overrides_runpath=no
14231 hardcode_into_libs=yes
14232 dynamic_linker='ldqnx.so'
14233 ;;
14234
14235 openbsd*)
14236 version_type=sunos
14237 sys_lib_dlsearch_path_spec="/usr/lib"
14238 need_lib_prefix=no
14239 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14240 case $host_os in
14241 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14242 *) need_version=no ;;
14243 esac
14244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14246 shlibpath_var=LD_LIBRARY_PATH
14247 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14248 case $host_os in
14249 openbsd2.[89] | openbsd2.[89].*)
14250 shlibpath_overrides_runpath=no
14251 ;;
14252 *)
14253 shlibpath_overrides_runpath=yes
14254 ;;
14255 esac
14256 else
14257 shlibpath_overrides_runpath=yes
14258 fi
14259 ;;
14260
14261 os2*)
14262 libname_spec='$name'
14263 shrext_cmds=".dll"
14264 need_lib_prefix=no
14265 library_names_spec='$libname${shared_ext} $libname.a'
14266 dynamic_linker='OS/2 ld.exe'
14267 shlibpath_var=LIBPATH
14268 ;;
14269
14270 osf3* | osf4* | osf5*)
14271 version_type=osf
14272 need_lib_prefix=no
14273 need_version=no
14274 soname_spec='${libname}${release}${shared_ext}$major'
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14276 shlibpath_var=LD_LIBRARY_PATH
14277 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14278 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14279 ;;
14280
14281 rdos*)
14282 dynamic_linker=no
14283 ;;
14284
14285 solaris*)
14286 version_type=linux
14287 need_lib_prefix=no
14288 need_version=no
14289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14290 soname_spec='${libname}${release}${shared_ext}$major'
14291 shlibpath_var=LD_LIBRARY_PATH
14292 shlibpath_overrides_runpath=yes
14293 hardcode_into_libs=yes
14294 # ldd complains unless libraries are executable
14295 postinstall_cmds='chmod +x $lib'
14296 ;;
14297
14298 sunos4*)
14299 version_type=sunos
14300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14302 shlibpath_var=LD_LIBRARY_PATH
14303 shlibpath_overrides_runpath=yes
14304 if test "$with_gnu_ld" = yes; then
14305 need_lib_prefix=no
14306 fi
14307 need_version=yes
14308 ;;
14309
14310 sysv4 | sysv4.3*)
14311 version_type=linux
14312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14313 soname_spec='${libname}${release}${shared_ext}$major'
14314 shlibpath_var=LD_LIBRARY_PATH
14315 case $host_vendor in
14316 sni)
14317 shlibpath_overrides_runpath=no
14318 need_lib_prefix=no
14319 runpath_var=LD_RUN_PATH
14320 ;;
14321 siemens)
14322 need_lib_prefix=no
14323 ;;
14324 motorola)
14325 need_lib_prefix=no
14326 need_version=no
14327 shlibpath_overrides_runpath=no
14328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14329 ;;
14330 esac
14331 ;;
14332
14333 sysv4*MP*)
14334 if test -d /usr/nec ;then
14335 version_type=linux
14336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14337 soname_spec='$libname${shared_ext}.$major'
14338 shlibpath_var=LD_LIBRARY_PATH
14339 fi
14340 ;;
14341
14342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14343 version_type=freebsd-elf
14344 need_lib_prefix=no
14345 need_version=no
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14347 soname_spec='${libname}${release}${shared_ext}$major'
14348 shlibpath_var=LD_LIBRARY_PATH
14349 shlibpath_overrides_runpath=yes
14350 hardcode_into_libs=yes
14351 if test "$with_gnu_ld" = yes; then
14352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14353 else
14354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14355 case $host_os in
14356 sco3.2v5*)
14357 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14358 ;;
14359 esac
14360 fi
14361 sys_lib_dlsearch_path_spec='/usr/lib'
14362 ;;
14363
14364 tpf*)
14365 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14366 version_type=linux
14367 need_lib_prefix=no
14368 need_version=no
14369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14370 shlibpath_var=LD_LIBRARY_PATH
14371 shlibpath_overrides_runpath=no
14372 hardcode_into_libs=yes
14373 ;;
14374
14375 uts4*)
14376 version_type=linux
14377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14378 soname_spec='${libname}${release}${shared_ext}$major'
14379 shlibpath_var=LD_LIBRARY_PATH
14380 ;;
14381
14382 # Shared libraries for VwWorks, >= 7 only at this stage
14383 # and (fpic) still incompatible with "large" code models
14384 # in a few configurations. Only for RTP mode in any case,
14385 # and upon explicit request at configure time.
14386 vxworks7*)
14387 dynamic_linker=no
14388 case ${with_multisubdir}-${enable_shared} in
14389 *large*)
14390 ;;
14391 *mrtp*-yes)
14392 version_type=linux
14393 need_lib_prefix=no
14394 need_version=no
14395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14396 soname_spec='${libname}${release}${shared_ext}$major'
14397 dynamic_linker="$host_os module_loader"
14398 ;;
14399 esac
14400 ;;
14401 *)
14402 dynamic_linker=no
14403 ;;
14404 esac
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14406 $as_echo "$dynamic_linker" >&6; }
14407 test "$dynamic_linker" = no && can_build_shared=no
14408
14409 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14410 if test "$GCC" = yes; then
14411 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14412 fi
14413
14414 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14415 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14416 fi
14417 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14418 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14419 fi
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14513 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14514 hardcode_action=
14515 if test -n "$hardcode_libdir_flag_spec" ||
14516 test -n "$runpath_var" ||
14517 test "X$hardcode_automatic" = "Xyes" ; then
14518
14519 # We can hardcode non-existent directories.
14520 if test "$hardcode_direct" != no &&
14521 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14522 # have to relink, otherwise we might link with an installed library
14523 # when we should be linking with a yet-to-be-installed one
14524 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14525 test "$hardcode_minus_L" != no; then
14526 # Linking always hardcodes the temporary library directory.
14527 hardcode_action=relink
14528 else
14529 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14530 hardcode_action=immediate
14531 fi
14532 else
14533 # We cannot hardcode anything, or else we can only hardcode existing
14534 # directories.
14535 hardcode_action=unsupported
14536 fi
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14538 $as_echo "$hardcode_action" >&6; }
14539
14540 if test "$hardcode_action" = relink ||
14541 test "$inherit_rpath" = yes; then
14542 # Fast installation is not supported
14543 enable_fast_install=no
14544 elif test "$shlibpath_overrides_runpath" = yes ||
14545 test "$enable_shared" = no; then
14546 # Fast installation is not necessary
14547 enable_fast_install=needless
14548 fi
14549
14550
14551
14552
14553
14554
14555 if test "x$enable_dlopen" != xyes; then
14556 enable_dlopen=unknown
14557 enable_dlopen_self=unknown
14558 enable_dlopen_self_static=unknown
14559 else
14560 lt_cv_dlopen=no
14561 lt_cv_dlopen_libs=
14562
14563 case $host_os in
14564 beos*)
14565 lt_cv_dlopen="load_add_on"
14566 lt_cv_dlopen_libs=
14567 lt_cv_dlopen_self=yes
14568 ;;
14569
14570 mingw* | pw32* | cegcc*)
14571 lt_cv_dlopen="LoadLibrary"
14572 lt_cv_dlopen_libs=
14573 ;;
14574
14575 cygwin*)
14576 lt_cv_dlopen="dlopen"
14577 lt_cv_dlopen_libs=
14578 ;;
14579
14580 darwin*)
14581 # if libdl is installed we need to link against it
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14583 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14584 if ${ac_cv_lib_dl_dlopen+:} false; then :
14585 $as_echo_n "(cached) " >&6
14586 else
14587 ac_check_lib_save_LIBS=$LIBS
14588 LIBS="-ldl $LIBS"
14589 if test x$gcc_no_link = xyes; then
14590 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14591 fi
14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h. */
14594
14595 /* Override any GCC internal prototype to avoid an error.
14596 Use char because int might match the return type of a GCC
14597 builtin and then its argument prototype would still apply. */
14598 #ifdef __cplusplus
14599 extern "C"
14600 #endif
14601 char dlopen ();
14602 int
14603 main ()
14604 {
14605 return dlopen ();
14606 ;
14607 return 0;
14608 }
14609 _ACEOF
14610 if ac_fn_c_try_link "$LINENO"; then :
14611 ac_cv_lib_dl_dlopen=yes
14612 else
14613 ac_cv_lib_dl_dlopen=no
14614 fi
14615 rm -f core conftest.err conftest.$ac_objext \
14616 conftest$ac_exeext conftest.$ac_ext
14617 LIBS=$ac_check_lib_save_LIBS
14618 fi
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14620 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14621 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14622 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14623 else
14624
14625 lt_cv_dlopen="dyld"
14626 lt_cv_dlopen_libs=
14627 lt_cv_dlopen_self=yes
14628
14629 fi
14630
14631 ;;
14632
14633 *)
14634 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14635 if test "x$ac_cv_func_shl_load" = xyes; then :
14636 lt_cv_dlopen="shl_load"
14637 else
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14639 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14640 if ${ac_cv_lib_dld_shl_load+:} false; then :
14641 $as_echo_n "(cached) " >&6
14642 else
14643 ac_check_lib_save_LIBS=$LIBS
14644 LIBS="-ldld $LIBS"
14645 if test x$gcc_no_link = xyes; then
14646 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14647 fi
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14650
14651 /* Override any GCC internal prototype to avoid an error.
14652 Use char because int might match the return type of a GCC
14653 builtin and then its argument prototype would still apply. */
14654 #ifdef __cplusplus
14655 extern "C"
14656 #endif
14657 char shl_load ();
14658 int
14659 main ()
14660 {
14661 return shl_load ();
14662 ;
14663 return 0;
14664 }
14665 _ACEOF
14666 if ac_fn_c_try_link "$LINENO"; then :
14667 ac_cv_lib_dld_shl_load=yes
14668 else
14669 ac_cv_lib_dld_shl_load=no
14670 fi
14671 rm -f core conftest.err conftest.$ac_objext \
14672 conftest$ac_exeext conftest.$ac_ext
14673 LIBS=$ac_check_lib_save_LIBS
14674 fi
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14676 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14677 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14678 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14679 else
14680 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14681 if test "x$ac_cv_func_dlopen" = xyes; then :
14682 lt_cv_dlopen="dlopen"
14683 else
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14685 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14686 if ${ac_cv_lib_dl_dlopen+:} false; then :
14687 $as_echo_n "(cached) " >&6
14688 else
14689 ac_check_lib_save_LIBS=$LIBS
14690 LIBS="-ldl $LIBS"
14691 if test x$gcc_no_link = xyes; then
14692 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14693 fi
14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695 /* end confdefs.h. */
14696
14697 /* Override any GCC internal prototype to avoid an error.
14698 Use char because int might match the return type of a GCC
14699 builtin and then its argument prototype would still apply. */
14700 #ifdef __cplusplus
14701 extern "C"
14702 #endif
14703 char dlopen ();
14704 int
14705 main ()
14706 {
14707 return dlopen ();
14708 ;
14709 return 0;
14710 }
14711 _ACEOF
14712 if ac_fn_c_try_link "$LINENO"; then :
14713 ac_cv_lib_dl_dlopen=yes
14714 else
14715 ac_cv_lib_dl_dlopen=no
14716 fi
14717 rm -f core conftest.err conftest.$ac_objext \
14718 conftest$ac_exeext conftest.$ac_ext
14719 LIBS=$ac_check_lib_save_LIBS
14720 fi
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14722 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14723 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14724 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14725 else
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14727 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14728 if ${ac_cv_lib_svld_dlopen+:} false; then :
14729 $as_echo_n "(cached) " >&6
14730 else
14731 ac_check_lib_save_LIBS=$LIBS
14732 LIBS="-lsvld $LIBS"
14733 if test x$gcc_no_link = xyes; then
14734 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14735 fi
14736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14737 /* end confdefs.h. */
14738
14739 /* Override any GCC internal prototype to avoid an error.
14740 Use char because int might match the return type of a GCC
14741 builtin and then its argument prototype would still apply. */
14742 #ifdef __cplusplus
14743 extern "C"
14744 #endif
14745 char dlopen ();
14746 int
14747 main ()
14748 {
14749 return dlopen ();
14750 ;
14751 return 0;
14752 }
14753 _ACEOF
14754 if ac_fn_c_try_link "$LINENO"; then :
14755 ac_cv_lib_svld_dlopen=yes
14756 else
14757 ac_cv_lib_svld_dlopen=no
14758 fi
14759 rm -f core conftest.err conftest.$ac_objext \
14760 conftest$ac_exeext conftest.$ac_ext
14761 LIBS=$ac_check_lib_save_LIBS
14762 fi
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14764 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14765 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14766 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14767 else
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14769 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14770 if ${ac_cv_lib_dld_dld_link+:} false; then :
14771 $as_echo_n "(cached) " >&6
14772 else
14773 ac_check_lib_save_LIBS=$LIBS
14774 LIBS="-ldld $LIBS"
14775 if test x$gcc_no_link = xyes; then
14776 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14777 fi
14778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779 /* end confdefs.h. */
14780
14781 /* Override any GCC internal prototype to avoid an error.
14782 Use char because int might match the return type of a GCC
14783 builtin and then its argument prototype would still apply. */
14784 #ifdef __cplusplus
14785 extern "C"
14786 #endif
14787 char dld_link ();
14788 int
14789 main ()
14790 {
14791 return dld_link ();
14792 ;
14793 return 0;
14794 }
14795 _ACEOF
14796 if ac_fn_c_try_link "$LINENO"; then :
14797 ac_cv_lib_dld_dld_link=yes
14798 else
14799 ac_cv_lib_dld_dld_link=no
14800 fi
14801 rm -f core conftest.err conftest.$ac_objext \
14802 conftest$ac_exeext conftest.$ac_ext
14803 LIBS=$ac_check_lib_save_LIBS
14804 fi
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14806 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14807 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14808 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14809 fi
14810
14811
14812 fi
14813
14814
14815 fi
14816
14817
14818 fi
14819
14820
14821 fi
14822
14823
14824 fi
14825
14826 ;;
14827 esac
14828
14829 if test "x$lt_cv_dlopen" != xno; then
14830 enable_dlopen=yes
14831 else
14832 enable_dlopen=no
14833 fi
14834
14835 case $lt_cv_dlopen in
14836 dlopen)
14837 save_CPPFLAGS="$CPPFLAGS"
14838 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14839
14840 save_LDFLAGS="$LDFLAGS"
14841 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14842
14843 save_LIBS="$LIBS"
14844 LIBS="$lt_cv_dlopen_libs $LIBS"
14845
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14847 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14848 if ${lt_cv_dlopen_self+:} false; then :
14849 $as_echo_n "(cached) " >&6
14850 else
14851 if test "$cross_compiling" = yes; then :
14852 lt_cv_dlopen_self=cross
14853 else
14854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14855 lt_status=$lt_dlunknown
14856 cat > conftest.$ac_ext <<_LT_EOF
14857 #line 14857 "configure"
14858 #include "confdefs.h"
14859
14860 #if HAVE_DLFCN_H
14861 #include <dlfcn.h>
14862 #endif
14863
14864 #include <stdio.h>
14865
14866 #ifdef RTLD_GLOBAL
14867 # define LT_DLGLOBAL RTLD_GLOBAL
14868 #else
14869 # ifdef DL_GLOBAL
14870 # define LT_DLGLOBAL DL_GLOBAL
14871 # else
14872 # define LT_DLGLOBAL 0
14873 # endif
14874 #endif
14875
14876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14877 find out it does not work in some platform. */
14878 #ifndef LT_DLLAZY_OR_NOW
14879 # ifdef RTLD_LAZY
14880 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14881 # else
14882 # ifdef DL_LAZY
14883 # define LT_DLLAZY_OR_NOW DL_LAZY
14884 # else
14885 # ifdef RTLD_NOW
14886 # define LT_DLLAZY_OR_NOW RTLD_NOW
14887 # else
14888 # ifdef DL_NOW
14889 # define LT_DLLAZY_OR_NOW DL_NOW
14890 # else
14891 # define LT_DLLAZY_OR_NOW 0
14892 # endif
14893 # endif
14894 # endif
14895 # endif
14896 #endif
14897
14898 /* When -fvisbility=hidden is used, assume the code has been annotated
14899 correspondingly for the symbols needed. */
14900 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14901 void fnord () __attribute__((visibility("default")));
14902 #endif
14903
14904 void fnord () { int i=42; }
14905 int main ()
14906 {
14907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14908 int status = $lt_dlunknown;
14909
14910 if (self)
14911 {
14912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14913 else
14914 {
14915 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14916 else puts (dlerror ());
14917 }
14918 /* dlclose (self); */
14919 }
14920 else
14921 puts (dlerror ());
14922
14923 return status;
14924 }
14925 _LT_EOF
14926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14927 (eval $ac_link) 2>&5
14928 ac_status=$?
14929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14930 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14931 (./conftest; exit; ) >&5 2>/dev/null
14932 lt_status=$?
14933 case x$lt_status in
14934 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14935 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14936 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14937 esac
14938 else :
14939 # compilation failed
14940 lt_cv_dlopen_self=no
14941 fi
14942 fi
14943 rm -fr conftest*
14944
14945
14946 fi
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14948 $as_echo "$lt_cv_dlopen_self" >&6; }
14949
14950 if test "x$lt_cv_dlopen_self" = xyes; then
14951 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14953 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14954 if ${lt_cv_dlopen_self_static+:} false; then :
14955 $as_echo_n "(cached) " >&6
14956 else
14957 if test "$cross_compiling" = yes; then :
14958 lt_cv_dlopen_self_static=cross
14959 else
14960 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14961 lt_status=$lt_dlunknown
14962 cat > conftest.$ac_ext <<_LT_EOF
14963 #line 14963 "configure"
14964 #include "confdefs.h"
14965
14966 #if HAVE_DLFCN_H
14967 #include <dlfcn.h>
14968 #endif
14969
14970 #include <stdio.h>
14971
14972 #ifdef RTLD_GLOBAL
14973 # define LT_DLGLOBAL RTLD_GLOBAL
14974 #else
14975 # ifdef DL_GLOBAL
14976 # define LT_DLGLOBAL DL_GLOBAL
14977 # else
14978 # define LT_DLGLOBAL 0
14979 # endif
14980 #endif
14981
14982 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14983 find out it does not work in some platform. */
14984 #ifndef LT_DLLAZY_OR_NOW
14985 # ifdef RTLD_LAZY
14986 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14987 # else
14988 # ifdef DL_LAZY
14989 # define LT_DLLAZY_OR_NOW DL_LAZY
14990 # else
14991 # ifdef RTLD_NOW
14992 # define LT_DLLAZY_OR_NOW RTLD_NOW
14993 # else
14994 # ifdef DL_NOW
14995 # define LT_DLLAZY_OR_NOW DL_NOW
14996 # else
14997 # define LT_DLLAZY_OR_NOW 0
14998 # endif
14999 # endif
15000 # endif
15001 # endif
15002 #endif
15003
15004 /* When -fvisbility=hidden is used, assume the code has been annotated
15005 correspondingly for the symbols needed. */
15006 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15007 void fnord () __attribute__((visibility("default")));
15008 #endif
15009
15010 void fnord () { int i=42; }
15011 int main ()
15012 {
15013 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15014 int status = $lt_dlunknown;
15015
15016 if (self)
15017 {
15018 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15019 else
15020 {
15021 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15022 else puts (dlerror ());
15023 }
15024 /* dlclose (self); */
15025 }
15026 else
15027 puts (dlerror ());
15028
15029 return status;
15030 }
15031 _LT_EOF
15032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15033 (eval $ac_link) 2>&5
15034 ac_status=$?
15035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15036 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15037 (./conftest; exit; ) >&5 2>/dev/null
15038 lt_status=$?
15039 case x$lt_status in
15040 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15041 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15042 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15043 esac
15044 else :
15045 # compilation failed
15046 lt_cv_dlopen_self_static=no
15047 fi
15048 fi
15049 rm -fr conftest*
15050
15051
15052 fi
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15054 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15055 fi
15056
15057 CPPFLAGS="$save_CPPFLAGS"
15058 LDFLAGS="$save_LDFLAGS"
15059 LIBS="$save_LIBS"
15060 ;;
15061 esac
15062
15063 case $lt_cv_dlopen_self in
15064 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15065 *) enable_dlopen_self=unknown ;;
15066 esac
15067
15068 case $lt_cv_dlopen_self_static in
15069 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15070 *) enable_dlopen_self_static=unknown ;;
15071 esac
15072 fi
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090 striplib=
15091 old_striplib=
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15093 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15094 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15095 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15096 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15098 $as_echo "yes" >&6; }
15099 else
15100 # FIXME - insert some real tests, host_os isn't really good enough
15101 case $host_os in
15102 darwin*)
15103 if test -n "$STRIP" ; then
15104 striplib="$STRIP -x"
15105 old_striplib="$STRIP -S"
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15107 $as_echo "yes" >&6; }
15108 else
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15110 $as_echo "no" >&6; }
15111 fi
15112 ;;
15113 *)
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15115 $as_echo "no" >&6; }
15116 ;;
15117 esac
15118 fi
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131 # Report which library types will actually be built
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15133 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15135 $as_echo "$can_build_shared" >&6; }
15136
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15138 $as_echo_n "checking whether to build shared libraries... " >&6; }
15139 test "$can_build_shared" = "no" && enable_shared=no
15140
15141 # On AIX, shared libraries and static libraries use the same namespace, and
15142 # are all built from PIC.
15143 case $host_os in
15144 aix3*)
15145 test "$enable_shared" = yes && enable_static=no
15146 if test -n "$RANLIB"; then
15147 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15148 postinstall_cmds='$RANLIB $lib'
15149 fi
15150 ;;
15151
15152 aix[4-9]*)
15153 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15154 test "$enable_shared" = yes && enable_static=no
15155 fi
15156 ;;
15157 esac
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15159 $as_echo "$enable_shared" >&6; }
15160
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15162 $as_echo_n "checking whether to build static libraries... " >&6; }
15163 # Make sure either enable_shared or enable_static is yes.
15164 test "$enable_shared" = yes || enable_static=yes
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15166 $as_echo "$enable_static" >&6; }
15167
15168
15169
15170
15171 fi
15172 ac_ext=c
15173 ac_cpp='$CPP $CPPFLAGS'
15174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15177
15178 CC="$lt_save_CC"
15179
15180 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15181 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15182 (test "X$CXX" != "Xg++"))) ; then
15183 ac_ext=cpp
15184 ac_cpp='$CXXCPP $CPPFLAGS'
15185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15189 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15190 if test -z "$CXXCPP"; then
15191 if ${ac_cv_prog_CXXCPP+:} false; then :
15192 $as_echo_n "(cached) " >&6
15193 else
15194 # Double quotes because CXXCPP needs to be expanded
15195 for CXXCPP in "$CXX -E" "/lib/cpp"
15196 do
15197 ac_preproc_ok=false
15198 for ac_cxx_preproc_warn_flag in '' yes
15199 do
15200 # Use a header file that comes with gcc, so configuring glibc
15201 # with a fresh cross-compiler works.
15202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15203 # <limits.h> exists even on freestanding compilers.
15204 # On the NeXT, cc -E runs the code through the compiler's parser,
15205 # not just through cpp. "Syntax error" is here to catch this case.
15206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15207 /* end confdefs.h. */
15208 #ifdef __STDC__
15209 # include <limits.h>
15210 #else
15211 # include <assert.h>
15212 #endif
15213 Syntax error
15214 _ACEOF
15215 if ac_fn_cxx_try_cpp "$LINENO"; then :
15216
15217 else
15218 # Broken: fails on valid input.
15219 continue
15220 fi
15221 rm -f conftest.err conftest.i conftest.$ac_ext
15222
15223 # OK, works on sane cases. Now check whether nonexistent headers
15224 # can be detected and how.
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15227 #include <ac_nonexistent.h>
15228 _ACEOF
15229 if ac_fn_cxx_try_cpp "$LINENO"; then :
15230 # Broken: success on invalid input.
15231 continue
15232 else
15233 # Passes both tests.
15234 ac_preproc_ok=:
15235 break
15236 fi
15237 rm -f conftest.err conftest.i conftest.$ac_ext
15238
15239 done
15240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15241 rm -f conftest.i conftest.err conftest.$ac_ext
15242 if $ac_preproc_ok; then :
15243 break
15244 fi
15245
15246 done
15247 ac_cv_prog_CXXCPP=$CXXCPP
15248
15249 fi
15250 CXXCPP=$ac_cv_prog_CXXCPP
15251 else
15252 ac_cv_prog_CXXCPP=$CXXCPP
15253 fi
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15255 $as_echo "$CXXCPP" >&6; }
15256 ac_preproc_ok=false
15257 for ac_cxx_preproc_warn_flag in '' yes
15258 do
15259 # Use a header file that comes with gcc, so configuring glibc
15260 # with a fresh cross-compiler works.
15261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15262 # <limits.h> exists even on freestanding compilers.
15263 # On the NeXT, cc -E runs the code through the compiler's parser,
15264 # not just through cpp. "Syntax error" is here to catch this case.
15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15267 #ifdef __STDC__
15268 # include <limits.h>
15269 #else
15270 # include <assert.h>
15271 #endif
15272 Syntax error
15273 _ACEOF
15274 if ac_fn_cxx_try_cpp "$LINENO"; then :
15275
15276 else
15277 # Broken: fails on valid input.
15278 continue
15279 fi
15280 rm -f conftest.err conftest.i conftest.$ac_ext
15281
15282 # OK, works on sane cases. Now check whether nonexistent headers
15283 # can be detected and how.
15284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h. */
15286 #include <ac_nonexistent.h>
15287 _ACEOF
15288 if ac_fn_cxx_try_cpp "$LINENO"; then :
15289 # Broken: success on invalid input.
15290 continue
15291 else
15292 # Passes both tests.
15293 ac_preproc_ok=:
15294 break
15295 fi
15296 rm -f conftest.err conftest.i conftest.$ac_ext
15297
15298 done
15299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15300 rm -f conftest.i conftest.err conftest.$ac_ext
15301 if $ac_preproc_ok; then :
15302
15303 else
15304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15306 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15307 See \`config.log' for more details" "$LINENO" 5; }
15308 fi
15309
15310 ac_ext=c
15311 ac_cpp='$CPP $CPPFLAGS'
15312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15315
15316 else
15317 _lt_caught_CXX_error=yes
15318 fi
15319
15320 ac_ext=cpp
15321 ac_cpp='$CXXCPP $CPPFLAGS'
15322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15325
15326 archive_cmds_need_lc_CXX=no
15327 allow_undefined_flag_CXX=
15328 always_export_symbols_CXX=no
15329 archive_expsym_cmds_CXX=
15330 compiler_needs_object_CXX=no
15331 export_dynamic_flag_spec_CXX=
15332 hardcode_direct_CXX=no
15333 hardcode_direct_absolute_CXX=no
15334 hardcode_libdir_flag_spec_CXX=
15335 hardcode_libdir_flag_spec_ld_CXX=
15336 hardcode_libdir_separator_CXX=
15337 hardcode_minus_L_CXX=no
15338 hardcode_shlibpath_var_CXX=unsupported
15339 hardcode_automatic_CXX=no
15340 inherit_rpath_CXX=no
15341 module_cmds_CXX=
15342 module_expsym_cmds_CXX=
15343 link_all_deplibs_CXX=unknown
15344 old_archive_cmds_CXX=$old_archive_cmds
15345 reload_flag_CXX=$reload_flag
15346 reload_cmds_CXX=$reload_cmds
15347 no_undefined_flag_CXX=
15348 whole_archive_flag_spec_CXX=
15349 enable_shared_with_static_runtimes_CXX=no
15350
15351 # Source file extension for C++ test sources.
15352 ac_ext=cpp
15353
15354 # Object file extension for compiled C++ test sources.
15355 objext=o
15356 objext_CXX=$objext
15357
15358 # No sense in running all these tests if we already determined that
15359 # the CXX compiler isn't working. Some variables (like enable_shared)
15360 # are currently assumed to apply to all compilers on this platform,
15361 # and will be corrupted by setting them based on a non-working compiler.
15362 if test "$_lt_caught_CXX_error" != yes; then
15363 # Code to be used in simple compile tests
15364 lt_simple_compile_test_code="int some_variable = 0;"
15365
15366 # Code to be used in simple link tests
15367 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15368
15369 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15370
15371
15372
15373
15374
15375
15376 # If no C compiler was specified, use CC.
15377 LTCC=${LTCC-"$CC"}
15378
15379 # If no C compiler flags were specified, use CFLAGS.
15380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15381
15382 # Allow CC to be a program name with arguments.
15383 compiler=$CC
15384
15385
15386 # save warnings/boilerplate of simple test code
15387 ac_outfile=conftest.$ac_objext
15388 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15390 _lt_compiler_boilerplate=`cat conftest.err`
15391 $RM conftest*
15392
15393 ac_outfile=conftest.$ac_objext
15394 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15396 _lt_linker_boilerplate=`cat conftest.err`
15397 $RM -r conftest*
15398
15399
15400 # Allow CC to be a program name with arguments.
15401 lt_save_CC=$CC
15402 lt_save_LD=$LD
15403 lt_save_GCC=$GCC
15404 GCC=$GXX
15405 lt_save_with_gnu_ld=$with_gnu_ld
15406 lt_save_path_LD=$lt_cv_path_LD
15407 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15408 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15409 else
15410 $as_unset lt_cv_prog_gnu_ld
15411 fi
15412 if test -n "${lt_cv_path_LDCXX+set}"; then
15413 lt_cv_path_LD=$lt_cv_path_LDCXX
15414 else
15415 $as_unset lt_cv_path_LD
15416 fi
15417 test -z "${LDCXX+set}" || LD=$LDCXX
15418 CC=${CXX-"c++"}
15419 compiler=$CC
15420 compiler_CXX=$CC
15421 for cc_temp in $compiler""; do
15422 case $cc_temp in
15423 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15424 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15425 \-*) ;;
15426 *) break;;
15427 esac
15428 done
15429 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15430
15431
15432 if test -n "$compiler"; then
15433 # We don't want -fno-exception when compiling C++ code, so set the
15434 # no_builtin_flag separately
15435 if test "$GXX" = yes; then
15436 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15437 else
15438 lt_prog_compiler_no_builtin_flag_CXX=
15439 fi
15440
15441 if test "$GXX" = yes; then
15442 # Set up default GNU C++ configuration
15443
15444
15445
15446 # Check whether --with-gnu-ld was given.
15447 if test "${with_gnu_ld+set}" = set; then :
15448 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15449 else
15450 with_gnu_ld=no
15451 fi
15452
15453 ac_prog=ld
15454 if test "$GCC" = yes; then
15455 # Check if gcc -print-prog-name=ld gives a path.
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15457 $as_echo_n "checking for ld used by $CC... " >&6; }
15458 case $host in
15459 *-*-mingw*)
15460 # gcc leaves a trailing carriage return which upsets mingw
15461 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15462 *)
15463 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15464 esac
15465 case $ac_prog in
15466 # Accept absolute paths.
15467 [\\/]* | ?:[\\/]*)
15468 re_direlt='/[^/][^/]*/\.\./'
15469 # Canonicalize the pathname of ld
15470 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15471 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15472 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15473 done
15474 test -z "$LD" && LD="$ac_prog"
15475 ;;
15476 "")
15477 # If it fails, then pretend we aren't using GCC.
15478 ac_prog=ld
15479 ;;
15480 *)
15481 # If it is relative, then search for the first ld in PATH.
15482 with_gnu_ld=unknown
15483 ;;
15484 esac
15485 elif test "$with_gnu_ld" = yes; then
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15487 $as_echo_n "checking for GNU ld... " >&6; }
15488 else
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15490 $as_echo_n "checking for non-GNU ld... " >&6; }
15491 fi
15492 if ${lt_cv_path_LD+:} false; then :
15493 $as_echo_n "(cached) " >&6
15494 else
15495 if test -z "$LD"; then
15496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15497 for ac_dir in $PATH; do
15498 IFS="$lt_save_ifs"
15499 test -z "$ac_dir" && ac_dir=.
15500 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15501 lt_cv_path_LD="$ac_dir/$ac_prog"
15502 # Check to see if the program is GNU ld. I'd rather use --version,
15503 # but apparently some variants of GNU ld only accept -v.
15504 # Break only if it was the GNU/non-GNU ld that we prefer.
15505 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15506 *GNU* | *'with BFD'*)
15507 test "$with_gnu_ld" != no && break
15508 ;;
15509 *)
15510 test "$with_gnu_ld" != yes && break
15511 ;;
15512 esac
15513 fi
15514 done
15515 IFS="$lt_save_ifs"
15516 else
15517 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15518 fi
15519 fi
15520
15521 LD="$lt_cv_path_LD"
15522 if test -n "$LD"; then
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15524 $as_echo "$LD" >&6; }
15525 else
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15527 $as_echo "no" >&6; }
15528 fi
15529 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15531 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15532 if ${lt_cv_prog_gnu_ld+:} false; then :
15533 $as_echo_n "(cached) " >&6
15534 else
15535 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15536 case `$LD -v 2>&1 </dev/null` in
15537 *GNU* | *'with BFD'*)
15538 lt_cv_prog_gnu_ld=yes
15539 ;;
15540 *)
15541 lt_cv_prog_gnu_ld=no
15542 ;;
15543 esac
15544 fi
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15546 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15547 with_gnu_ld=$lt_cv_prog_gnu_ld
15548
15549
15550
15551
15552
15553
15554
15555 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15556 # archiving commands below assume that GNU ld is being used.
15557 if test "$with_gnu_ld" = yes; then
15558 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15559 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'
15560
15561 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15562 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15563
15564 # If archive_cmds runs LD, not CC, wlarc should be empty
15565 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15566 # investigate it a little bit more. (MM)
15567 wlarc='${wl}'
15568
15569 # ancient GNU ld didn't support --whole-archive et. al.
15570 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15571 $GREP 'no-whole-archive' > /dev/null; then
15572 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15573 else
15574 whole_archive_flag_spec_CXX=
15575 fi
15576 else
15577 with_gnu_ld=no
15578 wlarc=
15579
15580 # A generic and very simple default shared library creation
15581 # command for GNU C++ for the case where it uses the native
15582 # linker, instead of GNU ld. If possible, this setting should
15583 # overridden to take advantage of the native linker features on
15584 # the platform it is being used on.
15585 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15586 fi
15587
15588 # Commands to make compiler produce verbose output that lists
15589 # what "hidden" libraries, object files and flags are used when
15590 # linking a shared library.
15591 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15592
15593 else
15594 GXX=no
15595 with_gnu_ld=no
15596 wlarc=
15597 fi
15598
15599 # PORTME: fill in a description of your system's C++ link characteristics
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15601 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15602 ld_shlibs_CXX=yes
15603 case $host_os in
15604 aix3*)
15605 # FIXME: insert proper C++ library support
15606 ld_shlibs_CXX=no
15607 ;;
15608 aix[4-9]*)
15609 if test "$host_cpu" = ia64; then
15610 # On IA64, the linker does run time linking by default, so we don't
15611 # have to do anything special.
15612 aix_use_runtimelinking=no
15613 exp_sym_flag='-Bexport'
15614 no_entry_flag=""
15615 else
15616 aix_use_runtimelinking=no
15617
15618 # Test if we are trying to use run time linking or normal
15619 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15620 # need to do runtime linking.
15621 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15622 for ld_flag in $LDFLAGS; do
15623 case $ld_flag in
15624 *-brtl*)
15625 aix_use_runtimelinking=yes
15626 break
15627 ;;
15628 esac
15629 done
15630 ;;
15631 esac
15632
15633 exp_sym_flag='-bexport'
15634 no_entry_flag='-bnoentry'
15635 fi
15636
15637 # When large executables or shared objects are built, AIX ld can
15638 # have problems creating the table of contents. If linking a library
15639 # or program results in "error TOC overflow" add -mminimal-toc to
15640 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15641 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15642
15643 archive_cmds_CXX=''
15644 hardcode_direct_CXX=yes
15645 hardcode_direct_absolute_CXX=yes
15646 hardcode_libdir_separator_CXX=':'
15647 link_all_deplibs_CXX=yes
15648 file_list_spec_CXX='${wl}-f,'
15649
15650 if test "$GXX" = yes; then
15651 case $host_os in aix4.[012]|aix4.[012].*)
15652 # We only want to do this on AIX 4.2 and lower, the check
15653 # below for broken collect2 doesn't work under 4.3+
15654 collect2name=`${CC} -print-prog-name=collect2`
15655 if test -f "$collect2name" &&
15656 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15657 then
15658 # We have reworked collect2
15659 :
15660 else
15661 # We have old collect2
15662 hardcode_direct_CXX=unsupported
15663 # It fails to find uninstalled libraries when the uninstalled
15664 # path is not listed in the libpath. Setting hardcode_minus_L
15665 # to unsupported forces relinking
15666 hardcode_minus_L_CXX=yes
15667 hardcode_libdir_flag_spec_CXX='-L$libdir'
15668 hardcode_libdir_separator_CXX=
15669 fi
15670 esac
15671 shared_flag='-shared'
15672 if test "$aix_use_runtimelinking" = yes; then
15673 shared_flag="$shared_flag "'${wl}-G'
15674 fi
15675 else
15676 # not using gcc
15677 if test "$host_cpu" = ia64; then
15678 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15679 # chokes on -Wl,-G. The following line is correct:
15680 shared_flag='-G'
15681 else
15682 if test "$aix_use_runtimelinking" = yes; then
15683 shared_flag='${wl}-G'
15684 else
15685 shared_flag='${wl}-bM:SRE'
15686 fi
15687 fi
15688 fi
15689
15690 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15691 # It seems that -bexpall does not export symbols beginning with
15692 # underscore (_), so it is better to generate a list of symbols to
15693 # export.
15694 always_export_symbols_CXX=yes
15695 if test "$aix_use_runtimelinking" = yes; then
15696 # Warning - without using the other runtime loading flags (-brtl),
15697 # -berok will link without error, but may produce a broken library.
15698 allow_undefined_flag_CXX='-berok'
15699 # Determine the default libpath from the value encoded in an empty
15700 # executable.
15701 if test x$gcc_no_link = xyes; then
15702 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15703 fi
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15706
15707 int
15708 main ()
15709 {
15710
15711 ;
15712 return 0;
15713 }
15714 _ACEOF
15715 if ac_fn_cxx_try_link "$LINENO"; then :
15716
15717 lt_aix_libpath_sed='
15718 /Import File Strings/,/^$/ {
15719 /^0/ {
15720 s/^0 *\(.*\)$/\1/
15721 p
15722 }
15723 }'
15724 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15725 # Check for a 64-bit object if we didn't find anything.
15726 if test -z "$aix_libpath"; then
15727 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15728 fi
15729 fi
15730 rm -f core conftest.err conftest.$ac_objext \
15731 conftest$ac_exeext conftest.$ac_ext
15732 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15733
15734 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15735
15736 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"
15737 else
15738 if test "$host_cpu" = ia64; then
15739 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15740 allow_undefined_flag_CXX="-z nodefs"
15741 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"
15742 else
15743 # Determine the default libpath from the value encoded in an
15744 # empty executable.
15745 if test x$gcc_no_link = xyes; then
15746 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15747 fi
15748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h. */
15750
15751 int
15752 main ()
15753 {
15754
15755 ;
15756 return 0;
15757 }
15758 _ACEOF
15759 if ac_fn_cxx_try_link "$LINENO"; then :
15760
15761 lt_aix_libpath_sed='
15762 /Import File Strings/,/^$/ {
15763 /^0/ {
15764 s/^0 *\(.*\)$/\1/
15765 p
15766 }
15767 }'
15768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15769 # Check for a 64-bit object if we didn't find anything.
15770 if test -z "$aix_libpath"; then
15771 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15772 fi
15773 fi
15774 rm -f core conftest.err conftest.$ac_objext \
15775 conftest$ac_exeext conftest.$ac_ext
15776 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15777
15778 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15779 # Warning - without using the other run time loading flags,
15780 # -berok will link without error, but may produce a broken library.
15781 no_undefined_flag_CXX=' ${wl}-bernotok'
15782 allow_undefined_flag_CXX=' ${wl}-berok'
15783 if test "$with_gnu_ld" = yes; then
15784 # We only use this code for GNU lds that support --whole-archive.
15785 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15786 else
15787 # Exported symbols can be pulled into shared objects from archives
15788 whole_archive_flag_spec_CXX='$convenience'
15789 fi
15790 archive_cmds_need_lc_CXX=yes
15791 # This is similar to how AIX traditionally builds its shared
15792 # libraries.
15793 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'
15794 fi
15795 fi
15796 ;;
15797
15798 beos*)
15799 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15800 allow_undefined_flag_CXX=unsupported
15801 # Joseph Beckenbach <[email protected]> says some releases of gcc
15802 # support --undefined. This deserves some investigation. FIXME
15803 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15804 else
15805 ld_shlibs_CXX=no
15806 fi
15807 ;;
15808
15809 chorus*)
15810 case $cc_basename in
15811 *)
15812 # FIXME: insert proper C++ library support
15813 ld_shlibs_CXX=no
15814 ;;
15815 esac
15816 ;;
15817
15818 cygwin* | mingw* | pw32* | cegcc*)
15819 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15820 # as there is no search path for DLLs.
15821 hardcode_libdir_flag_spec_CXX='-L$libdir'
15822 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15823 allow_undefined_flag_CXX=unsupported
15824 always_export_symbols_CXX=no
15825 enable_shared_with_static_runtimes_CXX=yes
15826
15827 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15828 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'
15829 # If the export-symbols file already is a .def file (1st line
15830 # is EXPORTS), use it as is; otherwise, prepend...
15831 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15832 cp $export_symbols $output_objdir/$soname.def;
15833 else
15834 echo EXPORTS > $output_objdir/$soname.def;
15835 cat $export_symbols >> $output_objdir/$soname.def;
15836 fi~
15837 $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'
15838 else
15839 ld_shlibs_CXX=no
15840 fi
15841 ;;
15842 darwin* | rhapsody*)
15843
15844
15845
15846 # Publish an arg to allow the user to select that Darwin host (and target)
15847 # libraries should be given install-names like @rpath/libfoo.dylib. This
15848 # requires that the user of the library then adds an 'rpath' to the DSO that
15849 # needs access.
15850 # NOTE: there are defaults below, for systems that support rpaths. The person
15851 # configuring can override the defaults for any system version that supports
15852 # them - they are, however, forced off for system versions without support.
15853 # Check whether --enable-darwin-at-rpath was given.
15854 if test "${enable_darwin_at_rpath+set}" = set; then :
15855 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
15856 # This is not supported before macOS 10.5 / Darwin9.
15857 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
15858 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
15860 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
15861 enable_darwin_at_rpath=no
15862 ;;
15863 esac
15864 fi
15865 else
15866 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
15867 # As above, before 10.5 / Darwin9 this does not work.
15868 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
15869 enable_darwin_at_rpath=no
15870 ;;
15871
15872 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
15873 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
15874 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
15875 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
15877 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
15878 enable_darwin_at_rpath=yes
15879 ;;
15880 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
15881 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
15882
15883 esac
15884
15885 fi
15886
15887
15888 archive_cmds_need_lc_CXX=no
15889 hardcode_direct_CXX=no
15890 hardcode_automatic_CXX=yes
15891 hardcode_shlibpath_var_CXX=unsupported
15892 if test "$lt_cv_ld_force_load" = "yes"; then
15893 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\"`'
15894 else
15895 whole_archive_flag_spec_CXX=''
15896 fi
15897 link_all_deplibs_CXX=yes
15898 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15899 case $cc_basename in
15900 ifort*) _lt_dar_can_shared=yes ;;
15901 *) _lt_dar_can_shared=$GCC ;;
15902 esac
15903 if test "$_lt_dar_can_shared" = "yes"; then
15904 output_verbose_link_cmd=func_echo_all
15905 _lt_install_name='\$rpath/\$soname'
15906 if test "x$enable_darwin_at_rpath" = "xyes"; then
15907 _lt_install_name='@rpath/\$soname'
15908 fi
15909 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
15910 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15911 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
15912 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}"
15913 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15914 _lt_install_name='\$rpath/\$soname'
15915 if test "x$enable_darwin_at_rpath" = "xyes"; then
15916 _lt_install_name='@rpath/\$soname'
15917 fi
15918 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 ${_lt_install_name} \$verstring${_lt_dsymutil}"
15919 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}"
15920 fi
15921
15922 else
15923 ld_shlibs_CXX=no
15924 fi
15925
15926 ;;
15927
15928 dgux*)
15929 case $cc_basename in
15930 ec++*)
15931 # FIXME: insert proper C++ library support
15932 ld_shlibs_CXX=no
15933 ;;
15934 ghcx*)
15935 # Green Hills C++ Compiler
15936 # FIXME: insert proper C++ library support
15937 ld_shlibs_CXX=no
15938 ;;
15939 *)
15940 # FIXME: insert proper C++ library support
15941 ld_shlibs_CXX=no
15942 ;;
15943 esac
15944 ;;
15945
15946 freebsd2.*)
15947 # C++ shared libraries reported to be fairly broken before
15948 # switch to ELF
15949 ld_shlibs_CXX=no
15950 ;;
15951
15952 freebsd-elf*)
15953 archive_cmds_need_lc_CXX=no
15954 ;;
15955
15956 freebsd* | dragonfly*)
15957 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15958 # conventions
15959 ld_shlibs_CXX=yes
15960 ;;
15961
15962 gnu*)
15963 ;;
15964
15965 haiku*)
15966 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15967 link_all_deplibs_CXX=yes
15968 ;;
15969
15970 hpux9*)
15971 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15972 hardcode_libdir_separator_CXX=:
15973 export_dynamic_flag_spec_CXX='${wl}-E'
15974 hardcode_direct_CXX=yes
15975 hardcode_minus_L_CXX=yes # Not in the search PATH,
15976 # but as the default
15977 # location of the library.
15978
15979 case $cc_basename in
15980 CC*)
15981 # FIXME: insert proper C++ library support
15982 ld_shlibs_CXX=no
15983 ;;
15984 aCC*)
15985 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'
15986 # Commands to make compiler produce verbose output that lists
15987 # what "hidden" libraries, object files and flags are used when
15988 # linking a shared library.
15989 #
15990 # There doesn't appear to be a way to prevent this compiler from
15991 # explicitly linking system object files so we need to strip them
15992 # from the output so that they don't get included in the library
15993 # dependencies.
15994 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"'
15995 ;;
15996 *)
15997 if test "$GXX" = yes; then
15998 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'
15999 else
16000 # FIXME: insert proper C++ library support
16001 ld_shlibs_CXX=no
16002 fi
16003 ;;
16004 esac
16005 ;;
16006
16007 hpux10*|hpux11*)
16008 if test $with_gnu_ld = no; then
16009 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16010 hardcode_libdir_separator_CXX=:
16011
16012 case $host_cpu in
16013 hppa*64*|ia64*)
16014 ;;
16015 *)
16016 export_dynamic_flag_spec_CXX='${wl}-E'
16017 ;;
16018 esac
16019 fi
16020 case $host_cpu in
16021 hppa*64*|ia64*)
16022 hardcode_direct_CXX=no
16023 hardcode_shlibpath_var_CXX=no
16024 ;;
16025 *)
16026 hardcode_direct_CXX=yes
16027 hardcode_direct_absolute_CXX=yes
16028 hardcode_minus_L_CXX=yes # Not in the search PATH,
16029 # but as the default
16030 # location of the library.
16031 ;;
16032 esac
16033
16034 case $cc_basename in
16035 CC*)
16036 # FIXME: insert proper C++ library support
16037 ld_shlibs_CXX=no
16038 ;;
16039 aCC*)
16040 case $host_cpu in
16041 hppa*64*)
16042 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16043 ;;
16044 ia64*)
16045 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16046 ;;
16047 *)
16048 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16049 ;;
16050 esac
16051 # Commands to make compiler produce verbose output that lists
16052 # what "hidden" libraries, object files and flags are used when
16053 # linking a shared library.
16054 #
16055 # There doesn't appear to be a way to prevent this compiler from
16056 # explicitly linking system object files so we need to strip them
16057 # from the output so that they don't get included in the library
16058 # dependencies.
16059 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"'
16060 ;;
16061 *)
16062 if test "$GXX" = yes; then
16063 if test $with_gnu_ld = no; then
16064 case $host_cpu in
16065 hppa*64*)
16066 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16067 ;;
16068 ia64*)
16069 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16070 ;;
16071 *)
16072 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'
16073 ;;
16074 esac
16075 fi
16076 else
16077 # FIXME: insert proper C++ library support
16078 ld_shlibs_CXX=no
16079 fi
16080 ;;
16081 esac
16082 ;;
16083
16084 interix[3-9]*)
16085 hardcode_direct_CXX=no
16086 hardcode_shlibpath_var_CXX=no
16087 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16088 export_dynamic_flag_spec_CXX='${wl}-E'
16089 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16090 # Instead, shared libraries are loaded at an image base (0x10000000 by
16091 # default) and relocated if they conflict, which is a slow very memory
16092 # consuming and fragmenting process. To avoid this, we pick a random,
16093 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16094 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16095 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'
16096 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'
16097 ;;
16098 irix5* | irix6*)
16099 case $cc_basename in
16100 CC*)
16101 # SGI C++
16102 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'
16103
16104 # Archives containing C++ object files must be created using
16105 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16106 # necessary to make sure instantiated templates are included
16107 # in the archive.
16108 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16109 ;;
16110 *)
16111 if test "$GXX" = yes; then
16112 if test "$with_gnu_ld" = no; then
16113 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'
16114 else
16115 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'
16116 fi
16117 fi
16118 link_all_deplibs_CXX=yes
16119 ;;
16120 esac
16121 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16122 hardcode_libdir_separator_CXX=:
16123 inherit_rpath_CXX=yes
16124 ;;
16125
16126 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16127 case $cc_basename in
16128 KCC*)
16129 # Kuck and Associates, Inc. (KAI) C++ Compiler
16130
16131 # KCC will only create a shared library if the output file
16132 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16133 # to its proper name (with version) after linking.
16134 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'
16135 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'
16136 # Commands to make compiler produce verbose output that lists
16137 # what "hidden" libraries, object files and flags are used when
16138 # linking a shared library.
16139 #
16140 # There doesn't appear to be a way to prevent this compiler from
16141 # explicitly linking system object files so we need to strip them
16142 # from the output so that they don't get included in the library
16143 # dependencies.
16144 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"'
16145
16146 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16147 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16148
16149 # Archives containing C++ object files must be created using
16150 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16151 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16152 ;;
16153 icpc* | ecpc* )
16154 # Intel C++
16155 with_gnu_ld=yes
16156 # version 8.0 and above of icpc choke on multiply defined symbols
16157 # if we add $predep_objects and $postdep_objects, however 7.1 and
16158 # earlier do not add the objects themselves.
16159 case `$CC -V 2>&1` in
16160 *"Version 7."*)
16161 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16162 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'
16163 ;;
16164 *) # Version 8.0 or newer
16165 tmp_idyn=
16166 case $host_cpu in
16167 ia64*) tmp_idyn=' -i_dynamic';;
16168 esac
16169 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16170 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'
16171 ;;
16172 esac
16173 archive_cmds_need_lc_CXX=no
16174 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16175 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16176 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16177 ;;
16178 pgCC* | pgcpp*)
16179 # Portland Group C++ compiler
16180 case `$CC -V` in
16181 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16182 prelink_cmds_CXX='tpldir=Template.dir~
16183 rm -rf $tpldir~
16184 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16185 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16186 old_archive_cmds_CXX='tpldir=Template.dir~
16187 rm -rf $tpldir~
16188 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16189 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16190 $RANLIB $oldlib'
16191 archive_cmds_CXX='tpldir=Template.dir~
16192 rm -rf $tpldir~
16193 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16194 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16195 archive_expsym_cmds_CXX='tpldir=Template.dir~
16196 rm -rf $tpldir~
16197 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16198 $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'
16199 ;;
16200 *) # Version 6 and above use weak symbols
16201 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16202 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'
16203 ;;
16204 esac
16205
16206 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16207 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16208 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'
16209 ;;
16210 cxx*)
16211 # Compaq C++
16212 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16213 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'
16214
16215 runpath_var=LD_RUN_PATH
16216 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16217 hardcode_libdir_separator_CXX=:
16218
16219 # Commands to make compiler produce verbose output that lists
16220 # what "hidden" libraries, object files and flags are used when
16221 # linking a shared library.
16222 #
16223 # There doesn't appear to be a way to prevent this compiler from
16224 # explicitly linking system object files so we need to strip them
16225 # from the output so that they don't get included in the library
16226 # dependencies.
16227 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'
16228 ;;
16229 xl* | mpixl* | bgxl*)
16230 # IBM XL 8.0 on PPC, with GNU ld
16231 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16232 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16233 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16234 if test "x$supports_anon_versioning" = xyes; then
16235 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16236 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16237 echo "local: *; };" >> $output_objdir/$libname.ver~
16238 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16239 fi
16240 ;;
16241 *)
16242 case `$CC -V 2>&1 | sed 5q` in
16243 *Sun\ C*)
16244 # Sun C++ 5.9
16245 no_undefined_flag_CXX=' -zdefs'
16246 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16247 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'
16248 hardcode_libdir_flag_spec_CXX='-R$libdir'
16249 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'
16250 compiler_needs_object_CXX=yes
16251
16252 # Not sure whether something based on
16253 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16254 # would be better.
16255 output_verbose_link_cmd='func_echo_all'
16256
16257 # Archives containing C++ object files must be created using
16258 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16259 # necessary to make sure instantiated templates are included
16260 # in the archive.
16261 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16262 ;;
16263 esac
16264 ;;
16265 esac
16266 ;;
16267
16268 lynxos*)
16269 # FIXME: insert proper C++ library support
16270 ld_shlibs_CXX=no
16271 ;;
16272
16273 m88k*)
16274 # FIXME: insert proper C++ library support
16275 ld_shlibs_CXX=no
16276 ;;
16277
16278 mvs*)
16279 case $cc_basename in
16280 cxx*)
16281 # FIXME: insert proper C++ library support
16282 ld_shlibs_CXX=no
16283 ;;
16284 *)
16285 # FIXME: insert proper C++ library support
16286 ld_shlibs_CXX=no
16287 ;;
16288 esac
16289 ;;
16290
16291 netbsd*)
16292 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16293 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16294 wlarc=
16295 hardcode_libdir_flag_spec_CXX='-R$libdir'
16296 hardcode_direct_CXX=yes
16297 hardcode_shlibpath_var_CXX=no
16298 fi
16299 # Workaround some broken pre-1.5 toolchains
16300 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16301 ;;
16302
16303 *nto* | *qnx*)
16304 ld_shlibs_CXX=yes
16305 ;;
16306
16307 openbsd2*)
16308 # C++ shared libraries are fairly broken
16309 ld_shlibs_CXX=no
16310 ;;
16311
16312 openbsd*)
16313 if test -f /usr/libexec/ld.so; then
16314 hardcode_direct_CXX=yes
16315 hardcode_shlibpath_var_CXX=no
16316 hardcode_direct_absolute_CXX=yes
16317 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16318 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16320 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16321 export_dynamic_flag_spec_CXX='${wl}-E'
16322 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16323 fi
16324 output_verbose_link_cmd=func_echo_all
16325 else
16326 ld_shlibs_CXX=no
16327 fi
16328 ;;
16329
16330 osf3* | osf4* | osf5*)
16331 case $cc_basename in
16332 KCC*)
16333 # Kuck and Associates, Inc. (KAI) C++ Compiler
16334
16335 # KCC will only create a shared library if the output file
16336 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16337 # to its proper name (with version) after linking.
16338 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'
16339
16340 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16341 hardcode_libdir_separator_CXX=:
16342
16343 # Archives containing C++ object files must be created using
16344 # the KAI C++ compiler.
16345 case $host in
16346 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16347 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16348 esac
16349 ;;
16350 RCC*)
16351 # Rational C++ 2.4.1
16352 # FIXME: insert proper C++ library support
16353 ld_shlibs_CXX=no
16354 ;;
16355 cxx*)
16356 case $host in
16357 osf3*)
16358 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16359 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'
16360 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16361 ;;
16362 *)
16363 allow_undefined_flag_CXX=' -expect_unresolved \*'
16364 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'
16365 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16366 echo "-hidden">> $lib.exp~
16367 $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~
16368 $RM $lib.exp'
16369 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16370 ;;
16371 esac
16372
16373 hardcode_libdir_separator_CXX=:
16374
16375 # Commands to make compiler produce verbose output that lists
16376 # what "hidden" libraries, object files and flags are used when
16377 # linking a shared library.
16378 #
16379 # There doesn't appear to be a way to prevent this compiler from
16380 # explicitly linking system object files so we need to strip them
16381 # from the output so that they don't get included in the library
16382 # dependencies.
16383 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"'
16384 ;;
16385 *)
16386 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16387 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16388 case $host in
16389 osf3*)
16390 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'
16391 ;;
16392 *)
16393 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'
16394 ;;
16395 esac
16396
16397 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16398 hardcode_libdir_separator_CXX=:
16399
16400 # Commands to make compiler produce verbose output that lists
16401 # what "hidden" libraries, object files and flags are used when
16402 # linking a shared library.
16403 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16404
16405 else
16406 # FIXME: insert proper C++ library support
16407 ld_shlibs_CXX=no
16408 fi
16409 ;;
16410 esac
16411 ;;
16412
16413 psos*)
16414 # FIXME: insert proper C++ library support
16415 ld_shlibs_CXX=no
16416 ;;
16417
16418 sunos4*)
16419 case $cc_basename in
16420 CC*)
16421 # Sun C++ 4.x
16422 # FIXME: insert proper C++ library support
16423 ld_shlibs_CXX=no
16424 ;;
16425 lcc*)
16426 # Lucid
16427 # FIXME: insert proper C++ library support
16428 ld_shlibs_CXX=no
16429 ;;
16430 *)
16431 # FIXME: insert proper C++ library support
16432 ld_shlibs_CXX=no
16433 ;;
16434 esac
16435 ;;
16436
16437 solaris*)
16438 case $cc_basename in
16439 CC*)
16440 # Sun C++ 4.2, 5.x and Centerline C++
16441 archive_cmds_need_lc_CXX=yes
16442 no_undefined_flag_CXX=' -zdefs'
16443 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16444 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16445 $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'
16446
16447 hardcode_libdir_flag_spec_CXX='-R$libdir'
16448 hardcode_shlibpath_var_CXX=no
16449 case $host_os in
16450 solaris2.[0-5] | solaris2.[0-5].*) ;;
16451 *)
16452 # The compiler driver will combine and reorder linker options,
16453 # but understands `-z linker_flag'.
16454 # Supported since Solaris 2.6 (maybe 2.5.1?)
16455 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16456 ;;
16457 esac
16458 link_all_deplibs_CXX=yes
16459
16460 output_verbose_link_cmd='func_echo_all'
16461
16462 # Archives containing C++ object files must be created using
16463 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16464 # necessary to make sure instantiated templates are included
16465 # in the archive.
16466 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16467 ;;
16468 gcx*)
16469 # Green Hills C++ Compiler
16470 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16471
16472 # The C++ compiler must be used to create the archive.
16473 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16474 ;;
16475 *)
16476 # GNU C++ compiler with Solaris linker
16477 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16478 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16479 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16480 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16481 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16482 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16483
16484 # Commands to make compiler produce verbose output that lists
16485 # what "hidden" libraries, object files and flags are used when
16486 # linking a shared library.
16487 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16488 else
16489 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16490 # platform.
16491 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16492 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16493 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16494
16495 # Commands to make compiler produce verbose output that lists
16496 # what "hidden" libraries, object files and flags are used when
16497 # linking a shared library.
16498 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16499 fi
16500
16501 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16502 case $host_os in
16503 solaris2.[0-5] | solaris2.[0-5].*) ;;
16504 *)
16505 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16506 ;;
16507 esac
16508 fi
16509 ;;
16510 esac
16511 ;;
16512
16513 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16514 no_undefined_flag_CXX='${wl}-z,text'
16515 archive_cmds_need_lc_CXX=no
16516 hardcode_shlibpath_var_CXX=no
16517 runpath_var='LD_RUN_PATH'
16518
16519 case $cc_basename in
16520 CC*)
16521 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16522 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16523 ;;
16524 *)
16525 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16526 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16527 ;;
16528 esac
16529 ;;
16530
16531 sysv5* | sco3.2v5* | sco5v6*)
16532 # Note: We can NOT use -z defs as we might desire, because we do not
16533 # link with -lc, and that would cause any symbols used from libc to
16534 # always be unresolved, which means just about no library would
16535 # ever link correctly. If we're not using GNU ld we use -z text
16536 # though, which does catch some bad symbols but isn't as heavy-handed
16537 # as -z defs.
16538 no_undefined_flag_CXX='${wl}-z,text'
16539 allow_undefined_flag_CXX='${wl}-z,nodefs'
16540 archive_cmds_need_lc_CXX=no
16541 hardcode_shlibpath_var_CXX=no
16542 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16543 hardcode_libdir_separator_CXX=':'
16544 link_all_deplibs_CXX=yes
16545 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16546 runpath_var='LD_RUN_PATH'
16547
16548 case $cc_basename in
16549 CC*)
16550 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16551 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16552 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16553 '"$old_archive_cmds_CXX"
16554 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16555 '"$reload_cmds_CXX"
16556 ;;
16557 *)
16558 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16559 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16560 ;;
16561 esac
16562 ;;
16563
16564 tandem*)
16565 case $cc_basename in
16566 NCC*)
16567 # NonStop-UX NCC 3.20
16568 # FIXME: insert proper C++ library support
16569 ld_shlibs_CXX=no
16570 ;;
16571 *)
16572 # FIXME: insert proper C++ library support
16573 ld_shlibs_CXX=no
16574 ;;
16575 esac
16576 ;;
16577
16578 vxworks*)
16579 # For VxWorks ports, we assume the use of a GNU linker with
16580 # standard elf conventions.
16581 ld_shlibs_CXX=yes
16582 ;;
16583
16584 *)
16585 # FIXME: insert proper C++ library support
16586 ld_shlibs_CXX=no
16587 ;;
16588 esac
16589
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16591 $as_echo "$ld_shlibs_CXX" >&6; }
16592 test "$ld_shlibs_CXX" = no && can_build_shared=no
16593
16594 GCC_CXX="$GXX"
16595 LD_CXX="$LD"
16596
16597 ## CAVEAT EMPTOR:
16598 ## There is no encapsulation within the following macros, do not change
16599 ## the running order or otherwise move them around unless you know exactly
16600 ## what you are doing...
16601 # Dependencies to place before and after the object being linked:
16602 predep_objects_CXX=
16603 postdep_objects_CXX=
16604 predeps_CXX=
16605 postdeps_CXX=
16606 compiler_lib_search_path_CXX=
16607
16608 cat > conftest.$ac_ext <<_LT_EOF
16609 class Foo
16610 {
16611 public:
16612 Foo (void) { a = 0; }
16613 private:
16614 int a;
16615 };
16616 _LT_EOF
16617
16618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16619 (eval $ac_compile) 2>&5
16620 ac_status=$?
16621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16622 test $ac_status = 0; }; then
16623 # Parse the compiler output and extract the necessary
16624 # objects, libraries and library flags.
16625
16626 # Sentinel used to keep track of whether or not we are before
16627 # the conftest object file.
16628 pre_test_object_deps_done=no
16629
16630 for p in `eval "$output_verbose_link_cmd"`; do
16631 case $p in
16632
16633 -L* | -R* | -l*)
16634 # Some compilers place space between "-{L,R}" and the path.
16635 # Remove the space.
16636 if test $p = "-L" ||
16637 test $p = "-R"; then
16638 prev=$p
16639 continue
16640 else
16641 prev=
16642 fi
16643
16644 if test "$pre_test_object_deps_done" = no; then
16645 case $p in
16646 -L* | -R*)
16647 # Internal compiler library paths should come after those
16648 # provided the user. The postdeps already come after the
16649 # user supplied libs so there is no need to process them.
16650 if test -z "$compiler_lib_search_path_CXX"; then
16651 compiler_lib_search_path_CXX="${prev}${p}"
16652 else
16653 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16654 fi
16655 ;;
16656 # The "-l" case would never come before the object being
16657 # linked, so don't bother handling this case.
16658 esac
16659 else
16660 if test -z "$postdeps_CXX"; then
16661 postdeps_CXX="${prev}${p}"
16662 else
16663 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16664 fi
16665 fi
16666 ;;
16667
16668 *.$objext)
16669 # This assumes that the test object file only shows up
16670 # once in the compiler output.
16671 if test "$p" = "conftest.$objext"; then
16672 pre_test_object_deps_done=yes
16673 continue
16674 fi
16675
16676 if test "$pre_test_object_deps_done" = no; then
16677 if test -z "$predep_objects_CXX"; then
16678 predep_objects_CXX="$p"
16679 else
16680 predep_objects_CXX="$predep_objects_CXX $p"
16681 fi
16682 else
16683 if test -z "$postdep_objects_CXX"; then
16684 postdep_objects_CXX="$p"
16685 else
16686 postdep_objects_CXX="$postdep_objects_CXX $p"
16687 fi
16688 fi
16689 ;;
16690
16691 *) ;; # Ignore the rest.
16692
16693 esac
16694 done
16695
16696 # Clean up.
16697 rm -f a.out a.exe
16698 else
16699 echo "libtool.m4: error: problem compiling CXX test program"
16700 fi
16701
16702 $RM -f confest.$objext
16703
16704 # PORTME: override above test on systems where it is broken
16705 case $host_os in
16706 interix[3-9]*)
16707 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16708 # hack all around it, let's just trust "g++" to DTRT.
16709 predep_objects_CXX=
16710 postdep_objects_CXX=
16711 postdeps_CXX=
16712 ;;
16713
16714 linux*)
16715 case `$CC -V 2>&1 | sed 5q` in
16716 *Sun\ C*)
16717 # Sun C++ 5.9
16718
16719 # The more standards-conforming stlport4 library is
16720 # incompatible with the Cstd library. Avoid specifying
16721 # it if it's in CXXFLAGS. Ignore libCrun as
16722 # -library=stlport4 depends on it.
16723 case " $CXX $CXXFLAGS " in
16724 *" -library=stlport4 "*)
16725 solaris_use_stlport4=yes
16726 ;;
16727 esac
16728
16729 if test "$solaris_use_stlport4" != yes; then
16730 postdeps_CXX='-library=Cstd -library=Crun'
16731 fi
16732 ;;
16733 esac
16734 ;;
16735
16736 solaris*)
16737 case $cc_basename in
16738 CC*)
16739 # The more standards-conforming stlport4 library is
16740 # incompatible with the Cstd library. Avoid specifying
16741 # it if it's in CXXFLAGS. Ignore libCrun as
16742 # -library=stlport4 depends on it.
16743 case " $CXX $CXXFLAGS " in
16744 *" -library=stlport4 "*)
16745 solaris_use_stlport4=yes
16746 ;;
16747 esac
16748
16749 # Adding this requires a known-good setup of shared libraries for
16750 # Sun compiler versions before 5.6, else PIC objects from an old
16751 # archive will be linked into the output, leading to subtle bugs.
16752 if test "$solaris_use_stlport4" != yes; then
16753 postdeps_CXX='-library=Cstd -library=Crun'
16754 fi
16755 ;;
16756 esac
16757 ;;
16758 esac
16759
16760
16761 case " $postdeps_CXX " in
16762 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16763 esac
16764 compiler_lib_search_dirs_CXX=
16765 if test -n "${compiler_lib_search_path_CXX}"; then
16766 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16767 fi
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799 lt_prog_compiler_wl_CXX=
16800 lt_prog_compiler_pic_CXX=
16801 lt_prog_compiler_static_CXX=
16802
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16804 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16805
16806 # C++ specific cases for pic, static, wl, etc.
16807 if test "$GXX" = yes; then
16808 lt_prog_compiler_wl_CXX='-Wl,'
16809 lt_prog_compiler_static_CXX='-static'
16810
16811 case $host_os in
16812 aix*)
16813 # All AIX code is PIC.
16814 if test "$host_cpu" = ia64; then
16815 # AIX 5 now supports IA64 processor
16816 lt_prog_compiler_static_CXX='-Bstatic'
16817 fi
16818 lt_prog_compiler_pic_CXX='-fPIC'
16819 ;;
16820
16821 amigaos*)
16822 case $host_cpu in
16823 powerpc)
16824 # see comment about AmigaOS4 .so support
16825 lt_prog_compiler_pic_CXX='-fPIC'
16826 ;;
16827 m68k)
16828 # FIXME: we need at least 68020 code to build shared libraries, but
16829 # adding the `-m68020' flag to GCC prevents building anything better,
16830 # like `-m68040'.
16831 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16832 ;;
16833 esac
16834 ;;
16835
16836 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16837 # PIC is the default for these OSes.
16838 ;;
16839 mingw* | cygwin* | os2* | pw32* | cegcc*)
16840 # This hack is so that the source file can tell whether it is being
16841 # built for inclusion in a dll (and should export symbols for example).
16842 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16843 # (--disable-auto-import) libraries
16844 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16845 ;;
16846 darwin* | rhapsody*)
16847 # PIC is the default on this platform
16848 # Common symbols not allowed in MH_DYLIB files
16849 lt_prog_compiler_pic_CXX='-fno-common'
16850 ;;
16851 *djgpp*)
16852 # DJGPP does not support shared libraries at all
16853 lt_prog_compiler_pic_CXX=
16854 ;;
16855 haiku*)
16856 # PIC is the default for Haiku.
16857 # The "-static" flag exists, but is broken.
16858 lt_prog_compiler_static_CXX=
16859 ;;
16860 interix[3-9]*)
16861 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16862 # Instead, we relocate shared libraries at runtime.
16863 ;;
16864 sysv4*MP*)
16865 if test -d /usr/nec; then
16866 lt_prog_compiler_pic_CXX=-Kconform_pic
16867 fi
16868 ;;
16869 hpux*)
16870 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16871 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16872 # sets the default TLS model and affects inlining.
16873 case $host_cpu in
16874 hppa*64*)
16875 ;;
16876 *)
16877 lt_prog_compiler_pic_CXX='-fPIC'
16878 ;;
16879 esac
16880 ;;
16881 *qnx* | *nto*)
16882 # QNX uses GNU C++, but need to define -shared option too, otherwise
16883 # it will coredump.
16884 lt_prog_compiler_pic_CXX='-fPIC -shared'
16885 ;;
16886 *)
16887 lt_prog_compiler_pic_CXX='-fPIC'
16888 ;;
16889 esac
16890 else
16891 case $host_os in
16892 aix[4-9]*)
16893 # All AIX code is PIC.
16894 if test "$host_cpu" = ia64; then
16895 # AIX 5 now supports IA64 processor
16896 lt_prog_compiler_static_CXX='-Bstatic'
16897 else
16898 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16899 fi
16900 ;;
16901 chorus*)
16902 case $cc_basename in
16903 cxch68*)
16904 # Green Hills C++ Compiler
16905 # _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"
16906 ;;
16907 esac
16908 ;;
16909 dgux*)
16910 case $cc_basename in
16911 ec++*)
16912 lt_prog_compiler_pic_CXX='-KPIC'
16913 ;;
16914 ghcx*)
16915 # Green Hills C++ Compiler
16916 lt_prog_compiler_pic_CXX='-pic'
16917 ;;
16918 *)
16919 ;;
16920 esac
16921 ;;
16922 freebsd* | dragonfly*)
16923 # FreeBSD uses GNU C++
16924 ;;
16925 hpux9* | hpux10* | hpux11*)
16926 case $cc_basename in
16927 CC*)
16928 lt_prog_compiler_wl_CXX='-Wl,'
16929 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16930 if test "$host_cpu" != ia64; then
16931 lt_prog_compiler_pic_CXX='+Z'
16932 fi
16933 ;;
16934 aCC*)
16935 lt_prog_compiler_wl_CXX='-Wl,'
16936 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16937 case $host_cpu in
16938 hppa*64*|ia64*)
16939 # +Z the default
16940 ;;
16941 *)
16942 lt_prog_compiler_pic_CXX='+Z'
16943 ;;
16944 esac
16945 ;;
16946 *)
16947 ;;
16948 esac
16949 ;;
16950 interix*)
16951 # This is c89, which is MS Visual C++ (no shared libs)
16952 # Anyone wants to do a port?
16953 ;;
16954 irix5* | irix6* | nonstopux*)
16955 case $cc_basename in
16956 CC*)
16957 lt_prog_compiler_wl_CXX='-Wl,'
16958 lt_prog_compiler_static_CXX='-non_shared'
16959 # CC pic flag -KPIC is the default.
16960 ;;
16961 *)
16962 ;;
16963 esac
16964 ;;
16965 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16966 case $cc_basename in
16967 KCC*)
16968 # KAI C++ Compiler
16969 lt_prog_compiler_wl_CXX='--backend -Wl,'
16970 lt_prog_compiler_pic_CXX='-fPIC'
16971 ;;
16972 ecpc* )
16973 # old Intel C++ for x86_64 which still supported -KPIC.
16974 lt_prog_compiler_wl_CXX='-Wl,'
16975 lt_prog_compiler_pic_CXX='-KPIC'
16976 lt_prog_compiler_static_CXX='-static'
16977 ;;
16978 icpc* )
16979 # Intel C++, used to be incompatible with GCC.
16980 # ICC 10 doesn't accept -KPIC any more.
16981 lt_prog_compiler_wl_CXX='-Wl,'
16982 lt_prog_compiler_pic_CXX='-fPIC'
16983 lt_prog_compiler_static_CXX='-static'
16984 ;;
16985 pgCC* | pgcpp*)
16986 # Portland Group C++ compiler
16987 lt_prog_compiler_wl_CXX='-Wl,'
16988 lt_prog_compiler_pic_CXX='-fpic'
16989 lt_prog_compiler_static_CXX='-Bstatic'
16990 ;;
16991 cxx*)
16992 # Compaq C++
16993 # Make sure the PIC flag is empty. It appears that all Alpha
16994 # Linux and Compaq Tru64 Unix objects are PIC.
16995 lt_prog_compiler_pic_CXX=
16996 lt_prog_compiler_static_CXX='-non_shared'
16997 ;;
16998 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16999 # IBM XL 8.0, 9.0 on PPC and BlueGene
17000 lt_prog_compiler_wl_CXX='-Wl,'
17001 lt_prog_compiler_pic_CXX='-qpic'
17002 lt_prog_compiler_static_CXX='-qstaticlink'
17003 ;;
17004 *)
17005 case `$CC -V 2>&1 | sed 5q` in
17006 *Sun\ C*)
17007 # Sun C++ 5.9
17008 lt_prog_compiler_pic_CXX='-KPIC'
17009 lt_prog_compiler_static_CXX='-Bstatic'
17010 lt_prog_compiler_wl_CXX='-Qoption ld '
17011 ;;
17012 esac
17013 ;;
17014 esac
17015 ;;
17016 lynxos*)
17017 ;;
17018 m88k*)
17019 ;;
17020 mvs*)
17021 case $cc_basename in
17022 cxx*)
17023 lt_prog_compiler_pic_CXX='-W c,exportall'
17024 ;;
17025 *)
17026 ;;
17027 esac
17028 ;;
17029 netbsd*)
17030 ;;
17031 *qnx* | *nto*)
17032 # QNX uses GNU C++, but need to define -shared option too, otherwise
17033 # it will coredump.
17034 lt_prog_compiler_pic_CXX='-fPIC -shared'
17035 ;;
17036 osf3* | osf4* | osf5*)
17037 case $cc_basename in
17038 KCC*)
17039 lt_prog_compiler_wl_CXX='--backend -Wl,'
17040 ;;
17041 RCC*)
17042 # Rational C++ 2.4.1
17043 lt_prog_compiler_pic_CXX='-pic'
17044 ;;
17045 cxx*)
17046 # Digital/Compaq C++
17047 lt_prog_compiler_wl_CXX='-Wl,'
17048 # Make sure the PIC flag is empty. It appears that all Alpha
17049 # Linux and Compaq Tru64 Unix objects are PIC.
17050 lt_prog_compiler_pic_CXX=
17051 lt_prog_compiler_static_CXX='-non_shared'
17052 ;;
17053 *)
17054 ;;
17055 esac
17056 ;;
17057 psos*)
17058 ;;
17059 solaris*)
17060 case $cc_basename in
17061 CC*)
17062 # Sun C++ 4.2, 5.x and Centerline C++
17063 lt_prog_compiler_pic_CXX='-KPIC'
17064 lt_prog_compiler_static_CXX='-Bstatic'
17065 lt_prog_compiler_wl_CXX='-Qoption ld '
17066 ;;
17067 gcx*)
17068 # Green Hills C++ Compiler
17069 lt_prog_compiler_pic_CXX='-PIC'
17070 ;;
17071 *)
17072 ;;
17073 esac
17074 ;;
17075 sunos4*)
17076 case $cc_basename in
17077 CC*)
17078 # Sun C++ 4.x
17079 lt_prog_compiler_pic_CXX='-pic'
17080 lt_prog_compiler_static_CXX='-Bstatic'
17081 ;;
17082 lcc*)
17083 # Lucid
17084 lt_prog_compiler_pic_CXX='-pic'
17085 ;;
17086 *)
17087 ;;
17088 esac
17089 ;;
17090 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17091 case $cc_basename in
17092 CC*)
17093 lt_prog_compiler_wl_CXX='-Wl,'
17094 lt_prog_compiler_pic_CXX='-KPIC'
17095 lt_prog_compiler_static_CXX='-Bstatic'
17096 ;;
17097 esac
17098 ;;
17099 tandem*)
17100 case $cc_basename in
17101 NCC*)
17102 # NonStop-UX NCC 3.20
17103 lt_prog_compiler_pic_CXX='-KPIC'
17104 ;;
17105 *)
17106 ;;
17107 esac
17108 ;;
17109 vxworks*)
17110 ;;
17111 *)
17112 lt_prog_compiler_can_build_shared_CXX=no
17113 ;;
17114 esac
17115 fi
17116
17117 case $host_os in
17118 # For platforms which do not support PIC, -DPIC is meaningless:
17119 *djgpp*)
17120 lt_prog_compiler_pic_CXX=
17121 ;;
17122 *)
17123 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17124 ;;
17125 esac
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17127 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17128
17129
17130
17131 #
17132 # Check to make sure the PIC flag actually works.
17133 #
17134 if test -n "$lt_prog_compiler_pic_CXX"; then
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17136 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17137 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17138 $as_echo_n "(cached) " >&6
17139 else
17140 lt_cv_prog_compiler_pic_works_CXX=no
17141 ac_outfile=conftest.$ac_objext
17142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17143 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17144 # Insert the option either (1) after the last *FLAGS variable, or
17145 # (2) before a word containing "conftest.", or (3) at the end.
17146 # Note that $ac_compile itself does not contain backslashes and begins
17147 # with a dollar sign (not a hyphen), so the echo should work correctly.
17148 # The option is referenced via a variable to avoid confusing sed.
17149 lt_compile=`echo "$ac_compile" | $SED \
17150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17152 -e 's:$: $lt_compiler_flag:'`
17153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17154 (eval "$lt_compile" 2>conftest.err)
17155 ac_status=$?
17156 cat conftest.err >&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 if (exit $ac_status) && test -s "$ac_outfile"; then
17159 # The compiler can only warn and ignore the option if not recognized
17160 # So say no if there are warnings other than the usual output.
17161 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17162 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17163 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17164 lt_cv_prog_compiler_pic_works_CXX=yes
17165 fi
17166 fi
17167 $RM conftest*
17168
17169 fi
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17171 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17172
17173 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17174 case $lt_prog_compiler_pic_CXX in
17175 "" | " "*) ;;
17176 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17177 esac
17178 else
17179 lt_prog_compiler_pic_CXX=
17180 lt_prog_compiler_can_build_shared_CXX=no
17181 fi
17182
17183 fi
17184
17185
17186
17187 #
17188 # Check to make sure the static flag actually works.
17189 #
17190 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17192 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17193 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17194 $as_echo_n "(cached) " >&6
17195 else
17196 lt_cv_prog_compiler_static_works_CXX=no
17197 save_LDFLAGS="$LDFLAGS"
17198 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17199 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17200 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17201 # The linker can only warn and ignore the option if not recognized
17202 # So say no if there are warnings
17203 if test -s conftest.err; then
17204 # Append any errors to the config.log.
17205 cat conftest.err 1>&5
17206 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17208 if diff conftest.exp conftest.er2 >/dev/null; then
17209 lt_cv_prog_compiler_static_works_CXX=yes
17210 fi
17211 else
17212 lt_cv_prog_compiler_static_works_CXX=yes
17213 fi
17214 fi
17215 $RM -r conftest*
17216 LDFLAGS="$save_LDFLAGS"
17217
17218 fi
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17220 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17221
17222 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17223 :
17224 else
17225 lt_prog_compiler_static_CXX=
17226 fi
17227
17228
17229
17230
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17232 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17233 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17234 $as_echo_n "(cached) " >&6
17235 else
17236 lt_cv_prog_compiler_c_o_CXX=no
17237 $RM -r conftest 2>/dev/null
17238 mkdir conftest
17239 cd conftest
17240 mkdir out
17241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17242
17243 lt_compiler_flag="-o out/conftest2.$ac_objext"
17244 # Insert the option either (1) after the last *FLAGS variable, or
17245 # (2) before a word containing "conftest.", or (3) at the end.
17246 # Note that $ac_compile itself does not contain backslashes and begins
17247 # with a dollar sign (not a hyphen), so the echo should work correctly.
17248 lt_compile=`echo "$ac_compile" | $SED \
17249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17251 -e 's:$: $lt_compiler_flag:'`
17252 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17253 (eval "$lt_compile" 2>out/conftest.err)
17254 ac_status=$?
17255 cat out/conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17258 then
17259 # The compiler can only warn and ignore the option if not recognized
17260 # So say no if there are warnings
17261 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17262 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17263 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17264 lt_cv_prog_compiler_c_o_CXX=yes
17265 fi
17266 fi
17267 chmod u+w . 2>&5
17268 $RM conftest*
17269 # SGI C++ compiler will create directory out/ii_files/ for
17270 # template instantiation
17271 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17272 $RM out/* && rmdir out
17273 cd ..
17274 $RM -r conftest
17275 $RM conftest*
17276
17277 fi
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17279 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17280
17281
17282
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17284 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17285 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17286 $as_echo_n "(cached) " >&6
17287 else
17288 lt_cv_prog_compiler_c_o_CXX=no
17289 $RM -r conftest 2>/dev/null
17290 mkdir conftest
17291 cd conftest
17292 mkdir out
17293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17294
17295 lt_compiler_flag="-o out/conftest2.$ac_objext"
17296 # Insert the option either (1) after the last *FLAGS variable, or
17297 # (2) before a word containing "conftest.", or (3) at the end.
17298 # Note that $ac_compile itself does not contain backslashes and begins
17299 # with a dollar sign (not a hyphen), so the echo should work correctly.
17300 lt_compile=`echo "$ac_compile" | $SED \
17301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17303 -e 's:$: $lt_compiler_flag:'`
17304 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17305 (eval "$lt_compile" 2>out/conftest.err)
17306 ac_status=$?
17307 cat out/conftest.err >&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17310 then
17311 # The compiler can only warn and ignore the option if not recognized
17312 # So say no if there are warnings
17313 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17316 lt_cv_prog_compiler_c_o_CXX=yes
17317 fi
17318 fi
17319 chmod u+w . 2>&5
17320 $RM conftest*
17321 # SGI C++ compiler will create directory out/ii_files/ for
17322 # template instantiation
17323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17324 $RM out/* && rmdir out
17325 cd ..
17326 $RM -r conftest
17327 $RM conftest*
17328
17329 fi
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17331 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17332
17333
17334
17335
17336 hard_links="nottested"
17337 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17338 # do not overwrite the value of need_locks provided by the user
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17340 $as_echo_n "checking if we can lock with hard links... " >&6; }
17341 hard_links=yes
17342 $RM conftest*
17343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17344 touch conftest.a
17345 ln conftest.a conftest.b 2>&5 || hard_links=no
17346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17348 $as_echo "$hard_links" >&6; }
17349 if test "$hard_links" = no; then
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17351 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17352 need_locks=warn
17353 fi
17354 else
17355 need_locks=no
17356 fi
17357
17358
17359
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17361 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17362
17363 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17364 case $host_os in
17365 aix[4-9]*)
17366 # If we're using GNU nm, then we don't want the "-C" option.
17367 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17368 # Also, AIX nm treats weak defined symbols like other global defined
17369 # symbols, whereas GNU nm marks them as "W".
17370 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17371 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'
17372 else
17373 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'
17374 fi
17375 ;;
17376 pw32*)
17377 export_symbols_cmds_CXX="$ltdll_cmds"
17378 ;;
17379 cygwin* | mingw* | cegcc*)
17380 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'
17381 ;;
17382 *)
17383 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17384 ;;
17385 esac
17386 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17387
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17389 $as_echo "$ld_shlibs_CXX" >&6; }
17390 test "$ld_shlibs_CXX" = no && can_build_shared=no
17391
17392 with_gnu_ld_CXX=$with_gnu_ld
17393
17394
17395
17396
17397
17398
17399 #
17400 # Do we need to explicitly link libc?
17401 #
17402 case "x$archive_cmds_need_lc_CXX" in
17403 x|xyes)
17404 # Assume -lc should be added
17405 archive_cmds_need_lc_CXX=yes
17406
17407 if test "$enable_shared" = yes && test "$GCC" = yes; then
17408 case $archive_cmds_CXX in
17409 *'~'*)
17410 # FIXME: we may have to deal with multi-command sequences.
17411 ;;
17412 '$CC '*)
17413 # Test whether the compiler implicitly links with -lc since on some
17414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17415 # to ld, don't add -lc before -lgcc.
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17417 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17418 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17419 $as_echo_n "(cached) " >&6
17420 else
17421 $RM conftest*
17422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17423
17424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17425 (eval $ac_compile) 2>&5
17426 ac_status=$?
17427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17428 test $ac_status = 0; } 2>conftest.err; then
17429 soname=conftest
17430 lib=conftest
17431 libobjs=conftest.$ac_objext
17432 deplibs=
17433 wl=$lt_prog_compiler_wl_CXX
17434 pic_flag=$lt_prog_compiler_pic_CXX
17435 compiler_flags=-v
17436 linker_flags=-v
17437 verstring=
17438 output_objdir=.
17439 libname=conftest
17440 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17441 allow_undefined_flag_CXX=
17442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17443 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17444 ac_status=$?
17445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17446 test $ac_status = 0; }
17447 then
17448 lt_cv_archive_cmds_need_lc_CXX=no
17449 else
17450 lt_cv_archive_cmds_need_lc_CXX=yes
17451 fi
17452 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17453 else
17454 cat conftest.err 1>&5
17455 fi
17456 $RM conftest*
17457
17458 fi
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17460 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17461 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17462 ;;
17463 esac
17464 fi
17465 ;;
17466 esac
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17532 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17533
17534 library_names_spec=
17535 libname_spec='lib$name'
17536 soname_spec=
17537 shrext_cmds=".so"
17538 postinstall_cmds=
17539 postuninstall_cmds=
17540 finish_cmds=
17541 finish_eval=
17542 shlibpath_var=
17543 shlibpath_overrides_runpath=unknown
17544 version_type=none
17545 dynamic_linker="$host_os ld.so"
17546 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17547 need_lib_prefix=unknown
17548 hardcode_into_libs=no
17549
17550 # when you set need_version to no, make sure it does not cause -set_version
17551 # flags to be left without arguments
17552 need_version=unknown
17553
17554 case $host_os in
17555 aix3*)
17556 version_type=linux
17557 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17558 shlibpath_var=LIBPATH
17559
17560 # AIX 3 has no versioning support, so we append a major version to the name.
17561 soname_spec='${libname}${release}${shared_ext}$major'
17562 ;;
17563
17564 aix[4-9]*)
17565 version_type=linux
17566 need_lib_prefix=no
17567 need_version=no
17568 hardcode_into_libs=yes
17569 if test "$host_cpu" = ia64; then
17570 # AIX 5 supports IA64
17571 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17572 shlibpath_var=LD_LIBRARY_PATH
17573 else
17574 # With GCC up to 2.95.x, collect2 would create an import file
17575 # for dependence libraries. The import file would start with
17576 # the line `#! .'. This would cause the generated library to
17577 # depend on `.', always an invalid library. This was fixed in
17578 # development snapshots of GCC prior to 3.0.
17579 case $host_os in
17580 aix4 | aix4.[01] | aix4.[01].*)
17581 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17582 echo ' yes '
17583 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17584 :
17585 else
17586 can_build_shared=no
17587 fi
17588 ;;
17589 esac
17590 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17591 # soname into executable. Probably we can add versioning support to
17592 # collect2, so additional links can be useful in future.
17593 if test "$aix_use_runtimelinking" = yes; then
17594 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17595 # instead of lib<name>.a to let people know that these are not
17596 # typical AIX shared libraries.
17597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17598 else
17599 # We preserve .a as extension for shared libraries through AIX4.2
17600 # and later when we are not doing run time linking.
17601 library_names_spec='${libname}${release}.a $libname.a'
17602 soname_spec='${libname}${release}${shared_ext}$major'
17603 fi
17604 shlibpath_var=LIBPATH
17605 fi
17606 ;;
17607
17608 amigaos*)
17609 case $host_cpu in
17610 powerpc)
17611 # Since July 2007 AmigaOS4 officially supports .so libraries.
17612 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17614 ;;
17615 m68k)
17616 library_names_spec='$libname.ixlibrary $libname.a'
17617 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17618 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'
17619 ;;
17620 esac
17621 ;;
17622
17623 beos*)
17624 library_names_spec='${libname}${shared_ext}'
17625 dynamic_linker="$host_os ld.so"
17626 shlibpath_var=LIBRARY_PATH
17627 ;;
17628
17629 bsdi[45]*)
17630 version_type=linux
17631 need_version=no
17632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17633 soname_spec='${libname}${release}${shared_ext}$major'
17634 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17635 shlibpath_var=LD_LIBRARY_PATH
17636 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17637 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17638 # the default ld.so.conf also contains /usr/contrib/lib and
17639 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17640 # libtool to hard-code these into programs
17641 ;;
17642
17643 cygwin* | mingw* | pw32* | cegcc*)
17644 version_type=windows
17645 shrext_cmds=".dll"
17646 need_version=no
17647 need_lib_prefix=no
17648
17649 case $GCC,$host_os in
17650 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17651 library_names_spec='$libname.dll.a'
17652 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17653 postinstall_cmds='base_file=`basename \${file}`~
17654 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17655 dldir=$destdir/`dirname \$dlpath`~
17656 test -d \$dldir || mkdir -p \$dldir~
17657 $install_prog $dir/$dlname \$dldir/$dlname~
17658 chmod a+x \$dldir/$dlname~
17659 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17660 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17661 fi'
17662 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17663 dlpath=$dir/\$dldll~
17664 $RM \$dlpath'
17665 shlibpath_overrides_runpath=yes
17666
17667 case $host_os in
17668 cygwin*)
17669 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17670 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17671
17672 ;;
17673 mingw* | cegcc*)
17674 # MinGW DLLs use traditional 'lib' prefix
17675 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17676 ;;
17677 pw32*)
17678 # pw32 DLLs use 'pw' prefix rather than 'lib'
17679 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17680 ;;
17681 esac
17682 ;;
17683
17684 *)
17685 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17686 ;;
17687 esac
17688 dynamic_linker='Win32 ld.exe'
17689 # FIXME: first we should search . and the directory the executable is in
17690 shlibpath_var=PATH
17691 ;;
17692
17693 darwin* | rhapsody*)
17694 dynamic_linker="$host_os dyld"
17695 version_type=darwin
17696 need_lib_prefix=no
17697 need_version=no
17698 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17699 soname_spec='${libname}${release}${major}$shared_ext'
17700 shlibpath_overrides_runpath=yes
17701 shlibpath_var=DYLD_LIBRARY_PATH
17702 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17703
17704 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17705 ;;
17706
17707 dgux*)
17708 version_type=linux
17709 need_lib_prefix=no
17710 need_version=no
17711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17712 soname_spec='${libname}${release}${shared_ext}$major'
17713 shlibpath_var=LD_LIBRARY_PATH
17714 ;;
17715
17716 freebsd* | dragonfly*)
17717 # DragonFly does not have aout. When/if they implement a new
17718 # versioning mechanism, adjust this.
17719 if test -x /usr/bin/objformat; then
17720 objformat=`/usr/bin/objformat`
17721 else
17722 case $host_os in
17723 freebsd[23].*) objformat=aout ;;
17724 *) objformat=elf ;;
17725 esac
17726 fi
17727 version_type=freebsd-$objformat
17728 case $version_type in
17729 freebsd-elf*)
17730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17731 need_version=no
17732 need_lib_prefix=no
17733 ;;
17734 freebsd-*)
17735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17736 need_version=yes
17737 ;;
17738 esac
17739 shlibpath_var=LD_LIBRARY_PATH
17740 case $host_os in
17741 freebsd2.*)
17742 shlibpath_overrides_runpath=yes
17743 ;;
17744 freebsd3.[01]* | freebsdelf3.[01]*)
17745 shlibpath_overrides_runpath=yes
17746 hardcode_into_libs=yes
17747 ;;
17748 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17749 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17750 shlibpath_overrides_runpath=no
17751 hardcode_into_libs=yes
17752 ;;
17753 *) # from 4.6 on, and DragonFly
17754 shlibpath_overrides_runpath=yes
17755 hardcode_into_libs=yes
17756 ;;
17757 esac
17758 ;;
17759
17760 haiku*)
17761 version_type=linux
17762 need_lib_prefix=no
17763 need_version=no
17764 dynamic_linker="$host_os runtime_loader"
17765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17766 soname_spec='${libname}${release}${shared_ext}$major'
17767 shlibpath_var=LIBRARY_PATH
17768 shlibpath_overrides_runpath=yes
17769 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17770 hardcode_into_libs=yes
17771 ;;
17772
17773 hpux9* | hpux10* | hpux11*)
17774 # Give a soname corresponding to the major version so that dld.sl refuses to
17775 # link against other versions.
17776 version_type=sunos
17777 need_lib_prefix=no
17778 need_version=no
17779 case $host_cpu in
17780 ia64*)
17781 shrext_cmds='.so'
17782 hardcode_into_libs=yes
17783 dynamic_linker="$host_os dld.so"
17784 shlibpath_var=LD_LIBRARY_PATH
17785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17787 soname_spec='${libname}${release}${shared_ext}$major'
17788 if test "X$HPUX_IA64_MODE" = X32; then
17789 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17790 else
17791 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17792 fi
17793 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17794 ;;
17795 hppa*64*)
17796 shrext_cmds='.sl'
17797 hardcode_into_libs=yes
17798 dynamic_linker="$host_os dld.sl"
17799 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17802 soname_spec='${libname}${release}${shared_ext}$major'
17803 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17805 ;;
17806 *)
17807 shrext_cmds='.sl'
17808 dynamic_linker="$host_os dld.sl"
17809 shlibpath_var=SHLIB_PATH
17810 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17812 soname_spec='${libname}${release}${shared_ext}$major'
17813 ;;
17814 esac
17815 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17816 postinstall_cmds='chmod 555 $lib'
17817 # or fails outright, so override atomically:
17818 install_override_mode=555
17819 ;;
17820
17821 interix[3-9]*)
17822 version_type=linux
17823 need_lib_prefix=no
17824 need_version=no
17825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17826 soname_spec='${libname}${release}${shared_ext}$major'
17827 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17828 shlibpath_var=LD_LIBRARY_PATH
17829 shlibpath_overrides_runpath=no
17830 hardcode_into_libs=yes
17831 ;;
17832
17833 irix5* | irix6* | nonstopux*)
17834 case $host_os in
17835 nonstopux*) version_type=nonstopux ;;
17836 *)
17837 if test "$lt_cv_prog_gnu_ld" = yes; then
17838 version_type=linux
17839 else
17840 version_type=irix
17841 fi ;;
17842 esac
17843 need_lib_prefix=no
17844 need_version=no
17845 soname_spec='${libname}${release}${shared_ext}$major'
17846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17847 case $host_os in
17848 irix5* | nonstopux*)
17849 libsuff= shlibsuff=
17850 ;;
17851 *)
17852 case $LD in # libtool.m4 will add one of these switches to LD
17853 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17854 libsuff= shlibsuff= libmagic=32-bit;;
17855 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17856 libsuff=32 shlibsuff=N32 libmagic=N32;;
17857 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17858 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17859 *) libsuff= shlibsuff= libmagic=never-match;;
17860 esac
17861 ;;
17862 esac
17863 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17864 shlibpath_overrides_runpath=no
17865 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17866 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17867 hardcode_into_libs=yes
17868 ;;
17869
17870 # No shared lib support for Linux oldld, aout, or coff.
17871 linux*oldld* | linux*aout* | linux*coff*)
17872 dynamic_linker=no
17873 ;;
17874
17875 # This must be Linux ELF.
17876
17877 # uclinux* changes (here and below) have been submitted to the libtool
17878 # project, but have not yet been accepted: they are GCC-local changes
17879 # for the time being. (See
17880 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
17881 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
17882 version_type=linux
17883 need_lib_prefix=no
17884 need_version=no
17885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886 soname_spec='${libname}${release}${shared_ext}$major'
17887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17888 shlibpath_var=LD_LIBRARY_PATH
17889 shlibpath_overrides_runpath=no
17890
17891 # Some binutils ld are patched to set DT_RUNPATH
17892 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17893 $as_echo_n "(cached) " >&6
17894 else
17895 lt_cv_shlibpath_overrides_runpath=no
17896 save_LDFLAGS=$LDFLAGS
17897 save_libdir=$libdir
17898 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17899 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17900 if test x$gcc_no_link = xyes; then
17901 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17902 fi
17903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h. */
17905
17906 int
17907 main ()
17908 {
17909
17910 ;
17911 return 0;
17912 }
17913 _ACEOF
17914 if ac_fn_cxx_try_link "$LINENO"; then :
17915 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17916 lt_cv_shlibpath_overrides_runpath=yes
17917 fi
17918 fi
17919 rm -f core conftest.err conftest.$ac_objext \
17920 conftest$ac_exeext conftest.$ac_ext
17921 LDFLAGS=$save_LDFLAGS
17922 libdir=$save_libdir
17923
17924 fi
17925
17926 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17927
17928 # This implies no fast_install, which is unacceptable.
17929 # Some rework will be needed to allow for fast_install
17930 # before this can be enabled.
17931 hardcode_into_libs=yes
17932
17933 # Append ld.so.conf contents to the search path
17934 if test -f /etc/ld.so.conf; then
17935 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' ' '`
17936 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17937 fi
17938
17939 # We used to test for /lib/ld.so.1 and disable shared libraries on
17940 # powerpc, because MkLinux only supported shared libraries with the
17941 # GNU dynamic linker. Since this was broken with cross compilers,
17942 # most powerpc-linux boxes support dynamic linking these days and
17943 # people can always --disable-shared, the test was removed, and we
17944 # assume the GNU/Linux dynamic linker is in use.
17945 dynamic_linker='GNU/Linux ld.so'
17946 ;;
17947
17948 netbsd*)
17949 version_type=sunos
17950 need_lib_prefix=no
17951 need_version=no
17952 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17955 dynamic_linker='NetBSD (a.out) ld.so'
17956 else
17957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17958 soname_spec='${libname}${release}${shared_ext}$major'
17959 dynamic_linker='NetBSD ld.elf_so'
17960 fi
17961 shlibpath_var=LD_LIBRARY_PATH
17962 shlibpath_overrides_runpath=yes
17963 hardcode_into_libs=yes
17964 ;;
17965
17966 newsos6)
17967 version_type=linux
17968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17969 shlibpath_var=LD_LIBRARY_PATH
17970 shlibpath_overrides_runpath=yes
17971 ;;
17972
17973 *nto* | *qnx*)
17974 version_type=qnx
17975 need_lib_prefix=no
17976 need_version=no
17977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17978 soname_spec='${libname}${release}${shared_ext}$major'
17979 shlibpath_var=LD_LIBRARY_PATH
17980 shlibpath_overrides_runpath=no
17981 hardcode_into_libs=yes
17982 dynamic_linker='ldqnx.so'
17983 ;;
17984
17985 openbsd*)
17986 version_type=sunos
17987 sys_lib_dlsearch_path_spec="/usr/lib"
17988 need_lib_prefix=no
17989 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17990 case $host_os in
17991 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17992 *) need_version=no ;;
17993 esac
17994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17996 shlibpath_var=LD_LIBRARY_PATH
17997 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17998 case $host_os in
17999 openbsd2.[89] | openbsd2.[89].*)
18000 shlibpath_overrides_runpath=no
18001 ;;
18002 *)
18003 shlibpath_overrides_runpath=yes
18004 ;;
18005 esac
18006 else
18007 shlibpath_overrides_runpath=yes
18008 fi
18009 ;;
18010
18011 os2*)
18012 libname_spec='$name'
18013 shrext_cmds=".dll"
18014 need_lib_prefix=no
18015 library_names_spec='$libname${shared_ext} $libname.a'
18016 dynamic_linker='OS/2 ld.exe'
18017 shlibpath_var=LIBPATH
18018 ;;
18019
18020 osf3* | osf4* | osf5*)
18021 version_type=osf
18022 need_lib_prefix=no
18023 need_version=no
18024 soname_spec='${libname}${release}${shared_ext}$major'
18025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18026 shlibpath_var=LD_LIBRARY_PATH
18027 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18028 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18029 ;;
18030
18031 rdos*)
18032 dynamic_linker=no
18033 ;;
18034
18035 solaris*)
18036 version_type=linux
18037 need_lib_prefix=no
18038 need_version=no
18039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18040 soname_spec='${libname}${release}${shared_ext}$major'
18041 shlibpath_var=LD_LIBRARY_PATH
18042 shlibpath_overrides_runpath=yes
18043 hardcode_into_libs=yes
18044 # ldd complains unless libraries are executable
18045 postinstall_cmds='chmod +x $lib'
18046 ;;
18047
18048 sunos4*)
18049 version_type=sunos
18050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18051 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18052 shlibpath_var=LD_LIBRARY_PATH
18053 shlibpath_overrides_runpath=yes
18054 if test "$with_gnu_ld" = yes; then
18055 need_lib_prefix=no
18056 fi
18057 need_version=yes
18058 ;;
18059
18060 sysv4 | sysv4.3*)
18061 version_type=linux
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18063 soname_spec='${libname}${release}${shared_ext}$major'
18064 shlibpath_var=LD_LIBRARY_PATH
18065 case $host_vendor in
18066 sni)
18067 shlibpath_overrides_runpath=no
18068 need_lib_prefix=no
18069 runpath_var=LD_RUN_PATH
18070 ;;
18071 siemens)
18072 need_lib_prefix=no
18073 ;;
18074 motorola)
18075 need_lib_prefix=no
18076 need_version=no
18077 shlibpath_overrides_runpath=no
18078 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18079 ;;
18080 esac
18081 ;;
18082
18083 sysv4*MP*)
18084 if test -d /usr/nec ;then
18085 version_type=linux
18086 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18087 soname_spec='$libname${shared_ext}.$major'
18088 shlibpath_var=LD_LIBRARY_PATH
18089 fi
18090 ;;
18091
18092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18093 version_type=freebsd-elf
18094 need_lib_prefix=no
18095 need_version=no
18096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18097 soname_spec='${libname}${release}${shared_ext}$major'
18098 shlibpath_var=LD_LIBRARY_PATH
18099 shlibpath_overrides_runpath=yes
18100 hardcode_into_libs=yes
18101 if test "$with_gnu_ld" = yes; then
18102 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18103 else
18104 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18105 case $host_os in
18106 sco3.2v5*)
18107 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18108 ;;
18109 esac
18110 fi
18111 sys_lib_dlsearch_path_spec='/usr/lib'
18112 ;;
18113
18114 tpf*)
18115 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18116 version_type=linux
18117 need_lib_prefix=no
18118 need_version=no
18119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18120 shlibpath_var=LD_LIBRARY_PATH
18121 shlibpath_overrides_runpath=no
18122 hardcode_into_libs=yes
18123 ;;
18124
18125 uts4*)
18126 version_type=linux
18127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18128 soname_spec='${libname}${release}${shared_ext}$major'
18129 shlibpath_var=LD_LIBRARY_PATH
18130 ;;
18131
18132 # Shared libraries for VwWorks, >= 7 only at this stage
18133 # and (fpic) still incompatible with "large" code models
18134 # in a few configurations. Only for RTP mode in any case,
18135 # and upon explicit request at configure time.
18136 vxworks7*)
18137 dynamic_linker=no
18138 case ${with_multisubdir}-${enable_shared} in
18139 *large*)
18140 ;;
18141 *mrtp*-yes)
18142 version_type=linux
18143 need_lib_prefix=no
18144 need_version=no
18145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18146 soname_spec='${libname}${release}${shared_ext}$major'
18147 dynamic_linker="$host_os module_loader"
18148 ;;
18149 esac
18150 ;;
18151 *)
18152 dynamic_linker=no
18153 ;;
18154 esac
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18156 $as_echo "$dynamic_linker" >&6; }
18157 test "$dynamic_linker" = no && can_build_shared=no
18158
18159 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18160 if test "$GCC" = yes; then
18161 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18162 fi
18163
18164 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18165 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18166 fi
18167 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18168 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18169 fi
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18209 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18210 hardcode_action_CXX=
18211 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18212 test -n "$runpath_var_CXX" ||
18213 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18214
18215 # We can hardcode non-existent directories.
18216 if test "$hardcode_direct_CXX" != no &&
18217 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18218 # have to relink, otherwise we might link with an installed library
18219 # when we should be linking with a yet-to-be-installed one
18220 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18221 test "$hardcode_minus_L_CXX" != no; then
18222 # Linking always hardcodes the temporary library directory.
18223 hardcode_action_CXX=relink
18224 else
18225 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18226 hardcode_action_CXX=immediate
18227 fi
18228 else
18229 # We cannot hardcode anything, or else we can only hardcode existing
18230 # directories.
18231 hardcode_action_CXX=unsupported
18232 fi
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18234 $as_echo "$hardcode_action_CXX" >&6; }
18235
18236 if test "$hardcode_action_CXX" = relink ||
18237 test "$inherit_rpath_CXX" = yes; then
18238 # Fast installation is not supported
18239 enable_fast_install=no
18240 elif test "$shlibpath_overrides_runpath" = yes ||
18241 test "$enable_shared" = no; then
18242 # Fast installation is not necessary
18243 enable_fast_install=needless
18244 fi
18245
18246
18247
18248
18249
18250
18251
18252 fi # test -n "$compiler"
18253
18254 CC=$lt_save_CC
18255 LDCXX=$LD
18256 LD=$lt_save_LD
18257 GCC=$lt_save_GCC
18258 with_gnu_ld=$lt_save_with_gnu_ld
18259 lt_cv_path_LDCXX=$lt_cv_path_LD
18260 lt_cv_path_LD=$lt_save_path_LD
18261 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18262 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18263 fi # test "$_lt_caught_CXX_error" != yes
18264
18265 ac_ext=c
18266 ac_cpp='$CPP $CPPFLAGS'
18267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283 ac_config_commands="$ac_config_commands libtool"
18284
18285
18286
18287
18288 # Only expand once:
18289
18290
18291
18292 enable_dlopen=yes
18293
18294
18295
18296
18297 if test x$enable_darwin_at_rpath = xyes; then
18298 ENABLE_DARWIN_AT_RPATH_TRUE=
18299 ENABLE_DARWIN_AT_RPATH_FALSE='#'
18300 else
18301 ENABLE_DARWIN_AT_RPATH_TRUE='#'
18302 ENABLE_DARWIN_AT_RPATH_FALSE=
18303 fi
18304
18305
18306
18307
18308
18309 if test "${multilib}" = "yes"; then
18310 multilib_arg="--enable-multilib"
18311 else
18312 multilib_arg=
18313 fi
18314
18315 ac_fn_c_check_type "$LINENO" "struct timezone" "ac_cv_type_struct_timezone" "$ac_includes_default"
18316 if test "x$ac_cv_type_struct_timezone" = xyes; then :
18317
18318 cat >>confdefs.h <<_ACEOF
18319 #define HAVE_STRUCT_TIMEZONE 1
18320 _ACEOF
18321
18322
18323 fi
18324 ac_fn_c_check_type "$LINENO" "struct stat" "ac_cv_type_struct_stat" "$ac_includes_default"
18325 if test "x$ac_cv_type_struct_stat" = xyes; then :
18326
18327 cat >>confdefs.h <<_ACEOF
18328 #define HAVE_STRUCT_STAT 1
18329 _ACEOF
18330
18331
18332 fi
18333 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
18334 if test "x$ac_cv_type_struct_timespec" = xyes; then :
18335
18336 cat >>confdefs.h <<_ACEOF
18337 #define HAVE_STRUCT_TIMESPEC 1
18338 _ACEOF
18339
18340
18341 fi
18342 ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "$ac_includes_default"
18343 if test "x$ac_cv_type_struct_timeval" = xyes; then :
18344
18345 cat >>confdefs.h <<_ACEOF
18346 #define HAVE_STRUCT_TIMEVAL 1
18347 _ACEOF
18348
18349
18350 fi
18351 ac_fn_c_check_type "$LINENO" "struct tm" "ac_cv_type_struct_tm" "$ac_includes_default"
18352 if test "x$ac_cv_type_struct_tm" = xyes; then :
18353
18354 cat >>confdefs.h <<_ACEOF
18355 #define HAVE_STRUCT_TM 1
18356 _ACEOF
18357
18358
18359 fi
18360
18361
18362 # Check if struct tm contains the tm_gmtoff field.
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18364 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
18365 if ${ac_cv_struct_tm_gmtoff+:} false; then :
18366 $as_echo_n "(cached) " >&6
18367 else
18368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h. */
18370
18371 #include <time.h>
18372
18373 int
18374 main ()
18375 {
18376
18377 struct tm tm;
18378 tm.tm_gmtoff = 1;
18379
18380 ;
18381 return 0;
18382 }
18383 _ACEOF
18384 if ac_fn_c_try_compile "$LINENO"; then :
18385 ac_cv_struct_tm_gmtoff=yes
18386 else
18387 ac_cv_struct_tm_gmtoff=no
18388
18389 fi
18390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18391
18392 fi
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
18394 $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
18395
18396 if (test "$ac_cv_struct_tm_gmtoff" = "yes"); then
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end detects struct tm with the tm_gmtoff field." >&5
18398 $as_echo_n "checking m2 front end detects struct tm with the tm_gmtoff field.... " >&6; }
18399
18400 $as_echo "#define HAVE_TM_TM_GMTOFF 1" >>confdefs.h
18401
18402 fi
18403
18404 ac_ext=c
18405 ac_cpp='$CPP $CPPFLAGS'
18406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18409
18410 # Check the compiler.
18411 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
18412 # We must force CC to /not/ be precious variables; otherwise
18413 # the wrong, non-multilib-adjusted value will be used in multilibs.
18414 # As a side effect, we have to subst CFLAGS ourselves.
18415
18416
18417
18418 ac_ext=c
18419 ac_cpp='$CPP $CPPFLAGS'
18420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18423 if test -n "$ac_tool_prefix"; then
18424 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18425 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18427 $as_echo_n "checking for $ac_word... " >&6; }
18428 if ${ac_cv_prog_CC+:} false; then :
18429 $as_echo_n "(cached) " >&6
18430 else
18431 if test -n "$CC"; then
18432 ac_cv_prog_CC="$CC" # Let the user override the test.
18433 else
18434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18435 for as_dir in $PATH
18436 do
18437 IFS=$as_save_IFS
18438 test -z "$as_dir" && as_dir=.
18439 for ac_exec_ext in '' $ac_executable_extensions; do
18440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18441 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18443 break 2
18444 fi
18445 done
18446 done
18447 IFS=$as_save_IFS
18448
18449 fi
18450 fi
18451 CC=$ac_cv_prog_CC
18452 if test -n "$CC"; then
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18454 $as_echo "$CC" >&6; }
18455 else
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18457 $as_echo "no" >&6; }
18458 fi
18459
18460
18461 fi
18462 if test -z "$ac_cv_prog_CC"; then
18463 ac_ct_CC=$CC
18464 # Extract the first word of "gcc", so it can be a program name with args.
18465 set dummy gcc; ac_word=$2
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18467 $as_echo_n "checking for $ac_word... " >&6; }
18468 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18469 $as_echo_n "(cached) " >&6
18470 else
18471 if test -n "$ac_ct_CC"; then
18472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18473 else
18474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18475 for as_dir in $PATH
18476 do
18477 IFS=$as_save_IFS
18478 test -z "$as_dir" && as_dir=.
18479 for ac_exec_ext in '' $ac_executable_extensions; do
18480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18481 ac_cv_prog_ac_ct_CC="gcc"
18482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18483 break 2
18484 fi
18485 done
18486 done
18487 IFS=$as_save_IFS
18488
18489 fi
18490 fi
18491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18492 if test -n "$ac_ct_CC"; then
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18494 $as_echo "$ac_ct_CC" >&6; }
18495 else
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18497 $as_echo "no" >&6; }
18498 fi
18499
18500 if test "x$ac_ct_CC" = x; then
18501 CC=""
18502 else
18503 case $cross_compiling:$ac_tool_warned in
18504 yes:)
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18507 ac_tool_warned=yes ;;
18508 esac
18509 CC=$ac_ct_CC
18510 fi
18511 else
18512 CC="$ac_cv_prog_CC"
18513 fi
18514
18515 if test -z "$CC"; then
18516 if test -n "$ac_tool_prefix"; then
18517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18518 set dummy ${ac_tool_prefix}cc; ac_word=$2
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18520 $as_echo_n "checking for $ac_word... " >&6; }
18521 if ${ac_cv_prog_CC+:} false; then :
18522 $as_echo_n "(cached) " >&6
18523 else
18524 if test -n "$CC"; then
18525 ac_cv_prog_CC="$CC" # Let the user override the test.
18526 else
18527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18528 for as_dir in $PATH
18529 do
18530 IFS=$as_save_IFS
18531 test -z "$as_dir" && as_dir=.
18532 for ac_exec_ext in '' $ac_executable_extensions; do
18533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18534 ac_cv_prog_CC="${ac_tool_prefix}cc"
18535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18536 break 2
18537 fi
18538 done
18539 done
18540 IFS=$as_save_IFS
18541
18542 fi
18543 fi
18544 CC=$ac_cv_prog_CC
18545 if test -n "$CC"; then
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18547 $as_echo "$CC" >&6; }
18548 else
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18550 $as_echo "no" >&6; }
18551 fi
18552
18553
18554 fi
18555 fi
18556 if test -z "$CC"; then
18557 # Extract the first word of "cc", so it can be a program name with args.
18558 set dummy cc; ac_word=$2
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18560 $as_echo_n "checking for $ac_word... " >&6; }
18561 if ${ac_cv_prog_CC+:} false; then :
18562 $as_echo_n "(cached) " >&6
18563 else
18564 if test -n "$CC"; then
18565 ac_cv_prog_CC="$CC" # Let the user override the test.
18566 else
18567 ac_prog_rejected=no
18568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18569 for as_dir in $PATH
18570 do
18571 IFS=$as_save_IFS
18572 test -z "$as_dir" && as_dir=.
18573 for ac_exec_ext in '' $ac_executable_extensions; do
18574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18575 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18576 ac_prog_rejected=yes
18577 continue
18578 fi
18579 ac_cv_prog_CC="cc"
18580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18581 break 2
18582 fi
18583 done
18584 done
18585 IFS=$as_save_IFS
18586
18587 if test $ac_prog_rejected = yes; then
18588 # We found a bogon in the path, so make sure we never use it.
18589 set dummy $ac_cv_prog_CC
18590 shift
18591 if test $# != 0; then
18592 # We chose a different compiler from the bogus one.
18593 # However, it has the same basename, so the bogon will be chosen
18594 # first if we set CC to just the basename; use the full file name.
18595 shift
18596 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18597 fi
18598 fi
18599 fi
18600 fi
18601 CC=$ac_cv_prog_CC
18602 if test -n "$CC"; then
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18604 $as_echo "$CC" >&6; }
18605 else
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18607 $as_echo "no" >&6; }
18608 fi
18609
18610
18611 fi
18612 if test -z "$CC"; then
18613 if test -n "$ac_tool_prefix"; then
18614 for ac_prog in cl.exe
18615 do
18616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18619 $as_echo_n "checking for $ac_word... " >&6; }
18620 if ${ac_cv_prog_CC+:} false; then :
18621 $as_echo_n "(cached) " >&6
18622 else
18623 if test -n "$CC"; then
18624 ac_cv_prog_CC="$CC" # Let the user override the test.
18625 else
18626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18627 for as_dir in $PATH
18628 do
18629 IFS=$as_save_IFS
18630 test -z "$as_dir" && as_dir=.
18631 for ac_exec_ext in '' $ac_executable_extensions; do
18632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18633 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18635 break 2
18636 fi
18637 done
18638 done
18639 IFS=$as_save_IFS
18640
18641 fi
18642 fi
18643 CC=$ac_cv_prog_CC
18644 if test -n "$CC"; then
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18646 $as_echo "$CC" >&6; }
18647 else
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18649 $as_echo "no" >&6; }
18650 fi
18651
18652
18653 test -n "$CC" && break
18654 done
18655 fi
18656 if test -z "$CC"; then
18657 ac_ct_CC=$CC
18658 for ac_prog in cl.exe
18659 do
18660 # Extract the first word of "$ac_prog", so it can be a program name with args.
18661 set dummy $ac_prog; ac_word=$2
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18663 $as_echo_n "checking for $ac_word... " >&6; }
18664 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18665 $as_echo_n "(cached) " >&6
18666 else
18667 if test -n "$ac_ct_CC"; then
18668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18669 else
18670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18671 for as_dir in $PATH
18672 do
18673 IFS=$as_save_IFS
18674 test -z "$as_dir" && as_dir=.
18675 for ac_exec_ext in '' $ac_executable_extensions; do
18676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18677 ac_cv_prog_ac_ct_CC="$ac_prog"
18678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18679 break 2
18680 fi
18681 done
18682 done
18683 IFS=$as_save_IFS
18684
18685 fi
18686 fi
18687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18688 if test -n "$ac_ct_CC"; then
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18690 $as_echo "$ac_ct_CC" >&6; }
18691 else
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18693 $as_echo "no" >&6; }
18694 fi
18695
18696
18697 test -n "$ac_ct_CC" && break
18698 done
18699
18700 if test "x$ac_ct_CC" = x; then
18701 CC=""
18702 else
18703 case $cross_compiling:$ac_tool_warned in
18704 yes:)
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18707 ac_tool_warned=yes ;;
18708 esac
18709 CC=$ac_ct_CC
18710 fi
18711 fi
18712
18713 fi
18714
18715
18716 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18718 as_fn_error $? "no acceptable C compiler found in \$PATH
18719 See \`config.log' for more details" "$LINENO" 5; }
18720
18721 # Provide some information about the compiler.
18722 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18723 set X $ac_compile
18724 ac_compiler=$2
18725 for ac_option in --version -v -V -qversion; do
18726 { { ac_try="$ac_compiler $ac_option >&5"
18727 case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18730 esac
18731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18732 $as_echo "$ac_try_echo"; } >&5
18733 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18734 ac_status=$?
18735 if test -s conftest.err; then
18736 sed '10a\
18737 ... rest of stderr output deleted ...
18738 10q' conftest.err >conftest.er1
18739 cat conftest.er1 >&5
18740 fi
18741 rm -f conftest.er1 conftest.err
18742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18743 test $ac_status = 0; }
18744 done
18745
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
18747 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
18748 if ${ac_cv_c_compiler_gnu+:} false; then :
18749 $as_echo_n "(cached) " >&6
18750 else
18751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18752 /* end confdefs.h. */
18753
18754 int
18755 main ()
18756 {
18757 #ifndef __GNUC__
18758 choke me
18759 #endif
18760
18761 ;
18762 return 0;
18763 }
18764 _ACEOF
18765 if ac_fn_c_try_compile "$LINENO"; then :
18766 ac_compiler_gnu=yes
18767 else
18768 ac_compiler_gnu=no
18769 fi
18770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18771 ac_cv_c_compiler_gnu=$ac_compiler_gnu
18772
18773 fi
18774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18775 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
18776 if test $ac_compiler_gnu = yes; then
18777 GCC=yes
18778 else
18779 GCC=
18780 fi
18781 ac_test_CFLAGS=${CFLAGS+set}
18782 ac_save_CFLAGS=$CFLAGS
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18784 $as_echo_n "checking whether $CC accepts -g... " >&6; }
18785 if ${ac_cv_prog_cc_g+:} false; then :
18786 $as_echo_n "(cached) " >&6
18787 else
18788 ac_save_c_werror_flag=$ac_c_werror_flag
18789 ac_c_werror_flag=yes
18790 ac_cv_prog_cc_g=no
18791 CFLAGS="-g"
18792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18793 /* end confdefs.h. */
18794
18795 int
18796 main ()
18797 {
18798
18799 ;
18800 return 0;
18801 }
18802 _ACEOF
18803 if ac_fn_c_try_compile "$LINENO"; then :
18804 ac_cv_prog_cc_g=yes
18805 else
18806 CFLAGS=""
18807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18808 /* end confdefs.h. */
18809
18810 int
18811 main ()
18812 {
18813
18814 ;
18815 return 0;
18816 }
18817 _ACEOF
18818 if ac_fn_c_try_compile "$LINENO"; then :
18819
18820 else
18821 ac_c_werror_flag=$ac_save_c_werror_flag
18822 CFLAGS="-g"
18823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18824 /* end confdefs.h. */
18825
18826 int
18827 main ()
18828 {
18829
18830 ;
18831 return 0;
18832 }
18833 _ACEOF
18834 if ac_fn_c_try_compile "$LINENO"; then :
18835 ac_cv_prog_cc_g=yes
18836 fi
18837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18838 fi
18839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18840 fi
18841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18842 ac_c_werror_flag=$ac_save_c_werror_flag
18843 fi
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18845 $as_echo "$ac_cv_prog_cc_g" >&6; }
18846 if test "$ac_test_CFLAGS" = set; then
18847 CFLAGS=$ac_save_CFLAGS
18848 elif test $ac_cv_prog_cc_g = yes; then
18849 if test "$GCC" = yes; then
18850 CFLAGS="-g -O2"
18851 else
18852 CFLAGS="-g"
18853 fi
18854 else
18855 if test "$GCC" = yes; then
18856 CFLAGS="-O2"
18857 else
18858 CFLAGS=
18859 fi
18860 fi
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
18862 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
18863 if ${ac_cv_prog_cc_c89+:} false; then :
18864 $as_echo_n "(cached) " >&6
18865 else
18866 ac_cv_prog_cc_c89=no
18867 ac_save_CC=$CC
18868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18869 /* end confdefs.h. */
18870 #include <stdarg.h>
18871 #include <stdio.h>
18872 struct stat;
18873 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18874 struct buf { int x; };
18875 FILE * (*rcsopen) (struct buf *, struct stat *, int);
18876 static char *e (p, i)
18877 char **p;
18878 int i;
18879 {
18880 return p[i];
18881 }
18882 static char *f (char * (*g) (char **, int), char **p, ...)
18883 {
18884 char *s;
18885 va_list v;
18886 va_start (v,p);
18887 s = g (p, va_arg (v,int));
18888 va_end (v);
18889 return s;
18890 }
18891
18892 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
18893 function prototypes and stuff, but not '\xHH' hex character constants.
18894 These don't provoke an error unfortunately, instead are silently treated
18895 as 'x'. The following induces an error, until -std is added to get
18896 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
18897 array size at least. It's necessary to write '\x00'==0 to get something
18898 that's true only with -std. */
18899 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18900
18901 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
18902 inside strings and character constants. */
18903 #define FOO(x) 'x'
18904 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
18905
18906 int test (int i, double x);
18907 struct s1 {int (*f) (int a);};
18908 struct s2 {int (*f) (double a);};
18909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18910 int argc;
18911 char **argv;
18912 int
18913 main ()
18914 {
18915 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
18916 ;
18917 return 0;
18918 }
18919 _ACEOF
18920 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
18921 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18922 do
18923 CC="$ac_save_CC $ac_arg"
18924 if ac_fn_c_try_compile "$LINENO"; then :
18925 ac_cv_prog_cc_c89=$ac_arg
18926 fi
18927 rm -f core conftest.err conftest.$ac_objext
18928 test "x$ac_cv_prog_cc_c89" != "xno" && break
18929 done
18930 rm -f conftest.$ac_ext
18931 CC=$ac_save_CC
18932
18933 fi
18934 # AC_CACHE_VAL
18935 case "x$ac_cv_prog_cc_c89" in
18936 x)
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18938 $as_echo "none needed" >&6; } ;;
18939 xno)
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18941 $as_echo "unsupported" >&6; } ;;
18942 *)
18943 CC="$CC $ac_cv_prog_cc_c89"
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18945 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
18946 esac
18947 if test "x$ac_cv_prog_cc_c89" != xno; then :
18948
18949 fi
18950
18951 ac_ext=c
18952 ac_cpp='$CPP $CPPFLAGS'
18953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18956
18957 ac_ext=c
18958 ac_cpp='$CPP $CPPFLAGS'
18959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
18963 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
18964 if ${am_cv_prog_cc_c_o+:} false; then :
18965 $as_echo_n "(cached) " >&6
18966 else
18967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18968 /* end confdefs.h. */
18969
18970 int
18971 main ()
18972 {
18973
18974 ;
18975 return 0;
18976 }
18977 _ACEOF
18978 # Make sure it works both with $CC and with simple cc.
18979 # Following AC_PROG_CC_C_O, we do the test twice because some
18980 # compilers refuse to overwrite an existing .o file with -o,
18981 # though they will create one.
18982 am_cv_prog_cc_c_o=yes
18983 for am_i in 1 2; do
18984 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
18985 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
18986 ac_status=$?
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } \
18989 && test -f conftest2.$ac_objext; then
18990 : OK
18991 else
18992 am_cv_prog_cc_c_o=no
18993 break
18994 fi
18995 done
18996 rm -f core conftest*
18997 unset am_i
18998 fi
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
19000 $as_echo "$am_cv_prog_cc_c_o" >&6; }
19001 if test "$am_cv_prog_cc_c_o" != yes; then
19002 # Losing compiler, so override with the script.
19003 # FIXME: It is wrong to rewrite CC.
19004 # But if we don't then we get into trouble of one sort or another.
19005 # A longer-term fix would be to have automake use am__CC in this case,
19006 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19007 CC="$am_aux_dir/compile $CC"
19008 fi
19009 ac_ext=c
19010 ac_cpp='$CPP $CPPFLAGS'
19011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for access" >&5
19026 $as_echo_n "checking m2 front end checking c library for access... " >&6; }
19027 if test x$gcc_no_link != xyes; then
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for access in -lc" >&5
19029 $as_echo_n "checking for access in -lc... " >&6; }
19030 if ${ac_cv_lib_c_access+:} false; then :
19031 $as_echo_n "(cached) " >&6
19032 else
19033 ac_check_lib_save_LIBS=$LIBS
19034 LIBS="-lc $LIBS"
19035 if test x$gcc_no_link = xyes; then
19036 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19037 fi
19038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19039 /* end confdefs.h. */
19040
19041 /* Override any GCC internal prototype to avoid an error.
19042 Use char because int might match the return type of a GCC
19043 builtin and then its argument prototype would still apply. */
19044 #ifdef __cplusplus
19045 extern "C"
19046 #endif
19047 char access ();
19048 int
19049 main ()
19050 {
19051 return access ();
19052 ;
19053 return 0;
19054 }
19055 _ACEOF
19056 if ac_fn_c_try_link "$LINENO"; then :
19057 ac_cv_lib_c_access=yes
19058 else
19059 ac_cv_lib_c_access=no
19060 fi
19061 rm -f core conftest.err conftest.$ac_objext \
19062 conftest$ac_exeext conftest.$ac_ext
19063 LIBS=$ac_check_lib_save_LIBS
19064 fi
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_access" >&5
19066 $as_echo "$ac_cv_lib_c_access" >&6; }
19067 if test "x$ac_cv_lib_c_access" = xyes; then :
19068
19069 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
19070
19071 else
19072
19073 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
19074
19075 fi
19076
19077 else
19078 if test "x$ac_cv_lib_c_access" = xyes; then
19079
19080 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
19081
19082 elif test "x$ac_cv_func_access" = xyes; then
19083
19084 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
19085
19086 else
19087
19088 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
19089
19090 fi
19091 fi
19092
19093
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for brk" >&5
19095 $as_echo_n "checking m2 front end checking c library for brk... " >&6; }
19096 if test x$gcc_no_link != xyes; then
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for brk in -lc" >&5
19098 $as_echo_n "checking for brk in -lc... " >&6; }
19099 if ${ac_cv_lib_c_brk+:} false; then :
19100 $as_echo_n "(cached) " >&6
19101 else
19102 ac_check_lib_save_LIBS=$LIBS
19103 LIBS="-lc $LIBS"
19104 if test x$gcc_no_link = xyes; then
19105 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19106 fi
19107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h. */
19109
19110 /* Override any GCC internal prototype to avoid an error.
19111 Use char because int might match the return type of a GCC
19112 builtin and then its argument prototype would still apply. */
19113 #ifdef __cplusplus
19114 extern "C"
19115 #endif
19116 char brk ();
19117 int
19118 main ()
19119 {
19120 return brk ();
19121 ;
19122 return 0;
19123 }
19124 _ACEOF
19125 if ac_fn_c_try_link "$LINENO"; then :
19126 ac_cv_lib_c_brk=yes
19127 else
19128 ac_cv_lib_c_brk=no
19129 fi
19130 rm -f core conftest.err conftest.$ac_objext \
19131 conftest$ac_exeext conftest.$ac_ext
19132 LIBS=$ac_check_lib_save_LIBS
19133 fi
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_brk" >&5
19135 $as_echo "$ac_cv_lib_c_brk" >&6; }
19136 if test "x$ac_cv_lib_c_brk" = xyes; then :
19137
19138 $as_echo "#define HAVE_BRK 1" >>confdefs.h
19139
19140 else
19141
19142 $as_echo "#undef HAVE_BRK" >>confdefs.h
19143
19144 fi
19145
19146 else
19147 if test "x$ac_cv_lib_c_brk" = xyes; then
19148
19149 $as_echo "#define HAVE_BRK 1" >>confdefs.h
19150
19151 elif test "x$ac_cv_func_brk" = xyes; then
19152
19153 $as_echo "#define HAVE_BRK 1" >>confdefs.h
19154
19155 else
19156
19157 $as_echo "#undef HAVE_BRK" >>confdefs.h
19158
19159 fi
19160 fi
19161
19162
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for cfmakeraw" >&5
19164 $as_echo_n "checking m2 front end checking c library for cfmakeraw... " >&6; }
19165 if test x$gcc_no_link != xyes; then
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfmakeraw in -lc" >&5
19167 $as_echo_n "checking for cfmakeraw in -lc... " >&6; }
19168 if ${ac_cv_lib_c_cfmakeraw+:} false; then :
19169 $as_echo_n "(cached) " >&6
19170 else
19171 ac_check_lib_save_LIBS=$LIBS
19172 LIBS="-lc $LIBS"
19173 if test x$gcc_no_link = xyes; then
19174 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19175 fi
19176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19177 /* end confdefs.h. */
19178
19179 /* Override any GCC internal prototype to avoid an error.
19180 Use char because int might match the return type of a GCC
19181 builtin and then its argument prototype would still apply. */
19182 #ifdef __cplusplus
19183 extern "C"
19184 #endif
19185 char cfmakeraw ();
19186 int
19187 main ()
19188 {
19189 return cfmakeraw ();
19190 ;
19191 return 0;
19192 }
19193 _ACEOF
19194 if ac_fn_c_try_link "$LINENO"; then :
19195 ac_cv_lib_c_cfmakeraw=yes
19196 else
19197 ac_cv_lib_c_cfmakeraw=no
19198 fi
19199 rm -f core conftest.err conftest.$ac_objext \
19200 conftest$ac_exeext conftest.$ac_ext
19201 LIBS=$ac_check_lib_save_LIBS
19202 fi
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_cfmakeraw" >&5
19204 $as_echo "$ac_cv_lib_c_cfmakeraw" >&6; }
19205 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then :
19206
19207 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
19208
19209 else
19210
19211 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
19212
19213 fi
19214
19215 else
19216 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then
19217
19218 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
19219
19220 elif test "x$ac_cv_func_cfmakeraw" = xyes; then
19221
19222 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
19223
19224 else
19225
19226 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
19227
19228 fi
19229 fi
19230
19231
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for clock_gettime" >&5
19233 $as_echo_n "checking m2 front end checking c library for clock_gettime... " >&6; }
19234 if test x$gcc_no_link != xyes; then
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
19236 $as_echo_n "checking for clock_gettime in -lc... " >&6; }
19237 if ${ac_cv_lib_c_clock_gettime+:} false; then :
19238 $as_echo_n "(cached) " >&6
19239 else
19240 ac_check_lib_save_LIBS=$LIBS
19241 LIBS="-lc $LIBS"
19242 if test x$gcc_no_link = xyes; then
19243 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19244 fi
19245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19246 /* end confdefs.h. */
19247
19248 /* Override any GCC internal prototype to avoid an error.
19249 Use char because int might match the return type of a GCC
19250 builtin and then its argument prototype would still apply. */
19251 #ifdef __cplusplus
19252 extern "C"
19253 #endif
19254 char clock_gettime ();
19255 int
19256 main ()
19257 {
19258 return clock_gettime ();
19259 ;
19260 return 0;
19261 }
19262 _ACEOF
19263 if ac_fn_c_try_link "$LINENO"; then :
19264 ac_cv_lib_c_clock_gettime=yes
19265 else
19266 ac_cv_lib_c_clock_gettime=no
19267 fi
19268 rm -f core conftest.err conftest.$ac_objext \
19269 conftest$ac_exeext conftest.$ac_ext
19270 LIBS=$ac_check_lib_save_LIBS
19271 fi
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
19273 $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
19274 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
19275
19276 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
19277
19278 else
19279
19280 $as_echo "#undef HAVE_CLOCK_GETTIME" >>confdefs.h
19281
19282 fi
19283
19284 else
19285 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then
19286
19287 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
19288
19289 elif test "x$ac_cv_func_clock_gettime" = xyes; then
19290
19291 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
19292
19293 else
19294
19295 $as_echo "#undef HAVE_CLOCK_GETTIME" >>confdefs.h
19296
19297 fi
19298 fi
19299
19300
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for clock_settime" >&5
19302 $as_echo_n "checking m2 front end checking c library for clock_settime... " >&6; }
19303 if test x$gcc_no_link != xyes; then
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lc" >&5
19305 $as_echo_n "checking for clock_settime in -lc... " >&6; }
19306 if ${ac_cv_lib_c_clock_settime+:} false; then :
19307 $as_echo_n "(cached) " >&6
19308 else
19309 ac_check_lib_save_LIBS=$LIBS
19310 LIBS="-lc $LIBS"
19311 if test x$gcc_no_link = xyes; then
19312 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19313 fi
19314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19315 /* end confdefs.h. */
19316
19317 /* Override any GCC internal prototype to avoid an error.
19318 Use char because int might match the return type of a GCC
19319 builtin and then its argument prototype would still apply. */
19320 #ifdef __cplusplus
19321 extern "C"
19322 #endif
19323 char clock_settime ();
19324 int
19325 main ()
19326 {
19327 return clock_settime ();
19328 ;
19329 return 0;
19330 }
19331 _ACEOF
19332 if ac_fn_c_try_link "$LINENO"; then :
19333 ac_cv_lib_c_clock_settime=yes
19334 else
19335 ac_cv_lib_c_clock_settime=no
19336 fi
19337 rm -f core conftest.err conftest.$ac_objext \
19338 conftest$ac_exeext conftest.$ac_ext
19339 LIBS=$ac_check_lib_save_LIBS
19340 fi
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_settime" >&5
19342 $as_echo "$ac_cv_lib_c_clock_settime" >&6; }
19343 if test "x$ac_cv_lib_c_clock_settime" = xyes; then :
19344
19345 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
19346
19347 else
19348
19349 $as_echo "#undef HAVE_CLOCK_SETTIME" >>confdefs.h
19350
19351 fi
19352
19353 else
19354 if test "x$ac_cv_lib_c_clock_settime" = xyes; then
19355
19356 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
19357
19358 elif test "x$ac_cv_func_clock_settime" = xyes; then
19359
19360 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
19361
19362 else
19363
19364 $as_echo "#undef HAVE_CLOCK_SETTIME" >>confdefs.h
19365
19366 fi
19367 fi
19368
19369
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for close" >&5
19371 $as_echo_n "checking m2 front end checking c library for close... " >&6; }
19372 if test x$gcc_no_link != xyes; then
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lc" >&5
19374 $as_echo_n "checking for close in -lc... " >&6; }
19375 if ${ac_cv_lib_c_close+:} false; then :
19376 $as_echo_n "(cached) " >&6
19377 else
19378 ac_check_lib_save_LIBS=$LIBS
19379 LIBS="-lc $LIBS"
19380 if test x$gcc_no_link = xyes; then
19381 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19382 fi
19383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19384 /* end confdefs.h. */
19385
19386 /* Override any GCC internal prototype to avoid an error.
19387 Use char because int might match the return type of a GCC
19388 builtin and then its argument prototype would still apply. */
19389 #ifdef __cplusplus
19390 extern "C"
19391 #endif
19392 char close ();
19393 int
19394 main ()
19395 {
19396 return close ();
19397 ;
19398 return 0;
19399 }
19400 _ACEOF
19401 if ac_fn_c_try_link "$LINENO"; then :
19402 ac_cv_lib_c_close=yes
19403 else
19404 ac_cv_lib_c_close=no
19405 fi
19406 rm -f core conftest.err conftest.$ac_objext \
19407 conftest$ac_exeext conftest.$ac_ext
19408 LIBS=$ac_check_lib_save_LIBS
19409 fi
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_close" >&5
19411 $as_echo "$ac_cv_lib_c_close" >&6; }
19412 if test "x$ac_cv_lib_c_close" = xyes; then :
19413
19414 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
19415
19416 else
19417
19418 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
19419
19420 fi
19421
19422 else
19423 if test "x$ac_cv_lib_c_close" = xyes; then
19424
19425 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
19426
19427 elif test "x$ac_cv_func_close" = xyes; then
19428
19429 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
19430
19431 else
19432
19433 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
19434
19435 fi
19436 fi
19437
19438
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ctime" >&5
19440 $as_echo_n "checking m2 front end checking c library for ctime... " >&6; }
19441 if test x$gcc_no_link != xyes; then
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime in -lc" >&5
19443 $as_echo_n "checking for ctime in -lc... " >&6; }
19444 if ${ac_cv_lib_c_ctime+:} false; then :
19445 $as_echo_n "(cached) " >&6
19446 else
19447 ac_check_lib_save_LIBS=$LIBS
19448 LIBS="-lc $LIBS"
19449 if test x$gcc_no_link = xyes; then
19450 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19451 fi
19452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19453 /* end confdefs.h. */
19454
19455 /* Override any GCC internal prototype to avoid an error.
19456 Use char because int might match the return type of a GCC
19457 builtin and then its argument prototype would still apply. */
19458 #ifdef __cplusplus
19459 extern "C"
19460 #endif
19461 char ctime ();
19462 int
19463 main ()
19464 {
19465 return ctime ();
19466 ;
19467 return 0;
19468 }
19469 _ACEOF
19470 if ac_fn_c_try_link "$LINENO"; then :
19471 ac_cv_lib_c_ctime=yes
19472 else
19473 ac_cv_lib_c_ctime=no
19474 fi
19475 rm -f core conftest.err conftest.$ac_objext \
19476 conftest$ac_exeext conftest.$ac_ext
19477 LIBS=$ac_check_lib_save_LIBS
19478 fi
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ctime" >&5
19480 $as_echo "$ac_cv_lib_c_ctime" >&6; }
19481 if test "x$ac_cv_lib_c_ctime" = xyes; then :
19482
19483 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
19484
19485 else
19486
19487 $as_echo "#undef HAVE_CTIME" >>confdefs.h
19488
19489 fi
19490
19491 else
19492 if test "x$ac_cv_lib_c_ctime" = xyes; then
19493
19494 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
19495
19496 elif test "x$ac_cv_func_ctime" = xyes; then
19497
19498 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
19499
19500 else
19501
19502 $as_echo "#undef HAVE_CTIME" >>confdefs.h
19503
19504 fi
19505 fi
19506
19507
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for creat" >&5
19509 $as_echo_n "checking m2 front end checking c library for creat... " >&6; }
19510 if test x$gcc_no_link != xyes; then
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for creat in -lc" >&5
19512 $as_echo_n "checking for creat in -lc... " >&6; }
19513 if ${ac_cv_lib_c_creat+:} false; then :
19514 $as_echo_n "(cached) " >&6
19515 else
19516 ac_check_lib_save_LIBS=$LIBS
19517 LIBS="-lc $LIBS"
19518 if test x$gcc_no_link = xyes; then
19519 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19520 fi
19521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19522 /* end confdefs.h. */
19523
19524 /* Override any GCC internal prototype to avoid an error.
19525 Use char because int might match the return type of a GCC
19526 builtin and then its argument prototype would still apply. */
19527 #ifdef __cplusplus
19528 extern "C"
19529 #endif
19530 char creat ();
19531 int
19532 main ()
19533 {
19534 return creat ();
19535 ;
19536 return 0;
19537 }
19538 _ACEOF
19539 if ac_fn_c_try_link "$LINENO"; then :
19540 ac_cv_lib_c_creat=yes
19541 else
19542 ac_cv_lib_c_creat=no
19543 fi
19544 rm -f core conftest.err conftest.$ac_objext \
19545 conftest$ac_exeext conftest.$ac_ext
19546 LIBS=$ac_check_lib_save_LIBS
19547 fi
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_creat" >&5
19549 $as_echo "$ac_cv_lib_c_creat" >&6; }
19550 if test "x$ac_cv_lib_c_creat" = xyes; then :
19551
19552 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
19553
19554 else
19555
19556 $as_echo "#undef HAVE_CREAT" >>confdefs.h
19557
19558 fi
19559
19560 else
19561 if test "x$ac_cv_lib_c_creat" = xyes; then
19562
19563 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
19564
19565 elif test "x$ac_cv_func_creat" = xyes; then
19566
19567 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
19568
19569 else
19570
19571 $as_echo "#undef HAVE_CREAT" >>confdefs.h
19572
19573 fi
19574 fi
19575
19576
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for daylight" >&5
19578 $as_echo_n "checking m2 front end checking c library for daylight... " >&6; }
19579 if test x$gcc_no_link != xyes; then
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight in -lc" >&5
19581 $as_echo_n "checking for daylight in -lc... " >&6; }
19582 if ${ac_cv_lib_c_daylight+:} false; then :
19583 $as_echo_n "(cached) " >&6
19584 else
19585 ac_check_lib_save_LIBS=$LIBS
19586 LIBS="-lc $LIBS"
19587 if test x$gcc_no_link = xyes; then
19588 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19589 fi
19590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19591 /* end confdefs.h. */
19592
19593 /* Override any GCC internal prototype to avoid an error.
19594 Use char because int might match the return type of a GCC
19595 builtin and then its argument prototype would still apply. */
19596 #ifdef __cplusplus
19597 extern "C"
19598 #endif
19599 char daylight ();
19600 int
19601 main ()
19602 {
19603 return daylight ();
19604 ;
19605 return 0;
19606 }
19607 _ACEOF
19608 if ac_fn_c_try_link "$LINENO"; then :
19609 ac_cv_lib_c_daylight=yes
19610 else
19611 ac_cv_lib_c_daylight=no
19612 fi
19613 rm -f core conftest.err conftest.$ac_objext \
19614 conftest$ac_exeext conftest.$ac_ext
19615 LIBS=$ac_check_lib_save_LIBS
19616 fi
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_daylight" >&5
19618 $as_echo "$ac_cv_lib_c_daylight" >&6; }
19619 if test "x$ac_cv_lib_c_daylight" = xyes; then :
19620
19621 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
19622
19623 else
19624
19625 $as_echo "#undef HAVE_DAYLIGHT" >>confdefs.h
19626
19627 fi
19628
19629 else
19630 if test "x$ac_cv_lib_c_daylight" = xyes; then
19631
19632 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
19633
19634 elif test "x$ac_cv_func_daylight" = xyes; then
19635
19636 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
19637
19638 else
19639
19640 $as_echo "#undef HAVE_DAYLIGHT" >>confdefs.h
19641
19642 fi
19643 fi
19644
19645
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for dup" >&5
19647 $as_echo_n "checking m2 front end checking c library for dup... " >&6; }
19648 if test x$gcc_no_link != xyes; then
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup in -lc" >&5
19650 $as_echo_n "checking for dup in -lc... " >&6; }
19651 if ${ac_cv_lib_c_dup+:} false; then :
19652 $as_echo_n "(cached) " >&6
19653 else
19654 ac_check_lib_save_LIBS=$LIBS
19655 LIBS="-lc $LIBS"
19656 if test x$gcc_no_link = xyes; then
19657 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19658 fi
19659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19660 /* end confdefs.h. */
19661
19662 /* Override any GCC internal prototype to avoid an error.
19663 Use char because int might match the return type of a GCC
19664 builtin and then its argument prototype would still apply. */
19665 #ifdef __cplusplus
19666 extern "C"
19667 #endif
19668 char dup ();
19669 int
19670 main ()
19671 {
19672 return dup ();
19673 ;
19674 return 0;
19675 }
19676 _ACEOF
19677 if ac_fn_c_try_link "$LINENO"; then :
19678 ac_cv_lib_c_dup=yes
19679 else
19680 ac_cv_lib_c_dup=no
19681 fi
19682 rm -f core conftest.err conftest.$ac_objext \
19683 conftest$ac_exeext conftest.$ac_ext
19684 LIBS=$ac_check_lib_save_LIBS
19685 fi
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dup" >&5
19687 $as_echo "$ac_cv_lib_c_dup" >&6; }
19688 if test "x$ac_cv_lib_c_dup" = xyes; then :
19689
19690 $as_echo "#define HAVE_DUP 1" >>confdefs.h
19691
19692 else
19693
19694 $as_echo "#undef HAVE_DUP" >>confdefs.h
19695
19696 fi
19697
19698 else
19699 if test "x$ac_cv_lib_c_dup" = xyes; then
19700
19701 $as_echo "#define HAVE_DUP 1" >>confdefs.h
19702
19703 elif test "x$ac_cv_func_dup" = xyes; then
19704
19705 $as_echo "#define HAVE_DUP 1" >>confdefs.h
19706
19707 else
19708
19709 $as_echo "#undef HAVE_DUP" >>confdefs.h
19710
19711 fi
19712 fi
19713
19714
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for execve" >&5
19716 $as_echo_n "checking m2 front end checking c library for execve... " >&6; }
19717 if test x$gcc_no_link != xyes; then
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execve in -lc" >&5
19719 $as_echo_n "checking for execve in -lc... " >&6; }
19720 if ${ac_cv_lib_c_execve+:} false; then :
19721 $as_echo_n "(cached) " >&6
19722 else
19723 ac_check_lib_save_LIBS=$LIBS
19724 LIBS="-lc $LIBS"
19725 if test x$gcc_no_link = xyes; then
19726 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19727 fi
19728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19729 /* end confdefs.h. */
19730
19731 /* Override any GCC internal prototype to avoid an error.
19732 Use char because int might match the return type of a GCC
19733 builtin and then its argument prototype would still apply. */
19734 #ifdef __cplusplus
19735 extern "C"
19736 #endif
19737 char execve ();
19738 int
19739 main ()
19740 {
19741 return execve ();
19742 ;
19743 return 0;
19744 }
19745 _ACEOF
19746 if ac_fn_c_try_link "$LINENO"; then :
19747 ac_cv_lib_c_execve=yes
19748 else
19749 ac_cv_lib_c_execve=no
19750 fi
19751 rm -f core conftest.err conftest.$ac_objext \
19752 conftest$ac_exeext conftest.$ac_ext
19753 LIBS=$ac_check_lib_save_LIBS
19754 fi
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_execve" >&5
19756 $as_echo "$ac_cv_lib_c_execve" >&6; }
19757 if test "x$ac_cv_lib_c_execve" = xyes; then :
19758
19759 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
19760
19761 else
19762
19763 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
19764
19765 fi
19766
19767 else
19768 if test "x$ac_cv_lib_c_execve" = xyes; then
19769
19770 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
19771
19772 elif test "x$ac_cv_func_execve" = xyes; then
19773
19774 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
19775
19776 else
19777
19778 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
19779
19780 fi
19781 fi
19782
19783
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for exit" >&5
19785 $as_echo_n "checking m2 front end checking c library for exit... " >&6; }
19786 if test x$gcc_no_link != xyes; then
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lc" >&5
19788 $as_echo_n "checking for exit in -lc... " >&6; }
19789 if ${ac_cv_lib_c_exit+:} false; then :
19790 $as_echo_n "(cached) " >&6
19791 else
19792 ac_check_lib_save_LIBS=$LIBS
19793 LIBS="-lc $LIBS"
19794 if test x$gcc_no_link = xyes; then
19795 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19796 fi
19797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19798 /* end confdefs.h. */
19799
19800 /* Override any GCC internal prototype to avoid an error.
19801 Use char because int might match the return type of a GCC
19802 builtin and then its argument prototype would still apply. */
19803 #ifdef __cplusplus
19804 extern "C"
19805 #endif
19806 char exit ();
19807 int
19808 main ()
19809 {
19810 return exit ();
19811 ;
19812 return 0;
19813 }
19814 _ACEOF
19815 if ac_fn_c_try_link "$LINENO"; then :
19816 ac_cv_lib_c_exit=yes
19817 else
19818 ac_cv_lib_c_exit=no
19819 fi
19820 rm -f core conftest.err conftest.$ac_objext \
19821 conftest$ac_exeext conftest.$ac_ext
19822 LIBS=$ac_check_lib_save_LIBS
19823 fi
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_exit" >&5
19825 $as_echo "$ac_cv_lib_c_exit" >&6; }
19826 if test "x$ac_cv_lib_c_exit" = xyes; then :
19827
19828 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
19829
19830 else
19831
19832 $as_echo "#undef HAVE_EXIT" >>confdefs.h
19833
19834 fi
19835
19836 else
19837 if test "x$ac_cv_lib_c_exit" = xyes; then
19838
19839 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
19840
19841 elif test "x$ac_cv_func_exit" = xyes; then
19842
19843 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
19844
19845 else
19846
19847 $as_echo "#undef HAVE_EXIT" >>confdefs.h
19848
19849 fi
19850 fi
19851
19852
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fcntl" >&5
19854 $as_echo_n "checking m2 front end checking c library for fcntl... " >&6; }
19855 if test x$gcc_no_link != xyes; then
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl in -lc" >&5
19857 $as_echo_n "checking for fcntl in -lc... " >&6; }
19858 if ${ac_cv_lib_c_fcntl+:} false; then :
19859 $as_echo_n "(cached) " >&6
19860 else
19861 ac_check_lib_save_LIBS=$LIBS
19862 LIBS="-lc $LIBS"
19863 if test x$gcc_no_link = xyes; then
19864 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19865 fi
19866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19867 /* end confdefs.h. */
19868
19869 /* Override any GCC internal prototype to avoid an error.
19870 Use char because int might match the return type of a GCC
19871 builtin and then its argument prototype would still apply. */
19872 #ifdef __cplusplus
19873 extern "C"
19874 #endif
19875 char fcntl ();
19876 int
19877 main ()
19878 {
19879 return fcntl ();
19880 ;
19881 return 0;
19882 }
19883 _ACEOF
19884 if ac_fn_c_try_link "$LINENO"; then :
19885 ac_cv_lib_c_fcntl=yes
19886 else
19887 ac_cv_lib_c_fcntl=no
19888 fi
19889 rm -f core conftest.err conftest.$ac_objext \
19890 conftest$ac_exeext conftest.$ac_ext
19891 LIBS=$ac_check_lib_save_LIBS
19892 fi
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fcntl" >&5
19894 $as_echo "$ac_cv_lib_c_fcntl" >&6; }
19895 if test "x$ac_cv_lib_c_fcntl" = xyes; then :
19896
19897 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
19898
19899 else
19900
19901 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
19902
19903 fi
19904
19905 else
19906 if test "x$ac_cv_lib_c_fcntl" = xyes; then
19907
19908 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
19909
19910 elif test "x$ac_cv_func_fcntl" = xyes; then
19911
19912 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
19913
19914 else
19915
19916 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
19917
19918 fi
19919 fi
19920
19921
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fstat" >&5
19923 $as_echo_n "checking m2 front end checking c library for fstat... " >&6; }
19924 if test x$gcc_no_link != xyes; then
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fstat in -lc" >&5
19926 $as_echo_n "checking for fstat in -lc... " >&6; }
19927 if ${ac_cv_lib_c_fstat+:} false; then :
19928 $as_echo_n "(cached) " >&6
19929 else
19930 ac_check_lib_save_LIBS=$LIBS
19931 LIBS="-lc $LIBS"
19932 if test x$gcc_no_link = xyes; then
19933 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19934 fi
19935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19936 /* end confdefs.h. */
19937
19938 /* Override any GCC internal prototype to avoid an error.
19939 Use char because int might match the return type of a GCC
19940 builtin and then its argument prototype would still apply. */
19941 #ifdef __cplusplus
19942 extern "C"
19943 #endif
19944 char fstat ();
19945 int
19946 main ()
19947 {
19948 return fstat ();
19949 ;
19950 return 0;
19951 }
19952 _ACEOF
19953 if ac_fn_c_try_link "$LINENO"; then :
19954 ac_cv_lib_c_fstat=yes
19955 else
19956 ac_cv_lib_c_fstat=no
19957 fi
19958 rm -f core conftest.err conftest.$ac_objext \
19959 conftest$ac_exeext conftest.$ac_ext
19960 LIBS=$ac_check_lib_save_LIBS
19961 fi
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fstat" >&5
19963 $as_echo "$ac_cv_lib_c_fstat" >&6; }
19964 if test "x$ac_cv_lib_c_fstat" = xyes; then :
19965
19966 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
19967
19968 else
19969
19970 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
19971
19972 fi
19973
19974 else
19975 if test "x$ac_cv_lib_c_fstat" = xyes; then
19976
19977 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
19978
19979 elif test "x$ac_cv_func_fstat" = xyes; then
19980
19981 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
19982
19983 else
19984
19985 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
19986
19987 fi
19988 fi
19989
19990
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getdents" >&5
19992 $as_echo_n "checking m2 front end checking c library for getdents... " >&6; }
19993 if test x$gcc_no_link != xyes; then
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getdents in -lc" >&5
19995 $as_echo_n "checking for getdents in -lc... " >&6; }
19996 if ${ac_cv_lib_c_getdents+:} false; then :
19997 $as_echo_n "(cached) " >&6
19998 else
19999 ac_check_lib_save_LIBS=$LIBS
20000 LIBS="-lc $LIBS"
20001 if test x$gcc_no_link = xyes; then
20002 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20003 fi
20004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20005 /* end confdefs.h. */
20006
20007 /* Override any GCC internal prototype to avoid an error.
20008 Use char because int might match the return type of a GCC
20009 builtin and then its argument prototype would still apply. */
20010 #ifdef __cplusplus
20011 extern "C"
20012 #endif
20013 char getdents ();
20014 int
20015 main ()
20016 {
20017 return getdents ();
20018 ;
20019 return 0;
20020 }
20021 _ACEOF
20022 if ac_fn_c_try_link "$LINENO"; then :
20023 ac_cv_lib_c_getdents=yes
20024 else
20025 ac_cv_lib_c_getdents=no
20026 fi
20027 rm -f core conftest.err conftest.$ac_objext \
20028 conftest$ac_exeext conftest.$ac_ext
20029 LIBS=$ac_check_lib_save_LIBS
20030 fi
20031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getdents" >&5
20032 $as_echo "$ac_cv_lib_c_getdents" >&6; }
20033 if test "x$ac_cv_lib_c_getdents" = xyes; then :
20034
20035 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
20036
20037 else
20038
20039 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
20040
20041 fi
20042
20043 else
20044 if test "x$ac_cv_lib_c_getdents" = xyes; then
20045
20046 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
20047
20048 elif test "x$ac_cv_func_getdents" = xyes; then
20049
20050 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
20051
20052 else
20053
20054 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
20055
20056 fi
20057 fi
20058
20059
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getgid" >&5
20061 $as_echo_n "checking m2 front end checking c library for getgid... " >&6; }
20062 if test x$gcc_no_link != xyes; then
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgid in -lc" >&5
20064 $as_echo_n "checking for getgid in -lc... " >&6; }
20065 if ${ac_cv_lib_c_getgid+:} false; then :
20066 $as_echo_n "(cached) " >&6
20067 else
20068 ac_check_lib_save_LIBS=$LIBS
20069 LIBS="-lc $LIBS"
20070 if test x$gcc_no_link = xyes; then
20071 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20072 fi
20073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20074 /* end confdefs.h. */
20075
20076 /* Override any GCC internal prototype to avoid an error.
20077 Use char because int might match the return type of a GCC
20078 builtin and then its argument prototype would still apply. */
20079 #ifdef __cplusplus
20080 extern "C"
20081 #endif
20082 char getgid ();
20083 int
20084 main ()
20085 {
20086 return getgid ();
20087 ;
20088 return 0;
20089 }
20090 _ACEOF
20091 if ac_fn_c_try_link "$LINENO"; then :
20092 ac_cv_lib_c_getgid=yes
20093 else
20094 ac_cv_lib_c_getgid=no
20095 fi
20096 rm -f core conftest.err conftest.$ac_objext \
20097 conftest$ac_exeext conftest.$ac_ext
20098 LIBS=$ac_check_lib_save_LIBS
20099 fi
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgid" >&5
20101 $as_echo "$ac_cv_lib_c_getgid" >&6; }
20102 if test "x$ac_cv_lib_c_getgid" = xyes; then :
20103
20104 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
20105
20106 else
20107
20108 $as_echo "#undef HAVE_GETGID" >>confdefs.h
20109
20110 fi
20111
20112 else
20113 if test "x$ac_cv_lib_c_getgid" = xyes; then
20114
20115 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
20116
20117 elif test "x$ac_cv_func_getgid" = xyes; then
20118
20119 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
20120
20121 else
20122
20123 $as_echo "#undef HAVE_GETGID" >>confdefs.h
20124
20125 fi
20126 fi
20127
20128
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getopt_long" >&5
20130 $as_echo_n "checking m2 front end checking c library for getopt_long... " >&6; }
20131 if test x$gcc_no_link != xyes; then
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lc" >&5
20133 $as_echo_n "checking for getopt_long in -lc... " >&6; }
20134 if ${ac_cv_lib_c_getopt_long+:} false; then :
20135 $as_echo_n "(cached) " >&6
20136 else
20137 ac_check_lib_save_LIBS=$LIBS
20138 LIBS="-lc $LIBS"
20139 if test x$gcc_no_link = xyes; then
20140 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20141 fi
20142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20143 /* end confdefs.h. */
20144
20145 /* Override any GCC internal prototype to avoid an error.
20146 Use char because int might match the return type of a GCC
20147 builtin and then its argument prototype would still apply. */
20148 #ifdef __cplusplus
20149 extern "C"
20150 #endif
20151 char getopt_long ();
20152 int
20153 main ()
20154 {
20155 return getopt_long ();
20156 ;
20157 return 0;
20158 }
20159 _ACEOF
20160 if ac_fn_c_try_link "$LINENO"; then :
20161 ac_cv_lib_c_getopt_long=yes
20162 else
20163 ac_cv_lib_c_getopt_long=no
20164 fi
20165 rm -f core conftest.err conftest.$ac_objext \
20166 conftest$ac_exeext conftest.$ac_ext
20167 LIBS=$ac_check_lib_save_LIBS
20168 fi
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getopt_long" >&5
20170 $as_echo "$ac_cv_lib_c_getopt_long" >&6; }
20171 if test "x$ac_cv_lib_c_getopt_long" = xyes; then :
20172
20173 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
20174
20175 else
20176
20177 $as_echo "#undef HAVE_GETOPT_LONG" >>confdefs.h
20178
20179 fi
20180
20181 else
20182 if test "x$ac_cv_lib_c_getopt_long" = xyes; then
20183
20184 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
20185
20186 elif test "x$ac_cv_func_getopt_long" = xyes; then
20187
20188 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
20189
20190 else
20191
20192 $as_echo "#undef HAVE_GETOPT_LONG" >>confdefs.h
20193
20194 fi
20195 fi
20196
20197
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getopt_long_only" >&5
20199 $as_echo_n "checking m2 front end checking c library for getopt_long_only... " >&6; }
20200 if test x$gcc_no_link != xyes; then
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long_only in -lc" >&5
20202 $as_echo_n "checking for getopt_long_only in -lc... " >&6; }
20203 if ${ac_cv_lib_c_getopt_long_only+:} false; then :
20204 $as_echo_n "(cached) " >&6
20205 else
20206 ac_check_lib_save_LIBS=$LIBS
20207 LIBS="-lc $LIBS"
20208 if test x$gcc_no_link = xyes; then
20209 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20210 fi
20211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20212 /* end confdefs.h. */
20213
20214 /* Override any GCC internal prototype to avoid an error.
20215 Use char because int might match the return type of a GCC
20216 builtin and then its argument prototype would still apply. */
20217 #ifdef __cplusplus
20218 extern "C"
20219 #endif
20220 char getopt_long_only ();
20221 int
20222 main ()
20223 {
20224 return getopt_long_only ();
20225 ;
20226 return 0;
20227 }
20228 _ACEOF
20229 if ac_fn_c_try_link "$LINENO"; then :
20230 ac_cv_lib_c_getopt_long_only=yes
20231 else
20232 ac_cv_lib_c_getopt_long_only=no
20233 fi
20234 rm -f core conftest.err conftest.$ac_objext \
20235 conftest$ac_exeext conftest.$ac_ext
20236 LIBS=$ac_check_lib_save_LIBS
20237 fi
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getopt_long_only" >&5
20239 $as_echo "$ac_cv_lib_c_getopt_long_only" >&6; }
20240 if test "x$ac_cv_lib_c_getopt_long_only" = xyes; then :
20241
20242 $as_echo "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
20243
20244 else
20245
20246 $as_echo "#undef HAVE_GETOPT_LONG_ONLY" >>confdefs.h
20247
20248 fi
20249
20250 else
20251 if test "x$ac_cv_lib_c_getopt_long_only" = xyes; then
20252
20253 $as_echo "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
20254
20255 elif test "x$ac_cv_func_getopt_long_only" = xyes; then
20256
20257 $as_echo "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
20258
20259 else
20260
20261 $as_echo "#undef HAVE_GETOPT_LONG_ONLY" >>confdefs.h
20262
20263 fi
20264 fi
20265
20266
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getpid" >&5
20268 $as_echo_n "checking m2 front end checking c library for getpid... " >&6; }
20269 if test x$gcc_no_link != xyes; then
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lc" >&5
20271 $as_echo_n "checking for getpid in -lc... " >&6; }
20272 if ${ac_cv_lib_c_getpid+:} false; then :
20273 $as_echo_n "(cached) " >&6
20274 else
20275 ac_check_lib_save_LIBS=$LIBS
20276 LIBS="-lc $LIBS"
20277 if test x$gcc_no_link = xyes; then
20278 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20279 fi
20280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20281 /* end confdefs.h. */
20282
20283 /* Override any GCC internal prototype to avoid an error.
20284 Use char because int might match the return type of a GCC
20285 builtin and then its argument prototype would still apply. */
20286 #ifdef __cplusplus
20287 extern "C"
20288 #endif
20289 char getpid ();
20290 int
20291 main ()
20292 {
20293 return getpid ();
20294 ;
20295 return 0;
20296 }
20297 _ACEOF
20298 if ac_fn_c_try_link "$LINENO"; then :
20299 ac_cv_lib_c_getpid=yes
20300 else
20301 ac_cv_lib_c_getpid=no
20302 fi
20303 rm -f core conftest.err conftest.$ac_objext \
20304 conftest$ac_exeext conftest.$ac_ext
20305 LIBS=$ac_check_lib_save_LIBS
20306 fi
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpid" >&5
20308 $as_echo "$ac_cv_lib_c_getpid" >&6; }
20309 if test "x$ac_cv_lib_c_getpid" = xyes; then :
20310
20311 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
20312
20313 else
20314
20315 $as_echo "#undef HAVE_GETPID" >>confdefs.h
20316
20317 fi
20318
20319 else
20320 if test "x$ac_cv_lib_c_getpid" = xyes; then
20321
20322 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
20323
20324 elif test "x$ac_cv_func_getpid" = xyes; then
20325
20326 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
20327
20328 else
20329
20330 $as_echo "#undef HAVE_GETPID" >>confdefs.h
20331
20332 fi
20333 fi
20334
20335
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for gettimeofday" >&5
20337 $as_echo_n "checking m2 front end checking c library for gettimeofday... " >&6; }
20338 if test x$gcc_no_link != xyes; then
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lc" >&5
20340 $as_echo_n "checking for gettimeofday in -lc... " >&6; }
20341 if ${ac_cv_lib_c_gettimeofday+:} false; then :
20342 $as_echo_n "(cached) " >&6
20343 else
20344 ac_check_lib_save_LIBS=$LIBS
20345 LIBS="-lc $LIBS"
20346 if test x$gcc_no_link = xyes; then
20347 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20348 fi
20349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20350 /* end confdefs.h. */
20351
20352 /* Override any GCC internal prototype to avoid an error.
20353 Use char because int might match the return type of a GCC
20354 builtin and then its argument prototype would still apply. */
20355 #ifdef __cplusplus
20356 extern "C"
20357 #endif
20358 char gettimeofday ();
20359 int
20360 main ()
20361 {
20362 return gettimeofday ();
20363 ;
20364 return 0;
20365 }
20366 _ACEOF
20367 if ac_fn_c_try_link "$LINENO"; then :
20368 ac_cv_lib_c_gettimeofday=yes
20369 else
20370 ac_cv_lib_c_gettimeofday=no
20371 fi
20372 rm -f core conftest.err conftest.$ac_objext \
20373 conftest$ac_exeext conftest.$ac_ext
20374 LIBS=$ac_check_lib_save_LIBS
20375 fi
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gettimeofday" >&5
20377 $as_echo "$ac_cv_lib_c_gettimeofday" >&6; }
20378 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then :
20379
20380 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
20381
20382 else
20383
20384 $as_echo "#undef HAVE_GETTIMEOFDAY" >>confdefs.h
20385
20386 fi
20387
20388 else
20389 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then
20390
20391 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
20392
20393 elif test "x$ac_cv_func_gettimeofday" = xyes; then
20394
20395 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
20396
20397 else
20398
20399 $as_echo "#undef HAVE_GETTIMEOFDAY" >>confdefs.h
20400
20401 fi
20402 fi
20403
20404
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getuid" >&5
20406 $as_echo_n "checking m2 front end checking c library for getuid... " >&6; }
20407 if test x$gcc_no_link != xyes; then
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getuid in -lc" >&5
20409 $as_echo_n "checking for getuid in -lc... " >&6; }
20410 if ${ac_cv_lib_c_getuid+:} false; then :
20411 $as_echo_n "(cached) " >&6
20412 else
20413 ac_check_lib_save_LIBS=$LIBS
20414 LIBS="-lc $LIBS"
20415 if test x$gcc_no_link = xyes; then
20416 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20417 fi
20418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20419 /* end confdefs.h. */
20420
20421 /* Override any GCC internal prototype to avoid an error.
20422 Use char because int might match the return type of a GCC
20423 builtin and then its argument prototype would still apply. */
20424 #ifdef __cplusplus
20425 extern "C"
20426 #endif
20427 char getuid ();
20428 int
20429 main ()
20430 {
20431 return getuid ();
20432 ;
20433 return 0;
20434 }
20435 _ACEOF
20436 if ac_fn_c_try_link "$LINENO"; then :
20437 ac_cv_lib_c_getuid=yes
20438 else
20439 ac_cv_lib_c_getuid=no
20440 fi
20441 rm -f core conftest.err conftest.$ac_objext \
20442 conftest$ac_exeext conftest.$ac_ext
20443 LIBS=$ac_check_lib_save_LIBS
20444 fi
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getuid" >&5
20446 $as_echo "$ac_cv_lib_c_getuid" >&6; }
20447 if test "x$ac_cv_lib_c_getuid" = xyes; then :
20448
20449 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
20450
20451 else
20452
20453 $as_echo "#undef HAVE_GETUID" >>confdefs.h
20454
20455 fi
20456
20457 else
20458 if test "x$ac_cv_lib_c_getuid" = xyes; then
20459
20460 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
20461
20462 elif test "x$ac_cv_func_getuid" = xyes; then
20463
20464 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
20465
20466 else
20467
20468 $as_echo "#undef HAVE_GETUID" >>confdefs.h
20469
20470 fi
20471 fi
20472
20473
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ioctl" >&5
20475 $as_echo_n "checking m2 front end checking c library for ioctl... " >&6; }
20476 if test x$gcc_no_link != xyes; then
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl in -lc" >&5
20478 $as_echo_n "checking for ioctl in -lc... " >&6; }
20479 if ${ac_cv_lib_c_ioctl+:} false; then :
20480 $as_echo_n "(cached) " >&6
20481 else
20482 ac_check_lib_save_LIBS=$LIBS
20483 LIBS="-lc $LIBS"
20484 if test x$gcc_no_link = xyes; then
20485 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20486 fi
20487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20488 /* end confdefs.h. */
20489
20490 /* Override any GCC internal prototype to avoid an error.
20491 Use char because int might match the return type of a GCC
20492 builtin and then its argument prototype would still apply. */
20493 #ifdef __cplusplus
20494 extern "C"
20495 #endif
20496 char ioctl ();
20497 int
20498 main ()
20499 {
20500 return ioctl ();
20501 ;
20502 return 0;
20503 }
20504 _ACEOF
20505 if ac_fn_c_try_link "$LINENO"; then :
20506 ac_cv_lib_c_ioctl=yes
20507 else
20508 ac_cv_lib_c_ioctl=no
20509 fi
20510 rm -f core conftest.err conftest.$ac_objext \
20511 conftest$ac_exeext conftest.$ac_ext
20512 LIBS=$ac_check_lib_save_LIBS
20513 fi
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ioctl" >&5
20515 $as_echo "$ac_cv_lib_c_ioctl" >&6; }
20516 if test "x$ac_cv_lib_c_ioctl" = xyes; then :
20517
20518 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
20519
20520 else
20521
20522 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
20523
20524 fi
20525
20526 else
20527 if test "x$ac_cv_lib_c_ioctl" = xyes; then
20528
20529 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
20530
20531 elif test "x$ac_cv_func_ioctl" = xyes; then
20532
20533 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
20534
20535 else
20536
20537 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
20538
20539 fi
20540 fi
20541
20542
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for kill" >&5
20544 $as_echo_n "checking m2 front end checking c library for kill... " >&6; }
20545 if test x$gcc_no_link != xyes; then
20546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kill in -lc" >&5
20547 $as_echo_n "checking for kill in -lc... " >&6; }
20548 if ${ac_cv_lib_c_kill+:} false; then :
20549 $as_echo_n "(cached) " >&6
20550 else
20551 ac_check_lib_save_LIBS=$LIBS
20552 LIBS="-lc $LIBS"
20553 if test x$gcc_no_link = xyes; then
20554 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20555 fi
20556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20557 /* end confdefs.h. */
20558
20559 /* Override any GCC internal prototype to avoid an error.
20560 Use char because int might match the return type of a GCC
20561 builtin and then its argument prototype would still apply. */
20562 #ifdef __cplusplus
20563 extern "C"
20564 #endif
20565 char kill ();
20566 int
20567 main ()
20568 {
20569 return kill ();
20570 ;
20571 return 0;
20572 }
20573 _ACEOF
20574 if ac_fn_c_try_link "$LINENO"; then :
20575 ac_cv_lib_c_kill=yes
20576 else
20577 ac_cv_lib_c_kill=no
20578 fi
20579 rm -f core conftest.err conftest.$ac_objext \
20580 conftest$ac_exeext conftest.$ac_ext
20581 LIBS=$ac_check_lib_save_LIBS
20582 fi
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_kill" >&5
20584 $as_echo "$ac_cv_lib_c_kill" >&6; }
20585 if test "x$ac_cv_lib_c_kill" = xyes; then :
20586
20587 $as_echo "#define HAVE_KILL 1" >>confdefs.h
20588
20589 else
20590
20591 $as_echo "#undef HAVE_KILL" >>confdefs.h
20592
20593 fi
20594
20595 else
20596 if test "x$ac_cv_lib_c_kill" = xyes; then
20597
20598 $as_echo "#define HAVE_KILL 1" >>confdefs.h
20599
20600 elif test "x$ac_cv_func_kill" = xyes; then
20601
20602 $as_echo "#define HAVE_KILL 1" >>confdefs.h
20603
20604 else
20605
20606 $as_echo "#undef HAVE_KILL" >>confdefs.h
20607
20608 fi
20609 fi
20610
20611
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for link" >&5
20613 $as_echo_n "checking m2 front end checking c library for link... " >&6; }
20614 if test x$gcc_no_link != xyes; then
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link in -lc" >&5
20616 $as_echo_n "checking for link in -lc... " >&6; }
20617 if ${ac_cv_lib_c_link+:} false; then :
20618 $as_echo_n "(cached) " >&6
20619 else
20620 ac_check_lib_save_LIBS=$LIBS
20621 LIBS="-lc $LIBS"
20622 if test x$gcc_no_link = xyes; then
20623 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20624 fi
20625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20626 /* end confdefs.h. */
20627
20628 /* Override any GCC internal prototype to avoid an error.
20629 Use char because int might match the return type of a GCC
20630 builtin and then its argument prototype would still apply. */
20631 #ifdef __cplusplus
20632 extern "C"
20633 #endif
20634 char link ();
20635 int
20636 main ()
20637 {
20638 return link ();
20639 ;
20640 return 0;
20641 }
20642 _ACEOF
20643 if ac_fn_c_try_link "$LINENO"; then :
20644 ac_cv_lib_c_link=yes
20645 else
20646 ac_cv_lib_c_link=no
20647 fi
20648 rm -f core conftest.err conftest.$ac_objext \
20649 conftest$ac_exeext conftest.$ac_ext
20650 LIBS=$ac_check_lib_save_LIBS
20651 fi
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_link" >&5
20653 $as_echo "$ac_cv_lib_c_link" >&6; }
20654 if test "x$ac_cv_lib_c_link" = xyes; then :
20655
20656 $as_echo "#define HAVE_LINK 1" >>confdefs.h
20657
20658 else
20659
20660 $as_echo "#undef HAVE_LINK" >>confdefs.h
20661
20662 fi
20663
20664 else
20665 if test "x$ac_cv_lib_c_link" = xyes; then
20666
20667 $as_echo "#define HAVE_LINK 1" >>confdefs.h
20668
20669 elif test "x$ac_cv_func_link" = xyes; then
20670
20671 $as_echo "#define HAVE_LINK 1" >>confdefs.h
20672
20673 else
20674
20675 $as_echo "#undef HAVE_LINK" >>confdefs.h
20676
20677 fi
20678 fi
20679
20680
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for lseek" >&5
20682 $as_echo_n "checking m2 front end checking c library for lseek... " >&6; }
20683 if test x$gcc_no_link != xyes; then
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lseek in -lc" >&5
20685 $as_echo_n "checking for lseek in -lc... " >&6; }
20686 if ${ac_cv_lib_c_lseek+:} false; then :
20687 $as_echo_n "(cached) " >&6
20688 else
20689 ac_check_lib_save_LIBS=$LIBS
20690 LIBS="-lc $LIBS"
20691 if test x$gcc_no_link = xyes; then
20692 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20693 fi
20694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20695 /* end confdefs.h. */
20696
20697 /* Override any GCC internal prototype to avoid an error.
20698 Use char because int might match the return type of a GCC
20699 builtin and then its argument prototype would still apply. */
20700 #ifdef __cplusplus
20701 extern "C"
20702 #endif
20703 char lseek ();
20704 int
20705 main ()
20706 {
20707 return lseek ();
20708 ;
20709 return 0;
20710 }
20711 _ACEOF
20712 if ac_fn_c_try_link "$LINENO"; then :
20713 ac_cv_lib_c_lseek=yes
20714 else
20715 ac_cv_lib_c_lseek=no
20716 fi
20717 rm -f core conftest.err conftest.$ac_objext \
20718 conftest$ac_exeext conftest.$ac_ext
20719 LIBS=$ac_check_lib_save_LIBS
20720 fi
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_lseek" >&5
20722 $as_echo "$ac_cv_lib_c_lseek" >&6; }
20723 if test "x$ac_cv_lib_c_lseek" = xyes; then :
20724
20725 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
20726
20727 else
20728
20729 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
20730
20731 fi
20732
20733 else
20734 if test "x$ac_cv_lib_c_lseek" = xyes; then
20735
20736 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
20737
20738 elif test "x$ac_cv_func_lseek" = xyes; then
20739
20740 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
20741
20742 else
20743
20744 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
20745
20746 fi
20747 fi
20748
20749
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for open" >&5
20751 $as_echo_n "checking m2 front end checking c library for open... " >&6; }
20752 if test x$gcc_no_link != xyes; then
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open in -lc" >&5
20754 $as_echo_n "checking for open in -lc... " >&6; }
20755 if ${ac_cv_lib_c_open+:} false; then :
20756 $as_echo_n "(cached) " >&6
20757 else
20758 ac_check_lib_save_LIBS=$LIBS
20759 LIBS="-lc $LIBS"
20760 if test x$gcc_no_link = xyes; then
20761 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20762 fi
20763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20764 /* end confdefs.h. */
20765
20766 /* Override any GCC internal prototype to avoid an error.
20767 Use char because int might match the return type of a GCC
20768 builtin and then its argument prototype would still apply. */
20769 #ifdef __cplusplus
20770 extern "C"
20771 #endif
20772 char open ();
20773 int
20774 main ()
20775 {
20776 return open ();
20777 ;
20778 return 0;
20779 }
20780 _ACEOF
20781 if ac_fn_c_try_link "$LINENO"; then :
20782 ac_cv_lib_c_open=yes
20783 else
20784 ac_cv_lib_c_open=no
20785 fi
20786 rm -f core conftest.err conftest.$ac_objext \
20787 conftest$ac_exeext conftest.$ac_ext
20788 LIBS=$ac_check_lib_save_LIBS
20789 fi
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_open" >&5
20791 $as_echo "$ac_cv_lib_c_open" >&6; }
20792 if test "x$ac_cv_lib_c_open" = xyes; then :
20793
20794 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
20795
20796 else
20797
20798 $as_echo "#undef HAVE_OPEN" >>confdefs.h
20799
20800 fi
20801
20802 else
20803 if test "x$ac_cv_lib_c_open" = xyes; then
20804
20805 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
20806
20807 elif test "x$ac_cv_func_open" = xyes; then
20808
20809 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
20810
20811 else
20812
20813 $as_echo "#undef HAVE_OPEN" >>confdefs.h
20814
20815 fi
20816 fi
20817
20818
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pause" >&5
20820 $as_echo_n "checking m2 front end checking c library for pause... " >&6; }
20821 if test x$gcc_no_link != xyes; then
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause in -lc" >&5
20823 $as_echo_n "checking for pause in -lc... " >&6; }
20824 if ${ac_cv_lib_c_pause+:} false; then :
20825 $as_echo_n "(cached) " >&6
20826 else
20827 ac_check_lib_save_LIBS=$LIBS
20828 LIBS="-lc $LIBS"
20829 if test x$gcc_no_link = xyes; then
20830 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20831 fi
20832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20833 /* end confdefs.h. */
20834
20835 /* Override any GCC internal prototype to avoid an error.
20836 Use char because int might match the return type of a GCC
20837 builtin and then its argument prototype would still apply. */
20838 #ifdef __cplusplus
20839 extern "C"
20840 #endif
20841 char pause ();
20842 int
20843 main ()
20844 {
20845 return pause ();
20846 ;
20847 return 0;
20848 }
20849 _ACEOF
20850 if ac_fn_c_try_link "$LINENO"; then :
20851 ac_cv_lib_c_pause=yes
20852 else
20853 ac_cv_lib_c_pause=no
20854 fi
20855 rm -f core conftest.err conftest.$ac_objext \
20856 conftest$ac_exeext conftest.$ac_ext
20857 LIBS=$ac_check_lib_save_LIBS
20858 fi
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pause" >&5
20860 $as_echo "$ac_cv_lib_c_pause" >&6; }
20861 if test "x$ac_cv_lib_c_pause" = xyes; then :
20862
20863 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
20864
20865 else
20866
20867 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
20868
20869 fi
20870
20871 else
20872 if test "x$ac_cv_lib_c_pause" = xyes; then
20873
20874 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
20875
20876 elif test "x$ac_cv_func_pause" = xyes; then
20877
20878 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
20879
20880 else
20881
20882 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
20883
20884 fi
20885 fi
20886
20887
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pipe" >&5
20889 $as_echo_n "checking m2 front end checking c library for pipe... " >&6; }
20890 if test x$gcc_no_link != xyes; then
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe in -lc" >&5
20892 $as_echo_n "checking for pipe in -lc... " >&6; }
20893 if ${ac_cv_lib_c_pipe+:} false; then :
20894 $as_echo_n "(cached) " >&6
20895 else
20896 ac_check_lib_save_LIBS=$LIBS
20897 LIBS="-lc $LIBS"
20898 if test x$gcc_no_link = xyes; then
20899 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20900 fi
20901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20902 /* end confdefs.h. */
20903
20904 /* Override any GCC internal prototype to avoid an error.
20905 Use char because int might match the return type of a GCC
20906 builtin and then its argument prototype would still apply. */
20907 #ifdef __cplusplus
20908 extern "C"
20909 #endif
20910 char pipe ();
20911 int
20912 main ()
20913 {
20914 return pipe ();
20915 ;
20916 return 0;
20917 }
20918 _ACEOF
20919 if ac_fn_c_try_link "$LINENO"; then :
20920 ac_cv_lib_c_pipe=yes
20921 else
20922 ac_cv_lib_c_pipe=no
20923 fi
20924 rm -f core conftest.err conftest.$ac_objext \
20925 conftest$ac_exeext conftest.$ac_ext
20926 LIBS=$ac_check_lib_save_LIBS
20927 fi
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pipe" >&5
20929 $as_echo "$ac_cv_lib_c_pipe" >&6; }
20930 if test "x$ac_cv_lib_c_pipe" = xyes; then :
20931
20932 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
20933
20934 else
20935
20936 $as_echo "#undef HAVE_PIPE" >>confdefs.h
20937
20938 fi
20939
20940 else
20941 if test "x$ac_cv_lib_c_pipe" = xyes; then
20942
20943 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
20944
20945 elif test "x$ac_cv_func_pipe" = xyes; then
20946
20947 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
20948
20949 else
20950
20951 $as_echo "#undef HAVE_PIPE" >>confdefs.h
20952
20953 fi
20954 fi
20955
20956
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for rand" >&5
20958 $as_echo_n "checking m2 front end checking c library for rand... " >&6; }
20959 if test x$gcc_no_link != xyes; then
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rand in -lc" >&5
20961 $as_echo_n "checking for rand in -lc... " >&6; }
20962 if ${ac_cv_lib_c_rand+:} false; then :
20963 $as_echo_n "(cached) " >&6
20964 else
20965 ac_check_lib_save_LIBS=$LIBS
20966 LIBS="-lc $LIBS"
20967 if test x$gcc_no_link = xyes; then
20968 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20969 fi
20970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20971 /* end confdefs.h. */
20972
20973 /* Override any GCC internal prototype to avoid an error.
20974 Use char because int might match the return type of a GCC
20975 builtin and then its argument prototype would still apply. */
20976 #ifdef __cplusplus
20977 extern "C"
20978 #endif
20979 char rand ();
20980 int
20981 main ()
20982 {
20983 return rand ();
20984 ;
20985 return 0;
20986 }
20987 _ACEOF
20988 if ac_fn_c_try_link "$LINENO"; then :
20989 ac_cv_lib_c_rand=yes
20990 else
20991 ac_cv_lib_c_rand=no
20992 fi
20993 rm -f core conftest.err conftest.$ac_objext \
20994 conftest$ac_exeext conftest.$ac_ext
20995 LIBS=$ac_check_lib_save_LIBS
20996 fi
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_rand" >&5
20998 $as_echo "$ac_cv_lib_c_rand" >&6; }
20999 if test "x$ac_cv_lib_c_rand" = xyes; then :
21000
21001 $as_echo "#define HAVE_RAND 1" >>confdefs.h
21002
21003 else
21004
21005 $as_echo "#undef HAVE_RAND" >>confdefs.h
21006
21007 fi
21008
21009 else
21010 if test "x$ac_cv_lib_c_rand" = xyes; then
21011
21012 $as_echo "#define HAVE_RAND 1" >>confdefs.h
21013
21014 elif test "x$ac_cv_func_rand" = xyes; then
21015
21016 $as_echo "#define HAVE_RAND 1" >>confdefs.h
21017
21018 else
21019
21020 $as_echo "#undef HAVE_RAND" >>confdefs.h
21021
21022 fi
21023 fi
21024
21025
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for read" >&5
21027 $as_echo_n "checking m2 front end checking c library for read... " >&6; }
21028 if test x$gcc_no_link != xyes; then
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for read in -lc" >&5
21030 $as_echo_n "checking for read in -lc... " >&6; }
21031 if ${ac_cv_lib_c_read+:} false; then :
21032 $as_echo_n "(cached) " >&6
21033 else
21034 ac_check_lib_save_LIBS=$LIBS
21035 LIBS="-lc $LIBS"
21036 if test x$gcc_no_link = xyes; then
21037 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21038 fi
21039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21040 /* end confdefs.h. */
21041
21042 /* Override any GCC internal prototype to avoid an error.
21043 Use char because int might match the return type of a GCC
21044 builtin and then its argument prototype would still apply. */
21045 #ifdef __cplusplus
21046 extern "C"
21047 #endif
21048 char read ();
21049 int
21050 main ()
21051 {
21052 return read ();
21053 ;
21054 return 0;
21055 }
21056 _ACEOF
21057 if ac_fn_c_try_link "$LINENO"; then :
21058 ac_cv_lib_c_read=yes
21059 else
21060 ac_cv_lib_c_read=no
21061 fi
21062 rm -f core conftest.err conftest.$ac_objext \
21063 conftest$ac_exeext conftest.$ac_ext
21064 LIBS=$ac_check_lib_save_LIBS
21065 fi
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_read" >&5
21067 $as_echo "$ac_cv_lib_c_read" >&6; }
21068 if test "x$ac_cv_lib_c_read" = xyes; then :
21069
21070 $as_echo "#define HAVE_READ 1" >>confdefs.h
21071
21072 else
21073
21074 $as_echo "#undef HAVE_READ" >>confdefs.h
21075
21076 fi
21077
21078 else
21079 if test "x$ac_cv_lib_c_read" = xyes; then
21080
21081 $as_echo "#define HAVE_READ 1" >>confdefs.h
21082
21083 elif test "x$ac_cv_func_read" = xyes; then
21084
21085 $as_echo "#define HAVE_READ 1" >>confdefs.h
21086
21087 else
21088
21089 $as_echo "#undef HAVE_READ" >>confdefs.h
21090
21091 fi
21092 fi
21093
21094
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for select" >&5
21096 $as_echo_n "checking m2 front end checking c library for select... " >&6; }
21097 if test x$gcc_no_link != xyes; then
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select in -lc" >&5
21099 $as_echo_n "checking for select in -lc... " >&6; }
21100 if ${ac_cv_lib_c_select+:} false; then :
21101 $as_echo_n "(cached) " >&6
21102 else
21103 ac_check_lib_save_LIBS=$LIBS
21104 LIBS="-lc $LIBS"
21105 if test x$gcc_no_link = xyes; then
21106 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21107 fi
21108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21109 /* end confdefs.h. */
21110
21111 /* Override any GCC internal prototype to avoid an error.
21112 Use char because int might match the return type of a GCC
21113 builtin and then its argument prototype would still apply. */
21114 #ifdef __cplusplus
21115 extern "C"
21116 #endif
21117 char select ();
21118 int
21119 main ()
21120 {
21121 return select ();
21122 ;
21123 return 0;
21124 }
21125 _ACEOF
21126 if ac_fn_c_try_link "$LINENO"; then :
21127 ac_cv_lib_c_select=yes
21128 else
21129 ac_cv_lib_c_select=no
21130 fi
21131 rm -f core conftest.err conftest.$ac_objext \
21132 conftest$ac_exeext conftest.$ac_ext
21133 LIBS=$ac_check_lib_save_LIBS
21134 fi
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_select" >&5
21136 $as_echo "$ac_cv_lib_c_select" >&6; }
21137 if test "x$ac_cv_lib_c_select" = xyes; then :
21138
21139 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
21140
21141 else
21142
21143 $as_echo "#undef HAVE_SELECT" >>confdefs.h
21144
21145 fi
21146
21147 else
21148 if test "x$ac_cv_lib_c_select" = xyes; then
21149
21150 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
21151
21152 elif test "x$ac_cv_func_select" = xyes; then
21153
21154 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
21155
21156 else
21157
21158 $as_echo "#undef HAVE_SELECT" >>confdefs.h
21159
21160 fi
21161 fi
21162
21163
21164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setitimer" >&5
21165 $as_echo_n "checking m2 front end checking c library for setitimer... " >&6; }
21166 if test x$gcc_no_link != xyes; then
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setitimer in -lc" >&5
21168 $as_echo_n "checking for setitimer in -lc... " >&6; }
21169 if ${ac_cv_lib_c_setitimer+:} false; then :
21170 $as_echo_n "(cached) " >&6
21171 else
21172 ac_check_lib_save_LIBS=$LIBS
21173 LIBS="-lc $LIBS"
21174 if test x$gcc_no_link = xyes; then
21175 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21176 fi
21177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21178 /* end confdefs.h. */
21179
21180 /* Override any GCC internal prototype to avoid an error.
21181 Use char because int might match the return type of a GCC
21182 builtin and then its argument prototype would still apply. */
21183 #ifdef __cplusplus
21184 extern "C"
21185 #endif
21186 char setitimer ();
21187 int
21188 main ()
21189 {
21190 return setitimer ();
21191 ;
21192 return 0;
21193 }
21194 _ACEOF
21195 if ac_fn_c_try_link "$LINENO"; then :
21196 ac_cv_lib_c_setitimer=yes
21197 else
21198 ac_cv_lib_c_setitimer=no
21199 fi
21200 rm -f core conftest.err conftest.$ac_objext \
21201 conftest$ac_exeext conftest.$ac_ext
21202 LIBS=$ac_check_lib_save_LIBS
21203 fi
21204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setitimer" >&5
21205 $as_echo "$ac_cv_lib_c_setitimer" >&6; }
21206 if test "x$ac_cv_lib_c_setitimer" = xyes; then :
21207
21208 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
21209
21210 else
21211
21212 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
21213
21214 fi
21215
21216 else
21217 if test "x$ac_cv_lib_c_setitimer" = xyes; then
21218
21219 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
21220
21221 elif test "x$ac_cv_func_setitimer" = xyes; then
21222
21223 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
21224
21225 else
21226
21227 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
21228
21229 fi
21230 fi
21231
21232
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setgid" >&5
21234 $as_echo_n "checking m2 front end checking c library for setgid... " >&6; }
21235 if test x$gcc_no_link != xyes; then
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgid in -lc" >&5
21237 $as_echo_n "checking for setgid in -lc... " >&6; }
21238 if ${ac_cv_lib_c_setgid+:} false; then :
21239 $as_echo_n "(cached) " >&6
21240 else
21241 ac_check_lib_save_LIBS=$LIBS
21242 LIBS="-lc $LIBS"
21243 if test x$gcc_no_link = xyes; then
21244 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21245 fi
21246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21247 /* end confdefs.h. */
21248
21249 /* Override any GCC internal prototype to avoid an error.
21250 Use char because int might match the return type of a GCC
21251 builtin and then its argument prototype would still apply. */
21252 #ifdef __cplusplus
21253 extern "C"
21254 #endif
21255 char setgid ();
21256 int
21257 main ()
21258 {
21259 return setgid ();
21260 ;
21261 return 0;
21262 }
21263 _ACEOF
21264 if ac_fn_c_try_link "$LINENO"; then :
21265 ac_cv_lib_c_setgid=yes
21266 else
21267 ac_cv_lib_c_setgid=no
21268 fi
21269 rm -f core conftest.err conftest.$ac_objext \
21270 conftest$ac_exeext conftest.$ac_ext
21271 LIBS=$ac_check_lib_save_LIBS
21272 fi
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setgid" >&5
21274 $as_echo "$ac_cv_lib_c_setgid" >&6; }
21275 if test "x$ac_cv_lib_c_setgid" = xyes; then :
21276
21277 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
21278
21279 else
21280
21281 $as_echo "#undef HAVE_SETGID" >>confdefs.h
21282
21283 fi
21284
21285 else
21286 if test "x$ac_cv_lib_c_setgid" = xyes; then
21287
21288 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
21289
21290 elif test "x$ac_cv_func_setgid" = xyes; then
21291
21292 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
21293
21294 else
21295
21296 $as_echo "#undef HAVE_SETGID" >>confdefs.h
21297
21298 fi
21299 fi
21300
21301
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for settimeofday" >&5
21303 $as_echo_n "checking m2 front end checking c library for settimeofday... " >&6; }
21304 if test x$gcc_no_link != xyes; then
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for settimeofday in -lc" >&5
21306 $as_echo_n "checking for settimeofday in -lc... " >&6; }
21307 if ${ac_cv_lib_c_settimeofday+:} false; then :
21308 $as_echo_n "(cached) " >&6
21309 else
21310 ac_check_lib_save_LIBS=$LIBS
21311 LIBS="-lc $LIBS"
21312 if test x$gcc_no_link = xyes; then
21313 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21314 fi
21315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21316 /* end confdefs.h. */
21317
21318 /* Override any GCC internal prototype to avoid an error.
21319 Use char because int might match the return type of a GCC
21320 builtin and then its argument prototype would still apply. */
21321 #ifdef __cplusplus
21322 extern "C"
21323 #endif
21324 char settimeofday ();
21325 int
21326 main ()
21327 {
21328 return settimeofday ();
21329 ;
21330 return 0;
21331 }
21332 _ACEOF
21333 if ac_fn_c_try_link "$LINENO"; then :
21334 ac_cv_lib_c_settimeofday=yes
21335 else
21336 ac_cv_lib_c_settimeofday=no
21337 fi
21338 rm -f core conftest.err conftest.$ac_objext \
21339 conftest$ac_exeext conftest.$ac_ext
21340 LIBS=$ac_check_lib_save_LIBS
21341 fi
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_settimeofday" >&5
21343 $as_echo "$ac_cv_lib_c_settimeofday" >&6; }
21344 if test "x$ac_cv_lib_c_settimeofday" = xyes; then :
21345
21346 $as_echo "#define HAVE_SETTIMEOFDAY 1" >>confdefs.h
21347
21348 else
21349
21350 $as_echo "#undef HAVE_SETTIMEOFDAY" >>confdefs.h
21351
21352 fi
21353
21354 else
21355 if test "x$ac_cv_lib_c_settimeofday" = xyes; then
21356
21357 $as_echo "#define HAVE_SETTIMEOFDAY 1" >>confdefs.h
21358
21359 elif test "x$ac_cv_func_settimeofday" = xyes; then
21360
21361 $as_echo "#define HAVE_SETTIMEOFDAY 1" >>confdefs.h
21362
21363 else
21364
21365 $as_echo "#undef HAVE_SETTIMEOFDAY" >>confdefs.h
21366
21367 fi
21368 fi
21369
21370
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setuid" >&5
21372 $as_echo_n "checking m2 front end checking c library for setuid... " >&6; }
21373 if test x$gcc_no_link != xyes; then
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid in -lc" >&5
21375 $as_echo_n "checking for setuid in -lc... " >&6; }
21376 if ${ac_cv_lib_c_setuid+:} false; then :
21377 $as_echo_n "(cached) " >&6
21378 else
21379 ac_check_lib_save_LIBS=$LIBS
21380 LIBS="-lc $LIBS"
21381 if test x$gcc_no_link = xyes; then
21382 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21383 fi
21384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21385 /* end confdefs.h. */
21386
21387 /* Override any GCC internal prototype to avoid an error.
21388 Use char because int might match the return type of a GCC
21389 builtin and then its argument prototype would still apply. */
21390 #ifdef __cplusplus
21391 extern "C"
21392 #endif
21393 char setuid ();
21394 int
21395 main ()
21396 {
21397 return setuid ();
21398 ;
21399 return 0;
21400 }
21401 _ACEOF
21402 if ac_fn_c_try_link "$LINENO"; then :
21403 ac_cv_lib_c_setuid=yes
21404 else
21405 ac_cv_lib_c_setuid=no
21406 fi
21407 rm -f core conftest.err conftest.$ac_objext \
21408 conftest$ac_exeext conftest.$ac_ext
21409 LIBS=$ac_check_lib_save_LIBS
21410 fi
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setuid" >&5
21412 $as_echo "$ac_cv_lib_c_setuid" >&6; }
21413 if test "x$ac_cv_lib_c_setuid" = xyes; then :
21414
21415 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
21416
21417 else
21418
21419 $as_echo "#undef HAVE_SETUID" >>confdefs.h
21420
21421 fi
21422
21423 else
21424 if test "x$ac_cv_lib_c_setuid" = xyes; then
21425
21426 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
21427
21428 elif test "x$ac_cv_func_setuid" = xyes; then
21429
21430 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
21431
21432 else
21433
21434 $as_echo "#undef HAVE_SETUID" >>confdefs.h
21435
21436 fi
21437 fi
21438
21439
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for stat" >&5
21441 $as_echo_n "checking m2 front end checking c library for stat... " >&6; }
21442 if test x$gcc_no_link != xyes; then
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stat in -lc" >&5
21444 $as_echo_n "checking for stat in -lc... " >&6; }
21445 if ${ac_cv_lib_c_stat+:} false; then :
21446 $as_echo_n "(cached) " >&6
21447 else
21448 ac_check_lib_save_LIBS=$LIBS
21449 LIBS="-lc $LIBS"
21450 if test x$gcc_no_link = xyes; then
21451 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21452 fi
21453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21454 /* end confdefs.h. */
21455
21456 /* Override any GCC internal prototype to avoid an error.
21457 Use char because int might match the return type of a GCC
21458 builtin and then its argument prototype would still apply. */
21459 #ifdef __cplusplus
21460 extern "C"
21461 #endif
21462 char stat ();
21463 int
21464 main ()
21465 {
21466 return stat ();
21467 ;
21468 return 0;
21469 }
21470 _ACEOF
21471 if ac_fn_c_try_link "$LINENO"; then :
21472 ac_cv_lib_c_stat=yes
21473 else
21474 ac_cv_lib_c_stat=no
21475 fi
21476 rm -f core conftest.err conftest.$ac_objext \
21477 conftest$ac_exeext conftest.$ac_ext
21478 LIBS=$ac_check_lib_save_LIBS
21479 fi
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_stat" >&5
21481 $as_echo "$ac_cv_lib_c_stat" >&6; }
21482 if test "x$ac_cv_lib_c_stat" = xyes; then :
21483
21484 $as_echo "#define HAVE_STAT 1" >>confdefs.h
21485
21486 else
21487
21488 $as_echo "#undef HAVE_STAT" >>confdefs.h
21489
21490 fi
21491
21492 else
21493 if test "x$ac_cv_lib_c_stat" = xyes; then
21494
21495 $as_echo "#define HAVE_STAT 1" >>confdefs.h
21496
21497 elif test "x$ac_cv_func_stat" = xyes; then
21498
21499 $as_echo "#define HAVE_STAT 1" >>confdefs.h
21500
21501 else
21502
21503 $as_echo "#undef HAVE_STAT" >>confdefs.h
21504
21505 fi
21506 fi
21507
21508
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strsignal" >&5
21510 $as_echo_n "checking m2 front end checking c library for strsignal... " >&6; }
21511 if test x$gcc_no_link != xyes; then
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strsignal in -lc" >&5
21513 $as_echo_n "checking for strsignal in -lc... " >&6; }
21514 if ${ac_cv_lib_c_strsignal+:} false; then :
21515 $as_echo_n "(cached) " >&6
21516 else
21517 ac_check_lib_save_LIBS=$LIBS
21518 LIBS="-lc $LIBS"
21519 if test x$gcc_no_link = xyes; then
21520 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21521 fi
21522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21523 /* end confdefs.h. */
21524
21525 /* Override any GCC internal prototype to avoid an error.
21526 Use char because int might match the return type of a GCC
21527 builtin and then its argument prototype would still apply. */
21528 #ifdef __cplusplus
21529 extern "C"
21530 #endif
21531 char strsignal ();
21532 int
21533 main ()
21534 {
21535 return strsignal ();
21536 ;
21537 return 0;
21538 }
21539 _ACEOF
21540 if ac_fn_c_try_link "$LINENO"; then :
21541 ac_cv_lib_c_strsignal=yes
21542 else
21543 ac_cv_lib_c_strsignal=no
21544 fi
21545 rm -f core conftest.err conftest.$ac_objext \
21546 conftest$ac_exeext conftest.$ac_ext
21547 LIBS=$ac_check_lib_save_LIBS
21548 fi
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strsignal" >&5
21550 $as_echo "$ac_cv_lib_c_strsignal" >&6; }
21551 if test "x$ac_cv_lib_c_strsignal" = xyes; then :
21552
21553 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
21554
21555 else
21556
21557 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
21558
21559 fi
21560
21561 else
21562 if test "x$ac_cv_lib_c_strsignal" = xyes; then
21563
21564 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
21565
21566 elif test "x$ac_cv_func_strsignal" = xyes; then
21567
21568 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
21569
21570 else
21571
21572 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
21573
21574 fi
21575 fi
21576
21577
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtod" >&5
21579 $as_echo_n "checking m2 front end checking c library for strtod... " >&6; }
21580 if test x$gcc_no_link != xyes; then
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lc" >&5
21582 $as_echo_n "checking for strtod in -lc... " >&6; }
21583 if ${ac_cv_lib_c_strtod+:} false; then :
21584 $as_echo_n "(cached) " >&6
21585 else
21586 ac_check_lib_save_LIBS=$LIBS
21587 LIBS="-lc $LIBS"
21588 if test x$gcc_no_link = xyes; then
21589 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21590 fi
21591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21592 /* end confdefs.h. */
21593
21594 /* Override any GCC internal prototype to avoid an error.
21595 Use char because int might match the return type of a GCC
21596 builtin and then its argument prototype would still apply. */
21597 #ifdef __cplusplus
21598 extern "C"
21599 #endif
21600 char strtod ();
21601 int
21602 main ()
21603 {
21604 return strtod ();
21605 ;
21606 return 0;
21607 }
21608 _ACEOF
21609 if ac_fn_c_try_link "$LINENO"; then :
21610 ac_cv_lib_c_strtod=yes
21611 else
21612 ac_cv_lib_c_strtod=no
21613 fi
21614 rm -f core conftest.err conftest.$ac_objext \
21615 conftest$ac_exeext conftest.$ac_ext
21616 LIBS=$ac_check_lib_save_LIBS
21617 fi
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtod" >&5
21619 $as_echo "$ac_cv_lib_c_strtod" >&6; }
21620 if test "x$ac_cv_lib_c_strtod" = xyes; then :
21621
21622 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
21623
21624 else
21625
21626 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
21627
21628 fi
21629
21630 else
21631 if test "x$ac_cv_lib_c_strtod" = xyes; then
21632
21633 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
21634
21635 elif test "x$ac_cv_func_strtod" = xyes; then
21636
21637 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
21638
21639 else
21640
21641 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
21642
21643 fi
21644 fi
21645
21646
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtold" >&5
21648 $as_echo_n "checking m2 front end checking c library for strtold... " >&6; }
21649 if test x$gcc_no_link != xyes; then
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold in -lc" >&5
21651 $as_echo_n "checking for strtold in -lc... " >&6; }
21652 if ${ac_cv_lib_c_strtold+:} false; then :
21653 $as_echo_n "(cached) " >&6
21654 else
21655 ac_check_lib_save_LIBS=$LIBS
21656 LIBS="-lc $LIBS"
21657 if test x$gcc_no_link = xyes; then
21658 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21659 fi
21660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21661 /* end confdefs.h. */
21662
21663 /* Override any GCC internal prototype to avoid an error.
21664 Use char because int might match the return type of a GCC
21665 builtin and then its argument prototype would still apply. */
21666 #ifdef __cplusplus
21667 extern "C"
21668 #endif
21669 char strtold ();
21670 int
21671 main ()
21672 {
21673 return strtold ();
21674 ;
21675 return 0;
21676 }
21677 _ACEOF
21678 if ac_fn_c_try_link "$LINENO"; then :
21679 ac_cv_lib_c_strtold=yes
21680 else
21681 ac_cv_lib_c_strtold=no
21682 fi
21683 rm -f core conftest.err conftest.$ac_objext \
21684 conftest$ac_exeext conftest.$ac_ext
21685 LIBS=$ac_check_lib_save_LIBS
21686 fi
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtold" >&5
21688 $as_echo "$ac_cv_lib_c_strtold" >&6; }
21689 if test "x$ac_cv_lib_c_strtold" = xyes; then :
21690
21691 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
21692
21693 else
21694
21695 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
21696
21697 fi
21698
21699 else
21700 if test "x$ac_cv_lib_c_strtold" = xyes; then
21701
21702 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
21703
21704 elif test "x$ac_cv_func_strtold" = xyes; then
21705
21706 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
21707
21708 else
21709
21710 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
21711
21712 fi
21713 fi
21714
21715
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for times" >&5
21717 $as_echo_n "checking m2 front end checking c library for times... " >&6; }
21718 if test x$gcc_no_link != xyes; then
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times in -lc" >&5
21720 $as_echo_n "checking for times in -lc... " >&6; }
21721 if ${ac_cv_lib_c_times+:} false; then :
21722 $as_echo_n "(cached) " >&6
21723 else
21724 ac_check_lib_save_LIBS=$LIBS
21725 LIBS="-lc $LIBS"
21726 if test x$gcc_no_link = xyes; then
21727 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21728 fi
21729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21730 /* end confdefs.h. */
21731
21732 /* Override any GCC internal prototype to avoid an error.
21733 Use char because int might match the return type of a GCC
21734 builtin and then its argument prototype would still apply. */
21735 #ifdef __cplusplus
21736 extern "C"
21737 #endif
21738 char times ();
21739 int
21740 main ()
21741 {
21742 return times ();
21743 ;
21744 return 0;
21745 }
21746 _ACEOF
21747 if ac_fn_c_try_link "$LINENO"; then :
21748 ac_cv_lib_c_times=yes
21749 else
21750 ac_cv_lib_c_times=no
21751 fi
21752 rm -f core conftest.err conftest.$ac_objext \
21753 conftest$ac_exeext conftest.$ac_ext
21754 LIBS=$ac_check_lib_save_LIBS
21755 fi
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_times" >&5
21757 $as_echo "$ac_cv_lib_c_times" >&6; }
21758 if test "x$ac_cv_lib_c_times" = xyes; then :
21759
21760 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
21761
21762 else
21763
21764 $as_echo "#undef HAVE_TIMES" >>confdefs.h
21765
21766 fi
21767
21768 else
21769 if test "x$ac_cv_lib_c_times" = xyes; then
21770
21771 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
21772
21773 elif test "x$ac_cv_func_times" = xyes; then
21774
21775 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
21776
21777 else
21778
21779 $as_echo "#undef HAVE_TIMES" >>confdefs.h
21780
21781 fi
21782 fi
21783
21784
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for timezone" >&5
21786 $as_echo_n "checking m2 front end checking c library for timezone... " >&6; }
21787 if test x$gcc_no_link != xyes; then
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone in -lc" >&5
21789 $as_echo_n "checking for timezone in -lc... " >&6; }
21790 if ${ac_cv_lib_c_timezone+:} false; then :
21791 $as_echo_n "(cached) " >&6
21792 else
21793 ac_check_lib_save_LIBS=$LIBS
21794 LIBS="-lc $LIBS"
21795 if test x$gcc_no_link = xyes; then
21796 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21797 fi
21798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21799 /* end confdefs.h. */
21800
21801 /* Override any GCC internal prototype to avoid an error.
21802 Use char because int might match the return type of a GCC
21803 builtin and then its argument prototype would still apply. */
21804 #ifdef __cplusplus
21805 extern "C"
21806 #endif
21807 char timezone ();
21808 int
21809 main ()
21810 {
21811 return timezone ();
21812 ;
21813 return 0;
21814 }
21815 _ACEOF
21816 if ac_fn_c_try_link "$LINENO"; then :
21817 ac_cv_lib_c_timezone=yes
21818 else
21819 ac_cv_lib_c_timezone=no
21820 fi
21821 rm -f core conftest.err conftest.$ac_objext \
21822 conftest$ac_exeext conftest.$ac_ext
21823 LIBS=$ac_check_lib_save_LIBS
21824 fi
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_timezone" >&5
21826 $as_echo "$ac_cv_lib_c_timezone" >&6; }
21827 if test "x$ac_cv_lib_c_timezone" = xyes; then :
21828
21829 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
21830
21831 else
21832
21833 $as_echo "#undef HAVE_TIMEZONE" >>confdefs.h
21834
21835 fi
21836
21837 else
21838 if test "x$ac_cv_lib_c_timezone" = xyes; then
21839
21840 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
21841
21842 elif test "x$ac_cv_func_timezone" = xyes; then
21843
21844 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
21845
21846 else
21847
21848 $as_echo "#undef HAVE_TIMEZONE" >>confdefs.h
21849
21850 fi
21851 fi
21852
21853
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for tzname" >&5
21855 $as_echo_n "checking m2 front end checking c library for tzname... " >&6; }
21856 if test x$gcc_no_link != xyes; then
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname in -lc" >&5
21858 $as_echo_n "checking for tzname in -lc... " >&6; }
21859 if ${ac_cv_lib_c_tzname+:} false; then :
21860 $as_echo_n "(cached) " >&6
21861 else
21862 ac_check_lib_save_LIBS=$LIBS
21863 LIBS="-lc $LIBS"
21864 if test x$gcc_no_link = xyes; then
21865 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21866 fi
21867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21868 /* end confdefs.h. */
21869
21870 /* Override any GCC internal prototype to avoid an error.
21871 Use char because int might match the return type of a GCC
21872 builtin and then its argument prototype would still apply. */
21873 #ifdef __cplusplus
21874 extern "C"
21875 #endif
21876 char tzname ();
21877 int
21878 main ()
21879 {
21880 return tzname ();
21881 ;
21882 return 0;
21883 }
21884 _ACEOF
21885 if ac_fn_c_try_link "$LINENO"; then :
21886 ac_cv_lib_c_tzname=yes
21887 else
21888 ac_cv_lib_c_tzname=no
21889 fi
21890 rm -f core conftest.err conftest.$ac_objext \
21891 conftest$ac_exeext conftest.$ac_ext
21892 LIBS=$ac_check_lib_save_LIBS
21893 fi
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_tzname" >&5
21895 $as_echo "$ac_cv_lib_c_tzname" >&6; }
21896 if test "x$ac_cv_lib_c_tzname" = xyes; then :
21897
21898 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21899
21900 else
21901
21902 $as_echo "#undef HAVE_TZNAME" >>confdefs.h
21903
21904 fi
21905
21906 else
21907 if test "x$ac_cv_lib_c_tzname" = xyes; then
21908
21909 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21910
21911 elif test "x$ac_cv_func_tzname" = xyes; then
21912
21913 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21914
21915 else
21916
21917 $as_echo "#undef HAVE_TZNAME" >>confdefs.h
21918
21919 fi
21920 fi
21921
21922
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for unlink" >&5
21924 $as_echo_n "checking m2 front end checking c library for unlink... " >&6; }
21925 if test x$gcc_no_link != xyes; then
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unlink in -lc" >&5
21927 $as_echo_n "checking for unlink in -lc... " >&6; }
21928 if ${ac_cv_lib_c_unlink+:} false; then :
21929 $as_echo_n "(cached) " >&6
21930 else
21931 ac_check_lib_save_LIBS=$LIBS
21932 LIBS="-lc $LIBS"
21933 if test x$gcc_no_link = xyes; then
21934 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21935 fi
21936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21937 /* end confdefs.h. */
21938
21939 /* Override any GCC internal prototype to avoid an error.
21940 Use char because int might match the return type of a GCC
21941 builtin and then its argument prototype would still apply. */
21942 #ifdef __cplusplus
21943 extern "C"
21944 #endif
21945 char unlink ();
21946 int
21947 main ()
21948 {
21949 return unlink ();
21950 ;
21951 return 0;
21952 }
21953 _ACEOF
21954 if ac_fn_c_try_link "$LINENO"; then :
21955 ac_cv_lib_c_unlink=yes
21956 else
21957 ac_cv_lib_c_unlink=no
21958 fi
21959 rm -f core conftest.err conftest.$ac_objext \
21960 conftest$ac_exeext conftest.$ac_ext
21961 LIBS=$ac_check_lib_save_LIBS
21962 fi
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_unlink" >&5
21964 $as_echo "$ac_cv_lib_c_unlink" >&6; }
21965 if test "x$ac_cv_lib_c_unlink" = xyes; then :
21966
21967 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
21968
21969 else
21970
21971 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
21972
21973 fi
21974
21975 else
21976 if test "x$ac_cv_lib_c_unlink" = xyes; then
21977
21978 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
21979
21980 elif test "x$ac_cv_func_unlink" = xyes; then
21981
21982 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
21983
21984 else
21985
21986 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
21987
21988 fi
21989 fi
21990
21991
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for wait" >&5
21993 $as_echo_n "checking m2 front end checking c library for wait... " >&6; }
21994 if test x$gcc_no_link != xyes; then
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait in -lc" >&5
21996 $as_echo_n "checking for wait in -lc... " >&6; }
21997 if ${ac_cv_lib_c_wait+:} false; then :
21998 $as_echo_n "(cached) " >&6
21999 else
22000 ac_check_lib_save_LIBS=$LIBS
22001 LIBS="-lc $LIBS"
22002 if test x$gcc_no_link = xyes; then
22003 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22004 fi
22005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22006 /* end confdefs.h. */
22007
22008 /* Override any GCC internal prototype to avoid an error.
22009 Use char because int might match the return type of a GCC
22010 builtin and then its argument prototype would still apply. */
22011 #ifdef __cplusplus
22012 extern "C"
22013 #endif
22014 char wait ();
22015 int
22016 main ()
22017 {
22018 return wait ();
22019 ;
22020 return 0;
22021 }
22022 _ACEOF
22023 if ac_fn_c_try_link "$LINENO"; then :
22024 ac_cv_lib_c_wait=yes
22025 else
22026 ac_cv_lib_c_wait=no
22027 fi
22028 rm -f core conftest.err conftest.$ac_objext \
22029 conftest$ac_exeext conftest.$ac_ext
22030 LIBS=$ac_check_lib_save_LIBS
22031 fi
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_wait" >&5
22033 $as_echo "$ac_cv_lib_c_wait" >&6; }
22034 if test "x$ac_cv_lib_c_wait" = xyes; then :
22035
22036 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
22037
22038 else
22039
22040 $as_echo "#undef HAVE_WAIT" >>confdefs.h
22041
22042 fi
22043
22044 else
22045 if test "x$ac_cv_lib_c_wait" = xyes; then
22046
22047 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
22048
22049 elif test "x$ac_cv_func_wait" = xyes; then
22050
22051 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
22052
22053 else
22054
22055 $as_echo "#undef HAVE_WAIT" >>confdefs.h
22056
22057 fi
22058 fi
22059
22060
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for write" >&5
22062 $as_echo_n "checking m2 front end checking c library for write... " >&6; }
22063 if test x$gcc_no_link != xyes; then
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for write in -lc" >&5
22065 $as_echo_n "checking for write in -lc... " >&6; }
22066 if ${ac_cv_lib_c_write+:} false; then :
22067 $as_echo_n "(cached) " >&6
22068 else
22069 ac_check_lib_save_LIBS=$LIBS
22070 LIBS="-lc $LIBS"
22071 if test x$gcc_no_link = xyes; then
22072 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22073 fi
22074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22075 /* end confdefs.h. */
22076
22077 /* Override any GCC internal prototype to avoid an error.
22078 Use char because int might match the return type of a GCC
22079 builtin and then its argument prototype would still apply. */
22080 #ifdef __cplusplus
22081 extern "C"
22082 #endif
22083 char write ();
22084 int
22085 main ()
22086 {
22087 return write ();
22088 ;
22089 return 0;
22090 }
22091 _ACEOF
22092 if ac_fn_c_try_link "$LINENO"; then :
22093 ac_cv_lib_c_write=yes
22094 else
22095 ac_cv_lib_c_write=no
22096 fi
22097 rm -f core conftest.err conftest.$ac_objext \
22098 conftest$ac_exeext conftest.$ac_ext
22099 LIBS=$ac_check_lib_save_LIBS
22100 fi
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_write" >&5
22102 $as_echo "$ac_cv_lib_c_write" >&6; }
22103 if test "x$ac_cv_lib_c_write" = xyes; then :
22104
22105 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
22106
22107 else
22108
22109 $as_echo "#undef HAVE_WRITE" >>confdefs.h
22110
22111 fi
22112
22113 else
22114 if test "x$ac_cv_lib_c_write" = xyes; then
22115
22116 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
22117
22118 elif test "x$ac_cv_func_write" = xyes; then
22119
22120 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
22121
22122 else
22123
22124 $as_echo "#undef HAVE_WRITE" >>confdefs.h
22125
22126 fi
22127 fi
22128
22129
22130
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for exp10" >&5
22132 $as_echo_n "checking m2 front end checking m library for exp10... " >&6; }
22133 if test x$gcc_no_link != xyes; then
22134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp10 in -lm" >&5
22135 $as_echo_n "checking for exp10 in -lm... " >&6; }
22136 if ${ac_cv_lib_m_exp10+:} false; then :
22137 $as_echo_n "(cached) " >&6
22138 else
22139 ac_check_lib_save_LIBS=$LIBS
22140 LIBS="-lm $LIBS"
22141 if test x$gcc_no_link = xyes; then
22142 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22143 fi
22144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22145 /* end confdefs.h. */
22146
22147 /* Override any GCC internal prototype to avoid an error.
22148 Use char because int might match the return type of a GCC
22149 builtin and then its argument prototype would still apply. */
22150 #ifdef __cplusplus
22151 extern "C"
22152 #endif
22153 char exp10 ();
22154 int
22155 main ()
22156 {
22157 return exp10 ();
22158 ;
22159 return 0;
22160 }
22161 _ACEOF
22162 if ac_fn_c_try_link "$LINENO"; then :
22163 ac_cv_lib_m_exp10=yes
22164 else
22165 ac_cv_lib_m_exp10=no
22166 fi
22167 rm -f core conftest.err conftest.$ac_objext \
22168 conftest$ac_exeext conftest.$ac_ext
22169 LIBS=$ac_check_lib_save_LIBS
22170 fi
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp10" >&5
22172 $as_echo "$ac_cv_lib_m_exp10" >&6; }
22173 if test "x$ac_cv_lib_m_exp10" = xyes; then :
22174
22175 $as_echo "#define HAVE_EXP10 1" >>confdefs.h
22176
22177 else
22178
22179 $as_echo "#undef HAVE_EXP10" >>confdefs.h
22180
22181 fi
22182
22183 else
22184 if test "x$ac_cv_lib_m_exp10" = xyes; then
22185
22186 $as_echo "#define HAVE_EXP10 1" >>confdefs.h
22187
22188 elif test "x$ac_cv_func_exp10" = xyes; then
22189
22190 $as_echo "#define HAVE_EXP10 1" >>confdefs.h
22191
22192 else
22193
22194 $as_echo "#undef HAVE_EXP10" >>confdefs.h
22195
22196 fi
22197 fi
22198
22199
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for exp10f" >&5
22201 $as_echo_n "checking m2 front end checking m library for exp10f... " >&6; }
22202 if test x$gcc_no_link != xyes; then
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp10f in -lm" >&5
22204 $as_echo_n "checking for exp10f in -lm... " >&6; }
22205 if ${ac_cv_lib_m_exp10f+:} false; then :
22206 $as_echo_n "(cached) " >&6
22207 else
22208 ac_check_lib_save_LIBS=$LIBS
22209 LIBS="-lm $LIBS"
22210 if test x$gcc_no_link = xyes; then
22211 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22212 fi
22213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22214 /* end confdefs.h. */
22215
22216 /* Override any GCC internal prototype to avoid an error.
22217 Use char because int might match the return type of a GCC
22218 builtin and then its argument prototype would still apply. */
22219 #ifdef __cplusplus
22220 extern "C"
22221 #endif
22222 char exp10f ();
22223 int
22224 main ()
22225 {
22226 return exp10f ();
22227 ;
22228 return 0;
22229 }
22230 _ACEOF
22231 if ac_fn_c_try_link "$LINENO"; then :
22232 ac_cv_lib_m_exp10f=yes
22233 else
22234 ac_cv_lib_m_exp10f=no
22235 fi
22236 rm -f core conftest.err conftest.$ac_objext \
22237 conftest$ac_exeext conftest.$ac_ext
22238 LIBS=$ac_check_lib_save_LIBS
22239 fi
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp10f" >&5
22241 $as_echo "$ac_cv_lib_m_exp10f" >&6; }
22242 if test "x$ac_cv_lib_m_exp10f" = xyes; then :
22243
22244 $as_echo "#define HAVE_EXP10F 1" >>confdefs.h
22245
22246 else
22247
22248 $as_echo "#undef HAVE_EXP10F" >>confdefs.h
22249
22250 fi
22251
22252 else
22253 if test "x$ac_cv_lib_m_exp10f" = xyes; then
22254
22255 $as_echo "#define HAVE_EXP10F 1" >>confdefs.h
22256
22257 elif test "x$ac_cv_func_exp10f" = xyes; then
22258
22259 $as_echo "#define HAVE_EXP10F 1" >>confdefs.h
22260
22261 else
22262
22263 $as_echo "#undef HAVE_EXP10F" >>confdefs.h
22264
22265 fi
22266 fi
22267
22268
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for exp10l" >&5
22270 $as_echo_n "checking m2 front end checking m library for exp10l... " >&6; }
22271 if test x$gcc_no_link != xyes; then
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp10l in -lm" >&5
22273 $as_echo_n "checking for exp10l in -lm... " >&6; }
22274 if ${ac_cv_lib_m_exp10l+:} false; then :
22275 $as_echo_n "(cached) " >&6
22276 else
22277 ac_check_lib_save_LIBS=$LIBS
22278 LIBS="-lm $LIBS"
22279 if test x$gcc_no_link = xyes; then
22280 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22281 fi
22282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22283 /* end confdefs.h. */
22284
22285 /* Override any GCC internal prototype to avoid an error.
22286 Use char because int might match the return type of a GCC
22287 builtin and then its argument prototype would still apply. */
22288 #ifdef __cplusplus
22289 extern "C"
22290 #endif
22291 char exp10l ();
22292 int
22293 main ()
22294 {
22295 return exp10l ();
22296 ;
22297 return 0;
22298 }
22299 _ACEOF
22300 if ac_fn_c_try_link "$LINENO"; then :
22301 ac_cv_lib_m_exp10l=yes
22302 else
22303 ac_cv_lib_m_exp10l=no
22304 fi
22305 rm -f core conftest.err conftest.$ac_objext \
22306 conftest$ac_exeext conftest.$ac_ext
22307 LIBS=$ac_check_lib_save_LIBS
22308 fi
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp10l" >&5
22310 $as_echo "$ac_cv_lib_m_exp10l" >&6; }
22311 if test "x$ac_cv_lib_m_exp10l" = xyes; then :
22312
22313 $as_echo "#define HAVE_EXP10L 1" >>confdefs.h
22314
22315 else
22316
22317 $as_echo "#undef HAVE_EXP10L" >>confdefs.h
22318
22319 fi
22320
22321 else
22322 if test "x$ac_cv_lib_m_exp10l" = xyes; then
22323
22324 $as_echo "#define HAVE_EXP10L 1" >>confdefs.h
22325
22326 elif test "x$ac_cv_func_exp10l" = xyes; then
22327
22328 $as_echo "#define HAVE_EXP10L 1" >>confdefs.h
22329
22330 else
22331
22332 $as_echo "#undef HAVE_EXP10L" >>confdefs.h
22333
22334 fi
22335 fi
22336
22337
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbit" >&5
22339 $as_echo_n "checking m2 front end checking m library for signbit... " >&6; }
22340 if test x$gcc_no_link != xyes; then
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit in -lm" >&5
22342 $as_echo_n "checking for signbit in -lm... " >&6; }
22343 if ${ac_cv_lib_m_signbit+:} false; then :
22344 $as_echo_n "(cached) " >&6
22345 else
22346 ac_check_lib_save_LIBS=$LIBS
22347 LIBS="-lm $LIBS"
22348 if test x$gcc_no_link = xyes; then
22349 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22350 fi
22351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22352 /* end confdefs.h. */
22353
22354 /* Override any GCC internal prototype to avoid an error.
22355 Use char because int might match the return type of a GCC
22356 builtin and then its argument prototype would still apply. */
22357 #ifdef __cplusplus
22358 extern "C"
22359 #endif
22360 char signbit ();
22361 int
22362 main ()
22363 {
22364 return signbit ();
22365 ;
22366 return 0;
22367 }
22368 _ACEOF
22369 if ac_fn_c_try_link "$LINENO"; then :
22370 ac_cv_lib_m_signbit=yes
22371 else
22372 ac_cv_lib_m_signbit=no
22373 fi
22374 rm -f core conftest.err conftest.$ac_objext \
22375 conftest$ac_exeext conftest.$ac_ext
22376 LIBS=$ac_check_lib_save_LIBS
22377 fi
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbit" >&5
22379 $as_echo "$ac_cv_lib_m_signbit" >&6; }
22380 if test "x$ac_cv_lib_m_signbit" = xyes; then :
22381
22382 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
22383
22384 else
22385
22386 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
22387
22388 fi
22389
22390 else
22391 if test "x$ac_cv_lib_m_signbit" = xyes; then
22392
22393 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
22394
22395 elif test "x$ac_cv_func_signbit" = xyes; then
22396
22397 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
22398
22399 else
22400
22401 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
22402
22403 fi
22404 fi
22405
22406
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitf" >&5
22408 $as_echo_n "checking m2 front end checking m library for signbitf... " >&6; }
22409 if test x$gcc_no_link != xyes; then
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitf in -lm" >&5
22411 $as_echo_n "checking for signbitf in -lm... " >&6; }
22412 if ${ac_cv_lib_m_signbitf+:} false; then :
22413 $as_echo_n "(cached) " >&6
22414 else
22415 ac_check_lib_save_LIBS=$LIBS
22416 LIBS="-lm $LIBS"
22417 if test x$gcc_no_link = xyes; then
22418 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22419 fi
22420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22421 /* end confdefs.h. */
22422
22423 /* Override any GCC internal prototype to avoid an error.
22424 Use char because int might match the return type of a GCC
22425 builtin and then its argument prototype would still apply. */
22426 #ifdef __cplusplus
22427 extern "C"
22428 #endif
22429 char signbitf ();
22430 int
22431 main ()
22432 {
22433 return signbitf ();
22434 ;
22435 return 0;
22436 }
22437 _ACEOF
22438 if ac_fn_c_try_link "$LINENO"; then :
22439 ac_cv_lib_m_signbitf=yes
22440 else
22441 ac_cv_lib_m_signbitf=no
22442 fi
22443 rm -f core conftest.err conftest.$ac_objext \
22444 conftest$ac_exeext conftest.$ac_ext
22445 LIBS=$ac_check_lib_save_LIBS
22446 fi
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitf" >&5
22448 $as_echo "$ac_cv_lib_m_signbitf" >&6; }
22449 if test "x$ac_cv_lib_m_signbitf" = xyes; then :
22450
22451 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
22452
22453 else
22454
22455 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
22456
22457 fi
22458
22459 else
22460 if test "x$ac_cv_lib_m_signbitf" = xyes; then
22461
22462 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
22463
22464 elif test "x$ac_cv_func_signbitf" = xyes; then
22465
22466 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
22467
22468 else
22469
22470 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
22471
22472 fi
22473 fi
22474
22475
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitl" >&5
22477 $as_echo_n "checking m2 front end checking m library for signbitl... " >&6; }
22478 if test x$gcc_no_link != xyes; then
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitl in -lm" >&5
22480 $as_echo_n "checking for signbitl in -lm... " >&6; }
22481 if ${ac_cv_lib_m_signbitl+:} false; then :
22482 $as_echo_n "(cached) " >&6
22483 else
22484 ac_check_lib_save_LIBS=$LIBS
22485 LIBS="-lm $LIBS"
22486 if test x$gcc_no_link = xyes; then
22487 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22488 fi
22489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22490 /* end confdefs.h. */
22491
22492 /* Override any GCC internal prototype to avoid an error.
22493 Use char because int might match the return type of a GCC
22494 builtin and then its argument prototype would still apply. */
22495 #ifdef __cplusplus
22496 extern "C"
22497 #endif
22498 char signbitl ();
22499 int
22500 main ()
22501 {
22502 return signbitl ();
22503 ;
22504 return 0;
22505 }
22506 _ACEOF
22507 if ac_fn_c_try_link "$LINENO"; then :
22508 ac_cv_lib_m_signbitl=yes
22509 else
22510 ac_cv_lib_m_signbitl=no
22511 fi
22512 rm -f core conftest.err conftest.$ac_objext \
22513 conftest$ac_exeext conftest.$ac_ext
22514 LIBS=$ac_check_lib_save_LIBS
22515 fi
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitl" >&5
22517 $as_echo "$ac_cv_lib_m_signbitl" >&6; }
22518 if test "x$ac_cv_lib_m_signbitl" = xyes; then :
22519
22520 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
22521
22522 else
22523
22524 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
22525
22526 fi
22527
22528 else
22529 if test "x$ac_cv_lib_m_signbitl" = xyes; then
22530
22531 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
22532
22533 elif test "x$ac_cv_func_signbitl" = xyes; then
22534
22535 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
22536
22537 else
22538
22539 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
22540
22541 fi
22542 fi
22543
22544
22545 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
22546 if test "x$ac_cv_have_decl_getenv" = xyes; then :
22547 ac_have_decl=1
22548 else
22549 ac_have_decl=0
22550 fi
22551
22552 cat >>confdefs.h <<_ACEOF
22553 #define HAVE_DECL_GETENV $ac_have_decl
22554 _ACEOF
22555
22556
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has finished checking target libc and libm contents." >&5
22558 $as_echo "$as_me: libgm2 has finished checking target libc and libm contents." >&6;}
22559
22560 # We test the host here and later on check the target.
22561
22562 # All known M2_HOST_OS values. This is the union of all host operating systems
22563 # supported by gm2.
22564
22565 M2_SUPPORTED_HOST_OS="aix freebsd hurd linux netbsd openbsd solaris windows darwin"
22566
22567 M2_HOST_OS=unknown
22568
22569 case ${host} in
22570 *-*-darwin*) M2_HOST_OS=darwin ;;
22571 *-*-freebsd*) M2_HOST_OS=freebsd ;;
22572 *-*-linux*) M2_HOST_OS=linux ;;
22573 *-*-netbsd*) M2_HOST_OS=netbsd ;;
22574 *-*-openbsd*) M2_HOST_OS=openbsd ;;
22575 *-*-solaris2*) M2_HOST_OS=solaris ;;
22576 *-*-aix*) M2_HOST_OS=aix ;;
22577 *-*-gnu*) M2_HOST_OS=hurd ;;
22578 esac
22579
22580 M2_TARGET_OS=unknown
22581
22582 case ${target} in
22583 *-*-darwin*) M2_TARGET_OS=darwin ;;
22584 *-*-freebsd*) M2_TARGET_OS=freebsd ;;
22585 *-*-linux*) M2_TARGET_OS=linux ;;
22586 *-*-netbsd*) M2_TARGET_OS=netbsd ;;
22587 *-*-openbsd*) M2_TARGET_OS=openbsd ;;
22588 *-*-solaris2*) M2_TARGET_OS=solaris ;;
22589 *-*-aix*) M2_TARGET_OS=aix ;;
22590 *-*-gnu*) M2_TARGET_OS=hurd ;;
22591 esac
22592
22593 # M2_HOST_OS=unknown
22594 if test x${M2_HOST_OS} = xunknown; then
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported host, will build a minimal m2 library" >&5
22596 $as_echo "$as_me: unsupported host, will build a minimal m2 library" >&6;}
22597 BUILD_PIMLIB=false
22598 BUILD_ISOLIB=false
22599 BUILD_CORLIB=false
22600 BUILD_LOGLIB=false
22601 else
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library will be built on ${M2_HOST_OS}" >&5
22603 $as_echo "$as_me: m2 library will be built on ${M2_HOST_OS}" >&6;}
22604 BUILD_PIMLIB=true
22605 BUILD_ISOLIB=true
22606 BUILD_CORLIB=true
22607 BUILD_LOGLIB=true
22608 fi
22609
22610 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
22611
22612
22613 # Propagate GM2_FOR_TARGET into Makefiles
22614 GM2_FOR_TARGET=${GM2_FOR_TARGET:-gcc}
22615
22616
22617 # Now we check the target as long as it is a supported host.
22618 # For some embedded targets we choose minimal runtime system which is
22619 # just enough to satisfy the linker targetting raw metal.
22620 if test x${M2_HOST_OS} != xunknown; then
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library building for target ${target}" >&5
22622 $as_echo "$as_me: m2 library building for target ${target}" >&6;}
22623 case "$target" in
22624
22625 avr25*-*-* | avr31*-*-* | avr35*-*-* | avr4*-*-* | avr5*-*-* | avr51*-*-* | avr6*-*-*)
22626 BUILD_PIMLIB=false
22627 BUILD_ISOLIB=false
22628 BUILD_CORLIB=false
22629 BUILD_LOGLIB=false
22630 ;;
22631
22632 avrxmega2*-*-* | avrxmega4*-*-* | avrxmega5*-*-* | avrxmega6*-*-* | avrxmega7*-*-*)
22633 BUILD_PIMLIB=false
22634 BUILD_ISOLIB=false
22635 BUILD_CORLIB=false
22636 BUILD_LOGLIB=false
22637 ;;
22638
22639 avr3-*-*)
22640 BUILD_PIMLIB=true
22641 BUILD_ISOLIB=true
22642 BUILD_CORLIB=true
22643 BUILD_LOGLIB=true
22644 ;;
22645 esp32-*-*)
22646 BUILD_PIMLIB=false
22647 BUILD_ISOLIB=false
22648 BUILD_CORLIB=false
22649 BUILD_LOGLIB=false
22650 ;;
22651
22652 esac
22653 fi
22654
22655 # GM2_MSG_RESULT issue a query message from the first parameter and a boolean result
22656 # in the second parameter is printed as a "yes" or "no".
22657
22658
22659
22660 if test x${M2_HOST_OS} = xunknown; then
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 front end will only build minimal Modula-2 runtime library on this host" >&5
22662 $as_echo "$as_me: m2 front end will only build minimal Modula-2 runtime library on this host" >&6;}
22663 else
22664
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build PIM libraries:" >&5
22666 $as_echo_n "checking m2 front end will build PIM libraries:... " >&6; }
22667 if test x${BUILD_PIMLIB} = xtrue; then
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22669 $as_echo "yes" >&6; }
22670 else
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22672 $as_echo "no" >&6; }
22673 fi
22674
22675
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build ISO libraries:" >&5
22677 $as_echo_n "checking m2 front end will build ISO libraries:... " >&6; }
22678 if test x${BUILD_ISOLIB} = xtrue; then
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22680 $as_echo "yes" >&6; }
22681 else
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22683 $as_echo "no" >&6; }
22684 fi
22685
22686
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build coroutine libraries:" >&5
22688 $as_echo_n "checking m2 front end will build coroutine libraries:... " >&6; }
22689 if test x${BUILD_CORLIB} = xtrue; then
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22691 $as_echo "yes" >&6; }
22692 else
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22694 $as_echo "no" >&6; }
22695 fi
22696
22697
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build Logitech compatability libraries:" >&5
22699 $as_echo_n "checking m2 front end will build Logitech compatability libraries:... " >&6; }
22700 if test x${BUILD_LOGLIB} = xtrue; then
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22702 $as_echo "yes" >&6; }
22703 else
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22705 $as_echo "no" >&6; }
22706 fi
22707
22708 fi
22709
22710 if test x$BUILD_PIMLIB = xtrue; then
22711 BUILD_PIMLIB_TRUE=
22712 BUILD_PIMLIB_FALSE='#'
22713 else
22714 BUILD_PIMLIB_TRUE='#'
22715 BUILD_PIMLIB_FALSE=
22716 fi
22717
22718 if test x$BUILD_ISOLIB = xtrue; then
22719 BUILD_ISOLIB_TRUE=
22720 BUILD_ISOLIB_FALSE='#'
22721 else
22722 BUILD_ISOLIB_TRUE='#'
22723 BUILD_ISOLIB_FALSE=
22724 fi
22725
22726 if test x$BUILD_CORLIB = xtrue; then
22727 BUILD_CORLIB_TRUE=
22728 BUILD_CORLIB_FALSE='#'
22729 else
22730 BUILD_CORLIB_TRUE='#'
22731 BUILD_CORLIB_FALSE=
22732 fi
22733
22734 if test x$BUILD_LOGLIB = xtrue; then
22735 BUILD_LOGLIB_TRUE=
22736 BUILD_LOGLIB_FALSE='#'
22737 else
22738 BUILD_LOGLIB_TRUE='#'
22739 BUILD_LOGLIB_FALSE=
22740 fi
22741
22742 if test x$M2_TARGET_OS = xdarwin; then
22743 TARGET_DARWIN_TRUE=
22744 TARGET_DARWIN_FALSE='#'
22745 else
22746 TARGET_DARWIN_TRUE='#'
22747 TARGET_DARWIN_FALSE=
22748 fi
22749
22750
22751 # Determine what GCC version number to use in filesystem paths.
22752
22753 get_gcc_base_ver="cat"
22754
22755 # Check whether --with-gcc-major-version-only was given.
22756 if test "${with_gcc_major_version_only+set}" = set; then :
22757 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
22758 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
22759 fi
22760
22761 fi
22762
22763
22764
22765
22766
22767 ac_config_files="$ac_config_files Makefile"
22768
22769
22770 ac_config_files="$ac_config_files libm2min/Makefile libm2pim/Makefile libm2iso/Makefile libm2cor/Makefile libm2log/Makefile"
22771
22772
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has been configured." >&5
22774 $as_echo "$as_me: libgm2 has been configured." >&6;}
22775
22776 cat >confcache <<\_ACEOF
22777 # This file is a shell script that caches the results of configure
22778 # tests run on this system so they can be shared between configure
22779 # scripts and configure runs, see configure's option --config-cache.
22780 # It is not useful on other systems. If it contains results you don't
22781 # want to keep, you may remove or edit it.
22782 #
22783 # config.status only pays attention to the cache file if you give it
22784 # the --recheck option to rerun configure.
22785 #
22786 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22787 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22788 # following values.
22789
22790 _ACEOF
22791
22792 # The following way of writing the cache mishandles newlines in values,
22793 # but we know of no workaround that is simple, portable, and efficient.
22794 # So, we kill variables containing newlines.
22795 # Ultrix sh set writes to stderr and can't be redirected directly,
22796 # and sets the high bit in the cache file unless we assign to the vars.
22797 (
22798 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22799 eval ac_val=\$$ac_var
22800 case $ac_val in #(
22801 *${as_nl}*)
22802 case $ac_var in #(
22803 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22804 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22805 esac
22806 case $ac_var in #(
22807 _ | IFS | as_nl) ;; #(
22808 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22809 *) { eval $ac_var=; unset $ac_var;} ;;
22810 esac ;;
22811 esac
22812 done
22813
22814 (set) 2>&1 |
22815 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22816 *${as_nl}ac_space=\ *)
22817 # `set' does not quote correctly, so add quotes: double-quote
22818 # substitution turns \\\\ into \\, and sed turns \\ into \.
22819 sed -n \
22820 "s/'/'\\\\''/g;
22821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22822 ;; #(
22823 *)
22824 # `set' quotes correctly as required by POSIX, so do not add quotes.
22825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22826 ;;
22827 esac |
22828 sort
22829 ) |
22830 sed '
22831 /^ac_cv_env_/b end
22832 t clear
22833 :clear
22834 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22835 t end
22836 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22837 :end' >>confcache
22838 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22839 if test -w "$cache_file"; then
22840 if test "x$cache_file" != "x/dev/null"; then
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22842 $as_echo "$as_me: updating cache $cache_file" >&6;}
22843 if test ! -f "$cache_file" || test -h "$cache_file"; then
22844 cat confcache >"$cache_file"
22845 else
22846 case $cache_file in #(
22847 */* | ?:*)
22848 mv -f confcache "$cache_file"$$ &&
22849 mv -f "$cache_file"$$ "$cache_file" ;; #(
22850 *)
22851 mv -f confcache "$cache_file" ;;
22852 esac
22853 fi
22854 fi
22855 else
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22857 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22858 fi
22859 fi
22860 rm -f confcache
22861
22862 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22863 # Let make expand exec_prefix.
22864 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22865
22866 DEFS=-DHAVE_CONFIG_H
22867
22868 ac_libobjs=
22869 ac_ltlibobjs=
22870 U=
22871 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22872 # 1. Remove the extension, and $U if already installed.
22873 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22874 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22875 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22876 # will be set to the directory where LIBOBJS objects are built.
22877 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22878 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22879 done
22880 LIBOBJS=$ac_libobjs
22881
22882 LTLIBOBJS=$ac_ltlibobjs
22883
22884
22885 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22886 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22888 fi
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22890 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22891 if test -n "$am_sleep_pid"; then
22892 # Hide warnings about reused PIDs.
22893 wait $am_sleep_pid 2>/dev/null
22894 fi
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22896 $as_echo "done" >&6; }
22897 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22898 as_fn_error $? "conditional \"AMDEP\" was never defined.
22899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22900 fi
22901 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22902 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22904 fi
22905 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22906 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22908 fi
22909 if test -n "$EXEEXT"; then
22910 am__EXEEXT_TRUE=
22911 am__EXEEXT_FALSE='#'
22912 else
22913 am__EXEEXT_TRUE='#'
22914 am__EXEEXT_FALSE=
22915 fi
22916
22917 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22918 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22920 fi
22921 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22922 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
22923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22924 fi
22925 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
22926 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
22927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22928 fi
22929 if test -z "${BUILD_PIMLIB_TRUE}" && test -z "${BUILD_PIMLIB_FALSE}"; then
22930 as_fn_error $? "conditional \"BUILD_PIMLIB\" was never defined.
22931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22932 fi
22933 if test -z "${BUILD_ISOLIB_TRUE}" && test -z "${BUILD_ISOLIB_FALSE}"; then
22934 as_fn_error $? "conditional \"BUILD_ISOLIB\" was never defined.
22935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22936 fi
22937 if test -z "${BUILD_CORLIB_TRUE}" && test -z "${BUILD_CORLIB_FALSE}"; then
22938 as_fn_error $? "conditional \"BUILD_CORLIB\" was never defined.
22939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22940 fi
22941 if test -z "${BUILD_LOGLIB_TRUE}" && test -z "${BUILD_LOGLIB_FALSE}"; then
22942 as_fn_error $? "conditional \"BUILD_LOGLIB\" was never defined.
22943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22944 fi
22945 if test -z "${TARGET_DARWIN_TRUE}" && test -z "${TARGET_DARWIN_FALSE}"; then
22946 as_fn_error $? "conditional \"TARGET_DARWIN\" was never defined.
22947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22948 fi
22949
22950 : "${CONFIG_STATUS=./config.status}"
22951 ac_write_fail=0
22952 ac_clean_files_save=$ac_clean_files
22953 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22955 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22956 as_write_fail=0
22957 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22958 #! $SHELL
22959 # Generated by $as_me.
22960 # Run this file to recreate the current configuration.
22961 # Compiler output produced by configure, useful for debugging
22962 # configure, is in config.log if it exists.
22963
22964 debug=false
22965 ac_cs_recheck=false
22966 ac_cs_silent=false
22967
22968 SHELL=\${CONFIG_SHELL-$SHELL}
22969 export SHELL
22970 _ASEOF
22971 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22972 ## -------------------- ##
22973 ## M4sh Initialization. ##
22974 ## -------------------- ##
22975
22976 # Be more Bourne compatible
22977 DUALCASE=1; export DUALCASE # for MKS sh
22978 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22979 emulate sh
22980 NULLCMD=:
22981 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22982 # is contrary to our usage. Disable this feature.
22983 alias -g '${1+"$@"}'='"$@"'
22984 setopt NO_GLOB_SUBST
22985 else
22986 case `(set -o) 2>/dev/null` in #(
22987 *posix*) :
22988 set -o posix ;; #(
22989 *) :
22990 ;;
22991 esac
22992 fi
22993
22994
22995 as_nl='
22996 '
22997 export as_nl
22998 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22999 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23000 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23001 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23002 # Prefer a ksh shell builtin over an external printf program on Solaris,
23003 # but without wasting forks for bash or zsh.
23004 if test -z "$BASH_VERSION$ZSH_VERSION" \
23005 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23006 as_echo='print -r --'
23007 as_echo_n='print -rn --'
23008 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23009 as_echo='printf %s\n'
23010 as_echo_n='printf %s'
23011 else
23012 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23013 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23014 as_echo_n='/usr/ucb/echo -n'
23015 else
23016 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23017 as_echo_n_body='eval
23018 arg=$1;
23019 case $arg in #(
23020 *"$as_nl"*)
23021 expr "X$arg" : "X\\(.*\\)$as_nl";
23022 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23023 esac;
23024 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23025 '
23026 export as_echo_n_body
23027 as_echo_n='sh -c $as_echo_n_body as_echo'
23028 fi
23029 export as_echo_body
23030 as_echo='sh -c $as_echo_body as_echo'
23031 fi
23032
23033 # The user is always right.
23034 if test "${PATH_SEPARATOR+set}" != set; then
23035 PATH_SEPARATOR=:
23036 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23037 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23038 PATH_SEPARATOR=';'
23039 }
23040 fi
23041
23042
23043 # IFS
23044 # We need space, tab and new line, in precisely that order. Quoting is
23045 # there to prevent editors from complaining about space-tab.
23046 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23047 # splitting by setting IFS to empty value.)
23048 IFS=" "" $as_nl"
23049
23050 # Find who we are. Look in the path if we contain no directory separator.
23051 as_myself=
23052 case $0 in #((
23053 *[\\/]* ) as_myself=$0 ;;
23054 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23055 for as_dir in $PATH
23056 do
23057 IFS=$as_save_IFS
23058 test -z "$as_dir" && as_dir=.
23059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23060 done
23061 IFS=$as_save_IFS
23062
23063 ;;
23064 esac
23065 # We did not find ourselves, most probably we were run as `sh COMMAND'
23066 # in which case we are not to be found in the path.
23067 if test "x$as_myself" = x; then
23068 as_myself=$0
23069 fi
23070 if test ! -f "$as_myself"; then
23071 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23072 exit 1
23073 fi
23074
23075 # Unset variables that we do not need and which cause bugs (e.g. in
23076 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23077 # suppresses any "Segmentation fault" message there. '((' could
23078 # trigger a bug in pdksh 5.2.14.
23079 for as_var in BASH_ENV ENV MAIL MAILPATH
23080 do eval test x\${$as_var+set} = xset \
23081 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23082 done
23083 PS1='$ '
23084 PS2='> '
23085 PS4='+ '
23086
23087 # NLS nuisances.
23088 LC_ALL=C
23089 export LC_ALL
23090 LANGUAGE=C
23091 export LANGUAGE
23092
23093 # CDPATH.
23094 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23095
23096
23097 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23098 # ----------------------------------------
23099 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23100 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23101 # script with STATUS, using 1 if that was 0.
23102 as_fn_error ()
23103 {
23104 as_status=$1; test $as_status -eq 0 && as_status=1
23105 if test "$4"; then
23106 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23107 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23108 fi
23109 $as_echo "$as_me: error: $2" >&2
23110 as_fn_exit $as_status
23111 } # as_fn_error
23112
23113
23114 # as_fn_set_status STATUS
23115 # -----------------------
23116 # Set $? to STATUS, without forking.
23117 as_fn_set_status ()
23118 {
23119 return $1
23120 } # as_fn_set_status
23121
23122 # as_fn_exit STATUS
23123 # -----------------
23124 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23125 as_fn_exit ()
23126 {
23127 set +e
23128 as_fn_set_status $1
23129 exit $1
23130 } # as_fn_exit
23131
23132 # as_fn_unset VAR
23133 # ---------------
23134 # Portably unset VAR.
23135 as_fn_unset ()
23136 {
23137 { eval $1=; unset $1;}
23138 }
23139 as_unset=as_fn_unset
23140 # as_fn_append VAR VALUE
23141 # ----------------------
23142 # Append the text in VALUE to the end of the definition contained in VAR. Take
23143 # advantage of any shell optimizations that allow amortized linear growth over
23144 # repeated appends, instead of the typical quadratic growth present in naive
23145 # implementations.
23146 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23147 eval 'as_fn_append ()
23148 {
23149 eval $1+=\$2
23150 }'
23151 else
23152 as_fn_append ()
23153 {
23154 eval $1=\$$1\$2
23155 }
23156 fi # as_fn_append
23157
23158 # as_fn_arith ARG...
23159 # ------------------
23160 # Perform arithmetic evaluation on the ARGs, and store the result in the
23161 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23162 # must be portable across $(()) and expr.
23163 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23164 eval 'as_fn_arith ()
23165 {
23166 as_val=$(( $* ))
23167 }'
23168 else
23169 as_fn_arith ()
23170 {
23171 as_val=`expr "$@" || test $? -eq 1`
23172 }
23173 fi # as_fn_arith
23174
23175
23176 if expr a : '\(a\)' >/dev/null 2>&1 &&
23177 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23178 as_expr=expr
23179 else
23180 as_expr=false
23181 fi
23182
23183 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23184 as_basename=basename
23185 else
23186 as_basename=false
23187 fi
23188
23189 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23190 as_dirname=dirname
23191 else
23192 as_dirname=false
23193 fi
23194
23195 as_me=`$as_basename -- "$0" ||
23196 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23197 X"$0" : 'X\(//\)$' \| \
23198 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23199 $as_echo X/"$0" |
23200 sed '/^.*\/\([^/][^/]*\)\/*$/{
23201 s//\1/
23202 q
23203 }
23204 /^X\/\(\/\/\)$/{
23205 s//\1/
23206 q
23207 }
23208 /^X\/\(\/\).*/{
23209 s//\1/
23210 q
23211 }
23212 s/.*/./; q'`
23213
23214 # Avoid depending upon Character Ranges.
23215 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23216 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23217 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23218 as_cr_digits='0123456789'
23219 as_cr_alnum=$as_cr_Letters$as_cr_digits
23220
23221 ECHO_C= ECHO_N= ECHO_T=
23222 case `echo -n x` in #(((((
23223 -n*)
23224 case `echo 'xy\c'` in
23225 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23226 xy) ECHO_C='\c';;
23227 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23228 ECHO_T=' ';;
23229 esac;;
23230 *)
23231 ECHO_N='-n';;
23232 esac
23233
23234 rm -f conf$$ conf$$.exe conf$$.file
23235 if test -d conf$$.dir; then
23236 rm -f conf$$.dir/conf$$.file
23237 else
23238 rm -f conf$$.dir
23239 mkdir conf$$.dir 2>/dev/null
23240 fi
23241 if (echo >conf$$.file) 2>/dev/null; then
23242 if ln -s conf$$.file conf$$ 2>/dev/null; then
23243 as_ln_s='ln -s'
23244 # ... but there are two gotchas:
23245 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23246 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23247 # In both cases, we have to default to `cp -pR'.
23248 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23249 as_ln_s='cp -pR'
23250 elif ln conf$$.file conf$$ 2>/dev/null; then
23251 as_ln_s=ln
23252 else
23253 as_ln_s='cp -pR'
23254 fi
23255 else
23256 as_ln_s='cp -pR'
23257 fi
23258 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23259 rmdir conf$$.dir 2>/dev/null
23260
23261
23262 # as_fn_mkdir_p
23263 # -------------
23264 # Create "$as_dir" as a directory, including parents if necessary.
23265 as_fn_mkdir_p ()
23266 {
23267
23268 case $as_dir in #(
23269 -*) as_dir=./$as_dir;;
23270 esac
23271 test -d "$as_dir" || eval $as_mkdir_p || {
23272 as_dirs=
23273 while :; do
23274 case $as_dir in #(
23275 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23276 *) as_qdir=$as_dir;;
23277 esac
23278 as_dirs="'$as_qdir' $as_dirs"
23279 as_dir=`$as_dirname -- "$as_dir" ||
23280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23281 X"$as_dir" : 'X\(//\)[^/]' \| \
23282 X"$as_dir" : 'X\(//\)$' \| \
23283 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23284 $as_echo X"$as_dir" |
23285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23286 s//\1/
23287 q
23288 }
23289 /^X\(\/\/\)[^/].*/{
23290 s//\1/
23291 q
23292 }
23293 /^X\(\/\/\)$/{
23294 s//\1/
23295 q
23296 }
23297 /^X\(\/\).*/{
23298 s//\1/
23299 q
23300 }
23301 s/.*/./; q'`
23302 test -d "$as_dir" && break
23303 done
23304 test -z "$as_dirs" || eval "mkdir $as_dirs"
23305 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23306
23307
23308 } # as_fn_mkdir_p
23309 if mkdir -p . 2>/dev/null; then
23310 as_mkdir_p='mkdir -p "$as_dir"'
23311 else
23312 test -d ./-p && rmdir ./-p
23313 as_mkdir_p=false
23314 fi
23315
23316
23317 # as_fn_executable_p FILE
23318 # -----------------------
23319 # Test if FILE is an executable regular file.
23320 as_fn_executable_p ()
23321 {
23322 test -f "$1" && test -x "$1"
23323 } # as_fn_executable_p
23324 as_test_x='test -x'
23325 as_executable_p=as_fn_executable_p
23326
23327 # Sed expression to map a string onto a valid CPP name.
23328 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23329
23330 # Sed expression to map a string onto a valid variable name.
23331 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23332
23333
23334 exec 6>&1
23335 ## ----------------------------------- ##
23336 ## Main body of $CONFIG_STATUS script. ##
23337 ## ----------------------------------- ##
23338 _ASEOF
23339 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23340
23341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23342 # Save the log message, to keep $0 and so on meaningful, and to
23343 # report actual input values of CONFIG_FILES etc. instead of their
23344 # values after options handling.
23345 ac_log="
23346 This file was extended by package-unused $as_me version-unused, which was
23347 generated by GNU Autoconf 2.69. Invocation command line was
23348
23349 CONFIG_FILES = $CONFIG_FILES
23350 CONFIG_HEADERS = $CONFIG_HEADERS
23351 CONFIG_LINKS = $CONFIG_LINKS
23352 CONFIG_COMMANDS = $CONFIG_COMMANDS
23353 $ $0 $@
23354
23355 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23356 "
23357
23358 _ACEOF
23359
23360 case $ac_config_files in *"
23361 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23362 esac
23363
23364 case $ac_config_headers in *"
23365 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23366 esac
23367
23368
23369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23370 # Files that config.status was made for.
23371 config_files="$ac_config_files"
23372 config_headers="$ac_config_headers"
23373 config_commands="$ac_config_commands"
23374
23375 _ACEOF
23376
23377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23378 ac_cs_usage="\
23379 \`$as_me' instantiates files and other configuration actions
23380 from templates according to the current configuration. Unless the files
23381 and actions are specified as TAGs, all are instantiated by default.
23382
23383 Usage: $0 [OPTION]... [TAG]...
23384
23385 -h, --help print this help, then exit
23386 -V, --version print version number and configuration settings, then exit
23387 --config print configuration, then exit
23388 -q, --quiet, --silent
23389 do not print progress messages
23390 -d, --debug don't remove temporary files
23391 --recheck update $as_me by reconfiguring in the same conditions
23392 --file=FILE[:TEMPLATE]
23393 instantiate the configuration file FILE
23394 --header=FILE[:TEMPLATE]
23395 instantiate the configuration header FILE
23396
23397 Configuration files:
23398 $config_files
23399
23400 Configuration headers:
23401 $config_headers
23402
23403 Configuration commands:
23404 $config_commands
23405
23406 Report bugs to the package provider."
23407
23408 _ACEOF
23409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23410 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23411 ac_cs_version="\\
23412 package-unused config.status version-unused
23413 configured by $0, generated by GNU Autoconf 2.69,
23414 with options \\"\$ac_cs_config\\"
23415
23416 Copyright (C) 2012 Free Software Foundation, Inc.
23417 This config.status script is free software; the Free Software Foundation
23418 gives unlimited permission to copy, distribute and modify it."
23419
23420 ac_pwd='$ac_pwd'
23421 srcdir='$srcdir'
23422 INSTALL='$INSTALL'
23423 MKDIR_P='$MKDIR_P'
23424 AWK='$AWK'
23425 test -n "\$AWK" || AWK=awk
23426 _ACEOF
23427
23428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23429 # The default lists apply if the user does not specify any file.
23430 ac_need_defaults=:
23431 while test $# != 0
23432 do
23433 case $1 in
23434 --*=?*)
23435 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23436 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23437 ac_shift=:
23438 ;;
23439 --*=)
23440 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23441 ac_optarg=
23442 ac_shift=:
23443 ;;
23444 *)
23445 ac_option=$1
23446 ac_optarg=$2
23447 ac_shift=shift
23448 ;;
23449 esac
23450
23451 case $ac_option in
23452 # Handling of the options.
23453 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23454 ac_cs_recheck=: ;;
23455 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23456 $as_echo "$ac_cs_version"; exit ;;
23457 --config | --confi | --conf | --con | --co | --c )
23458 $as_echo "$ac_cs_config"; exit ;;
23459 --debug | --debu | --deb | --de | --d | -d )
23460 debug=: ;;
23461 --file | --fil | --fi | --f )
23462 $ac_shift
23463 case $ac_optarg in
23464 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23465 '') as_fn_error $? "missing file argument" ;;
23466 esac
23467 as_fn_append CONFIG_FILES " '$ac_optarg'"
23468 ac_need_defaults=false;;
23469 --header | --heade | --head | --hea )
23470 $ac_shift
23471 case $ac_optarg in
23472 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23473 esac
23474 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23475 ac_need_defaults=false;;
23476 --he | --h)
23477 # Conflict between --help and --header
23478 as_fn_error $? "ambiguous option: \`$1'
23479 Try \`$0 --help' for more information.";;
23480 --help | --hel | -h )
23481 $as_echo "$ac_cs_usage"; exit ;;
23482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23483 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23484 ac_cs_silent=: ;;
23485
23486 # This is an error.
23487 -*) as_fn_error $? "unrecognized option: \`$1'
23488 Try \`$0 --help' for more information." ;;
23489
23490 *) as_fn_append ac_config_targets " $1"
23491 ac_need_defaults=false ;;
23492
23493 esac
23494 shift
23495 done
23496
23497 ac_configure_extra_args=
23498
23499 if $ac_cs_silent; then
23500 exec 6>/dev/null
23501 ac_configure_extra_args="$ac_configure_extra_args --silent"
23502 fi
23503
23504 _ACEOF
23505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23506 if \$ac_cs_recheck; then
23507 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23508 shift
23509 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23510 CONFIG_SHELL='$SHELL'
23511 export CONFIG_SHELL
23512 exec "\$@"
23513 fi
23514
23515 _ACEOF
23516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23517 exec 5>>config.log
23518 {
23519 echo
23520 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23521 ## Running $as_me. ##
23522 _ASBOX
23523 $as_echo "$ac_log"
23524 } >&5
23525
23526 _ACEOF
23527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23528 #
23529 # INIT-COMMANDS
23530 #
23531
23532 srcdir="$srcdir"
23533 host="$host"
23534 target="$target"
23535 with_multisubdir="$with_multisubdir"
23536 with_multisrctop="$with_multisrctop"
23537 with_target_subdir="$with_target_subdir"
23538 ac_configure_args="${multilib_arg} ${ac_configure_args}"
23539 multi_basedir="$multi_basedir"
23540 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
23541 CC="$CC"
23542 CXX="$CXX"
23543 GFORTRAN="$GFORTRAN"
23544 GDC="$GDC"
23545 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23546
23547
23548 # The HP-UX ksh and POSIX shell print the target directory to stdout
23549 # if CDPATH is set.
23550 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23551
23552 sed_quote_subst='$sed_quote_subst'
23553 double_quote_subst='$double_quote_subst'
23554 delay_variable_subst='$delay_variable_subst'
23555 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23556 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23557 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23558 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23559 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23560 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23561 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23562 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23563 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23564 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23565 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23566 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23567 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23568 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23569 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23570 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23571 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23572 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23573 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23574 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23575 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23576 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23577 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23578 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23579 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23580 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23581 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23582 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23583 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23584 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23585 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23586 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23587 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23588 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23589 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23590 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23591 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23592 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23593 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23594 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23595 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23596 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23597 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23598 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23599 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23600 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23601 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23602 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23603 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"`'
23604 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23605 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23606 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23607 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23608 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23609 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23610 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23611 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23612 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23613 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23614 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23615 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23616 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23617 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23618 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23619 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23620 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23621 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23622 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23623 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23624 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23625 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23626 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23627 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23628 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23629 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23630 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23631 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23632 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23633 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23634 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23635 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
23636 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23637 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23638 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23639 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23640 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23641 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23642 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23643 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23644 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
23645 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23646 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23647 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23648 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23649 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23650 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23651 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23652 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23653 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23654 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23655 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23656 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23657 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23658 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23659 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23660 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23661 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23662 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23663 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23664 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23665 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23666 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23667 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23668 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
23669 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23670 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23671 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23672 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23673 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23674 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23675 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23676 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23677 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23678 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23679 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23680 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23681 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23682 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23683 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23684 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23685 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23686 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23687 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23688 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23689 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23690 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23691 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23692 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23693 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23694 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23695 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23696 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23697 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23698 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23699 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23700 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23701 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23702 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23703 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23704 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23705 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23706 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23707 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
23708 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23709 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23710 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23711 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23712 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23713 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23714 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23715 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23716 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
23717 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23718 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23719 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23720 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23721 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23722 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23723 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23724 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23725 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23726 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23727 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23728 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23729 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23730
23731 LTCC='$LTCC'
23732 LTCFLAGS='$LTCFLAGS'
23733 compiler='$compiler_DEFAULT'
23734
23735 # A function that is used when there is no print builtin or printf.
23736 func_fallback_echo ()
23737 {
23738 eval 'cat <<_LTECHO_EOF
23739 \$1
23740 _LTECHO_EOF'
23741 }
23742
23743 # Quote evaled strings.
23744 for var in SHELL \
23745 ECHO \
23746 SED \
23747 GREP \
23748 EGREP \
23749 FGREP \
23750 LD \
23751 NM \
23752 LN_S \
23753 lt_SP2NL \
23754 lt_NL2SP \
23755 reload_flag \
23756 OBJDUMP \
23757 deplibs_check_method \
23758 file_magic_cmd \
23759 AR \
23760 AR_FLAGS \
23761 STRIP \
23762 RANLIB \
23763 CC \
23764 CFLAGS \
23765 compiler \
23766 lt_cv_sys_global_symbol_pipe \
23767 lt_cv_sys_global_symbol_to_cdecl \
23768 lt_cv_sys_global_symbol_to_c_name_address \
23769 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23770 lt_prog_compiler_no_builtin_flag \
23771 lt_prog_compiler_wl \
23772 lt_prog_compiler_pic \
23773 lt_prog_compiler_static \
23774 lt_cv_prog_compiler_c_o \
23775 need_locks \
23776 DSYMUTIL \
23777 NMEDIT \
23778 LIPO \
23779 OTOOL \
23780 OTOOL64 \
23781 shrext_cmds \
23782 export_dynamic_flag_spec \
23783 whole_archive_flag_spec \
23784 compiler_needs_object \
23785 with_gnu_ld \
23786 allow_undefined_flag \
23787 no_undefined_flag \
23788 hardcode_libdir_flag_spec \
23789 hardcode_libdir_flag_spec_ld \
23790 hardcode_libdir_separator \
23791 fix_srcfile_path \
23792 exclude_expsyms \
23793 include_expsyms \
23794 file_list_spec \
23795 variables_saved_for_relink \
23796 libname_spec \
23797 library_names_spec \
23798 soname_spec \
23799 install_override_mode \
23800 finish_eval \
23801 old_striplib \
23802 striplib \
23803 compiler_lib_search_dirs \
23804 predep_objects \
23805 postdep_objects \
23806 predeps \
23807 postdeps \
23808 compiler_lib_search_path \
23809 LD_CXX \
23810 reload_flag_CXX \
23811 compiler_CXX \
23812 lt_prog_compiler_no_builtin_flag_CXX \
23813 lt_prog_compiler_wl_CXX \
23814 lt_prog_compiler_pic_CXX \
23815 lt_prog_compiler_static_CXX \
23816 lt_cv_prog_compiler_c_o_CXX \
23817 export_dynamic_flag_spec_CXX \
23818 whole_archive_flag_spec_CXX \
23819 compiler_needs_object_CXX \
23820 with_gnu_ld_CXX \
23821 allow_undefined_flag_CXX \
23822 no_undefined_flag_CXX \
23823 hardcode_libdir_flag_spec_CXX \
23824 hardcode_libdir_flag_spec_ld_CXX \
23825 hardcode_libdir_separator_CXX \
23826 fix_srcfile_path_CXX \
23827 exclude_expsyms_CXX \
23828 include_expsyms_CXX \
23829 file_list_spec_CXX \
23830 compiler_lib_search_dirs_CXX \
23831 predep_objects_CXX \
23832 postdep_objects_CXX \
23833 predeps_CXX \
23834 postdeps_CXX \
23835 compiler_lib_search_path_CXX; do
23836 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23837 *[\\\\\\\`\\"\\\$]*)
23838 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23839 ;;
23840 *)
23841 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23842 ;;
23843 esac
23844 done
23845
23846 # Double-quote double-evaled strings.
23847 for var in reload_cmds \
23848 old_postinstall_cmds \
23849 old_postuninstall_cmds \
23850 old_archive_cmds \
23851 extract_expsyms_cmds \
23852 old_archive_from_new_cmds \
23853 old_archive_from_expsyms_cmds \
23854 archive_cmds \
23855 archive_expsym_cmds \
23856 module_cmds \
23857 module_expsym_cmds \
23858 export_symbols_cmds \
23859 prelink_cmds \
23860 postinstall_cmds \
23861 postuninstall_cmds \
23862 finish_cmds \
23863 sys_lib_search_path_spec \
23864 sys_lib_dlsearch_path_spec \
23865 reload_cmds_CXX \
23866 old_archive_cmds_CXX \
23867 old_archive_from_new_cmds_CXX \
23868 old_archive_from_expsyms_cmds_CXX \
23869 archive_cmds_CXX \
23870 archive_expsym_cmds_CXX \
23871 module_cmds_CXX \
23872 module_expsym_cmds_CXX \
23873 export_symbols_cmds_CXX \
23874 prelink_cmds_CXX; do
23875 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23876 *[\\\\\\\`\\"\\\$]*)
23877 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23878 ;;
23879 *)
23880 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23881 ;;
23882 esac
23883 done
23884
23885 ac_aux_dir='$ac_aux_dir'
23886 xsi_shell='$xsi_shell'
23887 lt_shell_append='$lt_shell_append'
23888
23889 # See if we are running on zsh, and set the options which allow our
23890 # commands through without removal of \ escapes INIT.
23891 if test -n "\${ZSH_VERSION+set}" ; then
23892 setopt NO_GLOB_SUBST
23893 fi
23894
23895
23896 PACKAGE='$PACKAGE'
23897 VERSION='$VERSION'
23898 TIMESTAMP='$TIMESTAMP'
23899 RM='$RM'
23900 ofile='$ofile'
23901
23902
23903
23904
23905
23906
23907 _ACEOF
23908
23909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23910
23911 # Handling of arguments.
23912 for ac_config_target in $ac_config_targets
23913 do
23914 case $ac_config_target in
23915 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23916 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23917 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23918 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23919 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23920 "libm2min/Makefile") CONFIG_FILES="$CONFIG_FILES libm2min/Makefile" ;;
23921 "libm2pim/Makefile") CONFIG_FILES="$CONFIG_FILES libm2pim/Makefile" ;;
23922 "libm2iso/Makefile") CONFIG_FILES="$CONFIG_FILES libm2iso/Makefile" ;;
23923 "libm2cor/Makefile") CONFIG_FILES="$CONFIG_FILES libm2cor/Makefile" ;;
23924 "libm2log/Makefile") CONFIG_FILES="$CONFIG_FILES libm2log/Makefile" ;;
23925
23926 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23927 esac
23928 done
23929
23930
23931 # If the user did not use the arguments to specify the items to instantiate,
23932 # then the envvar interface is used. Set only those that are not.
23933 # We use the long form for the default assignment because of an extremely
23934 # bizarre bug on SunOS 4.1.3.
23935 if $ac_need_defaults; then
23936 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23937 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23938 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23939 fi
23940
23941 # Have a temporary directory for convenience. Make it in the build tree
23942 # simply because there is no reason against having it here, and in addition,
23943 # creating and moving files from /tmp can sometimes cause problems.
23944 # Hook for its removal unless debugging.
23945 # Note that there is a small window in which the directory will not be cleaned:
23946 # after its creation but before its name has been assigned to `$tmp'.
23947 $debug ||
23948 {
23949 tmp= ac_tmp=
23950 trap 'exit_status=$?
23951 : "${ac_tmp:=$tmp}"
23952 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23953 ' 0
23954 trap 'as_fn_exit 1' 1 2 13 15
23955 }
23956 # Create a (secure) tmp directory for tmp files.
23957
23958 {
23959 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23960 test -d "$tmp"
23961 } ||
23962 {
23963 tmp=./conf$$-$RANDOM
23964 (umask 077 && mkdir "$tmp")
23965 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23966 ac_tmp=$tmp
23967
23968 # Set up the scripts for CONFIG_FILES section.
23969 # No need to generate them if there are no CONFIG_FILES.
23970 # This happens for instance with `./config.status config.h'.
23971 if test -n "$CONFIG_FILES"; then
23972
23973
23974 ac_cr=`echo X | tr X '\015'`
23975 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23976 # But we know of no other shell where ac_cr would be empty at this
23977 # point, so we can use a bashism as a fallback.
23978 if test "x$ac_cr" = x; then
23979 eval ac_cr=\$\'\\r\'
23980 fi
23981 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23982 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23983 ac_cs_awk_cr='\\r'
23984 else
23985 ac_cs_awk_cr=$ac_cr
23986 fi
23987
23988 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23989 _ACEOF
23990
23991
23992 {
23993 echo "cat >conf$$subs.awk <<_ACEOF" &&
23994 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23995 echo "_ACEOF"
23996 } >conf$$subs.sh ||
23997 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23998 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23999 ac_delim='%!_!# '
24000 for ac_last_try in false false false false false :; do
24001 . ./conf$$subs.sh ||
24002 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24003
24004 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24005 if test $ac_delim_n = $ac_delim_num; then
24006 break
24007 elif $ac_last_try; then
24008 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24009 else
24010 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24011 fi
24012 done
24013 rm -f conf$$subs.sh
24014
24015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24016 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24017 _ACEOF
24018 sed -n '
24019 h
24020 s/^/S["/; s/!.*/"]=/
24021 p
24022 g
24023 s/^[^!]*!//
24024 :repl
24025 t repl
24026 s/'"$ac_delim"'$//
24027 t delim
24028 :nl
24029 h
24030 s/\(.\{148\}\)..*/\1/
24031 t more1
24032 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24033 p
24034 n
24035 b repl
24036 :more1
24037 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24038 p
24039 g
24040 s/.\{148\}//
24041 t nl
24042 :delim
24043 h
24044 s/\(.\{148\}\)..*/\1/
24045 t more2
24046 s/["\\]/\\&/g; s/^/"/; s/$/"/
24047 p
24048 b
24049 :more2
24050 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24051 p
24052 g
24053 s/.\{148\}//
24054 t delim
24055 ' <conf$$subs.awk | sed '
24056 /^[^""]/{
24057 N
24058 s/\n//
24059 }
24060 ' >>$CONFIG_STATUS || ac_write_fail=1
24061 rm -f conf$$subs.awk
24062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24063 _ACAWK
24064 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24065 for (key in S) S_is_set[key] = 1
24066 FS = ""
24067
24068 }
24069 {
24070 line = $ 0
24071 nfields = split(line, field, "@")
24072 substed = 0
24073 len = length(field[1])
24074 for (i = 2; i < nfields; i++) {
24075 key = field[i]
24076 keylen = length(key)
24077 if (S_is_set[key]) {
24078 value = S[key]
24079 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24080 len += length(value) + length(field[++i])
24081 substed = 1
24082 } else
24083 len += 1 + keylen
24084 }
24085
24086 print line
24087 }
24088
24089 _ACAWK
24090 _ACEOF
24091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24092 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24093 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24094 else
24095 cat
24096 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24097 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24098 _ACEOF
24099
24100 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24101 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24102 # trailing colons and then remove the whole line if VPATH becomes empty
24103 # (actually we leave an empty line to preserve line numbers).
24104 if test "x$srcdir" = x.; then
24105 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24106 h
24107 s///
24108 s/^/:/
24109 s/[ ]*$/:/
24110 s/:\$(srcdir):/:/g
24111 s/:\${srcdir}:/:/g
24112 s/:@srcdir@:/:/g
24113 s/^:*//
24114 s/:*$//
24115 x
24116 s/\(=[ ]*\).*/\1/
24117 G
24118 s/\n//
24119 s/^[^=]*=[ ]*$//
24120 }'
24121 fi
24122
24123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24124 fi # test -n "$CONFIG_FILES"
24125
24126 # Set up the scripts for CONFIG_HEADERS section.
24127 # No need to generate them if there are no CONFIG_HEADERS.
24128 # This happens for instance with `./config.status Makefile'.
24129 if test -n "$CONFIG_HEADERS"; then
24130 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24131 BEGIN {
24132 _ACEOF
24133
24134 # Transform confdefs.h into an awk script `defines.awk', embedded as
24135 # here-document in config.status, that substitutes the proper values into
24136 # config.h.in to produce config.h.
24137
24138 # Create a delimiter string that does not exist in confdefs.h, to ease
24139 # handling of long lines.
24140 ac_delim='%!_!# '
24141 for ac_last_try in false false :; do
24142 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24143 if test -z "$ac_tt"; then
24144 break
24145 elif $ac_last_try; then
24146 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24147 else
24148 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24149 fi
24150 done
24151
24152 # For the awk script, D is an array of macro values keyed by name,
24153 # likewise P contains macro parameters if any. Preserve backslash
24154 # newline sequences.
24155
24156 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24157 sed -n '
24158 s/.\{148\}/&'"$ac_delim"'/g
24159 t rset
24160 :rset
24161 s/^[ ]*#[ ]*define[ ][ ]*/ /
24162 t def
24163 d
24164 :def
24165 s/\\$//
24166 t bsnl
24167 s/["\\]/\\&/g
24168 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24169 D["\1"]=" \3"/p
24170 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24171 d
24172 :bsnl
24173 s/["\\]/\\&/g
24174 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24175 D["\1"]=" \3\\\\\\n"\\/p
24176 t cont
24177 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24178 t cont
24179 d
24180 :cont
24181 n
24182 s/.\{148\}/&'"$ac_delim"'/g
24183 t clear
24184 :clear
24185 s/\\$//
24186 t bsnlc
24187 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24188 d
24189 :bsnlc
24190 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24191 b cont
24192 ' <confdefs.h | sed '
24193 s/'"$ac_delim"'/"\\\
24194 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24195
24196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24197 for (key in D) D_is_set[key] = 1
24198 FS = ""
24199 }
24200 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24201 line = \$ 0
24202 split(line, arg, " ")
24203 if (arg[1] == "#") {
24204 defundef = arg[2]
24205 mac1 = arg[3]
24206 } else {
24207 defundef = substr(arg[1], 2)
24208 mac1 = arg[2]
24209 }
24210 split(mac1, mac2, "(") #)
24211 macro = mac2[1]
24212 prefix = substr(line, 1, index(line, defundef) - 1)
24213 if (D_is_set[macro]) {
24214 # Preserve the white space surrounding the "#".
24215 print prefix "define", macro P[macro] D[macro]
24216 next
24217 } else {
24218 # Replace #undef with comments. This is necessary, for example,
24219 # in the case of _POSIX_SOURCE, which is predefined and required
24220 # on some systems where configure will not decide to define it.
24221 if (defundef == "undef") {
24222 print "/*", prefix defundef, macro, "*/"
24223 next
24224 }
24225 }
24226 }
24227 { print }
24228 _ACAWK
24229 _ACEOF
24230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24231 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24232 fi # test -n "$CONFIG_HEADERS"
24233
24234
24235 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24236 shift
24237 for ac_tag
24238 do
24239 case $ac_tag in
24240 :[FHLC]) ac_mode=$ac_tag; continue;;
24241 esac
24242 case $ac_mode$ac_tag in
24243 :[FHL]*:*);;
24244 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24245 :[FH]-) ac_tag=-:-;;
24246 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24247 esac
24248 ac_save_IFS=$IFS
24249 IFS=:
24250 set x $ac_tag
24251 IFS=$ac_save_IFS
24252 shift
24253 ac_file=$1
24254 shift
24255
24256 case $ac_mode in
24257 :L) ac_source=$1;;
24258 :[FH])
24259 ac_file_inputs=
24260 for ac_f
24261 do
24262 case $ac_f in
24263 -) ac_f="$ac_tmp/stdin";;
24264 *) # Look for the file first in the build tree, then in the source tree
24265 # (if the path is not absolute). The absolute path cannot be DOS-style,
24266 # because $ac_f cannot contain `:'.
24267 test -f "$ac_f" ||
24268 case $ac_f in
24269 [\\/$]*) false;;
24270 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24271 esac ||
24272 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24273 esac
24274 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24275 as_fn_append ac_file_inputs " '$ac_f'"
24276 done
24277
24278 # Let's still pretend it is `configure' which instantiates (i.e., don't
24279 # use $as_me), people would be surprised to read:
24280 # /* config.h. Generated by config.status. */
24281 configure_input='Generated from '`
24282 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24283 `' by configure.'
24284 if test x"$ac_file" != x-; then
24285 configure_input="$ac_file. $configure_input"
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24287 $as_echo "$as_me: creating $ac_file" >&6;}
24288 fi
24289 # Neutralize special characters interpreted by sed in replacement strings.
24290 case $configure_input in #(
24291 *\&* | *\|* | *\\* )
24292 ac_sed_conf_input=`$as_echo "$configure_input" |
24293 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24294 *) ac_sed_conf_input=$configure_input;;
24295 esac
24296
24297 case $ac_tag in
24298 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24300 esac
24301 ;;
24302 esac
24303
24304 ac_dir=`$as_dirname -- "$ac_file" ||
24305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24306 X"$ac_file" : 'X\(//\)[^/]' \| \
24307 X"$ac_file" : 'X\(//\)$' \| \
24308 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24309 $as_echo X"$ac_file" |
24310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24311 s//\1/
24312 q
24313 }
24314 /^X\(\/\/\)[^/].*/{
24315 s//\1/
24316 q
24317 }
24318 /^X\(\/\/\)$/{
24319 s//\1/
24320 q
24321 }
24322 /^X\(\/\).*/{
24323 s//\1/
24324 q
24325 }
24326 s/.*/./; q'`
24327 as_dir="$ac_dir"; as_fn_mkdir_p
24328 ac_builddir=.
24329
24330 case "$ac_dir" in
24331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24332 *)
24333 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24334 # A ".." for each directory in $ac_dir_suffix.
24335 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24336 case $ac_top_builddir_sub in
24337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24339 esac ;;
24340 esac
24341 ac_abs_top_builddir=$ac_pwd
24342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24343 # for backward compatibility:
24344 ac_top_builddir=$ac_top_build_prefix
24345
24346 case $srcdir in
24347 .) # We are building in place.
24348 ac_srcdir=.
24349 ac_top_srcdir=$ac_top_builddir_sub
24350 ac_abs_top_srcdir=$ac_pwd ;;
24351 [\\/]* | ?:[\\/]* ) # Absolute name.
24352 ac_srcdir=$srcdir$ac_dir_suffix;
24353 ac_top_srcdir=$srcdir
24354 ac_abs_top_srcdir=$srcdir ;;
24355 *) # Relative name.
24356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24357 ac_top_srcdir=$ac_top_build_prefix$srcdir
24358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24359 esac
24360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24361
24362
24363 case $ac_mode in
24364 :F)
24365 #
24366 # CONFIG_FILE
24367 #
24368
24369 case $INSTALL in
24370 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24371 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24372 esac
24373 ac_MKDIR_P=$MKDIR_P
24374 case $MKDIR_P in
24375 [\\/$]* | ?:[\\/]* ) ;;
24376 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24377 esac
24378 _ACEOF
24379
24380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24381 # If the template does not know about datarootdir, expand it.
24382 # FIXME: This hack should be removed a few years after 2.60.
24383 ac_datarootdir_hack=; ac_datarootdir_seen=
24384 ac_sed_dataroot='
24385 /datarootdir/ {
24386 p
24387 q
24388 }
24389 /@datadir@/p
24390 /@docdir@/p
24391 /@infodir@/p
24392 /@localedir@/p
24393 /@mandir@/p'
24394 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24395 *datarootdir*) ac_datarootdir_seen=yes;;
24396 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24398 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24399 _ACEOF
24400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24401 ac_datarootdir_hack='
24402 s&@datadir@&$datadir&g
24403 s&@docdir@&$docdir&g
24404 s&@infodir@&$infodir&g
24405 s&@localedir@&$localedir&g
24406 s&@mandir@&$mandir&g
24407 s&\\\${datarootdir}&$datarootdir&g' ;;
24408 esac
24409 _ACEOF
24410
24411 # Neutralize VPATH when `$srcdir' = `.'.
24412 # Shell code in configure.ac might set extrasub.
24413 # FIXME: do we really want to maintain this feature?
24414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24415 ac_sed_extra="$ac_vpsub
24416 $extrasub
24417 _ACEOF
24418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24419 :t
24420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24421 s|@configure_input@|$ac_sed_conf_input|;t t
24422 s&@top_builddir@&$ac_top_builddir_sub&;t t
24423 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24424 s&@srcdir@&$ac_srcdir&;t t
24425 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24426 s&@top_srcdir@&$ac_top_srcdir&;t t
24427 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24428 s&@builddir@&$ac_builddir&;t t
24429 s&@abs_builddir@&$ac_abs_builddir&;t t
24430 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24431 s&@INSTALL@&$ac_INSTALL&;t t
24432 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24433 $ac_datarootdir_hack
24434 "
24435 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24436 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24437
24438 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24439 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24440 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24441 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24443 which seems to be undefined. Please make sure it is defined" >&5
24444 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24445 which seems to be undefined. Please make sure it is defined" >&2;}
24446
24447 rm -f "$ac_tmp/stdin"
24448 case $ac_file in
24449 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24450 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24451 esac \
24452 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24453 ;;
24454 :H)
24455 #
24456 # CONFIG_HEADER
24457 #
24458 if test x"$ac_file" != x-; then
24459 {
24460 $as_echo "/* $configure_input */" \
24461 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24462 } >"$ac_tmp/config.h" \
24463 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24464 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24466 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24467 else
24468 rm -f "$ac_file"
24469 mv "$ac_tmp/config.h" "$ac_file" \
24470 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24471 fi
24472 else
24473 $as_echo "/* $configure_input */" \
24474 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24475 || as_fn_error $? "could not create -" "$LINENO" 5
24476 fi
24477 # Compute "$ac_file"'s index in $config_headers.
24478 _am_arg="$ac_file"
24479 _am_stamp_count=1
24480 for _am_header in $config_headers :; do
24481 case $_am_header in
24482 $_am_arg | $_am_arg:* )
24483 break ;;
24484 * )
24485 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24486 esac
24487 done
24488 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24489 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24490 X"$_am_arg" : 'X\(//\)[^/]' \| \
24491 X"$_am_arg" : 'X\(//\)$' \| \
24492 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24493 $as_echo X"$_am_arg" |
24494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24495 s//\1/
24496 q
24497 }
24498 /^X\(\/\/\)[^/].*/{
24499 s//\1/
24500 q
24501 }
24502 /^X\(\/\/\)$/{
24503 s//\1/
24504 q
24505 }
24506 /^X\(\/\).*/{
24507 s//\1/
24508 q
24509 }
24510 s/.*/./; q'`/stamp-h$_am_stamp_count
24511 ;;
24512
24513 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24514 $as_echo "$as_me: executing $ac_file commands" >&6;}
24515 ;;
24516 esac
24517
24518
24519 case $ac_file$ac_mode in
24520 "default-1":C)
24521 # Only add multilib support code if we just rebuilt the top-level
24522 # Makefile.
24523 case " $CONFIG_FILES " in
24524 *" Makefile "*)
24525 ac_file=Makefile . ${multi_basedir}/config-ml.in
24526 ;;
24527 esac ;;
24528 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24529 # Older Autoconf quotes --file arguments for eval, but not when files
24530 # are listed without --file. Let's play safe and only enable the eval
24531 # if we detect the quoting.
24532 case $CONFIG_FILES in
24533 *\'*) eval set x "$CONFIG_FILES" ;;
24534 *) set x $CONFIG_FILES ;;
24535 esac
24536 shift
24537 for mf
24538 do
24539 # Strip MF so we end up with the name of the file.
24540 mf=`echo "$mf" | sed -e 's/:.*$//'`
24541 # Check whether this is an Automake generated Makefile or not.
24542 # We used to match only the files named 'Makefile.in', but
24543 # some people rename them; so instead we look at the file content.
24544 # Grep'ing the first line is not enough: some people post-process
24545 # each Makefile.in and add a new line on top of each file to say so.
24546 # Grep'ing the whole file is not good either: AIX grep has a line
24547 # limit of 2048, but all sed's we know have understand at least 4000.
24548 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24549 dirpart=`$as_dirname -- "$mf" ||
24550 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24551 X"$mf" : 'X\(//\)[^/]' \| \
24552 X"$mf" : 'X\(//\)$' \| \
24553 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24554 $as_echo X"$mf" |
24555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24556 s//\1/
24557 q
24558 }
24559 /^X\(\/\/\)[^/].*/{
24560 s//\1/
24561 q
24562 }
24563 /^X\(\/\/\)$/{
24564 s//\1/
24565 q
24566 }
24567 /^X\(\/\).*/{
24568 s//\1/
24569 q
24570 }
24571 s/.*/./; q'`
24572 else
24573 continue
24574 fi
24575 # Extract the definition of DEPDIR, am__include, and am__quote
24576 # from the Makefile without running 'make'.
24577 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24578 test -z "$DEPDIR" && continue
24579 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24580 test -z "$am__include" && continue
24581 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24582 # Find all dependency output files, they are included files with
24583 # $(DEPDIR) in their names. We invoke sed twice because it is the
24584 # simplest approach to changing $(DEPDIR) to its actual value in the
24585 # expansion.
24586 for file in `sed -n "
24587 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24588 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
24589 # Make sure the directory exists.
24590 test -f "$dirpart/$file" && continue
24591 fdir=`$as_dirname -- "$file" ||
24592 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24593 X"$file" : 'X\(//\)[^/]' \| \
24594 X"$file" : 'X\(//\)$' \| \
24595 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24596 $as_echo X"$file" |
24597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24598 s//\1/
24599 q
24600 }
24601 /^X\(\/\/\)[^/].*/{
24602 s//\1/
24603 q
24604 }
24605 /^X\(\/\/\)$/{
24606 s//\1/
24607 q
24608 }
24609 /^X\(\/\).*/{
24610 s//\1/
24611 q
24612 }
24613 s/.*/./; q'`
24614 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24615 # echo "creating $dirpart/$file"
24616 echo '# dummy' > "$dirpart/$file"
24617 done
24618 done
24619 }
24620 ;;
24621 "libtool":C)
24622
24623 # See if we are running on zsh, and set the options which allow our
24624 # commands through without removal of \ escapes.
24625 if test -n "${ZSH_VERSION+set}" ; then
24626 setopt NO_GLOB_SUBST
24627 fi
24628
24629 cfgfile="${ofile}T"
24630 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24631 $RM "$cfgfile"
24632
24633 cat <<_LT_EOF >> "$cfgfile"
24634 #! $SHELL
24635
24636 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24637 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24638 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24639 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24640 #
24641 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24642 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
24643 # Written by Gordon Matzigkeit, 1996
24644 #
24645 # This file is part of GNU Libtool.
24646 #
24647 # GNU Libtool is free software; you can redistribute it and/or
24648 # modify it under the terms of the GNU General Public License as
24649 # published by the Free Software Foundation; either version 2 of
24650 # the License, or (at your option) any later version.
24651 #
24652 # As a special exception to the GNU General Public License,
24653 # if you distribute this file as part of a program or library that
24654 # is built using GNU Libtool, you may include this file under the
24655 # same distribution terms that you use for the rest of that program.
24656 #
24657 # GNU Libtool is distributed in the hope that it will be useful,
24658 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24659 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24660 # GNU General Public License for more details.
24661 #
24662 # You should have received a copy of the GNU General Public License
24663 # along with GNU Libtool; see the file COPYING. If not, a copy
24664 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24665 # obtained by writing to the Free Software Foundation, Inc.,
24666 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24667
24668
24669 # The names of the tagged configurations supported by this script.
24670 available_tags="CXX "
24671
24672 # ### BEGIN LIBTOOL CONFIG
24673
24674 # Which release of libtool.m4 was used?
24675 macro_version=$macro_version
24676 macro_revision=$macro_revision
24677
24678 # Whether or not to build shared libraries.
24679 build_libtool_libs=$enable_shared
24680
24681 # Whether or not to build static libraries.
24682 build_old_libs=$enable_static
24683
24684 # What type of objects to build.
24685 pic_mode=$pic_mode
24686
24687 # Whether or not to optimize for fast installation.
24688 fast_install=$enable_fast_install
24689
24690 # Shell to use when invoking shell scripts.
24691 SHELL=$lt_SHELL
24692
24693 # An echo program that protects backslashes.
24694 ECHO=$lt_ECHO
24695
24696 # The host system.
24697 host_alias=$host_alias
24698 host=$host
24699 host_os=$host_os
24700
24701 # The build system.
24702 build_alias=$build_alias
24703 build=$build
24704 build_os=$build_os
24705
24706 # A sed program that does not truncate output.
24707 SED=$lt_SED
24708
24709 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24710 Xsed="\$SED -e 1s/^X//"
24711
24712 # A grep program that handles long lines.
24713 GREP=$lt_GREP
24714
24715 # An ERE matcher.
24716 EGREP=$lt_EGREP
24717
24718 # A literal string matcher.
24719 FGREP=$lt_FGREP
24720
24721 # A BSD- or MS-compatible name lister.
24722 NM=$lt_NM
24723
24724 # Whether we need soft or hard links.
24725 LN_S=$lt_LN_S
24726
24727 # What is the maximum length of a command?
24728 max_cmd_len=$max_cmd_len
24729
24730 # Object file suffix (normally "o").
24731 objext=$ac_objext
24732
24733 # Executable file suffix (normally "").
24734 exeext=$exeext
24735
24736 # whether the shell understands "unset".
24737 lt_unset=$lt_unset
24738
24739 # turn spaces into newlines.
24740 SP2NL=$lt_lt_SP2NL
24741
24742 # turn newlines into spaces.
24743 NL2SP=$lt_lt_NL2SP
24744
24745 # An object symbol dumper.
24746 OBJDUMP=$lt_OBJDUMP
24747
24748 # Method to check whether dependent libraries are shared objects.
24749 deplibs_check_method=$lt_deplibs_check_method
24750
24751 # Command to use when deplibs_check_method == "file_magic".
24752 file_magic_cmd=$lt_file_magic_cmd
24753
24754 # The archiver.
24755 AR=$lt_AR
24756 AR_FLAGS=$lt_AR_FLAGS
24757
24758 # A symbol stripping program.
24759 STRIP=$lt_STRIP
24760
24761 # Commands used to install an old-style archive.
24762 RANLIB=$lt_RANLIB
24763 old_postinstall_cmds=$lt_old_postinstall_cmds
24764 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24765
24766 # Whether to use a lock for old archive extraction.
24767 lock_old_archive_extraction=$lock_old_archive_extraction
24768
24769 # A C compiler.
24770 LTCC=$lt_CC
24771
24772 # LTCC compiler flags.
24773 LTCFLAGS=$lt_CFLAGS
24774
24775 # Take the output of nm and produce a listing of raw symbols and C names.
24776 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24777
24778 # Transform the output of nm in a proper C declaration.
24779 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24780
24781 # Transform the output of nm in a C name address pair.
24782 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24783
24784 # Transform the output of nm in a C name address pair when lib prefix is needed.
24785 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24786
24787 # The name of the directory that contains temporary libtool files.
24788 objdir=$objdir
24789
24790 # Used to examine libraries when file_magic_cmd begins with "file".
24791 MAGIC_CMD=$MAGIC_CMD
24792
24793 # Must we lock files when doing compilation?
24794 need_locks=$lt_need_locks
24795
24796 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24797 DSYMUTIL=$lt_DSYMUTIL
24798
24799 # Tool to change global to local symbols on Mac OS X.
24800 NMEDIT=$lt_NMEDIT
24801
24802 # Tool to manipulate fat objects and archives on Mac OS X.
24803 LIPO=$lt_LIPO
24804
24805 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24806 OTOOL=$lt_OTOOL
24807
24808 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24809 OTOOL64=$lt_OTOOL64
24810
24811 # Old archive suffix (normally "a").
24812 libext=$libext
24813
24814 # Shared library suffix (normally ".so").
24815 shrext_cmds=$lt_shrext_cmds
24816
24817 # The commands to extract the exported symbol list from a shared archive.
24818 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24819
24820 # Variables whose values should be saved in libtool wrapper scripts and
24821 # restored at link time.
24822 variables_saved_for_relink=$lt_variables_saved_for_relink
24823
24824 # Do we need the "lib" prefix for modules?
24825 need_lib_prefix=$need_lib_prefix
24826
24827 # Do we need a version for libraries?
24828 need_version=$need_version
24829
24830 # Library versioning type.
24831 version_type=$version_type
24832
24833 # Shared library runtime path variable.
24834 runpath_var=$runpath_var
24835
24836 # Shared library path variable.
24837 shlibpath_var=$shlibpath_var
24838
24839 # Is shlibpath searched before the hard-coded library search path?
24840 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24841
24842 # Format of library name prefix.
24843 libname_spec=$lt_libname_spec
24844
24845 # List of archive names. First name is the real one, the rest are links.
24846 # The last name is the one that the linker finds with -lNAME
24847 library_names_spec=$lt_library_names_spec
24848
24849 # The coded name of the library, if different from the real name.
24850 soname_spec=$lt_soname_spec
24851
24852 # Permission mode override for installation of shared libraries.
24853 install_override_mode=$lt_install_override_mode
24854
24855 # Command to use after installation of a shared archive.
24856 postinstall_cmds=$lt_postinstall_cmds
24857
24858 # Command to use after uninstallation of a shared archive.
24859 postuninstall_cmds=$lt_postuninstall_cmds
24860
24861 # Commands used to finish a libtool library installation in a directory.
24862 finish_cmds=$lt_finish_cmds
24863
24864 # As "finish_cmds", except a single script fragment to be evaled but
24865 # not shown.
24866 finish_eval=$lt_finish_eval
24867
24868 # Whether we should hardcode library paths into libraries.
24869 hardcode_into_libs=$hardcode_into_libs
24870
24871 # Compile-time system search path for libraries.
24872 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24873
24874 # Run-time system search path for libraries.
24875 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24876
24877 # Whether dlopen is supported.
24878 dlopen_support=$enable_dlopen
24879
24880 # Whether dlopen of programs is supported.
24881 dlopen_self=$enable_dlopen_self
24882
24883 # Whether dlopen of statically linked programs is supported.
24884 dlopen_self_static=$enable_dlopen_self_static
24885
24886 # Commands to strip libraries.
24887 old_striplib=$lt_old_striplib
24888 striplib=$lt_striplib
24889
24890
24891 # The linker used to build libraries.
24892 LD=$lt_LD
24893
24894 # How to create reloadable object files.
24895 reload_flag=$lt_reload_flag
24896 reload_cmds=$lt_reload_cmds
24897
24898 # Commands used to build an old-style archive.
24899 old_archive_cmds=$lt_old_archive_cmds
24900
24901 # A language specific compiler.
24902 CC=$lt_compiler
24903
24904 # Is the compiler the GNU compiler?
24905 with_gcc=$GCC
24906
24907 # Compiler flag to turn off builtin functions.
24908 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24909
24910 # How to pass a linker flag through the compiler.
24911 wl=$lt_lt_prog_compiler_wl
24912
24913 # Additional compiler flags for building library objects.
24914 pic_flag=$lt_lt_prog_compiler_pic
24915
24916 # Compiler flag to prevent dynamic linking.
24917 link_static_flag=$lt_lt_prog_compiler_static
24918
24919 # Does compiler simultaneously support -c and -o options?
24920 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24921
24922 # Whether or not to add -lc for building shared libraries.
24923 build_libtool_need_lc=$archive_cmds_need_lc
24924
24925 # Whether or not to disallow shared libs when runtime libs are static.
24926 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24927
24928 # Compiler flag to allow reflexive dlopens.
24929 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24930
24931 # Compiler flag to generate shared objects directly from archives.
24932 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24933
24934 # Whether the compiler copes with passing no objects directly.
24935 compiler_needs_object=$lt_compiler_needs_object
24936
24937 # Create an old-style archive from a shared archive.
24938 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24939
24940 # Create a temporary old-style archive to link instead of a shared archive.
24941 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24942
24943 # Commands used to build a shared archive.
24944 archive_cmds=$lt_archive_cmds
24945 archive_expsym_cmds=$lt_archive_expsym_cmds
24946
24947 # Commands used to build a loadable module if different from building
24948 # a shared archive.
24949 module_cmds=$lt_module_cmds
24950 module_expsym_cmds=$lt_module_expsym_cmds
24951
24952 # Whether we are building with GNU ld or not.
24953 with_gnu_ld=$lt_with_gnu_ld
24954
24955 # Flag that allows shared libraries with undefined symbols to be built.
24956 allow_undefined_flag=$lt_allow_undefined_flag
24957
24958 # Flag that enforces no undefined symbols.
24959 no_undefined_flag=$lt_no_undefined_flag
24960
24961 # Flag to hardcode \$libdir into a binary during linking.
24962 # This must work even if \$libdir does not exist
24963 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24964
24965 # If ld is used when linking, flag to hardcode \$libdir into a binary
24966 # during linking. This must work even if \$libdir does not exist.
24967 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24968
24969 # Whether we need a single "-rpath" flag with a separated argument.
24970 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24971
24972 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24973 # DIR into the resulting binary.
24974 hardcode_direct=$hardcode_direct
24975
24976 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24977 # DIR into the resulting binary and the resulting library dependency is
24978 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24979 # library is relocated.
24980 hardcode_direct_absolute=$hardcode_direct_absolute
24981
24982 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24983 # into the resulting binary.
24984 hardcode_minus_L=$hardcode_minus_L
24985
24986 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24987 # into the resulting binary.
24988 hardcode_shlibpath_var=$hardcode_shlibpath_var
24989
24990 # Set to "yes" if building a shared library automatically hardcodes DIR
24991 # into the library and all subsequent libraries and executables linked
24992 # against it.
24993 hardcode_automatic=$hardcode_automatic
24994
24995 # Set to yes if linker adds runtime paths of dependent libraries
24996 # to runtime path list.
24997 inherit_rpath=$inherit_rpath
24998
24999 # Whether libtool must link a program against all its dependency libraries.
25000 link_all_deplibs=$link_all_deplibs
25001
25002 # Fix the shell variable \$srcfile for the compiler.
25003 fix_srcfile_path=$lt_fix_srcfile_path
25004
25005 # Set to "yes" if exported symbols are required.
25006 always_export_symbols=$always_export_symbols
25007
25008 # The commands to list exported symbols.
25009 export_symbols_cmds=$lt_export_symbols_cmds
25010
25011 # Symbols that should not be listed in the preloaded symbols.
25012 exclude_expsyms=$lt_exclude_expsyms
25013
25014 # Symbols that must always be exported.
25015 include_expsyms=$lt_include_expsyms
25016
25017 # Commands necessary for linking programs (against libraries) with templates.
25018 prelink_cmds=$lt_prelink_cmds
25019
25020 # Specify filename containing input files.
25021 file_list_spec=$lt_file_list_spec
25022
25023 # How to hardcode a shared library path into an executable.
25024 hardcode_action=$hardcode_action
25025
25026 # The directories searched by this compiler when creating a shared library.
25027 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25028
25029 # Dependencies to place before and after the objects being linked to
25030 # create a shared library.
25031 predep_objects=$lt_predep_objects
25032 postdep_objects=$lt_postdep_objects
25033 predeps=$lt_predeps
25034 postdeps=$lt_postdeps
25035
25036 # The library search path used internally by the compiler when linking
25037 # a shared library.
25038 compiler_lib_search_path=$lt_compiler_lib_search_path
25039
25040 # ### END LIBTOOL CONFIG
25041
25042 _LT_EOF
25043
25044 case $host_os in
25045 aix3*)
25046 cat <<\_LT_EOF >> "$cfgfile"
25047 # AIX sometimes has problems with the GCC collect2 program. For some
25048 # reason, if we set the COLLECT_NAMES environment variable, the problems
25049 # vanish in a puff of smoke.
25050 if test "X${COLLECT_NAMES+set}" != Xset; then
25051 COLLECT_NAMES=
25052 export COLLECT_NAMES
25053 fi
25054 _LT_EOF
25055 ;;
25056 esac
25057
25058
25059 ltmain="$ac_aux_dir/ltmain.sh"
25060
25061
25062 # We use sed instead of cat because bash on DJGPP gets confused if
25063 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25064 # text mode, it properly converts lines to CR/LF. This bash problem
25065 # is reportedly fixed, but why not run on old versions too?
25066 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
25067 || (rm -f "$cfgfile"; exit 1)
25068
25069 case $xsi_shell in
25070 yes)
25071 cat << \_LT_EOF >> "$cfgfile"
25072
25073 # func_dirname file append nondir_replacement
25074 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
25075 # otherwise set result to NONDIR_REPLACEMENT.
25076 func_dirname ()
25077 {
25078 case ${1} in
25079 */*) func_dirname_result="${1%/*}${2}" ;;
25080 * ) func_dirname_result="${3}" ;;
25081 esac
25082 }
25083
25084 # func_basename file
25085 func_basename ()
25086 {
25087 func_basename_result="${1##*/}"
25088 }
25089
25090 # func_dirname_and_basename file append nondir_replacement
25091 # perform func_basename and func_dirname in a single function
25092 # call:
25093 # dirname: Compute the dirname of FILE. If nonempty,
25094 # add APPEND to the result, otherwise set result
25095 # to NONDIR_REPLACEMENT.
25096 # value returned in "$func_dirname_result"
25097 # basename: Compute filename of FILE.
25098 # value retuned in "$func_basename_result"
25099 # Implementation must be kept synchronized with func_dirname
25100 # and func_basename. For efficiency, we do not delegate to
25101 # those functions but instead duplicate the functionality here.
25102 func_dirname_and_basename ()
25103 {
25104 case ${1} in
25105 */*) func_dirname_result="${1%/*}${2}" ;;
25106 * ) func_dirname_result="${3}" ;;
25107 esac
25108 func_basename_result="${1##*/}"
25109 }
25110
25111 # func_stripname prefix suffix name
25112 # strip PREFIX and SUFFIX off of NAME.
25113 # PREFIX and SUFFIX must not contain globbing or regex special
25114 # characters, hashes, percent signs, but SUFFIX may contain a leading
25115 # dot (in which case that matches only a dot).
25116 func_stripname ()
25117 {
25118 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25119 # positional parameters, so assign one to ordinary parameter first.
25120 func_stripname_result=${3}
25121 func_stripname_result=${func_stripname_result#"${1}"}
25122 func_stripname_result=${func_stripname_result%"${2}"}
25123 }
25124
25125 # func_opt_split
25126 func_opt_split ()
25127 {
25128 func_opt_split_opt=${1%%=*}
25129 func_opt_split_arg=${1#*=}
25130 }
25131
25132 # func_lo2o object
25133 func_lo2o ()
25134 {
25135 case ${1} in
25136 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25137 *) func_lo2o_result=${1} ;;
25138 esac
25139 }
25140
25141 # func_xform libobj-or-source
25142 func_xform ()
25143 {
25144 func_xform_result=${1%.*}.lo
25145 }
25146
25147 # func_arith arithmetic-term...
25148 func_arith ()
25149 {
25150 func_arith_result=$(( $* ))
25151 }
25152
25153 # func_len string
25154 # STRING may not start with a hyphen.
25155 func_len ()
25156 {
25157 func_len_result=${#1}
25158 }
25159
25160 _LT_EOF
25161 ;;
25162 *) # Bourne compatible functions.
25163 cat << \_LT_EOF >> "$cfgfile"
25164
25165 # func_dirname file append nondir_replacement
25166 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
25167 # otherwise set result to NONDIR_REPLACEMENT.
25168 func_dirname ()
25169 {
25170 # Extract subdirectory from the argument.
25171 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
25172 if test "X$func_dirname_result" = "X${1}"; then
25173 func_dirname_result="${3}"
25174 else
25175 func_dirname_result="$func_dirname_result${2}"
25176 fi
25177 }
25178
25179 # func_basename file
25180 func_basename ()
25181 {
25182 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
25183 }
25184
25185
25186 # func_stripname prefix suffix name
25187 # strip PREFIX and SUFFIX off of NAME.
25188 # PREFIX and SUFFIX must not contain globbing or regex special
25189 # characters, hashes, percent signs, but SUFFIX may contain a leading
25190 # dot (in which case that matches only a dot).
25191 # func_strip_suffix prefix name
25192 func_stripname ()
25193 {
25194 case ${2} in
25195 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
25196 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
25197 esac
25198 }
25199
25200 # sed scripts:
25201 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25202 my_sed_long_arg='1s/^-[^=]*=//'
25203
25204 # func_opt_split
25205 func_opt_split ()
25206 {
25207 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
25208 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
25209 }
25210
25211 # func_lo2o object
25212 func_lo2o ()
25213 {
25214 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
25215 }
25216
25217 # func_xform libobj-or-source
25218 func_xform ()
25219 {
25220 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
25221 }
25222
25223 # func_arith arithmetic-term...
25224 func_arith ()
25225 {
25226 func_arith_result=`expr "$@"`
25227 }
25228
25229 # func_len string
25230 # STRING may not start with a hyphen.
25231 func_len ()
25232 {
25233 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25234 }
25235
25236 _LT_EOF
25237 esac
25238
25239 case $lt_shell_append in
25240 yes)
25241 cat << \_LT_EOF >> "$cfgfile"
25242
25243 # func_append var value
25244 # Append VALUE to the end of shell variable VAR.
25245 func_append ()
25246 {
25247 eval "$1+=\$2"
25248 }
25249 _LT_EOF
25250 ;;
25251 *)
25252 cat << \_LT_EOF >> "$cfgfile"
25253
25254 # func_append var value
25255 # Append VALUE to the end of shell variable VAR.
25256 func_append ()
25257 {
25258 eval "$1=\$$1\$2"
25259 }
25260
25261 _LT_EOF
25262 ;;
25263 esac
25264
25265
25266 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25267 || (rm -f "$cfgfile"; exit 1)
25268
25269 mv -f "$cfgfile" "$ofile" ||
25270 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25271 chmod +x "$ofile"
25272
25273
25274 cat <<_LT_EOF >> "$ofile"
25275
25276 # ### BEGIN LIBTOOL TAG CONFIG: CXX
25277
25278 # The linker used to build libraries.
25279 LD=$lt_LD_CXX
25280
25281 # How to create reloadable object files.
25282 reload_flag=$lt_reload_flag_CXX
25283 reload_cmds=$lt_reload_cmds_CXX
25284
25285 # Commands used to build an old-style archive.
25286 old_archive_cmds=$lt_old_archive_cmds_CXX
25287
25288 # A language specific compiler.
25289 CC=$lt_compiler_CXX
25290
25291 # Is the compiler the GNU compiler?
25292 with_gcc=$GCC_CXX
25293
25294 # Compiler flag to turn off builtin functions.
25295 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25296
25297 # How to pass a linker flag through the compiler.
25298 wl=$lt_lt_prog_compiler_wl_CXX
25299
25300 # Additional compiler flags for building library objects.
25301 pic_flag=$lt_lt_prog_compiler_pic_CXX
25302
25303 # Compiler flag to prevent dynamic linking.
25304 link_static_flag=$lt_lt_prog_compiler_static_CXX
25305
25306 # Does compiler simultaneously support -c and -o options?
25307 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25308
25309 # Whether or not to add -lc for building shared libraries.
25310 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25311
25312 # Whether or not to disallow shared libs when runtime libs are static.
25313 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25314
25315 # Compiler flag to allow reflexive dlopens.
25316 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25317
25318 # Compiler flag to generate shared objects directly from archives.
25319 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25320
25321 # Whether the compiler copes with passing no objects directly.
25322 compiler_needs_object=$lt_compiler_needs_object_CXX
25323
25324 # Create an old-style archive from a shared archive.
25325 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25326
25327 # Create a temporary old-style archive to link instead of a shared archive.
25328 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25329
25330 # Commands used to build a shared archive.
25331 archive_cmds=$lt_archive_cmds_CXX
25332 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25333
25334 # Commands used to build a loadable module if different from building
25335 # a shared archive.
25336 module_cmds=$lt_module_cmds_CXX
25337 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25338
25339 # Whether we are building with GNU ld or not.
25340 with_gnu_ld=$lt_with_gnu_ld_CXX
25341
25342 # Flag that allows shared libraries with undefined symbols to be built.
25343 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25344
25345 # Flag that enforces no undefined symbols.
25346 no_undefined_flag=$lt_no_undefined_flag_CXX
25347
25348 # Flag to hardcode \$libdir into a binary during linking.
25349 # This must work even if \$libdir does not exist
25350 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25351
25352 # If ld is used when linking, flag to hardcode \$libdir into a binary
25353 # during linking. This must work even if \$libdir does not exist.
25354 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
25355
25356 # Whether we need a single "-rpath" flag with a separated argument.
25357 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25358
25359 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25360 # DIR into the resulting binary.
25361 hardcode_direct=$hardcode_direct_CXX
25362
25363 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25364 # DIR into the resulting binary and the resulting library dependency is
25365 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25366 # library is relocated.
25367 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25368
25369 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25370 # into the resulting binary.
25371 hardcode_minus_L=$hardcode_minus_L_CXX
25372
25373 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25374 # into the resulting binary.
25375 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25376
25377 # Set to "yes" if building a shared library automatically hardcodes DIR
25378 # into the library and all subsequent libraries and executables linked
25379 # against it.
25380 hardcode_automatic=$hardcode_automatic_CXX
25381
25382 # Set to yes if linker adds runtime paths of dependent libraries
25383 # to runtime path list.
25384 inherit_rpath=$inherit_rpath_CXX
25385
25386 # Whether libtool must link a program against all its dependency libraries.
25387 link_all_deplibs=$link_all_deplibs_CXX
25388
25389 # Fix the shell variable \$srcfile for the compiler.
25390 fix_srcfile_path=$lt_fix_srcfile_path_CXX
25391
25392 # Set to "yes" if exported symbols are required.
25393 always_export_symbols=$always_export_symbols_CXX
25394
25395 # The commands to list exported symbols.
25396 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25397
25398 # Symbols that should not be listed in the preloaded symbols.
25399 exclude_expsyms=$lt_exclude_expsyms_CXX
25400
25401 # Symbols that must always be exported.
25402 include_expsyms=$lt_include_expsyms_CXX
25403
25404 # Commands necessary for linking programs (against libraries) with templates.
25405 prelink_cmds=$lt_prelink_cmds_CXX
25406
25407 # Specify filename containing input files.
25408 file_list_spec=$lt_file_list_spec_CXX
25409
25410 # How to hardcode a shared library path into an executable.
25411 hardcode_action=$hardcode_action_CXX
25412
25413 # The directories searched by this compiler when creating a shared library.
25414 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25415
25416 # Dependencies to place before and after the objects being linked to
25417 # create a shared library.
25418 predep_objects=$lt_predep_objects_CXX
25419 postdep_objects=$lt_postdep_objects_CXX
25420 predeps=$lt_predeps_CXX
25421 postdeps=$lt_postdeps_CXX
25422
25423 # The library search path used internally by the compiler when linking
25424 # a shared library.
25425 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25426
25427 # ### END LIBTOOL TAG CONFIG: CXX
25428 _LT_EOF
25429
25430 ;;
25431 "libm2min/Makefile":F) cat > vpsed$$ << \_EOF
25432 s!`test -f '$<' || echo '$(srcdir)/'`!!
25433 _EOF
25434 sed -f vpsed$$ $ac_file > tmp$$
25435 mv tmp$$ $ac_file
25436 rm vpsed$$
25437 echo 'MULTISUBDIR =' >> $ac_file
25438 ml_norecursion=yes
25439 . ${multi_basedir}/config-ml.in
25440 { ml_norecursion=; unset ml_norecursion;}
25441 ;;
25442 "libm2pim/Makefile":F) cat > vpsed$$ << \_EOF
25443 s!`test -f '$<' || echo '$(srcdir)/'`!!
25444 _EOF
25445 sed -f vpsed$$ $ac_file > tmp$$
25446 mv tmp$$ $ac_file
25447 rm vpsed$$
25448 echo 'MULTISUBDIR =' >> $ac_file
25449 ml_norecursion=yes
25450 . ${multi_basedir}/config-ml.in
25451 { ml_norecursion=; unset ml_norecursion;}
25452 ;;
25453 "libm2iso/Makefile":F) cat > vpsed$$ << \_EOF
25454 s!`test -f '$<' || echo '$(srcdir)/'`!!
25455 _EOF
25456 sed -f vpsed$$ $ac_file > tmp$$
25457 mv tmp$$ $ac_file
25458 rm vpsed$$
25459 echo 'MULTISUBDIR =' >> $ac_file
25460 ml_norecursion=yes
25461 . ${multi_basedir}/config-ml.in
25462 { ml_norecursion=; unset ml_norecursion;}
25463 ;;
25464 "libm2cor/Makefile":F) cat > vpsed$$ << \_EOF
25465 s!`test -f '$<' || echo '$(srcdir)/'`!!
25466 _EOF
25467 sed -f vpsed$$ $ac_file > tmp$$
25468 mv tmp$$ $ac_file
25469 rm vpsed$$
25470 echo 'MULTISUBDIR =' >> $ac_file
25471 ml_norecursion=yes
25472 . ${multi_basedir}/config-ml.in
25473 { ml_norecursion=; unset ml_norecursion;}
25474 ;;
25475 "libm2log/Makefile":F) cat > vpsed$$ << \_EOF
25476 s!`test -f '$<' || echo '$(srcdir)/'`!!
25477 _EOF
25478 sed -f vpsed$$ $ac_file > tmp$$
25479 mv tmp$$ $ac_file
25480 rm vpsed$$
25481 echo 'MULTISUBDIR =' >> $ac_file
25482 ml_norecursion=yes
25483 . ${multi_basedir}/config-ml.in
25484 { ml_norecursion=; unset ml_norecursion;}
25485 ;;
25486
25487 esac
25488 done # for ac_tag
25489
25490
25491 as_fn_exit 0
25492 _ACEOF
25493 ac_clean_files=$ac_clean_files_save
25494
25495 test $ac_write_fail = 0 ||
25496 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25497
25498
25499 # configure is writing to config.log, and then calls config.status.
25500 # config.status does its own redirection, appending to config.log.
25501 # Unfortunately, on DOS this fails, as config.log is still kept open
25502 # by configure, so config.status won't be able to write to it; its
25503 # output is simply discarded. So we exec the FD to /dev/null,
25504 # effectively closing config.log, so it can be properly (re)opened and
25505 # appended to by config.status. When coming back to configure, we
25506 # need to make the FD available again.
25507 if test "$no_create" != yes; then
25508 ac_cs_success=:
25509 ac_config_status_args=
25510 test "$silent" = yes &&
25511 ac_config_status_args="$ac_config_status_args --quiet"
25512 exec 5>/dev/null
25513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25514 exec 5>>config.log
25515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25516 # would make configure fail if this is the last instruction.
25517 $ac_cs_success || as_fn_exit 1
25518 fi
25519 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25521 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25522 fi
25523