Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME=''
613 PACKAGE_TARNAME=''
614 PACKAGE_VERSION=''
615 PACKAGE_STRING=''
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 ac_unique_file="lib/src/version.h"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 gt_needs=
653 ac_subst_vars='LTLIBOBJS
654 LIBOBJS
655 MINGWPRE
656 MSYSBIN
657 MINGWBIN
658 GEXEPATH
659 GEXE
660 GHOME
661 CYGPATH_CHECK
662 mingw_prefix
663 USE_AVX
664 USE_SSE2
665 RLIB
666 plugsub
667 GTK_HUSH
668 use_gsf
669 swap_ends
670 pkg_build
671 quiet_build
672 build_editor
673 build_addons
674 build_docs
675 GSF_LIBS
676 GSF_CFLAGS
677 RLIB_LIBS
678 RLIB_CFLAGS
679 XSLT_LIBS
680 XSLT_CFLAGS
681 XML_LIBS
682 XML_CFLAGS
683 GDK_PIXBUF_LIBS
684 GDK_PIXBUF_CFLAGS
685 RT_LIB
686 GTK_PREFIX
687 GTKSOURCEVIEW_PREFIX
688 GTK_LIBS
689 GTK_CFLAGS
690 use_xdg_utils
691 use_xdg
692 use_curl
693 build_po
694 have_mpi
695 have_odbc
696 have_gnu_regex
697 gtksv_completion
698 have_sourceview
699 macpkg
700 win32bit
701 win32pkg
702 win32_build
703 mac_native
704 gtk_version
705 build_gui
706 GTKSOURCEVIEW_LIBS
707 GTKSOURCEVIEW_CFLAGS
708 GTKMAC_LIBS
709 GTKMAC_CFLAGS
710 GTK3_LIBS
711 GTK3_CFLAGS
712 GTK2_LIBS
713 GTK2_CFLAGS
714 JSON_GLIB_LIBS
715 JSON_GLIB_CFLAGS
716 GLIB_LIBS
717 GLIB_CFLAGS
718 CURL_LIBS
719 CURL_CFLAGS
720 FFTW_LIBS
721 FFTW_CFLAGS
722 PKG_CONFIG_LIBDIR
723 PKG_CONFIG_PATH
724 PKG_CONFIG
725 PDFLATEX
726 GNUPLOT
727 ODBC_LIBS
728 ODBC_CFLAGS
729 DARWIN_RPATH
730 MACLIB
731 LAPACK_LIBS
732 MPFR_LIBS
733 MPFR_CFLAGS
734 GMP_LIBS
735 GMP_CFLAGS
736 have_zlib
737 XDG_MIME
738 CXXCPP
739 ac_ct_CXX
740 CXXFLAGS
741 CXX
742 new_readline
743 have_readline
744 READLINE_LIBS
745 READLINE_CFLAGS
746 MPI_CFLAGS
747 HAVE_MPICC
748 OPENMP_CFLAGS
749 AVX_CFLAGS
750 SSE2_CFLAGS
751 CXX_LIB
752 CLANG_LIB
753 OMP_LIB
754 MPILINK
755 MPICC
756 COMPRES
757 MKPNGLIST
758 MKNEWS
759 MKLANG
760 HOSTCC
761 LT_SYS_LIBRARY_PATH
762 OTOOL64
763 OTOOL
764 LIPO
765 NMEDIT
766 DSYMUTIL
767 MANIFEST_TOOL
768 AWK
769 RANLIB
770 STRIP
771 ac_ct_AR
772 AR
773 DLLTOOL
774 OBJDUMP
775 LN_S
776 NM
777 ac_ct_DUMPBIN
778 DUMPBIN
779 LD
780 FGREP
781 EGREP
782 GREP
783 LIBTOOL
784 WINDRES
785 HAVE_TRAMO
786 HAVE_X12A
787 MAKE
788 FONTREQ
789 POSUB
790 LTLIBINTL
791 LIBINTL
792 INTLLIBS
793 LTLIBICONV
794 LIBICONV
795 INTL_MACOSX_LIBS
796 CPP
797 host_os
798 host_vendor
799 host_cpu
800 host
801 build_os
802 build_vendor
803 build_cpu
804 build
805 XGETTEXT_EXTRA_OPTIONS
806 MSGMERGE_FOR_MSGFMT_OPTION
807 MSGMERGE
808 XGETTEXT_015
809 XGETTEXT
810 GMSGFMT_015
811 GMSGFMT
812 MSGFMT
813 GETTEXT_MACRO_VERSION
814 USE_NLS
815 SED
816 MKDIR_P
817 INSTALL_DATA
818 INSTALL_SCRIPT
819 INSTALL_PROGRAM
820 SET_MAKE
821 OBJEXT
822 EXEEXT
823 ac_ct_CC
824 CPPFLAGS
825 LDFLAGS
826 CFLAGS
827 CC
828 LIBGRETL_AGE
829 LIBGRETL_REVISION
830 LIBGRETL_CURRENT
831 LIBVERSION
832 VERSION
833 PACKAGE
834 target_alias
835 host_alias
836 build_alias
837 LIBS
838 ECHO_T
839 ECHO_N
840 ECHO_C
841 DEFS
842 mandir
843 localedir
844 libdir
845 psdir
846 pdfdir
847 dvidir
848 htmldir
849 infodir
850 docdir
851 oldincludedir
852 includedir
853 runstatedir
854 localstatedir
855 sharedstatedir
856 sysconfdir
857 datadir
858 datarootdir
859 libexecdir
860 sbindir
861 bindir
862 program_transform_name
863 prefix
864 exec_prefix
865 PACKAGE_URL
866 PACKAGE_BUGREPORT
867 PACKAGE_STRING
868 PACKAGE_VERSION
869 PACKAGE_TARNAME
870 PACKAGE_NAME
871 PATH_SEPARATOR
872 SHELL'
873 ac_subst_files=''
874 ac_user_opts='
875 enable_option_checking
876 enable_nls
877 with_gnu_ld
878 enable_rpath
879 with_libiconv_prefix
880 with_libintl_prefix
881 enable_gui
882 enable_gtk2
883 enable_build_doc
884 enable_build_addons
885 enable_build_editor
886 enable_quiet_build
887 enable_swap_ends
888 enable_xdg
889 enable_json
890 enable_gmp
891 enable_xdg_utils
892 enable_pkgbuild
893 enable_gnuplot_checks
894 enable_gnuplot_3d
895 enable_www
896 with_lucida
897 with_gmake
898 with_readline
899 with_gsf
900 with_x_12_arima
901 with_tramo_seats
902 with_libR
903 with_mpi
904 with_odbc
905 enable_static
906 enable_shared
907 with_pic
908 enable_fast_install
909 with_aix_soname
910 with_sysroot
911 enable_libtool_lock
912 enable_sse2
913 enable_avx
914 enable_openmp
915 with_mpi_lib
916 with_mpi_include
917 with_readline_prefix
918 with_gmp_prefix
919 with_mpfr_prefix
920 with_ODBC_prefix
921 '
922 ac_precious_vars='build_alias
923 host_alias
924 target_alias
925 CC
926 CFLAGS
927 LDFLAGS
928 LIBS
929 CPPFLAGS
930 CPP
931 LT_SYS_LIBRARY_PATH
932 HOSTCC
933 MKLANG
934 MKNEWS
935 MKPNGLIST
936 COMPRES
937 MPICC
938 MPILINK
939 OMP_LIB
940 CLANG_LIB
941 CXX_LIB
942 CXX
943 CXXFLAGS
944 CCC
945 CXXCPP
946 LAPACK_LIBS
947 PKG_CONFIG
948 PKG_CONFIG_PATH
949 PKG_CONFIG_LIBDIR
950 FFTW_CFLAGS
951 FFTW_LIBS
952 CURL_CFLAGS
953 CURL_LIBS
954 GLIB_CFLAGS
955 GLIB_LIBS
956 JSON_GLIB_CFLAGS
957 JSON_GLIB_LIBS
958 GTK2_CFLAGS
959 GTK2_LIBS
960 GTK3_CFLAGS
961 GTK3_LIBS
962 GTKMAC_CFLAGS
963 GTKMAC_LIBS
964 GTKSOURCEVIEW_CFLAGS
965 GTKSOURCEVIEW_LIBS
966 GDK_PIXBUF_CFLAGS
967 GDK_PIXBUF_LIBS
968 XML_CFLAGS
969 XML_LIBS
970 XSLT_CFLAGS
971 XSLT_LIBS
972 RLIB_CFLAGS
973 RLIB_LIBS
974 GSF_CFLAGS
975 GSF_LIBS'
976
977
978 # Initialize some variables set by options.
979 ac_init_help=
980 ac_init_version=false
981 ac_unrecognized_opts=
982 ac_unrecognized_sep=
983 # The variables have the same names as the options, with
984 # dashes changed to underlines.
985 cache_file=/dev/null
986 exec_prefix=NONE
987 no_create=
988 no_recursion=
989 prefix=NONE
990 program_prefix=NONE
991 program_suffix=NONE
992 program_transform_name=s,x,x,
993 silent=
994 site=
995 srcdir=
996 verbose=
997 x_includes=NONE
998 x_libraries=NONE
999
1000 # Installation directory options.
1001 # These are left unexpanded so users can "make install exec_prefix=/foo"
1002 # and all the variables that are supposed to be based on exec_prefix
1003 # by default will actually change.
1004 # Use braces instead of parens because sh, perl, etc. also accept them.
1005 # (The list follows the same order as the GNU Coding Standards.)
1006 bindir='${exec_prefix}/bin'
1007 sbindir='${exec_prefix}/sbin'
1008 libexecdir='${exec_prefix}/libexec'
1009 datarootdir='${prefix}/share'
1010 datadir='${datarootdir}'
1011 sysconfdir='${prefix}/etc'
1012 sharedstatedir='${prefix}/com'
1013 localstatedir='${prefix}/var'
1014 runstatedir='${localstatedir}/run'
1015 includedir='${prefix}/include'
1016 oldincludedir='/usr/include'
1017 docdir='${datarootdir}/doc/${PACKAGE}'
1018 infodir='${datarootdir}/info'
1019 htmldir='${docdir}'
1020 dvidir='${docdir}'
1021 pdfdir='${docdir}'
1022 psdir='${docdir}'
1023 libdir='${exec_prefix}/lib'
1024 localedir='${datarootdir}/locale'
1025 mandir='${datarootdir}/man'
1026
1027 ac_prev=
1028 ac_dashdash=
1029 for ac_option
1030 do
1031 # If the previous option needs an argument, assign it.
1032 if test -n "$ac_prev"; then
1033 eval $ac_prev=\$ac_option
1034 ac_prev=
1035 continue
1036 fi
1037
1038 case $ac_option in
1039 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1040 *=) ac_optarg= ;;
1041 *) ac_optarg=yes ;;
1042 esac
1043
1044 case $ac_dashdash$ac_option in
1045 --)
1046 ac_dashdash=yes ;;
1047
1048 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049 ac_prev=bindir ;;
1050 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1051 bindir=$ac_optarg ;;
1052
1053 -build | --build | --buil | --bui | --bu)
1054 ac_prev=build_alias ;;
1055 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1056 build_alias=$ac_optarg ;;
1057
1058 -cache-file | --cache-file | --cache-fil | --cache-fi \
1059 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1060 ac_prev=cache_file ;;
1061 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1062 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1063 cache_file=$ac_optarg ;;
1064
1065 --config-cache | -C)
1066 cache_file=config.cache ;;
1067
1068 -datadir | --datadir | --datadi | --datad)
1069 ac_prev=datadir ;;
1070 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1071 datadir=$ac_optarg ;;
1072
1073 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1074 | --dataroo | --dataro | --datar)
1075 ac_prev=datarootdir ;;
1076 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1077 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1078 datarootdir=$ac_optarg ;;
1079
1080 -disable-* | --disable-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error $? "invalid feature name: '$ac_useropt'"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1088 *"
1089 "enable_$ac_useropt"
1090 "*) ;;
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1093 esac
1094 eval enable_$ac_useropt=no ;;
1095
1096 -docdir | --docdir | --docdi | --doc | --do)
1097 ac_prev=docdir ;;
1098 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1099 docdir=$ac_optarg ;;
1100
1101 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1102 ac_prev=dvidir ;;
1103 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1104 dvidir=$ac_optarg ;;
1105
1106 -enable-* | --enable-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid feature name: '$ac_useropt'"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1114 *"
1115 "enable_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval enable_$ac_useropt=\$ac_optarg ;;
1121
1122 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1123 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1124 | --exec | --exe | --ex)
1125 ac_prev=exec_prefix ;;
1126 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1127 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1128 | --exec=* | --exe=* | --ex=*)
1129 exec_prefix=$ac_optarg ;;
1130
1131 -gas | --gas | --ga | --g)
1132 # Obsolete; use --with-gas.
1133 with_gas=yes ;;
1134
1135 -help | --help | --hel | --he | -h)
1136 ac_init_help=long ;;
1137 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1138 ac_init_help=recursive ;;
1139 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1140 ac_init_help=short ;;
1141
1142 -host | --host | --hos | --ho)
1143 ac_prev=host_alias ;;
1144 -host=* | --host=* | --hos=* | --ho=*)
1145 host_alias=$ac_optarg ;;
1146
1147 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1148 ac_prev=htmldir ;;
1149 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1150 | --ht=*)
1151 htmldir=$ac_optarg ;;
1152
1153 -includedir | --includedir | --includedi | --included | --include \
1154 | --includ | --inclu | --incl | --inc)
1155 ac_prev=includedir ;;
1156 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1157 | --includ=* | --inclu=* | --incl=* | --inc=*)
1158 includedir=$ac_optarg ;;
1159
1160 -infodir | --infodir | --infodi | --infod | --info | --inf)
1161 ac_prev=infodir ;;
1162 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1163 infodir=$ac_optarg ;;
1164
1165 -libdir | --libdir | --libdi | --libd)
1166 ac_prev=libdir ;;
1167 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1168 libdir=$ac_optarg ;;
1169
1170 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1171 | --libexe | --libex | --libe)
1172 ac_prev=libexecdir ;;
1173 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1174 | --libexe=* | --libex=* | --libe=*)
1175 libexecdir=$ac_optarg ;;
1176
1177 -localedir | --localedir | --localedi | --localed | --locale)
1178 ac_prev=localedir ;;
1179 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1180 localedir=$ac_optarg ;;
1181
1182 -localstatedir | --localstatedir | --localstatedi | --localstated \
1183 | --localstate | --localstat | --localsta | --localst | --locals)
1184 ac_prev=localstatedir ;;
1185 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1186 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1187 localstatedir=$ac_optarg ;;
1188
1189 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1190 ac_prev=mandir ;;
1191 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1192 mandir=$ac_optarg ;;
1193
1194 -nfp | --nfp | --nf)
1195 # Obsolete; use --without-fp.
1196 with_fp=no ;;
1197
1198 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1199 | --no-cr | --no-c | -n)
1200 no_create=yes ;;
1201
1202 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1203 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1204 no_recursion=yes ;;
1205
1206 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1207 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1208 | --oldin | --oldi | --old | --ol | --o)
1209 ac_prev=oldincludedir ;;
1210 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1211 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1212 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1213 oldincludedir=$ac_optarg ;;
1214
1215 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1216 ac_prev=prefix ;;
1217 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1218 prefix=$ac_optarg ;;
1219
1220 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1221 | --program-pre | --program-pr | --program-p)
1222 ac_prev=program_prefix ;;
1223 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1224 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1225 program_prefix=$ac_optarg ;;
1226
1227 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1228 | --program-suf | --program-su | --program-s)
1229 ac_prev=program_suffix ;;
1230 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1231 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1232 program_suffix=$ac_optarg ;;
1233
1234 -program-transform-name | --program-transform-name \
1235 | --program-transform-nam | --program-transform-na \
1236 | --program-transform-n | --program-transform- \
1237 | --program-transform | --program-transfor \
1238 | --program-transfo | --program-transf \
1239 | --program-trans | --program-tran \
1240 | --progr-tra | --program-tr | --program-t)
1241 ac_prev=program_transform_name ;;
1242 -program-transform-name=* | --program-transform-name=* \
1243 | --program-transform-nam=* | --program-transform-na=* \
1244 | --program-transform-n=* | --program-transform-=* \
1245 | --program-transform=* | --program-transfor=* \
1246 | --program-transfo=* | --program-transf=* \
1247 | --program-trans=* | --program-tran=* \
1248 | --progr-tra=* | --program-tr=* | --program-t=*)
1249 program_transform_name=$ac_optarg ;;
1250
1251 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1252 ac_prev=pdfdir ;;
1253 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1254 pdfdir=$ac_optarg ;;
1255
1256 -psdir | --psdir | --psdi | --psd | --ps)
1257 ac_prev=psdir ;;
1258 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1259 psdir=$ac_optarg ;;
1260
1261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262 | -silent | --silent | --silen | --sile | --sil)
1263 silent=yes ;;
1264
1265 -runstatedir | --runstatedir | --runstatedi | --runstated \
1266 | --runstate | --runstat | --runsta | --runst | --runs \
1267 | --run | --ru | --r)
1268 ac_prev=runstatedir ;;
1269 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1270 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1271 | --run=* | --ru=* | --r=*)
1272 runstatedir=$ac_optarg ;;
1273
1274 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1275 ac_prev=sbindir ;;
1276 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1277 | --sbi=* | --sb=*)
1278 sbindir=$ac_optarg ;;
1279
1280 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1281 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1282 | --sharedst | --shareds | --shared | --share | --shar \
1283 | --sha | --sh)
1284 ac_prev=sharedstatedir ;;
1285 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1286 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1287 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1288 | --sha=* | --sh=*)
1289 sharedstatedir=$ac_optarg ;;
1290
1291 -site | --site | --sit)
1292 ac_prev=site ;;
1293 -site=* | --site=* | --sit=*)
1294 site=$ac_optarg ;;
1295
1296 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1297 ac_prev=srcdir ;;
1298 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1299 srcdir=$ac_optarg ;;
1300
1301 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1302 | --syscon | --sysco | --sysc | --sys | --sy)
1303 ac_prev=sysconfdir ;;
1304 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1305 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1306 sysconfdir=$ac_optarg ;;
1307
1308 -target | --target | --targe | --targ | --tar | --ta | --t)
1309 ac_prev=target_alias ;;
1310 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1311 target_alias=$ac_optarg ;;
1312
1313 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1314 verbose=yes ;;
1315
1316 -version | --version | --versio | --versi | --vers | -V)
1317 ac_init_version=: ;;
1318
1319 -with-* | --with-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 as_fn_error $? "invalid package name: '$ac_useropt'"
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1327 *"
1328 "with_$ac_useropt"
1329 "*) ;;
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1332 esac
1333 eval with_$ac_useropt=\$ac_optarg ;;
1334
1335 -without-* | --without-*)
1336 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339 as_fn_error $? "invalid package name: '$ac_useropt'"
1340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1343 *"
1344 "with_$ac_useropt"
1345 "*) ;;
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1348 esac
1349 eval with_$ac_useropt=no ;;
1350
1351 --x)
1352 # Obsolete; use --with-x.
1353 with_x=yes ;;
1354
1355 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1356 | --x-incl | --x-inc | --x-in | --x-i)
1357 ac_prev=x_includes ;;
1358 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1359 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1360 x_includes=$ac_optarg ;;
1361
1362 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1363 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1364 ac_prev=x_libraries ;;
1365 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1366 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1367 x_libraries=$ac_optarg ;;
1368
1369 -*) as_fn_error $? "unrecognized option: '$ac_option'
1370 Try '$0 --help' for more information"
1371 ;;
1372
1373 *=*)
1374 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1375 # Reject names that are not valid shell variable names.
1376 case $ac_envvar in #(
1377 '' | [0-9]* | *[!_$as_cr_alnum]* )
1378 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1379 esac
1380 eval $ac_envvar=\$ac_optarg
1381 export $ac_envvar ;;
1382
1383 *)
1384 # FIXME: should be removed in autoconf 3.0.
1385 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1386 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1388 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1389 ;;
1390
1391 esac
1392 done
1393
1394 if test -n "$ac_prev"; then
1395 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1396 as_fn_error $? "missing argument to $ac_option"
1397 fi
1398
1399 if test -n "$ac_unrecognized_opts"; then
1400 case $enable_option_checking in
1401 no) ;;
1402 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1403 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1404 esac
1405 fi
1406
1407 # Check all directory arguments for consistency.
1408 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1409 datadir sysconfdir sharedstatedir localstatedir includedir \
1410 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1411 libdir localedir mandir runstatedir
1412 do
1413 eval ac_val=\$$ac_var
1414 # Remove trailing slashes.
1415 case $ac_val in
1416 */ )
1417 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1418 eval $ac_var=\$ac_val;;
1419 esac
1420 # Be sure to have absolute directory names.
1421 case $ac_val in
1422 [\\/$]* | ?:[\\/]* ) continue;;
1423 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1424 esac
1425 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1426 done
1427
1428 # There might be people who depend on the old broken behavior: '$host'
1429 # used to hold the argument of --host etc.
1430 # FIXME: To remove some day.
1431 build=$build_alias
1432 host=$host_alias
1433 target=$target_alias
1434
1435 # FIXME: To remove some day.
1436 if test "x$host_alias" != x; then
1437 if test "x$build_alias" = x; then
1438 cross_compiling=maybe
1439 elif test "x$build_alias" != "x$host_alias"; then
1440 cross_compiling=yes
1441 fi
1442 fi
1443
1444 ac_tool_prefix=
1445 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1446
1447 test "$silent" = yes && exec 6>/dev/null
1448
1449
1450 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1451 ac_ls_di=`ls -di .` &&
1452 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1453 as_fn_error $? "working directory cannot be determined"
1454 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1455 as_fn_error $? "pwd does not report name of working directory"
1456
1457
1458 # Find the source files, if location was not specified.
1459 if test -z "$srcdir"; then
1460 ac_srcdir_defaulted=yes
1461 # Try the directory containing this script, then the parent directory.
1462 ac_confdir=`$as_dirname -- "$as_myself" ||
1463 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1464 X"$as_myself" : 'X\(//\)[^/]' \| \
1465 X"$as_myself" : 'X\(//\)$' \| \
1466 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1467 printf "%s\n" X"$as_myself" |
1468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1469 s//\1/
1470 q
1471 }
1472 /^X\(\/\/\)[^/].*/{
1473 s//\1/
1474 q
1475 }
1476 /^X\(\/\/\)$/{
1477 s//\1/
1478 q
1479 }
1480 /^X\(\/\).*/{
1481 s//\1/
1482 q
1483 }
1484 s/.*/./; q'`
1485 srcdir=$ac_confdir
1486 if test ! -r "$srcdir/$ac_unique_file"; then
1487 srcdir=..
1488 fi
1489 else
1490 ac_srcdir_defaulted=no
1491 fi
1492 if test ! -r "$srcdir/$ac_unique_file"; then
1493 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1494 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1495 fi
1496 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1497 ac_abs_confdir=`(
1498 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1499 pwd)`
1500 # When building in place, set srcdir=.
1501 if test "$ac_abs_confdir" = "$ac_pwd"; then
1502 srcdir=.
1503 fi
1504 # Remove unnecessary trailing slashes from srcdir.
1505 # Double slashes in file names in object file debugging info
1506 # mess up M-x gdb in Emacs.
1507 case $srcdir in
1508 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1509 esac
1510 for ac_var in $ac_precious_vars; do
1511 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1512 eval ac_env_${ac_var}_value=\$${ac_var}
1513 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1514 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1515 done
1516
1517 #
1518 # Report the --help message.
1519 #
1520 if test "$ac_init_help" = "long"; then
1521 # Omit some internal or obsolete options to make the list less imposing.
1522 # This message is too long to be a string in the A/UX 3.1 sh.
1523 cat <<_ACEOF
1524 'configure' configures this package to adapt to many kinds of systems.
1525
1526 Usage: $0 [OPTION]... [VAR=VALUE]...
1527
1528 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1529 VAR=VALUE. See below for descriptions of some of the useful variables.
1530
1531 Defaults for the options are specified in brackets.
1532
1533 Configuration:
1534 -h, --help display this help and exit
1535 --help=short display options specific to this package
1536 --help=recursive display the short help of all the included packages
1537 -V, --version display version information and exit
1538 -q, --quiet, --silent do not print 'checking ...' messages
1539 --cache-file=FILE cache test results in FILE [disabled]
1540 -C, --config-cache alias for '--cache-file=config.cache'
1541 -n, --no-create do not create output files
1542 --srcdir=DIR find the sources in DIR [configure dir or '..']
1543
1544 Installation directories:
1545 --prefix=PREFIX install architecture-independent files in PREFIX
1546 [$ac_default_prefix]
1547 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1548 [PREFIX]
1549
1550 By default, 'make install' will install all the files in
1551 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1552 an installation prefix other than '$ac_default_prefix' using '--prefix',
1553 for instance '--prefix=\$HOME'.
1554
1555 For better control, use the options below.
1556
1557 Fine tuning of the installation directories:
1558 --bindir=DIR user executables [EPREFIX/bin]
1559 --sbindir=DIR system admin executables [EPREFIX/sbin]
1560 --libexecdir=DIR program executables [EPREFIX/libexec]
1561 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1562 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1563 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1564 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1565 --libdir=DIR object code libraries [EPREFIX/lib]
1566 --includedir=DIR C header files [PREFIX/include]
1567 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1568 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1569 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1570 --infodir=DIR info documentation [DATAROOTDIR/info]
1571 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1572 --mandir=DIR man documentation [DATAROOTDIR/man]
1573 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1574 --htmldir=DIR html documentation [DOCDIR]
1575 --dvidir=DIR dvi documentation [DOCDIR]
1576 --pdfdir=DIR pdf documentation [DOCDIR]
1577 --psdir=DIR ps documentation [DOCDIR]
1578 _ACEOF
1579
1580 cat <<\_ACEOF
1581
1582 System types:
1583 --build=BUILD configure for building on BUILD [guessed]
1584 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1585 _ACEOF
1586 fi
1587
1588 if test -n "$ac_init_help"; then
1589
1590 cat <<\_ACEOF
1591
1592 Optional Features:
1593 --disable-option-checking ignore unrecognized --enable/--with options
1594 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1595 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1596 --disable-nls do not use Native Language Support
1597 --disable-rpath do not hardcode runtime library paths
1598 --enable-gui Enable gui [default=yes]
1599 --enable-gtk2 Use GTK 2.0 in preference to GTK 3.0 [default=no]
1600 --enable-build-doc Enable building of gretl docs [git only]
1601 --enable-build-addons Enable building of gretl addons [default=yes]
1602 --enable-build-editor Enable building of gretl_edit [default=no]
1603 --enable-quiet-build Enable quiet building
1604 --enable-swap-ends Build FRED database with swapped endianness
1605 --disable-xdg Don't Install XDG files
1606 --disable-json Don't try to include JSON support
1607 --disable-gmp Don't try to include GMP support
1608 --enable-xdg-utils Use xdg-utils for installing XDG files [default=auto]
1609 --enable-pkgbuild For building relocatable package (e.g. OS X)
1610 --disable-gnuplot-checks do not run checks for gnuplot
1611 --disable-gnuplot-3d assume gnuplot can't do interactive 3D plots
1612 --disable-www do not link to libcurl for http
1613 --enable-static[=PKGS] build static libraries [default=no]
1614 --enable-shared[=PKGS] build shared libraries [default=yes]
1615 --enable-fast-install[=PKGS]
1616 optimize for fast installation [default=yes]
1617 --disable-libtool-lock avoid locking (might break parallel builds)
1618 --enable-sse2 use sse2 if available [default=auto]
1619 --enable-avx use avx if available [default=auto]
1620 --enable-openmp use OpenMP if available [default=auto]
1621
1622 Optional Packages:
1623 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1624 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1625 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1626 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1627 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1628 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1629 --without-libintl-prefix don't search for libintl in includedir and libdir
1630 --with-lucida Use Lucida fonts for manual [git only]
1631 --with-gmake Use GNU make explicitly [default=no]
1632 --with-readline Use readline library [default=auto]
1633 --with-gsf Use libgsf [default=auto]
1634 --with-x-12-arima include X-12-ARIMA support [default=yes]
1635 --with-tramo-seats include TRAMO/SEATS support [default=yes]
1636 --with-libR include libR support [default=auto]
1637 --with-mpi include MPI support [default=auto]
1638 --with-odbc include ODBC support
1639 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1640 both]
1641 --with-aix-soname=aix|svr4|both
1642 shared library versioning (aka "SONAME") variant to
1643 provide on AIX, [default=aix].
1644 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1645 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1646 compiler's sysroot if not specified).
1647 --with-mpi-lib=PFX path to MPI library
1648 --with-mpi-include=PFX path to MPI header
1649 --with-readline-prefix=PFX Prefix where readline is installed (optional)
1650 --with-gmp-prefix=PFX Prefix where GMP is installed (optional)
1651 --with-mpfr-prefix=PFX Prefix where MPFR is installed (optional)
1652 --with-ODBC-prefix=PFX Prefix where unixODBC is installed (optional)
1653
1654 Some influential environment variables:
1655 CC C compiler command
1656 CFLAGS C compiler flags
1657 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1658 nonstandard directory <lib dir>
1659 LIBS libraries to pass to the linker, e.g. -l<library>
1660 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1661 you have headers in a nonstandard directory <include dir>
1662 CPP C preprocessor
1663 LT_SYS_LIBRARY_PATH
1664 User-defined run-time library search path.
1665 HOSTCC host compiler (for cross-build)
1666 MKLANG builder for gtksourceview files (cross-build)
1667 MKNEWS builder for NEWS file (cross-build)
1668 MKPNGLIST builder for icons index (cross-build)
1669 COMPRES GLib resource compiler (cross-build)
1670 MPICC path to MPI compiler wrapper
1671 MPILINK linker commands for MPI (cross-build)
1672 OMP_LIB linker command for OpenMP (auto)
1673 CLANG_LIB linker command for clang runtime
1674 CXX_LIB linker command for C++
1675 CXX C++ compiler command
1676 CXXFLAGS C++ compiler flags
1677 CXXCPP C++ preprocessor
1678 LAPACK_LIBS linker flags for lapack, overriding auto-detection
1679 PKG_CONFIG path to pkg-config utility
1680 PKG_CONFIG_PATH
1681 directories to add to pkg-config's search path
1682 PKG_CONFIG_LIBDIR
1683 path overriding pkg-config's built-in search path
1684 FFTW_CFLAGS C compiler flags for FFTW, overriding pkg-config
1685 FFTW_LIBS linker flags for FFTW, overriding pkg-config
1686 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1687 CURL_LIBS linker flags for CURL, overriding pkg-config
1688 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1689 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1690 JSON_GLIB_CFLAGS
1691 C compiler flags for JSON_GLIB, overriding pkg-config
1692 JSON_GLIB_LIBS
1693 linker flags for JSON_GLIB, overriding pkg-config
1694 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
1695 GTK2_LIBS linker flags for GTK2, overriding pkg-config
1696 GTK3_CFLAGS C compiler flags for GTK3, overriding pkg-config
1697 GTK3_LIBS linker flags for GTK3, overriding pkg-config
1698 GTKMAC_CFLAGS
1699 C compiler flags for GTKMAC, overriding pkg-config
1700 GTKMAC_LIBS linker flags for GTKMAC, overriding pkg-config
1701 GTKSOURCEVIEW_CFLAGS
1702 C compiler flags for GTKSOURCEVIEW, overriding pkg-config
1703 GTKSOURCEVIEW_LIBS
1704 linker flags for GTKSOURCEVIEW, overriding pkg-config
1705 GDK_PIXBUF_CFLAGS
1706 C compiler flags for GDK_PIXBUF, overriding pkg-config
1707 GDK_PIXBUF_LIBS
1708 linker flags for GDK_PIXBUF, overriding pkg-config
1709 XML_CFLAGS C compiler flags for XML, overriding pkg-config
1710 XML_LIBS linker flags for XML, overriding pkg-config
1711 XSLT_CFLAGS C compiler flags for XSLT, overriding pkg-config
1712 XSLT_LIBS linker flags for XSLT, overriding pkg-config
1713 RLIB_CFLAGS C compiler flags for RLIB, overriding pkg-config
1714 RLIB_LIBS linker flags for RLIB, overriding pkg-config
1715 GSF_CFLAGS C compiler flags for GSF, overriding pkg-config
1716 GSF_LIBS linker flags for GSF, overriding pkg-config
1717
1718 Use these variables to override the choices made by 'configure' or to help
1719 it to find libraries and programs with nonstandard names/locations.
1720
1721 Report bugs to the package provider.
1722 _ACEOF
1723 ac_status=$?
1724 fi
1725
1726 if test "$ac_init_help" = "recursive"; then
1727 # If there are subdirs, report their specific --help.
1728 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1729 test -d "$ac_dir" ||
1730 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1731 continue
1732 ac_builddir=.
1733
1734 case "$ac_dir" in
1735 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1736 *)
1737 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1738 # A ".." for each directory in $ac_dir_suffix.
1739 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1740 case $ac_top_builddir_sub in
1741 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1743 esac ;;
1744 esac
1745 ac_abs_top_builddir=$ac_pwd
1746 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1747 # for backward compatibility:
1748 ac_top_builddir=$ac_top_build_prefix
1749
1750 case $srcdir in
1751 .) # We are building in place.
1752 ac_srcdir=.
1753 ac_top_srcdir=$ac_top_builddir_sub
1754 ac_abs_top_srcdir=$ac_pwd ;;
1755 [\\/]* | ?:[\\/]* ) # Absolute name.
1756 ac_srcdir=$srcdir$ac_dir_suffix;
1757 ac_top_srcdir=$srcdir
1758 ac_abs_top_srcdir=$srcdir ;;
1759 *) # Relative name.
1760 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1761 ac_top_srcdir=$ac_top_build_prefix$srcdir
1762 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1763 esac
1764 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1765
1766 cd "$ac_dir" || { ac_status=$?; continue; }
1767 # Check for configure.gnu first; this name is used for a wrapper for
1768 # Metaconfig's "Configure" on case-insensitive file systems.
1769 if test -f "$ac_srcdir/configure.gnu"; then
1770 echo &&
1771 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1772 elif test -f "$ac_srcdir/configure"; then
1773 echo &&
1774 $SHELL "$ac_srcdir/configure" --help=recursive
1775 else
1776 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1777 fi || ac_status=$?
1778 cd "$ac_pwd" || { ac_status=$?; break; }
1779 done
1780 fi
1781
1782 test -n "$ac_init_help" && exit $ac_status
1783 if $ac_init_version; then
1784 cat <<\_ACEOF
1785 configure
1786 generated by GNU Autoconf 2.72
1787
1788 Copyright (C) 2023 Free Software Foundation, Inc.
1789 This configure script is free software; the Free Software Foundation
1790 gives unlimited permission to copy, distribute and modify it.
1791 _ACEOF
1792 exit
1793 fi
1794
1795 ## ------------------------ ##
1796 ## Autoconf initialization. ##
1797 ## ------------------------ ##
1798
1799 # ac_fn_c_try_compile LINENO
1800 # --------------------------
1801 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_compile ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext conftest.beam
1806 if { { ac_try="$ac_compile"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 printf "%s\n" "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.$ac_objext
1825 then :
1826 ac_retval=0
1827 else case e in #(
1828 e) printf "%s\n" "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 ac_retval=1 ;;
1832 esac
1833 fi
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1836
1837 } # ac_fn_c_try_compile
1838
1839 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1840 # -------------------------------------------------------
1841 # Tests whether HEADER exists and can be compiled using the include files in
1842 # INCLUDES, setting the cache variable VAR accordingly.
1843 ac_fn_c_check_header_compile ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 printf %s "checking for $2... " >&6; }
1848 if eval test \${$3+y}
1849 then :
1850 printf %s "(cached) " >&6
1851 else case e in #(
1852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 $4
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"
1858 then :
1859 eval "$3=yes"
1860 else case e in #(
1861 e) eval "$3=no" ;;
1862 esac
1863 fi
1864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1865 esac
1866 fi
1867 eval ac_res=\$$3
1868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 printf "%s\n" "$ac_res" >&6; }
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872 } # ac_fn_c_check_header_compile
1873
1874 # ac_fn_c_try_cpp LINENO
1875 # ----------------------
1876 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_c_try_cpp ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if { { ac_try="$ac_cpp conftest.$ac_ext"
1881 case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 printf "%s\n" "$ac_try_echo"; } >&5
1887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1888 ac_status=$?
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1893 fi
1894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } > conftest.i && {
1896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1897 test ! -s conftest.err
1898 }
1899 then :
1900 ac_retval=0
1901 else case e in #(
1902 e) printf "%s\n" "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 ac_retval=1 ;;
1906 esac
1907 fi
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1910
1911 } # ac_fn_c_try_cpp
1912
1913 # ac_fn_c_try_link LINENO
1914 # -----------------------
1915 # Try to link conftest.$ac_ext, and return whether this succeeded.
1916 ac_fn_c_try_link ()
1917 {
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1920 if { { ac_try="$ac_link"
1921 case "(($ac_try" in
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 printf "%s\n" "$ac_try_echo"; } >&5
1927 (eval "$ac_link") 2>conftest.err
1928 ac_status=$?
1929 if test -s conftest.err; then
1930 grep -v '^ *+' conftest.err >conftest.er1
1931 cat conftest.er1 >&5
1932 mv -f conftest.er1 conftest.err
1933 fi
1934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } && {
1936 test -z "$ac_c_werror_flag" ||
1937 test ! -s conftest.err
1938 } && test -s conftest$ac_exeext && {
1939 test "$cross_compiling" = yes ||
1940 test -x conftest$ac_exeext
1941 }
1942 then :
1943 ac_retval=0
1944 else case e in #(
1945 e) printf "%s\n" "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948 ac_retval=1 ;;
1949 esac
1950 fi
1951 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1952 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1953 # interfere with the next link command; also delete a directory that is
1954 # left behind by Apple's compiler. We do this before executing the actions.
1955 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957 as_fn_set_status $ac_retval
1958
1959 } # ac_fn_c_try_link
1960
1961 # ac_fn_c_try_run LINENO
1962 # ----------------------
1963 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1964 # executables *can* be run.
1965 ac_fn_c_try_run ()
1966 {
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 if { { ac_try="$ac_link"
1969 case "(($ac_try" in
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1972 esac
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 printf "%s\n" "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>&5
1976 ac_status=$?
1977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1979 { { case "(($ac_try" in
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1982 esac
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 printf "%s\n" "$ac_try_echo"; } >&5
1985 (eval "$ac_try") 2>&5
1986 ac_status=$?
1987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; }; }
1989 then :
1990 ac_retval=0
1991 else case e in #(
1992 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1993 printf "%s\n" "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1995
1996 ac_retval=$ac_status ;;
1997 esac
1998 fi
1999 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 as_fn_set_status $ac_retval
2002
2003 } # ac_fn_c_try_run
2004
2005 # ac_fn_c_check_func LINENO FUNC VAR
2006 # ----------------------------------
2007 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2008 ac_fn_c_check_func ()
2009 {
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 printf %s "checking for $2... " >&6; }
2013 if eval test \${$3+y}
2014 then :
2015 printf %s "(cached) " >&6
2016 else case e in #(
2017 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2021 #define $2 innocuous_$2
2022
2023 /* System header to define __stub macros and hopefully few prototypes,
2024 which can conflict with char $2 (void); below. */
2025
2026 #include <limits.h>
2027 #undef $2
2028
2029 /* Override any GCC internal prototype to avoid an error.
2030 Use char because int might match the return type of a GCC
2031 builtin and then its argument prototype would still apply. */
2032 #ifdef __cplusplus
2033 extern "C"
2034 #endif
2035 char $2 (void);
2036 /* The GNU C library defines this for functions which it implements
2037 to always fail with ENOSYS. Some functions are actually named
2038 something starting with __ and the normal name is an alias. */
2039 #if defined __stub_$2 || defined __stub___$2
2040 choke me
2041 #endif
2042
2043 int
2044 main (void)
2045 {
2046 return $2 ();
2047 ;
2048 return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_link "$LINENO"
2052 then :
2053 eval "$3=yes"
2054 else case e in #(
2055 e) eval "$3=no" ;;
2056 esac
2057 fi
2058 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2059 conftest$ac_exeext conftest.$ac_ext ;;
2060 esac
2061 fi
2062 eval ac_res=\$$3
2063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 printf "%s\n" "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066
2067 } # ac_fn_c_check_func
2068
2069 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2070 # --------------------------------------------
2071 # Tries to find the compile-time value of EXPR in a program that includes
2072 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2073 # computed
2074 ac_fn_c_compute_int ()
2075 {
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 if test "$cross_compiling" = yes; then
2078 # Depending upon the size, compute the lo and hi bounds.
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 $4
2082 int
2083 main (void)
2084 {
2085 static int test_array [1 - 2 * !(($2) >= 0)];
2086 test_array [0] = 0;
2087 return test_array [0];
2088
2089 ;
2090 return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"
2094 then :
2095 ac_lo=0 ac_mid=0
2096 while :; do
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2099 $4
2100 int
2101 main (void)
2102 {
2103 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2104 test_array [0] = 0;
2105 return test_array [0];
2106
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"
2112 then :
2113 ac_hi=$ac_mid; break
2114 else case e in #(
2115 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2116 if test $ac_lo -le $ac_mid; then
2117 ac_lo= ac_hi=
2118 break
2119 fi
2120 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2121 esac
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2124 done
2125 else case e in #(
2126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2128 $4
2129 int
2130 main (void)
2131 {
2132 static int test_array [1 - 2 * !(($2) < 0)];
2133 test_array [0] = 0;
2134 return test_array [0];
2135
2136 ;
2137 return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"
2141 then :
2142 ac_hi=-1 ac_mid=-1
2143 while :; do
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2146 $4
2147 int
2148 main (void)
2149 {
2150 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2151 test_array [0] = 0;
2152 return test_array [0];
2153
2154 ;
2155 return 0;
2156 }
2157 _ACEOF
2158 if ac_fn_c_try_compile "$LINENO"
2159 then :
2160 ac_lo=$ac_mid; break
2161 else case e in #(
2162 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2163 if test $ac_mid -le $ac_hi; then
2164 ac_lo= ac_hi=
2165 break
2166 fi
2167 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2168 esac
2169 fi
2170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2171 done
2172 else case e in #(
2173 e) ac_lo= ac_hi= ;;
2174 esac
2175 fi
2176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2177 esac
2178 fi
2179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2180 # Binary search between lo and hi bounds.
2181 while test "x$ac_lo" != "x$ac_hi"; do
2182 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2185 $4
2186 int
2187 main (void)
2188 {
2189 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2190 test_array [0] = 0;
2191 return test_array [0];
2192
2193 ;
2194 return 0;
2195 }
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"
2198 then :
2199 ac_hi=$ac_mid
2200 else case e in #(
2201 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2202 esac
2203 fi
2204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2205 done
2206 case $ac_lo in #((
2207 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2208 '') ac_retval=1 ;;
2209 esac
2210 else
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2213 $4
2214 static long int longval (void) { return $2; }
2215 static unsigned long int ulongval (void) { return $2; }
2216 #include <stdio.h>
2217 #include <stdlib.h>
2218 int
2219 main (void)
2220 {
2221
2222 FILE *f = fopen ("conftest.val", "w");
2223 if (! f)
2224 return 1;
2225 if (($2) < 0)
2226 {
2227 long int i = longval ();
2228 if (i != ($2))
2229 return 1;
2230 fprintf (f, "%ld", i);
2231 }
2232 else
2233 {
2234 unsigned long int i = ulongval ();
2235 if (i != ($2))
2236 return 1;
2237 fprintf (f, "%lu", i);
2238 }
2239 /* Do not output a trailing newline, as this causes \r\n confusion
2240 on some platforms. */
2241 return ferror (f) || fclose (f) != 0;
2242
2243 ;
2244 return 0;
2245 }
2246 _ACEOF
2247 if ac_fn_c_try_run "$LINENO"
2248 then :
2249 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2250 else case e in #(
2251 e) ac_retval=1 ;;
2252 esac
2253 fi
2254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2255 conftest.$ac_objext conftest.beam conftest.$ac_ext
2256 rm -f conftest.val
2257
2258 fi
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260 as_fn_set_status $ac_retval
2261
2262 } # ac_fn_c_compute_int
2263
2264 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2265 # ------------------------------------------------------------------
2266 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2267 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2268 ac_fn_check_decl ()
2269 {
2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271 as_decl_name=`echo $2|sed 's/ *(.*//'`
2272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2273 printf %s "checking whether $as_decl_name is declared... " >&6; }
2274 if eval test \${$3+y}
2275 then :
2276 printf %s "(cached) " >&6
2277 else case e in #(
2278 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2279 eval ac_save_FLAGS=\$$6
2280 as_fn_append $6 " $5"
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2283 $4
2284 int
2285 main (void)
2286 {
2287 #ifndef $as_decl_name
2288 #ifdef __cplusplus
2289 (void) $as_decl_use;
2290 #else
2291 (void) $as_decl_name;
2292 #endif
2293 #endif
2294
2295 ;
2296 return 0;
2297 }
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"
2300 then :
2301 eval "$3=yes"
2302 else case e in #(
2303 e) eval "$3=no" ;;
2304 esac
2305 fi
2306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2307 eval $6=\$ac_save_FLAGS
2308 ;;
2309 esac
2310 fi
2311 eval ac_res=\$$3
2312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2313 printf "%s\n" "$ac_res" >&6; }
2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315
2316 } # ac_fn_check_decl
2317
2318 # ac_fn_cxx_try_compile LINENO
2319 # ----------------------------
2320 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2321 ac_fn_cxx_try_compile ()
2322 {
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 rm -f conftest.$ac_objext conftest.beam
2325 if { { ac_try="$ac_compile"
2326 case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329 esac
2330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2331 printf "%s\n" "$ac_try_echo"; } >&5
2332 (eval "$ac_compile") 2>conftest.err
2333 ac_status=$?
2334 if test -s conftest.err; then
2335 grep -v '^ *+' conftest.err >conftest.er1
2336 cat conftest.er1 >&5
2337 mv -f conftest.er1 conftest.err
2338 fi
2339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340 test $ac_status = 0; } && {
2341 test -z "$ac_cxx_werror_flag" ||
2342 test ! -s conftest.err
2343 } && test -s conftest.$ac_objext
2344 then :
2345 ac_retval=0
2346 else case e in #(
2347 e) printf "%s\n" "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 ac_retval=1 ;;
2351 esac
2352 fi
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354 as_fn_set_status $ac_retval
2355
2356 } # ac_fn_cxx_try_compile
2357
2358 # ac_fn_cxx_try_cpp LINENO
2359 # ------------------------
2360 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2361 ac_fn_cxx_try_cpp ()
2362 {
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 if { { ac_try="$ac_cpp conftest.$ac_ext"
2365 case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368 esac
2369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2370 printf "%s\n" "$ac_try_echo"; } >&5
2371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2372 ac_status=$?
2373 if test -s conftest.err; then
2374 grep -v '^ *+' conftest.err >conftest.er1
2375 cat conftest.er1 >&5
2376 mv -f conftest.er1 conftest.err
2377 fi
2378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2379 test $ac_status = 0; } > conftest.i && {
2380 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2381 test ! -s conftest.err
2382 }
2383 then :
2384 ac_retval=0
2385 else case e in #(
2386 e) printf "%s\n" "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 ac_retval=1 ;;
2390 esac
2391 fi
2392 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2393 as_fn_set_status $ac_retval
2394
2395 } # ac_fn_cxx_try_cpp
2396
2397 # ac_fn_cxx_try_link LINENO
2398 # -------------------------
2399 # Try to link conftest.$ac_ext, and return whether this succeeded.
2400 ac_fn_cxx_try_link ()
2401 {
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2404 if { { ac_try="$ac_link"
2405 case "(($ac_try" in
2406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407 *) ac_try_echo=$ac_try;;
2408 esac
2409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2410 printf "%s\n" "$ac_try_echo"; } >&5
2411 (eval "$ac_link") 2>conftest.err
2412 ac_status=$?
2413 if test -s conftest.err; then
2414 grep -v '^ *+' conftest.err >conftest.er1
2415 cat conftest.er1 >&5
2416 mv -f conftest.er1 conftest.err
2417 fi
2418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2419 test $ac_status = 0; } && {
2420 test -z "$ac_cxx_werror_flag" ||
2421 test ! -s conftest.err
2422 } && test -s conftest$ac_exeext && {
2423 test "$cross_compiling" = yes ||
2424 test -x conftest$ac_exeext
2425 }
2426 then :
2427 ac_retval=0
2428 else case e in #(
2429 e) printf "%s\n" "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2431
2432 ac_retval=1 ;;
2433 esac
2434 fi
2435 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2436 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2437 # interfere with the next link command; also delete a directory that is
2438 # left behind by Apple's compiler. We do this before executing the actions.
2439 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2440 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2441 as_fn_set_status $ac_retval
2442
2443 } # ac_fn_cxx_try_link
2444 ac_configure_args_raw=
2445 for ac_arg
2446 do
2447 case $ac_arg in
2448 *\'*)
2449 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2450 esac
2451 as_fn_append ac_configure_args_raw " '$ac_arg'"
2452 done
2453
2454 case $ac_configure_args_raw in
2455 *$as_nl*)
2456 ac_safe_unquote= ;;
2457 *)
2458 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2459 ac_unsafe_a="$ac_unsafe_z#~"
2460 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2461 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2462 esac
2463
2464 cat >config.log <<_ACEOF
2465 This file contains any messages produced by compilers while
2466 running configure, to aid debugging if configure makes a mistake.
2467
2468 It was created by $as_me, which was
2469 generated by GNU Autoconf 2.72. Invocation command line was
2470
2471 $ $0$ac_configure_args_raw
2472
2473 _ACEOF
2474 exec 5>>config.log
2475 {
2476 cat <<_ASUNAME
2477 ## --------- ##
2478 ## Platform. ##
2479 ## --------- ##
2480
2481 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2482 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2483 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2484 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2485 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2486
2487 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2488 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2489
2490 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2491 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2492 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2493 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2494 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2495 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2496 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2497
2498 _ASUNAME
2499
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503 IFS=$as_save_IFS
2504 case $as_dir in #(((
2505 '') as_dir=./ ;;
2506 */) ;;
2507 *) as_dir=$as_dir/ ;;
2508 esac
2509 printf "%s\n" "PATH: $as_dir"
2510 done
2511 IFS=$as_save_IFS
2512
2513 } >&5
2514
2515 cat >&5 <<_ACEOF
2516
2517
2518 ## ----------- ##
2519 ## Core tests. ##
2520 ## ----------- ##
2521
2522 _ACEOF
2523
2524
2525 # Keep a trace of the command line.
2526 # Strip out --no-create and --no-recursion so they do not pile up.
2527 # Strip out --silent because we don't want to record it for future runs.
2528 # Also quote any args containing shell meta-characters.
2529 # Make two passes to allow for proper duplicate-argument suppression.
2530 ac_configure_args=
2531 ac_configure_args0=
2532 ac_configure_args1=
2533 ac_must_keep_next=false
2534 for ac_pass in 1 2
2535 do
2536 for ac_arg
2537 do
2538 case $ac_arg in
2539 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2541 | -silent | --silent | --silen | --sile | --sil)
2542 continue ;;
2543 *\'*)
2544 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2545 esac
2546 case $ac_pass in
2547 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2548 2)
2549 as_fn_append ac_configure_args1 " '$ac_arg'"
2550 if test $ac_must_keep_next = true; then
2551 ac_must_keep_next=false # Got value, back to normal.
2552 else
2553 case $ac_arg in
2554 *=* | --config-cache | -C | -disable-* | --disable-* \
2555 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2556 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2557 | -with-* | --with-* | -without-* | --without-* | --x)
2558 case "$ac_configure_args0 " in
2559 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2560 esac
2561 ;;
2562 -* ) ac_must_keep_next=true ;;
2563 esac
2564 fi
2565 as_fn_append ac_configure_args " '$ac_arg'"
2566 ;;
2567 esac
2568 done
2569 done
2570 { ac_configure_args0=; unset ac_configure_args0;}
2571 { ac_configure_args1=; unset ac_configure_args1;}
2572
2573 # When interrupted or exit'd, cleanup temporary files, and complete
2574 # config.log. We remove comments because anyway the quotes in there
2575 # would cause problems or look ugly.
2576 # WARNING: Use '\'' to represent an apostrophe within the trap.
2577 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2578 trap 'exit_status=$?
2579 # Sanitize IFS.
2580 IFS=" "" $as_nl"
2581 # Save into config.log some information that might help in debugging.
2582 {
2583 echo
2584
2585 printf "%s\n" "## ---------------- ##
2586 ## Cache variables. ##
2587 ## ---------------- ##"
2588 echo
2589 # The following way of writing the cache mishandles newlines in values,
2590 (
2591 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2592 eval ac_val=\$$ac_var
2593 case $ac_val in #(
2594 *${as_nl}*)
2595 case $ac_var in #(
2596 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2597 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2598 esac
2599 case $ac_var in #(
2600 _ | IFS | as_nl) ;; #(
2601 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2602 *) { eval $ac_var=; unset $ac_var;} ;;
2603 esac ;;
2604 esac
2605 done
2606 (set) 2>&1 |
2607 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2608 *${as_nl}ac_space=\ *)
2609 sed -n \
2610 "s/'\''/'\''\\\\'\'''\''/g;
2611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2612 ;; #(
2613 *)
2614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2615 ;;
2616 esac |
2617 sort
2618 )
2619 echo
2620
2621 printf "%s\n" "## ----------------- ##
2622 ## Output variables. ##
2623 ## ----------------- ##"
2624 echo
2625 for ac_var in $ac_subst_vars
2626 do
2627 eval ac_val=\$$ac_var
2628 case $ac_val in
2629 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2630 esac
2631 printf "%s\n" "$ac_var='\''$ac_val'\''"
2632 done | sort
2633 echo
2634
2635 if test -n "$ac_subst_files"; then
2636 printf "%s\n" "## ------------------- ##
2637 ## File substitutions. ##
2638 ## ------------------- ##"
2639 echo
2640 for ac_var in $ac_subst_files
2641 do
2642 eval ac_val=\$$ac_var
2643 case $ac_val in
2644 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2645 esac
2646 printf "%s\n" "$ac_var='\''$ac_val'\''"
2647 done | sort
2648 echo
2649 fi
2650
2651 if test -s confdefs.h; then
2652 printf "%s\n" "## ----------- ##
2653 ## confdefs.h. ##
2654 ## ----------- ##"
2655 echo
2656 cat confdefs.h
2657 echo
2658 fi
2659 test "$ac_signal" != 0 &&
2660 printf "%s\n" "$as_me: caught signal $ac_signal"
2661 printf "%s\n" "$as_me: exit $exit_status"
2662 } >&5
2663 rm -f core *.core core.conftest.* &&
2664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2665 exit $exit_status
2666 ' 0
2667 for ac_signal in 1 2 13 15; do
2668 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2669 done
2670 ac_signal=0
2671
2672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2673 rm -f -r conftest* confdefs.h
2674
2675 printf "%s\n" "/* confdefs.h */" > confdefs.h
2676
2677 # Predefined preprocessor variables.
2678
2679 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2680
2681 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2682
2683 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2684
2685 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2686
2687 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2688
2689 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2690
2691
2692 # Let the site file select an alternate cache file if it wants to.
2693 # Prefer an explicitly selected file to automatically selected ones.
2694 if test -n "$CONFIG_SITE"; then
2695 ac_site_files="$CONFIG_SITE"
2696 elif test "x$prefix" != xNONE; then
2697 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2698 else
2699 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2700 fi
2701
2702 for ac_site_file in $ac_site_files
2703 do
2704 case $ac_site_file in #(
2705 */*) :
2706 ;; #(
2707 *) :
2708 ac_site_file=./$ac_site_file ;;
2709 esac
2710 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2712 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2713 sed 's/^/| /' "$ac_site_file" >&5
2714 . "$ac_site_file" \
2715 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2716 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2717 as_fn_error $? "failed to load site script $ac_site_file
2718 See 'config.log' for more details" "$LINENO" 5; }
2719 fi
2720 done
2721
2722 if test -r "$cache_file"; then
2723 # Some versions of bash will fail to source /dev/null (special files
2724 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2725 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2727 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2728 case $cache_file in
2729 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2730 *) . "./$cache_file";;
2731 esac
2732 fi
2733 else
2734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2735 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2736 >$cache_file
2737 fi
2738
2739 # Test code for whether the C compiler supports C89 (global declarations)
2740 ac_c_conftest_c89_globals='
2741 /* Does the compiler advertise C89 conformance?
2742 Do not test the value of __STDC__, because some compilers set it to 0
2743 while being otherwise adequately conformant. */
2744 #if !defined __STDC__
2745 # error "Compiler does not advertise C89 conformance"
2746 #endif
2747
2748 #include <stddef.h>
2749 #include <stdarg.h>
2750 struct stat;
2751 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2752 struct buf { int x; };
2753 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2754 static char *e (char **p, int i)
2755 {
2756 return p[i];
2757 }
2758 static char *f (char * (*g) (char **, int), char **p, ...)
2759 {
2760 char *s;
2761 va_list v;
2762 va_start (v,p);
2763 s = g (p, va_arg (v,int));
2764 va_end (v);
2765 return s;
2766 }
2767
2768 /* C89 style stringification. */
2769 #define noexpand_stringify(a) #a
2770 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2771
2772 /* C89 style token pasting. Exercises some of the corner cases that
2773 e.g. old MSVC gets wrong, but not very hard. */
2774 #define noexpand_concat(a,b) a##b
2775 #define expand_concat(a,b) noexpand_concat(a,b)
2776 extern int vA;
2777 extern int vbee;
2778 #define aye A
2779 #define bee B
2780 int *pvA = &expand_concat(v,aye);
2781 int *pvbee = &noexpand_concat(v,bee);
2782
2783 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2784 function prototypes and stuff, but not \xHH hex character constants.
2785 These do not provoke an error unfortunately, instead are silently treated
2786 as an "x". The following induces an error, until -std is added to get
2787 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2788 array size at least. It is necessary to write \x00 == 0 to get something
2789 that is true only with -std. */
2790 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2791
2792 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2793 inside strings and character constants. */
2794 #define FOO(x) '\''x'\''
2795 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2796
2797 int test (int i, double x);
2798 struct s1 {int (*f) (int a);};
2799 struct s2 {int (*f) (double a);};
2800 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2801 int, int);'
2802
2803 # Test code for whether the C compiler supports C89 (body of main).
2804 ac_c_conftest_c89_main='
2805 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2806 '
2807
2808 # Test code for whether the C compiler supports C99 (global declarations)
2809 ac_c_conftest_c99_globals='
2810 /* Does the compiler advertise C99 conformance? */
2811 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2812 # error "Compiler does not advertise C99 conformance"
2813 #endif
2814
2815 // See if C++-style comments work.
2816
2817 #include <stdbool.h>
2818 extern int puts (const char *);
2819 extern int printf (const char *, ...);
2820 extern int dprintf (int, const char *, ...);
2821 extern void *malloc (size_t);
2822 extern void free (void *);
2823
2824 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2825 // dprintf is used instead of fprintf to avoid needing to declare
2826 // FILE and stderr.
2827 #define debug(...) dprintf (2, __VA_ARGS__)
2828 #define showlist(...) puts (#__VA_ARGS__)
2829 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2830 static void
2831 test_varargs_macros (void)
2832 {
2833 int x = 1234;
2834 int y = 5678;
2835 debug ("Flag");
2836 debug ("X = %d\n", x);
2837 showlist (The first, second, and third items.);
2838 report (x>y, "x is %d but y is %d", x, y);
2839 }
2840
2841 // Check long long types.
2842 #define BIG64 18446744073709551615ull
2843 #define BIG32 4294967295ul
2844 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2845 #if !BIG_OK
2846 #error "your preprocessor is broken"
2847 #endif
2848 #if BIG_OK
2849 #else
2850 #error "your preprocessor is broken"
2851 #endif
2852 static long long int bignum = -9223372036854775807LL;
2853 static unsigned long long int ubignum = BIG64;
2854
2855 struct incomplete_array
2856 {
2857 int datasize;
2858 double data[];
2859 };
2860
2861 struct named_init {
2862 int number;
2863 const wchar_t *name;
2864 double average;
2865 };
2866
2867 typedef const char *ccp;
2868
2869 static inline int
2870 test_restrict (ccp restrict text)
2871 {
2872 // Iterate through items via the restricted pointer.
2873 // Also check for declarations in for loops.
2874 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2875 continue;
2876 return 0;
2877 }
2878
2879 // Check varargs and va_copy.
2880 static bool
2881 test_varargs (const char *format, ...)
2882 {
2883 va_list args;
2884 va_start (args, format);
2885 va_list args_copy;
2886 va_copy (args_copy, args);
2887
2888 const char *str = "";
2889 int number = 0;
2890 float fnumber = 0;
2891
2892 while (*format)
2893 {
2894 switch (*format++)
2895 {
2896 case '\''s'\'': // string
2897 str = va_arg (args_copy, const char *);
2898 break;
2899 case '\''d'\'': // int
2900 number = va_arg (args_copy, int);
2901 break;
2902 case '\''f'\'': // float
2903 fnumber = va_arg (args_copy, double);
2904 break;
2905 default:
2906 break;
2907 }
2908 }
2909 va_end (args_copy);
2910 va_end (args);
2911
2912 return *str && number && fnumber;
2913 }
2914 '
2915
2916 # Test code for whether the C compiler supports C99 (body of main).
2917 ac_c_conftest_c99_main='
2918 // Check bool.
2919 _Bool success = false;
2920 success |= (argc != 0);
2921
2922 // Check restrict.
2923 if (test_restrict ("String literal") == 0)
2924 success = true;
2925 char *restrict newvar = "Another string";
2926
2927 // Check varargs.
2928 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2929 test_varargs_macros ();
2930
2931 // Check flexible array members.
2932 struct incomplete_array *ia =
2933 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2934 ia->datasize = 10;
2935 for (int i = 0; i < ia->datasize; ++i)
2936 ia->data[i] = i * 1.234;
2937 // Work around memory leak warnings.
2938 free (ia);
2939
2940 // Check named initializers.
2941 struct named_init ni = {
2942 .number = 34,
2943 .name = L"Test wide string",
2944 .average = 543.34343,
2945 };
2946
2947 ni.number = 58;
2948
2949 int dynamic_array[ni.number];
2950 dynamic_array[0] = argv[0][0];
2951 dynamic_array[ni.number - 1] = 543;
2952
2953 // work around unused variable warnings
2954 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2955 || dynamic_array[ni.number - 1] != 543);
2956 '
2957
2958 # Test code for whether the C compiler supports C11 (global declarations)
2959 ac_c_conftest_c11_globals='
2960 /* Does the compiler advertise C11 conformance? */
2961 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2962 # error "Compiler does not advertise C11 conformance"
2963 #endif
2964
2965 // Check _Alignas.
2966 char _Alignas (double) aligned_as_double;
2967 char _Alignas (0) no_special_alignment;
2968 extern char aligned_as_int;
2969 char _Alignas (0) _Alignas (int) aligned_as_int;
2970
2971 // Check _Alignof.
2972 enum
2973 {
2974 int_alignment = _Alignof (int),
2975 int_array_alignment = _Alignof (int[100]),
2976 char_alignment = _Alignof (char)
2977 };
2978 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2979
2980 // Check _Noreturn.
2981 int _Noreturn does_not_return (void) { for (;;) continue; }
2982
2983 // Check _Static_assert.
2984 struct test_static_assert
2985 {
2986 int x;
2987 _Static_assert (sizeof (int) <= sizeof (long int),
2988 "_Static_assert does not work in struct");
2989 long int y;
2990 };
2991
2992 // Check UTF-8 literals.
2993 #define u8 syntax error!
2994 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2995
2996 // Check duplicate typedefs.
2997 typedef long *long_ptr;
2998 typedef long int *long_ptr;
2999 typedef long_ptr long_ptr;
3000
3001 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3002 struct anonymous
3003 {
3004 union {
3005 struct { int i; int j; };
3006 struct { int k; long int l; } w;
3007 };
3008 int m;
3009 } v1;
3010 '
3011
3012 # Test code for whether the C compiler supports C11 (body of main).
3013 ac_c_conftest_c11_main='
3014 _Static_assert ((offsetof (struct anonymous, i)
3015 == offsetof (struct anonymous, w.k)),
3016 "Anonymous union alignment botch");
3017 v1.i = 2;
3018 v1.w.k = 5;
3019 ok |= v1.i != 5;
3020 '
3021
3022 # Test code for whether the C compiler supports C11 (complete).
3023 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3024 ${ac_c_conftest_c99_globals}
3025 ${ac_c_conftest_c11_globals}
3026
3027 int
3028 main (int argc, char **argv)
3029 {
3030 int ok = 0;
3031 ${ac_c_conftest_c89_main}
3032 ${ac_c_conftest_c99_main}
3033 ${ac_c_conftest_c11_main}
3034 return ok;
3035 }
3036 "
3037
3038 # Test code for whether the C compiler supports C99 (complete).
3039 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3040 ${ac_c_conftest_c99_globals}
3041
3042 int
3043 main (int argc, char **argv)
3044 {
3045 int ok = 0;
3046 ${ac_c_conftest_c89_main}
3047 ${ac_c_conftest_c99_main}
3048 return ok;
3049 }
3050 "
3051
3052 # Test code for whether the C compiler supports C89 (complete).
3053 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3054
3055 int
3056 main (int argc, char **argv)
3057 {
3058 int ok = 0;
3059 ${ac_c_conftest_c89_main}
3060 return ok;
3061 }
3062 "
3063
3064 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3065 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3066 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3067 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3068 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3069 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3070 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3071 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3072 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3073 gt_needs="$gt_needs "
3074 # Test code for whether the C++ compiler supports C++98 (global declarations)
3075 ac_cxx_conftest_cxx98_globals='
3076 // Does the compiler advertise C++98 conformance?
3077 #if !defined __cplusplus || __cplusplus < 199711L
3078 # error "Compiler does not advertise C++98 conformance"
3079 #endif
3080
3081 // These inclusions are to reject old compilers that
3082 // lack the unsuffixed header files.
3083 #include <cstdlib>
3084 #include <exception>
3085
3086 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3087 extern void assert (int);
3088 namespace std {
3089 extern int strcmp (const char *, const char *);
3090 }
3091
3092 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3093 using std::exception;
3094 using std::strcmp;
3095
3096 namespace {
3097
3098 void test_exception_syntax()
3099 {
3100 try {
3101 throw "test";
3102 } catch (const char *s) {
3103 // Extra parentheses suppress a warning when building autoconf itself,
3104 // due to lint rules shared with more typical C programs.
3105 assert (!(strcmp) (s, "test"));
3106 }
3107 }
3108
3109 template <typename T> struct test_template
3110 {
3111 T const val;
3112 explicit test_template(T t) : val(t) {}
3113 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3114 };
3115
3116 } // anonymous namespace
3117 '
3118
3119 # Test code for whether the C++ compiler supports C++98 (body of main)
3120 ac_cxx_conftest_cxx98_main='
3121 assert (argc);
3122 assert (! argv[0]);
3123 {
3124 test_exception_syntax ();
3125 test_template<double> tt (2.0);
3126 assert (tt.add (4) == 6.0);
3127 assert (true && !false);
3128 }
3129 '
3130
3131 # Test code for whether the C++ compiler supports C++11 (global declarations)
3132 ac_cxx_conftest_cxx11_globals='
3133 // Does the compiler advertise C++ 2011 conformance?
3134 #if !defined __cplusplus || __cplusplus < 201103L
3135 # error "Compiler does not advertise C++11 conformance"
3136 #endif
3137
3138 namespace cxx11test
3139 {
3140 constexpr int get_val() { return 20; }
3141
3142 struct testinit
3143 {
3144 int i;
3145 double d;
3146 };
3147
3148 class delegate
3149 {
3150 public:
3151 delegate(int n) : n(n) {}
3152 delegate(): delegate(2354) {}
3153
3154 virtual int getval() { return this->n; };
3155 protected:
3156 int n;
3157 };
3158
3159 class overridden : public delegate
3160 {
3161 public:
3162 overridden(int n): delegate(n) {}
3163 virtual int getval() override final { return this->n * 2; }
3164 };
3165
3166 class nocopy
3167 {
3168 public:
3169 nocopy(int i): i(i) {}
3170 nocopy() = default;
3171 nocopy(const nocopy&) = delete;
3172 nocopy & operator=(const nocopy&) = delete;
3173 private:
3174 int i;
3175 };
3176
3177 // for testing lambda expressions
3178 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3179 {
3180 return f(v);
3181 }
3182
3183 // for testing variadic templates and trailing return types
3184 template <typename V> auto sum(V first) -> V
3185 {
3186 return first;
3187 }
3188 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3189 {
3190 return first + sum(rest...);
3191 }
3192 }
3193 '
3194
3195 # Test code for whether the C++ compiler supports C++11 (body of main)
3196 ac_cxx_conftest_cxx11_main='
3197 {
3198 // Test auto and decltype
3199 auto a1 = 6538;
3200 auto a2 = 48573953.4;
3201 auto a3 = "String literal";
3202
3203 int total = 0;
3204 for (auto i = a3; *i; ++i) { total += *i; }
3205
3206 decltype(a2) a4 = 34895.034;
3207 }
3208 {
3209 // Test constexpr
3210 short sa[cxx11test::get_val()] = { 0 };
3211 }
3212 {
3213 // Test initializer lists
3214 cxx11test::testinit il = { 4323, 435234.23544 };
3215 }
3216 {
3217 // Test range-based for
3218 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3219 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3220 for (auto &x : array) { x += 23; }
3221 }
3222 {
3223 // Test lambda expressions
3224 using cxx11test::eval;
3225 assert (eval ([](int x) { return x*2; }, 21) == 42);
3226 double d = 2.0;
3227 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3228 assert (d == 5.0);
3229 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3230 assert (d == 5.0);
3231 }
3232 {
3233 // Test use of variadic templates
3234 using cxx11test::sum;
3235 auto a = sum(1);
3236 auto b = sum(1, 2);
3237 auto c = sum(1.0, 2.0, 3.0);
3238 }
3239 {
3240 // Test constructor delegation
3241 cxx11test::delegate d1;
3242 cxx11test::delegate d2();
3243 cxx11test::delegate d3(45);
3244 }
3245 {
3246 // Test override and final
3247 cxx11test::overridden o1(55464);
3248 }
3249 {
3250 // Test nullptr
3251 char *c = nullptr;
3252 }
3253 {
3254 // Test template brackets
3255 test_template<::test_template<int>> v(test_template<int>(12));
3256 }
3257 {
3258 // Unicode literals
3259 char const *utf8 = u8"UTF-8 string \u2500";
3260 char16_t const *utf16 = u"UTF-8 string \u2500";
3261 char32_t const *utf32 = U"UTF-32 string \u2500";
3262 }
3263 '
3264
3265 # Test code for whether the C compiler supports C++11 (complete).
3266 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3267 ${ac_cxx_conftest_cxx11_globals}
3268
3269 int
3270 main (int argc, char **argv)
3271 {
3272 int ok = 0;
3273 ${ac_cxx_conftest_cxx98_main}
3274 ${ac_cxx_conftest_cxx11_main}
3275 return ok;
3276 }
3277 "
3278
3279 # Test code for whether the C compiler supports C++98 (complete).
3280 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3281 int
3282 main (int argc, char **argv)
3283 {
3284 int ok = 0;
3285 ${ac_cxx_conftest_cxx98_main}
3286 return ok;
3287 }
3288 "
3289
3290
3291 # Auxiliary files required by this configure script.
3292 ac_aux_files="ltmain.sh config.guess config.sub config.rpath install-sh"
3293
3294 # Locations in which to look for auxiliary files.
3295 ac_aux_dir_candidates="$srcdir/tools"
3296
3297 # Search for a directory containing all of the required auxiliary files,
3298 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3299 # If we don't find one directory that contains all the files we need,
3300 # we report the set of missing files from the *first* directory in
3301 # $ac_aux_dir_candidates and give up.
3302 ac_missing_aux_files=""
3303 ac_first_candidate=:
3304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 as_found=false
3307 for as_dir in $ac_aux_dir_candidates
3308 do
3309 IFS=$as_save_IFS
3310 case $as_dir in #(((
3311 '') as_dir=./ ;;
3312 */) ;;
3313 *) as_dir=$as_dir/ ;;
3314 esac
3315 as_found=:
3316
3317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3318 ac_aux_dir_found=yes
3319 ac_install_sh=
3320 for ac_aux in $ac_aux_files
3321 do
3322 # As a special case, if "install-sh" is required, that requirement
3323 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3324 # and $ac_install_sh is set appropriately for whichever one is found.
3325 if test x"$ac_aux" = x"install-sh"
3326 then
3327 if test -f "${as_dir}install-sh"; then
3328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3329 ac_install_sh="${as_dir}install-sh -c"
3330 elif test -f "${as_dir}install.sh"; then
3331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3332 ac_install_sh="${as_dir}install.sh -c"
3333 elif test -f "${as_dir}shtool"; then
3334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3335 ac_install_sh="${as_dir}shtool install -c"
3336 else
3337 ac_aux_dir_found=no
3338 if $ac_first_candidate; then
3339 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3340 else
3341 break
3342 fi
3343 fi
3344 else
3345 if test -f "${as_dir}${ac_aux}"; then
3346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3347 else
3348 ac_aux_dir_found=no
3349 if $ac_first_candidate; then
3350 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3351 else
3352 break
3353 fi
3354 fi
3355 fi
3356 done
3357 if test "$ac_aux_dir_found" = yes; then
3358 ac_aux_dir="$as_dir"
3359 break
3360 fi
3361 ac_first_candidate=false
3362
3363 as_found=false
3364 done
3365 IFS=$as_save_IFS
3366 if $as_found
3367 then :
3368
3369 else case e in #(
3370 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3371 esac
3372 fi
3373
3374
3375 # These three variables are undocumented and unsupported,
3376 # and are intended to be withdrawn in a future Autoconf release.
3377 # They can cause serious problems if a builder's source tree is in a directory
3378 # whose full name contains unusual characters.
3379 if test -f "${ac_aux_dir}config.guess"; then
3380 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3381 fi
3382 if test -f "${ac_aux_dir}config.sub"; then
3383 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3384 fi
3385 if test -f "$ac_aux_dir/configure"; then
3386 ac_configure="$SHELL ${ac_aux_dir}configure"
3387 fi
3388
3389 # Check that the precious variables saved in the cache have kept the same
3390 # value.
3391 ac_cache_corrupted=false
3392 for ac_var in $ac_precious_vars; do
3393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3394 eval ac_new_set=\$ac_env_${ac_var}_set
3395 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3396 eval ac_new_val=\$ac_env_${ac_var}_value
3397 case $ac_old_set,$ac_new_set in
3398 set,)
3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3400 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3401 ac_cache_corrupted=: ;;
3402 ,set)
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3404 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3405 ac_cache_corrupted=: ;;
3406 ,);;
3407 *)
3408 if test "x$ac_old_val" != "x$ac_new_val"; then
3409 # differences in whitespace do not lead to failure.
3410 ac_old_val_w=`echo x $ac_old_val`
3411 ac_new_val_w=`echo x $ac_new_val`
3412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3414 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3415 ac_cache_corrupted=:
3416 else
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3418 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3419 eval $ac_var=\$ac_old_val
3420 fi
3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3422 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3424 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3425 fi;;
3426 esac
3427 # Pass precious variables to config.status.
3428 if test "$ac_new_set" = set; then
3429 case $ac_new_val in
3430 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3431 *) ac_arg=$ac_var=$ac_new_val ;;
3432 esac
3433 case " $ac_configure_args " in
3434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3435 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3436 esac
3437 fi
3438 done
3439 if $ac_cache_corrupted; then
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3441 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3443 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3444 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3445 and start over" "$LINENO" 5
3446 fi
3447 ## -------------------- ##
3448 ## Main body of script. ##
3449 ## -------------------- ##
3450
3451 ac_ext=c
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456
3457
3458
3459 ac_config_headers="$ac_config_headers config.h"
3460
3461
3462
3463 PACKAGE=gretl
3464
3465 VERSION=`grep GRETL_VERSION $srcdir/lib/src/version.h | awk '{ print $NF }' | sed -e 's/\"//g'`
3466 LIBGRETL_CURRENT=`grep LIBGRETL_CURRENT $srcdir/lib/src/version.h | awk '{ print $NF }'`
3467 LIBGRETL_REVISION=`grep LIBGRETL_REVISION $srcdir/lib/src/version.h | awk '{ print $NF }'`
3468 LIBGRETL_AGE=`grep LIBGRETL_AGE $srcdir/lib/src/version.h | awk '{ print $NF }'`
3469 LIBVERSION="$LIBGRETL_CURRENT.$LIBGRETL_AGE.$LIBGRETL_REVISION"
3470
3471 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3472
3473 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3474
3475 printf "%s\n" "#define LIBVERSION \"$LIBVERSION\"" >>confdefs.h
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486 echo "configuring for $PACKAGE $VERSION (library version $LIBVERSION)"
3487
3488 build_gui="yes"
3489 prefer_gtk2="no"
3490 build_docs="no"
3491 build_addons="yes"
3492 build_editor="no"
3493 use_lucida="no"
3494 build_po="no"
3495 have_readline="no"
3496 new_readline="no"
3497 have_zlib="no"
3498 gtk_version="none"
3499 use_xdg="yes"
3500 use_xdg_utils="no"
3501 try_xdg_utils="yes"
3502 use_gsf="no"
3503 try_gmp="yes"
3504 have_gmp="no"
3505 have_mpfr="no"
3506 gmp_fail="no"
3507 mpfr_fail="no"
3508 have_lapack="no"
3509 have_fftw3="no"
3510 seek_inet_addr="no"
3511 have_tramo="yes"
3512 have_x12a="yes"
3513 have_sourceview="no"
3514 gtksv_completion="no"
3515 have_gnu_regex="no"
3516 have_libxml2="no"
3517 have_xslt="no"
3518 try_json_glib="yes"
3519 have_json_glib="no"
3520 try_odbc="no"
3521 have_odbc="no"
3522 try_mpi="yes"
3523 have_mpi="no"
3524 try_libR="yes"
3525 have_libR="no"
3526 try_bc="no"
3527 check_gnuplot="yes"
3528 use_curl="yes"
3529 darwin_build="no"
3530 win32_build="no"
3531 win32pkg="no"
3532 win32bit="no"
3533 macpkg="no"
3534 quiet_build="no"
3535 swap_ends="no"
3536 pkg_build="no"
3537 mac_native="no"
3538 mac_integration="no"
3539 gui_disabled="no"
3540 gp_3d="yes"
3541 MAKE="make"
3542 XML_LIBS=
3543 FONTREQ="\\RequirePackage{ae}"
3544 RT_LIB=
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555 ac_ext=c
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560 if test -n "$ac_tool_prefix"; then
3561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3562 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 printf %s "checking for $ac_word... " >&6; }
3565 if test ${ac_cv_prog_CC+y}
3566 then :
3567 printf %s "(cached) " >&6
3568 else case e in #(
3569 e) if test -n "$CC"; then
3570 ac_cv_prog_CC="$CC" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575 IFS=$as_save_IFS
3576 case $as_dir in #(((
3577 '') as_dir=./ ;;
3578 */) ;;
3579 *) as_dir=$as_dir/ ;;
3580 esac
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587 done
3588 done
3589 IFS=$as_save_IFS
3590
3591 fi ;;
3592 esac
3593 fi
3594 CC=$ac_cv_prog_CC
3595 if test -n "$CC"; then
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597 printf "%s\n" "$CC" >&6; }
3598 else
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 printf "%s\n" "no" >&6; }
3601 fi
3602
3603
3604 fi
3605 if test -z "$ac_cv_prog_CC"; then
3606 ac_ct_CC=$CC
3607 # Extract the first word of "gcc", so it can be a program name with args.
3608 set dummy gcc; ac_word=$2
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610 printf %s "checking for $ac_word... " >&6; }
3611 if test ${ac_cv_prog_ac_ct_CC+y}
3612 then :
3613 printf %s "(cached) " >&6
3614 else case e in #(
3615 e) if test -n "$ac_ct_CC"; then
3616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3620 do
3621 IFS=$as_save_IFS
3622 case $as_dir in #(((
3623 '') as_dir=./ ;;
3624 */) ;;
3625 *) as_dir=$as_dir/ ;;
3626 esac
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3629 ac_cv_prog_ac_ct_CC="gcc"
3630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3631 break 2
3632 fi
3633 done
3634 done
3635 IFS=$as_save_IFS
3636
3637 fi ;;
3638 esac
3639 fi
3640 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3641 if test -n "$ac_ct_CC"; then
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3643 printf "%s\n" "$ac_ct_CC" >&6; }
3644 else
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 printf "%s\n" "no" >&6; }
3647 fi
3648
3649 if test "x$ac_ct_CC" = x; then
3650 CC=""
3651 else
3652 case $cross_compiling:$ac_tool_warned in
3653 yes:)
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3655 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3656 ac_tool_warned=yes ;;
3657 esac
3658 CC=$ac_ct_CC
3659 fi
3660 else
3661 CC="$ac_cv_prog_CC"
3662 fi
3663
3664 if test -z "$CC"; then
3665 if test -n "$ac_tool_prefix"; then
3666 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3667 set dummy ${ac_tool_prefix}cc; ac_word=$2
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 printf %s "checking for $ac_word... " >&6; }
3670 if test ${ac_cv_prog_CC+y}
3671 then :
3672 printf %s "(cached) " >&6
3673 else case e in #(
3674 e) if test -n "$CC"; then
3675 ac_cv_prog_CC="$CC" # Let the user override the test.
3676 else
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3679 do
3680 IFS=$as_save_IFS
3681 case $as_dir in #(((
3682 '') as_dir=./ ;;
3683 */) ;;
3684 *) as_dir=$as_dir/ ;;
3685 esac
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3688 ac_cv_prog_CC="${ac_tool_prefix}cc"
3689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3690 break 2
3691 fi
3692 done
3693 done
3694 IFS=$as_save_IFS
3695
3696 fi ;;
3697 esac
3698 fi
3699 CC=$ac_cv_prog_CC
3700 if test -n "$CC"; then
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3702 printf "%s\n" "$CC" >&6; }
3703 else
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 printf "%s\n" "no" >&6; }
3706 fi
3707
3708
3709 fi
3710 fi
3711 if test -z "$CC"; then
3712 # Extract the first word of "cc", so it can be a program name with args.
3713 set dummy cc; ac_word=$2
3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715 printf %s "checking for $ac_word... " >&6; }
3716 if test ${ac_cv_prog_CC+y}
3717 then :
3718 printf %s "(cached) " >&6
3719 else case e in #(
3720 e) if test -n "$CC"; then
3721 ac_cv_prog_CC="$CC" # Let the user override the test.
3722 else
3723 ac_prog_rejected=no
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3726 do
3727 IFS=$as_save_IFS
3728 case $as_dir in #(((
3729 '') as_dir=./ ;;
3730 */) ;;
3731 *) as_dir=$as_dir/ ;;
3732 esac
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3735 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3736 ac_prog_rejected=yes
3737 continue
3738 fi
3739 ac_cv_prog_CC="cc"
3740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743 done
3744 done
3745 IFS=$as_save_IFS
3746
3747 if test $ac_prog_rejected = yes; then
3748 # We found a bogon in the path, so make sure we never use it.
3749 set dummy $ac_cv_prog_CC
3750 shift
3751 if test $# != 0; then
3752 # We chose a different compiler from the bogus one.
3753 # However, it has the same basename, so the bogon will be chosen
3754 # first if we set CC to just the basename; use the full file name.
3755 shift
3756 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3757 fi
3758 fi
3759 fi ;;
3760 esac
3761 fi
3762 CC=$ac_cv_prog_CC
3763 if test -n "$CC"; then
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3765 printf "%s\n" "$CC" >&6; }
3766 else
3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 printf "%s\n" "no" >&6; }
3769 fi
3770
3771
3772 fi
3773 if test -z "$CC"; then
3774 if test -n "$ac_tool_prefix"; then
3775 for ac_prog in cl.exe
3776 do
3777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3778 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 printf %s "checking for $ac_word... " >&6; }
3781 if test ${ac_cv_prog_CC+y}
3782 then :
3783 printf %s "(cached) " >&6
3784 else case e in #(
3785 e) if test -n "$CC"; then
3786 ac_cv_prog_CC="$CC" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791 IFS=$as_save_IFS
3792 case $as_dir in #(((
3793 '') as_dir=./ ;;
3794 */) ;;
3795 *) as_dir=$as_dir/ ;;
3796 esac
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3801 break 2
3802 fi
3803 done
3804 done
3805 IFS=$as_save_IFS
3806
3807 fi ;;
3808 esac
3809 fi
3810 CC=$ac_cv_prog_CC
3811 if test -n "$CC"; then
3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3813 printf "%s\n" "$CC" >&6; }
3814 else
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 printf "%s\n" "no" >&6; }
3817 fi
3818
3819
3820 test -n "$CC" && break
3821 done
3822 fi
3823 if test -z "$CC"; then
3824 ac_ct_CC=$CC
3825 for ac_prog in cl.exe
3826 do
3827 # Extract the first word of "$ac_prog", so it can be a program name with args.
3828 set dummy $ac_prog; ac_word=$2
3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 printf %s "checking for $ac_word... " >&6; }
3831 if test ${ac_cv_prog_ac_ct_CC+y}
3832 then :
3833 printf %s "(cached) " >&6
3834 else case e in #(
3835 e) if test -n "$ac_ct_CC"; then
3836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3840 do
3841 IFS=$as_save_IFS
3842 case $as_dir in #(((
3843 '') as_dir=./ ;;
3844 */) ;;
3845 *) as_dir=$as_dir/ ;;
3846 esac
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3849 ac_cv_prog_ac_ct_CC="$ac_prog"
3850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3851 break 2
3852 fi
3853 done
3854 done
3855 IFS=$as_save_IFS
3856
3857 fi ;;
3858 esac
3859 fi
3860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3861 if test -n "$ac_ct_CC"; then
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3863 printf "%s\n" "$ac_ct_CC" >&6; }
3864 else
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 printf "%s\n" "no" >&6; }
3867 fi
3868
3869
3870 test -n "$ac_ct_CC" && break
3871 done
3872
3873 if test "x$ac_ct_CC" = x; then
3874 CC=""
3875 else
3876 case $cross_compiling:$ac_tool_warned in
3877 yes:)
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3879 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3880 ac_tool_warned=yes ;;
3881 esac
3882 CC=$ac_ct_CC
3883 fi
3884 fi
3885
3886 fi
3887 if test -z "$CC"; then
3888 if test -n "$ac_tool_prefix"; then
3889 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3890 set dummy ${ac_tool_prefix}clang; ac_word=$2
3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 printf %s "checking for $ac_word... " >&6; }
3893 if test ${ac_cv_prog_CC+y}
3894 then :
3895 printf %s "(cached) " >&6
3896 else case e in #(
3897 e) if test -n "$CC"; then
3898 ac_cv_prog_CC="$CC" # Let the user override the test.
3899 else
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3902 do
3903 IFS=$as_save_IFS
3904 case $as_dir in #(((
3905 '') as_dir=./ ;;
3906 */) ;;
3907 *) as_dir=$as_dir/ ;;
3908 esac
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3911 ac_cv_prog_CC="${ac_tool_prefix}clang"
3912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3913 break 2
3914 fi
3915 done
3916 done
3917 IFS=$as_save_IFS
3918
3919 fi ;;
3920 esac
3921 fi
3922 CC=$ac_cv_prog_CC
3923 if test -n "$CC"; then
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3925 printf "%s\n" "$CC" >&6; }
3926 else
3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 printf "%s\n" "no" >&6; }
3929 fi
3930
3931
3932 fi
3933 if test -z "$ac_cv_prog_CC"; then
3934 ac_ct_CC=$CC
3935 # Extract the first word of "clang", so it can be a program name with args.
3936 set dummy clang; ac_word=$2
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 printf %s "checking for $ac_word... " >&6; }
3939 if test ${ac_cv_prog_ac_ct_CC+y}
3940 then :
3941 printf %s "(cached) " >&6
3942 else case e in #(
3943 e) if test -n "$ac_ct_CC"; then
3944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949 IFS=$as_save_IFS
3950 case $as_dir in #(((
3951 '') as_dir=./ ;;
3952 */) ;;
3953 *) as_dir=$as_dir/ ;;
3954 esac
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3957 ac_cv_prog_ac_ct_CC="clang"
3958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3959 break 2
3960 fi
3961 done
3962 done
3963 IFS=$as_save_IFS
3964
3965 fi ;;
3966 esac
3967 fi
3968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3969 if test -n "$ac_ct_CC"; then
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3971 printf "%s\n" "$ac_ct_CC" >&6; }
3972 else
3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974 printf "%s\n" "no" >&6; }
3975 fi
3976
3977 if test "x$ac_ct_CC" = x; then
3978 CC=""
3979 else
3980 case $cross_compiling:$ac_tool_warned in
3981 yes:)
3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3983 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3984 ac_tool_warned=yes ;;
3985 esac
3986 CC=$ac_ct_CC
3987 fi
3988 else
3989 CC="$ac_cv_prog_CC"
3990 fi
3991
3992 fi
3993
3994
3995 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3996 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3997 as_fn_error $? "no acceptable C compiler found in \$PATH
3998 See 'config.log' for more details" "$LINENO" 5; }
3999
4000 # Provide some information about the compiler.
4001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4002 set X $ac_compile
4003 ac_compiler=$2
4004 for ac_option in --version -v -V -qversion -version; do
4005 { { ac_try="$ac_compiler $ac_option >&5"
4006 case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009 esac
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 printf "%s\n" "$ac_try_echo"; } >&5
4012 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4013 ac_status=$?
4014 if test -s conftest.err; then
4015 sed '10a\
4016 ... rest of stderr output deleted ...
4017 10q' conftest.err >conftest.er1
4018 cat conftest.er1 >&5
4019 fi
4020 rm -f conftest.er1 conftest.err
4021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; }
4023 done
4024
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4027
4028 int
4029 main (void)
4030 {
4031
4032 ;
4033 return 0;
4034 }
4035 _ACEOF
4036 ac_clean_files_save=$ac_clean_files
4037 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4038 # Try to create an executable without -o first, disregard a.out.
4039 # It will help us diagnose broken compilers, and finding out an intuition
4040 # of exeext.
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4042 printf %s "checking whether the C compiler works... " >&6; }
4043 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4044
4045 # The possible output files:
4046 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4047
4048 ac_rmfiles=
4049 for ac_file in $ac_files
4050 do
4051 case $ac_file in
4052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4053 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4054 esac
4055 done
4056 rm -f $ac_rmfiles
4057
4058 if { { ac_try="$ac_link_default"
4059 case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062 esac
4063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4064 printf "%s\n" "$ac_try_echo"; } >&5
4065 (eval "$ac_link_default") 2>&5
4066 ac_status=$?
4067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4068 test $ac_status = 0; }
4069 then :
4070 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4071 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4072 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4073 # so that the user can short-circuit this test for compilers unknown to
4074 # Autoconf.
4075 for ac_file in $ac_files ''
4076 do
4077 test -f "$ac_file" || continue
4078 case $ac_file in
4079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4080 ;;
4081 [ab].out )
4082 # We found the default executable, but exeext='' is most
4083 # certainly right.
4084 break;;
4085 *.* )
4086 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4087 then :; else
4088 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4089 fi
4090 # We set ac_cv_exeext here because the later test for it is not
4091 # safe: cross compilers may not add the suffix if given an '-o'
4092 # argument, so we may need to know it at that point already.
4093 # Even if this section looks crufty: it has the advantage of
4094 # actually working.
4095 break;;
4096 * )
4097 break;;
4098 esac
4099 done
4100 test "$ac_cv_exeext" = no && ac_cv_exeext=
4101
4102 else case e in #(
4103 e) ac_file='' ;;
4104 esac
4105 fi
4106 if test -z "$ac_file"
4107 then :
4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 printf "%s\n" "no" >&6; }
4110 printf "%s\n" "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4114 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4115 as_fn_error 77 "C compiler cannot create executables
4116 See 'config.log' for more details" "$LINENO" 5; }
4117 else case e in #(
4118 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4119 printf "%s\n" "yes" >&6; } ;;
4120 esac
4121 fi
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4123 printf %s "checking for C compiler default output file name... " >&6; }
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4125 printf "%s\n" "$ac_file" >&6; }
4126 ac_exeext=$ac_cv_exeext
4127
4128 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4129 ac_clean_files=$ac_clean_files_save
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4131 printf %s "checking for suffix of executables... " >&6; }
4132 if { { ac_try="$ac_link"
4133 case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4136 esac
4137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4138 printf "%s\n" "$ac_try_echo"; } >&5
4139 (eval "$ac_link") 2>&5
4140 ac_status=$?
4141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4142 test $ac_status = 0; }
4143 then :
4144 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4145 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4146 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4147 # 'rm'.
4148 for ac_file in conftest.exe conftest conftest.*; do
4149 test -f "$ac_file" || continue
4150 case $ac_file in
4151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4152 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4153 break;;
4154 * ) break;;
4155 esac
4156 done
4157 else case e in #(
4158 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4159 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4160 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4161 See 'config.log' for more details" "$LINENO" 5; } ;;
4162 esac
4163 fi
4164 rm -f conftest conftest$ac_cv_exeext
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4166 printf "%s\n" "$ac_cv_exeext" >&6; }
4167
4168 rm -f conftest.$ac_ext
4169 EXEEXT=$ac_cv_exeext
4170 ac_exeext=$EXEEXT
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 #include <stdio.h>
4174 int
4175 main (void)
4176 {
4177 FILE *f = fopen ("conftest.out", "w");
4178 if (!f)
4179 return 1;
4180 return ferror (f) || fclose (f) != 0;
4181
4182 ;
4183 return 0;
4184 }
4185 _ACEOF
4186 ac_clean_files="$ac_clean_files conftest.out"
4187 # Check that the compiler produces executables we can run. If not, either
4188 # the compiler is broken, or we cross compile.
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4190 printf %s "checking whether we are cross compiling... " >&6; }
4191 if test "$cross_compiling" != yes; then
4192 { { ac_try="$ac_link"
4193 case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196 esac
4197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4198 printf "%s\n" "$ac_try_echo"; } >&5
4199 (eval "$ac_link") 2>&5
4200 ac_status=$?
4201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4202 test $ac_status = 0; }
4203 if { ac_try='./conftest$ac_cv_exeext'
4204 { { case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207 esac
4208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4209 printf "%s\n" "$ac_try_echo"; } >&5
4210 (eval "$ac_try") 2>&5
4211 ac_status=$?
4212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213 test $ac_status = 0; }; }; then
4214 cross_compiling=no
4215 else
4216 if test "$cross_compiling" = maybe; then
4217 cross_compiling=yes
4218 else
4219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4220 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4221 as_fn_error 77 "cannot run C compiled programs.
4222 If you meant to cross compile, use '--host'.
4223 See 'config.log' for more details" "$LINENO" 5; }
4224 fi
4225 fi
4226 fi
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4228 printf "%s\n" "$cross_compiling" >&6; }
4229
4230 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4231 conftest.o conftest.obj conftest.out
4232 ac_clean_files=$ac_clean_files_save
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4234 printf %s "checking for suffix of object files... " >&6; }
4235 if test ${ac_cv_objext+y}
4236 then :
4237 printf %s "(cached) " >&6
4238 else case e in #(
4239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241
4242 int
4243 main (void)
4244 {
4245
4246 ;
4247 return 0;
4248 }
4249 _ACEOF
4250 rm -f conftest.o conftest.obj
4251 if { { ac_try="$ac_compile"
4252 case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4257 printf "%s\n" "$ac_try_echo"; } >&5
4258 (eval "$ac_compile") 2>&5
4259 ac_status=$?
4260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4261 test $ac_status = 0; }
4262 then :
4263 for ac_file in conftest.o conftest.obj conftest.*; do
4264 test -f "$ac_file" || continue;
4265 case $ac_file in
4266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4268 break;;
4269 esac
4270 done
4271 else case e in #(
4272 e) printf "%s\n" "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4274
4275 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4276 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4277 as_fn_error $? "cannot compute suffix of object files: cannot compile
4278 See 'config.log' for more details" "$LINENO" 5; } ;;
4279 esac
4280 fi
4281 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4282 esac
4283 fi
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4285 printf "%s\n" "$ac_cv_objext" >&6; }
4286 OBJEXT=$ac_cv_objext
4287 ac_objext=$OBJEXT
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4289 printf %s "checking whether the compiler supports GNU C... " >&6; }
4290 if test ${ac_cv_c_compiler_gnu+y}
4291 then :
4292 printf %s "(cached) " >&6
4293 else case e in #(
4294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296
4297 int
4298 main (void)
4299 {
4300 #ifndef __GNUC__
4301 choke me
4302 #endif
4303
4304 ;
4305 return 0;
4306 }
4307 _ACEOF
4308 if ac_fn_c_try_compile "$LINENO"
4309 then :
4310 ac_compiler_gnu=yes
4311 else case e in #(
4312 e) ac_compiler_gnu=no ;;
4313 esac
4314 fi
4315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4316 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4317 ;;
4318 esac
4319 fi
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4321 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323
4324 if test $ac_compiler_gnu = yes; then
4325 GCC=yes
4326 else
4327 GCC=
4328 fi
4329 ac_test_CFLAGS=${CFLAGS+y}
4330 ac_save_CFLAGS=$CFLAGS
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4332 printf %s "checking whether $CC accepts -g... " >&6; }
4333 if test ${ac_cv_prog_cc_g+y}
4334 then :
4335 printf %s "(cached) " >&6
4336 else case e in #(
4337 e) ac_save_c_werror_flag=$ac_c_werror_flag
4338 ac_c_werror_flag=yes
4339 ac_cv_prog_cc_g=no
4340 CFLAGS="-g"
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343
4344 int
4345 main (void)
4346 {
4347
4348 ;
4349 return 0;
4350 }
4351 _ACEOF
4352 if ac_fn_c_try_compile "$LINENO"
4353 then :
4354 ac_cv_prog_cc_g=yes
4355 else case e in #(
4356 e) CFLAGS=""
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4359
4360 int
4361 main (void)
4362 {
4363
4364 ;
4365 return 0;
4366 }
4367 _ACEOF
4368 if ac_fn_c_try_compile "$LINENO"
4369 then :
4370
4371 else case e in #(
4372 e) ac_c_werror_flag=$ac_save_c_werror_flag
4373 CFLAGS="-g"
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4376
4377 int
4378 main (void)
4379 {
4380
4381 ;
4382 return 0;
4383 }
4384 _ACEOF
4385 if ac_fn_c_try_compile "$LINENO"
4386 then :
4387 ac_cv_prog_cc_g=yes
4388 fi
4389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4390 esac
4391 fi
4392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4393 esac
4394 fi
4395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4396 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4397 esac
4398 fi
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4400 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4401 if test $ac_test_CFLAGS; then
4402 CFLAGS=$ac_save_CFLAGS
4403 elif test $ac_cv_prog_cc_g = yes; then
4404 if test "$GCC" = yes; then
4405 CFLAGS="-g -O2"
4406 else
4407 CFLAGS="-g"
4408 fi
4409 else
4410 if test "$GCC" = yes; then
4411 CFLAGS="-O2"
4412 else
4413 CFLAGS=
4414 fi
4415 fi
4416 ac_prog_cc_stdc=no
4417 if test x$ac_prog_cc_stdc = xno
4418 then :
4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4420 printf %s "checking for $CC option to enable C11 features... " >&6; }
4421 if test ${ac_cv_prog_cc_c11+y}
4422 then :
4423 printf %s "(cached) " >&6
4424 else case e in #(
4425 e) ac_cv_prog_cc_c11=no
4426 ac_save_CC=$CC
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429 $ac_c_conftest_c11_program
4430 _ACEOF
4431 for ac_arg in '' -std=gnu11
4432 do
4433 CC="$ac_save_CC $ac_arg"
4434 if ac_fn_c_try_compile "$LINENO"
4435 then :
4436 ac_cv_prog_cc_c11=$ac_arg
4437 fi
4438 rm -f core conftest.err conftest.$ac_objext conftest.beam
4439 test "x$ac_cv_prog_cc_c11" != "xno" && break
4440 done
4441 rm -f conftest.$ac_ext
4442 CC=$ac_save_CC ;;
4443 esac
4444 fi
4445
4446 if test "x$ac_cv_prog_cc_c11" = xno
4447 then :
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4449 printf "%s\n" "unsupported" >&6; }
4450 else case e in #(
4451 e) if test "x$ac_cv_prog_cc_c11" = x
4452 then :
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4454 printf "%s\n" "none needed" >&6; }
4455 else case e in #(
4456 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4457 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4458 CC="$CC $ac_cv_prog_cc_c11" ;;
4459 esac
4460 fi
4461 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4462 ac_prog_cc_stdc=c11 ;;
4463 esac
4464 fi
4465 fi
4466 if test x$ac_prog_cc_stdc = xno
4467 then :
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4469 printf %s "checking for $CC option to enable C99 features... " >&6; }
4470 if test ${ac_cv_prog_cc_c99+y}
4471 then :
4472 printf %s "(cached) " >&6
4473 else case e in #(
4474 e) ac_cv_prog_cc_c99=no
4475 ac_save_CC=$CC
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478 $ac_c_conftest_c99_program
4479 _ACEOF
4480 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4481 do
4482 CC="$ac_save_CC $ac_arg"
4483 if ac_fn_c_try_compile "$LINENO"
4484 then :
4485 ac_cv_prog_cc_c99=$ac_arg
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext conftest.beam
4488 test "x$ac_cv_prog_cc_c99" != "xno" && break
4489 done
4490 rm -f conftest.$ac_ext
4491 CC=$ac_save_CC ;;
4492 esac
4493 fi
4494
4495 if test "x$ac_cv_prog_cc_c99" = xno
4496 then :
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4498 printf "%s\n" "unsupported" >&6; }
4499 else case e in #(
4500 e) if test "x$ac_cv_prog_cc_c99" = x
4501 then :
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4503 printf "%s\n" "none needed" >&6; }
4504 else case e in #(
4505 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4506 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4507 CC="$CC $ac_cv_prog_cc_c99" ;;
4508 esac
4509 fi
4510 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4511 ac_prog_cc_stdc=c99 ;;
4512 esac
4513 fi
4514 fi
4515 if test x$ac_prog_cc_stdc = xno
4516 then :
4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4518 printf %s "checking for $CC option to enable C89 features... " >&6; }
4519 if test ${ac_cv_prog_cc_c89+y}
4520 then :
4521 printf %s "(cached) " >&6
4522 else case e in #(
4523 e) ac_cv_prog_cc_c89=no
4524 ac_save_CC=$CC
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527 $ac_c_conftest_c89_program
4528 _ACEOF
4529 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4530 do
4531 CC="$ac_save_CC $ac_arg"
4532 if ac_fn_c_try_compile "$LINENO"
4533 then :
4534 ac_cv_prog_cc_c89=$ac_arg
4535 fi
4536 rm -f core conftest.err conftest.$ac_objext conftest.beam
4537 test "x$ac_cv_prog_cc_c89" != "xno" && break
4538 done
4539 rm -f conftest.$ac_ext
4540 CC=$ac_save_CC ;;
4541 esac
4542 fi
4543
4544 if test "x$ac_cv_prog_cc_c89" = xno
4545 then :
4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4547 printf "%s\n" "unsupported" >&6; }
4548 else case e in #(
4549 e) if test "x$ac_cv_prog_cc_c89" = x
4550 then :
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4552 printf "%s\n" "none needed" >&6; }
4553 else case e in #(
4554 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4555 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4556 CC="$CC $ac_cv_prog_cc_c89" ;;
4557 esac
4558 fi
4559 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4560 ac_prog_cc_stdc=c89 ;;
4561 esac
4562 fi
4563 fi
4564
4565 ac_ext=c
4566 ac_cpp='$CPP $CPPFLAGS'
4567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4570
4571
4572 ac_header= ac_cache=
4573 for ac_item in $ac_header_c_list
4574 do
4575 if test $ac_cache; then
4576 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4577 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4578 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4579 fi
4580 ac_header= ac_cache=
4581 elif test $ac_header; then
4582 ac_cache=$ac_item
4583 else
4584 ac_header=$ac_item
4585 fi
4586 done
4587
4588
4589
4590
4591
4592
4593
4594
4595 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4596 then :
4597
4598 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4599
4600 fi
4601 for ac_header in libintl.h
4602 do :
4603 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
4604 if test "x$ac_cv_header_libintl_h" = xyes
4605 then :
4606 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
4607 try_nls="yes"
4608 else case e in #(
4609 e) try_nls="no"
4610 ;;
4611 esac
4612 fi
4613
4614 done
4615
4616 if test "$try_nls" = "yes"
4617 then
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4619 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4620 set x ${MAKE-make}
4621 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4622 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4623 then :
4624 printf %s "(cached) " >&6
4625 else case e in #(
4626 e) cat >conftest.make <<\_ACEOF
4627 SHELL = /bin/sh
4628 all:
4629 @echo '@@@%%%=$(MAKE)=@@@%%%'
4630 _ACEOF
4631 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4632 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4633 *@@@%%%=?*=@@@%%%*)
4634 eval ac_cv_prog_make_${ac_make}_set=yes;;
4635 *)
4636 eval ac_cv_prog_make_${ac_make}_set=no;;
4637 esac
4638 rm -f conftest.make ;;
4639 esac
4640 fi
4641 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4643 printf "%s\n" "yes" >&6; }
4644 SET_MAKE=
4645 else
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 printf "%s\n" "no" >&6; }
4648 SET_MAKE="MAKE=${MAKE-make}"
4649 fi
4650
4651
4652
4653 # Find a good install program. We prefer a C program (faster),
4654 # so one script is as good as another. But avoid the broken or
4655 # incompatible versions:
4656 # SysV /etc/install, /usr/sbin/install
4657 # SunOS /usr/etc/install
4658 # IRIX /sbin/install
4659 # AIX /bin/install
4660 # AmigaOS /C/install, which installs bootblocks on floppy discs
4661 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4662 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4663 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4664 # OS/2's system install, which has a completely different semantic
4665 # ./install, which can be erroneously created by make from ./install.sh.
4666 # Reject install programs that cannot install multiple files.
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4668 printf %s "checking for a BSD-compatible install... " >&6; }
4669 if test -z "$INSTALL"; then
4670 if test ${ac_cv_path_install+y}
4671 then :
4672 printf %s "(cached) " >&6
4673 else case e in #(
4674 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677 IFS=$as_save_IFS
4678 case $as_dir in #(((
4679 '') as_dir=./ ;;
4680 */) ;;
4681 *) as_dir=$as_dir/ ;;
4682 esac
4683 # Account for fact that we put trailing slashes in our PATH walk.
4684 case $as_dir in #((
4685 ./ | /[cC]/* | \
4686 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4687 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4688 /usr/ucb/* ) ;;
4689 *)
4690 # OSF1 and SCO ODT 3.0 have their own names for install.
4691 # Don't use installbsd from OSF since it installs stuff as root
4692 # by default.
4693 for ac_prog in ginstall scoinst install; do
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4696 if test $ac_prog = install &&
4697 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4698 # AIX install. It has an incompatible calling convention.
4699 :
4700 elif test $ac_prog = install &&
4701 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4702 # program-specific install script used by HP pwplus--don't use.
4703 :
4704 else
4705 rm -rf conftest.one conftest.two conftest.dir
4706 echo one > conftest.one
4707 echo two > conftest.two
4708 mkdir conftest.dir
4709 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4710 test -s conftest.one && test -s conftest.two &&
4711 test -s conftest.dir/conftest.one &&
4712 test -s conftest.dir/conftest.two
4713 then
4714 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4715 break 3
4716 fi
4717 fi
4718 fi
4719 done
4720 done
4721 ;;
4722 esac
4723
4724 done
4725 IFS=$as_save_IFS
4726
4727 rm -rf conftest.one conftest.two conftest.dir
4728 ;;
4729 esac
4730 fi
4731 if test ${ac_cv_path_install+y}; then
4732 INSTALL=$ac_cv_path_install
4733 else
4734 # As a last resort, use the slow shell script. Don't cache a
4735 # value for INSTALL within a source directory, because that will
4736 # break other packages using the cache if that directory is
4737 # removed, or if the value is a relative name.
4738 INSTALL=$ac_install_sh
4739 fi
4740 fi
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4742 printf "%s\n" "$INSTALL" >&6; }
4743
4744 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4745 # It thinks the first close brace ends the variable substitution.
4746 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4747
4748 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4749
4750 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4751
4752
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4754 printf %s "checking for a race-free mkdir -p... " >&6; }
4755 if test -z "$MKDIR_P"; then
4756 if test ${ac_cv_path_mkdir+y}
4757 then :
4758 printf %s "(cached) " >&6
4759 else case e in #(
4760 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4762 do
4763 IFS=$as_save_IFS
4764 case $as_dir in #(((
4765 '') as_dir=./ ;;
4766 */) ;;
4767 *) as_dir=$as_dir/ ;;
4768 esac
4769 for ac_prog in mkdir gmkdir; do
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4772 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4773 'mkdir ('*'coreutils) '* | \
4774 *'BusyBox '* | \
4775 'mkdir (fileutils) '4.1*)
4776 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4777 break 3;;
4778 esac
4779 done
4780 done
4781 done
4782 IFS=$as_save_IFS
4783 ;;
4784 esac
4785 fi
4786
4787 test -d ./--version && rmdir ./--version
4788 if test ${ac_cv_path_mkdir+y}; then
4789 MKDIR_P="$ac_cv_path_mkdir -p"
4790 else
4791 # As a last resort, use plain mkdir -p,
4792 # in the hope it doesn't have the bugs of ancient mkdir.
4793 MKDIR_P='mkdir -p'
4794 fi
4795 fi
4796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4797 printf "%s\n" "$MKDIR_P" >&6; }
4798
4799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4800 printf %s "checking for a sed that does not truncate output... " >&6; }
4801 if test ${ac_cv_path_SED+y}
4802 then :
4803 printf %s "(cached) " >&6
4804 else case e in #(
4805 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4806 for ac_i in 1 2 3 4 5 6 7; do
4807 ac_script="$ac_script$as_nl$ac_script"
4808 done
4809 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4810 { ac_script=; unset ac_script;}
4811 if test -z "$SED"; then
4812 ac_path_SED_found=false
4813 # Loop through the user's path and test for each of PROGNAME-LIST
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4816 do
4817 IFS=$as_save_IFS
4818 case $as_dir in #(((
4819 '') as_dir=./ ;;
4820 */) ;;
4821 *) as_dir=$as_dir/ ;;
4822 esac
4823 for ac_prog in sed gsed
4824 do
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4827 as_fn_executable_p "$ac_path_SED" || continue
4828 # Check for GNU ac_path_SED and select it if it is found.
4829 # Check for GNU $ac_path_SED
4830 case `"$ac_path_SED" --version 2>&1` in #(
4831 *GNU*)
4832 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4833 #(
4834 *)
4835 ac_count=0
4836 printf %s 0123456789 >"conftest.in"
4837 while :
4838 do
4839 cat "conftest.in" "conftest.in" >"conftest.tmp"
4840 mv "conftest.tmp" "conftest.in"
4841 cp "conftest.in" "conftest.nl"
4842 printf "%s\n" '' >> "conftest.nl"
4843 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4845 as_fn_arith $ac_count + 1 && ac_count=$as_val
4846 if test $ac_count -gt ${ac_path_SED_max-0}; then
4847 # Best one so far, save it but keep looking for a better one
4848 ac_cv_path_SED="$ac_path_SED"
4849 ac_path_SED_max=$ac_count
4850 fi
4851 # 10*(2^10) chars as input seems more than enough
4852 test $ac_count -gt 10 && break
4853 done
4854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4855 esac
4856
4857 $ac_path_SED_found && break 3
4858 done
4859 done
4860 done
4861 IFS=$as_save_IFS
4862 if test -z "$ac_cv_path_SED"; then
4863 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4864 fi
4865 else
4866 ac_cv_path_SED=$SED
4867 fi
4868 ;;
4869 esac
4870 fi
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4872 printf "%s\n" "$ac_cv_path_SED" >&6; }
4873 SED="$ac_cv_path_SED"
4874 rm -f conftest.sed
4875
4876
4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4878 printf %s "checking whether NLS is requested... " >&6; }
4879 # Check whether --enable-nls was given.
4880 if test ${enable_nls+y}
4881 then :
4882 enableval=$enable_nls; USE_NLS=$enableval
4883 else case e in #(
4884 e) USE_NLS=yes ;;
4885 esac
4886 fi
4887
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4889 printf "%s\n" "$USE_NLS" >&6; }
4890
4891
4892
4893
4894 GETTEXT_MACRO_VERSION=0.20
4895
4896
4897
4898
4899 # Prepare PATH_SEPARATOR.
4900 # The user is always right.
4901 if test "${PATH_SEPARATOR+set}" != set; then
4902 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4903 # contains only /bin. Note that ksh looks also at the FPATH variable,
4904 # so we have to set that as well for the test.
4905 PATH_SEPARATOR=:
4906 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4907 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4908 || PATH_SEPARATOR=';'
4909 }
4910 fi
4911
4912 # Find out how to test for executable files. Don't use a zero-byte file,
4913 # as systems may use methods other than mode bits to determine executability.
4914 cat >conf$$.file <<_ASEOF
4915 #! /bin/sh
4916 exit 0
4917 _ASEOF
4918 chmod +x conf$$.file
4919 if test -x conf$$.file >/dev/null 2>&1; then
4920 ac_executable_p="test -x"
4921 else
4922 ac_executable_p="test -f"
4923 fi
4924 rm -f conf$$.file
4925
4926 # Extract the first word of "msgfmt", so it can be a program name with args.
4927 set dummy msgfmt; ac_word=$2
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 printf %s "checking for $ac_word... " >&6; }
4930 if test ${ac_cv_path_MSGFMT+y}
4931 then :
4932 printf %s "(cached) " >&6
4933 else case e in #(
4934 e) case "$MSGFMT" in
4935 [\\/]* | ?:[\\/]*)
4936 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4937 ;;
4938 *)
4939 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4940 for ac_dir in $PATH; do
4941 IFS="$ac_save_IFS"
4942 test -z "$ac_dir" && ac_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4945 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4946 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4947 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4948 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4949 break 2
4950 fi
4951 fi
4952 done
4953 done
4954 IFS="$ac_save_IFS"
4955 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4956 ;;
4957 esac ;;
4958 esac
4959 fi
4960 MSGFMT="$ac_cv_path_MSGFMT"
4961 if test "$MSGFMT" != ":"; then
4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4963 printf "%s\n" "$MSGFMT" >&6; }
4964 else
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 printf "%s\n" "no" >&6; }
4967 fi
4968
4969 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4970 set dummy gmsgfmt; ac_word=$2
4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 printf %s "checking for $ac_word... " >&6; }
4973 if test ${ac_cv_path_GMSGFMT+y}
4974 then :
4975 printf %s "(cached) " >&6
4976 else case e in #(
4977 e) case $GMSGFMT in
4978 [\\/]* | ?:[\\/]*)
4979 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4980 ;;
4981 *)
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH
4984 do
4985 IFS=$as_save_IFS
4986 case $as_dir in #(((
4987 '') as_dir=./ ;;
4988 */) ;;
4989 *) as_dir=$as_dir/ ;;
4990 esac
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4993 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
4994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4995 break 2
4996 fi
4997 done
4998 done
4999 IFS=$as_save_IFS
5000
5001 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5002 ;;
5003 esac ;;
5004 esac
5005 fi
5006 GMSGFMT=$ac_cv_path_GMSGFMT
5007 if test -n "$GMSGFMT"; then
5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5009 printf "%s\n" "$GMSGFMT" >&6; }
5010 else
5011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 printf "%s\n" "no" >&6; }
5013 fi
5014
5015
5016
5017 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5018 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5019 *) GMSGFMT_015=$GMSGFMT ;;
5020 esac
5021
5022
5023
5024 # Prepare PATH_SEPARATOR.
5025 # The user is always right.
5026 if test "${PATH_SEPARATOR+set}" != set; then
5027 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5028 # contains only /bin. Note that ksh looks also at the FPATH variable,
5029 # so we have to set that as well for the test.
5030 PATH_SEPARATOR=:
5031 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5032 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5033 || PATH_SEPARATOR=';'
5034 }
5035 fi
5036
5037 # Find out how to test for executable files. Don't use a zero-byte file,
5038 # as systems may use methods other than mode bits to determine executability.
5039 cat >conf$$.file <<_ASEOF
5040 #! /bin/sh
5041 exit 0
5042 _ASEOF
5043 chmod +x conf$$.file
5044 if test -x conf$$.file >/dev/null 2>&1; then
5045 ac_executable_p="test -x"
5046 else
5047 ac_executable_p="test -f"
5048 fi
5049 rm -f conf$$.file
5050
5051 # Extract the first word of "xgettext", so it can be a program name with args.
5052 set dummy xgettext; ac_word=$2
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 printf %s "checking for $ac_word... " >&6; }
5055 if test ${ac_cv_path_XGETTEXT+y}
5056 then :
5057 printf %s "(cached) " >&6
5058 else case e in #(
5059 e) case "$XGETTEXT" in
5060 [\\/]* | ?:[\\/]*)
5061 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5062 ;;
5063 *)
5064 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5065 for ac_dir in $PATH; do
5066 IFS="$ac_save_IFS"
5067 test -z "$ac_dir" && ac_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5070 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5071 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5072 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5073 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5074 break 2
5075 fi
5076 fi
5077 done
5078 done
5079 IFS="$ac_save_IFS"
5080 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5081 ;;
5082 esac ;;
5083 esac
5084 fi
5085 XGETTEXT="$ac_cv_path_XGETTEXT"
5086 if test "$XGETTEXT" != ":"; then
5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5088 printf "%s\n" "$XGETTEXT" >&6; }
5089 else
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 printf "%s\n" "no" >&6; }
5092 fi
5093
5094 rm -f messages.po
5095
5096 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5097 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5098 *) XGETTEXT_015=$XGETTEXT ;;
5099 esac
5100
5101
5102
5103 # Prepare PATH_SEPARATOR.
5104 # The user is always right.
5105 if test "${PATH_SEPARATOR+set}" != set; then
5106 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5107 # contains only /bin. Note that ksh looks also at the FPATH variable,
5108 # so we have to set that as well for the test.
5109 PATH_SEPARATOR=:
5110 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5111 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5112 || PATH_SEPARATOR=';'
5113 }
5114 fi
5115
5116 # Find out how to test for executable files. Don't use a zero-byte file,
5117 # as systems may use methods other than mode bits to determine executability.
5118 cat >conf$$.file <<_ASEOF
5119 #! /bin/sh
5120 exit 0
5121 _ASEOF
5122 chmod +x conf$$.file
5123 if test -x conf$$.file >/dev/null 2>&1; then
5124 ac_executable_p="test -x"
5125 else
5126 ac_executable_p="test -f"
5127 fi
5128 rm -f conf$$.file
5129
5130 # Extract the first word of "msgmerge", so it can be a program name with args.
5131 set dummy msgmerge; ac_word=$2
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 printf %s "checking for $ac_word... " >&6; }
5134 if test ${ac_cv_path_MSGMERGE+y}
5135 then :
5136 printf %s "(cached) " >&6
5137 else case e in #(
5138 e) case "$MSGMERGE" in
5139 [\\/]* | ?:[\\/]*)
5140 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5141 ;;
5142 *)
5143 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5144 for ac_dir in $PATH; do
5145 IFS="$ac_save_IFS"
5146 test -z "$ac_dir" && ac_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5149 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5150 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5151 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5152 break 2
5153 fi
5154 fi
5155 done
5156 done
5157 IFS="$ac_save_IFS"
5158 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5159 ;;
5160 esac ;;
5161 esac
5162 fi
5163 MSGMERGE="$ac_cv_path_MSGMERGE"
5164 if test "$MSGMERGE" != ":"; then
5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5166 printf "%s\n" "$MSGMERGE" >&6; }
5167 else
5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 printf "%s\n" "no" >&6; }
5170 fi
5171
5172
5173 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
5174 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
5175 else
5176 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
5177 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
5178 else
5179 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
5180 fi
5181 fi
5182
5183
5184 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5185
5186
5187 ac_config_commands="$ac_config_commands po-directories"
5188
5189
5190
5191 if test "X$prefix" = "XNONE"; then
5192 acl_final_prefix="$ac_default_prefix"
5193 else
5194 acl_final_prefix="$prefix"
5195 fi
5196 if test "X$exec_prefix" = "XNONE"; then
5197 acl_final_exec_prefix='${prefix}'
5198 else
5199 acl_final_exec_prefix="$exec_prefix"
5200 fi
5201 acl_save_prefix="$prefix"
5202 prefix="$acl_final_prefix"
5203 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5204 prefix="$acl_save_prefix"
5205
5206
5207
5208 # Make sure we can run config.sub.
5209 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5210 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5211
5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5213 printf %s "checking build system type... " >&6; }
5214 if test ${ac_cv_build+y}
5215 then :
5216 printf %s "(cached) " >&6
5217 else case e in #(
5218 e) ac_build_alias=$build_alias
5219 test "x$ac_build_alias" = x &&
5220 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5221 test "x$ac_build_alias" = x &&
5222 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5223 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5224 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5225 ;;
5226 esac
5227 fi
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5229 printf "%s\n" "$ac_cv_build" >&6; }
5230 case $ac_cv_build in
5231 *-*-*) ;;
5232 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5233 esac
5234 build=$ac_cv_build
5235 ac_save_IFS=$IFS; IFS='-'
5236 set x $ac_cv_build
5237 shift
5238 build_cpu=$1
5239 build_vendor=$2
5240 shift; shift
5241 # Remember, the first character of IFS is used to create $*,
5242 # except with old shells:
5243 build_os=$*
5244 IFS=$ac_save_IFS
5245 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5246
5247
5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5249 printf %s "checking host system type... " >&6; }
5250 if test ${ac_cv_host+y}
5251 then :
5252 printf %s "(cached) " >&6
5253 else case e in #(
5254 e) if test "x$host_alias" = x; then
5255 ac_cv_host=$ac_cv_build
5256 else
5257 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5258 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5259 fi
5260 ;;
5261 esac
5262 fi
5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5264 printf "%s\n" "$ac_cv_host" >&6; }
5265 case $ac_cv_host in
5266 *-*-*) ;;
5267 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5268 esac
5269 host=$ac_cv_host
5270 ac_save_IFS=$IFS; IFS='-'
5271 set x $ac_cv_host
5272 shift
5273 host_cpu=$1
5274 host_vendor=$2
5275 shift; shift
5276 # Remember, the first character of IFS is used to create $*,
5277 # except with old shells:
5278 host_os=$*
5279 IFS=$ac_save_IFS
5280 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5281
5282
5283
5284
5285 # Check whether --with-gnu-ld was given.
5286 if test ${with_gnu_ld+y}
5287 then :
5288 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5289 else case e in #(
5290 e) with_gnu_ld=no ;;
5291 esac
5292 fi
5293
5294 # Prepare PATH_SEPARATOR.
5295 # The user is always right.
5296 if test "${PATH_SEPARATOR+set}" != set; then
5297 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5298 # contains only /bin. Note that ksh looks also at the FPATH variable,
5299 # so we have to set that as well for the test.
5300 PATH_SEPARATOR=:
5301 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5302 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5303 || PATH_SEPARATOR=';'
5304 }
5305 fi
5306
5307 if test -n "$LD"; then
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
5309 printf %s "checking for ld... " >&6; }
5310 elif test "$GCC" = yes; then
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5312 printf %s "checking for ld used by $CC... " >&6; }
5313 elif test "$with_gnu_ld" = yes; then
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5315 printf %s "checking for GNU ld... " >&6; }
5316 else
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5318 printf %s "checking for non-GNU ld... " >&6; }
5319 fi
5320 if test -n "$LD"; then
5321 # Let the user override the test with a path.
5322 :
5323 else
5324 if test ${acl_cv_path_LD+y}
5325 then :
5326 printf %s "(cached) " >&6
5327 else case e in #(
5328 e)
5329 acl_cv_path_LD= # Final result of this test
5330 ac_prog=ld # Program to search in $PATH
5331 if test "$GCC" = yes; then
5332 # Check if gcc -print-prog-name=ld gives a path.
5333 case $host in
5334 *-*-mingw*)
5335 # gcc leaves a trailing carriage return which upsets mingw
5336 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5337 *)
5338 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
5339 esac
5340 case $acl_output in
5341 # Accept absolute paths.
5342 [\\/]* | ?:[\\/]*)
5343 re_direlt='/[^/][^/]*/\.\./'
5344 # Canonicalize the pathname of ld
5345 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
5346 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
5347 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
5348 done
5349 # Got the pathname. No search in PATH is needed.
5350 acl_cv_path_LD="$acl_output"
5351 ac_prog=
5352 ;;
5353 "")
5354 # If it fails, then pretend we aren't using GCC.
5355 ;;
5356 *)
5357 # If it is relative, then search for the first ld in PATH.
5358 with_gnu_ld=unknown
5359 ;;
5360 esac
5361 fi
5362 if test -n "$ac_prog"; then
5363 # Search for $ac_prog in $PATH.
5364 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5365 for ac_dir in $PATH; do
5366 IFS="$acl_save_ifs"
5367 test -z "$ac_dir" && ac_dir=.
5368 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5369 acl_cv_path_LD="$ac_dir/$ac_prog"
5370 # Check to see if the program is GNU ld. I'd rather use --version,
5371 # but apparently some variants of GNU ld only accept -v.
5372 # Break only if it was the GNU/non-GNU ld that we prefer.
5373 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5374 *GNU* | *'with BFD'*)
5375 test "$with_gnu_ld" != no && break
5376 ;;
5377 *)
5378 test "$with_gnu_ld" != yes && break
5379 ;;
5380 esac
5381 fi
5382 done
5383 IFS="$acl_save_ifs"
5384 fi
5385 case $host in
5386 *-*-aix*)
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 #if defined __powerpc64__ || defined __LP64__
5390 int ok;
5391 #else
5392 error fail
5393 #endif
5394
5395 _ACEOF
5396 if ac_fn_c_try_compile "$LINENO"
5397 then :
5398 # The compiler produces 64-bit code. Add option '-b64' so that the
5399 # linker groks 64-bit object files.
5400 case "$acl_cv_path_LD " in
5401 *" -b64 "*) ;;
5402 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
5403 esac
5404
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5407 ;;
5408 sparc64-*-netbsd*)
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 #if defined __sparcv9 || defined __arch64__
5412 int ok;
5413 #else
5414 error fail
5415 #endif
5416
5417 _ACEOF
5418 if ac_fn_c_try_compile "$LINENO"
5419 then :
5420
5421 else case e in #(
5422 e) # The compiler produces 32-bit code. Add option '-m elf32_sparc'
5423 # so that the linker groks 32-bit object files.
5424 case "$acl_cv_path_LD " in
5425 *" -m elf32_sparc "*) ;;
5426 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
5427 esac
5428 ;;
5429 esac
5430 fi
5431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5432 ;;
5433 esac
5434 ;;
5435 esac
5436 fi
5437
5438 LD="$acl_cv_path_LD"
5439 fi
5440 if test -n "$LD"; then
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5442 printf "%s\n" "$LD" >&6; }
5443 else
5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 printf "%s\n" "no" >&6; }
5446 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5447 fi
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5449 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5450 if test ${acl_cv_prog_gnu_ld+y}
5451 then :
5452 printf %s "(cached) " >&6
5453 else case e in #(
5454 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5455 case `$LD -v 2>&1 </dev/null` in
5456 *GNU* | *'with BFD'*)
5457 acl_cv_prog_gnu_ld=yes
5458 ;;
5459 *)
5460 acl_cv_prog_gnu_ld=no
5461 ;;
5462 esac ;;
5463 esac
5464 fi
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5466 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
5467 with_gnu_ld=$acl_cv_prog_gnu_ld
5468
5469
5470
5471
5472
5473
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5475 printf %s "checking for shared library run path origin... " >&6; }
5476 if test ${acl_cv_rpath+y}
5477 then :
5478 printf %s "(cached) " >&6
5479 else case e in #(
5480 e)
5481 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5482 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5483 . ./conftest.sh
5484 rm -f ./conftest.sh
5485 acl_cv_rpath=done
5486 ;;
5487 esac
5488 fi
5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5490 printf "%s\n" "$acl_cv_rpath" >&6; }
5491 wl="$acl_cv_wl"
5492 acl_libext="$acl_cv_libext"
5493 acl_shlibext="$acl_cv_shlibext"
5494 acl_libname_spec="$acl_cv_libname_spec"
5495 acl_library_names_spec="$acl_cv_library_names_spec"
5496 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5497 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5498 acl_hardcode_direct="$acl_cv_hardcode_direct"
5499 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5500 # Check whether --enable-rpath was given.
5501 if test ${enable_rpath+y}
5502 then :
5503 enableval=$enable_rpath; :
5504 else case e in #(
5505 e) enable_rpath=yes ;;
5506 esac
5507 fi
5508
5509
5510
5511
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
5513 printf %s "checking 32-bit host C ABI... " >&6; }
5514 if test ${gl_cv_host_cpu_c_abi_32bit+y}
5515 then :
5516 printf %s "(cached) " >&6
5517 else case e in #(
5518 e) if test -n "$gl_cv_host_cpu_c_abi"; then
5519 case "$gl_cv_host_cpu_c_abi" in
5520 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
5521 gl_cv_host_cpu_c_abi_32bit=yes ;;
5522 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
5523 gl_cv_host_cpu_c_abi_32bit=no ;;
5524 *)
5525 gl_cv_host_cpu_c_abi_32bit=unknown ;;
5526 esac
5527 else
5528 case "$host_cpu" in
5529
5530 # CPUs that only support a 32-bit ABI.
5531 arc \
5532 | bfin \
5533 | cris* \
5534 | csky \
5535 | epiphany \
5536 | ft32 \
5537 | h8300 \
5538 | m68k \
5539 | microblaze | microblazeel \
5540 | nds32 | nds32le | nds32be \
5541 | nios2 | nios2eb | nios2el \
5542 | or1k* \
5543 | or32 \
5544 | sh | sh1234 | sh1234elb \
5545 | tic6x \
5546 | xtensa* )
5547 gl_cv_host_cpu_c_abi_32bit=yes
5548 ;;
5549
5550 # CPUs that only support a 64-bit ABI.
5551 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
5552 | mmix )
5553 gl_cv_host_cpu_c_abi_32bit=no
5554 ;;
5555
5556 i[34567]86 )
5557 gl_cv_host_cpu_c_abi_32bit=yes
5558 ;;
5559
5560 x86_64 )
5561 # On x86_64 systems, the C compiler may be generating code in one of
5562 # these ABIs:
5563 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
5564 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
5565 # with native Windows (mingw, MSVC).
5566 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
5567 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 #if (defined __x86_64__ || defined __amd64__ \
5571 || defined _M_X64 || defined _M_AMD64) \
5572 && !(defined __ILP32__ || defined _ILP32)
5573 int ok;
5574 #else
5575 error fail
5576 #endif
5577
5578 _ACEOF
5579 if ac_fn_c_try_compile "$LINENO"
5580 then :
5581 gl_cv_host_cpu_c_abi_32bit=no
5582 else case e in #(
5583 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
5584 esac
5585 fi
5586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5587 ;;
5588
5589 arm* | aarch64 )
5590 # Assume arm with EABI.
5591 # On arm64 systems, the C compiler may be generating code in one of
5592 # these ABIs:
5593 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
5594 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
5595 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
5599 int ok;
5600 #else
5601 error fail
5602 #endif
5603
5604 _ACEOF
5605 if ac_fn_c_try_compile "$LINENO"
5606 then :
5607 gl_cv_host_cpu_c_abi_32bit=no
5608 else case e in #(
5609 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
5610 esac
5611 fi
5612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5613 ;;
5614
5615 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
5616 # On hppa, the C compiler may be generating 32-bit code or 64-bit
5617 # code. In the latter case, it defines _LP64 and __LP64__.
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 #ifdef __LP64__
5621 int ok;
5622 #else
5623 error fail
5624 #endif
5625
5626 _ACEOF
5627 if ac_fn_c_try_compile "$LINENO"
5628 then :
5629 gl_cv_host_cpu_c_abi_32bit=no
5630 else case e in #(
5631 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
5632 esac
5633 fi
5634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5635 ;;
5636
5637 ia64* )
5638 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
5639 # 32-bit code. In the latter case, it defines _ILP32.
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 #ifdef _ILP32
5643 int ok;
5644 #else
5645 error fail
5646 #endif
5647
5648 _ACEOF
5649 if ac_fn_c_try_compile "$LINENO"
5650 then :
5651 gl_cv_host_cpu_c_abi_32bit=yes
5652 else case e in #(
5653 e) gl_cv_host_cpu_c_abi_32bit=no ;;
5654 esac
5655 fi
5656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5657 ;;
5658
5659 mips* )
5660 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
5661 # at 32.
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5664 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
5665 int ok;
5666 #else
5667 error fail
5668 #endif
5669
5670 _ACEOF
5671 if ac_fn_c_try_compile "$LINENO"
5672 then :
5673 gl_cv_host_cpu_c_abi_32bit=no
5674 else case e in #(
5675 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
5676 esac
5677 fi
5678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5679 ;;
5680
5681 powerpc* )
5682 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
5683 # No need to distinguish them here; the caller may distinguish
5684 # them based on the OS.
5685 # On powerpc64 systems, the C compiler may still be generating
5686 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
5687 # be generating 64-bit code.
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 #if defined __powerpc64__ || defined __LP64__
5691 int ok;
5692 #else
5693 error fail
5694 #endif
5695
5696 _ACEOF
5697 if ac_fn_c_try_compile "$LINENO"
5698 then :
5699 gl_cv_host_cpu_c_abi_32bit=no
5700 else case e in #(
5701 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
5702 esac
5703 fi
5704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5705 ;;
5706
5707 rs6000 )
5708 gl_cv_host_cpu_c_abi_32bit=yes
5709 ;;
5710
5711 riscv32 | riscv64 )
5712 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
5713 # Size of 'long' and 'void *':
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 #if defined __LP64__
5717 int ok;
5718 #else
5719 error fail
5720 #endif
5721
5722 _ACEOF
5723 if ac_fn_c_try_compile "$LINENO"
5724 then :
5725 gl_cv_host_cpu_c_abi_32bit=no
5726 else case e in #(
5727 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
5728 esac
5729 fi
5730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5731 ;;
5732
5733 s390* )
5734 # On s390x, the C compiler may be generating 64-bit (= s390x) code
5735 # or 31-bit (= s390) code.
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #if defined __LP64__ || defined __s390x__
5739 int ok;
5740 #else
5741 error fail
5742 #endif
5743
5744 _ACEOF
5745 if ac_fn_c_try_compile "$LINENO"
5746 then :
5747 gl_cv_host_cpu_c_abi_32bit=no
5748 else case e in #(
5749 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
5750 esac
5751 fi
5752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5753 ;;
5754
5755 sparc | sparc64 )
5756 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
5757 # C compiler still generates 32-bit code.
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 #if defined __sparcv9 || defined __arch64__
5761 int ok;
5762 #else
5763 error fail
5764 #endif
5765
5766 _ACEOF
5767 if ac_fn_c_try_compile "$LINENO"
5768 then :
5769 gl_cv_host_cpu_c_abi_32bit=no
5770 else case e in #(
5771 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
5772 esac
5773 fi
5774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5775 ;;
5776
5777 *)
5778 gl_cv_host_cpu_c_abi_32bit=unknown
5779 ;;
5780 esac
5781 fi
5782 ;;
5783 esac
5784 fi
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
5786 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
5787
5788 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
5789
5790 ac_ext=c
5791 ac_cpp='$CPP $CPPFLAGS'
5792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5796 printf %s "checking how to run the C preprocessor... " >&6; }
5797 # On Suns, sometimes $CPP names a directory.
5798 if test -n "$CPP" && test -d "$CPP"; then
5799 CPP=
5800 fi
5801 if test -z "$CPP"; then
5802 if test ${ac_cv_prog_CPP+y}
5803 then :
5804 printf %s "(cached) " >&6
5805 else case e in #(
5806 e) # Double quotes because $CC needs to be expanded
5807 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5808 do
5809 ac_preproc_ok=false
5810 for ac_c_preproc_warn_flag in '' yes
5811 do
5812 # Use a header file that comes with gcc, so configuring glibc
5813 # with a fresh cross-compiler works.
5814 # On the NeXT, cc -E runs the code through the compiler's parser,
5815 # not just through cpp. "Syntax error" is here to catch this case.
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818 #include <limits.h>
5819 Syntax error
5820 _ACEOF
5821 if ac_fn_c_try_cpp "$LINENO"
5822 then :
5823
5824 else case e in #(
5825 e) # Broken: fails on valid input.
5826 continue ;;
5827 esac
5828 fi
5829 rm -f conftest.err conftest.i conftest.$ac_ext
5830
5831 # OK, works on sane cases. Now check whether nonexistent headers
5832 # can be detected and how.
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 #include <ac_nonexistent.h>
5836 _ACEOF
5837 if ac_fn_c_try_cpp "$LINENO"
5838 then :
5839 # Broken: success on invalid input.
5840 continue
5841 else case e in #(
5842 e) # Passes both tests.
5843 ac_preproc_ok=:
5844 break ;;
5845 esac
5846 fi
5847 rm -f conftest.err conftest.i conftest.$ac_ext
5848
5849 done
5850 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5851 rm -f conftest.i conftest.err conftest.$ac_ext
5852 if $ac_preproc_ok
5853 then :
5854 break
5855 fi
5856
5857 done
5858 ac_cv_prog_CPP=$CPP
5859 ;;
5860 esac
5861 fi
5862 CPP=$ac_cv_prog_CPP
5863 else
5864 ac_cv_prog_CPP=$CPP
5865 fi
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5867 printf "%s\n" "$CPP" >&6; }
5868 ac_preproc_ok=false
5869 for ac_c_preproc_warn_flag in '' yes
5870 do
5871 # Use a header file that comes with gcc, so configuring glibc
5872 # with a fresh cross-compiler works.
5873 # On the NeXT, cc -E runs the code through the compiler's parser,
5874 # not just through cpp. "Syntax error" is here to catch this case.
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5877 #include <limits.h>
5878 Syntax error
5879 _ACEOF
5880 if ac_fn_c_try_cpp "$LINENO"
5881 then :
5882
5883 else case e in #(
5884 e) # Broken: fails on valid input.
5885 continue ;;
5886 esac
5887 fi
5888 rm -f conftest.err conftest.i conftest.$ac_ext
5889
5890 # OK, works on sane cases. Now check whether nonexistent headers
5891 # can be detected and how.
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5894 #include <ac_nonexistent.h>
5895 _ACEOF
5896 if ac_fn_c_try_cpp "$LINENO"
5897 then :
5898 # Broken: success on invalid input.
5899 continue
5900 else case e in #(
5901 e) # Passes both tests.
5902 ac_preproc_ok=:
5903 break ;;
5904 esac
5905 fi
5906 rm -f conftest.err conftest.i conftest.$ac_ext
5907
5908 done
5909 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5910 rm -f conftest.i conftest.err conftest.$ac_ext
5911 if $ac_preproc_ok
5912 then :
5913
5914 else case e in #(
5915 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5916 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5917 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5918 See 'config.log' for more details" "$LINENO" 5; } ;;
5919 esac
5920 fi
5921
5922 ac_ext=c
5923 ac_cpp='$CPP $CPPFLAGS'
5924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5927
5928
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
5930 printf %s "checking for egrep -e... " >&6; }
5931 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
5932 then :
5933 printf %s "(cached) " >&6
5934 else case e in #(
5935 e) if test -z "$EGREP_TRADITIONAL"; then
5936 ac_path_EGREP_TRADITIONAL_found=false
5937 # Loop through the user's path and test for each of PROGNAME-LIST
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5940 do
5941 IFS=$as_save_IFS
5942 case $as_dir in #(((
5943 '') as_dir=./ ;;
5944 */) ;;
5945 *) as_dir=$as_dir/ ;;
5946 esac
5947 for ac_prog in grep ggrep
5948 do
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
5951 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
5952 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
5953 # Check for GNU $ac_path_EGREP_TRADITIONAL
5954 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
5955 *GNU*)
5956 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
5957 #(
5958 *)
5959 ac_count=0
5960 printf %s 0123456789 >"conftest.in"
5961 while :
5962 do
5963 cat "conftest.in" "conftest.in" >"conftest.tmp"
5964 mv "conftest.tmp" "conftest.in"
5965 cp "conftest.in" "conftest.nl"
5966 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
5967 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5969 as_fn_arith $ac_count + 1 && ac_count=$as_val
5970 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
5971 # Best one so far, save it but keep looking for a better one
5972 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
5973 ac_path_EGREP_TRADITIONAL_max=$ac_count
5974 fi
5975 # 10*(2^10) chars as input seems more than enough
5976 test $ac_count -gt 10 && break
5977 done
5978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5979 esac
5980
5981 $ac_path_EGREP_TRADITIONAL_found && break 3
5982 done
5983 done
5984 done
5985 IFS=$as_save_IFS
5986 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
5987 :
5988 fi
5989 else
5990 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
5991 fi
5992
5993 if test "$ac_cv_path_EGREP_TRADITIONAL"
5994 then :
5995 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
5996 else case e in #(
5997 e) if test -z "$EGREP_TRADITIONAL"; then
5998 ac_path_EGREP_TRADITIONAL_found=false
5999 # Loop through the user's path and test for each of PROGNAME-LIST
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6002 do
6003 IFS=$as_save_IFS
6004 case $as_dir in #(((
6005 '') as_dir=./ ;;
6006 */) ;;
6007 *) as_dir=$as_dir/ ;;
6008 esac
6009 for ac_prog in egrep
6010 do
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
6013 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
6014 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
6015 # Check for GNU $ac_path_EGREP_TRADITIONAL
6016 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
6017 *GNU*)
6018 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
6019 #(
6020 *)
6021 ac_count=0
6022 printf %s 0123456789 >"conftest.in"
6023 while :
6024 do
6025 cat "conftest.in" "conftest.in" >"conftest.tmp"
6026 mv "conftest.tmp" "conftest.in"
6027 cp "conftest.in" "conftest.nl"
6028 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
6029 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6031 as_fn_arith $ac_count + 1 && ac_count=$as_val
6032 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
6033 # Best one so far, save it but keep looking for a better one
6034 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
6035 ac_path_EGREP_TRADITIONAL_max=$ac_count
6036 fi
6037 # 10*(2^10) chars as input seems more than enough
6038 test $ac_count -gt 10 && break
6039 done
6040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6041 esac
6042
6043 $ac_path_EGREP_TRADITIONAL_found && break 3
6044 done
6045 done
6046 done
6047 IFS=$as_save_IFS
6048 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
6049 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6050 fi
6051 else
6052 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
6053 fi
6054 ;;
6055 esac
6056 fi ;;
6057 esac
6058 fi
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
6060 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
6061 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
6062
6063
6064
6065
6066
6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
6068 printf %s "checking for ELF binary format... " >&6; }
6069 if test ${gl_cv_elf+y}
6070 then :
6071 printf %s "(cached) " >&6
6072 else case e in #(
6073 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 #if defined __ELF__ || (defined __linux__ && defined __EDG__)
6076 Extensible Linking Format
6077 #endif
6078
6079 _ACEOF
6080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6081 $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1
6082 then :
6083 gl_cv_elf=yes
6084 else case e in #(
6085 e) gl_cv_elf=no ;;
6086 esac
6087 fi
6088 rm -rf conftest*
6089
6090 ;;
6091 esac
6092 fi
6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
6094 printf "%s\n" "$gl_cv_elf" >&6; }
6095 if test $gl_cv_elf = yes; then
6096 # Extract the ELF class of a file (5th byte) in decimal.
6097 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
6098 if od -A x < /dev/null >/dev/null 2>/dev/null; then
6099 # Use POSIX od.
6100 func_elfclass ()
6101 {
6102 od -A n -t d1 -j 4 -N 1
6103 }
6104 else
6105 # Use BSD hexdump.
6106 func_elfclass ()
6107 {
6108 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
6109 echo
6110 }
6111 fi
6112 # Use 'expr', not 'test', to compare the values of func_elfclass, because on
6113 # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002,
6114 # not 1 or 2.
6115 case $HOST_CPU_C_ABI_32BIT in
6116 yes)
6117 # 32-bit ABI.
6118 acl_is_expected_elfclass ()
6119 {
6120 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null
6121 }
6122 ;;
6123 no)
6124 # 64-bit ABI.
6125 acl_is_expected_elfclass ()
6126 {
6127 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null
6128 }
6129 ;;
6130 *)
6131 # Unknown.
6132 acl_is_expected_elfclass ()
6133 {
6134 :
6135 }
6136 ;;
6137 esac
6138 else
6139 acl_is_expected_elfclass ()
6140 {
6141 :
6142 }
6143 fi
6144
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
6146 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
6147 if test ${acl_cv_libdirstems+y}
6148 then :
6149 printf %s "(cached) " >&6
6150 else case e in #(
6151 e) acl_libdirstem=lib
6152 acl_libdirstem2=
6153 acl_libdirstem3=
6154 case "$host_os" in
6155 solaris*)
6156 if test $HOST_CPU_C_ABI_32BIT = no; then
6157 acl_libdirstem2=lib/64
6158 case "$host_cpu" in
6159 sparc*) acl_libdirstem3=lib/sparcv9 ;;
6160 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
6161 esac
6162 fi
6163 ;;
6164 *)
6165 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
6166 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6167 if test $HOST_CPU_C_ABI_32BIT != no; then
6168 # 32-bit or unknown ABI.
6169 if test -d /usr/lib32; then
6170 acl_libdirstem2=lib32
6171 fi
6172 fi
6173 if test $HOST_CPU_C_ABI_32BIT != yes; then
6174 # 64-bit or unknown ABI.
6175 if test -d /usr/lib64; then
6176 acl_libdirstem3=lib64
6177 fi
6178 fi
6179 if test -n "$searchpath"; then
6180 acl_save_IFS="${IFS= }"; IFS=":"
6181 for searchdir in $searchpath; do
6182 if test -d "$searchdir"; then
6183 case "$searchdir" in
6184 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
6185 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
6186 */../ | */.. )
6187 # Better ignore directories of this form. They are misleading.
6188 ;;
6189 *) searchdir=`cd "$searchdir" && pwd`
6190 case "$searchdir" in
6191 */lib32 ) acl_libdirstem2=lib32 ;;
6192 */lib64 ) acl_libdirstem3=lib64 ;;
6193 esac ;;
6194 esac
6195 fi
6196 done
6197 IFS="$acl_save_IFS"
6198 if test $HOST_CPU_C_ABI_32BIT = yes; then
6199 # 32-bit ABI.
6200 acl_libdirstem3=
6201 fi
6202 if test $HOST_CPU_C_ABI_32BIT = no; then
6203 # 64-bit ABI.
6204 acl_libdirstem2=
6205 fi
6206 fi
6207 ;;
6208 esac
6209 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6210 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
6211 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
6212 ;;
6213 esac
6214 fi
6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
6216 printf "%s\n" "$acl_cv_libdirstems" >&6; }
6217 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
6218 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
6219 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231 use_additional=yes
6232
6233 acl_save_prefix="$prefix"
6234 prefix="$acl_final_prefix"
6235 acl_save_exec_prefix="$exec_prefix"
6236 exec_prefix="$acl_final_exec_prefix"
6237
6238 eval additional_includedir=\"$includedir\"
6239 eval additional_libdir=\"$libdir\"
6240 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
6241 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
6242
6243 exec_prefix="$acl_save_exec_prefix"
6244 prefix="$acl_save_prefix"
6245
6246
6247 # Check whether --with-libiconv-prefix was given.
6248 if test ${with_libiconv_prefix+y}
6249 then :
6250 withval=$with_libiconv_prefix;
6251 if test "X$withval" = "Xno"; then
6252 use_additional=no
6253 else
6254 if test "X$withval" = "X"; then
6255
6256 acl_save_prefix="$prefix"
6257 prefix="$acl_final_prefix"
6258 acl_save_exec_prefix="$exec_prefix"
6259 exec_prefix="$acl_final_exec_prefix"
6260
6261 eval additional_includedir=\"$includedir\"
6262 eval additional_libdir=\"$libdir\"
6263 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
6264 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
6265
6266 exec_prefix="$acl_save_exec_prefix"
6267 prefix="$acl_save_prefix"
6268
6269 else
6270 additional_includedir="$withval/include"
6271 additional_libdir="$withval/$acl_libdirstem"
6272 additional_libdir2="$withval/$acl_libdirstem2"
6273 additional_libdir3="$withval/$acl_libdirstem3"
6274 fi
6275 fi
6276
6277 fi
6278
6279 if test "X$additional_libdir2" = "X$additional_libdir"; then
6280 additional_libdir2=
6281 fi
6282 if test "X$additional_libdir3" = "X$additional_libdir"; then
6283 additional_libdir3=
6284 fi
6285 LIBICONV=
6286 LTLIBICONV=
6287 INCICONV=
6288 LIBICONV_PREFIX=
6289 HAVE_LIBICONV=
6290 rpathdirs=
6291 ltrpathdirs=
6292 names_already_handled=
6293 names_next_round='iconv '
6294 while test -n "$names_next_round"; do
6295 names_this_round="$names_next_round"
6296 names_next_round=
6297 for name in $names_this_round; do
6298 already_handled=
6299 for n in $names_already_handled; do
6300 if test "$n" = "$name"; then
6301 already_handled=yes
6302 break
6303 fi
6304 done
6305 if test -z "$already_handled"; then
6306 names_already_handled="$names_already_handled $name"
6307 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6308 eval value=\"\$HAVE_LIB$uppername\"
6309 if test -n "$value"; then
6310 if test "$value" = yes; then
6311 eval value=\"\$LIB$uppername\"
6312 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6313 eval value=\"\$LTLIB$uppername\"
6314 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6315 else
6316 :
6317 fi
6318 else
6319 found_dir=
6320 found_la=
6321 found_so=
6322 found_a=
6323 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6324 if test -n "$acl_shlibext"; then
6325 shrext=".$acl_shlibext" # typically: shrext=.so
6326 else
6327 shrext=
6328 fi
6329 if test $use_additional = yes; then
6330 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
6331 if test "X$found_dir" = "X"; then
6332 eval dir=\$$additional_libdir_variable
6333 if test -n "$dir"; then
6334 if test -n "$acl_shlibext"; then
6335 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
6336 found_dir="$dir"
6337 found_so="$dir/$libname$shrext"
6338 else
6339 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6340 ver=`(cd "$dir" && \
6341 for f in "$libname$shrext".*; do echo "$f"; done \
6342 | sed -e "s,^$libname$shrext\\\\.,," \
6343 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6344 | sed 1q ) 2>/dev/null`
6345 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
6346 found_dir="$dir"
6347 found_so="$dir/$libname$shrext.$ver"
6348 fi
6349 else
6350 eval library_names=\"$acl_library_names_spec\"
6351 for f in $library_names; do
6352 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
6353 found_dir="$dir"
6354 found_so="$dir/$f"
6355 break
6356 fi
6357 done
6358 fi
6359 fi
6360 fi
6361 if test "X$found_dir" = "X"; then
6362 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
6363 found_dir="$dir"
6364 found_a="$dir/$libname.$acl_libext"
6365 fi
6366 fi
6367 if test "X$found_dir" != "X"; then
6368 if test -f "$dir/$libname.la"; then
6369 found_la="$dir/$libname.la"
6370 fi
6371 fi
6372 fi
6373 fi
6374 done
6375 fi
6376 if test "X$found_dir" = "X"; then
6377 for x in $LDFLAGS $LTLIBICONV; do
6378
6379 acl_save_prefix="$prefix"
6380 prefix="$acl_final_prefix"
6381 acl_save_exec_prefix="$exec_prefix"
6382 exec_prefix="$acl_final_exec_prefix"
6383 eval x=\"$x\"
6384 exec_prefix="$acl_save_exec_prefix"
6385 prefix="$acl_save_prefix"
6386
6387 case "$x" in
6388 -L*)
6389 dir=`echo "X$x" | sed -e 's/^X-L//'`
6390 if test -n "$acl_shlibext"; then
6391 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
6392 found_dir="$dir"
6393 found_so="$dir/$libname$shrext"
6394 else
6395 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6396 ver=`(cd "$dir" && \
6397 for f in "$libname$shrext".*; do echo "$f"; done \
6398 | sed -e "s,^$libname$shrext\\\\.,," \
6399 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6400 | sed 1q ) 2>/dev/null`
6401 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
6402 found_dir="$dir"
6403 found_so="$dir/$libname$shrext.$ver"
6404 fi
6405 else
6406 eval library_names=\"$acl_library_names_spec\"
6407 for f in $library_names; do
6408 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
6409 found_dir="$dir"
6410 found_so="$dir/$f"
6411 break
6412 fi
6413 done
6414 fi
6415 fi
6416 fi
6417 if test "X$found_dir" = "X"; then
6418 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
6419 found_dir="$dir"
6420 found_a="$dir/$libname.$acl_libext"
6421 fi
6422 fi
6423 if test "X$found_dir" != "X"; then
6424 if test -f "$dir/$libname.la"; then
6425 found_la="$dir/$libname.la"
6426 fi
6427 fi
6428 ;;
6429 esac
6430 if test "X$found_dir" != "X"; then
6431 break
6432 fi
6433 done
6434 fi
6435 if test "X$found_dir" != "X"; then
6436 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6437 if test "X$found_so" != "X"; then
6438 if test "$enable_rpath" = no \
6439 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6440 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
6441 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
6442 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6443 else
6444 haveit=
6445 for x in $ltrpathdirs; do
6446 if test "X$x" = "X$found_dir"; then
6447 haveit=yes
6448 break
6449 fi
6450 done
6451 if test -z "$haveit"; then
6452 ltrpathdirs="$ltrpathdirs $found_dir"
6453 fi
6454 if test "$acl_hardcode_direct" = yes; then
6455 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6456 else
6457 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6458 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6459 haveit=
6460 for x in $rpathdirs; do
6461 if test "X$x" = "X$found_dir"; then
6462 haveit=yes
6463 break
6464 fi
6465 done
6466 if test -z "$haveit"; then
6467 rpathdirs="$rpathdirs $found_dir"
6468 fi
6469 else
6470 haveit=
6471 for x in $LDFLAGS $LIBICONV; do
6472
6473 acl_save_prefix="$prefix"
6474 prefix="$acl_final_prefix"
6475 acl_save_exec_prefix="$exec_prefix"
6476 exec_prefix="$acl_final_exec_prefix"
6477 eval x=\"$x\"
6478 exec_prefix="$acl_save_exec_prefix"
6479 prefix="$acl_save_prefix"
6480
6481 if test "X$x" = "X-L$found_dir"; then
6482 haveit=yes
6483 break
6484 fi
6485 done
6486 if test -z "$haveit"; then
6487 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6488 fi
6489 if test "$acl_hardcode_minus_L" != no; then
6490 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6491 else
6492 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6493 fi
6494 fi
6495 fi
6496 fi
6497 else
6498 if test "X$found_a" != "X"; then
6499 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6500 else
6501 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6502 fi
6503 fi
6504 additional_includedir=
6505 case "$found_dir" in
6506 */$acl_libdirstem | */$acl_libdirstem/)
6507 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6508 if test "$name" = 'iconv'; then
6509 LIBICONV_PREFIX="$basedir"
6510 fi
6511 additional_includedir="$basedir/include"
6512 ;;
6513 */$acl_libdirstem2 | */$acl_libdirstem2/)
6514 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6515 if test "$name" = 'iconv'; then
6516 LIBICONV_PREFIX="$basedir"
6517 fi
6518 additional_includedir="$basedir/include"
6519 ;;
6520 */$acl_libdirstem3 | */$acl_libdirstem3/)
6521 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
6522 if test "$name" = 'iconv'; then
6523 LIBICONV_PREFIX="$basedir"
6524 fi
6525 additional_includedir="$basedir/include"
6526 ;;
6527 esac
6528 if test "X$additional_includedir" != "X"; then
6529 if test "X$additional_includedir" != "X/usr/include"; then
6530 haveit=
6531 if test "X$additional_includedir" = "X/usr/local/include"; then
6532 if test -n "$GCC"; then
6533 case $host_os in
6534 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6535 esac
6536 fi
6537 fi
6538 if test -z "$haveit"; then
6539 for x in $CPPFLAGS $INCICONV; do
6540
6541 acl_save_prefix="$prefix"
6542 prefix="$acl_final_prefix"
6543 acl_save_exec_prefix="$exec_prefix"
6544 exec_prefix="$acl_final_exec_prefix"
6545 eval x=\"$x\"
6546 exec_prefix="$acl_save_exec_prefix"
6547 prefix="$acl_save_prefix"
6548
6549 if test "X$x" = "X-I$additional_includedir"; then
6550 haveit=yes
6551 break
6552 fi
6553 done
6554 if test -z "$haveit"; then
6555 if test -d "$additional_includedir"; then
6556 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6557 fi
6558 fi
6559 fi
6560 fi
6561 fi
6562 if test -n "$found_la"; then
6563 save_libdir="$libdir"
6564 case "$found_la" in
6565 */* | *\\*) . "$found_la" ;;
6566 *) . "./$found_la" ;;
6567 esac
6568 libdir="$save_libdir"
6569 for dep in $dependency_libs; do
6570 case "$dep" in
6571 -L*)
6572 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6573 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
6574 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
6575 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
6576 haveit=
6577 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
6578 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
6579 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
6580 if test -n "$GCC"; then
6581 case $host_os in
6582 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6583 esac
6584 fi
6585 fi
6586 if test -z "$haveit"; then
6587 haveit=
6588 for x in $LDFLAGS $LIBICONV; do
6589
6590 acl_save_prefix="$prefix"
6591 prefix="$acl_final_prefix"
6592 acl_save_exec_prefix="$exec_prefix"
6593 exec_prefix="$acl_final_exec_prefix"
6594 eval x=\"$x\"
6595 exec_prefix="$acl_save_exec_prefix"
6596 prefix="$acl_save_prefix"
6597
6598 if test "X$x" = "X-L$dependency_libdir"; then
6599 haveit=yes
6600 break
6601 fi
6602 done
6603 if test -z "$haveit"; then
6604 if test -d "$dependency_libdir"; then
6605 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
6606 fi
6607 fi
6608 haveit=
6609 for x in $LDFLAGS $LTLIBICONV; do
6610
6611 acl_save_prefix="$prefix"
6612 prefix="$acl_final_prefix"
6613 acl_save_exec_prefix="$exec_prefix"
6614 exec_prefix="$acl_final_exec_prefix"
6615 eval x=\"$x\"
6616 exec_prefix="$acl_save_exec_prefix"
6617 prefix="$acl_save_prefix"
6618
6619 if test "X$x" = "X-L$dependency_libdir"; then
6620 haveit=yes
6621 break
6622 fi
6623 done
6624 if test -z "$haveit"; then
6625 if test -d "$dependency_libdir"; then
6626 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
6627 fi
6628 fi
6629 fi
6630 fi
6631 ;;
6632 -R*)
6633 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6634 if test "$enable_rpath" != no; then
6635 haveit=
6636 for x in $rpathdirs; do
6637 if test "X$x" = "X$dir"; then
6638 haveit=yes
6639 break
6640 fi
6641 done
6642 if test -z "$haveit"; then
6643 rpathdirs="$rpathdirs $dir"
6644 fi
6645 haveit=
6646 for x in $ltrpathdirs; do
6647 if test "X$x" = "X$dir"; then
6648 haveit=yes
6649 break
6650 fi
6651 done
6652 if test -z "$haveit"; then
6653 ltrpathdirs="$ltrpathdirs $dir"
6654 fi
6655 fi
6656 ;;
6657 -l*)
6658 dep=`echo "X$dep" | sed -e 's/^X-l//'`
6659 if test "X$dep" != Xc \
6660 || case $host_os in
6661 linux* | gnu* | k*bsd*-gnu) false ;;
6662 *) true ;;
6663 esac; then
6664 names_next_round="$names_next_round $dep"
6665 fi
6666 ;;
6667 *.la)
6668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6669 ;;
6670 *)
6671 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6672 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6673 ;;
6674 esac
6675 done
6676 fi
6677 else
6678 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6679 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6680 fi
6681 fi
6682 fi
6683 done
6684 done
6685 if test "X$rpathdirs" != "X"; then
6686 if test -n "$acl_hardcode_libdir_separator"; then
6687 alldirs=
6688 for found_dir in $rpathdirs; do
6689 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6690 done
6691 acl_save_libdir="$libdir"
6692 libdir="$alldirs"
6693 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6694 libdir="$acl_save_libdir"
6695 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6696 else
6697 for found_dir in $rpathdirs; do
6698 acl_save_libdir="$libdir"
6699 libdir="$found_dir"
6700 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6701 libdir="$acl_save_libdir"
6702 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6703 done
6704 fi
6705 fi
6706 if test "X$ltrpathdirs" != "X"; then
6707 for found_dir in $ltrpathdirs; do
6708 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6709 done
6710 fi
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6741 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
6742 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
6743 then :
6744 printf %s "(cached) " >&6
6745 else case e in #(
6746 e) gt_save_LIBS="$LIBS"
6747 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 #include <CoreFoundation/CFPreferences.h>
6751 int
6752 main (void)
6753 {
6754 CFPreferencesCopyAppValue(NULL, NULL)
6755 ;
6756 return 0;
6757 }
6758 _ACEOF
6759 if ac_fn_c_try_link "$LINENO"
6760 then :
6761 gt_cv_func_CFPreferencesCopyAppValue=yes
6762 else case e in #(
6763 e) gt_cv_func_CFPreferencesCopyAppValue=no ;;
6764 esac
6765 fi
6766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6767 conftest$ac_exeext conftest.$ac_ext
6768 LIBS="$gt_save_LIBS" ;;
6769 esac
6770 fi
6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6772 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6773 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6774
6775 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6776
6777 fi
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
6779 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
6780 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
6781 then :
6782 printf %s "(cached) " >&6
6783 else case e in #(
6784 e) gt_save_LIBS="$LIBS"
6785 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6788 #include <CoreFoundation/CFLocale.h>
6789 int
6790 main (void)
6791 {
6792 CFLocaleCopyPreferredLanguages();
6793 ;
6794 return 0;
6795 }
6796 _ACEOF
6797 if ac_fn_c_try_link "$LINENO"
6798 then :
6799 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
6800 else case e in #(
6801 e) gt_cv_func_CFLocaleCopyPreferredLanguages=no ;;
6802 esac
6803 fi
6804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6805 conftest$ac_exeext conftest.$ac_ext
6806 LIBS="$gt_save_LIBS" ;;
6807 esac
6808 fi
6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
6810 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
6811 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
6812
6813 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
6814
6815 fi
6816 INTL_MACOSX_LIBS=
6817 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
6818 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
6819 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6820 fi
6821
6822
6823
6824
6825
6826
6827 LIBINTL=
6828 LTLIBINTL=
6829 POSUB=
6830
6831 case " $gt_needs " in
6832 *" need-formatstring-macros "*) gt_api_version=3 ;;
6833 *" need-ngettext "*) gt_api_version=2 ;;
6834 *) gt_api_version=1 ;;
6835 esac
6836 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6837 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6838
6839 if test "$USE_NLS" = "yes"; then
6840 gt_use_preinstalled_gnugettext=no
6841
6842
6843 if test $gt_api_version -ge 3; then
6844 gt_revision_test_code='
6845 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6846 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6847 #endif
6848 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6849 '
6850 else
6851 gt_revision_test_code=
6852 fi
6853 if test $gt_api_version -ge 2; then
6854 gt_expression_test_code=' + * ngettext ("", "", 0)'
6855 else
6856 gt_expression_test_code=
6857 fi
6858
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6860 printf %s "checking for GNU gettext in libc... " >&6; }
6861 if eval test \${$gt_func_gnugettext_libc+y}
6862 then :
6863 printf %s "(cached) " >&6
6864 else case e in #(
6865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6867
6868 #include <libintl.h>
6869 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6870 extern int _nl_msg_cat_cntr;
6871 extern int *_nl_domain_bindings;
6872 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
6873 #else
6874 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6875 #endif
6876 $gt_revision_test_code
6877
6878 int
6879 main (void)
6880 {
6881
6882 bindtextdomain ("", "");
6883 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
6884
6885 ;
6886 return 0;
6887 }
6888 _ACEOF
6889 if ac_fn_c_try_link "$LINENO"
6890 then :
6891 eval "$gt_func_gnugettext_libc=yes"
6892 else case e in #(
6893 e) eval "$gt_func_gnugettext_libc=no" ;;
6894 esac
6895 fi
6896 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6897 conftest$ac_exeext conftest.$ac_ext ;;
6898 esac
6899 fi
6900 eval ac_res=\$$gt_func_gnugettext_libc
6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6902 printf "%s\n" "$ac_res" >&6; }
6903
6904 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6905
6906
6907
6908
6909
6910 am_save_CPPFLAGS="$CPPFLAGS"
6911
6912 for element in $INCICONV; do
6913 haveit=
6914 for x in $CPPFLAGS; do
6915
6916 acl_save_prefix="$prefix"
6917 prefix="$acl_final_prefix"
6918 acl_save_exec_prefix="$exec_prefix"
6919 exec_prefix="$acl_final_exec_prefix"
6920 eval x=\"$x\"
6921 exec_prefix="$acl_save_exec_prefix"
6922 prefix="$acl_save_prefix"
6923
6924 if test "X$x" = "X$element"; then
6925 haveit=yes
6926 break
6927 fi
6928 done
6929 if test -z "$haveit"; then
6930 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6931 fi
6932 done
6933
6934
6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6936 printf %s "checking for iconv... " >&6; }
6937 if test ${am_cv_func_iconv+y}
6938 then :
6939 printf %s "(cached) " >&6
6940 else case e in #(
6941 e)
6942 am_cv_func_iconv="no, consider installing GNU libiconv"
6943 am_cv_lib_iconv=no
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6946
6947 #include <stdlib.h>
6948 #include <iconv.h>
6949
6950 int
6951 main (void)
6952 {
6953 iconv_t cd = iconv_open("","");
6954 iconv(cd,NULL,NULL,NULL,NULL);
6955 iconv_close(cd);
6956 ;
6957 return 0;
6958 }
6959 _ACEOF
6960 if ac_fn_c_try_link "$LINENO"
6961 then :
6962 am_cv_func_iconv=yes
6963 fi
6964 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6965 conftest$ac_exeext conftest.$ac_ext
6966 if test "$am_cv_func_iconv" != yes; then
6967 am_save_LIBS="$LIBS"
6968 LIBS="$LIBS $LIBICONV"
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971
6972 #include <stdlib.h>
6973 #include <iconv.h>
6974
6975 int
6976 main (void)
6977 {
6978 iconv_t cd = iconv_open("","");
6979 iconv(cd,NULL,NULL,NULL,NULL);
6980 iconv_close(cd);
6981 ;
6982 return 0;
6983 }
6984 _ACEOF
6985 if ac_fn_c_try_link "$LINENO"
6986 then :
6987 am_cv_lib_iconv=yes
6988 am_cv_func_iconv=yes
6989 fi
6990 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6991 conftest$ac_exeext conftest.$ac_ext
6992 LIBS="$am_save_LIBS"
6993 fi
6994 ;;
6995 esac
6996 fi
6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6998 printf "%s\n" "$am_cv_func_iconv" >&6; }
6999 if test "$am_cv_func_iconv" = yes; then
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7001 printf %s "checking for working iconv... " >&6; }
7002 if test ${am_cv_func_iconv_works+y}
7003 then :
7004 printf %s "(cached) " >&6
7005 else case e in #(
7006 e)
7007 am_save_LIBS="$LIBS"
7008 if test $am_cv_lib_iconv = yes; then
7009 LIBS="$LIBS $LIBICONV"
7010 fi
7011 am_cv_func_iconv_works=no
7012 for ac_iconv_const in '' 'const'; do
7013 if test "$cross_compiling" = yes
7014 then :
7015 case "$host_os" in
7016 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7017 *) am_cv_func_iconv_works="guessing yes" ;;
7018 esac
7019 else case e in #(
7020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7022
7023 #include <iconv.h>
7024 #include <string.h>
7025
7026 #ifndef ICONV_CONST
7027 # define ICONV_CONST $ac_iconv_const
7028 #endif
7029
7030 int
7031 main (void)
7032 {
7033 int result = 0;
7034 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
7035 successful returns. This is even documented in
7036 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
7037 {
7038 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7039 if (cd_utf8_to_88591 != (iconv_t)(-1))
7040 {
7041 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
7042 char buf[10];
7043 ICONV_CONST char *inptr = input;
7044 size_t inbytesleft = strlen (input);
7045 char *outptr = buf;
7046 size_t outbytesleft = sizeof (buf);
7047 size_t res = iconv (cd_utf8_to_88591,
7048 &inptr, &inbytesleft,
7049 &outptr, &outbytesleft);
7050 if (res == 0)
7051 result |= 1;
7052 iconv_close (cd_utf8_to_88591);
7053 }
7054 }
7055 /* Test against Solaris 10 bug: Failures are not distinguishable from
7056 successful returns. */
7057 {
7058 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7059 if (cd_ascii_to_88591 != (iconv_t)(-1))
7060 {
7061 static ICONV_CONST char input[] = "\263";
7062 char buf[10];
7063 ICONV_CONST char *inptr = input;
7064 size_t inbytesleft = strlen (input);
7065 char *outptr = buf;
7066 size_t outbytesleft = sizeof (buf);
7067 size_t res = iconv (cd_ascii_to_88591,
7068 &inptr, &inbytesleft,
7069 &outptr, &outbytesleft);
7070 if (res == 0)
7071 result |= 2;
7072 iconv_close (cd_ascii_to_88591);
7073 }
7074 }
7075 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
7076 {
7077 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
7078 if (cd_88591_to_utf8 != (iconv_t)(-1))
7079 {
7080 static ICONV_CONST char input[] = "\304";
7081 static char buf[2] = { (char)0xDE, (char)0xAD };
7082 ICONV_CONST char *inptr = input;
7083 size_t inbytesleft = 1;
7084 char *outptr = buf;
7085 size_t outbytesleft = 1;
7086 size_t res = iconv (cd_88591_to_utf8,
7087 &inptr, &inbytesleft,
7088 &outptr, &outbytesleft);
7089 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
7090 result |= 4;
7091 iconv_close (cd_88591_to_utf8);
7092 }
7093 }
7094 #if 0 /* This bug could be worked around by the caller. */
7095 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7096 {
7097 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7098 if (cd_88591_to_utf8 != (iconv_t)(-1))
7099 {
7100 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7101 char buf[50];
7102 ICONV_CONST char *inptr = input;
7103 size_t inbytesleft = strlen (input);
7104 char *outptr = buf;
7105 size_t outbytesleft = sizeof (buf);
7106 size_t res = iconv (cd_88591_to_utf8,
7107 &inptr, &inbytesleft,
7108 &outptr, &outbytesleft);
7109 if ((int)res > 0)
7110 result |= 8;
7111 iconv_close (cd_88591_to_utf8);
7112 }
7113 }
7114 #endif
7115 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7116 provided. */
7117 {
7118 /* Try standardized names. */
7119 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
7120 /* Try IRIX, OSF/1 names. */
7121 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
7122 /* Try AIX names. */
7123 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
7124 /* Try HP-UX names. */
7125 iconv_t cd4 = iconv_open ("utf8", "eucJP");
7126 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
7127 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
7128 result |= 16;
7129 if (cd1 != (iconv_t)(-1))
7130 iconv_close (cd1);
7131 if (cd2 != (iconv_t)(-1))
7132 iconv_close (cd2);
7133 if (cd3 != (iconv_t)(-1))
7134 iconv_close (cd3);
7135 if (cd4 != (iconv_t)(-1))
7136 iconv_close (cd4);
7137 }
7138 return result;
7139
7140 ;
7141 return 0;
7142 }
7143 _ACEOF
7144 if ac_fn_c_try_run "$LINENO"
7145 then :
7146 am_cv_func_iconv_works=yes
7147 fi
7148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7149 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7150 esac
7151 fi
7152
7153 test "$am_cv_func_iconv_works" = no || break
7154 done
7155 LIBS="$am_save_LIBS"
7156 ;;
7157 esac
7158 fi
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7160 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
7161 case "$am_cv_func_iconv_works" in
7162 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7163 *) am_func_iconv=yes ;;
7164 esac
7165 else
7166 am_func_iconv=no am_cv_lib_iconv=no
7167 fi
7168 if test "$am_func_iconv" = yes; then
7169
7170 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
7171
7172 fi
7173 if test "$am_cv_lib_iconv" = yes; then
7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7175 printf %s "checking how to link with libiconv... " >&6; }
7176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7177 printf "%s\n" "$LIBICONV" >&6; }
7178 else
7179 CPPFLAGS="$am_save_CPPFLAGS"
7180 LIBICONV=
7181 LTLIBICONV=
7182 fi
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193 use_additional=yes
7194
7195 acl_save_prefix="$prefix"
7196 prefix="$acl_final_prefix"
7197 acl_save_exec_prefix="$exec_prefix"
7198 exec_prefix="$acl_final_exec_prefix"
7199
7200 eval additional_includedir=\"$includedir\"
7201 eval additional_libdir=\"$libdir\"
7202 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7203 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7204
7205 exec_prefix="$acl_save_exec_prefix"
7206 prefix="$acl_save_prefix"
7207
7208
7209 # Check whether --with-libintl-prefix was given.
7210 if test ${with_libintl_prefix+y}
7211 then :
7212 withval=$with_libintl_prefix;
7213 if test "X$withval" = "Xno"; then
7214 use_additional=no
7215 else
7216 if test "X$withval" = "X"; then
7217
7218 acl_save_prefix="$prefix"
7219 prefix="$acl_final_prefix"
7220 acl_save_exec_prefix="$exec_prefix"
7221 exec_prefix="$acl_final_exec_prefix"
7222
7223 eval additional_includedir=\"$includedir\"
7224 eval additional_libdir=\"$libdir\"
7225 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7226 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7227
7228 exec_prefix="$acl_save_exec_prefix"
7229 prefix="$acl_save_prefix"
7230
7231 else
7232 additional_includedir="$withval/include"
7233 additional_libdir="$withval/$acl_libdirstem"
7234 additional_libdir2="$withval/$acl_libdirstem2"
7235 additional_libdir3="$withval/$acl_libdirstem3"
7236 fi
7237 fi
7238
7239 fi
7240
7241 if test "X$additional_libdir2" = "X$additional_libdir"; then
7242 additional_libdir2=
7243 fi
7244 if test "X$additional_libdir3" = "X$additional_libdir"; then
7245 additional_libdir3=
7246 fi
7247 LIBINTL=
7248 LTLIBINTL=
7249 INCINTL=
7250 LIBINTL_PREFIX=
7251 HAVE_LIBINTL=
7252 rpathdirs=
7253 ltrpathdirs=
7254 names_already_handled=
7255 names_next_round='intl '
7256 while test -n "$names_next_round"; do
7257 names_this_round="$names_next_round"
7258 names_next_round=
7259 for name in $names_this_round; do
7260 already_handled=
7261 for n in $names_already_handled; do
7262 if test "$n" = "$name"; then
7263 already_handled=yes
7264 break
7265 fi
7266 done
7267 if test -z "$already_handled"; then
7268 names_already_handled="$names_already_handled $name"
7269 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7270 eval value=\"\$HAVE_LIB$uppername\"
7271 if test -n "$value"; then
7272 if test "$value" = yes; then
7273 eval value=\"\$LIB$uppername\"
7274 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7275 eval value=\"\$LTLIB$uppername\"
7276 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7277 else
7278 :
7279 fi
7280 else
7281 found_dir=
7282 found_la=
7283 found_so=
7284 found_a=
7285 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7286 if test -n "$acl_shlibext"; then
7287 shrext=".$acl_shlibext" # typically: shrext=.so
7288 else
7289 shrext=
7290 fi
7291 if test $use_additional = yes; then
7292 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
7293 if test "X$found_dir" = "X"; then
7294 eval dir=\$$additional_libdir_variable
7295 if test -n "$dir"; then
7296 if test -n "$acl_shlibext"; then
7297 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
7298 found_dir="$dir"
7299 found_so="$dir/$libname$shrext"
7300 else
7301 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7302 ver=`(cd "$dir" && \
7303 for f in "$libname$shrext".*; do echo "$f"; done \
7304 | sed -e "s,^$libname$shrext\\\\.,," \
7305 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7306 | sed 1q ) 2>/dev/null`
7307 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
7308 found_dir="$dir"
7309 found_so="$dir/$libname$shrext.$ver"
7310 fi
7311 else
7312 eval library_names=\"$acl_library_names_spec\"
7313 for f in $library_names; do
7314 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
7315 found_dir="$dir"
7316 found_so="$dir/$f"
7317 break
7318 fi
7319 done
7320 fi
7321 fi
7322 fi
7323 if test "X$found_dir" = "X"; then
7324 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
7325 found_dir="$dir"
7326 found_a="$dir/$libname.$acl_libext"
7327 fi
7328 fi
7329 if test "X$found_dir" != "X"; then
7330 if test -f "$dir/$libname.la"; then
7331 found_la="$dir/$libname.la"
7332 fi
7333 fi
7334 fi
7335 fi
7336 done
7337 fi
7338 if test "X$found_dir" = "X"; then
7339 for x in $LDFLAGS $LTLIBINTL; do
7340
7341 acl_save_prefix="$prefix"
7342 prefix="$acl_final_prefix"
7343 acl_save_exec_prefix="$exec_prefix"
7344 exec_prefix="$acl_final_exec_prefix"
7345 eval x=\"$x\"
7346 exec_prefix="$acl_save_exec_prefix"
7347 prefix="$acl_save_prefix"
7348
7349 case "$x" in
7350 -L*)
7351 dir=`echo "X$x" | sed -e 's/^X-L//'`
7352 if test -n "$acl_shlibext"; then
7353 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
7354 found_dir="$dir"
7355 found_so="$dir/$libname$shrext"
7356 else
7357 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7358 ver=`(cd "$dir" && \
7359 for f in "$libname$shrext".*; do echo "$f"; done \
7360 | sed -e "s,^$libname$shrext\\\\.,," \
7361 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7362 | sed 1q ) 2>/dev/null`
7363 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
7364 found_dir="$dir"
7365 found_so="$dir/$libname$shrext.$ver"
7366 fi
7367 else
7368 eval library_names=\"$acl_library_names_spec\"
7369 for f in $library_names; do
7370 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
7371 found_dir="$dir"
7372 found_so="$dir/$f"
7373 break
7374 fi
7375 done
7376 fi
7377 fi
7378 fi
7379 if test "X$found_dir" = "X"; then
7380 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
7381 found_dir="$dir"
7382 found_a="$dir/$libname.$acl_libext"
7383 fi
7384 fi
7385 if test "X$found_dir" != "X"; then
7386 if test -f "$dir/$libname.la"; then
7387 found_la="$dir/$libname.la"
7388 fi
7389 fi
7390 ;;
7391 esac
7392 if test "X$found_dir" != "X"; then
7393 break
7394 fi
7395 done
7396 fi
7397 if test "X$found_dir" != "X"; then
7398 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7399 if test "X$found_so" != "X"; then
7400 if test "$enable_rpath" = no \
7401 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7402 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
7403 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
7404 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7405 else
7406 haveit=
7407 for x in $ltrpathdirs; do
7408 if test "X$x" = "X$found_dir"; then
7409 haveit=yes
7410 break
7411 fi
7412 done
7413 if test -z "$haveit"; then
7414 ltrpathdirs="$ltrpathdirs $found_dir"
7415 fi
7416 if test "$acl_hardcode_direct" = yes; then
7417 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7418 else
7419 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7420 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7421 haveit=
7422 for x in $rpathdirs; do
7423 if test "X$x" = "X$found_dir"; then
7424 haveit=yes
7425 break
7426 fi
7427 done
7428 if test -z "$haveit"; then
7429 rpathdirs="$rpathdirs $found_dir"
7430 fi
7431 else
7432 haveit=
7433 for x in $LDFLAGS $LIBINTL; do
7434
7435 acl_save_prefix="$prefix"
7436 prefix="$acl_final_prefix"
7437 acl_save_exec_prefix="$exec_prefix"
7438 exec_prefix="$acl_final_exec_prefix"
7439 eval x=\"$x\"
7440 exec_prefix="$acl_save_exec_prefix"
7441 prefix="$acl_save_prefix"
7442
7443 if test "X$x" = "X-L$found_dir"; then
7444 haveit=yes
7445 break
7446 fi
7447 done
7448 if test -z "$haveit"; then
7449 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7450 fi
7451 if test "$acl_hardcode_minus_L" != no; then
7452 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7453 else
7454 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7455 fi
7456 fi
7457 fi
7458 fi
7459 else
7460 if test "X$found_a" != "X"; then
7461 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7462 else
7463 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7464 fi
7465 fi
7466 additional_includedir=
7467 case "$found_dir" in
7468 */$acl_libdirstem | */$acl_libdirstem/)
7469 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7470 if test "$name" = 'intl'; then
7471 LIBINTL_PREFIX="$basedir"
7472 fi
7473 additional_includedir="$basedir/include"
7474 ;;
7475 */$acl_libdirstem2 | */$acl_libdirstem2/)
7476 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7477 if test "$name" = 'intl'; then
7478 LIBINTL_PREFIX="$basedir"
7479 fi
7480 additional_includedir="$basedir/include"
7481 ;;
7482 */$acl_libdirstem3 | */$acl_libdirstem3/)
7483 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
7484 if test "$name" = 'intl'; then
7485 LIBINTL_PREFIX="$basedir"
7486 fi
7487 additional_includedir="$basedir/include"
7488 ;;
7489 esac
7490 if test "X$additional_includedir" != "X"; then
7491 if test "X$additional_includedir" != "X/usr/include"; then
7492 haveit=
7493 if test "X$additional_includedir" = "X/usr/local/include"; then
7494 if test -n "$GCC"; then
7495 case $host_os in
7496 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7497 esac
7498 fi
7499 fi
7500 if test -z "$haveit"; then
7501 for x in $CPPFLAGS $INCINTL; do
7502
7503 acl_save_prefix="$prefix"
7504 prefix="$acl_final_prefix"
7505 acl_save_exec_prefix="$exec_prefix"
7506 exec_prefix="$acl_final_exec_prefix"
7507 eval x=\"$x\"
7508 exec_prefix="$acl_save_exec_prefix"
7509 prefix="$acl_save_prefix"
7510
7511 if test "X$x" = "X-I$additional_includedir"; then
7512 haveit=yes
7513 break
7514 fi
7515 done
7516 if test -z "$haveit"; then
7517 if test -d "$additional_includedir"; then
7518 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7519 fi
7520 fi
7521 fi
7522 fi
7523 fi
7524 if test -n "$found_la"; then
7525 save_libdir="$libdir"
7526 case "$found_la" in
7527 */* | *\\*) . "$found_la" ;;
7528 *) . "./$found_la" ;;
7529 esac
7530 libdir="$save_libdir"
7531 for dep in $dependency_libs; do
7532 case "$dep" in
7533 -L*)
7534 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7535 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
7536 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
7537 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
7538 haveit=
7539 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
7540 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
7541 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
7542 if test -n "$GCC"; then
7543 case $host_os in
7544 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7545 esac
7546 fi
7547 fi
7548 if test -z "$haveit"; then
7549 haveit=
7550 for x in $LDFLAGS $LIBINTL; do
7551
7552 acl_save_prefix="$prefix"
7553 prefix="$acl_final_prefix"
7554 acl_save_exec_prefix="$exec_prefix"
7555 exec_prefix="$acl_final_exec_prefix"
7556 eval x=\"$x\"
7557 exec_prefix="$acl_save_exec_prefix"
7558 prefix="$acl_save_prefix"
7559
7560 if test "X$x" = "X-L$dependency_libdir"; then
7561 haveit=yes
7562 break
7563 fi
7564 done
7565 if test -z "$haveit"; then
7566 if test -d "$dependency_libdir"; then
7567 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
7568 fi
7569 fi
7570 haveit=
7571 for x in $LDFLAGS $LTLIBINTL; do
7572
7573 acl_save_prefix="$prefix"
7574 prefix="$acl_final_prefix"
7575 acl_save_exec_prefix="$exec_prefix"
7576 exec_prefix="$acl_final_exec_prefix"
7577 eval x=\"$x\"
7578 exec_prefix="$acl_save_exec_prefix"
7579 prefix="$acl_save_prefix"
7580
7581 if test "X$x" = "X-L$dependency_libdir"; then
7582 haveit=yes
7583 break
7584 fi
7585 done
7586 if test -z "$haveit"; then
7587 if test -d "$dependency_libdir"; then
7588 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
7589 fi
7590 fi
7591 fi
7592 fi
7593 ;;
7594 -R*)
7595 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7596 if test "$enable_rpath" != no; then
7597 haveit=
7598 for x in $rpathdirs; do
7599 if test "X$x" = "X$dir"; then
7600 haveit=yes
7601 break
7602 fi
7603 done
7604 if test -z "$haveit"; then
7605 rpathdirs="$rpathdirs $dir"
7606 fi
7607 haveit=
7608 for x in $ltrpathdirs; do
7609 if test "X$x" = "X$dir"; then
7610 haveit=yes
7611 break
7612 fi
7613 done
7614 if test -z "$haveit"; then
7615 ltrpathdirs="$ltrpathdirs $dir"
7616 fi
7617 fi
7618 ;;
7619 -l*)
7620 dep=`echo "X$dep" | sed -e 's/^X-l//'`
7621 if test "X$dep" != Xc \
7622 || case $host_os in
7623 linux* | gnu* | k*bsd*-gnu) false ;;
7624 *) true ;;
7625 esac; then
7626 names_next_round="$names_next_round $dep"
7627 fi
7628 ;;
7629 *.la)
7630 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7631 ;;
7632 *)
7633 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7634 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7635 ;;
7636 esac
7637 done
7638 fi
7639 else
7640 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7641 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7642 fi
7643 fi
7644 fi
7645 done
7646 done
7647 if test "X$rpathdirs" != "X"; then
7648 if test -n "$acl_hardcode_libdir_separator"; then
7649 alldirs=
7650 for found_dir in $rpathdirs; do
7651 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7652 done
7653 acl_save_libdir="$libdir"
7654 libdir="$alldirs"
7655 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7656 libdir="$acl_save_libdir"
7657 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7658 else
7659 for found_dir in $rpathdirs; do
7660 acl_save_libdir="$libdir"
7661 libdir="$found_dir"
7662 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7663 libdir="$acl_save_libdir"
7664 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7665 done
7666 fi
7667 fi
7668 if test "X$ltrpathdirs" != "X"; then
7669 for found_dir in $ltrpathdirs; do
7670 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7671 done
7672 fi
7673
7674
7675
7676
7677
7678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7679 printf %s "checking for GNU gettext in libintl... " >&6; }
7680 if eval test \${$gt_func_gnugettext_libintl+y}
7681 then :
7682 printf %s "(cached) " >&6
7683 else case e in #(
7684 e) gt_save_CPPFLAGS="$CPPFLAGS"
7685 CPPFLAGS="$CPPFLAGS $INCINTL"
7686 gt_save_LIBS="$LIBS"
7687 LIBS="$LIBS $LIBINTL"
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690
7691 #include <libintl.h>
7692 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7693 extern int _nl_msg_cat_cntr;
7694 extern
7695 #ifdef __cplusplus
7696 "C"
7697 #endif
7698 const char *_nl_expand_alias (const char *);
7699 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
7700 #else
7701 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7702 #endif
7703 $gt_revision_test_code
7704
7705 int
7706 main (void)
7707 {
7708
7709 bindtextdomain ("", "");
7710 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7711
7712 ;
7713 return 0;
7714 }
7715 _ACEOF
7716 if ac_fn_c_try_link "$LINENO"
7717 then :
7718 eval "$gt_func_gnugettext_libintl=yes"
7719 else case e in #(
7720 e) eval "$gt_func_gnugettext_libintl=no" ;;
7721 esac
7722 fi
7723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7724 conftest$ac_exeext conftest.$ac_ext
7725 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7726 LIBS="$LIBS $LIBICONV"
7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h. */
7729
7730 #include <libintl.h>
7731 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7732 extern int _nl_msg_cat_cntr;
7733 extern
7734 #ifdef __cplusplus
7735 "C"
7736 #endif
7737 const char *_nl_expand_alias (const char *);
7738 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
7739 #else
7740 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7741 #endif
7742 $gt_revision_test_code
7743
7744 int
7745 main (void)
7746 {
7747
7748 bindtextdomain ("", "");
7749 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7750
7751 ;
7752 return 0;
7753 }
7754 _ACEOF
7755 if ac_fn_c_try_link "$LINENO"
7756 then :
7757 LIBINTL="$LIBINTL $LIBICONV"
7758 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7759 eval "$gt_func_gnugettext_libintl=yes"
7760
7761 fi
7762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7763 conftest$ac_exeext conftest.$ac_ext
7764 fi
7765 CPPFLAGS="$gt_save_CPPFLAGS"
7766 LIBS="$gt_save_LIBS" ;;
7767 esac
7768 fi
7769 eval ac_res=\$$gt_func_gnugettext_libintl
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7771 printf "%s\n" "$ac_res" >&6; }
7772 fi
7773
7774 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7775 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7776 && test "$PACKAGE" != gettext-runtime \
7777 && test "$PACKAGE" != gettext-tools; }; then
7778 gt_use_preinstalled_gnugettext=yes
7779 else
7780 LIBINTL=
7781 LTLIBINTL=
7782 INCINTL=
7783 fi
7784
7785
7786
7787 if test -n "$INTL_MACOSX_LIBS"; then
7788 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7789 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7790 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7791 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7792 fi
7793 fi
7794
7795 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7796 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7797
7798 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
7799
7800 else
7801 USE_NLS=no
7802 fi
7803 fi
7804
7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7806 printf %s "checking whether to use NLS... " >&6; }
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7808 printf "%s\n" "$USE_NLS" >&6; }
7809 if test "$USE_NLS" = "yes"; then
7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7811 printf %s "checking where the gettext function comes from... " >&6; }
7812 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7813 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7814 gt_source="external libintl"
7815 else
7816 gt_source="libc"
7817 fi
7818 else
7819 gt_source="included intl directory"
7820 fi
7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7822 printf "%s\n" "$gt_source" >&6; }
7823 fi
7824
7825 if test "$USE_NLS" = "yes"; then
7826
7827 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7828 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7830 printf %s "checking how to link with libintl... " >&6; }
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7832 printf "%s\n" "$LIBINTL" >&6; }
7833
7834 for element in $INCINTL; do
7835 haveit=
7836 for x in $CPPFLAGS; do
7837
7838 acl_save_prefix="$prefix"
7839 prefix="$acl_final_prefix"
7840 acl_save_exec_prefix="$exec_prefix"
7841 exec_prefix="$acl_final_exec_prefix"
7842 eval x=\"$x\"
7843 exec_prefix="$acl_save_exec_prefix"
7844 prefix="$acl_save_prefix"
7845
7846 if test "X$x" = "X$element"; then
7847 haveit=yes
7848 break
7849 fi
7850 done
7851 if test -z "$haveit"; then
7852 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7853 fi
7854 done
7855
7856 fi
7857
7858
7859 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
7860
7861
7862 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
7863
7864 fi
7865
7866 POSUB=po
7867 fi
7868
7869
7870
7871 INTLLIBS="$LIBINTL"
7872
7873
7874
7875
7876
7877
7878 fi
7879
7880 # Check whether --enable-gui was given.
7881 if test ${enable_gui+y}
7882 then :
7883 enableval=$enable_gui; if test "$enableval" = "yes"
7884 then
7885 build_gui=yes
7886 else
7887 build_gui=no
7888 gui_disabled=yes
7889 fi
7890 fi
7891
7892
7893 # Check whether --enable-gtk2 was given.
7894 if test ${enable_gtk2+y}
7895 then :
7896 enableval=$enable_gtk2; if test "$enableval" = "yes"
7897 then
7898 prefer_gtk2=yes
7899 else
7900 prefer_gtk2=no
7901 fi
7902 fi
7903
7904
7905 # Check whether --enable-build-doc was given.
7906 if test ${enable_build_doc+y}
7907 then :
7908 enableval=$enable_build_doc; if test "$enableval" = "yes"
7909 then
7910 if ! test -d $srcdir/.git ; then
7911 echo "The --enable-build-doc option is valid only when building from git"
7912 exit 1
7913 else
7914 build_docs=yes
7915 fi
7916 else
7917 build_docs=no
7918 fi
7919 fi
7920
7921
7922 # Check whether --enable-build-addons was given.
7923 if test ${enable_build_addons+y}
7924 then :
7925 enableval=$enable_build_addons; if test "$enableval" = "yes"
7926 then
7927 build_addons=yes
7928 else
7929 build_addons=no
7930 fi
7931 fi
7932
7933
7934 # Check whether --enable-build-editor was given.
7935 if test ${enable_build_editor+y}
7936 then :
7937 enableval=$enable_build_editor; if test "$enableval" = "yes"
7938 then
7939 build_editor=yes
7940 else
7941 build_editor=no
7942 fi
7943 fi
7944
7945
7946 # Check whether --enable-quiet-build was given.
7947 if test ${enable_quiet_build+y}
7948 then :
7949 enableval=$enable_quiet_build; if test "$enableval" = "yes"
7950 then
7951 quiet_build=yes
7952 fi
7953 fi
7954
7955
7956 # Check whether --enable-swap-ends was given.
7957 if test ${enable_swap_ends+y}
7958 then :
7959 enableval=$enable_swap_ends; if test "$enableval" = "yes"
7960 then
7961 swap_ends=yes
7962 fi
7963 fi
7964
7965
7966 # Check whether --enable-xdg was given.
7967 if test ${enable_xdg+y}
7968 then :
7969 enableval=$enable_xdg; if test "$enableval" = "no"
7970 then
7971 use_xdg=no
7972 try_xdg_utils=no
7973 fi
7974 fi
7975
7976
7977 # Check whether --enable-json was given.
7978 if test ${enable_json+y}
7979 then :
7980 enableval=$enable_json; if test "$enableval" = "no"
7981 then
7982 try_json_glib=no
7983 fi
7984 fi
7985
7986
7987 # Check whether --enable-gmp was given.
7988 if test ${enable_gmp+y}
7989 then :
7990 enableval=$enable_gmp; if test "$enableval" = "no"
7991 then
7992 try_gmp=no
7993 fi
7994 fi
7995
7996
7997 # Check whether --enable-xdg-utils was given.
7998 if test ${enable_xdg_utils+y}
7999 then :
8000 enableval=$enable_xdg_utils; if test "$enableval" = "no"
8001 then
8002 try_xdg_utils=no
8003 fi
8004 fi
8005
8006
8007 # Check whether --enable-pkgbuild was given.
8008 if test ${enable_pkgbuild+y}
8009 then :
8010 enableval=$enable_pkgbuild; if test "$enableval" = "yes"
8011 then
8012 printf "%s\n" "#define PKGBUILD 1" >>confdefs.h
8013
8014 pkg_build="yes"
8015 fi
8016 fi
8017
8018
8019 # Check whether --enable-gnuplot-checks was given.
8020 if test ${enable_gnuplot_checks+y}
8021 then :
8022 enableval=$enable_gnuplot_checks; if test "$enableval" = "yes"
8023 then
8024 check_gnuplot=yes
8025 echo "check_gnuplot = yes"
8026 else
8027 check_gnuplot=no
8028 echo "check_gnuplot = no"
8029 fi
8030 fi
8031
8032
8033 # Check whether --enable-gnuplot-3d was given.
8034 if test ${enable_gnuplot_3d+y}
8035 then :
8036 enableval=$enable_gnuplot_3d; if test "$enableval" = "yes"
8037 then
8038 gp_3d=yes
8039 echo "test gp3d = yes"
8040 else
8041 gp_3d=no
8042 echo "test gp3d = no"
8043 fi
8044 fi
8045
8046
8047 # Check whether --enable-www was given.
8048 if test ${enable_www+y}
8049 then :
8050 enableval=$enable_www; if test "$enableval" = "yes"
8051 then
8052 use_curl=yes
8053 else
8054 if test "$gui_disabled" = "no" ; then
8055 echo ""
8056 echo "The --disable-www option is available only if you also"
8057 echo "give the option --disable-gui"
8058 exit 1
8059 else
8060 use_curl=no
8061 fi
8062 fi
8063 fi
8064
8065
8066
8067 # Check whether --with-lucida was given.
8068 if test ${with_lucida+y}
8069 then :
8070 withval=$with_lucida; case "$withval" in
8071 yes)
8072 FONTREQ="\\RequirePackage[T1]{fontenc,lucidabr}"
8073 use_lucida=yes
8074 ;;
8075 *)
8076 ;;
8077 esac
8078 fi
8079
8080
8081
8082
8083 # Check whether --with-gmake was given.
8084 if test ${with_gmake+y}
8085 then :
8086 withval=$with_gmake; case "$withval" in
8087 yes)
8088 MAKE="gmake"
8089 ;;
8090 *)
8091 ;;
8092 esac
8093 fi
8094
8095
8096
8097
8098 # Check whether --with-readline was given.
8099 if test ${with_readline+y}
8100 then :
8101 withval=$with_readline; if test "x${withval}" = "xno"
8102 then
8103 try_readline=no
8104 else
8105 try_readline=yes
8106 fi
8107 else case e in #(
8108 e) try_readline=yes ;;
8109 esac
8110 fi
8111
8112
8113
8114 # Check whether --with-gsf was given.
8115 if test ${with_gsf+y}
8116 then :
8117 withval=$with_gsf; if test "x${withval}" = "xno"
8118 then
8119 try_gsf=no
8120 else
8121 try_gsf=yes
8122 fi
8123 else case e in #(
8124 e) try_gsf=yes ;;
8125 esac
8126 fi
8127
8128
8129
8130 # Check whether --with-x-12-arima was given.
8131 if test ${with_x_12_arima+y}
8132 then :
8133 withval=$with_x_12_arima; if test "x${withval}" = "xno"
8134 then
8135 have_x12a="no"
8136 else
8137 printf "%s\n" "#define HAVE_X12A 1" >>confdefs.h
8138
8139 HAVE_X12A=1
8140 fi
8141 else case e in #(
8142 e) printf "%s\n" "#define HAVE_X12A 1" >>confdefs.h
8143
8144 HAVE_X12A=1 ;;
8145 esac
8146 fi
8147
8148
8149
8150
8151 # Check whether --with-tramo-seats was given.
8152 if test ${with_tramo_seats+y}
8153 then :
8154 withval=$with_tramo_seats; if test "$withval" = "no"
8155 then
8156 have_tramo="no"
8157 else
8158 printf "%s\n" "#define HAVE_TRAMO 1" >>confdefs.h
8159
8160 HAVE_TRAMO=1
8161 fi
8162 else case e in #(
8163 e) printf "%s\n" "#define HAVE_TRAMO 1" >>confdefs.h
8164
8165 HAVE_TRAMO=1 ;;
8166 esac
8167 fi
8168
8169
8170
8171
8172 # Check whether --with-libR was given.
8173 if test ${with_libR+y}
8174 then :
8175 withval=$with_libR; if test "$withval" = "no"
8176 then
8177 try_libR=no
8178 fi
8179 else case e in #(
8180 e) try_libR=yes ;;
8181 esac
8182 fi
8183
8184
8185
8186 # Check whether --with-mpi was given.
8187 if test ${with_mpi+y}
8188 then :
8189 withval=$with_mpi; if test "$withval" = "no"
8190 then
8191 try_mpi=no
8192 fi
8193 else case e in #(
8194 e) try_mpi=yes ;;
8195 esac
8196 fi
8197
8198
8199
8200 # Check whether --with-odbc was given.
8201 if test ${with_odbc+y}
8202 then :
8203 withval=$with_odbc; if test "$withval" = "yes"
8204 then
8205 try_odbc=yes
8206 fi
8207 else case e in #(
8208 e) try_odbc=no ;;
8209 esac
8210 fi
8211
8212
8213 ac_ext=c
8214 ac_cpp='$CPP $CPPFLAGS'
8215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8218 if test -n "$ac_tool_prefix"; then
8219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8220 set dummy ${ac_tool_prefix}gcc; ac_word=$2
8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 printf %s "checking for $ac_word... " >&6; }
8223 if test ${ac_cv_prog_CC+y}
8224 then :
8225 printf %s "(cached) " >&6
8226 else case e in #(
8227 e) if test -n "$CC"; then
8228 ac_cv_prog_CC="$CC" # Let the user override the test.
8229 else
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 for as_dir in $PATH
8232 do
8233 IFS=$as_save_IFS
8234 case $as_dir in #(((
8235 '') as_dir=./ ;;
8236 */) ;;
8237 *) as_dir=$as_dir/ ;;
8238 esac
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8243 break 2
8244 fi
8245 done
8246 done
8247 IFS=$as_save_IFS
8248
8249 fi ;;
8250 esac
8251 fi
8252 CC=$ac_cv_prog_CC
8253 if test -n "$CC"; then
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8255 printf "%s\n" "$CC" >&6; }
8256 else
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 printf "%s\n" "no" >&6; }
8259 fi
8260
8261
8262 fi
8263 if test -z "$ac_cv_prog_CC"; then
8264 ac_ct_CC=$CC
8265 # Extract the first word of "gcc", so it can be a program name with args.
8266 set dummy gcc; ac_word=$2
8267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268 printf %s "checking for $ac_word... " >&6; }
8269 if test ${ac_cv_prog_ac_ct_CC+y}
8270 then :
8271 printf %s "(cached) " >&6
8272 else case e in #(
8273 e) if test -n "$ac_ct_CC"; then
8274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8275 else
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8278 do
8279 IFS=$as_save_IFS
8280 case $as_dir in #(((
8281 '') as_dir=./ ;;
8282 */) ;;
8283 *) as_dir=$as_dir/ ;;
8284 esac
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8287 ac_cv_prog_ac_ct_CC="gcc"
8288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8289 break 2
8290 fi
8291 done
8292 done
8293 IFS=$as_save_IFS
8294
8295 fi ;;
8296 esac
8297 fi
8298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8299 if test -n "$ac_ct_CC"; then
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8301 printf "%s\n" "$ac_ct_CC" >&6; }
8302 else
8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 printf "%s\n" "no" >&6; }
8305 fi
8306
8307 if test "x$ac_ct_CC" = x; then
8308 CC=""
8309 else
8310 case $cross_compiling:$ac_tool_warned in
8311 yes:)
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8313 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8314 ac_tool_warned=yes ;;
8315 esac
8316 CC=$ac_ct_CC
8317 fi
8318 else
8319 CC="$ac_cv_prog_CC"
8320 fi
8321
8322 if test -z "$CC"; then
8323 if test -n "$ac_tool_prefix"; then
8324 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8325 set dummy ${ac_tool_prefix}cc; ac_word=$2
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327 printf %s "checking for $ac_word... " >&6; }
8328 if test ${ac_cv_prog_CC+y}
8329 then :
8330 printf %s "(cached) " >&6
8331 else case e in #(
8332 e) if test -n "$CC"; then
8333 ac_cv_prog_CC="$CC" # Let the user override the test.
8334 else
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8337 do
8338 IFS=$as_save_IFS
8339 case $as_dir in #(((
8340 '') as_dir=./ ;;
8341 */) ;;
8342 *) as_dir=$as_dir/ ;;
8343 esac
8344 for ac_exec_ext in '' $ac_executable_extensions; do
8345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8346 ac_cv_prog_CC="${ac_tool_prefix}cc"
8347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8348 break 2
8349 fi
8350 done
8351 done
8352 IFS=$as_save_IFS
8353
8354 fi ;;
8355 esac
8356 fi
8357 CC=$ac_cv_prog_CC
8358 if test -n "$CC"; then
8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8360 printf "%s\n" "$CC" >&6; }
8361 else
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 printf "%s\n" "no" >&6; }
8364 fi
8365
8366
8367 fi
8368 fi
8369 if test -z "$CC"; then
8370 # Extract the first word of "cc", so it can be a program name with args.
8371 set dummy cc; ac_word=$2
8372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8373 printf %s "checking for $ac_word... " >&6; }
8374 if test ${ac_cv_prog_CC+y}
8375 then :
8376 printf %s "(cached) " >&6
8377 else case e in #(
8378 e) if test -n "$CC"; then
8379 ac_cv_prog_CC="$CC" # Let the user override the test.
8380 else
8381 ac_prog_rejected=no
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 for as_dir in $PATH
8384 do
8385 IFS=$as_save_IFS
8386 case $as_dir in #(((
8387 '') as_dir=./ ;;
8388 */) ;;
8389 *) as_dir=$as_dir/ ;;
8390 esac
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8393 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8394 ac_prog_rejected=yes
8395 continue
8396 fi
8397 ac_cv_prog_CC="cc"
8398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8399 break 2
8400 fi
8401 done
8402 done
8403 IFS=$as_save_IFS
8404
8405 if test $ac_prog_rejected = yes; then
8406 # We found a bogon in the path, so make sure we never use it.
8407 set dummy $ac_cv_prog_CC
8408 shift
8409 if test $# != 0; then
8410 # We chose a different compiler from the bogus one.
8411 # However, it has the same basename, so the bogon will be chosen
8412 # first if we set CC to just the basename; use the full file name.
8413 shift
8414 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
8415 fi
8416 fi
8417 fi ;;
8418 esac
8419 fi
8420 CC=$ac_cv_prog_CC
8421 if test -n "$CC"; then
8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8423 printf "%s\n" "$CC" >&6; }
8424 else
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 printf "%s\n" "no" >&6; }
8427 fi
8428
8429
8430 fi
8431 if test -z "$CC"; then
8432 if test -n "$ac_tool_prefix"; then
8433 for ac_prog in cl.exe
8434 do
8435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 printf %s "checking for $ac_word... " >&6; }
8439 if test ${ac_cv_prog_CC+y}
8440 then :
8441 printf %s "(cached) " >&6
8442 else case e in #(
8443 e) if test -n "$CC"; then
8444 ac_cv_prog_CC="$CC" # Let the user override the test.
8445 else
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 for as_dir in $PATH
8448 do
8449 IFS=$as_save_IFS
8450 case $as_dir in #(((
8451 '') as_dir=./ ;;
8452 */) ;;
8453 *) as_dir=$as_dir/ ;;
8454 esac
8455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8457 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8459 break 2
8460 fi
8461 done
8462 done
8463 IFS=$as_save_IFS
8464
8465 fi ;;
8466 esac
8467 fi
8468 CC=$ac_cv_prog_CC
8469 if test -n "$CC"; then
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8471 printf "%s\n" "$CC" >&6; }
8472 else
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474 printf "%s\n" "no" >&6; }
8475 fi
8476
8477
8478 test -n "$CC" && break
8479 done
8480 fi
8481 if test -z "$CC"; then
8482 ac_ct_CC=$CC
8483 for ac_prog in cl.exe
8484 do
8485 # Extract the first word of "$ac_prog", so it can be a program name with args.
8486 set dummy $ac_prog; ac_word=$2
8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 printf %s "checking for $ac_word... " >&6; }
8489 if test ${ac_cv_prog_ac_ct_CC+y}
8490 then :
8491 printf %s "(cached) " >&6
8492 else case e in #(
8493 e) if test -n "$ac_ct_CC"; then
8494 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8495 else
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 for as_dir in $PATH
8498 do
8499 IFS=$as_save_IFS
8500 case $as_dir in #(((
8501 '') as_dir=./ ;;
8502 */) ;;
8503 *) as_dir=$as_dir/ ;;
8504 esac
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_ac_ct_CC="$ac_prog"
8508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8509 break 2
8510 fi
8511 done
8512 done
8513 IFS=$as_save_IFS
8514
8515 fi ;;
8516 esac
8517 fi
8518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8519 if test -n "$ac_ct_CC"; then
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8521 printf "%s\n" "$ac_ct_CC" >&6; }
8522 else
8523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 printf "%s\n" "no" >&6; }
8525 fi
8526
8527
8528 test -n "$ac_ct_CC" && break
8529 done
8530
8531 if test "x$ac_ct_CC" = x; then
8532 CC=""
8533 else
8534 case $cross_compiling:$ac_tool_warned in
8535 yes:)
8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8537 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8538 ac_tool_warned=yes ;;
8539 esac
8540 CC=$ac_ct_CC
8541 fi
8542 fi
8543
8544 fi
8545 if test -z "$CC"; then
8546 if test -n "$ac_tool_prefix"; then
8547 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
8548 set dummy ${ac_tool_prefix}clang; ac_word=$2
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550 printf %s "checking for $ac_word... " >&6; }
8551 if test ${ac_cv_prog_CC+y}
8552 then :
8553 printf %s "(cached) " >&6
8554 else case e in #(
8555 e) if test -n "$CC"; then
8556 ac_cv_prog_CC="$CC" # Let the user override the test.
8557 else
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559 for as_dir in $PATH
8560 do
8561 IFS=$as_save_IFS
8562 case $as_dir in #(((
8563 '') as_dir=./ ;;
8564 */) ;;
8565 *) as_dir=$as_dir/ ;;
8566 esac
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8569 ac_cv_prog_CC="${ac_tool_prefix}clang"
8570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8571 break 2
8572 fi
8573 done
8574 done
8575 IFS=$as_save_IFS
8576
8577 fi ;;
8578 esac
8579 fi
8580 CC=$ac_cv_prog_CC
8581 if test -n "$CC"; then
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8583 printf "%s\n" "$CC" >&6; }
8584 else
8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 printf "%s\n" "no" >&6; }
8587 fi
8588
8589
8590 fi
8591 if test -z "$ac_cv_prog_CC"; then
8592 ac_ct_CC=$CC
8593 # Extract the first word of "clang", so it can be a program name with args.
8594 set dummy clang; ac_word=$2
8595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8596 printf %s "checking for $ac_word... " >&6; }
8597 if test ${ac_cv_prog_ac_ct_CC+y}
8598 then :
8599 printf %s "(cached) " >&6
8600 else case e in #(
8601 e) if test -n "$ac_ct_CC"; then
8602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8603 else
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 for as_dir in $PATH
8606 do
8607 IFS=$as_save_IFS
8608 case $as_dir in #(((
8609 '') as_dir=./ ;;
8610 */) ;;
8611 *) as_dir=$as_dir/ ;;
8612 esac
8613 for ac_exec_ext in '' $ac_executable_extensions; do
8614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8615 ac_cv_prog_ac_ct_CC="clang"
8616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8617 break 2
8618 fi
8619 done
8620 done
8621 IFS=$as_save_IFS
8622
8623 fi ;;
8624 esac
8625 fi
8626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8627 if test -n "$ac_ct_CC"; then
8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8629 printf "%s\n" "$ac_ct_CC" >&6; }
8630 else
8631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632 printf "%s\n" "no" >&6; }
8633 fi
8634
8635 if test "x$ac_ct_CC" = x; then
8636 CC=""
8637 else
8638 case $cross_compiling:$ac_tool_warned in
8639 yes:)
8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8641 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8642 ac_tool_warned=yes ;;
8643 esac
8644 CC=$ac_ct_CC
8645 fi
8646 else
8647 CC="$ac_cv_prog_CC"
8648 fi
8649
8650 fi
8651
8652
8653 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8654 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8655 as_fn_error $? "no acceptable C compiler found in \$PATH
8656 See 'config.log' for more details" "$LINENO" 5; }
8657
8658 # Provide some information about the compiler.
8659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8660 set X $ac_compile
8661 ac_compiler=$2
8662 for ac_option in --version -v -V -qversion -version; do
8663 { { ac_try="$ac_compiler $ac_option >&5"
8664 case "(($ac_try" in
8665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666 *) ac_try_echo=$ac_try;;
8667 esac
8668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8669 printf "%s\n" "$ac_try_echo"; } >&5
8670 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8671 ac_status=$?
8672 if test -s conftest.err; then
8673 sed '10a\
8674 ... rest of stderr output deleted ...
8675 10q' conftest.err >conftest.er1
8676 cat conftest.er1 >&5
8677 fi
8678 rm -f conftest.er1 conftest.err
8679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8680 test $ac_status = 0; }
8681 done
8682
8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
8684 printf %s "checking whether the compiler supports GNU C... " >&6; }
8685 if test ${ac_cv_c_compiler_gnu+y}
8686 then :
8687 printf %s "(cached) " >&6
8688 else case e in #(
8689 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8691
8692 int
8693 main (void)
8694 {
8695 #ifndef __GNUC__
8696 choke me
8697 #endif
8698
8699 ;
8700 return 0;
8701 }
8702 _ACEOF
8703 if ac_fn_c_try_compile "$LINENO"
8704 then :
8705 ac_compiler_gnu=yes
8706 else case e in #(
8707 e) ac_compiler_gnu=no ;;
8708 esac
8709 fi
8710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8711 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8712 ;;
8713 esac
8714 fi
8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8716 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
8717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8718
8719 if test $ac_compiler_gnu = yes; then
8720 GCC=yes
8721 else
8722 GCC=
8723 fi
8724 ac_test_CFLAGS=${CFLAGS+y}
8725 ac_save_CFLAGS=$CFLAGS
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8727 printf %s "checking whether $CC accepts -g... " >&6; }
8728 if test ${ac_cv_prog_cc_g+y}
8729 then :
8730 printf %s "(cached) " >&6
8731 else case e in #(
8732 e) ac_save_c_werror_flag=$ac_c_werror_flag
8733 ac_c_werror_flag=yes
8734 ac_cv_prog_cc_g=no
8735 CFLAGS="-g"
8736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737 /* end confdefs.h. */
8738
8739 int
8740 main (void)
8741 {
8742
8743 ;
8744 return 0;
8745 }
8746 _ACEOF
8747 if ac_fn_c_try_compile "$LINENO"
8748 then :
8749 ac_cv_prog_cc_g=yes
8750 else case e in #(
8751 e) CFLAGS=""
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754
8755 int
8756 main (void)
8757 {
8758
8759 ;
8760 return 0;
8761 }
8762 _ACEOF
8763 if ac_fn_c_try_compile "$LINENO"
8764 then :
8765
8766 else case e in #(
8767 e) ac_c_werror_flag=$ac_save_c_werror_flag
8768 CFLAGS="-g"
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771
8772 int
8773 main (void)
8774 {
8775
8776 ;
8777 return 0;
8778 }
8779 _ACEOF
8780 if ac_fn_c_try_compile "$LINENO"
8781 then :
8782 ac_cv_prog_cc_g=yes
8783 fi
8784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8785 esac
8786 fi
8787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8788 esac
8789 fi
8790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8791 ac_c_werror_flag=$ac_save_c_werror_flag ;;
8792 esac
8793 fi
8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8795 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
8796 if test $ac_test_CFLAGS; then
8797 CFLAGS=$ac_save_CFLAGS
8798 elif test $ac_cv_prog_cc_g = yes; then
8799 if test "$GCC" = yes; then
8800 CFLAGS="-g -O2"
8801 else
8802 CFLAGS="-g"
8803 fi
8804 else
8805 if test "$GCC" = yes; then
8806 CFLAGS="-O2"
8807 else
8808 CFLAGS=
8809 fi
8810 fi
8811 ac_prog_cc_stdc=no
8812 if test x$ac_prog_cc_stdc = xno
8813 then :
8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
8815 printf %s "checking for $CC option to enable C11 features... " >&6; }
8816 if test ${ac_cv_prog_cc_c11+y}
8817 then :
8818 printf %s "(cached) " >&6
8819 else case e in #(
8820 e) ac_cv_prog_cc_c11=no
8821 ac_save_CC=$CC
8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h. */
8824 $ac_c_conftest_c11_program
8825 _ACEOF
8826 for ac_arg in '' -std=gnu11
8827 do
8828 CC="$ac_save_CC $ac_arg"
8829 if ac_fn_c_try_compile "$LINENO"
8830 then :
8831 ac_cv_prog_cc_c11=$ac_arg
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext conftest.beam
8834 test "x$ac_cv_prog_cc_c11" != "xno" && break
8835 done
8836 rm -f conftest.$ac_ext
8837 CC=$ac_save_CC ;;
8838 esac
8839 fi
8840
8841 if test "x$ac_cv_prog_cc_c11" = xno
8842 then :
8843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8844 printf "%s\n" "unsupported" >&6; }
8845 else case e in #(
8846 e) if test "x$ac_cv_prog_cc_c11" = x
8847 then :
8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8849 printf "%s\n" "none needed" >&6; }
8850 else case e in #(
8851 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
8852 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
8853 CC="$CC $ac_cv_prog_cc_c11" ;;
8854 esac
8855 fi
8856 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
8857 ac_prog_cc_stdc=c11 ;;
8858 esac
8859 fi
8860 fi
8861 if test x$ac_prog_cc_stdc = xno
8862 then :
8863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
8864 printf %s "checking for $CC option to enable C99 features... " >&6; }
8865 if test ${ac_cv_prog_cc_c99+y}
8866 then :
8867 printf %s "(cached) " >&6
8868 else case e in #(
8869 e) ac_cv_prog_cc_c99=no
8870 ac_save_CC=$CC
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8873 $ac_c_conftest_c99_program
8874 _ACEOF
8875 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
8876 do
8877 CC="$ac_save_CC $ac_arg"
8878 if ac_fn_c_try_compile "$LINENO"
8879 then :
8880 ac_cv_prog_cc_c99=$ac_arg
8881 fi
8882 rm -f core conftest.err conftest.$ac_objext conftest.beam
8883 test "x$ac_cv_prog_cc_c99" != "xno" && break
8884 done
8885 rm -f conftest.$ac_ext
8886 CC=$ac_save_CC ;;
8887 esac
8888 fi
8889
8890 if test "x$ac_cv_prog_cc_c99" = xno
8891 then :
8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8893 printf "%s\n" "unsupported" >&6; }
8894 else case e in #(
8895 e) if test "x$ac_cv_prog_cc_c99" = x
8896 then :
8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8898 printf "%s\n" "none needed" >&6; }
8899 else case e in #(
8900 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8901 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
8902 CC="$CC $ac_cv_prog_cc_c99" ;;
8903 esac
8904 fi
8905 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
8906 ac_prog_cc_stdc=c99 ;;
8907 esac
8908 fi
8909 fi
8910 if test x$ac_prog_cc_stdc = xno
8911 then :
8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
8913 printf %s "checking for $CC option to enable C89 features... " >&6; }
8914 if test ${ac_cv_prog_cc_c89+y}
8915 then :
8916 printf %s "(cached) " >&6
8917 else case e in #(
8918 e) ac_cv_prog_cc_c89=no
8919 ac_save_CC=$CC
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8922 $ac_c_conftest_c89_program
8923 _ACEOF
8924 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8925 do
8926 CC="$ac_save_CC $ac_arg"
8927 if ac_fn_c_try_compile "$LINENO"
8928 then :
8929 ac_cv_prog_cc_c89=$ac_arg
8930 fi
8931 rm -f core conftest.err conftest.$ac_objext conftest.beam
8932 test "x$ac_cv_prog_cc_c89" != "xno" && break
8933 done
8934 rm -f conftest.$ac_ext
8935 CC=$ac_save_CC ;;
8936 esac
8937 fi
8938
8939 if test "x$ac_cv_prog_cc_c89" = xno
8940 then :
8941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8942 printf "%s\n" "unsupported" >&6; }
8943 else case e in #(
8944 e) if test "x$ac_cv_prog_cc_c89" = x
8945 then :
8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8947 printf "%s\n" "none needed" >&6; }
8948 else case e in #(
8949 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8950 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
8951 CC="$CC $ac_cv_prog_cc_c89" ;;
8952 esac
8953 fi
8954 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
8955 ac_prog_cc_stdc=c89 ;;
8956 esac
8957 fi
8958 fi
8959
8960 ac_ext=c
8961 ac_cpp='$CPP $CPPFLAGS'
8962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8965
8966
8967
8968
8969
8970 if test "$CC" = "icx" ; then
8971
8972 if test ${CFLAGS+y}
8973 then :
8974
8975 case " $CFLAGS " in #(
8976 *" -fp-model precise "*) :
8977 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -fp-model precise"; } >&5
8978 (: CFLAGS already contains -fp-model precise) 2>&5
8979 ac_status=$?
8980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8981 test $ac_status = 0; } ;; #(
8982 *) :
8983
8984 as_fn_append CFLAGS " -fp-model precise"
8985 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8986 (: CFLAGS="$CFLAGS") 2>&5
8987 ac_status=$?
8988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8989 test $ac_status = 0; }
8990 ;;
8991 esac
8992
8993 else case e in #(
8994 e)
8995 CFLAGS=-fp-model precise
8996 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8997 (: CFLAGS="$CFLAGS") 2>&5
8998 ac_status=$?
8999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9000 test $ac_status = 0; }
9001 ;;
9002 esac
9003 fi
9004
9005 fi
9006
9007 case $host_os in
9008 mingw*)
9009 win32_build=yes
9010 if test $pkg_build = yes ; then
9011 win32pkg=yes
9012 fi
9013 if test "x$WINDRES" = x ; then
9014 WINDRES=windres
9015 fi
9016
9017 ;;
9018 esac
9019
9020 case $host_cpu in
9021 i?86*)
9022 win32bit=yes
9023 ;;
9024 esac
9025
9026 # Check whether --enable-static was given.
9027 if test ${enable_static+y}
9028 then :
9029 enableval=$enable_static; p=${PACKAGE-default}
9030 case $enableval in
9031 yes) enable_static=yes ;;
9032 no) enable_static=no ;;
9033 *)
9034 enable_static=no
9035 # Look at the argument we got. We use all the common list separators.
9036 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9037 for pkg in $enableval; do
9038 IFS=$lt_save_ifs
9039 if test "X$pkg" = "X$p"; then
9040 enable_static=yes
9041 fi
9042 done
9043 IFS=$lt_save_ifs
9044 ;;
9045 esac
9046 else case e in #(
9047 e) enable_static=no ;;
9048 esac
9049 fi
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059 enable_dlopen=yes
9060
9061
9062
9063 case `pwd` in
9064 *\ * | *\ *)
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9066 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9067 esac
9068
9069
9070
9071 macro_version='2.4.7.4-1ec8f-dirty'
9072 macro_revision='2.4.7.4'
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087 ltmain=$ac_aux_dir/ltmain.sh
9088
9089 # Backslashify metacharacters that are still active within
9090 # double-quoted strings.
9091 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9092
9093 # Same as above, but do not quote variable references.
9094 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9095
9096 # Sed substitution to delay expansion of an escaped shell variable in a
9097 # double_quote_subst'ed string.
9098 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9099
9100 # Sed substitution to delay expansion of an escaped single quote.
9101 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9102
9103 # Sed substitution to avoid accidental globbing in evaled expressions
9104 no_glob_subst='s/\*/\\\*/g'
9105
9106 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9107 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9108 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9109
9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9111 printf %s "checking how to print strings... " >&6; }
9112 # Test print first, because it will be a builtin if present.
9113 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9114 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9115 ECHO='print -r --'
9116 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9117 ECHO='printf %s\n'
9118 else
9119 # Use this function as a fallback that always works.
9120 func_fallback_echo ()
9121 {
9122 eval 'cat <<_LTECHO_EOF
9123 $1
9124 _LTECHO_EOF'
9125 }
9126 ECHO='func_fallback_echo'
9127 fi
9128
9129 # func_echo_all arg...
9130 # Invoke $ECHO with all args, space-separated.
9131 func_echo_all ()
9132 {
9133 $ECHO ""
9134 }
9135
9136 case $ECHO in
9137 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9138 printf "%s\n" "printf" >&6; } ;;
9139 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9140 printf "%s\n" "print -r" >&6; } ;;
9141 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9142 printf "%s\n" "cat" >&6; } ;;
9143 esac
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9159 printf %s "checking for a sed that does not truncate output... " >&6; }
9160 if test ${ac_cv_path_SED+y}
9161 then :
9162 printf %s "(cached) " >&6
9163 else case e in #(
9164 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9165 for ac_i in 1 2 3 4 5 6 7; do
9166 ac_script="$ac_script$as_nl$ac_script"
9167 done
9168 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9169 { ac_script=; unset ac_script;}
9170 if test -z "$SED"; then
9171 ac_path_SED_found=false
9172 # Loop through the user's path and test for each of PROGNAME-LIST
9173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174 for as_dir in $PATH
9175 do
9176 IFS=$as_save_IFS
9177 case $as_dir in #(((
9178 '') as_dir=./ ;;
9179 */) ;;
9180 *) as_dir=$as_dir/ ;;
9181 esac
9182 for ac_prog in sed gsed
9183 do
9184 for ac_exec_ext in '' $ac_executable_extensions; do
9185 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
9186 as_fn_executable_p "$ac_path_SED" || continue
9187 # Check for GNU ac_path_SED and select it if it is found.
9188 # Check for GNU $ac_path_SED
9189 case `"$ac_path_SED" --version 2>&1` in #(
9190 *GNU*)
9191 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9192 #(
9193 *)
9194 ac_count=0
9195 printf %s 0123456789 >"conftest.in"
9196 while :
9197 do
9198 cat "conftest.in" "conftest.in" >"conftest.tmp"
9199 mv "conftest.tmp" "conftest.in"
9200 cp "conftest.in" "conftest.nl"
9201 printf "%s\n" '' >> "conftest.nl"
9202 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9204 as_fn_arith $ac_count + 1 && ac_count=$as_val
9205 if test $ac_count -gt ${ac_path_SED_max-0}; then
9206 # Best one so far, save it but keep looking for a better one
9207 ac_cv_path_SED="$ac_path_SED"
9208 ac_path_SED_max=$ac_count
9209 fi
9210 # 10*(2^10) chars as input seems more than enough
9211 test $ac_count -gt 10 && break
9212 done
9213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9214 esac
9215
9216 $ac_path_SED_found && break 3
9217 done
9218 done
9219 done
9220 IFS=$as_save_IFS
9221 if test -z "$ac_cv_path_SED"; then
9222 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9223 fi
9224 else
9225 ac_cv_path_SED=$SED
9226 fi
9227 ;;
9228 esac
9229 fi
9230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9231 printf "%s\n" "$ac_cv_path_SED" >&6; }
9232 SED="$ac_cv_path_SED"
9233 rm -f conftest.sed
9234
9235 test -z "$SED" && SED=sed
9236 Xsed="$SED -e 1s/^X//"
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
9249 printf %s "checking for grep that handles long lines and -e... " >&6; }
9250 if test ${ac_cv_path_GREP+y}
9251 then :
9252 printf %s "(cached) " >&6
9253 else case e in #(
9254 e) if test -z "$GREP"; then
9255 ac_path_GREP_found=false
9256 # Loop through the user's path and test for each of PROGNAME-LIST
9257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9259 do
9260 IFS=$as_save_IFS
9261 case $as_dir in #(((
9262 '') as_dir=./ ;;
9263 */) ;;
9264 *) as_dir=$as_dir/ ;;
9265 esac
9266 for ac_prog in grep ggrep
9267 do
9268 for ac_exec_ext in '' $ac_executable_extensions; do
9269 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
9270 as_fn_executable_p "$ac_path_GREP" || continue
9271 # Check for GNU ac_path_GREP and select it if it is found.
9272 # Check for GNU $ac_path_GREP
9273 case `"$ac_path_GREP" --version 2>&1` in #(
9274 *GNU*)
9275 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9276 #(
9277 *)
9278 ac_count=0
9279 printf %s 0123456789 >"conftest.in"
9280 while :
9281 do
9282 cat "conftest.in" "conftest.in" >"conftest.tmp"
9283 mv "conftest.tmp" "conftest.in"
9284 cp "conftest.in" "conftest.nl"
9285 printf "%s\n" 'GREP' >> "conftest.nl"
9286 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9288 as_fn_arith $ac_count + 1 && ac_count=$as_val
9289 if test $ac_count -gt ${ac_path_GREP_max-0}; then
9290 # Best one so far, save it but keep looking for a better one
9291 ac_cv_path_GREP="$ac_path_GREP"
9292 ac_path_GREP_max=$ac_count
9293 fi
9294 # 10*(2^10) chars as input seems more than enough
9295 test $ac_count -gt 10 && break
9296 done
9297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9298 esac
9299
9300 $ac_path_GREP_found && break 3
9301 done
9302 done
9303 done
9304 IFS=$as_save_IFS
9305 if test -z "$ac_cv_path_GREP"; then
9306 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9307 fi
9308 else
9309 ac_cv_path_GREP=$GREP
9310 fi
9311 ;;
9312 esac
9313 fi
9314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
9315 printf "%s\n" "$ac_cv_path_GREP" >&6; }
9316 GREP="$ac_cv_path_GREP"
9317
9318
9319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9320 printf %s "checking for egrep... " >&6; }
9321 if test ${ac_cv_path_EGREP+y}
9322 then :
9323 printf %s "(cached) " >&6
9324 else case e in #(
9325 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9326 then ac_cv_path_EGREP="$GREP -E"
9327 else
9328 if test -z "$EGREP"; then
9329 ac_path_EGREP_found=false
9330 # Loop through the user's path and test for each of PROGNAME-LIST
9331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9333 do
9334 IFS=$as_save_IFS
9335 case $as_dir in #(((
9336 '') as_dir=./ ;;
9337 */) ;;
9338 *) as_dir=$as_dir/ ;;
9339 esac
9340 for ac_prog in egrep
9341 do
9342 for ac_exec_ext in '' $ac_executable_extensions; do
9343 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
9344 as_fn_executable_p "$ac_path_EGREP" || continue
9345 # Check for GNU ac_path_EGREP and select it if it is found.
9346 # Check for GNU $ac_path_EGREP
9347 case `"$ac_path_EGREP" --version 2>&1` in #(
9348 *GNU*)
9349 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9350 #(
9351 *)
9352 ac_count=0
9353 printf %s 0123456789 >"conftest.in"
9354 while :
9355 do
9356 cat "conftest.in" "conftest.in" >"conftest.tmp"
9357 mv "conftest.tmp" "conftest.in"
9358 cp "conftest.in" "conftest.nl"
9359 printf "%s\n" 'EGREP' >> "conftest.nl"
9360 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9362 as_fn_arith $ac_count + 1 && ac_count=$as_val
9363 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9364 # Best one so far, save it but keep looking for a better one
9365 ac_cv_path_EGREP="$ac_path_EGREP"
9366 ac_path_EGREP_max=$ac_count
9367 fi
9368 # 10*(2^10) chars as input seems more than enough
9369 test $ac_count -gt 10 && break
9370 done
9371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9372 esac
9373
9374 $ac_path_EGREP_found && break 3
9375 done
9376 done
9377 done
9378 IFS=$as_save_IFS
9379 if test -z "$ac_cv_path_EGREP"; then
9380 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9381 fi
9382 else
9383 ac_cv_path_EGREP=$EGREP
9384 fi
9385
9386 fi ;;
9387 esac
9388 fi
9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9390 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
9391 EGREP="$ac_cv_path_EGREP"
9392
9393 EGREP_TRADITIONAL=$EGREP
9394 ac_cv_path_EGREP_TRADITIONAL=$EGREP
9395
9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9397 printf %s "checking for fgrep... " >&6; }
9398 if test ${ac_cv_path_FGREP+y}
9399 then :
9400 printf %s "(cached) " >&6
9401 else case e in #(
9402 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9403 then ac_cv_path_FGREP="$GREP -F"
9404 else
9405 if test -z "$FGREP"; then
9406 ac_path_FGREP_found=false
9407 # Loop through the user's path and test for each of PROGNAME-LIST
9408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9410 do
9411 IFS=$as_save_IFS
9412 case $as_dir in #(((
9413 '') as_dir=./ ;;
9414 */) ;;
9415 *) as_dir=$as_dir/ ;;
9416 esac
9417 for ac_prog in fgrep
9418 do
9419 for ac_exec_ext in '' $ac_executable_extensions; do
9420 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
9421 as_fn_executable_p "$ac_path_FGREP" || continue
9422 # Check for GNU ac_path_FGREP and select it if it is found.
9423 # Check for GNU $ac_path_FGREP
9424 case `"$ac_path_FGREP" --version 2>&1` in #(
9425 *GNU*)
9426 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9427 #(
9428 *)
9429 ac_count=0
9430 printf %s 0123456789 >"conftest.in"
9431 while :
9432 do
9433 cat "conftest.in" "conftest.in" >"conftest.tmp"
9434 mv "conftest.tmp" "conftest.in"
9435 cp "conftest.in" "conftest.nl"
9436 printf "%s\n" 'FGREP' >> "conftest.nl"
9437 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9438 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9439 as_fn_arith $ac_count + 1 && ac_count=$as_val
9440 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9441 # Best one so far, save it but keep looking for a better one
9442 ac_cv_path_FGREP="$ac_path_FGREP"
9443 ac_path_FGREP_max=$ac_count
9444 fi
9445 # 10*(2^10) chars as input seems more than enough
9446 test $ac_count -gt 10 && break
9447 done
9448 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9449 esac
9450
9451 $ac_path_FGREP_found && break 3
9452 done
9453 done
9454 done
9455 IFS=$as_save_IFS
9456 if test -z "$ac_cv_path_FGREP"; then
9457 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9458 fi
9459 else
9460 ac_cv_path_FGREP=$FGREP
9461 fi
9462
9463 fi ;;
9464 esac
9465 fi
9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9467 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
9468 FGREP="$ac_cv_path_FGREP"
9469
9470
9471 test -z "$GREP" && GREP=grep
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491 # Check whether --with-gnu-ld was given.
9492 if test ${with_gnu_ld+y}
9493 then :
9494 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9495 else case e in #(
9496 e) with_gnu_ld=no ;;
9497 esac
9498 fi
9499
9500 ac_prog=ld
9501 if test yes = "$GCC"; then
9502 # Check if gcc -print-prog-name=ld gives a path.
9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9504 printf %s "checking for ld used by $CC... " >&6; }
9505 case $host in
9506 *-*-mingw*)
9507 # gcc leaves a trailing carriage return, which upsets mingw
9508 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9509 *)
9510 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9511 esac
9512 case $ac_prog in
9513 # Accept absolute paths.
9514 [\\/]* | ?:[\\/]*)
9515 re_direlt='/[^/][^/]*/\.\./'
9516 # Canonicalize the pathname of ld
9517 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9518 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9519 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9520 done
9521 test -z "$LD" && LD=$ac_prog
9522 ;;
9523 "")
9524 # If it fails, then pretend we aren't using GCC.
9525 ac_prog=ld
9526 ;;
9527 *)
9528 # If it is relative, then search for the first ld in PATH.
9529 with_gnu_ld=unknown
9530 ;;
9531 esac
9532 elif test yes = "$with_gnu_ld"; then
9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9534 printf %s "checking for GNU ld... " >&6; }
9535 else
9536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9537 printf %s "checking for non-GNU ld... " >&6; }
9538 fi
9539 if test ${lt_cv_path_LD+y}
9540 then :
9541 printf %s "(cached) " >&6
9542 else case e in #(
9543 e) if test -z "$LD"; then
9544 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9545 for ac_dir in $PATH; do
9546 IFS=$lt_save_ifs
9547 test -z "$ac_dir" && ac_dir=.
9548 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9549 lt_cv_path_LD=$ac_dir/$ac_prog
9550 # Check to see if the program is GNU ld. I'd rather use --version,
9551 # but apparently some variants of GNU ld only accept -v.
9552 # Break only if it was the GNU/non-GNU ld that we prefer.
9553 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9554 *GNU* | *'with BFD'*)
9555 test no != "$with_gnu_ld" && break
9556 ;;
9557 *)
9558 test yes != "$with_gnu_ld" && break
9559 ;;
9560 esac
9561 fi
9562 done
9563 IFS=$lt_save_ifs
9564 else
9565 lt_cv_path_LD=$LD # Let the user override the test with a path.
9566 fi ;;
9567 esac
9568 fi
9569
9570 LD=$lt_cv_path_LD
9571 if test -n "$LD"; then
9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9573 printf "%s\n" "$LD" >&6; }
9574 else
9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 printf "%s\n" "no" >&6; }
9577 fi
9578 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9580 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
9581 if test ${lt_cv_prog_gnu_ld+y}
9582 then :
9583 printf %s "(cached) " >&6
9584 else case e in #(
9585 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
9586 case `$LD -v 2>&1 </dev/null` in
9587 *GNU* | *'with BFD'*)
9588 lt_cv_prog_gnu_ld=yes
9589 ;;
9590 *)
9591 lt_cv_prog_gnu_ld=no
9592 ;;
9593 esac ;;
9594 esac
9595 fi
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9597 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
9598 with_gnu_ld=$lt_cv_prog_gnu_ld
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9609 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9610 if test ${lt_cv_path_NM+y}
9611 then :
9612 printf %s "(cached) " >&6
9613 else case e in #(
9614 e) if test -n "$NM"; then
9615 # Let the user override the test.
9616 lt_cv_path_NM=$NM
9617 else
9618 lt_nm_to_check=${ac_tool_prefix}nm
9619 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9620 lt_nm_to_check="$lt_nm_to_check nm"
9621 fi
9622 for lt_tmp_nm in $lt_nm_to_check; do
9623 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9624 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9625 IFS=$lt_save_ifs
9626 test -z "$ac_dir" && ac_dir=.
9627 tmp_nm=$ac_dir/$lt_tmp_nm
9628 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9629 # Check to see if the nm accepts a BSD-compat flag.
9630 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9631 # nm: unknown option "B" ignored
9632 # Tru64's nm complains that /dev/null is an invalid object file
9633 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9634 case $build_os in
9635 mingw*) lt_bad_file=conftest.nm/nofile ;;
9636 *) lt_bad_file=/dev/null ;;
9637 esac
9638 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
9639 *$lt_bad_file* | *'Invalid file or object type'*)
9640 lt_cv_path_NM="$tmp_nm -B"
9641 break 2
9642 ;;
9643 *)
9644 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9645 */dev/null*)
9646 lt_cv_path_NM="$tmp_nm -p"
9647 break 2
9648 ;;
9649 *)
9650 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9651 continue # so that we can try to find one that supports BSD flags
9652 ;;
9653 esac
9654 ;;
9655 esac
9656 fi
9657 done
9658 IFS=$lt_save_ifs
9659 done
9660 : ${lt_cv_path_NM=no}
9661 fi ;;
9662 esac
9663 fi
9664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9665 printf "%s\n" "$lt_cv_path_NM" >&6; }
9666 if test no != "$lt_cv_path_NM"; then
9667 NM=$lt_cv_path_NM
9668 else
9669 # Didn't find any BSD compatible name lister, look for dumpbin.
9670 if test -n "$DUMPBIN"; then :
9671 # Let the user override the test.
9672 else
9673 if test -n "$ac_tool_prefix"; then
9674 for ac_prog in dumpbin "link -dump"
9675 do
9676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679 printf %s "checking for $ac_word... " >&6; }
9680 if test ${ac_cv_prog_DUMPBIN+y}
9681 then :
9682 printf %s "(cached) " >&6
9683 else case e in #(
9684 e) if test -n "$DUMPBIN"; then
9685 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9686 else
9687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9688 for as_dir in $PATH
9689 do
9690 IFS=$as_save_IFS
9691 case $as_dir in #(((
9692 '') as_dir=./ ;;
9693 */) ;;
9694 *) as_dir=$as_dir/ ;;
9695 esac
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9698 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9700 break 2
9701 fi
9702 done
9703 done
9704 IFS=$as_save_IFS
9705
9706 fi ;;
9707 esac
9708 fi
9709 DUMPBIN=$ac_cv_prog_DUMPBIN
9710 if test -n "$DUMPBIN"; then
9711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9712 printf "%s\n" "$DUMPBIN" >&6; }
9713 else
9714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715 printf "%s\n" "no" >&6; }
9716 fi
9717
9718
9719 test -n "$DUMPBIN" && break
9720 done
9721 fi
9722 if test -z "$DUMPBIN"; then
9723 ac_ct_DUMPBIN=$DUMPBIN
9724 for ac_prog in dumpbin "link -dump"
9725 do
9726 # Extract the first word of "$ac_prog", so it can be a program name with args.
9727 set dummy $ac_prog; ac_word=$2
9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9729 printf %s "checking for $ac_word... " >&6; }
9730 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9731 then :
9732 printf %s "(cached) " >&6
9733 else case e in #(
9734 e) if test -n "$ac_ct_DUMPBIN"; then
9735 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9736 else
9737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738 for as_dir in $PATH
9739 do
9740 IFS=$as_save_IFS
9741 case $as_dir in #(((
9742 '') as_dir=./ ;;
9743 */) ;;
9744 *) as_dir=$as_dir/ ;;
9745 esac
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9748 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9750 break 2
9751 fi
9752 done
9753 done
9754 IFS=$as_save_IFS
9755
9756 fi ;;
9757 esac
9758 fi
9759 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9760 if test -n "$ac_ct_DUMPBIN"; then
9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9762 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9763 else
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 printf "%s\n" "no" >&6; }
9766 fi
9767
9768
9769 test -n "$ac_ct_DUMPBIN" && break
9770 done
9771
9772 if test "x$ac_ct_DUMPBIN" = x; then
9773 DUMPBIN=":"
9774 else
9775 case $cross_compiling:$ac_tool_warned in
9776 yes:)
9777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9778 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9779 ac_tool_warned=yes ;;
9780 esac
9781 DUMPBIN=$ac_ct_DUMPBIN
9782 fi
9783 fi
9784
9785 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
9786 *COFF*)
9787 DUMPBIN="$DUMPBIN -symbols -headers"
9788 ;;
9789 *)
9790 DUMPBIN=:
9791 ;;
9792 esac
9793 fi
9794
9795 if test : != "$DUMPBIN"; then
9796 NM=$DUMPBIN
9797 fi
9798 fi
9799 test -z "$NM" && NM=nm
9800
9801
9802
9803
9804
9805
9806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9807 printf %s "checking the name lister ($NM) interface... " >&6; }
9808 if test ${lt_cv_nm_interface+y}
9809 then :
9810 printf %s "(cached) " >&6
9811 else case e in #(
9812 e) lt_cv_nm_interface="BSD nm"
9813 echo "int some_variable = 0;" > conftest.$ac_ext
9814 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9815 (eval "$ac_compile" 2>conftest.err)
9816 cat conftest.err >&5
9817 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9818 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9819 cat conftest.err >&5
9820 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9821 cat conftest.out >&5
9822 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9823 lt_cv_nm_interface="MS dumpbin"
9824 fi
9825 rm -f conftest* ;;
9826 esac
9827 fi
9828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9829 printf "%s\n" "$lt_cv_nm_interface" >&6; }
9830
9831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9832 printf %s "checking whether ln -s works... " >&6; }
9833 LN_S=$as_ln_s
9834 if test "$LN_S" = "ln -s"; then
9835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9836 printf "%s\n" "yes" >&6; }
9837 else
9838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9839 printf "%s\n" "no, using $LN_S" >&6; }
9840 fi
9841
9842 # find the maximum length of command line arguments
9843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9844 printf %s "checking the maximum length of command line arguments... " >&6; }
9845 if test ${lt_cv_sys_max_cmd_len+y}
9846 then :
9847 printf %s "(cached) " >&6
9848 else case e in #(
9849 e) i=0
9850 teststring=ABCD
9851
9852 case $build_os in
9853 msdosdjgpp*)
9854 # On DJGPP, this test can blow up pretty badly due to problems in libc
9855 # (any single argument exceeding 2000 bytes causes a buffer overrun
9856 # during glob expansion). Even if it were fixed, the result of this
9857 # check would be larger than it should be.
9858 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9859 ;;
9860
9861 gnu*)
9862 # Under GNU Hurd, this test is not required because there is
9863 # no limit to the length of command line arguments.
9864 # Libtool will interpret -1 as no limit whatsoever
9865 lt_cv_sys_max_cmd_len=-1;
9866 ;;
9867
9868 cygwin* | mingw* | cegcc*)
9869 # On Win9x/ME, this test blows up -- it succeeds, but takes
9870 # about 5 minutes as the teststring grows exponentially.
9871 # Worse, since 9x/ME are not pre-emptively multitasking,
9872 # you end up with a "frozen" computer, even though with patience
9873 # the test eventually succeeds (with a max line length of 256k).
9874 # Instead, let's just punt: use the minimum linelength reported by
9875 # all of the supported platforms: 8192 (on NT/2K/XP).
9876 lt_cv_sys_max_cmd_len=8192;
9877 ;;
9878
9879 mint*)
9880 # On MiNT this can take a long time and run out of memory.
9881 lt_cv_sys_max_cmd_len=8192;
9882 ;;
9883
9884 amigaos*)
9885 # On AmigaOS with pdksh, this test takes hours, literally.
9886 # So we just punt and use a minimum line length of 8192.
9887 lt_cv_sys_max_cmd_len=8192;
9888 ;;
9889
9890 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
9891 # This has been around since 386BSD, at least. Likely further.
9892 if test -x /sbin/sysctl; then
9893 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9894 elif test -x /usr/sbin/sysctl; then
9895 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9896 else
9897 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9898 fi
9899 # And add a safety zone
9900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9902 ;;
9903
9904 interix*)
9905 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9906 lt_cv_sys_max_cmd_len=196608
9907 ;;
9908
9909 os2*)
9910 # The test takes a long time on OS/2.
9911 lt_cv_sys_max_cmd_len=8192
9912 ;;
9913
9914 osf*)
9915 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9916 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9917 # nice to cause kernel panics so lets avoid the loop below.
9918 # First set a reasonable default.
9919 lt_cv_sys_max_cmd_len=16384
9920 #
9921 if test -x /sbin/sysconfig; then
9922 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9923 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9924 esac
9925 fi
9926 ;;
9927 sco3.2v5*)
9928 lt_cv_sys_max_cmd_len=102400
9929 ;;
9930 sysv5* | sco5v6* | sysv4.2uw2*)
9931 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9932 if test -n "$kargmax"; then
9933 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9934 else
9935 lt_cv_sys_max_cmd_len=32768
9936 fi
9937 ;;
9938 *)
9939 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9940 if test -n "$lt_cv_sys_max_cmd_len" && \
9941 test undefined != "$lt_cv_sys_max_cmd_len"; then
9942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9944 else
9945 # Make teststring a little bigger before we do anything with it.
9946 # a 1K string should be a reasonable start.
9947 for i in 1 2 3 4 5 6 7 8; do
9948 teststring=$teststring$teststring
9949 done
9950 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9951 # If test is not a shell built-in, we'll probably end up computing a
9952 # maximum length that is only half of the actual maximum length, but
9953 # we can't tell.
9954 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9955 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9956 test 17 != "$i" # 1/2 MB should be enough
9957 do
9958 i=`expr $i + 1`
9959 teststring=$teststring$teststring
9960 done
9961 # Only check the string length outside the loop.
9962 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9963 teststring=
9964 # Add a significant safety factor because C++ compilers can tack on
9965 # massive amounts of additional arguments before passing them to the
9966 # linker. It appears as though 1/2 is a usable value.
9967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9968 fi
9969 ;;
9970 esac
9971 ;;
9972 esac
9973 fi
9974
9975 if test -n "$lt_cv_sys_max_cmd_len"; then
9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9977 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9978 else
9979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9980 printf "%s\n" "none" >&6; }
9981 fi
9982 max_cmd_len=$lt_cv_sys_max_cmd_len
9983
9984
9985
9986
9987
9988
9989 : ${CP="cp -f"}
9990 : ${MV="mv -f"}
9991 : ${RM="rm -f"}
9992
9993 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9994 lt_unset=unset
9995 else
9996 lt_unset=false
9997 fi
9998
9999
10000
10001
10002
10003 # test EBCDIC or ASCII
10004 case `echo X|tr X '\101'` in
10005 A) # ASCII based system
10006 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10007 lt_SP2NL='tr \040 \012'
10008 lt_NL2SP='tr \015\012 \040\040'
10009 ;;
10010 *) # EBCDIC based system
10011 lt_SP2NL='tr \100 \n'
10012 lt_NL2SP='tr \r\n \100\100'
10013 ;;
10014 esac
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10025 printf %s "checking how to convert $build file names to $host format... " >&6; }
10026 if test ${lt_cv_to_host_file_cmd+y}
10027 then :
10028 printf %s "(cached) " >&6
10029 else case e in #(
10030 e) case $host in
10031 *-*-mingw* )
10032 case $build in
10033 *-*-mingw* ) # actually msys
10034 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10035 ;;
10036 *-*-cygwin* )
10037 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10038 ;;
10039 * ) # otherwise, assume *nix
10040 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10041 ;;
10042 esac
10043 ;;
10044 *-*-cygwin* )
10045 case $build in
10046 *-*-mingw* ) # actually msys
10047 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10048 ;;
10049 *-*-cygwin* )
10050 lt_cv_to_host_file_cmd=func_convert_file_noop
10051 ;;
10052 * ) # otherwise, assume *nix
10053 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10054 ;;
10055 esac
10056 ;;
10057 * ) # unhandled hosts (and "normal" native builds)
10058 lt_cv_to_host_file_cmd=func_convert_file_noop
10059 ;;
10060 esac
10061 ;;
10062 esac
10063 fi
10064
10065 to_host_file_cmd=$lt_cv_to_host_file_cmd
10066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10067 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
10068
10069
10070
10071
10072
10073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10074 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
10075 if test ${lt_cv_to_tool_file_cmd+y}
10076 then :
10077 printf %s "(cached) " >&6
10078 else case e in #(
10079 e) #assume ordinary cross tools, or native build.
10080 lt_cv_to_tool_file_cmd=func_convert_file_noop
10081 case $host in
10082 *-*-mingw* )
10083 case $build in
10084 *-*-mingw* ) # actually msys
10085 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10086 ;;
10087 esac
10088 ;;
10089 esac
10090 ;;
10091 esac
10092 fi
10093
10094 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10096 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
10097
10098
10099
10100
10101
10102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10103 printf %s "checking for $LD option to reload object files... " >&6; }
10104 if test ${lt_cv_ld_reload_flag+y}
10105 then :
10106 printf %s "(cached) " >&6
10107 else case e in #(
10108 e) lt_cv_ld_reload_flag='-r' ;;
10109 esac
10110 fi
10111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10112 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
10113 reload_flag=$lt_cv_ld_reload_flag
10114 case $reload_flag in
10115 "" | " "*) ;;
10116 *) reload_flag=" $reload_flag" ;;
10117 esac
10118 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10119 case $host_os in
10120 cygwin* | mingw* | pw32* | cegcc*)
10121 if test yes != "$GCC"; then
10122 reload_cmds=false
10123 fi
10124 ;;
10125 darwin*)
10126 if test yes = "$GCC"; then
10127 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
10128 else
10129 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10130 fi
10131 ;;
10132 esac
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142 if test -n "$ac_tool_prefix"; then
10143 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10144 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10146 printf %s "checking for $ac_word... " >&6; }
10147 if test ${ac_cv_prog_OBJDUMP+y}
10148 then :
10149 printf %s "(cached) " >&6
10150 else case e in #(
10151 e) if test -n "$OBJDUMP"; then
10152 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10153 else
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10156 do
10157 IFS=$as_save_IFS
10158 case $as_dir in #(((
10159 '') as_dir=./ ;;
10160 */) ;;
10161 *) as_dir=$as_dir/ ;;
10162 esac
10163 for ac_exec_ext in '' $ac_executable_extensions; do
10164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10165 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10167 break 2
10168 fi
10169 done
10170 done
10171 IFS=$as_save_IFS
10172
10173 fi ;;
10174 esac
10175 fi
10176 OBJDUMP=$ac_cv_prog_OBJDUMP
10177 if test -n "$OBJDUMP"; then
10178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10179 printf "%s\n" "$OBJDUMP" >&6; }
10180 else
10181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10182 printf "%s\n" "no" >&6; }
10183 fi
10184
10185
10186 fi
10187 if test -z "$ac_cv_prog_OBJDUMP"; then
10188 ac_ct_OBJDUMP=$OBJDUMP
10189 # Extract the first word of "objdump", so it can be a program name with args.
10190 set dummy objdump; ac_word=$2
10191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192 printf %s "checking for $ac_word... " >&6; }
10193 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10194 then :
10195 printf %s "(cached) " >&6
10196 else case e in #(
10197 e) if test -n "$ac_ct_OBJDUMP"; then
10198 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10199 else
10200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10201 for as_dir in $PATH
10202 do
10203 IFS=$as_save_IFS
10204 case $as_dir in #(((
10205 '') as_dir=./ ;;
10206 */) ;;
10207 *) as_dir=$as_dir/ ;;
10208 esac
10209 for ac_exec_ext in '' $ac_executable_extensions; do
10210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10211 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10213 break 2
10214 fi
10215 done
10216 done
10217 IFS=$as_save_IFS
10218
10219 fi ;;
10220 esac
10221 fi
10222 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10223 if test -n "$ac_ct_OBJDUMP"; then
10224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10225 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10226 else
10227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228 printf "%s\n" "no" >&6; }
10229 fi
10230
10231 if test "x$ac_ct_OBJDUMP" = x; then
10232 OBJDUMP="false"
10233 else
10234 case $cross_compiling:$ac_tool_warned in
10235 yes:)
10236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10237 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10238 ac_tool_warned=yes ;;
10239 esac
10240 OBJDUMP=$ac_ct_OBJDUMP
10241 fi
10242 else
10243 OBJDUMP="$ac_cv_prog_OBJDUMP"
10244 fi
10245
10246 test -z "$OBJDUMP" && OBJDUMP=objdump
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10257 printf %s "checking how to recognize dependent libraries... " >&6; }
10258 if test ${lt_cv_deplibs_check_method+y}
10259 then :
10260 printf %s "(cached) " >&6
10261 else case e in #(
10262 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
10263 lt_cv_file_magic_test_file=
10264 lt_cv_deplibs_check_method='unknown'
10265 # Need to set the preceding variable on all platforms that support
10266 # interlibrary dependencies.
10267 # 'none' -- dependencies not supported.
10268 # 'unknown' -- same as none, but documents that we really don't know.
10269 # 'pass_all' -- all dependencies passed with no checks.
10270 # 'test_compile' -- check by making test program.
10271 # 'file_magic [[regex]]' -- check by looking for files in library path
10272 # that responds to the $file_magic_cmd with a given extended regex.
10273 # If you have 'file' or equivalent on your system and you're not sure
10274 # whether 'pass_all' will *always* work, you probably want this one.
10275
10276 case $host_os in
10277 aix[4-9]*)
10278 lt_cv_deplibs_check_method=pass_all
10279 ;;
10280
10281 beos*)
10282 lt_cv_deplibs_check_method=pass_all
10283 ;;
10284
10285 bsdi[45]*)
10286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10287 lt_cv_file_magic_cmd='/usr/bin/file -L'
10288 lt_cv_file_magic_test_file=/shlib/libc.so
10289 ;;
10290
10291 cygwin*)
10292 # func_win32_libid is a shell function defined in ltmain.sh
10293 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10294 lt_cv_file_magic_cmd='func_win32_libid'
10295 ;;
10296
10297 mingw* | pw32*)
10298 # Base MSYS/MinGW do not provide the 'file' command needed by
10299 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10300 # unless we find 'file', for example because we are cross-compiling.
10301 if true ; then
10302 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10303 lt_cv_file_magic_cmd='func_win32_libid'
10304 else
10305 # Keep this pattern in sync with the one in func_win32_libid.
10306 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10307 lt_cv_file_magic_cmd='$OBJDUMP -f'
10308 fi
10309 # gretl hack: allow linking in static libs on Windows under mingw
10310 lt_cv_deplibs_check_method=pass_all
10311 ;;
10312
10313 cegcc*)
10314 # use the weaker test based on 'objdump'. See mingw*.
10315 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10316 lt_cv_file_magic_cmd='$OBJDUMP -f'
10317 ;;
10318
10319 darwin* | rhapsody*)
10320 lt_cv_deplibs_check_method=pass_all
10321 ;;
10322
10323 freebsd* | dragonfly*)
10324 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10325 case $host_cpu in
10326 i*86 )
10327 # Not sure whether the presence of OpenBSD here was a mistake.
10328 # Let's accept both of them until this is cleared up.
10329 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10330 lt_cv_file_magic_cmd=/usr/bin/file
10331 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10332 ;;
10333 esac
10334 else
10335 lt_cv_deplibs_check_method=pass_all
10336 fi
10337 ;;
10338
10339 haiku*)
10340 lt_cv_deplibs_check_method=pass_all
10341 ;;
10342
10343 hpux10.20* | hpux11*)
10344 lt_cv_file_magic_cmd=/usr/bin/file
10345 case $host_cpu in
10346 ia64*)
10347 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10348 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10349 ;;
10350 hppa*64*)
10351 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]'
10352 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10353 ;;
10354 *)
10355 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10356 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10357 ;;
10358 esac
10359 ;;
10360
10361 interix[3-9]*)
10362 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10364 ;;
10365
10366 irix5* | irix6* | nonstopux*)
10367 case $LD in
10368 *-32|*"-32 ") libmagic=32-bit;;
10369 *-n32|*"-n32 ") libmagic=N32;;
10370 *-64|*"-64 ") libmagic=64-bit;;
10371 *) libmagic=never-match;;
10372 esac
10373 lt_cv_deplibs_check_method=pass_all
10374 ;;
10375
10376 # This must be glibc/ELF.
10377 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10378 lt_cv_deplibs_check_method=pass_all
10379 ;;
10380
10381 netbsd*)
10382 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10384 else
10385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10386 fi
10387 ;;
10388
10389 newos6*)
10390 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10391 lt_cv_file_magic_cmd=/usr/bin/file
10392 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10393 ;;
10394
10395 *nto* | *qnx*)
10396 lt_cv_deplibs_check_method=pass_all
10397 ;;
10398
10399 openbsd* | bitrig*)
10400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10401 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10402 else
10403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10404 fi
10405 ;;
10406
10407 osf3* | osf4* | osf5*)
10408 lt_cv_deplibs_check_method=pass_all
10409 ;;
10410
10411 rdos*)
10412 lt_cv_deplibs_check_method=pass_all
10413 ;;
10414
10415 solaris*)
10416 lt_cv_deplibs_check_method=pass_all
10417 ;;
10418
10419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10420 lt_cv_deplibs_check_method=pass_all
10421 ;;
10422
10423 sysv4 | sysv4.3*)
10424 case $host_vendor in
10425 motorola)
10426 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]'
10427 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10428 ;;
10429 ncr)
10430 lt_cv_deplibs_check_method=pass_all
10431 ;;
10432 sequent)
10433 lt_cv_file_magic_cmd='/bin/file'
10434 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10435 ;;
10436 sni)
10437 lt_cv_file_magic_cmd='/bin/file'
10438 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10439 lt_cv_file_magic_test_file=/lib/libc.so
10440 ;;
10441 siemens)
10442 lt_cv_deplibs_check_method=pass_all
10443 ;;
10444 pc)
10445 lt_cv_deplibs_check_method=pass_all
10446 ;;
10447 esac
10448 ;;
10449
10450 tpf*)
10451 lt_cv_deplibs_check_method=pass_all
10452 ;;
10453 os2*)
10454 lt_cv_deplibs_check_method=pass_all
10455 ;;
10456 esac
10457 ;;
10458 esac
10459 fi
10460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10461 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
10462
10463 file_magic_glob=
10464 want_nocaseglob=no
10465 if test "$build" = "$host"; then
10466 case $host_os in
10467 mingw* | pw32*)
10468 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10469 want_nocaseglob=yes
10470 else
10471 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10472 fi
10473 ;;
10474 esac
10475 fi
10476
10477 file_magic_cmd=$lt_cv_file_magic_cmd
10478 deplibs_check_method=$lt_cv_deplibs_check_method
10479 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502 if test -n "$ac_tool_prefix"; then
10503 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10504 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10506 printf %s "checking for $ac_word... " >&6; }
10507 if test ${ac_cv_prog_DLLTOOL+y}
10508 then :
10509 printf %s "(cached) " >&6
10510 else case e in #(
10511 e) if test -n "$DLLTOOL"; then
10512 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10513 else
10514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515 for as_dir in $PATH
10516 do
10517 IFS=$as_save_IFS
10518 case $as_dir in #(((
10519 '') as_dir=./ ;;
10520 */) ;;
10521 *) as_dir=$as_dir/ ;;
10522 esac
10523 for ac_exec_ext in '' $ac_executable_extensions; do
10524 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10525 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10527 break 2
10528 fi
10529 done
10530 done
10531 IFS=$as_save_IFS
10532
10533 fi ;;
10534 esac
10535 fi
10536 DLLTOOL=$ac_cv_prog_DLLTOOL
10537 if test -n "$DLLTOOL"; then
10538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10539 printf "%s\n" "$DLLTOOL" >&6; }
10540 else
10541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542 printf "%s\n" "no" >&6; }
10543 fi
10544
10545
10546 fi
10547 if test -z "$ac_cv_prog_DLLTOOL"; then
10548 ac_ct_DLLTOOL=$DLLTOOL
10549 # Extract the first word of "dlltool", so it can be a program name with args.
10550 set dummy dlltool; ac_word=$2
10551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10552 printf %s "checking for $ac_word... " >&6; }
10553 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10554 then :
10555 printf %s "(cached) " >&6
10556 else case e in #(
10557 e) if test -n "$ac_ct_DLLTOOL"; then
10558 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10559 else
10560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10561 for as_dir in $PATH
10562 do
10563 IFS=$as_save_IFS
10564 case $as_dir in #(((
10565 '') as_dir=./ ;;
10566 */) ;;
10567 *) as_dir=$as_dir/ ;;
10568 esac
10569 for ac_exec_ext in '' $ac_executable_extensions; do
10570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10571 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10573 break 2
10574 fi
10575 done
10576 done
10577 IFS=$as_save_IFS
10578
10579 fi ;;
10580 esac
10581 fi
10582 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10583 if test -n "$ac_ct_DLLTOOL"; then
10584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10585 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10586 else
10587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588 printf "%s\n" "no" >&6; }
10589 fi
10590
10591 if test "x$ac_ct_DLLTOOL" = x; then
10592 DLLTOOL="false"
10593 else
10594 case $cross_compiling:$ac_tool_warned in
10595 yes:)
10596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10597 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10598 ac_tool_warned=yes ;;
10599 esac
10600 DLLTOOL=$ac_ct_DLLTOOL
10601 fi
10602 else
10603 DLLTOOL="$ac_cv_prog_DLLTOOL"
10604 fi
10605
10606 test -z "$DLLTOOL" && DLLTOOL=dlltool
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10618 printf %s "checking how to associate runtime and link libraries... " >&6; }
10619 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
10620 then :
10621 printf %s "(cached) " >&6
10622 else case e in #(
10623 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
10624
10625 case $host_os in
10626 cygwin* | mingw* | pw32* | cegcc*)
10627 # two different shell functions defined in ltmain.sh;
10628 # decide which one to use based on capabilities of $DLLTOOL
10629 case `$DLLTOOL --help 2>&1` in
10630 *--identify-strict*)
10631 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10632 ;;
10633 *)
10634 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10635 ;;
10636 esac
10637 ;;
10638 *)
10639 # fallback: assume linklib IS sharedlib
10640 lt_cv_sharedlib_from_linklib_cmd=$ECHO
10641 ;;
10642 esac
10643 ;;
10644 esac
10645 fi
10646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10647 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10648 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10649 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10650
10651
10652
10653
10654
10655
10656
10657 if test -n "$ac_tool_prefix"; then
10658 for ac_prog in ar
10659 do
10660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10663 printf %s "checking for $ac_word... " >&6; }
10664 if test ${ac_cv_prog_AR+y}
10665 then :
10666 printf %s "(cached) " >&6
10667 else case e in #(
10668 e) if test -n "$AR"; then
10669 ac_cv_prog_AR="$AR" # Let the user override the test.
10670 else
10671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672 for as_dir in $PATH
10673 do
10674 IFS=$as_save_IFS
10675 case $as_dir in #(((
10676 '') as_dir=./ ;;
10677 */) ;;
10678 *) as_dir=$as_dir/ ;;
10679 esac
10680 for ac_exec_ext in '' $ac_executable_extensions; do
10681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10682 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10684 break 2
10685 fi
10686 done
10687 done
10688 IFS=$as_save_IFS
10689
10690 fi ;;
10691 esac
10692 fi
10693 AR=$ac_cv_prog_AR
10694 if test -n "$AR"; then
10695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10696 printf "%s\n" "$AR" >&6; }
10697 else
10698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699 printf "%s\n" "no" >&6; }
10700 fi
10701
10702
10703 test -n "$AR" && break
10704 done
10705 fi
10706 if test -z "$AR"; then
10707 ac_ct_AR=$AR
10708 for ac_prog in ar
10709 do
10710 # Extract the first word of "$ac_prog", so it can be a program name with args.
10711 set dummy $ac_prog; ac_word=$2
10712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10713 printf %s "checking for $ac_word... " >&6; }
10714 if test ${ac_cv_prog_ac_ct_AR+y}
10715 then :
10716 printf %s "(cached) " >&6
10717 else case e in #(
10718 e) if test -n "$ac_ct_AR"; then
10719 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10720 else
10721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722 for as_dir in $PATH
10723 do
10724 IFS=$as_save_IFS
10725 case $as_dir in #(((
10726 '') as_dir=./ ;;
10727 */) ;;
10728 *) as_dir=$as_dir/ ;;
10729 esac
10730 for ac_exec_ext in '' $ac_executable_extensions; do
10731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10732 ac_cv_prog_ac_ct_AR="$ac_prog"
10733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10734 break 2
10735 fi
10736 done
10737 done
10738 IFS=$as_save_IFS
10739
10740 fi ;;
10741 esac
10742 fi
10743 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10744 if test -n "$ac_ct_AR"; then
10745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10746 printf "%s\n" "$ac_ct_AR" >&6; }
10747 else
10748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 printf "%s\n" "no" >&6; }
10750 fi
10751
10752
10753 test -n "$ac_ct_AR" && break
10754 done
10755
10756 if test "x$ac_ct_AR" = x; then
10757 AR="false"
10758 else
10759 case $cross_compiling:$ac_tool_warned in
10760 yes:)
10761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10762 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10763 ac_tool_warned=yes ;;
10764 esac
10765 AR=$ac_ct_AR
10766 fi
10767 fi
10768
10769 : ${AR=ar}
10770 : ${AR_FLAGS=cru}
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10783 printf %s "checking for archiver @FILE support... " >&6; }
10784 if test ${lt_cv_ar_at_file+y}
10785 then :
10786 printf %s "(cached) " >&6
10787 else case e in #(
10788 e) lt_cv_ar_at_file=no
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10791
10792 int
10793 main (void)
10794 {
10795
10796 ;
10797 return 0;
10798 }
10799 _ACEOF
10800 if ac_fn_c_try_compile "$LINENO"
10801 then :
10802 echo conftest.$ac_objext > conftest.lst
10803 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10805 (eval $lt_ar_try) 2>&5
10806 ac_status=$?
10807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10808 test $ac_status = 0; }
10809 if test 0 -eq "$ac_status"; then
10810 # Ensure the archiver fails upon bogus file names.
10811 rm -f conftest.$ac_objext libconftest.a
10812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10813 (eval $lt_ar_try) 2>&5
10814 ac_status=$?
10815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10816 test $ac_status = 0; }
10817 if test 0 -ne "$ac_status"; then
10818 lt_cv_ar_at_file=@
10819 fi
10820 fi
10821 rm -f conftest.* libconftest.a
10822
10823 fi
10824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10825 ;;
10826 esac
10827 fi
10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10829 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10830
10831 if test no = "$lt_cv_ar_at_file"; then
10832 archiver_list_spec=
10833 else
10834 archiver_list_spec=$lt_cv_ar_at_file
10835 fi
10836
10837
10838
10839
10840
10841
10842
10843 if test -n "$ac_tool_prefix"; then
10844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10845 set dummy ${ac_tool_prefix}strip; ac_word=$2
10846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10847 printf %s "checking for $ac_word... " >&6; }
10848 if test ${ac_cv_prog_STRIP+y}
10849 then :
10850 printf %s "(cached) " >&6
10851 else case e in #(
10852 e) if test -n "$STRIP"; then
10853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10854 else
10855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856 for as_dir in $PATH
10857 do
10858 IFS=$as_save_IFS
10859 case $as_dir in #(((
10860 '') as_dir=./ ;;
10861 */) ;;
10862 *) as_dir=$as_dir/ ;;
10863 esac
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10866 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10868 break 2
10869 fi
10870 done
10871 done
10872 IFS=$as_save_IFS
10873
10874 fi ;;
10875 esac
10876 fi
10877 STRIP=$ac_cv_prog_STRIP
10878 if test -n "$STRIP"; then
10879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10880 printf "%s\n" "$STRIP" >&6; }
10881 else
10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10883 printf "%s\n" "no" >&6; }
10884 fi
10885
10886
10887 fi
10888 if test -z "$ac_cv_prog_STRIP"; then
10889 ac_ct_STRIP=$STRIP
10890 # Extract the first word of "strip", so it can be a program name with args.
10891 set dummy strip; ac_word=$2
10892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10893 printf %s "checking for $ac_word... " >&6; }
10894 if test ${ac_cv_prog_ac_ct_STRIP+y}
10895 then :
10896 printf %s "(cached) " >&6
10897 else case e in #(
10898 e) if test -n "$ac_ct_STRIP"; then
10899 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10900 else
10901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902 for as_dir in $PATH
10903 do
10904 IFS=$as_save_IFS
10905 case $as_dir in #(((
10906 '') as_dir=./ ;;
10907 */) ;;
10908 *) as_dir=$as_dir/ ;;
10909 esac
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10912 ac_cv_prog_ac_ct_STRIP="strip"
10913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10914 break 2
10915 fi
10916 done
10917 done
10918 IFS=$as_save_IFS
10919
10920 fi ;;
10921 esac
10922 fi
10923 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10924 if test -n "$ac_ct_STRIP"; then
10925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10926 printf "%s\n" "$ac_ct_STRIP" >&6; }
10927 else
10928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929 printf "%s\n" "no" >&6; }
10930 fi
10931
10932 if test "x$ac_ct_STRIP" = x; then
10933 STRIP=":"
10934 else
10935 case $cross_compiling:$ac_tool_warned in
10936 yes:)
10937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10938 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10939 ac_tool_warned=yes ;;
10940 esac
10941 STRIP=$ac_ct_STRIP
10942 fi
10943 else
10944 STRIP="$ac_cv_prog_STRIP"
10945 fi
10946
10947 test -z "$STRIP" && STRIP=:
10948
10949
10950
10951
10952
10953
10954 if test -n "$ac_tool_prefix"; then
10955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10956 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10958 printf %s "checking for $ac_word... " >&6; }
10959 if test ${ac_cv_prog_RANLIB+y}
10960 then :
10961 printf %s "(cached) " >&6
10962 else case e in #(
10963 e) if test -n "$RANLIB"; then
10964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10965 else
10966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967 for as_dir in $PATH
10968 do
10969 IFS=$as_save_IFS
10970 case $as_dir in #(((
10971 '') as_dir=./ ;;
10972 */) ;;
10973 *) as_dir=$as_dir/ ;;
10974 esac
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10979 break 2
10980 fi
10981 done
10982 done
10983 IFS=$as_save_IFS
10984
10985 fi ;;
10986 esac
10987 fi
10988 RANLIB=$ac_cv_prog_RANLIB
10989 if test -n "$RANLIB"; then
10990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10991 printf "%s\n" "$RANLIB" >&6; }
10992 else
10993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994 printf "%s\n" "no" >&6; }
10995 fi
10996
10997
10998 fi
10999 if test -z "$ac_cv_prog_RANLIB"; then
11000 ac_ct_RANLIB=$RANLIB
11001 # Extract the first word of "ranlib", so it can be a program name with args.
11002 set dummy ranlib; ac_word=$2
11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11004 printf %s "checking for $ac_word... " >&6; }
11005 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11006 then :
11007 printf %s "(cached) " >&6
11008 else case e in #(
11009 e) if test -n "$ac_ct_RANLIB"; then
11010 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11011 else
11012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013 for as_dir in $PATH
11014 do
11015 IFS=$as_save_IFS
11016 case $as_dir in #(((
11017 '') as_dir=./ ;;
11018 */) ;;
11019 *) as_dir=$as_dir/ ;;
11020 esac
11021 for ac_exec_ext in '' $ac_executable_extensions; do
11022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11023 ac_cv_prog_ac_ct_RANLIB="ranlib"
11024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11025 break 2
11026 fi
11027 done
11028 done
11029 IFS=$as_save_IFS
11030
11031 fi ;;
11032 esac
11033 fi
11034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11035 if test -n "$ac_ct_RANLIB"; then
11036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11037 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11038 else
11039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040 printf "%s\n" "no" >&6; }
11041 fi
11042
11043 if test "x$ac_ct_RANLIB" = x; then
11044 RANLIB=":"
11045 else
11046 case $cross_compiling:$ac_tool_warned in
11047 yes:)
11048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11049 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11050 ac_tool_warned=yes ;;
11051 esac
11052 RANLIB=$ac_ct_RANLIB
11053 fi
11054 else
11055 RANLIB="$ac_cv_prog_RANLIB"
11056 fi
11057
11058 test -z "$RANLIB" && RANLIB=:
11059
11060
11061
11062
11063
11064
11065 # Determine commands to create old-style static archives.
11066 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11067 old_postinstall_cmds='chmod 644 $oldlib'
11068 old_postuninstall_cmds=
11069
11070 if test -n "$RANLIB"; then
11071 case $host_os in
11072 bitrig* | openbsd*)
11073 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
11074 ;;
11075 *)
11076 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
11077 ;;
11078 esac
11079 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
11080 fi
11081
11082 case $host_os in
11083 darwin*)
11084 lock_old_archive_extraction=yes ;;
11085 *)
11086 lock_old_archive_extraction=no ;;
11087 esac
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109 for ac_prog in gawk mawk nawk awk
11110 do
11111 # Extract the first word of "$ac_prog", so it can be a program name with args.
11112 set dummy $ac_prog; ac_word=$2
11113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11114 printf %s "checking for $ac_word... " >&6; }
11115 if test ${ac_cv_prog_AWK+y}
11116 then :
11117 printf %s "(cached) " >&6
11118 else case e in #(
11119 e) if test -n "$AWK"; then
11120 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11121 else
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $PATH
11124 do
11125 IFS=$as_save_IFS
11126 case $as_dir in #(((
11127 '') as_dir=./ ;;
11128 */) ;;
11129 *) as_dir=$as_dir/ ;;
11130 esac
11131 for ac_exec_ext in '' $ac_executable_extensions; do
11132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11133 ac_cv_prog_AWK="$ac_prog"
11134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11135 break 2
11136 fi
11137 done
11138 done
11139 IFS=$as_save_IFS
11140
11141 fi ;;
11142 esac
11143 fi
11144 AWK=$ac_cv_prog_AWK
11145 if test -n "$AWK"; then
11146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11147 printf "%s\n" "$AWK" >&6; }
11148 else
11149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150 printf "%s\n" "no" >&6; }
11151 fi
11152
11153
11154 test -n "$AWK" && break
11155 done
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175 # If no C compiler was specified, use CC.
11176 LTCC=${LTCC-"$CC"}
11177
11178 # If no C compiler flags were specified, use CFLAGS.
11179 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11180
11181 # Allow CC to be a program name with arguments.
11182 compiler=$CC
11183
11184
11185 # Check for command to grab the raw symbol name followed by C symbol from nm.
11186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11187 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
11188 if test ${lt_cv_sys_global_symbol_pipe+y}
11189 then :
11190 printf %s "(cached) " >&6
11191 else case e in #(
11192 e)
11193 # These are sane defaults that work on at least a few old systems.
11194 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11195
11196 # Character class describing NM global symbol codes.
11197 symcode='[BCDEGRST]'
11198
11199 # Regexp to match symbols that can be accessed directly from C.
11200 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11201
11202 # Define system-specific variables.
11203 case $host_os in
11204 aix*)
11205 symcode='[BCDT]'
11206 ;;
11207 cygwin* | mingw* | pw32* | cegcc*)
11208 symcode='[ABCDGISTW]'
11209 ;;
11210 hpux*)
11211 if test ia64 = "$host_cpu"; then
11212 symcode='[ABCDEGRST]'
11213 fi
11214 ;;
11215 irix* | nonstopux*)
11216 symcode='[BCDEGRST]'
11217 ;;
11218 osf*)
11219 symcode='[BCDEGQRST]'
11220 ;;
11221 solaris*)
11222 symcode='[BDRT]'
11223 ;;
11224 sco3.2v5*)
11225 symcode='[DT]'
11226 ;;
11227 sysv4.2uw2*)
11228 symcode='[DT]'
11229 ;;
11230 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11231 symcode='[ABDT]'
11232 ;;
11233 sysv4)
11234 symcode='[DFNSTU]'
11235 ;;
11236 esac
11237
11238 # If we're using GNU nm, then use its standard symbol codes.
11239 case `$NM -V 2>&1` in
11240 *GNU* | *'with BFD'*)
11241 symcode='[ABCDGIRSTW]' ;;
11242 esac
11243
11244 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11245 # Gets list of data symbols to import.
11246 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
11247 # Adjust the below global symbol transforms to fixup imported variables.
11248 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
11249 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
11250 lt_c_name_lib_hook="\
11251 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
11252 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
11253 else
11254 # Disable hooks by default.
11255 lt_cv_sys_global_symbol_to_import=
11256 lt_cdecl_hook=
11257 lt_c_name_hook=
11258 lt_c_name_lib_hook=
11259 fi
11260
11261 # Transform an extracted symbol line into a proper C declaration.
11262 # Some systems (esp. on ia64) link data and code symbols differently,
11263 # so use this general approach.
11264 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
11265 $lt_cdecl_hook\
11266 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
11267 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
11268
11269 # Transform an extracted symbol line into symbol name and symbol address
11270 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
11271 $lt_c_name_hook\
11272 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
11273 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
11274
11275 # Transform an extracted symbol line into symbol name with lib prefix and
11276 # symbol address.
11277 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
11278 $lt_c_name_lib_hook\
11279 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
11280 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
11281 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
11282
11283 # Handle CRLF in mingw tool chain
11284 opt_cr=
11285 case $build_os in
11286 mingw*)
11287 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11288 ;;
11289 esac
11290
11291 # Try without a prefix underscore, then with it.
11292 for ac_symprfx in "" "_"; do
11293
11294 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11295 symxfrm="\\1 $ac_symprfx\\2 \\2"
11296
11297 # Write the raw and C identifiers.
11298 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11299 # Fake it for dumpbin and say T for any non-static function,
11300 # D for any global variable and I for any imported variable.
11301 # Also find C++ and __fastcall symbols from MSVC++,
11302 # which start with @ or ?.
11303 lt_cv_sys_global_symbol_pipe="$AWK '"\
11304 " {last_section=section; section=\$ 3};"\
11305 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11306 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11307 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
11308 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
11309 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
11310 " \$ 0!~/External *\|/{next};"\
11311 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11312 " {if(hide[section]) next};"\
11313 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
11314 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
11315 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
11316 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
11317 " ' prfx=^$ac_symprfx"
11318 else
11319 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11320 fi
11321 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11322
11323 # Check to see that the pipe works correctly.
11324 pipe_works=no
11325
11326 rm -f conftest*
11327 cat > conftest.$ac_ext <<_LT_EOF
11328 #ifdef __cplusplus
11329 extern "C" {
11330 #endif
11331 char nm_test_var;
11332 void nm_test_func(void);
11333 void nm_test_func(void){}
11334 #ifdef __cplusplus
11335 }
11336 #endif
11337 int main(){nm_test_var='a';nm_test_func();return(0);}
11338 _LT_EOF
11339
11340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11341 (eval $ac_compile) 2>&5
11342 ac_status=$?
11343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11344 test $ac_status = 0; }; then
11345 # Now try to grab the symbols.
11346 nlist=conftest.nm
11347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11348 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11349 ac_status=$?
11350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11351 test $ac_status = 0; } && test -s "$nlist"; then
11352 # Try sorting and uniquifying the output.
11353 if sort "$nlist" | uniq > "$nlist"T; then
11354 mv -f "$nlist"T "$nlist"
11355 else
11356 rm -f "$nlist"T
11357 fi
11358
11359 # Make sure that we snagged all the symbols we need.
11360 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11361 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11362 cat <<_LT_EOF > conftest.$ac_ext
11363 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11364 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
11365 /* DATA imports from DLLs on WIN32 can't be const, because runtime
11366 relocations are performed -- see ld's documentation on pseudo-relocs. */
11367 # define LT_DLSYM_CONST
11368 #elif defined __osf__
11369 /* This system does not cope well with relocations in const data. */
11370 # define LT_DLSYM_CONST
11371 #else
11372 # define LT_DLSYM_CONST const
11373 #endif
11374
11375 #ifdef __cplusplus
11376 extern "C" {
11377 #endif
11378
11379 _LT_EOF
11380 # Now generate the symbol file.
11381 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11382
11383 cat <<_LT_EOF >> conftest.$ac_ext
11384
11385 /* The mapping between symbol names and symbols. */
11386 LT_DLSYM_CONST struct {
11387 const char *name;
11388 void *address;
11389 }
11390 lt__PROGRAM__LTX_preloaded_symbols[] =
11391 {
11392 { "@PROGRAM@", (void *) 0 },
11393 _LT_EOF
11394 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11395 cat <<\_LT_EOF >> conftest.$ac_ext
11396 {0, (void *) 0}
11397 };
11398
11399 /* This works around a problem in FreeBSD linker */
11400 #ifdef FREEBSD_WORKAROUND
11401 static const void *lt_preloaded_setup() {
11402 return lt__PROGRAM__LTX_preloaded_symbols;
11403 }
11404 #endif
11405
11406 #ifdef __cplusplus
11407 }
11408 #endif
11409 _LT_EOF
11410 # Now try linking the two files.
11411 mv conftest.$ac_objext conftstm.$ac_objext
11412 lt_globsym_save_LIBS=$LIBS
11413 lt_globsym_save_CFLAGS=$CFLAGS
11414 LIBS=conftstm.$ac_objext
11415 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11417 (eval $ac_link) 2>&5
11418 ac_status=$?
11419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11420 test $ac_status = 0; } && test -s conftest$ac_exeext; then
11421 pipe_works=yes
11422 fi
11423 LIBS=$lt_globsym_save_LIBS
11424 CFLAGS=$lt_globsym_save_CFLAGS
11425 else
11426 echo "cannot find nm_test_func in $nlist" >&5
11427 fi
11428 else
11429 echo "cannot find nm_test_var in $nlist" >&5
11430 fi
11431 else
11432 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11433 fi
11434 else
11435 echo "$progname: failed program was:" >&5
11436 cat conftest.$ac_ext >&5
11437 fi
11438 rm -rf conftest* conftst*
11439
11440 # Do not use the global_symbol_pipe unless it works.
11441 if test yes = "$pipe_works"; then
11442 break
11443 else
11444 lt_cv_sys_global_symbol_pipe=
11445 fi
11446 done
11447 ;;
11448 esac
11449 fi
11450
11451 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11452 lt_cv_sys_global_symbol_to_cdecl=
11453 fi
11454 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11456 printf "%s\n" "failed" >&6; }
11457 else
11458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11459 printf "%s\n" "ok" >&6; }
11460 fi
11461
11462 # Response file support.
11463 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11464 nm_file_list_spec='@'
11465 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11466 nm_file_list_spec='@'
11467 fi
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11506 printf %s "checking for sysroot... " >&6; }
11507
11508 # Check whether --with-sysroot was given.
11509 if test ${with_sysroot+y}
11510 then :
11511 withval=$with_sysroot;
11512 else case e in #(
11513 e) with_sysroot=no ;;
11514 esac
11515 fi
11516
11517
11518 lt_sysroot=
11519 case $with_sysroot in #(
11520 yes)
11521 if test yes = "$GCC"; then
11522 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11523 fi
11524 ;; #(
11525 /*)
11526 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11527 ;; #(
11528 no|'')
11529 ;; #(
11530 *)
11531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
11532 printf "%s\n" "$with_sysroot" >&6; }
11533 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11534 ;;
11535 esac
11536
11537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11538 printf "%s\n" "${lt_sysroot:-no}" >&6; }
11539
11540
11541
11542
11543
11544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
11545 printf %s "checking for a working dd... " >&6; }
11546 if test ${ac_cv_path_lt_DD+y}
11547 then :
11548 printf %s "(cached) " >&6
11549 else case e in #(
11550 e) printf 0123456789abcdef0123456789abcdef >conftest.i
11551 cat conftest.i conftest.i >conftest2.i
11552 : ${lt_DD:=$DD}
11553 if test -z "$lt_DD"; then
11554 ac_path_lt_DD_found=false
11555 # Loop through the user's path and test for each of PROGNAME-LIST
11556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557 for as_dir in $PATH
11558 do
11559 IFS=$as_save_IFS
11560 case $as_dir in #(((
11561 '') as_dir=./ ;;
11562 */) ;;
11563 *) as_dir=$as_dir/ ;;
11564 esac
11565 for ac_prog in dd
11566 do
11567 for ac_exec_ext in '' $ac_executable_extensions; do
11568 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
11569 as_fn_executable_p "$ac_path_lt_DD" || continue
11570 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11571 cmp -s conftest.i conftest.out \
11572 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11573 fi
11574 $ac_path_lt_DD_found && break 3
11575 done
11576 done
11577 done
11578 IFS=$as_save_IFS
11579 if test -z "$ac_cv_path_lt_DD"; then
11580 :
11581 fi
11582 else
11583 ac_cv_path_lt_DD=$lt_DD
11584 fi
11585
11586 rm -f conftest.i conftest2.i conftest.out ;;
11587 esac
11588 fi
11589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11590 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
11591
11592
11593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11594 printf %s "checking how to truncate binary pipes... " >&6; }
11595 if test ${lt_cv_truncate_bin+y}
11596 then :
11597 printf %s "(cached) " >&6
11598 else case e in #(
11599 e) printf 0123456789abcdef0123456789abcdef >conftest.i
11600 cat conftest.i conftest.i >conftest2.i
11601 lt_cv_truncate_bin=
11602 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11603 cmp -s conftest.i conftest.out \
11604 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11605 fi
11606 rm -f conftest.i conftest2.i conftest.out
11607 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
11608 esac
11609 fi
11610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11611 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
11612
11613
11614
11615
11616
11617
11618
11619 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
11620 func_cc_basename ()
11621 {
11622 for cc_temp in $*""; do
11623 case $cc_temp in
11624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11626 \-*) ;;
11627 *) break;;
11628 esac
11629 done
11630 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11631 }
11632
11633 # Check whether --enable-libtool-lock was given.
11634 if test ${enable_libtool_lock+y}
11635 then :
11636 enableval=$enable_libtool_lock;
11637 fi
11638
11639 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11640
11641 # Some flags need to be propagated to the compiler or linker for good
11642 # libtool support.
11643 case $host in
11644 ia64-*-hpux*)
11645 # Find out what ABI is being produced by ac_compile, and set mode
11646 # options accordingly.
11647 echo 'int i;' > conftest.$ac_ext
11648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11649 (eval $ac_compile) 2>&5
11650 ac_status=$?
11651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11652 test $ac_status = 0; }; then
11653 case `/usr/bin/file conftest.$ac_objext` in
11654 *ELF-32*)
11655 HPUX_IA64_MODE=32
11656 ;;
11657 *ELF-64*)
11658 HPUX_IA64_MODE=64
11659 ;;
11660 esac
11661 fi
11662 rm -rf conftest*
11663 ;;
11664 *-*-irix6*)
11665 # Find out what ABI is being produced by ac_compile, and set linker
11666 # options accordingly.
11667 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11669 (eval $ac_compile) 2>&5
11670 ac_status=$?
11671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11672 test $ac_status = 0; }; then
11673 if test yes = "$lt_cv_prog_gnu_ld"; then
11674 case `/usr/bin/file conftest.$ac_objext` in
11675 *32-bit*)
11676 LD="${LD-ld} -melf32bsmip"
11677 ;;
11678 *N32*)
11679 LD="${LD-ld} -melf32bmipn32"
11680 ;;
11681 *64-bit*)
11682 LD="${LD-ld} -melf64bmip"
11683 ;;
11684 esac
11685 else
11686 case `/usr/bin/file conftest.$ac_objext` in
11687 *32-bit*)
11688 LD="${LD-ld} -32"
11689 ;;
11690 *N32*)
11691 LD="${LD-ld} -n32"
11692 ;;
11693 *64-bit*)
11694 LD="${LD-ld} -64"
11695 ;;
11696 esac
11697 fi
11698 fi
11699 rm -rf conftest*
11700 ;;
11701
11702 mips64*-*linux*)
11703 # Find out what ABI is being produced by ac_compile, and set linker
11704 # options accordingly.
11705 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11707 (eval $ac_compile) 2>&5
11708 ac_status=$?
11709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11710 test $ac_status = 0; }; then
11711 emul=elf
11712 case `/usr/bin/file conftest.$ac_objext` in
11713 *32-bit*)
11714 emul="${emul}32"
11715 ;;
11716 *64-bit*)
11717 emul="${emul}64"
11718 ;;
11719 esac
11720 case `/usr/bin/file conftest.$ac_objext` in
11721 *MSB*)
11722 emul="${emul}btsmip"
11723 ;;
11724 *LSB*)
11725 emul="${emul}ltsmip"
11726 ;;
11727 esac
11728 case `/usr/bin/file conftest.$ac_objext` in
11729 *N32*)
11730 emul="${emul}n32"
11731 ;;
11732 esac
11733 LD="${LD-ld} -m $emul"
11734 fi
11735 rm -rf conftest*
11736 ;;
11737
11738 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11739 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11740 # Find out what ABI is being produced by ac_compile, and set linker
11741 # options accordingly. Note that the listed cases only cover the
11742 # situations where additional linker options are needed (such as when
11743 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11744 # vice versa); the common cases where no linker options are needed do
11745 # not appear in the list.
11746 echo 'int i;' > conftest.$ac_ext
11747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11748 (eval $ac_compile) 2>&5
11749 ac_status=$?
11750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11751 test $ac_status = 0; }; then
11752 case `/usr/bin/file conftest.o` in
11753 *32-bit*)
11754 case $host in
11755 x86_64-*kfreebsd*-gnu)
11756 LD="${LD-ld} -m elf_i386_fbsd"
11757 ;;
11758 x86_64-*linux*)
11759 case `/usr/bin/file conftest.o` in
11760 *x86-64*)
11761 LD="${LD-ld} -m elf32_x86_64"
11762 ;;
11763 *)
11764 LD="${LD-ld} -m elf_i386"
11765 ;;
11766 esac
11767 ;;
11768 powerpc64le-*linux*)
11769 LD="${LD-ld} -m elf32lppclinux"
11770 ;;
11771 powerpc64-*linux*)
11772 LD="${LD-ld} -m elf32ppclinux"
11773 ;;
11774 s390x-*linux*)
11775 LD="${LD-ld} -m elf_s390"
11776 ;;
11777 sparc64-*linux*)
11778 LD="${LD-ld} -m elf32_sparc"
11779 ;;
11780 esac
11781 ;;
11782 *64-bit*)
11783 case $host in
11784 x86_64-*kfreebsd*-gnu)
11785 LD="${LD-ld} -m elf_x86_64_fbsd"
11786 ;;
11787 x86_64-*linux*)
11788 LD="${LD-ld} -m elf_x86_64"
11789 ;;
11790 powerpcle-*linux*)
11791 LD="${LD-ld} -m elf64lppc"
11792 ;;
11793 powerpc-*linux*)
11794 LD="${LD-ld} -m elf64ppc"
11795 ;;
11796 s390*-*linux*|s390*-*tpf*)
11797 LD="${LD-ld} -m elf64_s390"
11798 ;;
11799 sparc*-*linux*)
11800 LD="${LD-ld} -m elf64_sparc"
11801 ;;
11802 esac
11803 ;;
11804 esac
11805 fi
11806 rm -rf conftest*
11807 ;;
11808
11809 *-*-sco3.2v5*)
11810 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11811 SAVE_CFLAGS=$CFLAGS
11812 CFLAGS="$CFLAGS -belf"
11813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11814 printf %s "checking whether the C compiler needs -belf... " >&6; }
11815 if test ${lt_cv_cc_needs_belf+y}
11816 then :
11817 printf %s "(cached) " >&6
11818 else case e in #(
11819 e) ac_ext=c
11820 ac_cpp='$CPP $CPPFLAGS'
11821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11824
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11827
11828 int
11829 main (void)
11830 {
11831
11832 ;
11833 return 0;
11834 }
11835 _ACEOF
11836 if ac_fn_c_try_link "$LINENO"
11837 then :
11838 lt_cv_cc_needs_belf=yes
11839 else case e in #(
11840 e) lt_cv_cc_needs_belf=no ;;
11841 esac
11842 fi
11843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11844 conftest$ac_exeext conftest.$ac_ext
11845 ac_ext=c
11846 ac_cpp='$CPP $CPPFLAGS'
11847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11850 ;;
11851 esac
11852 fi
11853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11854 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11855 if test yes != "$lt_cv_cc_needs_belf"; then
11856 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11857 CFLAGS=$SAVE_CFLAGS
11858 fi
11859 ;;
11860 *-*solaris*)
11861 # Find out what ABI is being produced by ac_compile, and set linker
11862 # options accordingly.
11863 echo 'int i;' > conftest.$ac_ext
11864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11865 (eval $ac_compile) 2>&5
11866 ac_status=$?
11867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11868 test $ac_status = 0; }; then
11869 case `/usr/bin/file conftest.o` in
11870 *64-bit*)
11871 case $lt_cv_prog_gnu_ld in
11872 yes*)
11873 case $host in
11874 i?86-*-solaris*|x86_64-*-solaris*)
11875 LD="${LD-ld} -m elf_x86_64"
11876 ;;
11877 sparc*-*-solaris*)
11878 LD="${LD-ld} -m elf64_sparc"
11879 ;;
11880 esac
11881 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11882 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11883 LD=${LD-ld}_sol2
11884 fi
11885 ;;
11886 *)
11887 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11888 LD="${LD-ld} -64"
11889 fi
11890 ;;
11891 esac
11892 ;;
11893 esac
11894 fi
11895 rm -rf conftest*
11896 ;;
11897 esac
11898
11899 need_locks=$enable_libtool_lock
11900
11901 if test -n "$ac_tool_prefix"; then
11902 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11903 set dummy ${ac_tool_prefix}mt; ac_word=$2
11904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11905 printf %s "checking for $ac_word... " >&6; }
11906 if test ${ac_cv_prog_MANIFEST_TOOL+y}
11907 then :
11908 printf %s "(cached) " >&6
11909 else case e in #(
11910 e) if test -n "$MANIFEST_TOOL"; then
11911 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11912 else
11913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11914 for as_dir in $PATH
11915 do
11916 IFS=$as_save_IFS
11917 case $as_dir in #(((
11918 '') as_dir=./ ;;
11919 */) ;;
11920 *) as_dir=$as_dir/ ;;
11921 esac
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11924 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11926 break 2
11927 fi
11928 done
11929 done
11930 IFS=$as_save_IFS
11931
11932 fi ;;
11933 esac
11934 fi
11935 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11936 if test -n "$MANIFEST_TOOL"; then
11937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11938 printf "%s\n" "$MANIFEST_TOOL" >&6; }
11939 else
11940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941 printf "%s\n" "no" >&6; }
11942 fi
11943
11944
11945 fi
11946 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11947 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11948 # Extract the first word of "mt", so it can be a program name with args.
11949 set dummy mt; ac_word=$2
11950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951 printf %s "checking for $ac_word... " >&6; }
11952 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11953 then :
11954 printf %s "(cached) " >&6
11955 else case e in #(
11956 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
11957 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11958 else
11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in $PATH
11961 do
11962 IFS=$as_save_IFS
11963 case $as_dir in #(((
11964 '') as_dir=./ ;;
11965 */) ;;
11966 *) as_dir=$as_dir/ ;;
11967 esac
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11970 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11972 break 2
11973 fi
11974 done
11975 done
11976 IFS=$as_save_IFS
11977
11978 fi ;;
11979 esac
11980 fi
11981 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11982 if test -n "$ac_ct_MANIFEST_TOOL"; then
11983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11984 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11985 else
11986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 printf "%s\n" "no" >&6; }
11988 fi
11989
11990 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11991 MANIFEST_TOOL=":"
11992 else
11993 case $cross_compiling:$ac_tool_warned in
11994 yes:)
11995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11996 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11997 ac_tool_warned=yes ;;
11998 esac
11999 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12000 fi
12001 else
12002 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12003 fi
12004
12005 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12007 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12008 if test ${lt_cv_path_mainfest_tool+y}
12009 then :
12010 printf %s "(cached) " >&6
12011 else case e in #(
12012 e) lt_cv_path_mainfest_tool=no
12013 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12014 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12015 cat conftest.err >&5
12016 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12017 lt_cv_path_mainfest_tool=yes
12018 fi
12019 rm -f conftest* ;;
12020 esac
12021 fi
12022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12023 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
12024 if test yes != "$lt_cv_path_mainfest_tool"; then
12025 MANIFEST_TOOL=:
12026 fi
12027
12028
12029
12030
12031
12032
12033 case $host_os in
12034 rhapsody* | darwin*)
12035 if test -n "$ac_tool_prefix"; then
12036 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12037 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12039 printf %s "checking for $ac_word... " >&6; }
12040 if test ${ac_cv_prog_DSYMUTIL+y}
12041 then :
12042 printf %s "(cached) " >&6
12043 else case e in #(
12044 e) if test -n "$DSYMUTIL"; then
12045 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12046 else
12047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048 for as_dir in $PATH
12049 do
12050 IFS=$as_save_IFS
12051 case $as_dir in #(((
12052 '') as_dir=./ ;;
12053 */) ;;
12054 *) as_dir=$as_dir/ ;;
12055 esac
12056 for ac_exec_ext in '' $ac_executable_extensions; do
12057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12058 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12060 break 2
12061 fi
12062 done
12063 done
12064 IFS=$as_save_IFS
12065
12066 fi ;;
12067 esac
12068 fi
12069 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12070 if test -n "$DSYMUTIL"; then
12071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12072 printf "%s\n" "$DSYMUTIL" >&6; }
12073 else
12074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075 printf "%s\n" "no" >&6; }
12076 fi
12077
12078
12079 fi
12080 if test -z "$ac_cv_prog_DSYMUTIL"; then
12081 ac_ct_DSYMUTIL=$DSYMUTIL
12082 # Extract the first word of "dsymutil", so it can be a program name with args.
12083 set dummy dsymutil; ac_word=$2
12084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085 printf %s "checking for $ac_word... " >&6; }
12086 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
12087 then :
12088 printf %s "(cached) " >&6
12089 else case e in #(
12090 e) if test -n "$ac_ct_DSYMUTIL"; then
12091 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12092 else
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH
12095 do
12096 IFS=$as_save_IFS
12097 case $as_dir in #(((
12098 '') as_dir=./ ;;
12099 */) ;;
12100 *) as_dir=$as_dir/ ;;
12101 esac
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12104 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12106 break 2
12107 fi
12108 done
12109 done
12110 IFS=$as_save_IFS
12111
12112 fi ;;
12113 esac
12114 fi
12115 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12116 if test -n "$ac_ct_DSYMUTIL"; then
12117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12118 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
12119 else
12120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 printf "%s\n" "no" >&6; }
12122 fi
12123
12124 if test "x$ac_ct_DSYMUTIL" = x; then
12125 DSYMUTIL=":"
12126 else
12127 case $cross_compiling:$ac_tool_warned in
12128 yes:)
12129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12130 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12131 ac_tool_warned=yes ;;
12132 esac
12133 DSYMUTIL=$ac_ct_DSYMUTIL
12134 fi
12135 else
12136 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12137 fi
12138
12139 if test -n "$ac_tool_prefix"; then
12140 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12141 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143 printf %s "checking for $ac_word... " >&6; }
12144 if test ${ac_cv_prog_NMEDIT+y}
12145 then :
12146 printf %s "(cached) " >&6
12147 else case e in #(
12148 e) if test -n "$NMEDIT"; then
12149 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12150 else
12151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152 for as_dir in $PATH
12153 do
12154 IFS=$as_save_IFS
12155 case $as_dir in #(((
12156 '') as_dir=./ ;;
12157 */) ;;
12158 *) as_dir=$as_dir/ ;;
12159 esac
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12162 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12164 break 2
12165 fi
12166 done
12167 done
12168 IFS=$as_save_IFS
12169
12170 fi ;;
12171 esac
12172 fi
12173 NMEDIT=$ac_cv_prog_NMEDIT
12174 if test -n "$NMEDIT"; then
12175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12176 printf "%s\n" "$NMEDIT" >&6; }
12177 else
12178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179 printf "%s\n" "no" >&6; }
12180 fi
12181
12182
12183 fi
12184 if test -z "$ac_cv_prog_NMEDIT"; then
12185 ac_ct_NMEDIT=$NMEDIT
12186 # Extract the first word of "nmedit", so it can be a program name with args.
12187 set dummy nmedit; ac_word=$2
12188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12189 printf %s "checking for $ac_word... " >&6; }
12190 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
12191 then :
12192 printf %s "(cached) " >&6
12193 else case e in #(
12194 e) if test -n "$ac_ct_NMEDIT"; then
12195 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12196 else
12197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12198 for as_dir in $PATH
12199 do
12200 IFS=$as_save_IFS
12201 case $as_dir in #(((
12202 '') as_dir=./ ;;
12203 */) ;;
12204 *) as_dir=$as_dir/ ;;
12205 esac
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12208 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12210 break 2
12211 fi
12212 done
12213 done
12214 IFS=$as_save_IFS
12215
12216 fi ;;
12217 esac
12218 fi
12219 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12220 if test -n "$ac_ct_NMEDIT"; then
12221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12222 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
12223 else
12224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225 printf "%s\n" "no" >&6; }
12226 fi
12227
12228 if test "x$ac_ct_NMEDIT" = x; then
12229 NMEDIT=":"
12230 else
12231 case $cross_compiling:$ac_tool_warned in
12232 yes:)
12233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12234 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12235 ac_tool_warned=yes ;;
12236 esac
12237 NMEDIT=$ac_ct_NMEDIT
12238 fi
12239 else
12240 NMEDIT="$ac_cv_prog_NMEDIT"
12241 fi
12242
12243 if test -n "$ac_tool_prefix"; then
12244 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12245 set dummy ${ac_tool_prefix}lipo; ac_word=$2
12246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12247 printf %s "checking for $ac_word... " >&6; }
12248 if test ${ac_cv_prog_LIPO+y}
12249 then :
12250 printf %s "(cached) " >&6
12251 else case e in #(
12252 e) if test -n "$LIPO"; then
12253 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12254 else
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12257 do
12258 IFS=$as_save_IFS
12259 case $as_dir in #(((
12260 '') as_dir=./ ;;
12261 */) ;;
12262 *) as_dir=$as_dir/ ;;
12263 esac
12264 for ac_exec_ext in '' $ac_executable_extensions; do
12265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12266 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12268 break 2
12269 fi
12270 done
12271 done
12272 IFS=$as_save_IFS
12273
12274 fi ;;
12275 esac
12276 fi
12277 LIPO=$ac_cv_prog_LIPO
12278 if test -n "$LIPO"; then
12279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12280 printf "%s\n" "$LIPO" >&6; }
12281 else
12282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283 printf "%s\n" "no" >&6; }
12284 fi
12285
12286
12287 fi
12288 if test -z "$ac_cv_prog_LIPO"; then
12289 ac_ct_LIPO=$LIPO
12290 # Extract the first word of "lipo", so it can be a program name with args.
12291 set dummy lipo; ac_word=$2
12292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293 printf %s "checking for $ac_word... " >&6; }
12294 if test ${ac_cv_prog_ac_ct_LIPO+y}
12295 then :
12296 printf %s "(cached) " >&6
12297 else case e in #(
12298 e) if test -n "$ac_ct_LIPO"; then
12299 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12300 else
12301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302 for as_dir in $PATH
12303 do
12304 IFS=$as_save_IFS
12305 case $as_dir in #(((
12306 '') as_dir=./ ;;
12307 */) ;;
12308 *) as_dir=$as_dir/ ;;
12309 esac
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12312 ac_cv_prog_ac_ct_LIPO="lipo"
12313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12314 break 2
12315 fi
12316 done
12317 done
12318 IFS=$as_save_IFS
12319
12320 fi ;;
12321 esac
12322 fi
12323 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12324 if test -n "$ac_ct_LIPO"; then
12325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12326 printf "%s\n" "$ac_ct_LIPO" >&6; }
12327 else
12328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 printf "%s\n" "no" >&6; }
12330 fi
12331
12332 if test "x$ac_ct_LIPO" = x; then
12333 LIPO=":"
12334 else
12335 case $cross_compiling:$ac_tool_warned in
12336 yes:)
12337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12338 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12339 ac_tool_warned=yes ;;
12340 esac
12341 LIPO=$ac_ct_LIPO
12342 fi
12343 else
12344 LIPO="$ac_cv_prog_LIPO"
12345 fi
12346
12347 if test -n "$ac_tool_prefix"; then
12348 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12349 set dummy ${ac_tool_prefix}otool; ac_word=$2
12350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12351 printf %s "checking for $ac_word... " >&6; }
12352 if test ${ac_cv_prog_OTOOL+y}
12353 then :
12354 printf %s "(cached) " >&6
12355 else case e in #(
12356 e) if test -n "$OTOOL"; then
12357 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12358 else
12359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360 for as_dir in $PATH
12361 do
12362 IFS=$as_save_IFS
12363 case $as_dir in #(((
12364 '') as_dir=./ ;;
12365 */) ;;
12366 *) as_dir=$as_dir/ ;;
12367 esac
12368 for ac_exec_ext in '' $ac_executable_extensions; do
12369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12370 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12372 break 2
12373 fi
12374 done
12375 done
12376 IFS=$as_save_IFS
12377
12378 fi ;;
12379 esac
12380 fi
12381 OTOOL=$ac_cv_prog_OTOOL
12382 if test -n "$OTOOL"; then
12383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12384 printf "%s\n" "$OTOOL" >&6; }
12385 else
12386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387 printf "%s\n" "no" >&6; }
12388 fi
12389
12390
12391 fi
12392 if test -z "$ac_cv_prog_OTOOL"; then
12393 ac_ct_OTOOL=$OTOOL
12394 # Extract the first word of "otool", so it can be a program name with args.
12395 set dummy otool; ac_word=$2
12396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12397 printf %s "checking for $ac_word... " >&6; }
12398 if test ${ac_cv_prog_ac_ct_OTOOL+y}
12399 then :
12400 printf %s "(cached) " >&6
12401 else case e in #(
12402 e) if test -n "$ac_ct_OTOOL"; then
12403 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12404 else
12405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406 for as_dir in $PATH
12407 do
12408 IFS=$as_save_IFS
12409 case $as_dir in #(((
12410 '') as_dir=./ ;;
12411 */) ;;
12412 *) as_dir=$as_dir/ ;;
12413 esac
12414 for ac_exec_ext in '' $ac_executable_extensions; do
12415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12416 ac_cv_prog_ac_ct_OTOOL="otool"
12417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12418 break 2
12419 fi
12420 done
12421 done
12422 IFS=$as_save_IFS
12423
12424 fi ;;
12425 esac
12426 fi
12427 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12428 if test -n "$ac_ct_OTOOL"; then
12429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12430 printf "%s\n" "$ac_ct_OTOOL" >&6; }
12431 else
12432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 printf "%s\n" "no" >&6; }
12434 fi
12435
12436 if test "x$ac_ct_OTOOL" = x; then
12437 OTOOL=":"
12438 else
12439 case $cross_compiling:$ac_tool_warned in
12440 yes:)
12441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12442 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12443 ac_tool_warned=yes ;;
12444 esac
12445 OTOOL=$ac_ct_OTOOL
12446 fi
12447 else
12448 OTOOL="$ac_cv_prog_OTOOL"
12449 fi
12450
12451 if test -n "$ac_tool_prefix"; then
12452 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12453 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12455 printf %s "checking for $ac_word... " >&6; }
12456 if test ${ac_cv_prog_OTOOL64+y}
12457 then :
12458 printf %s "(cached) " >&6
12459 else case e in #(
12460 e) if test -n "$OTOOL64"; then
12461 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12462 else
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $PATH
12465 do
12466 IFS=$as_save_IFS
12467 case $as_dir in #(((
12468 '') as_dir=./ ;;
12469 */) ;;
12470 *) as_dir=$as_dir/ ;;
12471 esac
12472 for ac_exec_ext in '' $ac_executable_extensions; do
12473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12474 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12476 break 2
12477 fi
12478 done
12479 done
12480 IFS=$as_save_IFS
12481
12482 fi ;;
12483 esac
12484 fi
12485 OTOOL64=$ac_cv_prog_OTOOL64
12486 if test -n "$OTOOL64"; then
12487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12488 printf "%s\n" "$OTOOL64" >&6; }
12489 else
12490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491 printf "%s\n" "no" >&6; }
12492 fi
12493
12494
12495 fi
12496 if test -z "$ac_cv_prog_OTOOL64"; then
12497 ac_ct_OTOOL64=$OTOOL64
12498 # Extract the first word of "otool64", so it can be a program name with args.
12499 set dummy otool64; ac_word=$2
12500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501 printf %s "checking for $ac_word... " >&6; }
12502 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
12503 then :
12504 printf %s "(cached) " >&6
12505 else case e in #(
12506 e) if test -n "$ac_ct_OTOOL64"; then
12507 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12508 else
12509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510 for as_dir in $PATH
12511 do
12512 IFS=$as_save_IFS
12513 case $as_dir in #(((
12514 '') as_dir=./ ;;
12515 */) ;;
12516 *) as_dir=$as_dir/ ;;
12517 esac
12518 for ac_exec_ext in '' $ac_executable_extensions; do
12519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12520 ac_cv_prog_ac_ct_OTOOL64="otool64"
12521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12522 break 2
12523 fi
12524 done
12525 done
12526 IFS=$as_save_IFS
12527
12528 fi ;;
12529 esac
12530 fi
12531 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12532 if test -n "$ac_ct_OTOOL64"; then
12533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12534 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
12535 else
12536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537 printf "%s\n" "no" >&6; }
12538 fi
12539
12540 if test "x$ac_ct_OTOOL64" = x; then
12541 OTOOL64=":"
12542 else
12543 case $cross_compiling:$ac_tool_warned in
12544 yes:)
12545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12546 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12547 ac_tool_warned=yes ;;
12548 esac
12549 OTOOL64=$ac_ct_OTOOL64
12550 fi
12551 else
12552 OTOOL64="$ac_cv_prog_OTOOL64"
12553 fi
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12582 printf %s "checking for -single_module linker flag... " >&6; }
12583 if test ${lt_cv_apple_cc_single_mod+y}
12584 then :
12585 printf %s "(cached) " >&6
12586 else case e in #(
12587 e) lt_cv_apple_cc_single_mod=no
12588 if test -z "$LT_MULTI_MODULE"; then
12589 # By default we will add the -single_module flag. You can override
12590 # by either setting the environment variable LT_MULTI_MODULE
12591 # non-empty at configure time, or by adding -multi_module to the
12592 # link flags.
12593 rm -rf libconftest.dylib*
12594 echo "int foo(void){return 1;}" > conftest.c
12595 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12596 -dynamiclib -Wl,-single_module conftest.c" >&5
12597 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12598 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12599 _lt_result=$?
12600 # If there is a non-empty error log, and "single_module"
12601 # appears in it, assume the flag caused a linker warning
12602 if test -s conftest.err && $GREP single_module conftest.err; then
12603 cat conftest.err >&5
12604 # Otherwise, if the output was created with a 0 exit code from
12605 # the compiler, it worked.
12606 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12607 lt_cv_apple_cc_single_mod=yes
12608 else
12609 cat conftest.err >&5
12610 fi
12611 rm -rf libconftest.dylib*
12612 rm -f conftest.*
12613 fi ;;
12614 esac
12615 fi
12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12617 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
12618
12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12620 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
12621 if test ${lt_cv_ld_exported_symbols_list+y}
12622 then :
12623 printf %s "(cached) " >&6
12624 else case e in #(
12625 e) lt_cv_ld_exported_symbols_list=no
12626 save_LDFLAGS=$LDFLAGS
12627 echo "_main" > conftest.sym
12628 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12631
12632 int
12633 main (void)
12634 {
12635
12636 ;
12637 return 0;
12638 }
12639 _ACEOF
12640 if ac_fn_c_try_link "$LINENO"
12641 then :
12642 lt_cv_ld_exported_symbols_list=yes
12643 else case e in #(
12644 e) lt_cv_ld_exported_symbols_list=no ;;
12645 esac
12646 fi
12647 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12648 conftest$ac_exeext conftest.$ac_ext
12649 LDFLAGS=$save_LDFLAGS
12650 ;;
12651 esac
12652 fi
12653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12654 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
12655
12656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12657 printf %s "checking for -force_load linker flag... " >&6; }
12658 if test ${lt_cv_ld_force_load+y}
12659 then :
12660 printf %s "(cached) " >&6
12661 else case e in #(
12662 e) lt_cv_ld_force_load=no
12663 cat > conftest.c << _LT_EOF
12664 int forced_loaded() { return 2;}
12665 _LT_EOF
12666 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12667 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12668 echo "$AR cru libconftest.a conftest.o" >&5
12669 $AR cru libconftest.a conftest.o 2>&5
12670 echo "$RANLIB libconftest.a" >&5
12671 $RANLIB libconftest.a 2>&5
12672 cat > conftest.c << _LT_EOF
12673 int main() { return 0;}
12674 _LT_EOF
12675 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12676 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12677 _lt_result=$?
12678 if test -s conftest.err && $GREP force_load conftest.err; then
12679 cat conftest.err >&5
12680 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12681 lt_cv_ld_force_load=yes
12682 else
12683 cat conftest.err >&5
12684 fi
12685 rm -f conftest.err libconftest.a conftest conftest.c
12686 rm -rf conftest.dSYM
12687 ;;
12688 esac
12689 fi
12690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12691 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
12692 case $host_os in
12693 rhapsody* | darwin1.[012])
12694 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12695 darwin1.*)
12696 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12697 darwin*) # darwin 5.x on
12698 # if running on 10.5 or later, the deployment target defaults
12699 # to the OS version, if on x86, and 10.4, the deployment
12700 # target defaults to 10.4. Don't you love it?
12701 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12702 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12703 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12704 10.[012][,.]*)
12705 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12706 10.*)
12707 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12708 esac
12709 ;;
12710 esac
12711 if test yes = "$lt_cv_apple_cc_single_mod"; then
12712 _lt_dar_single_mod='$single_module'
12713 fi
12714 if test yes = "$lt_cv_ld_exported_symbols_list"; then
12715 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12716 else
12717 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12718 fi
12719 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12720 _lt_dsymutil='~$DSYMUTIL $lib || :'
12721 else
12722 _lt_dsymutil=
12723 fi
12724 ;;
12725 esac
12726
12727 # func_munge_path_list VARIABLE PATH
12728 # -----------------------------------
12729 # VARIABLE is name of variable containing _space_ separated list of
12730 # directories to be munged by the contents of PATH, which is string
12731 # having a format:
12732 # "DIR[:DIR]:"
12733 # string "DIR[ DIR]" will be prepended to VARIABLE
12734 # ":DIR[:DIR]"
12735 # string "DIR[ DIR]" will be appended to VARIABLE
12736 # "DIRP[:DIRP]::[DIRA:]DIRA"
12737 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12738 # "DIRA[ DIRA]" will be appended to VARIABLE
12739 # "DIR[:DIR]"
12740 # VARIABLE will be replaced by "DIR[ DIR]"
12741 func_munge_path_list ()
12742 {
12743 case x$2 in
12744 x)
12745 ;;
12746 *:)
12747 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12748 ;;
12749 x:*)
12750 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12751 ;;
12752 *::*)
12753 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12754 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12755 ;;
12756 *)
12757 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12758 ;;
12759 esac
12760 }
12761
12762 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12763 "
12764 if test "x$ac_cv_header_dlfcn_h" = xyes
12765 then :
12766 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12767
12768 fi
12769
12770
12771
12772
12773
12774 # Set options
12775
12776
12777
12778
12779 enable_win32_dll=no
12780
12781
12782 # Check whether --enable-shared was given.
12783 if test ${enable_shared+y}
12784 then :
12785 enableval=$enable_shared; p=${PACKAGE-default}
12786 case $enableval in
12787 yes) enable_shared=yes ;;
12788 no) enable_shared=no ;;
12789 *)
12790 enable_shared=no
12791 # Look at the argument we got. We use all the common list separators.
12792 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12793 for pkg in $enableval; do
12794 IFS=$lt_save_ifs
12795 if test "X$pkg" = "X$p"; then
12796 enable_shared=yes
12797 fi
12798 done
12799 IFS=$lt_save_ifs
12800 ;;
12801 esac
12802 else case e in #(
12803 e) enable_shared=yes ;;
12804 esac
12805 fi
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817 # Check whether --with-pic was given.
12818 if test ${with_pic+y}
12819 then :
12820 withval=$with_pic; lt_p=${PACKAGE-default}
12821 case $withval in
12822 yes|no) pic_mode=$withval ;;
12823 *)
12824 pic_mode=default
12825 # Look at the argument we got. We use all the common list separators.
12826 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12827 for lt_pkg in $withval; do
12828 IFS=$lt_save_ifs
12829 if test "X$lt_pkg" = "X$lt_p"; then
12830 pic_mode=yes
12831 fi
12832 done
12833 IFS=$lt_save_ifs
12834 ;;
12835 esac
12836 else case e in #(
12837 e) pic_mode=default ;;
12838 esac
12839 fi
12840
12841
12842
12843
12844
12845
12846
12847
12848 # Check whether --enable-fast-install was given.
12849 if test ${enable_fast_install+y}
12850 then :
12851 enableval=$enable_fast_install; p=${PACKAGE-default}
12852 case $enableval in
12853 yes) enable_fast_install=yes ;;
12854 no) enable_fast_install=no ;;
12855 *)
12856 enable_fast_install=no
12857 # Look at the argument we got. We use all the common list separators.
12858 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12859 for pkg in $enableval; do
12860 IFS=$lt_save_ifs
12861 if test "X$pkg" = "X$p"; then
12862 enable_fast_install=yes
12863 fi
12864 done
12865 IFS=$lt_save_ifs
12866 ;;
12867 esac
12868 else case e in #(
12869 e) enable_fast_install=yes ;;
12870 esac
12871 fi
12872
12873
12874
12875
12876
12877
12878
12879
12880 shared_archive_member_spec=
12881 case $host,$enable_shared in
12882 power*-*-aix[5-9]*,yes)
12883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12884 printf %s "checking which variant of shared library versioning to provide... " >&6; }
12885
12886 # Check whether --with-aix-soname was given.
12887 if test ${with_aix_soname+y}
12888 then :
12889 withval=$with_aix_soname; case $withval in
12890 aix|svr4|both)
12891 ;;
12892 *)
12893 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12894 ;;
12895 esac
12896 lt_cv_with_aix_soname=$with_aix_soname
12897 else case e in #(
12898 e) if test ${lt_cv_with_aix_soname+y}
12899 then :
12900 printf %s "(cached) " >&6
12901 else case e in #(
12902 e) lt_cv_with_aix_soname=aix ;;
12903 esac
12904 fi
12905
12906 with_aix_soname=$lt_cv_with_aix_soname ;;
12907 esac
12908 fi
12909
12910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12911 printf "%s\n" "$with_aix_soname" >&6; }
12912 if test aix != "$with_aix_soname"; then
12913 # For the AIX way of multilib, we name the shared archive member
12914 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12915 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12916 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12917 # the AIX toolchain works better with OBJECT_MODE set (default 32).
12918 if test 64 = "${OBJECT_MODE-32}"; then
12919 shared_archive_member_spec=shr_64
12920 else
12921 shared_archive_member_spec=shr
12922 fi
12923 fi
12924 ;;
12925 *)
12926 with_aix_soname=aix
12927 ;;
12928 esac
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939 # This can be used to rebuild libtool when needed
12940 LIBTOOL_DEPS=$ltmain
12941
12942 # Always use our own libtool.
12943 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974 test -z "$LN_S" && LN_S="ln -s"
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989 if test -n "${ZSH_VERSION+set}"; then
12990 setopt NO_GLOB_SUBST
12991 fi
12992
12993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12994 printf %s "checking for objdir... " >&6; }
12995 if test ${lt_cv_objdir+y}
12996 then :
12997 printf %s "(cached) " >&6
12998 else case e in #(
12999 e) rm -f .libs 2>/dev/null
13000 mkdir .libs 2>/dev/null
13001 if test -d .libs; then
13002 lt_cv_objdir=.libs
13003 else
13004 # MS-DOS does not allow filenames that begin with a dot.
13005 lt_cv_objdir=_libs
13006 fi
13007 rmdir .libs 2>/dev/null ;;
13008 esac
13009 fi
13010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13011 printf "%s\n" "$lt_cv_objdir" >&6; }
13012 objdir=$lt_cv_objdir
13013
13014
13015
13016
13017
13018 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
13019
13020
13021
13022
13023 case $host_os in
13024 aix3*)
13025 # AIX sometimes has problems with the GCC collect2 program. For some
13026 # reason, if we set the COLLECT_NAMES environment variable, the problems
13027 # vanish in a puff of smoke.
13028 if test set != "${COLLECT_NAMES+set}"; then
13029 COLLECT_NAMES=
13030 export COLLECT_NAMES
13031 fi
13032 ;;
13033 esac
13034
13035 # Global variables:
13036 ofile=libtool
13037 can_build_shared=yes
13038
13039 # All known linkers require a '.a' archive for static linking (except MSVC,
13040 # which needs '.lib').
13041 libext=a
13042
13043 with_gnu_ld=$lt_cv_prog_gnu_ld
13044
13045 old_CC=$CC
13046 old_CFLAGS=$CFLAGS
13047
13048 # Set sane defaults for various variables
13049 test -z "$CC" && CC=cc
13050 test -z "$LTCC" && LTCC=$CC
13051 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13052 test -z "$LD" && LD=ld
13053 test -z "$ac_objext" && ac_objext=o
13054
13055 func_cc_basename $compiler
13056 cc_basename=$func_cc_basename_result
13057
13058
13059 # Only perform the check for file, if the check method requires it
13060 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13061 case $deplibs_check_method in
13062 file_magic*)
13063 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13065 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
13066 if test ${lt_cv_path_MAGIC_CMD+y}
13067 then :
13068 printf %s "(cached) " >&6
13069 else case e in #(
13070 e) case $MAGIC_CMD in
13071 [\\/*] | ?:[\\/]*)
13072 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13073 ;;
13074 *)
13075 lt_save_MAGIC_CMD=$MAGIC_CMD
13076 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13077 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13078 for ac_dir in $ac_dummy; do
13079 IFS=$lt_save_ifs
13080 test -z "$ac_dir" && ac_dir=.
13081 if test -f "$ac_dir/${ac_tool_prefix}file"; then
13082 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
13083 if test -n "$file_magic_test_file"; then
13084 case $deplibs_check_method in
13085 "file_magic "*)
13086 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13087 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13088 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13089 $EGREP "$file_magic_regex" > /dev/null; then
13090 :
13091 else
13092 cat <<_LT_EOF 1>&2
13093
13094 *** Warning: the command libtool uses to detect shared libraries,
13095 *** $file_magic_cmd, produces output that libtool cannot recognize.
13096 *** The result is that libtool may fail to recognize shared libraries
13097 *** as such. This will affect the creation of libtool libraries that
13098 *** depend on shared libraries, but programs linked with such libtool
13099 *** libraries will work regardless of this problem. Nevertheless, you
13100 *** may want to report the problem to your system manager and/or to
13101 *** [email protected]
13102
13103 _LT_EOF
13104 fi ;;
13105 esac
13106 fi
13107 break
13108 fi
13109 done
13110 IFS=$lt_save_ifs
13111 MAGIC_CMD=$lt_save_MAGIC_CMD
13112 ;;
13113 esac ;;
13114 esac
13115 fi
13116
13117 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13118 if test -n "$MAGIC_CMD"; then
13119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13120 printf "%s\n" "$MAGIC_CMD" >&6; }
13121 else
13122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123 printf "%s\n" "no" >&6; }
13124 fi
13125
13126
13127
13128
13129
13130 if test -z "$lt_cv_path_MAGIC_CMD"; then
13131 if test -n "$ac_tool_prefix"; then
13132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13133 printf %s "checking for file... " >&6; }
13134 if test ${lt_cv_path_MAGIC_CMD+y}
13135 then :
13136 printf %s "(cached) " >&6
13137 else case e in #(
13138 e) case $MAGIC_CMD in
13139 [\\/*] | ?:[\\/]*)
13140 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13141 ;;
13142 *)
13143 lt_save_MAGIC_CMD=$MAGIC_CMD
13144 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13145 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13146 for ac_dir in $ac_dummy; do
13147 IFS=$lt_save_ifs
13148 test -z "$ac_dir" && ac_dir=.
13149 if test -f "$ac_dir/file"; then
13150 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
13151 if test -n "$file_magic_test_file"; then
13152 case $deplibs_check_method in
13153 "file_magic "*)
13154 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13155 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13156 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13157 $EGREP "$file_magic_regex" > /dev/null; then
13158 :
13159 else
13160 cat <<_LT_EOF 1>&2
13161
13162 *** Warning: the command libtool uses to detect shared libraries,
13163 *** $file_magic_cmd, produces output that libtool cannot recognize.
13164 *** The result is that libtool may fail to recognize shared libraries
13165 *** as such. This will affect the creation of libtool libraries that
13166 *** depend on shared libraries, but programs linked with such libtool
13167 *** libraries will work regardless of this problem. Nevertheless, you
13168 *** may want to report the problem to your system manager and/or to
13169 *** [email protected]
13170
13171 _LT_EOF
13172 fi ;;
13173 esac
13174 fi
13175 break
13176 fi
13177 done
13178 IFS=$lt_save_ifs
13179 MAGIC_CMD=$lt_save_MAGIC_CMD
13180 ;;
13181 esac ;;
13182 esac
13183 fi
13184
13185 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13186 if test -n "$MAGIC_CMD"; then
13187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13188 printf "%s\n" "$MAGIC_CMD" >&6; }
13189 else
13190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 printf "%s\n" "no" >&6; }
13192 fi
13193
13194
13195 else
13196 MAGIC_CMD=:
13197 fi
13198 fi
13199
13200 fi
13201 ;;
13202 esac
13203
13204 # Use C for the default configuration in the libtool script
13205
13206 lt_save_CC=$CC
13207 ac_ext=c
13208 ac_cpp='$CPP $CPPFLAGS'
13209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13212
13213
13214 # Source file extension for C test sources.
13215 ac_ext=c
13216
13217 # Object file extension for compiled C test sources.
13218 objext=o
13219 objext=$objext
13220
13221 # Code to be used in simple compile tests
13222 lt_simple_compile_test_code="int some_variable = 0;"
13223
13224 # Code to be used in simple link tests
13225 lt_simple_link_test_code='int main(){return(0);}'
13226
13227
13228
13229
13230
13231
13232
13233 # If no C compiler was specified, use CC.
13234 LTCC=${LTCC-"$CC"}
13235
13236 # If no C compiler flags were specified, use CFLAGS.
13237 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13238
13239 # Allow CC to be a program name with arguments.
13240 compiler=$CC
13241
13242 # Save the default compiler, since it gets overwritten when the other
13243 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13244 compiler_DEFAULT=$CC
13245
13246 # save warnings/boilerplate of simple test code
13247 ac_outfile=conftest.$ac_objext
13248 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13249 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13250 _lt_compiler_boilerplate=`cat conftest.err`
13251 $RM conftest*
13252
13253 ac_outfile=conftest.$ac_objext
13254 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13255 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13256 _lt_linker_boilerplate=`cat conftest.err`
13257 $RM -r conftest*
13258
13259
13260 ## CAVEAT EMPTOR:
13261 ## There is no encapsulation within the following macros, do not change
13262 ## the running order or otherwise move them around unless you know exactly
13263 ## what you are doing...
13264 if test -n "$compiler"; then
13265
13266 lt_prog_compiler_no_builtin_flag=
13267
13268 if test yes = "$GCC"; then
13269 case $cc_basename in
13270 nvcc*)
13271 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13272 *)
13273 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13274 esac
13275
13276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13277 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13278 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13279 then :
13280 printf %s "(cached) " >&6
13281 else case e in #(
13282 e) lt_cv_prog_compiler_rtti_exceptions=no
13283 ac_outfile=conftest.$ac_objext
13284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13285 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
13286 # Insert the option either (1) after the last *FLAGS variable, or
13287 # (2) before a word containing "conftest.", or (3) at the end.
13288 # Note that $ac_compile itself does not contain backslashes and begins
13289 # with a dollar sign (not a hyphen), so the echo should work correctly.
13290 # The option is referenced via a variable to avoid confusing sed.
13291 lt_compile=`echo "$ac_compile" | $SED \
13292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13294 -e 's:$: $lt_compiler_flag:'`
13295 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13296 (eval "$lt_compile" 2>conftest.err)
13297 ac_status=$?
13298 cat conftest.err >&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 if (exit $ac_status) && test -s "$ac_outfile"; then
13301 # The compiler can only warn and ignore the option if not recognized
13302 # So say no if there are warnings other than the usual output.
13303 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13305 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13306 lt_cv_prog_compiler_rtti_exceptions=yes
13307 fi
13308 fi
13309 $RM conftest*
13310 ;;
13311 esac
13312 fi
13313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13314 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13315
13316 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13317 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13318 else
13319 :
13320 fi
13321
13322 fi
13323
13324
13325
13326
13327
13328
13329 lt_prog_compiler_wl=
13330 lt_prog_compiler_pic=
13331 lt_prog_compiler_static=
13332
13333
13334 if test yes = "$GCC"; then
13335 lt_prog_compiler_wl='-Wl,'
13336 lt_prog_compiler_static='-static'
13337
13338 case $host_os in
13339 aix*)
13340 # All AIX code is PIC.
13341 if test ia64 = "$host_cpu"; then
13342 # AIX 5 now supports IA64 processor
13343 lt_prog_compiler_static='-Bstatic'
13344 fi
13345 lt_prog_compiler_pic='-fPIC'
13346 ;;
13347
13348 amigaos*)
13349 case $host_cpu in
13350 powerpc)
13351 # see comment about AmigaOS4 .so support
13352 lt_prog_compiler_pic='-fPIC'
13353 ;;
13354 m68k)
13355 # FIXME: we need at least 68020 code to build shared libraries, but
13356 # adding the '-m68020' flag to GCC prevents building anything better,
13357 # like '-m68040'.
13358 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13359 ;;
13360 esac
13361 ;;
13362
13363 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13364 # PIC is the default for these OSes.
13365 ;;
13366
13367 mingw* | cygwin* | pw32* | os2* | cegcc*)
13368 # This hack is so that the source file can tell whether it is being
13369 # built for inclusion in a dll (and should export symbols for example).
13370 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13371 # (--disable-auto-import) libraries
13372 lt_prog_compiler_pic='-DDLL_EXPORT'
13373 case $host_os in
13374 os2*)
13375 lt_prog_compiler_static='$wl-static'
13376 ;;
13377 esac
13378 ;;
13379
13380 darwin* | rhapsody*)
13381 # PIC is the default on this platform
13382 # Common symbols not allowed in MH_DYLIB files
13383 lt_prog_compiler_pic='-fno-common'
13384 ;;
13385
13386 haiku*)
13387 # PIC is the default for Haiku.
13388 # The "-static" flag exists, but is broken.
13389 lt_prog_compiler_static=
13390 ;;
13391
13392 hpux*)
13393 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13394 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13395 # sets the default TLS model and affects inlining.
13396 case $host_cpu in
13397 hppa*64*)
13398 # +Z the default
13399 ;;
13400 *)
13401 lt_prog_compiler_pic='-fPIC'
13402 ;;
13403 esac
13404 ;;
13405
13406 interix[3-9]*)
13407 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13408 # Instead, we relocate shared libraries at runtime.
13409 ;;
13410
13411 msdosdjgpp*)
13412 # Just because we use GCC doesn't mean we suddenly get shared libraries
13413 # on systems that don't support them.
13414 lt_prog_compiler_can_build_shared=no
13415 enable_shared=no
13416 ;;
13417
13418 *nto* | *qnx*)
13419 # QNX uses GNU C++, but need to define -shared option too, otherwise
13420 # it will coredump.
13421 lt_prog_compiler_pic='-fPIC -shared'
13422 ;;
13423
13424 sysv4*MP*)
13425 if test -d /usr/nec; then
13426 lt_prog_compiler_pic=-Kconform_pic
13427 fi
13428 ;;
13429
13430 *)
13431 lt_prog_compiler_pic='-fPIC'
13432 ;;
13433 esac
13434
13435 case $cc_basename in
13436 nvcc*) # Cuda Compiler Driver 2.2
13437 lt_prog_compiler_wl='-Xlinker '
13438 if test -n "$lt_prog_compiler_pic"; then
13439 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13440 fi
13441 ;;
13442 esac
13443 else
13444 # PORTME Check for flag to pass linker flags through the system compiler.
13445 case $host_os in
13446 aix*)
13447 lt_prog_compiler_wl='-Wl,'
13448 if test ia64 = "$host_cpu"; then
13449 # AIX 5 now supports IA64 processor
13450 lt_prog_compiler_static='-Bstatic'
13451 else
13452 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13453 fi
13454 ;;
13455
13456 darwin* | rhapsody*)
13457 # PIC is the default on this platform
13458 # Common symbols not allowed in MH_DYLIB files
13459 lt_prog_compiler_pic='-fno-common'
13460 case $cc_basename in
13461 nagfor*)
13462 # NAG Fortran compiler
13463 lt_prog_compiler_wl='-Wl,-Wl,,'
13464 lt_prog_compiler_pic='-PIC'
13465 lt_prog_compiler_static='-Bstatic'
13466 ;;
13467 esac
13468 ;;
13469
13470 mingw* | cygwin* | pw32* | os2* | cegcc*)
13471 # This hack is so that the source file can tell whether it is being
13472 # built for inclusion in a dll (and should export symbols for example).
13473 lt_prog_compiler_pic='-DDLL_EXPORT'
13474 case $host_os in
13475 os2*)
13476 lt_prog_compiler_static='$wl-static'
13477 ;;
13478 esac
13479 ;;
13480
13481 hpux9* | hpux10* | hpux11*)
13482 lt_prog_compiler_wl='-Wl,'
13483 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13484 # not for PA HP-UX.
13485 case $host_cpu in
13486 hppa*64*|ia64*)
13487 # +Z the default
13488 ;;
13489 *)
13490 lt_prog_compiler_pic='+Z'
13491 ;;
13492 esac
13493 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13494 lt_prog_compiler_static='$wl-a ${wl}archive'
13495 ;;
13496
13497 irix5* | irix6* | nonstopux*)
13498 lt_prog_compiler_wl='-Wl,'
13499 # PIC (with -KPIC) is the default.
13500 lt_prog_compiler_static='-non_shared'
13501 ;;
13502
13503 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13504 case $cc_basename in
13505 # old Intel for x86_64, which still supported -KPIC.
13506 ecc*)
13507 lt_prog_compiler_wl='-Wl,'
13508 lt_prog_compiler_pic='-KPIC'
13509 lt_prog_compiler_static='-static'
13510 ;;
13511 # icc used to be incompatible with GCC.
13512 # ICC 10 doesn't accept -KPIC any more.
13513 icc* | ifort*)
13514 lt_prog_compiler_wl='-Wl,'
13515 lt_prog_compiler_pic='-fPIC'
13516 lt_prog_compiler_static='-static'
13517 ;;
13518 # Lahey Fortran 8.1.
13519 lf95*)
13520 lt_prog_compiler_wl='-Wl,'
13521 lt_prog_compiler_pic='--shared'
13522 lt_prog_compiler_static='--static'
13523 ;;
13524 nagfor*)
13525 # NAG Fortran compiler
13526 lt_prog_compiler_wl='-Wl,-Wl,,'
13527 lt_prog_compiler_pic='-PIC'
13528 lt_prog_compiler_static='-Bstatic'
13529 ;;
13530 tcc*)
13531 # Fabrice Bellard et al's Tiny C Compiler
13532 lt_prog_compiler_wl='-Wl,'
13533 lt_prog_compiler_pic='-fPIC'
13534 lt_prog_compiler_static='-static'
13535 ;;
13536 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13537 # Portland Group compilers (*not* the Pentium gcc compiler,
13538 # which looks to be a dead project)
13539 lt_prog_compiler_wl='-Wl,'
13540 lt_prog_compiler_pic='-fpic'
13541 lt_prog_compiler_static='-Bstatic'
13542 ;;
13543 ccc*)
13544 lt_prog_compiler_wl='-Wl,'
13545 # All Alpha code is PIC.
13546 lt_prog_compiler_static='-non_shared'
13547 ;;
13548 xl* | bgxl* | bgf* | mpixl*)
13549 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13550 lt_prog_compiler_wl='-Wl,'
13551 lt_prog_compiler_pic='-qpic'
13552 lt_prog_compiler_static='-qstaticlink'
13553 ;;
13554 *)
13555 case `$CC -V 2>&1 | sed 5q` in
13556 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13557 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13558 lt_prog_compiler_pic='-KPIC'
13559 lt_prog_compiler_static='-Bstatic'
13560 lt_prog_compiler_wl=''
13561 ;;
13562 *Sun\ F* | *Sun*Fortran*)
13563 lt_prog_compiler_pic='-KPIC'
13564 lt_prog_compiler_static='-Bstatic'
13565 lt_prog_compiler_wl='-Qoption ld '
13566 ;;
13567 *Sun\ C*)
13568 # Sun C 5.9
13569 lt_prog_compiler_pic='-KPIC'
13570 lt_prog_compiler_static='-Bstatic'
13571 lt_prog_compiler_wl='-Wl,'
13572 ;;
13573 *Intel*\ [CF]*Compiler*)
13574 lt_prog_compiler_wl='-Wl,'
13575 lt_prog_compiler_pic='-fPIC'
13576 lt_prog_compiler_static='-static'
13577 ;;
13578 *Portland\ Group*)
13579 lt_prog_compiler_wl='-Wl,'
13580 lt_prog_compiler_pic='-fpic'
13581 lt_prog_compiler_static='-Bstatic'
13582 ;;
13583 esac
13584 ;;
13585 esac
13586 ;;
13587
13588 newsos6)
13589 lt_prog_compiler_pic='-KPIC'
13590 lt_prog_compiler_static='-Bstatic'
13591 ;;
13592
13593 *nto* | *qnx*)
13594 # QNX uses GNU C++, but need to define -shared option too, otherwise
13595 # it will coredump.
13596 lt_prog_compiler_pic='-fPIC -shared'
13597 ;;
13598
13599 osf3* | osf4* | osf5*)
13600 lt_prog_compiler_wl='-Wl,'
13601 # All OSF/1 code is PIC.
13602 lt_prog_compiler_static='-non_shared'
13603 ;;
13604
13605 rdos*)
13606 lt_prog_compiler_static='-non_shared'
13607 ;;
13608
13609 solaris*)
13610 lt_prog_compiler_pic='-KPIC'
13611 lt_prog_compiler_static='-Bstatic'
13612 case $cc_basename in
13613 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13614 lt_prog_compiler_wl='-Qoption ld ';;
13615 *)
13616 lt_prog_compiler_wl='-Wl,';;
13617 esac
13618 ;;
13619
13620 sunos4*)
13621 lt_prog_compiler_wl='-Qoption ld '
13622 lt_prog_compiler_pic='-PIC'
13623 lt_prog_compiler_static='-Bstatic'
13624 ;;
13625
13626 sysv4 | sysv4.2uw2* | sysv4.3*)
13627 lt_prog_compiler_wl='-Wl,'
13628 lt_prog_compiler_pic='-KPIC'
13629 lt_prog_compiler_static='-Bstatic'
13630 ;;
13631
13632 sysv4*MP*)
13633 if test -d /usr/nec; then
13634 lt_prog_compiler_pic='-Kconform_pic'
13635 lt_prog_compiler_static='-Bstatic'
13636 fi
13637 ;;
13638
13639 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13640 lt_prog_compiler_wl='-Wl,'
13641 lt_prog_compiler_pic='-KPIC'
13642 lt_prog_compiler_static='-Bstatic'
13643 ;;
13644
13645 unicos*)
13646 lt_prog_compiler_wl='-Wl,'
13647 lt_prog_compiler_can_build_shared=no
13648 ;;
13649
13650 uts4*)
13651 lt_prog_compiler_pic='-pic'
13652 lt_prog_compiler_static='-Bstatic'
13653 ;;
13654
13655 *)
13656 lt_prog_compiler_can_build_shared=no
13657 ;;
13658 esac
13659 fi
13660
13661 case $host_os in
13662 # For platforms that do not support PIC, -DPIC is meaningless:
13663 *djgpp*)
13664 lt_prog_compiler_pic=
13665 ;;
13666 *)
13667 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13668 ;;
13669 esac
13670
13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13672 printf %s "checking for $compiler option to produce PIC... " >&6; }
13673 if test ${lt_cv_prog_compiler_pic+y}
13674 then :
13675 printf %s "(cached) " >&6
13676 else case e in #(
13677 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13678 esac
13679 fi
13680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13681 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13682 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13683
13684 #
13685 # Check to make sure the PIC flag actually works.
13686 #
13687 if test -n "$lt_prog_compiler_pic"; then
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13689 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13690 if test ${lt_cv_prog_compiler_pic_works+y}
13691 then :
13692 printf %s "(cached) " >&6
13693 else case e in #(
13694 e) lt_cv_prog_compiler_pic_works=no
13695 ac_outfile=conftest.$ac_objext
13696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13697 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13698 # Insert the option either (1) after the last *FLAGS variable, or
13699 # (2) before a word containing "conftest.", or (3) at the end.
13700 # Note that $ac_compile itself does not contain backslashes and begins
13701 # with a dollar sign (not a hyphen), so the echo should work correctly.
13702 # The option is referenced via a variable to avoid confusing sed.
13703 lt_compile=`echo "$ac_compile" | $SED \
13704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13706 -e 's:$: $lt_compiler_flag:'`
13707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13708 (eval "$lt_compile" 2>conftest.err)
13709 ac_status=$?
13710 cat conftest.err >&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 if (exit $ac_status) && test -s "$ac_outfile"; then
13713 # The compiler can only warn and ignore the option if not recognized
13714 # So say no if there are warnings other than the usual output.
13715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13718 lt_cv_prog_compiler_pic_works=yes
13719 fi
13720 fi
13721 $RM conftest*
13722 ;;
13723 esac
13724 fi
13725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13726 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13727
13728 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13729 case $lt_prog_compiler_pic in
13730 "" | " "*) ;;
13731 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13732 esac
13733 else
13734 lt_prog_compiler_pic=
13735 lt_prog_compiler_can_build_shared=no
13736 fi
13737
13738 fi
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750 #
13751 # Check to make sure the static flag actually works.
13752 #
13753 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13755 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13756 if test ${lt_cv_prog_compiler_static_works+y}
13757 then :
13758 printf %s "(cached) " >&6
13759 else case e in #(
13760 e) lt_cv_prog_compiler_static_works=no
13761 save_LDFLAGS=$LDFLAGS
13762 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13763 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13764 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13765 # The linker can only warn and ignore the option if not recognized
13766 # So say no if there are warnings
13767 if test -s conftest.err; then
13768 # Append any errors to the config.log.
13769 cat conftest.err 1>&5
13770 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13772 if diff conftest.exp conftest.er2 >/dev/null; then
13773 lt_cv_prog_compiler_static_works=yes
13774 fi
13775 else
13776 lt_cv_prog_compiler_static_works=yes
13777 fi
13778 fi
13779 $RM -r conftest*
13780 LDFLAGS=$save_LDFLAGS
13781 ;;
13782 esac
13783 fi
13784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13785 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13786
13787 if test yes = "$lt_cv_prog_compiler_static_works"; then
13788 :
13789 else
13790 lt_prog_compiler_static=
13791 fi
13792
13793
13794
13795
13796
13797
13798
13799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13800 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13801 if test ${lt_cv_prog_compiler_c_o+y}
13802 then :
13803 printf %s "(cached) " >&6
13804 else case e in #(
13805 e) lt_cv_prog_compiler_c_o=no
13806 $RM -r conftest 2>/dev/null
13807 mkdir conftest
13808 cd conftest
13809 mkdir out
13810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13811
13812 lt_compiler_flag="-o out/conftest2.$ac_objext"
13813 # Insert the option either (1) after the last *FLAGS variable, or
13814 # (2) before a word containing "conftest.", or (3) at the end.
13815 # Note that $ac_compile itself does not contain backslashes and begins
13816 # with a dollar sign (not a hyphen), so the echo should work correctly.
13817 lt_compile=`echo "$ac_compile" | $SED \
13818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13820 -e 's:$: $lt_compiler_flag:'`
13821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13822 (eval "$lt_compile" 2>out/conftest.err)
13823 ac_status=$?
13824 cat out/conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13827 then
13828 # The compiler can only warn and ignore the option if not recognized
13829 # So say no if there are warnings
13830 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13833 lt_cv_prog_compiler_c_o=yes
13834 fi
13835 fi
13836 chmod u+w . 2>&5
13837 $RM conftest*
13838 # SGI C++ compiler will create directory out/ii_files/ for
13839 # template instantiation
13840 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13841 $RM out/* && rmdir out
13842 cd ..
13843 $RM -r conftest
13844 $RM conftest*
13845 ;;
13846 esac
13847 fi
13848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13849 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13850
13851
13852
13853
13854
13855
13856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13857 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13858 if test ${lt_cv_prog_compiler_c_o+y}
13859 then :
13860 printf %s "(cached) " >&6
13861 else case e in #(
13862 e) lt_cv_prog_compiler_c_o=no
13863 $RM -r conftest 2>/dev/null
13864 mkdir conftest
13865 cd conftest
13866 mkdir out
13867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13868
13869 lt_compiler_flag="-o out/conftest2.$ac_objext"
13870 # Insert the option either (1) after the last *FLAGS variable, or
13871 # (2) before a word containing "conftest.", or (3) at the end.
13872 # Note that $ac_compile itself does not contain backslashes and begins
13873 # with a dollar sign (not a hyphen), so the echo should work correctly.
13874 lt_compile=`echo "$ac_compile" | $SED \
13875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13877 -e 's:$: $lt_compiler_flag:'`
13878 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13879 (eval "$lt_compile" 2>out/conftest.err)
13880 ac_status=$?
13881 cat out/conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13884 then
13885 # The compiler can only warn and ignore the option if not recognized
13886 # So say no if there are warnings
13887 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13890 lt_cv_prog_compiler_c_o=yes
13891 fi
13892 fi
13893 chmod u+w . 2>&5
13894 $RM conftest*
13895 # SGI C++ compiler will create directory out/ii_files/ for
13896 # template instantiation
13897 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13898 $RM out/* && rmdir out
13899 cd ..
13900 $RM -r conftest
13901 $RM conftest*
13902 ;;
13903 esac
13904 fi
13905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13906 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13907
13908
13909
13910
13911 hard_links=nottested
13912 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13913 # do not overwrite the value of need_locks provided by the user
13914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13915 printf %s "checking if we can lock with hard links... " >&6; }
13916 hard_links=yes
13917 $RM conftest*
13918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13919 touch conftest.a
13920 ln conftest.a conftest.b 2>&5 || hard_links=no
13921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13923 printf "%s\n" "$hard_links" >&6; }
13924 if test no = "$hard_links"; then
13925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13926 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13927 need_locks=warn
13928 fi
13929 else
13930 need_locks=no
13931 fi
13932
13933
13934
13935
13936
13937
13938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13939 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13940
13941 runpath_var=
13942 allow_undefined_flag=
13943 always_export_symbols=no
13944 archive_cmds=
13945 archive_expsym_cmds=
13946 compiler_needs_object=no
13947 enable_shared_with_static_runtimes=no
13948 export_dynamic_flag_spec=
13949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13950 hardcode_automatic=no
13951 hardcode_direct=no
13952 hardcode_direct_absolute=no
13953 hardcode_libdir_flag_spec=
13954 hardcode_libdir_separator=
13955 hardcode_minus_L=no
13956 hardcode_shlibpath_var=unsupported
13957 inherit_rpath=no
13958 link_all_deplibs=unknown
13959 module_cmds=
13960 module_expsym_cmds=
13961 old_archive_from_new_cmds=
13962 old_archive_from_expsyms_cmds=
13963 thread_safe_flag_spec=
13964 whole_archive_flag_spec=
13965 # include_expsyms should be a list of space-separated symbols to be *always*
13966 # included in the symbol list
13967 include_expsyms=
13968 # exclude_expsyms can be an extended regexp of symbols to exclude
13969 # it will be wrapped by ' (' and ')$', so one must not match beginning or
13970 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13971 # as well as any symbol that contains 'd'.
13972 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13973 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13974 # platforms (ab)use it in PIC code, but their linkers get confused if
13975 # the symbol is explicitly referenced. Since portable code cannot
13976 # rely on this symbol name, it's probably fine to never include it in
13977 # preloaded symbol tables.
13978 # Exclude shared library initialization/finalization symbols.
13979 extract_expsyms_cmds=
13980
13981 case $host_os in
13982 cygwin* | mingw* | pw32* | cegcc*)
13983 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13984 # When not using gcc, we currently assume that we are using
13985 # Microsoft Visual C++.
13986 if test yes != "$GCC"; then
13987 with_gnu_ld=no
13988 fi
13989 ;;
13990 interix*)
13991 # we just hope/assume this is gcc and not c89 (= MSVC++)
13992 with_gnu_ld=yes
13993 ;;
13994 openbsd* | bitrig*)
13995 with_gnu_ld=no
13996 ;;
13997 esac
13998
13999 ld_shlibs=yes
14000
14001 # On some targets, GNU ld is compatible enough with the native linker
14002 # that we're better off using the native interface for both.
14003 lt_use_gnu_ld_interface=no
14004 if test yes = "$with_gnu_ld"; then
14005 case $host_os in
14006 aix*)
14007 # The AIX port of GNU ld has always aspired to compatibility
14008 # with the native linker. However, as the warning in the GNU ld
14009 # block says, versions before 2.19.5* couldn't really create working
14010 # shared libraries, regardless of the interface used.
14011 case `$LD -v 2>&1` in
14012 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14013 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14014 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14015 *)
14016 lt_use_gnu_ld_interface=yes
14017 ;;
14018 esac
14019 ;;
14020 *)
14021 lt_use_gnu_ld_interface=yes
14022 ;;
14023 esac
14024 fi
14025
14026 if test yes = "$lt_use_gnu_ld_interface"; then
14027 # If archive_cmds runs LD, not CC, wlarc should be empty
14028 wlarc='$wl'
14029
14030 # Set some defaults for GNU ld with shared library support. These
14031 # are reset later if shared libraries are not supported. Putting them
14032 # here allows them to be overridden if necessary.
14033 runpath_var=LD_RUN_PATH
14034 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14035 export_dynamic_flag_spec='$wl--export-dynamic'
14036 # ancient GNU ld didn't support --whole-archive et. al.
14037 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14038 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14039 else
14040 whole_archive_flag_spec=
14041 fi
14042 supports_anon_versioning=no
14043 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
14044 *GNU\ gold*) supports_anon_versioning=yes ;;
14045 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14046 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14047 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14048 *\ 2.11.*) ;; # other 2.11 versions
14049 *) supports_anon_versioning=yes ;;
14050 esac
14051
14052 # See if GNU ld supports shared libraries.
14053 case $host_os in
14054 aix[3-9]*)
14055 # On AIX/PPC, the GNU linker is very broken
14056 if test ia64 != "$host_cpu"; then
14057 ld_shlibs=no
14058 cat <<_LT_EOF 1>&2
14059
14060 *** Warning: the GNU linker, at least up to release 2.19, is reported
14061 *** to be unable to reliably create shared libraries on AIX.
14062 *** Therefore, libtool is disabling shared libraries support. If you
14063 *** really care for shared libraries, you may want to install binutils
14064 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14065 *** You will then need to restart the configuration process.
14066
14067 _LT_EOF
14068 fi
14069 ;;
14070
14071 amigaos*)
14072 case $host_cpu in
14073 powerpc)
14074 # see comment about AmigaOS4 .so support
14075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14076 archive_expsym_cmds=''
14077 ;;
14078 m68k)
14079 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)'
14080 hardcode_libdir_flag_spec='-L$libdir'
14081 hardcode_minus_L=yes
14082 ;;
14083 esac
14084 ;;
14085
14086 beos*)
14087 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14088 allow_undefined_flag=unsupported
14089 # Joseph Beckenbach <[email protected]> says some releases of gcc
14090 # support --undefined. This deserves some investigation. FIXME
14091 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14092 else
14093 ld_shlibs=no
14094 fi
14095 ;;
14096
14097 cygwin* | mingw* | pw32* | cegcc*)
14098 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14099 # as there is no search path for DLLs.
14100 hardcode_libdir_flag_spec='-L$libdir'
14101 export_dynamic_flag_spec='$wl--export-all-symbols'
14102 allow_undefined_flag=unsupported
14103 always_export_symbols=no
14104 enable_shared_with_static_runtimes=yes
14105 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14106 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14107
14108 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14110 # If the export-symbols file already is a .def file, use it as
14111 # is; otherwise, prepend EXPORTS...
14112 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14113 cp $export_symbols $output_objdir/$soname.def;
14114 else
14115 echo EXPORTS > $output_objdir/$soname.def;
14116 cat $export_symbols >> $output_objdir/$soname.def;
14117 fi~
14118 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14119 else
14120 ld_shlibs=no
14121 fi
14122 ;;
14123
14124 haiku*)
14125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14126 link_all_deplibs=yes
14127 ;;
14128
14129 os2*)
14130 hardcode_libdir_flag_spec='-L$libdir'
14131 hardcode_minus_L=yes
14132 allow_undefined_flag=unsupported
14133 shrext_cmds=.dll
14134 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14135 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14136 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14137 $ECHO EXPORTS >> $output_objdir/$libname.def~
14138 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14139 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14140 emximp -o $lib $output_objdir/$libname.def'
14141 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14142 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14143 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14144 $ECHO EXPORTS >> $output_objdir/$libname.def~
14145 prefix_cmds="$SED"~
14146 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14147 prefix_cmds="$prefix_cmds -e 1d";
14148 fi~
14149 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14150 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14151 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14152 emximp -o $lib $output_objdir/$libname.def'
14153 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14154 enable_shared_with_static_runtimes=yes
14155 ;;
14156
14157 interix[3-9]*)
14158 hardcode_direct=no
14159 hardcode_shlibpath_var=no
14160 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14161 export_dynamic_flag_spec='$wl-E'
14162 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14163 # Instead, shared libraries are loaded at an image base (0x10000000 by
14164 # default) and relocated if they conflict, which is a slow very memory
14165 # consuming and fragmenting process. To avoid this, we pick a random,
14166 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14167 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14168 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14169 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'
14170 ;;
14171
14172 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14173 tmp_diet=no
14174 if test linux-dietlibc = "$host_os"; then
14175 case $cc_basename in
14176 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14177 esac
14178 fi
14179 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14180 && test no = "$tmp_diet"
14181 then
14182 tmp_addflag=' $pic_flag'
14183 tmp_sharedflag='-shared'
14184 case $cc_basename,$host_cpu in
14185 pgcc*) # Portland Group C compiler
14186 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'
14187 tmp_addflag=' $pic_flag'
14188 ;;
14189 pgf77* | pgf90* | pgf95* | pgfortran*)
14190 # Portland Group f77 and f90 compilers
14191 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'
14192 tmp_addflag=' $pic_flag -Mnomain' ;;
14193 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14194 tmp_addflag=' -i_dynamic' ;;
14195 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14196 tmp_addflag=' -i_dynamic -nofor_main' ;;
14197 ifc* | ifort*) # Intel Fortran compiler
14198 tmp_addflag=' -nofor_main' ;;
14199 lf95*) # Lahey Fortran 8.1
14200 whole_archive_flag_spec=
14201 tmp_sharedflag='--shared' ;;
14202 nagfor*) # NAGFOR 5.3
14203 tmp_sharedflag='-Wl,-shared' ;;
14204 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14205 tmp_sharedflag='-qmkshrobj'
14206 tmp_addflag= ;;
14207 nvcc*) # Cuda Compiler Driver 2.2
14208 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'
14209 compiler_needs_object=yes
14210 ;;
14211 esac
14212 case `$CC -V 2>&1 | sed 5q` in
14213 *Sun\ C*) # Sun C 5.9
14214 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'
14215 compiler_needs_object=yes
14216 tmp_sharedflag='-G' ;;
14217 *Sun\ F*) # Sun Fortran 8.3
14218 tmp_sharedflag='-G' ;;
14219 esac
14220 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14221
14222 if test yes = "$supports_anon_versioning"; then
14223 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14224 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14225 echo "local: *; };" >> $output_objdir/$libname.ver~
14226 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14227 fi
14228
14229 case $cc_basename in
14230 tcc*)
14231 export_dynamic_flag_spec='-rdynamic'
14232 ;;
14233 xlf* | bgf* | bgxlf* | mpixlf*)
14234 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14235 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14237 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14238 if test yes = "$supports_anon_versioning"; then
14239 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14240 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14241 echo "local: *; };" >> $output_objdir/$libname.ver~
14242 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14243 fi
14244 ;;
14245 esac
14246 else
14247 ld_shlibs=no
14248 fi
14249 ;;
14250
14251 netbsd*)
14252 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14253 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14254 wlarc=
14255 else
14256 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14257 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14258 fi
14259 ;;
14260
14261 solaris*)
14262 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14263 ld_shlibs=no
14264 cat <<_LT_EOF 1>&2
14265
14266 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14267 *** create shared libraries on Solaris systems. Therefore, libtool
14268 *** is disabling shared libraries support. We urge you to upgrade GNU
14269 *** binutils to release 2.9.1 or newer. Another option is to modify
14270 *** your PATH or compiler configuration so that the native linker is
14271 *** used, and then restart.
14272
14273 _LT_EOF
14274 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14275 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14276 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14277 else
14278 ld_shlibs=no
14279 fi
14280 ;;
14281
14282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14283 case `$LD -v 2>&1` in
14284 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14285 ld_shlibs=no
14286 cat <<_LT_EOF 1>&2
14287
14288 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14289 *** reliably create shared libraries on SCO systems. Therefore, libtool
14290 *** is disabling shared libraries support. We urge you to upgrade GNU
14291 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14292 *** your PATH or compiler configuration so that the native linker is
14293 *** used, and then restart.
14294
14295 _LT_EOF
14296 ;;
14297 *)
14298 # For security reasons, it is highly recommended that you always
14299 # use absolute paths for naming shared libraries, and exclude the
14300 # DT_RUNPATH tag from executables and libraries. But doing so
14301 # requires that you compile everything twice, which is a pain.
14302 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14303 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14305 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14306 else
14307 ld_shlibs=no
14308 fi
14309 ;;
14310 esac
14311 ;;
14312
14313 sunos4*)
14314 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14315 wlarc=
14316 hardcode_direct=yes
14317 hardcode_shlibpath_var=no
14318 ;;
14319
14320 *)
14321 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14322 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14323 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14324 else
14325 ld_shlibs=no
14326 fi
14327 ;;
14328 esac
14329
14330 if test no = "$ld_shlibs"; then
14331 runpath_var=
14332 hardcode_libdir_flag_spec=
14333 export_dynamic_flag_spec=
14334 whole_archive_flag_spec=
14335 fi
14336 else
14337 # PORTME fill in a description of your system's linker (not GNU ld)
14338 case $host_os in
14339 aix3*)
14340 allow_undefined_flag=unsupported
14341 always_export_symbols=yes
14342 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'
14343 # Note: this linker hardcodes the directories in LIBPATH if there
14344 # are no directories specified by -L.
14345 hardcode_minus_L=yes
14346 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14347 # Neither direct hardcoding nor static linking is supported with a
14348 # broken collect2.
14349 hardcode_direct=unsupported
14350 fi
14351 ;;
14352
14353 aix[4-9]*)
14354 if test ia64 = "$host_cpu"; then
14355 # On IA64, the linker does run time linking by default, so we don't
14356 # have to do anything special.
14357 aix_use_runtimelinking=no
14358 exp_sym_flag='-Bexport'
14359 no_entry_flag=
14360 else
14361 # If we're using GNU nm, then we don't want the "-C" option.
14362 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14363 # Without the "-l" option, or with the "-B" option, AIX nm treats
14364 # weak defined symbols like other global defined symbols, whereas
14365 # GNU nm marks them as "W".
14366 # While the 'weak' keyword is ignored in the Export File, we need
14367 # it in the Import File for the 'aix-soname' feature, so we have
14368 # to replace the "-B" option with "-P" for AIX nm.
14369 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14370 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14371 else
14372 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14373 fi
14374 aix_use_runtimelinking=no
14375
14376 # Test if we are trying to use run time linking or normal
14377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14378 # have runtime linking enabled, and use it for executables.
14379 # For shared libraries, we enable/disable runtime linking
14380 # depending on the kind of the shared library created -
14381 # when "with_aix_soname,aix_use_runtimelinking" is:
14382 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14383 # "aix,yes" lib.so shared, rtl:yes, for executables
14384 # lib.a static archive
14385 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14386 # lib.a(lib.so.V) shared, rtl:no, for executables
14387 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14388 # lib.a(lib.so.V) shared, rtl:no
14389 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14390 # lib.a static archive
14391 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14392 for ld_flag in $LDFLAGS; do
14393 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14394 aix_use_runtimelinking=yes
14395 break
14396 fi
14397 done
14398 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14399 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14400 # so we don't have lib.a shared libs to link our executables.
14401 # We have to force runtime linking in this case.
14402 aix_use_runtimelinking=yes
14403 LDFLAGS="$LDFLAGS -Wl,-brtl"
14404 fi
14405 ;;
14406 esac
14407
14408 exp_sym_flag='-bexport'
14409 no_entry_flag='-bnoentry'
14410 fi
14411
14412 # When large executables or shared objects are built, AIX ld can
14413 # have problems creating the table of contents. If linking a library
14414 # or program results in "error TOC overflow" add -mminimal-toc to
14415 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14416 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14417
14418 archive_cmds=''
14419 hardcode_direct=yes
14420 hardcode_direct_absolute=yes
14421 hardcode_libdir_separator=':'
14422 link_all_deplibs=yes
14423 file_list_spec='$wl-f,'
14424 case $with_aix_soname,$aix_use_runtimelinking in
14425 aix,*) ;; # traditional, no import file
14426 svr4,* | *,yes) # use import file
14427 # The Import File defines what to hardcode.
14428 hardcode_direct=no
14429 hardcode_direct_absolute=no
14430 ;;
14431 esac
14432
14433 if test yes = "$GCC"; then
14434 case $host_os in aix4.[012]|aix4.[012].*)
14435 # We only want to do this on AIX 4.2 and lower, the check
14436 # below for broken collect2 doesn't work under 4.3+
14437 collect2name=`$CC -print-prog-name=collect2`
14438 if test -f "$collect2name" &&
14439 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14440 then
14441 # We have reworked collect2
14442 :
14443 else
14444 # We have old collect2
14445 hardcode_direct=unsupported
14446 # It fails to find uninstalled libraries when the uninstalled
14447 # path is not listed in the libpath. Setting hardcode_minus_L
14448 # to unsupported forces relinking
14449 hardcode_minus_L=yes
14450 hardcode_libdir_flag_spec='-L$libdir'
14451 hardcode_libdir_separator=
14452 fi
14453 ;;
14454 esac
14455 shared_flag='-shared'
14456 if test yes = "$aix_use_runtimelinking"; then
14457 shared_flag="$shared_flag "'$wl-G'
14458 fi
14459 # Need to ensure runtime linking is disabled for the traditional
14460 # shared library, or the linker may eventually find shared libraries
14461 # /with/ Import File - we do not want to mix them.
14462 shared_flag_aix='-shared'
14463 shared_flag_svr4='-shared $wl-G'
14464 else
14465 # not using gcc
14466 if test ia64 = "$host_cpu"; then
14467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14468 # chokes on -Wl,-G. The following line is correct:
14469 shared_flag='-G'
14470 else
14471 if test yes = "$aix_use_runtimelinking"; then
14472 shared_flag='$wl-G'
14473 else
14474 shared_flag='$wl-bM:SRE'
14475 fi
14476 shared_flag_aix='$wl-bM:SRE'
14477 shared_flag_svr4='$wl-G'
14478 fi
14479 fi
14480
14481 export_dynamic_flag_spec='$wl-bexpall'
14482 # It seems that -bexpall does not export symbols beginning with
14483 # underscore (_), so it is better to generate a list of symbols to export.
14484 always_export_symbols=yes
14485 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14486 # Warning - without using the other runtime loading flags (-brtl),
14487 # -berok will link without error, but may produce a broken library.
14488 allow_undefined_flag='-berok'
14489 # Determine the default libpath from the value encoded in an
14490 # empty executable.
14491 if test set = "${lt_cv_aix_libpath+set}"; then
14492 aix_libpath=$lt_cv_aix_libpath
14493 else
14494 if test ${lt_cv_aix_libpath_+y}
14495 then :
14496 printf %s "(cached) " >&6
14497 else case e in #(
14498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14500
14501 int
14502 main (void)
14503 {
14504
14505 ;
14506 return 0;
14507 }
14508 _ACEOF
14509 if ac_fn_c_try_link "$LINENO"
14510 then :
14511
14512 lt_aix_libpath_sed='
14513 /Import File Strings/,/^$/ {
14514 /^0/ {
14515 s/^0 *\([^ ]*\) *$/\1/
14516 p
14517 }
14518 }'
14519 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14520 # Check for a 64-bit object if we didn't find anything.
14521 if test -z "$lt_cv_aix_libpath_"; then
14522 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14523 fi
14524 fi
14525 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14526 conftest$ac_exeext conftest.$ac_ext
14527 if test -z "$lt_cv_aix_libpath_"; then
14528 lt_cv_aix_libpath_=/usr/lib:/lib
14529 fi
14530 ;;
14531 esac
14532 fi
14533
14534 aix_libpath=$lt_cv_aix_libpath_
14535 fi
14536
14537 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14538 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14539 else
14540 if test ia64 = "$host_cpu"; then
14541 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14542 allow_undefined_flag="-z nodefs"
14543 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"
14544 else
14545 # Determine the default libpath from the value encoded in an
14546 # empty executable.
14547 if test set = "${lt_cv_aix_libpath+set}"; then
14548 aix_libpath=$lt_cv_aix_libpath
14549 else
14550 if test ${lt_cv_aix_libpath_+y}
14551 then :
14552 printf %s "(cached) " >&6
14553 else case e in #(
14554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555 /* end confdefs.h. */
14556
14557 int
14558 main (void)
14559 {
14560
14561 ;
14562 return 0;
14563 }
14564 _ACEOF
14565 if ac_fn_c_try_link "$LINENO"
14566 then :
14567
14568 lt_aix_libpath_sed='
14569 /Import File Strings/,/^$/ {
14570 /^0/ {
14571 s/^0 *\([^ ]*\) *$/\1/
14572 p
14573 }
14574 }'
14575 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14576 # Check for a 64-bit object if we didn't find anything.
14577 if test -z "$lt_cv_aix_libpath_"; then
14578 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14579 fi
14580 fi
14581 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14582 conftest$ac_exeext conftest.$ac_ext
14583 if test -z "$lt_cv_aix_libpath_"; then
14584 lt_cv_aix_libpath_=/usr/lib:/lib
14585 fi
14586 ;;
14587 esac
14588 fi
14589
14590 aix_libpath=$lt_cv_aix_libpath_
14591 fi
14592
14593 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14594 # Warning - without using the other run time loading flags,
14595 # -berok will link without error, but may produce a broken library.
14596 no_undefined_flag=' $wl-bernotok'
14597 allow_undefined_flag=' $wl-berok'
14598 if test yes = "$with_gnu_ld"; then
14599 # We only use this code for GNU lds that support --whole-archive.
14600 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14601 else
14602 # Exported symbols can be pulled into shared objects from archives
14603 whole_archive_flag_spec='$convenience'
14604 fi
14605 archive_cmds_need_lc=yes
14606 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14607 # -brtl affects multiple linker settings, -berok does not and is overridden later
14608 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14609 if test svr4 != "$with_aix_soname"; then
14610 # This is similar to how AIX traditionally builds its shared libraries.
14611 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14612 fi
14613 if test aix != "$with_aix_soname"; then
14614 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14615 else
14616 # used by -dlpreopen to get the symbols
14617 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14618 fi
14619 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14620 fi
14621 fi
14622 ;;
14623
14624 amigaos*)
14625 case $host_cpu in
14626 powerpc)
14627 # see comment about AmigaOS4 .so support
14628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14629 archive_expsym_cmds=''
14630 ;;
14631 m68k)
14632 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)'
14633 hardcode_libdir_flag_spec='-L$libdir'
14634 hardcode_minus_L=yes
14635 ;;
14636 esac
14637 ;;
14638
14639 bsdi[45]*)
14640 export_dynamic_flag_spec=-rdynamic
14641 ;;
14642
14643 cygwin* | mingw* | pw32* | cegcc*)
14644 # When not using gcc, we currently assume that we are using
14645 # Microsoft Visual C++.
14646 # hardcode_libdir_flag_spec is actually meaningless, as there is
14647 # no search path for DLLs.
14648 case $cc_basename in
14649 cl*)
14650 # Native MSVC
14651 hardcode_libdir_flag_spec=' '
14652 allow_undefined_flag=unsupported
14653 always_export_symbols=yes
14654 file_list_spec='@'
14655 # Tell ltmain to make .lib files, not .a files.
14656 libext=lib
14657 # Tell ltmain to make .dll files, not .so files.
14658 shrext_cmds=.dll
14659 # FIXME: Setting linknames here is a bad hack.
14660 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14661 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14662 cp "$export_symbols" "$output_objdir/$soname.def";
14663 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14664 else
14665 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14666 fi~
14667 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14668 linknames='
14669 # The linker will not automatically build a static lib if we build a DLL.
14670 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14671 enable_shared_with_static_runtimes=yes
14672 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14673 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14674 # Don't use ranlib
14675 old_postinstall_cmds='chmod 644 $oldlib'
14676 postlink_cmds='lt_outputfile="@OUTPUT@"~
14677 lt_tool_outputfile="@TOOL_OUTPUT@"~
14678 case $lt_outputfile in
14679 *.exe|*.EXE) ;;
14680 *)
14681 lt_outputfile=$lt_outputfile.exe
14682 lt_tool_outputfile=$lt_tool_outputfile.exe
14683 ;;
14684 esac~
14685 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14686 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14687 $RM "$lt_outputfile.manifest";
14688 fi'
14689 ;;
14690 *)
14691 # Assume MSVC wrapper
14692 hardcode_libdir_flag_spec=' '
14693 allow_undefined_flag=unsupported
14694 # Tell ltmain to make .lib files, not .a files.
14695 libext=lib
14696 # Tell ltmain to make .dll files, not .so files.
14697 shrext_cmds=.dll
14698 # FIXME: Setting linknames here is a bad hack.
14699 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14700 # The linker will automatically build a .lib file if we build a DLL.
14701 old_archive_from_new_cmds='true'
14702 # FIXME: Should let the user specify the lib program.
14703 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14704 enable_shared_with_static_runtimes=yes
14705 ;;
14706 esac
14707 ;;
14708
14709 darwin* | rhapsody*)
14710
14711
14712 archive_cmds_need_lc=no
14713 hardcode_direct=no
14714 hardcode_automatic=yes
14715 hardcode_shlibpath_var=unsupported
14716 if test yes = "$lt_cv_ld_force_load"; then
14717 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\"`'
14718
14719 else
14720 whole_archive_flag_spec=''
14721 fi
14722 link_all_deplibs=yes
14723 allow_undefined_flag=$_lt_dar_allow_undefined
14724 case $cc_basename in
14725 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14726 *) _lt_dar_can_shared=$GCC ;;
14727 esac
14728 if test yes = "$_lt_dar_can_shared"; then
14729 output_verbose_link_cmd=func_echo_all
14730 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14731 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14732 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
14733 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"
14734
14735 else
14736 ld_shlibs=no
14737 fi
14738
14739 ;;
14740
14741 dgux*)
14742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14743 hardcode_libdir_flag_spec='-L$libdir'
14744 hardcode_shlibpath_var=no
14745 ;;
14746
14747 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14748 # support. Future versions do this automatically, but an explicit c++rt0.o
14749 # does not break anything, and helps significantly (at the cost of a little
14750 # extra space).
14751 freebsd2.2*)
14752 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14753 hardcode_libdir_flag_spec='-R$libdir'
14754 hardcode_direct=yes
14755 hardcode_shlibpath_var=no
14756 ;;
14757
14758 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14759 freebsd2.*)
14760 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14761 hardcode_direct=yes
14762 hardcode_minus_L=yes
14763 hardcode_shlibpath_var=no
14764 ;;
14765
14766 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14767 freebsd* | dragonfly*)
14768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14769 hardcode_libdir_flag_spec='-R$libdir'
14770 hardcode_direct=yes
14771 hardcode_shlibpath_var=no
14772 ;;
14773
14774 hpux9*)
14775 if test yes = "$GCC"; then
14776 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14777 else
14778 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14779 fi
14780 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14781 hardcode_libdir_separator=:
14782 hardcode_direct=yes
14783
14784 # hardcode_minus_L: Not really in the search PATH,
14785 # but as the default location of the library.
14786 hardcode_minus_L=yes
14787 export_dynamic_flag_spec='$wl-E'
14788 ;;
14789
14790 hpux10*)
14791 if test yes,no = "$GCC,$with_gnu_ld"; then
14792 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14793 else
14794 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14795 fi
14796 if test no = "$with_gnu_ld"; then
14797 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14798 hardcode_libdir_separator=:
14799 hardcode_direct=yes
14800 hardcode_direct_absolute=yes
14801 export_dynamic_flag_spec='$wl-E'
14802 # hardcode_minus_L: Not really in the search PATH,
14803 # but as the default location of the library.
14804 hardcode_minus_L=yes
14805 fi
14806 ;;
14807
14808 hpux11*)
14809 if test yes,no = "$GCC,$with_gnu_ld"; then
14810 case $host_cpu in
14811 hppa*64*)
14812 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14813 ;;
14814 ia64*)
14815 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14816 ;;
14817 *)
14818 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14819 ;;
14820 esac
14821 else
14822 case $host_cpu in
14823 hppa*64*)
14824 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14825 ;;
14826 ia64*)
14827 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14828 ;;
14829 *)
14830
14831 # Older versions of the 11.00 compiler do not understand -b yet
14832 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14834 printf %s "checking if $CC understands -b... " >&6; }
14835 if test ${lt_cv_prog_compiler__b+y}
14836 then :
14837 printf %s "(cached) " >&6
14838 else case e in #(
14839 e) lt_cv_prog_compiler__b=no
14840 save_LDFLAGS=$LDFLAGS
14841 LDFLAGS="$LDFLAGS -b"
14842 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14843 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14844 # The linker can only warn and ignore the option if not recognized
14845 # So say no if there are warnings
14846 if test -s conftest.err; then
14847 # Append any errors to the config.log.
14848 cat conftest.err 1>&5
14849 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14851 if diff conftest.exp conftest.er2 >/dev/null; then
14852 lt_cv_prog_compiler__b=yes
14853 fi
14854 else
14855 lt_cv_prog_compiler__b=yes
14856 fi
14857 fi
14858 $RM -r conftest*
14859 LDFLAGS=$save_LDFLAGS
14860 ;;
14861 esac
14862 fi
14863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14864 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14865
14866 if test yes = "$lt_cv_prog_compiler__b"; then
14867 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14868 else
14869 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14870 fi
14871
14872 ;;
14873 esac
14874 fi
14875 if test no = "$with_gnu_ld"; then
14876 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14877 hardcode_libdir_separator=:
14878
14879 case $host_cpu in
14880 hppa*64*|ia64*)
14881 hardcode_direct=no
14882 hardcode_shlibpath_var=no
14883 ;;
14884 *)
14885 hardcode_direct=yes
14886 hardcode_direct_absolute=yes
14887 export_dynamic_flag_spec='$wl-E'
14888
14889 # hardcode_minus_L: Not really in the search PATH,
14890 # but as the default location of the library.
14891 hardcode_minus_L=yes
14892 ;;
14893 esac
14894 fi
14895 ;;
14896
14897 irix5* | irix6* | nonstopux*)
14898 if test yes = "$GCC"; then
14899 archive_cmds='$CC -shared $pic_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'
14900 # Try to use the -exported_symbol ld option, if it does not
14901 # work, assume that -exports_file does not work either and
14902 # implicitly export all symbols.
14903 # This should be the same for all languages, so no per-tag cache variable.
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14905 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14906 if test ${lt_cv_irix_exported_symbol+y}
14907 then :
14908 printf %s "(cached) " >&6
14909 else case e in #(
14910 e) save_LDFLAGS=$LDFLAGS
14911 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h. */
14914 int foo (void) { return 0; }
14915 _ACEOF
14916 if ac_fn_c_try_link "$LINENO"
14917 then :
14918 lt_cv_irix_exported_symbol=yes
14919 else case e in #(
14920 e) lt_cv_irix_exported_symbol=no ;;
14921 esac
14922 fi
14923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14924 conftest$ac_exeext conftest.$ac_ext
14925 LDFLAGS=$save_LDFLAGS ;;
14926 esac
14927 fi
14928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14929 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14930 if test yes = "$lt_cv_irix_exported_symbol"; then
14931 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
14932 fi
14933 else
14934 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'
14935 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'
14936 fi
14937 archive_cmds_need_lc='no'
14938 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14939 hardcode_libdir_separator=:
14940 inherit_rpath=yes
14941 link_all_deplibs=yes
14942 ;;
14943
14944 linux*)
14945 case $cc_basename in
14946 tcc*)
14947 # Fabrice Bellard et al's Tiny C Compiler
14948 ld_shlibs=yes
14949 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14950 ;;
14951 esac
14952 ;;
14953
14954 netbsd*)
14955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14956 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14957 else
14958 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14959 fi
14960 hardcode_libdir_flag_spec='-R$libdir'
14961 hardcode_direct=yes
14962 hardcode_shlibpath_var=no
14963 ;;
14964
14965 newsos6)
14966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14967 hardcode_direct=yes
14968 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14969 hardcode_libdir_separator=:
14970 hardcode_shlibpath_var=no
14971 ;;
14972
14973 *nto* | *qnx*)
14974 ;;
14975
14976 openbsd* | bitrig*)
14977 if test -f /usr/libexec/ld.so; then
14978 hardcode_direct=yes
14979 hardcode_shlibpath_var=no
14980 hardcode_direct_absolute=yes
14981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14983 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14984 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14985 export_dynamic_flag_spec='$wl-E'
14986 else
14987 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14988 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14989 fi
14990 else
14991 ld_shlibs=no
14992 fi
14993 ;;
14994
14995 os2*)
14996 hardcode_libdir_flag_spec='-L$libdir'
14997 hardcode_minus_L=yes
14998 allow_undefined_flag=unsupported
14999 shrext_cmds=.dll
15000 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15001 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15002 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15003 $ECHO EXPORTS >> $output_objdir/$libname.def~
15004 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15005 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15006 emximp -o $lib $output_objdir/$libname.def'
15007 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15008 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15009 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15010 $ECHO EXPORTS >> $output_objdir/$libname.def~
15011 prefix_cmds="$SED"~
15012 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15013 prefix_cmds="$prefix_cmds -e 1d";
15014 fi~
15015 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15016 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15017 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15018 emximp -o $lib $output_objdir/$libname.def'
15019 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15020 enable_shared_with_static_runtimes=yes
15021 ;;
15022
15023 osf3*)
15024 if test yes = "$GCC"; then
15025 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15026 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'
15027 else
15028 allow_undefined_flag=' -expect_unresolved \*'
15029 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'
15030 fi
15031 archive_cmds_need_lc='no'
15032 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15033 hardcode_libdir_separator=:
15034 ;;
15035
15036 osf4* | osf5*) # as osf3* with the addition of -msym flag
15037 if test yes = "$GCC"; then
15038 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15039 archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
15040 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15041 else
15042 allow_undefined_flag=' -expect_unresolved \*'
15043 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'
15044 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~
15045 $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'
15046
15047 # Both c and cxx compiler support -rpath directly
15048 hardcode_libdir_flag_spec='-rpath $libdir'
15049 fi
15050 archive_cmds_need_lc='no'
15051 hardcode_libdir_separator=:
15052 ;;
15053
15054 solaris*)
15055 no_undefined_flag=' -z defs'
15056 if test yes = "$GCC"; then
15057 wlarc='$wl'
15058 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15059 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15060 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15061 else
15062 case `$CC -V 2>&1` in
15063 *"Compilers 5.0"*)
15064 wlarc=''
15065 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
15066 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15067 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15068 ;;
15069 *)
15070 wlarc='$wl'
15071 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15072 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15073 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15074 ;;
15075 esac
15076 fi
15077 hardcode_libdir_flag_spec='-R$libdir'
15078 hardcode_shlibpath_var=no
15079 case $host_os in
15080 solaris2.[0-5] | solaris2.[0-5].*) ;;
15081 *)
15082 # The compiler driver will combine and reorder linker options,
15083 # but understands '-z linker_flag'. GCC discards it without '$wl',
15084 # but is careful enough not to reorder.
15085 # Supported since Solaris 2.6 (maybe 2.5.1?)
15086 if test yes = "$GCC"; then
15087 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15088 else
15089 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15090 fi
15091 ;;
15092 esac
15093 link_all_deplibs=yes
15094 ;;
15095
15096 sunos4*)
15097 if test sequent = "$host_vendor"; then
15098 # Use $CC to link under sequent, because it throws in some extra .o
15099 # files that make .init and .fini sections work.
15100 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15101 else
15102 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15103 fi
15104 hardcode_libdir_flag_spec='-L$libdir'
15105 hardcode_direct=yes
15106 hardcode_minus_L=yes
15107 hardcode_shlibpath_var=no
15108 ;;
15109
15110 sysv4)
15111 case $host_vendor in
15112 sni)
15113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15114 hardcode_direct=yes # is this really true???
15115 ;;
15116 siemens)
15117 ## LD is ld it makes a PLAMLIB
15118 ## CC just makes a GrossModule.
15119 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15120 reload_cmds='$CC -r -o $output$reload_objs'
15121 hardcode_direct=no
15122 ;;
15123 motorola)
15124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15125 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15126 ;;
15127 esac
15128 runpath_var='LD_RUN_PATH'
15129 hardcode_shlibpath_var=no
15130 ;;
15131
15132 sysv4.3*)
15133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15134 hardcode_shlibpath_var=no
15135 export_dynamic_flag_spec='-Bexport'
15136 ;;
15137
15138 sysv4*MP*)
15139 if test -d /usr/nec; then
15140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15141 hardcode_shlibpath_var=no
15142 runpath_var=LD_RUN_PATH
15143 hardcode_runpath_var=yes
15144 ld_shlibs=yes
15145 fi
15146 ;;
15147
15148 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15149 no_undefined_flag='$wl-z,text'
15150 archive_cmds_need_lc=no
15151 hardcode_shlibpath_var=no
15152 runpath_var='LD_RUN_PATH'
15153
15154 if test yes = "$GCC"; then
15155 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15156 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15157 else
15158 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15159 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15160 fi
15161 ;;
15162
15163 sysv5* | sco3.2v5* | sco5v6*)
15164 # Note: We CANNOT use -z defs as we might desire, because we do not
15165 # link with -lc, and that would cause any symbols used from libc to
15166 # always be unresolved, which means just about no library would
15167 # ever link correctly. If we're not using GNU ld we use -z text
15168 # though, which does catch some bad symbols but isn't as heavy-handed
15169 # as -z defs.
15170 no_undefined_flag='$wl-z,text'
15171 allow_undefined_flag='$wl-z,nodefs'
15172 archive_cmds_need_lc=no
15173 hardcode_shlibpath_var=no
15174 hardcode_libdir_flag_spec='$wl-R,$libdir'
15175 hardcode_libdir_separator=':'
15176 link_all_deplibs=yes
15177 export_dynamic_flag_spec='$wl-Bexport'
15178 runpath_var='LD_RUN_PATH'
15179
15180 if test yes = "$GCC"; then
15181 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15182 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15183 else
15184 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15185 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15186 fi
15187 ;;
15188
15189 uts4*)
15190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15191 hardcode_libdir_flag_spec='-L$libdir'
15192 hardcode_shlibpath_var=no
15193 ;;
15194
15195 *)
15196 ld_shlibs=no
15197 ;;
15198 esac
15199
15200 if test sni = "$host_vendor"; then
15201 case $host in
15202 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15203 export_dynamic_flag_spec='$wl-Blargedynsym'
15204 ;;
15205 esac
15206 fi
15207 fi
15208
15209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15210 printf "%s\n" "$ld_shlibs" >&6; }
15211 test no = "$ld_shlibs" && can_build_shared=no
15212
15213 with_gnu_ld=$with_gnu_ld
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229 #
15230 # Do we need to explicitly link libc?
15231 #
15232 case "x$archive_cmds_need_lc" in
15233 x|xyes)
15234 # Assume -lc should be added
15235 archive_cmds_need_lc=yes
15236
15237 if test yes,yes = "$GCC,$enable_shared"; then
15238 case $archive_cmds in
15239 *'~'*)
15240 # FIXME: we may have to deal with multi-command sequences.
15241 ;;
15242 '$CC '*)
15243 # Test whether the compiler implicitly links with -lc since on some
15244 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15245 # to ld, don't add -lc before -lgcc.
15246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15247 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15248 if test ${lt_cv_archive_cmds_need_lc+y}
15249 then :
15250 printf %s "(cached) " >&6
15251 else case e in #(
15252 e) $RM conftest*
15253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15254
15255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15256 (eval $ac_compile) 2>&5
15257 ac_status=$?
15258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15259 test $ac_status = 0; } 2>conftest.err; then
15260 soname=conftest
15261 lib=conftest
15262 libobjs=conftest.$ac_objext
15263 deplibs=
15264 wl=$lt_prog_compiler_wl
15265 pic_flag=$lt_prog_compiler_pic
15266 compiler_flags=-v
15267 linker_flags=-v
15268 verstring=
15269 output_objdir=.
15270 libname=conftest
15271 lt_save_allow_undefined_flag=$allow_undefined_flag
15272 allow_undefined_flag=
15273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15274 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15275 ac_status=$?
15276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15277 test $ac_status = 0; }
15278 then
15279 lt_cv_archive_cmds_need_lc=no
15280 else
15281 lt_cv_archive_cmds_need_lc=yes
15282 fi
15283 allow_undefined_flag=$lt_save_allow_undefined_flag
15284 else
15285 cat conftest.err 1>&5
15286 fi
15287 $RM conftest*
15288 ;;
15289 esac
15290 fi
15291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15292 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15293 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15294 ;;
15295 esac
15296 fi
15297 ;;
15298 esac
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15452 printf %s "checking dynamic linker characteristics... " >&6; }
15453
15454 if test yes = "$GCC"; then
15455 case $host_os in
15456 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15457 *) lt_awk_arg='/^libraries:/' ;;
15458 esac
15459 case $host_os in
15460 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15461 *) lt_sed_strip_eq='s|=/|/|g' ;;
15462 esac
15463 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15464 case $lt_search_path_spec in
15465 *\;*)
15466 # if the path contains ";" then we assume it to be the separator
15467 # otherwise default to the standard path separator (i.e. ":") - it is
15468 # assumed that no part of a normal pathname contains ";" but that should
15469 # okay in the real world where ";" in dirpaths is itself problematic.
15470 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15471 ;;
15472 *)
15473 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15474 ;;
15475 esac
15476 # Ok, now we have the path, separated by spaces, we can step through it
15477 # and add multilib dir if necessary...
15478 lt_tmp_lt_search_path_spec=
15479 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15480 # ...but if some path component already ends with the multilib dir we assume
15481 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15482 case "$lt_multi_os_dir; $lt_search_path_spec " in
15483 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15484 lt_multi_os_dir=
15485 ;;
15486 esac
15487 for lt_sys_path in $lt_search_path_spec; do
15488 if test -d "$lt_sys_path$lt_multi_os_dir"; then
15489 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15490 elif test -n "$lt_multi_os_dir"; then
15491 test -d "$lt_sys_path" && \
15492 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15493 fi
15494 done
15495 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15496 BEGIN {RS = " "; FS = "/|\n";} {
15497 lt_foo = "";
15498 lt_count = 0;
15499 for (lt_i = NF; lt_i > 0; lt_i--) {
15500 if ($lt_i != "" && $lt_i != ".") {
15501 if ($lt_i == "..") {
15502 lt_count++;
15503 } else {
15504 if (lt_count == 0) {
15505 lt_foo = "/" $lt_i lt_foo;
15506 } else {
15507 lt_count--;
15508 }
15509 }
15510 }
15511 }
15512 if (lt_foo != "") { lt_freq[lt_foo]++; }
15513 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15514 }'`
15515 # AWK program above erroneously prepends '/' to C:/dos/paths
15516 # for these hosts.
15517 case $host_os in
15518 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15519 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15520 esac
15521 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15522 else
15523 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15524 fi
15525 library_names_spec=
15526 libname_spec='lib$name'
15527 soname_spec=
15528 shrext_cmds=.so
15529 postinstall_cmds=
15530 postuninstall_cmds=
15531 finish_cmds=
15532 finish_eval=
15533 shlibpath_var=
15534 shlibpath_overrides_runpath=unknown
15535 version_type=none
15536 dynamic_linker="$host_os ld.so"
15537 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15538 need_lib_prefix=unknown
15539 hardcode_into_libs=no
15540
15541 # when you set need_version to no, make sure it does not cause -set_version
15542 # flags to be left without arguments
15543 need_version=unknown
15544
15545
15546
15547 case $host_os in
15548 aix3*)
15549 version_type=linux # correct to gnu/linux during the next big refactor
15550 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15551 shlibpath_var=LIBPATH
15552
15553 # AIX 3 has no versioning support, so we append a major version to the name.
15554 soname_spec='$libname$release$shared_ext$major'
15555 ;;
15556
15557 aix[4-9]*)
15558 version_type=linux # correct to gnu/linux during the next big refactor
15559 need_lib_prefix=no
15560 need_version=no
15561 hardcode_into_libs=yes
15562 if test ia64 = "$host_cpu"; then
15563 # AIX 5 supports IA64
15564 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15565 shlibpath_var=LD_LIBRARY_PATH
15566 else
15567 # With GCC up to 2.95.x, collect2 would create an import file
15568 # for dependence libraries. The import file would start with
15569 # the line '#! .'. This would cause the generated library to
15570 # depend on '.', always an invalid library. This was fixed in
15571 # development snapshots of GCC prior to 3.0.
15572 case $host_os in
15573 aix4 | aix4.[01] | aix4.[01].*)
15574 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15575 echo ' yes '
15576 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15577 :
15578 else
15579 can_build_shared=no
15580 fi
15581 ;;
15582 esac
15583 # Using Import Files as archive members, it is possible to support
15584 # filename-based versioning of shared library archives on AIX. While
15585 # this would work for both with and without runtime linking, it will
15586 # prevent static linking of such archives. So we do filename-based
15587 # shared library versioning with .so extension only, which is used
15588 # when both runtime linking and shared linking is enabled.
15589 # Unfortunately, runtime linking may impact performance, so we do
15590 # not want this to be the default eventually. Also, we use the
15591 # versioned .so libs for executables only if there is the -brtl
15592 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15593 # To allow for filename-based versioning support, we need to create
15594 # libNAME.so.V as an archive file, containing:
15595 # *) an Import File, referring to the versioned filename of the
15596 # archive as well as the shared archive member, telling the
15597 # bitwidth (32 or 64) of that shared object, and providing the
15598 # list of exported symbols of that shared object, eventually
15599 # decorated with the 'weak' keyword
15600 # *) the shared object with the F_LOADONLY flag set, to really avoid
15601 # it being seen by the linker.
15602 # At run time we better use the real file rather than another symlink,
15603 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15604
15605 case $with_aix_soname,$aix_use_runtimelinking in
15606 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15607 # soname into executable. Probably we can add versioning support to
15608 # collect2, so additional links can be useful in future.
15609 aix,yes) # traditional libtool
15610 dynamic_linker='AIX unversionable lib.so'
15611 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15612 # instead of lib<name>.a to let people know that these are not
15613 # typical AIX shared libraries.
15614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15615 ;;
15616 aix,no) # traditional AIX only
15617 dynamic_linker='AIX lib.a(lib.so.V)'
15618 # We preserve .a as extension for shared libraries through AIX4.2
15619 # and later when we are not doing run time linking.
15620 library_names_spec='$libname$release.a $libname.a'
15621 soname_spec='$libname$release$shared_ext$major'
15622 ;;
15623 svr4,*) # full svr4 only
15624 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15625 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15626 # We do not specify a path in Import Files, so LIBPATH fires.
15627 shlibpath_overrides_runpath=yes
15628 ;;
15629 *,yes) # both, prefer svr4
15630 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15631 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15632 # unpreferred sharedlib libNAME.a needs extra handling
15633 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15634 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15635 # We do not specify a path in Import Files, so LIBPATH fires.
15636 shlibpath_overrides_runpath=yes
15637 ;;
15638 *,no) # both, prefer aix
15639 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15640 library_names_spec='$libname$release.a $libname.a'
15641 soname_spec='$libname$release$shared_ext$major'
15642 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15643 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15644 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15645 ;;
15646 esac
15647 shlibpath_var=LIBPATH
15648 fi
15649 ;;
15650
15651 amigaos*)
15652 case $host_cpu in
15653 powerpc)
15654 # Since July 2007 AmigaOS4 officially supports .so libraries.
15655 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15657 ;;
15658 m68k)
15659 library_names_spec='$libname.ixlibrary $libname.a'
15660 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15661 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15662 ;;
15663 esac
15664 ;;
15665
15666 beos*)
15667 library_names_spec='$libname$shared_ext'
15668 dynamic_linker="$host_os ld.so"
15669 shlibpath_var=LIBRARY_PATH
15670 ;;
15671
15672 bsdi[45]*)
15673 version_type=linux # correct to gnu/linux during the next big refactor
15674 need_version=no
15675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15676 soname_spec='$libname$release$shared_ext$major'
15677 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15678 shlibpath_var=LD_LIBRARY_PATH
15679 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15680 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15681 # the default ld.so.conf also contains /usr/contrib/lib and
15682 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15683 # libtool to hard-code these into programs
15684 ;;
15685
15686 cygwin* | mingw* | pw32* | cegcc*)
15687 version_type=windows
15688 shrext_cmds=.dll
15689 need_version=no
15690 need_lib_prefix=no
15691
15692 case $GCC,$cc_basename in
15693 yes,*)
15694 # gcc
15695 library_names_spec='$libname.dll.a'
15696 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15697 postinstall_cmds='base_file=`basename \$file`~
15698 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15699 dldir=$destdir/`dirname \$dlpath`~
15700 test -d \$dldir || mkdir -p \$dldir~
15701 $install_prog $dir/$dlname \$dldir/$dlname~
15702 chmod a+x \$dldir/$dlname~
15703 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15704 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15705 fi'
15706 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15707 dlpath=$dir/\$dldll~
15708 $RM \$dlpath'
15709 shlibpath_overrides_runpath=yes
15710
15711 case $host_os in
15712 cygwin*)
15713 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15714 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15715
15716 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15717 ;;
15718 mingw* | cegcc*)
15719 # MinGW DLLs use traditional 'lib' prefix
15720 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15721 ;;
15722 pw32*)
15723 # pw32 DLLs use 'pw' prefix rather than 'lib'
15724 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15725 ;;
15726 esac
15727 dynamic_linker='Win32 ld.exe'
15728 ;;
15729
15730 *,cl*)
15731 # Native MSVC
15732 libname_spec='$name'
15733 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15734 library_names_spec='$libname.dll.lib'
15735
15736 case $build_os in
15737 mingw*)
15738 sys_lib_search_path_spec=
15739 lt_save_ifs=$IFS
15740 IFS=';'
15741 for lt_path in $LIB
15742 do
15743 IFS=$lt_save_ifs
15744 # Let DOS variable expansion print the short 8.3 style file name.
15745 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15746 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15747 done
15748 IFS=$lt_save_ifs
15749 # Convert to MSYS style.
15750 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15751 ;;
15752 cygwin*)
15753 # Convert to unix form, then to dos form, then back to unix form
15754 # but this time dos style (no spaces!) so that the unix form looks
15755 # like /cygdrive/c/PROGRA~1:/cygdr...
15756 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15757 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15758 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15759 ;;
15760 *)
15761 sys_lib_search_path_spec=$LIB
15762 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15763 # It is most probably a Windows format PATH.
15764 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15765 else
15766 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15767 fi
15768 # FIXME: find the short name or the path components, as spaces are
15769 # common. (e.g. "Program Files" -> "PROGRA~1")
15770 ;;
15771 esac
15772
15773 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15774 postinstall_cmds='base_file=`basename \$file`~
15775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15776 dldir=$destdir/`dirname \$dlpath`~
15777 test -d \$dldir || mkdir -p \$dldir~
15778 $install_prog $dir/$dlname \$dldir/$dlname'
15779 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15780 dlpath=$dir/\$dldll~
15781 $RM \$dlpath'
15782 shlibpath_overrides_runpath=yes
15783 dynamic_linker='Win32 link.exe'
15784 ;;
15785
15786 *)
15787 # Assume MSVC wrapper
15788 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15789 dynamic_linker='Win32 ld.exe'
15790 ;;
15791 esac
15792 # FIXME: first we should search . and the directory the executable is in
15793 shlibpath_var=PATH
15794 ;;
15795
15796 darwin* | rhapsody*)
15797 dynamic_linker="$host_os dyld"
15798 version_type=darwin
15799 need_lib_prefix=no
15800 need_version=no
15801 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15802 soname_spec='$libname$release$major$shared_ext'
15803 shlibpath_overrides_runpath=yes
15804 shlibpath_var=DYLD_LIBRARY_PATH
15805 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15806
15807 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15808 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15809 ;;
15810
15811 dgux*)
15812 version_type=linux # correct to gnu/linux during the next big refactor
15813 need_lib_prefix=no
15814 need_version=no
15815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15816 soname_spec='$libname$release$shared_ext$major'
15817 shlibpath_var=LD_LIBRARY_PATH
15818 ;;
15819
15820 freebsd* | dragonfly*)
15821 # DragonFly does not have aout. When/if they implement a new
15822 # versioning mechanism, adjust this.
15823 if test -x /usr/bin/objformat; then
15824 objformat=`/usr/bin/objformat`
15825 else
15826 case $host_os in
15827 freebsd[23].*) objformat=aout ;;
15828 *) objformat=elf ;;
15829 esac
15830 fi
15831 version_type=freebsd-$objformat
15832 case $version_type in
15833 freebsd-elf*)
15834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15835 soname_spec='$libname$release$shared_ext$major'
15836 need_version=no
15837 need_lib_prefix=no
15838 ;;
15839 freebsd-*)
15840 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15841 need_version=yes
15842 ;;
15843 esac
15844 shlibpath_var=LD_LIBRARY_PATH
15845 case $host_os in
15846 freebsd2.*)
15847 shlibpath_overrides_runpath=yes
15848 ;;
15849 freebsd3.[01]* | freebsdelf3.[01]*)
15850 shlibpath_overrides_runpath=yes
15851 hardcode_into_libs=yes
15852 ;;
15853 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15854 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15855 shlibpath_overrides_runpath=no
15856 hardcode_into_libs=yes
15857 ;;
15858 *) # from 4.6 on, and DragonFly
15859 shlibpath_overrides_runpath=yes
15860 hardcode_into_libs=yes
15861 ;;
15862 esac
15863 ;;
15864
15865 haiku*)
15866 version_type=linux # correct to gnu/linux during the next big refactor
15867 need_lib_prefix=no
15868 need_version=no
15869 dynamic_linker="$host_os runtime_loader"
15870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15871 soname_spec='$libname$release$shared_ext$major'
15872 shlibpath_var=LIBRARY_PATH
15873 shlibpath_overrides_runpath=no
15874 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15875 hardcode_into_libs=yes
15876 ;;
15877
15878 hpux9* | hpux10* | hpux11*)
15879 # Give a soname corresponding to the major version so that dld.sl refuses to
15880 # link against other versions.
15881 version_type=sunos
15882 need_lib_prefix=no
15883 need_version=no
15884 case $host_cpu in
15885 ia64*)
15886 shrext_cmds='.so'
15887 hardcode_into_libs=yes
15888 dynamic_linker="$host_os dld.so"
15889 shlibpath_var=LD_LIBRARY_PATH
15890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15892 soname_spec='$libname$release$shared_ext$major'
15893 if test 32 = "$HPUX_IA64_MODE"; then
15894 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15895 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15896 else
15897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15898 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15899 fi
15900 ;;
15901 hppa*64*)
15902 shrext_cmds='.sl'
15903 hardcode_into_libs=yes
15904 dynamic_linker="$host_os dld.sl"
15905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15908 soname_spec='$libname$release$shared_ext$major'
15909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15911 ;;
15912 *)
15913 shrext_cmds='.sl'
15914 dynamic_linker="$host_os dld.sl"
15915 shlibpath_var=SHLIB_PATH
15916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15918 soname_spec='$libname$release$shared_ext$major'
15919 ;;
15920 esac
15921 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15922 postinstall_cmds='chmod 555 $lib'
15923 # or fails outright, so override atomically:
15924 install_override_mode=555
15925 ;;
15926
15927 interix[3-9]*)
15928 version_type=linux # correct to gnu/linux during the next big refactor
15929 need_lib_prefix=no
15930 need_version=no
15931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15932 soname_spec='$libname$release$shared_ext$major'
15933 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15934 shlibpath_var=LD_LIBRARY_PATH
15935 shlibpath_overrides_runpath=no
15936 hardcode_into_libs=yes
15937 ;;
15938
15939 irix5* | irix6* | nonstopux*)
15940 case $host_os in
15941 nonstopux*) version_type=nonstopux ;;
15942 *)
15943 if test yes = "$lt_cv_prog_gnu_ld"; then
15944 version_type=linux # correct to gnu/linux during the next big refactor
15945 else
15946 version_type=irix
15947 fi ;;
15948 esac
15949 need_lib_prefix=no
15950 need_version=no
15951 soname_spec='$libname$release$shared_ext$major'
15952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15953 case $host_os in
15954 irix5* | nonstopux*)
15955 libsuff= shlibsuff=
15956 ;;
15957 *)
15958 case $LD in # libtool.m4 will add one of these switches to LD
15959 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15960 libsuff= shlibsuff= libmagic=32-bit;;
15961 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15962 libsuff=32 shlibsuff=N32 libmagic=N32;;
15963 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15964 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15965 *) libsuff= shlibsuff= libmagic=never-match;;
15966 esac
15967 ;;
15968 esac
15969 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15970 shlibpath_overrides_runpath=no
15971 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15972 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15973 hardcode_into_libs=yes
15974 ;;
15975
15976 # No shared lib support for Linux oldld, aout, or coff.
15977 linux*oldld* | linux*aout* | linux*coff*)
15978 dynamic_linker=no
15979 ;;
15980
15981 linux*android*)
15982 version_type=none # Android doesn't support versioned libraries.
15983 need_lib_prefix=no
15984 need_version=no
15985 library_names_spec='$libname$release$shared_ext'
15986 soname_spec='$libname$release$shared_ext'
15987 finish_cmds=
15988 shlibpath_var=LD_LIBRARY_PATH
15989 shlibpath_overrides_runpath=yes
15990
15991 # This implies no fast_install, which is unacceptable.
15992 # Some rework will be needed to allow for fast_install
15993 # before this can be enabled.
15994 hardcode_into_libs=yes
15995
15996 dynamic_linker='Android linker'
15997 # Don't embed -rpath directories since the linker doesn't support them.
15998 hardcode_libdir_flag_spec='-L$libdir'
15999 ;;
16000
16001 # This must be glibc/ELF.
16002 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16003 version_type=linux # correct to gnu/linux during the next big refactor
16004 need_lib_prefix=no
16005 need_version=no
16006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16007 soname_spec='$libname$release$shared_ext$major'
16008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16009 shlibpath_var=LD_LIBRARY_PATH
16010 shlibpath_overrides_runpath=no
16011
16012 # Some binutils ld are patched to set DT_RUNPATH
16013 if test ${lt_cv_shlibpath_overrides_runpath+y}
16014 then :
16015 printf %s "(cached) " >&6
16016 else case e in #(
16017 e) lt_cv_shlibpath_overrides_runpath=no
16018 save_LDFLAGS=$LDFLAGS
16019 save_libdir=$libdir
16020 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16021 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16024
16025 int
16026 main (void)
16027 {
16028
16029 ;
16030 return 0;
16031 }
16032 _ACEOF
16033 if ac_fn_c_try_link "$LINENO"
16034 then :
16035 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16036 then :
16037 lt_cv_shlibpath_overrides_runpath=yes
16038 fi
16039 fi
16040 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16041 conftest$ac_exeext conftest.$ac_ext
16042 LDFLAGS=$save_LDFLAGS
16043 libdir=$save_libdir
16044 ;;
16045 esac
16046 fi
16047
16048 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16049
16050 # This implies no fast_install, which is unacceptable.
16051 # Some rework will be needed to allow for fast_install
16052 # before this can be enabled.
16053 hardcode_into_libs=yes
16054
16055 # Ideally, we could use ldconfig to report *all* directores which are
16056 # searched for libraries, however this is still not possible. Aside from not
16057 # being certain /sbin/ldconfig is available, command
16058 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16059 # even though it is searched at run-time. Try to do the best guess by
16060 # appending ld.so.conf contents (and includes) to the search path.
16061 if test -f /etc/ld.so.conf; then
16062 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' ' '`
16063 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16064 fi
16065
16066 # We used to test for /lib/ld.so.1 and disable shared libraries on
16067 # powerpc, because MkLinux only supported shared libraries with the
16068 # GNU dynamic linker. Since this was broken with cross compilers,
16069 # most powerpc-linux boxes support dynamic linking these days and
16070 # people can always --disable-shared, the test was removed, and we
16071 # assume the GNU/Linux dynamic linker is in use.
16072 dynamic_linker='GNU/Linux ld.so'
16073 ;;
16074
16075 netbsd*)
16076 version_type=sunos
16077 need_lib_prefix=no
16078 need_version=no
16079 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16080 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16082 dynamic_linker='NetBSD (a.out) ld.so'
16083 else
16084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16085 soname_spec='$libname$release$shared_ext$major'
16086 dynamic_linker='NetBSD ld.elf_so'
16087 fi
16088 shlibpath_var=LD_LIBRARY_PATH
16089 shlibpath_overrides_runpath=yes
16090 hardcode_into_libs=yes
16091 ;;
16092
16093 newsos6)
16094 version_type=linux # correct to gnu/linux during the next big refactor
16095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16096 shlibpath_var=LD_LIBRARY_PATH
16097 shlibpath_overrides_runpath=yes
16098 ;;
16099
16100 *nto* | *qnx*)
16101 version_type=qnx
16102 need_lib_prefix=no
16103 need_version=no
16104 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16105 soname_spec='$libname$release$shared_ext$major'
16106 shlibpath_var=LD_LIBRARY_PATH
16107 shlibpath_overrides_runpath=no
16108 hardcode_into_libs=yes
16109 dynamic_linker='ldqnx.so'
16110 ;;
16111
16112 openbsd* | bitrig*)
16113 version_type=sunos
16114 sys_lib_dlsearch_path_spec=/usr/lib
16115 need_lib_prefix=no
16116 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16117 need_version=no
16118 else
16119 need_version=yes
16120 fi
16121 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16123 shlibpath_var=LD_LIBRARY_PATH
16124 shlibpath_overrides_runpath=yes
16125 ;;
16126
16127 os2*)
16128 libname_spec='$name'
16129 version_type=windows
16130 shrext_cmds=.dll
16131 need_version=no
16132 need_lib_prefix=no
16133 # OS/2 can only load a DLL with a base name of 8 characters or less.
16134 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16135 v=$($ECHO $release$versuffix | tr -d .-);
16136 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16137 $ECHO $n$v`$shared_ext'
16138 library_names_spec='${libname}_dll.$libext'
16139 dynamic_linker='OS/2 ld.exe'
16140 shlibpath_var=BEGINLIBPATH
16141 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16143 postinstall_cmds='base_file=`basename \$file`~
16144 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16145 dldir=$destdir/`dirname \$dlpath`~
16146 test -d \$dldir || mkdir -p \$dldir~
16147 $install_prog $dir/$dlname \$dldir/$dlname~
16148 chmod a+x \$dldir/$dlname~
16149 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16150 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16151 fi'
16152 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16153 dlpath=$dir/\$dldll~
16154 $RM \$dlpath'
16155 ;;
16156
16157 osf3* | osf4* | osf5*)
16158 version_type=osf
16159 need_lib_prefix=no
16160 need_version=no
16161 soname_spec='$libname$release$shared_ext$major'
16162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16163 shlibpath_var=LD_LIBRARY_PATH
16164 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16165 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16166 ;;
16167
16168 rdos*)
16169 dynamic_linker=no
16170 ;;
16171
16172 solaris*)
16173 version_type=linux # correct to gnu/linux during the next big refactor
16174 need_lib_prefix=no
16175 need_version=no
16176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16177 soname_spec='$libname$release$shared_ext$major'
16178 shlibpath_var=LD_LIBRARY_PATH
16179 shlibpath_overrides_runpath=yes
16180 hardcode_into_libs=yes
16181 # ldd complains unless libraries are executable
16182 postinstall_cmds='chmod +x $lib'
16183 ;;
16184
16185 sunos4*)
16186 version_type=sunos
16187 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16188 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16189 shlibpath_var=LD_LIBRARY_PATH
16190 shlibpath_overrides_runpath=yes
16191 if test yes = "$with_gnu_ld"; then
16192 need_lib_prefix=no
16193 fi
16194 need_version=yes
16195 ;;
16196
16197 sysv4 | sysv4.3*)
16198 version_type=linux # correct to gnu/linux during the next big refactor
16199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16200 soname_spec='$libname$release$shared_ext$major'
16201 shlibpath_var=LD_LIBRARY_PATH
16202 case $host_vendor in
16203 sni)
16204 shlibpath_overrides_runpath=no
16205 need_lib_prefix=no
16206 runpath_var=LD_RUN_PATH
16207 ;;
16208 siemens)
16209 need_lib_prefix=no
16210 ;;
16211 motorola)
16212 need_lib_prefix=no
16213 need_version=no
16214 shlibpath_overrides_runpath=no
16215 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16216 ;;
16217 esac
16218 ;;
16219
16220 sysv4*MP*)
16221 if test -d /usr/nec; then
16222 version_type=linux # correct to gnu/linux during the next big refactor
16223 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16224 soname_spec='$libname$shared_ext.$major'
16225 shlibpath_var=LD_LIBRARY_PATH
16226 fi
16227 ;;
16228
16229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16230 version_type=sco
16231 need_lib_prefix=no
16232 need_version=no
16233 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16234 soname_spec='$libname$release$shared_ext$major'
16235 shlibpath_var=LD_LIBRARY_PATH
16236 shlibpath_overrides_runpath=yes
16237 hardcode_into_libs=yes
16238 if test yes = "$with_gnu_ld"; then
16239 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16240 else
16241 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16242 case $host_os in
16243 sco3.2v5*)
16244 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16245 ;;
16246 esac
16247 fi
16248 sys_lib_dlsearch_path_spec='/usr/lib'
16249 ;;
16250
16251 tpf*)
16252 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16253 version_type=linux # correct to gnu/linux during the next big refactor
16254 need_lib_prefix=no
16255 need_version=no
16256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16257 shlibpath_var=LD_LIBRARY_PATH
16258 shlibpath_overrides_runpath=no
16259 hardcode_into_libs=yes
16260 ;;
16261
16262 uts4*)
16263 version_type=linux # correct to gnu/linux during the next big refactor
16264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16265 soname_spec='$libname$release$shared_ext$major'
16266 shlibpath_var=LD_LIBRARY_PATH
16267 ;;
16268
16269 *)
16270 dynamic_linker=no
16271 ;;
16272 esac
16273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16274 printf "%s\n" "$dynamic_linker" >&6; }
16275 test no = "$dynamic_linker" && can_build_shared=no
16276
16277 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16278 if test yes = "$GCC"; then
16279 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16280 fi
16281
16282 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16283 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16284 fi
16285
16286 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16287 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16288 fi
16289
16290 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16291 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16292
16293 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16294 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16295
16296 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16297 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16396 printf %s "checking how to hardcode library paths into programs... " >&6; }
16397 hardcode_action=
16398 if test -n "$hardcode_libdir_flag_spec" ||
16399 test -n "$runpath_var" ||
16400 test yes = "$hardcode_automatic"; then
16401
16402 # We can hardcode non-existent directories.
16403 if test no != "$hardcode_direct" &&
16404 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16405 # have to relink, otherwise we might link with an installed library
16406 # when we should be linking with a yet-to-be-installed one
16407 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16408 test no != "$hardcode_minus_L"; then
16409 # Linking always hardcodes the temporary library directory.
16410 hardcode_action=relink
16411 else
16412 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16413 hardcode_action=immediate
16414 fi
16415 else
16416 # We cannot hardcode anything, or else we can only hardcode existing
16417 # directories.
16418 hardcode_action=unsupported
16419 fi
16420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16421 printf "%s\n" "$hardcode_action" >&6; }
16422
16423 if test relink = "$hardcode_action" ||
16424 test yes = "$inherit_rpath"; then
16425 # Fast installation is not supported
16426 enable_fast_install=no
16427 elif test yes = "$shlibpath_overrides_runpath" ||
16428 test no = "$enable_shared"; then
16429 # Fast installation is not necessary
16430 enable_fast_install=needless
16431 fi
16432
16433
16434
16435
16436
16437
16438 if test yes != "$enable_dlopen"; then
16439 enable_dlopen=unknown
16440 enable_dlopen_self=unknown
16441 enable_dlopen_self_static=unknown
16442 else
16443 lt_cv_dlopen=no
16444 lt_cv_dlopen_libs=
16445
16446 case $host_os in
16447 beos*)
16448 lt_cv_dlopen=load_add_on
16449 lt_cv_dlopen_libs=
16450 lt_cv_dlopen_self=yes
16451 ;;
16452
16453 mingw* | pw32* | cegcc*)
16454 lt_cv_dlopen=LoadLibrary
16455 lt_cv_dlopen_libs=
16456 ;;
16457
16458 cygwin*)
16459 lt_cv_dlopen=dlopen
16460 lt_cv_dlopen_libs=
16461 ;;
16462
16463 darwin*)
16464 # if libdl is installed we need to link against it
16465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16466 printf %s "checking for dlopen in -ldl... " >&6; }
16467 if test ${ac_cv_lib_dl_dlopen+y}
16468 then :
16469 printf %s "(cached) " >&6
16470 else case e in #(
16471 e) ac_check_lib_save_LIBS=$LIBS
16472 LIBS="-ldl $LIBS"
16473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16474 /* end confdefs.h. */
16475
16476 /* Override any GCC internal prototype to avoid an error.
16477 Use char because int might match the return type of a GCC
16478 builtin and then its argument prototype would still apply.
16479 The 'extern "C"' is for builds by C++ compilers;
16480 although this is not generally supported in C code supporting it here
16481 has little cost and some practical benefit (sr 110532). */
16482 #ifdef __cplusplus
16483 extern "C"
16484 #endif
16485 char dlopen (void);
16486 int
16487 main (void)
16488 {
16489 return dlopen ();
16490 ;
16491 return 0;
16492 }
16493 _ACEOF
16494 if ac_fn_c_try_link "$LINENO"
16495 then :
16496 ac_cv_lib_dl_dlopen=yes
16497 else case e in #(
16498 e) ac_cv_lib_dl_dlopen=no ;;
16499 esac
16500 fi
16501 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16502 conftest$ac_exeext conftest.$ac_ext
16503 LIBS=$ac_check_lib_save_LIBS ;;
16504 esac
16505 fi
16506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16507 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16508 if test "x$ac_cv_lib_dl_dlopen" = xyes
16509 then :
16510 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16511 else case e in #(
16512 e)
16513 lt_cv_dlopen=dyld
16514 lt_cv_dlopen_libs=
16515 lt_cv_dlopen_self=yes
16516 ;;
16517 esac
16518 fi
16519
16520 ;;
16521
16522 tpf*)
16523 # Don't try to run any link tests for TPF. We know it's impossible
16524 # because TPF is a cross-compiler, and we know how we open DSOs.
16525 lt_cv_dlopen=dlopen
16526 lt_cv_dlopen_libs=
16527 lt_cv_dlopen_self=no
16528 ;;
16529
16530 *)
16531 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16532 if test "x$ac_cv_func_shl_load" = xyes
16533 then :
16534 lt_cv_dlopen=shl_load
16535 else case e in #(
16536 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16537 printf %s "checking for shl_load in -ldld... " >&6; }
16538 if test ${ac_cv_lib_dld_shl_load+y}
16539 then :
16540 printf %s "(cached) " >&6
16541 else case e in #(
16542 e) ac_check_lib_save_LIBS=$LIBS
16543 LIBS="-ldld $LIBS"
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16546
16547 /* Override any GCC internal prototype to avoid an error.
16548 Use char because int might match the return type of a GCC
16549 builtin and then its argument prototype would still apply.
16550 The 'extern "C"' is for builds by C++ compilers;
16551 although this is not generally supported in C code supporting it here
16552 has little cost and some practical benefit (sr 110532). */
16553 #ifdef __cplusplus
16554 extern "C"
16555 #endif
16556 char shl_load (void);
16557 int
16558 main (void)
16559 {
16560 return shl_load ();
16561 ;
16562 return 0;
16563 }
16564 _ACEOF
16565 if ac_fn_c_try_link "$LINENO"
16566 then :
16567 ac_cv_lib_dld_shl_load=yes
16568 else case e in #(
16569 e) ac_cv_lib_dld_shl_load=no ;;
16570 esac
16571 fi
16572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16573 conftest$ac_exeext conftest.$ac_ext
16574 LIBS=$ac_check_lib_save_LIBS ;;
16575 esac
16576 fi
16577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16578 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16579 if test "x$ac_cv_lib_dld_shl_load" = xyes
16580 then :
16581 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16582 else case e in #(
16583 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16584 if test "x$ac_cv_func_dlopen" = xyes
16585 then :
16586 lt_cv_dlopen=dlopen
16587 else case e in #(
16588 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16589 printf %s "checking for dlopen in -ldl... " >&6; }
16590 if test ${ac_cv_lib_dl_dlopen+y}
16591 then :
16592 printf %s "(cached) " >&6
16593 else case e in #(
16594 e) ac_check_lib_save_LIBS=$LIBS
16595 LIBS="-ldl $LIBS"
16596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16597 /* end confdefs.h. */
16598
16599 /* Override any GCC internal prototype to avoid an error.
16600 Use char because int might match the return type of a GCC
16601 builtin and then its argument prototype would still apply.
16602 The 'extern "C"' is for builds by C++ compilers;
16603 although this is not generally supported in C code supporting it here
16604 has little cost and some practical benefit (sr 110532). */
16605 #ifdef __cplusplus
16606 extern "C"
16607 #endif
16608 char dlopen (void);
16609 int
16610 main (void)
16611 {
16612 return dlopen ();
16613 ;
16614 return 0;
16615 }
16616 _ACEOF
16617 if ac_fn_c_try_link "$LINENO"
16618 then :
16619 ac_cv_lib_dl_dlopen=yes
16620 else case e in #(
16621 e) ac_cv_lib_dl_dlopen=no ;;
16622 esac
16623 fi
16624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16625 conftest$ac_exeext conftest.$ac_ext
16626 LIBS=$ac_check_lib_save_LIBS ;;
16627 esac
16628 fi
16629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16630 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16631 if test "x$ac_cv_lib_dl_dlopen" = xyes
16632 then :
16633 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16634 else case e in #(
16635 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16636 printf %s "checking for dlopen in -lsvld... " >&6; }
16637 if test ${ac_cv_lib_svld_dlopen+y}
16638 then :
16639 printf %s "(cached) " >&6
16640 else case e in #(
16641 e) ac_check_lib_save_LIBS=$LIBS
16642 LIBS="-lsvld $LIBS"
16643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16644 /* end confdefs.h. */
16645
16646 /* Override any GCC internal prototype to avoid an error.
16647 Use char because int might match the return type of a GCC
16648 builtin and then its argument prototype would still apply.
16649 The 'extern "C"' is for builds by C++ compilers;
16650 although this is not generally supported in C code supporting it here
16651 has little cost and some practical benefit (sr 110532). */
16652 #ifdef __cplusplus
16653 extern "C"
16654 #endif
16655 char dlopen (void);
16656 int
16657 main (void)
16658 {
16659 return dlopen ();
16660 ;
16661 return 0;
16662 }
16663 _ACEOF
16664 if ac_fn_c_try_link "$LINENO"
16665 then :
16666 ac_cv_lib_svld_dlopen=yes
16667 else case e in #(
16668 e) ac_cv_lib_svld_dlopen=no ;;
16669 esac
16670 fi
16671 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16672 conftest$ac_exeext conftest.$ac_ext
16673 LIBS=$ac_check_lib_save_LIBS ;;
16674 esac
16675 fi
16676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16677 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16678 if test "x$ac_cv_lib_svld_dlopen" = xyes
16679 then :
16680 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16681 else case e in #(
16682 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16683 printf %s "checking for dld_link in -ldld... " >&6; }
16684 if test ${ac_cv_lib_dld_dld_link+y}
16685 then :
16686 printf %s "(cached) " >&6
16687 else case e in #(
16688 e) ac_check_lib_save_LIBS=$LIBS
16689 LIBS="-ldld $LIBS"
16690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691 /* end confdefs.h. */
16692
16693 /* Override any GCC internal prototype to avoid an error.
16694 Use char because int might match the return type of a GCC
16695 builtin and then its argument prototype would still apply.
16696 The 'extern "C"' is for builds by C++ compilers;
16697 although this is not generally supported in C code supporting it here
16698 has little cost and some practical benefit (sr 110532). */
16699 #ifdef __cplusplus
16700 extern "C"
16701 #endif
16702 char dld_link (void);
16703 int
16704 main (void)
16705 {
16706 return dld_link ();
16707 ;
16708 return 0;
16709 }
16710 _ACEOF
16711 if ac_fn_c_try_link "$LINENO"
16712 then :
16713 ac_cv_lib_dld_dld_link=yes
16714 else case e in #(
16715 e) ac_cv_lib_dld_dld_link=no ;;
16716 esac
16717 fi
16718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16719 conftest$ac_exeext conftest.$ac_ext
16720 LIBS=$ac_check_lib_save_LIBS ;;
16721 esac
16722 fi
16723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16724 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16725 if test "x$ac_cv_lib_dld_dld_link" = xyes
16726 then :
16727 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16728 fi
16729
16730 ;;
16731 esac
16732 fi
16733
16734 ;;
16735 esac
16736 fi
16737
16738 ;;
16739 esac
16740 fi
16741
16742 ;;
16743 esac
16744 fi
16745
16746 ;;
16747 esac
16748 fi
16749
16750 ;;
16751 esac
16752
16753 if test no = "$lt_cv_dlopen"; then
16754 enable_dlopen=no
16755 else
16756 enable_dlopen=yes
16757 fi
16758
16759 case $lt_cv_dlopen in
16760 dlopen)
16761 save_CPPFLAGS=$CPPFLAGS
16762 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16763
16764 save_LDFLAGS=$LDFLAGS
16765 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16766
16767 save_LIBS=$LIBS
16768 LIBS="$lt_cv_dlopen_libs $LIBS"
16769
16770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16771 printf %s "checking whether a program can dlopen itself... " >&6; }
16772 if test ${lt_cv_dlopen_self+y}
16773 then :
16774 printf %s "(cached) " >&6
16775 else case e in #(
16776 e) if test yes = "$cross_compiling"; then :
16777 lt_cv_dlopen_self=cross
16778 else
16779 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16780 lt_status=$lt_dlunknown
16781 cat > conftest.$ac_ext <<_LT_EOF
16782 #line $LINENO "configure"
16783 #include "confdefs.h"
16784
16785 #if HAVE_DLFCN_H
16786 #include <dlfcn.h>
16787 #endif
16788
16789 #include <stdio.h>
16790
16791 #ifdef RTLD_GLOBAL
16792 # define LT_DLGLOBAL RTLD_GLOBAL
16793 #else
16794 # ifdef DL_GLOBAL
16795 # define LT_DLGLOBAL DL_GLOBAL
16796 # else
16797 # define LT_DLGLOBAL 0
16798 # endif
16799 #endif
16800
16801 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16802 find out it does not work in some platform. */
16803 #ifndef LT_DLLAZY_OR_NOW
16804 # ifdef RTLD_LAZY
16805 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16806 # else
16807 # ifdef DL_LAZY
16808 # define LT_DLLAZY_OR_NOW DL_LAZY
16809 # else
16810 # ifdef RTLD_NOW
16811 # define LT_DLLAZY_OR_NOW RTLD_NOW
16812 # else
16813 # ifdef DL_NOW
16814 # define LT_DLLAZY_OR_NOW DL_NOW
16815 # else
16816 # define LT_DLLAZY_OR_NOW 0
16817 # endif
16818 # endif
16819 # endif
16820 # endif
16821 #endif
16822
16823 /* When -fvisibility=hidden is used, assume the code has been annotated
16824 correspondingly for the symbols needed. */
16825 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16826 int fnord () __attribute__((visibility("default")));
16827 #endif
16828
16829 int fnord () { return 42; }
16830 int main ()
16831 {
16832 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16833 int status = $lt_dlunknown;
16834
16835 if (self)
16836 {
16837 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16838 else
16839 {
16840 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16841 else puts (dlerror ());
16842 }
16843 /* dlclose (self); */
16844 }
16845 else
16846 puts (dlerror ());
16847
16848 return status;
16849 }
16850 _LT_EOF
16851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16852 (eval $ac_link) 2>&5
16853 ac_status=$?
16854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16855 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16856 (./conftest; exit; ) >&5 2>/dev/null
16857 lt_status=$?
16858 case x$lt_status in
16859 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16860 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16861 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16862 esac
16863 else :
16864 # compilation failed
16865 lt_cv_dlopen_self=no
16866 fi
16867 fi
16868 rm -fr conftest*
16869
16870 ;;
16871 esac
16872 fi
16873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16874 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16875
16876 if test yes = "$lt_cv_dlopen_self"; then
16877 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16879 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16880 if test ${lt_cv_dlopen_self_static+y}
16881 then :
16882 printf %s "(cached) " >&6
16883 else case e in #(
16884 e) if test yes = "$cross_compiling"; then :
16885 lt_cv_dlopen_self_static=cross
16886 else
16887 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16888 lt_status=$lt_dlunknown
16889 cat > conftest.$ac_ext <<_LT_EOF
16890 #line $LINENO "configure"
16891 #include "confdefs.h"
16892
16893 #if HAVE_DLFCN_H
16894 #include <dlfcn.h>
16895 #endif
16896
16897 #include <stdio.h>
16898
16899 #ifdef RTLD_GLOBAL
16900 # define LT_DLGLOBAL RTLD_GLOBAL
16901 #else
16902 # ifdef DL_GLOBAL
16903 # define LT_DLGLOBAL DL_GLOBAL
16904 # else
16905 # define LT_DLGLOBAL 0
16906 # endif
16907 #endif
16908
16909 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16910 find out it does not work in some platform. */
16911 #ifndef LT_DLLAZY_OR_NOW
16912 # ifdef RTLD_LAZY
16913 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16914 # else
16915 # ifdef DL_LAZY
16916 # define LT_DLLAZY_OR_NOW DL_LAZY
16917 # else
16918 # ifdef RTLD_NOW
16919 # define LT_DLLAZY_OR_NOW RTLD_NOW
16920 # else
16921 # ifdef DL_NOW
16922 # define LT_DLLAZY_OR_NOW DL_NOW
16923 # else
16924 # define LT_DLLAZY_OR_NOW 0
16925 # endif
16926 # endif
16927 # endif
16928 # endif
16929 #endif
16930
16931 /* When -fvisibility=hidden is used, assume the code has been annotated
16932 correspondingly for the symbols needed. */
16933 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16934 int fnord () __attribute__((visibility("default")));
16935 #endif
16936
16937 int fnord () { return 42; }
16938 int main ()
16939 {
16940 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16941 int status = $lt_dlunknown;
16942
16943 if (self)
16944 {
16945 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16946 else
16947 {
16948 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16949 else puts (dlerror ());
16950 }
16951 /* dlclose (self); */
16952 }
16953 else
16954 puts (dlerror ());
16955
16956 return status;
16957 }
16958 _LT_EOF
16959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16960 (eval $ac_link) 2>&5
16961 ac_status=$?
16962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16963 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16964 (./conftest; exit; ) >&5 2>/dev/null
16965 lt_status=$?
16966 case x$lt_status in
16967 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16968 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16969 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16970 esac
16971 else :
16972 # compilation failed
16973 lt_cv_dlopen_self_static=no
16974 fi
16975 fi
16976 rm -fr conftest*
16977
16978 ;;
16979 esac
16980 fi
16981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16982 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16983 fi
16984
16985 CPPFLAGS=$save_CPPFLAGS
16986 LDFLAGS=$save_LDFLAGS
16987 LIBS=$save_LIBS
16988 ;;
16989 esac
16990
16991 case $lt_cv_dlopen_self in
16992 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16993 *) enable_dlopen_self=unknown ;;
16994 esac
16995
16996 case $lt_cv_dlopen_self_static in
16997 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16998 *) enable_dlopen_self_static=unknown ;;
16999 esac
17000 fi
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018 striplib=
17019 old_striplib=
17020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17021 printf %s "checking whether stripping libraries is possible... " >&6; }
17022 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17023 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17024 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17026 printf "%s\n" "yes" >&6; }
17027 else
17028 # FIXME - insert some real tests, host_os isn't really good enough
17029 case $host_os in
17030 darwin*)
17031 if test -n "$STRIP"; then
17032 striplib="$STRIP -x"
17033 old_striplib="$STRIP -S"
17034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17035 printf "%s\n" "yes" >&6; }
17036 else
17037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17038 printf "%s\n" "no" >&6; }
17039 fi
17040 ;;
17041 *)
17042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17043 printf "%s\n" "no" >&6; }
17044 ;;
17045 esac
17046 fi
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059 # Report what library types will actually be built
17060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17061 printf %s "checking if libtool supports shared libraries... " >&6; }
17062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17063 printf "%s\n" "$can_build_shared" >&6; }
17064
17065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17066 printf %s "checking whether to build shared libraries... " >&6; }
17067 test no = "$can_build_shared" && enable_shared=no
17068
17069 # On AIX, shared libraries and static libraries use the same namespace, and
17070 # are all built from PIC.
17071 case $host_os in
17072 aix3*)
17073 test yes = "$enable_shared" && enable_static=no
17074 if test -n "$RANLIB"; then
17075 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17076 postinstall_cmds='$RANLIB $lib'
17077 fi
17078 ;;
17079
17080 aix[4-9]*)
17081 if test ia64 != "$host_cpu"; then
17082 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
17083 yes,aix,yes) ;; # shared object as lib.so file only
17084 yes,svr4,*) ;; # shared object as lib.so archive member only
17085 yes,*) enable_static=no ;; # shared object in lib.a archive as well
17086 esac
17087 fi
17088 ;;
17089 esac
17090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17091 printf "%s\n" "$enable_shared" >&6; }
17092
17093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17094 printf %s "checking whether to build static libraries... " >&6; }
17095 # Make sure either enable_shared or enable_static is yes.
17096 test yes = "$enable_shared" || enable_static=yes
17097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17098 printf "%s\n" "$enable_static" >&6; }
17099
17100
17101
17102
17103 fi
17104 ac_ext=c
17105 ac_cpp='$CPP $CPPFLAGS'
17106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17109
17110 CC=$lt_save_CC
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126 ac_config_commands="$ac_config_commands libtool"
17127
17128
17129
17130
17131 # Only expand once:
17132
17133
17134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
17135 printf %s "checking whether ln -s works... " >&6; }
17136 LN_S=$as_ln_s
17137 if test "$LN_S" = "ln -s"; then
17138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17139 printf "%s\n" "yes" >&6; }
17140 else
17141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
17142 printf "%s\n" "no, using $LN_S" >&6; }
17143 fi
17144
17145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
17146 printf %s "checking for grep that handles long lines and -e... " >&6; }
17147 if test ${ac_cv_path_GREP+y}
17148 then :
17149 printf %s "(cached) " >&6
17150 else case e in #(
17151 e) if test -z "$GREP"; then
17152 ac_path_GREP_found=false
17153 # Loop through the user's path and test for each of PROGNAME-LIST
17154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17155 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17156 do
17157 IFS=$as_save_IFS
17158 case $as_dir in #(((
17159 '') as_dir=./ ;;
17160 */) ;;
17161 *) as_dir=$as_dir/ ;;
17162 esac
17163 for ac_prog in grep ggrep
17164 do
17165 for ac_exec_ext in '' $ac_executable_extensions; do
17166 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
17167 as_fn_executable_p "$ac_path_GREP" || continue
17168 # Check for GNU ac_path_GREP and select it if it is found.
17169 # Check for GNU $ac_path_GREP
17170 case `"$ac_path_GREP" --version 2>&1` in #(
17171 *GNU*)
17172 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
17173 #(
17174 *)
17175 ac_count=0
17176 printf %s 0123456789 >"conftest.in"
17177 while :
17178 do
17179 cat "conftest.in" "conftest.in" >"conftest.tmp"
17180 mv "conftest.tmp" "conftest.in"
17181 cp "conftest.in" "conftest.nl"
17182 printf "%s\n" 'GREP' >> "conftest.nl"
17183 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17185 as_fn_arith $ac_count + 1 && ac_count=$as_val
17186 if test $ac_count -gt ${ac_path_GREP_max-0}; then
17187 # Best one so far, save it but keep looking for a better one
17188 ac_cv_path_GREP="$ac_path_GREP"
17189 ac_path_GREP_max=$ac_count
17190 fi
17191 # 10*(2^10) chars as input seems more than enough
17192 test $ac_count -gt 10 && break
17193 done
17194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17195 esac
17196
17197 $ac_path_GREP_found && break 3
17198 done
17199 done
17200 done
17201 IFS=$as_save_IFS
17202 if test -z "$ac_cv_path_GREP"; then
17203 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
17204 fi
17205 else
17206 ac_cv_path_GREP=$GREP
17207 fi
17208 ;;
17209 esac
17210 fi
17211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
17212 printf "%s\n" "$ac_cv_path_GREP" >&6; }
17213 GREP="$ac_cv_path_GREP"
17214
17215
17216
17217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17218 printf %s "checking for sin in -lm... " >&6; }
17219 if test ${ac_cv_lib_m_sin+y}
17220 then :
17221 printf %s "(cached) " >&6
17222 else case e in #(
17223 e) ac_check_lib_save_LIBS=$LIBS
17224 LIBS="-lm $LIBS"
17225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17226 /* end confdefs.h. */
17227
17228 /* Override any GCC internal prototype to avoid an error.
17229 Use char because int might match the return type of a GCC
17230 builtin and then its argument prototype would still apply.
17231 The 'extern "C"' is for builds by C++ compilers;
17232 although this is not generally supported in C code supporting it here
17233 has little cost and some practical benefit (sr 110532). */
17234 #ifdef __cplusplus
17235 extern "C"
17236 #endif
17237 char sin (void);
17238 int
17239 main (void)
17240 {
17241 return sin ();
17242 ;
17243 return 0;
17244 }
17245 _ACEOF
17246 if ac_fn_c_try_link "$LINENO"
17247 then :
17248 ac_cv_lib_m_sin=yes
17249 else case e in #(
17250 e) ac_cv_lib_m_sin=no ;;
17251 esac
17252 fi
17253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17254 conftest$ac_exeext conftest.$ac_ext
17255 LIBS=$ac_check_lib_save_LIBS ;;
17256 esac
17257 fi
17258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17259 printf "%s\n" "$ac_cv_lib_m_sin" >&6; }
17260 if test "x$ac_cv_lib_m_sin" = xyes
17261 then :
17262 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
17263
17264 LIBS="-lm $LIBS"
17265
17266 fi
17267
17268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fopen in -lc" >&5
17269 printf %s "checking for fopen in -lc... " >&6; }
17270 if test ${ac_cv_lib_c_fopen+y}
17271 then :
17272 printf %s "(cached) " >&6
17273 else case e in #(
17274 e) ac_check_lib_save_LIBS=$LIBS
17275 LIBS="-lc $LIBS"
17276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17277 /* end confdefs.h. */
17278
17279 /* Override any GCC internal prototype to avoid an error.
17280 Use char because int might match the return type of a GCC
17281 builtin and then its argument prototype would still apply.
17282 The 'extern "C"' is for builds by C++ compilers;
17283 although this is not generally supported in C code supporting it here
17284 has little cost and some practical benefit (sr 110532). */
17285 #ifdef __cplusplus
17286 extern "C"
17287 #endif
17288 char fopen (void);
17289 int
17290 main (void)
17291 {
17292 return fopen ();
17293 ;
17294 return 0;
17295 }
17296 _ACEOF
17297 if ac_fn_c_try_link "$LINENO"
17298 then :
17299 ac_cv_lib_c_fopen=yes
17300 else case e in #(
17301 e) ac_cv_lib_c_fopen=no ;;
17302 esac
17303 fi
17304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17305 conftest$ac_exeext conftest.$ac_ext
17306 LIBS=$ac_check_lib_save_LIBS ;;
17307 esac
17308 fi
17309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fopen" >&5
17310 printf "%s\n" "$ac_cv_lib_c_fopen" >&6; }
17311 if test "x$ac_cv_lib_c_fopen" = xyes
17312 then :
17313 printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
17314
17315 LIBS="-lc $LIBS"
17316
17317 fi
17318
17319
17320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
17321 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
17322 if test ${ac_cv_header_sys_wait_h+y}
17323 then :
17324 printf %s "(cached) " >&6
17325 else case e in #(
17326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h. */
17328 #include <sys/types.h>
17329 #include <sys/wait.h>
17330 #ifndef WEXITSTATUS
17331 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
17332 #endif
17333 #ifndef WIFEXITED
17334 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
17335 #endif
17336
17337 int
17338 main (void)
17339 {
17340 int s;
17341 wait (&s);
17342 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
17343 ;
17344 return 0;
17345 }
17346 _ACEOF
17347 if ac_fn_c_try_compile "$LINENO"
17348 then :
17349 ac_cv_header_sys_wait_h=yes
17350 else case e in #(
17351 e) ac_cv_header_sys_wait_h=no ;;
17352 esac
17353 fi
17354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17355 esac
17356 fi
17357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
17358 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
17359 if test $ac_cv_header_sys_wait_h = yes; then
17360
17361 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
17362
17363 fi
17364
17365 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
17366 if test "x$ac_cv_header_stdint_h" = xyes
17367 then :
17368 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
17369
17370 fi
17371 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17372 if test "x$ac_cv_header_unistd_h" = xyes
17373 then :
17374 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
17375
17376 fi
17377 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
17378 if test "x$ac_cv_header_dirent_h" = xyes
17379 then :
17380 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
17381
17382 fi
17383 ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
17384 if test "x$ac_cv_header_fnmatch_h" = xyes
17385 then :
17386 printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h
17387
17388 fi
17389 ac_fn_c_check_header_compile "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
17390 if test "x$ac_cv_header_fenv_h" = xyes
17391 then :
17392 printf "%s\n" "#define HAVE_FENV_H 1" >>confdefs.h
17393
17394 fi
17395 ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
17396 if test "x$ac_cv_header_byteswap_h" = xyes
17397 then :
17398 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
17399
17400 fi
17401 ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
17402 if test "x$ac_cv_header_sys_times_h" = xyes
17403 then :
17404 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h
17405
17406 fi
17407
17408 ac_fn_c_check_header_compile "$LINENO" "libproc.h" "ac_cv_header_libproc_h" "$ac_includes_default"
17409 if test "x$ac_cv_header_libproc_h" = xyes
17410 then :
17411 printf "%s\n" "#define HAVE_LIBPROC_H 1" >>confdefs.h
17412
17413 fi
17414 ac_fn_c_check_header_compile "$LINENO" "sys/proc_info.h" "ac_cv_header_sys_proc_info_h" "$ac_includes_default"
17415 if test "x$ac_cv_header_sys_proc_info_h" = xyes
17416 then :
17417 printf "%s\n" "#define HAVE_SYS_PROC_INFO_H 1" >>confdefs.h
17418
17419 fi
17420
17421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17422 printf %s "checking for an ANSI C-conforming const... " >&6; }
17423 if test ${ac_cv_c_const+y}
17424 then :
17425 printf %s "(cached) " >&6
17426 else case e in #(
17427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428 /* end confdefs.h. */
17429
17430 int
17431 main (void)
17432 {
17433
17434 #ifndef __cplusplus
17435 /* Ultrix mips cc rejects this sort of thing. */
17436 typedef int charset[2];
17437 const charset cs = { 0, 0 };
17438 /* SunOS 4.1.1 cc rejects this. */
17439 char const *const *pcpcc;
17440 char **ppc;
17441 /* NEC SVR4.0.2 mips cc rejects this. */
17442 struct point {int x, y;};
17443 static struct point const zero = {0,0};
17444 /* IBM XL C 1.02.0.0 rejects this.
17445 It does not let you subtract one const X* pointer from another in
17446 an arm of an if-expression whose if-part is not a constant
17447 expression */
17448 const char *g = "string";
17449 pcpcc = &g + (g ? g-g : 0);
17450 /* HPUX 7.0 cc rejects these. */
17451 ++pcpcc;
17452 ppc = (char**) pcpcc;
17453 pcpcc = (char const *const *) ppc;
17454 { /* SCO 3.2v4 cc rejects this sort of thing. */
17455 char tx;
17456 char *t = &tx;
17457 char const *s = 0 ? (char *) 0 : (char const *) 0;
17458
17459 *t++ = 0;
17460 if (s) return 0;
17461 }
17462 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17463 int x[] = {25, 17};
17464 const int *foo = &x[0];
17465 ++foo;
17466 }
17467 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17468 typedef const int *iptr;
17469 iptr p = 0;
17470 ++p;
17471 }
17472 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
17473 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17474 struct s { int j; const int *ap[3]; } bx;
17475 struct s *b = &bx; b->j = 5;
17476 }
17477 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17478 const int foo = 10;
17479 if (!foo) return 0;
17480 }
17481 return !cs[0] && !zero.x;
17482 #endif
17483
17484 ;
17485 return 0;
17486 }
17487 _ACEOF
17488 if ac_fn_c_try_compile "$LINENO"
17489 then :
17490 ac_cv_c_const=yes
17491 else case e in #(
17492 e) ac_cv_c_const=no ;;
17493 esac
17494 fi
17495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17496 esac
17497 fi
17498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17499 printf "%s\n" "$ac_cv_c_const" >&6; }
17500 if test $ac_cv_c_const = no; then
17501
17502 printf "%s\n" "#define const /**/" >>confdefs.h
17503
17504 fi
17505
17506 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
17507 if test "x$ac_cv_func_vasprintf" = xyes
17508 then :
17509 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
17510
17511 fi
17512
17513 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
17514 if test "x$ac_cv_func_posix_memalign" = xyes
17515 then :
17516 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
17517
17518 fi
17519
17520 # The cast to long int works around a bug in the HP C Compiler
17521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17522 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
17523 # This bug is HP SR number 8606223364.
17524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
17525 printf %s "checking size of int... " >&6; }
17526 if test ${ac_cv_sizeof_int+y}
17527 then :
17528 printf %s "(cached) " >&6
17529 else case e in #(
17530 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
17531 then :
17532
17533 else case e in #(
17534 e) if test "$ac_cv_type_int" = yes; then
17535 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17536 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17537 as_fn_error 77 "cannot compute sizeof (int)
17538 See 'config.log' for more details" "$LINENO" 5; }
17539 else
17540 ac_cv_sizeof_int=0
17541 fi ;;
17542 esac
17543 fi
17544 ;;
17545 esac
17546 fi
17547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
17548 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
17549
17550
17551
17552 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
17553
17554
17555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17556 printf %s "checking whether byte ordering is bigendian... " >&6; }
17557 if test ${ac_cv_c_bigendian+y}
17558 then :
17559 printf %s "(cached) " >&6
17560 else case e in #(
17561 e) ac_cv_c_bigendian=unknown
17562 # See if we're dealing with a universal compiler.
17563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17564 /* end confdefs.h. */
17565 #ifndef __APPLE_CC__
17566 not a universal capable compiler
17567 #endif
17568 typedef int dummy;
17569
17570 _ACEOF
17571 if ac_fn_c_try_compile "$LINENO"
17572 then :
17573
17574 # Check for potential -arch flags. It is not universal unless
17575 # there are at least two -arch flags with different values.
17576 ac_arch=
17577 ac_prev=
17578 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17579 if test -n "$ac_prev"; then
17580 case $ac_word in
17581 i?86 | x86_64 | ppc | ppc64)
17582 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17583 ac_arch=$ac_word
17584 else
17585 ac_cv_c_bigendian=universal
17586 break
17587 fi
17588 ;;
17589 esac
17590 ac_prev=
17591 elif test "x$ac_word" = "x-arch"; then
17592 ac_prev=arch
17593 fi
17594 done
17595 fi
17596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17597 if test $ac_cv_c_bigendian = unknown; then
17598 # See if sys/param.h defines the BYTE_ORDER macro.
17599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17600 /* end confdefs.h. */
17601 #include <sys/types.h>
17602 #include <sys/param.h>
17603
17604 int
17605 main (void)
17606 {
17607 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
17608 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
17609 && LITTLE_ENDIAN)
17610 bogus endian macros
17611 #endif
17612
17613 ;
17614 return 0;
17615 }
17616 _ACEOF
17617 if ac_fn_c_try_compile "$LINENO"
17618 then :
17619 # It does; now see whether it defined to BIG_ENDIAN or not.
17620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17621 /* end confdefs.h. */
17622 #include <sys/types.h>
17623 #include <sys/param.h>
17624
17625 int
17626 main (void)
17627 {
17628 #if BYTE_ORDER != BIG_ENDIAN
17629 not big endian
17630 #endif
17631
17632 ;
17633 return 0;
17634 }
17635 _ACEOF
17636 if ac_fn_c_try_compile "$LINENO"
17637 then :
17638 ac_cv_c_bigendian=yes
17639 else case e in #(
17640 e) ac_cv_c_bigendian=no ;;
17641 esac
17642 fi
17643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17644 fi
17645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17646 fi
17647 if test $ac_cv_c_bigendian = unknown; then
17648 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17650 /* end confdefs.h. */
17651 #include <limits.h>
17652
17653 int
17654 main (void)
17655 {
17656 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17657 bogus endian macros
17658 #endif
17659
17660 ;
17661 return 0;
17662 }
17663 _ACEOF
17664 if ac_fn_c_try_compile "$LINENO"
17665 then :
17666 # It does; now see whether it defined to _BIG_ENDIAN or not.
17667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17668 /* end confdefs.h. */
17669 #include <limits.h>
17670
17671 int
17672 main (void)
17673 {
17674 #ifndef _BIG_ENDIAN
17675 not big endian
17676 #endif
17677
17678 ;
17679 return 0;
17680 }
17681 _ACEOF
17682 if ac_fn_c_try_compile "$LINENO"
17683 then :
17684 ac_cv_c_bigendian=yes
17685 else case e in #(
17686 e) ac_cv_c_bigendian=no ;;
17687 esac
17688 fi
17689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17690 fi
17691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17692 fi
17693 if test $ac_cv_c_bigendian = unknown; then
17694 # Compile a test program.
17695 if test "$cross_compiling" = yes
17696 then :
17697 # Try to guess by grepping values from an object file.
17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h. */
17700 unsigned short int ascii_mm[] =
17701 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17702 unsigned short int ascii_ii[] =
17703 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17704 int use_ascii (int i) {
17705 return ascii_mm[i] + ascii_ii[i];
17706 }
17707 unsigned short int ebcdic_ii[] =
17708 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17709 unsigned short int ebcdic_mm[] =
17710 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17711 int use_ebcdic (int i) {
17712 return ebcdic_mm[i] + ebcdic_ii[i];
17713 }
17714 int
17715 main (int argc, char **argv)
17716 {
17717 /* Intimidate the compiler so that it does not
17718 optimize the arrays away. */
17719 char *p = argv[0];
17720 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
17721 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
17722 return use_ascii (argc) == use_ebcdic (*p);
17723 }
17724 _ACEOF
17725 if ac_fn_c_try_link "$LINENO"
17726 then :
17727 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
17728 ac_cv_c_bigendian=yes
17729 fi
17730 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
17731 if test "$ac_cv_c_bigendian" = unknown; then
17732 ac_cv_c_bigendian=no
17733 else
17734 # finding both strings is unlikely to happen, but who knows?
17735 ac_cv_c_bigendian=unknown
17736 fi
17737 fi
17738 fi
17739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17740 conftest$ac_exeext conftest.$ac_ext
17741 else case e in #(
17742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743 /* end confdefs.h. */
17744 $ac_includes_default
17745 int
17746 main (void)
17747 {
17748
17749 /* Are we little or big endian? From Harbison&Steele. */
17750 union
17751 {
17752 long int l;
17753 char c[sizeof (long int)];
17754 } u;
17755 u.l = 1;
17756 return u.c[sizeof (long int) - 1] == 1;
17757
17758 ;
17759 return 0;
17760 }
17761 _ACEOF
17762 if ac_fn_c_try_run "$LINENO"
17763 then :
17764 ac_cv_c_bigendian=no
17765 else case e in #(
17766 e) ac_cv_c_bigendian=yes ;;
17767 esac
17768 fi
17769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17770 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17771 esac
17772 fi
17773
17774 fi ;;
17775 esac
17776 fi
17777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17778 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
17779 case $ac_cv_c_bigendian in #(
17780 yes)
17781 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
17782 ;; #(
17783 no)
17784 ;; #(
17785 universal)
17786
17787 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17788
17789 ;; #(
17790 *)
17791 as_fn_error $? "unknown endianness
17792 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17793 esac
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use SSE2" >&5
17809 printf %s "checking whether to use SSE2... " >&6; }
17810 # Check whether --enable-sse2 was given.
17811 if test ${enable_sse2+y}
17812 then :
17813 enableval=$enable_sse2; enable_sse2=$enableval
17814
17815 fi
17816
17817 sse2_result=no
17818 save_CFLAGS=$CFLAGS
17819 SSE2_CFLAGS=
17820 if test "$enable_sse2" != "no" ; then
17821 if test "x$SSE2_CFLAGS" = "x" ; then
17822 if test "x$SUNCC" = "xyes"; then
17823 # SSE2 is enabled by default in the Sun Studio 64-bit environment
17824 if test "$AMD64_ABI" = "no" ; then
17825 SSE2_CFLAGS="-xarch=sse2"
17826 fi
17827 else
17828 SSE2_CFLAGS="-msse2"
17829 fi
17830 fi
17831
17832 have_sse2_intrinsics=no
17833 CFLAGS="$SSE2_CFLAGS $CFLAGS"
17834
17835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17836 /* end confdefs.h. */
17837
17838 #if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2))
17839 # if !defined(__amd64__) && !defined(__x86_64__)
17840 # error "Need GCC >= 4.2 for SSE2 intrinsics on x86"
17841 # endif
17842 #endif
17843 #include <mmintrin.h>
17844 #include <xmmintrin.h>
17845 #include <emmintrin.h>
17846 int main () {
17847 __m128i a = _mm_set1_epi32 (0), b = _mm_set1_epi32 (0), c;
17848 c = _mm_xor_si128 (a, b);
17849 return 0;
17850 }
17851
17852 _ACEOF
17853 if ac_fn_c_try_compile "$LINENO"
17854 then :
17855 have_sse2_intrinsics=yes
17856 else case e in #(
17857 e) SSE2_CFLAGS="" ;;
17858 esac
17859 fi
17860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17861 if test "$have_sse2_intrinsics" = "yes" ; then
17862 if test "$cross_compiling" = yes
17863 then :
17864 sse2_result=yes
17865 else case e in #(
17866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17867 /* end confdefs.h. */
17868
17869 #include <stdio.h>
17870 #define cpuid(func,ax,bx,cx,dx)\
17871 __asm__ __volatile__ ("cpuid":\
17872 "=a" (ax), "=b" (bx), "=c" (cx), "=d" (dx) : "a" (func));
17873 int main (void)
17874 {
17875 int SSE2 = 0x01 << 26;
17876 int a, b, c, d;
17877 cpuid(0x01, a, b, c, d);
17878 if (d & SSE2) {
17879 return 0;
17880 } else {
17881 return 1;
17882 }
17883 }
17884
17885 _ACEOF
17886 if ac_fn_c_try_run "$LINENO"
17887 then :
17888 sse2_result=yes
17889 else case e in #(
17890 e) sse2_result=no ;;
17891 esac
17892 fi
17893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17894 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17895 esac
17896 fi
17897
17898 fi
17899
17900 if test "$sse2_result" = "yes" ; then
17901 printf "%s\n" "#define USE_SSE2 1" >>confdefs.h
17902
17903 else
17904 SSE2_CFLAGS=""
17905 fi
17906 fi
17907 CFLAGS="$save_CFLAGS"
17908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sse2_result" >&5
17909 printf "%s\n" "$sse2_result" >&6; }
17910
17911
17912
17913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use AVX" >&5
17914 printf %s "checking whether to use AVX... " >&6; }
17915 # Check whether --enable-avx was given.
17916 if test ${enable_avx+y}
17917 then :
17918 enableval=$enable_avx; enable_avx=$enableval
17919
17920 fi
17921
17922 avx_result=no
17923 save_CFLAGS=$CFLAGS
17924 AVX_CFLAGS=
17925 if test "$enable_avx" != "no" ; then
17926 if test "x$AVX_CFLAGS" = "x" ; then
17927 if test "x$SUNCC" = "xyes" && test "x$AMD64_ABI" = "xno" ; then
17928 AVX_CFLAGS="-xarch=avx"
17929 else
17930 AVX_CFLAGS="-mavx -Winline"
17931 fi
17932 fi
17933
17934 have_avx_intrinsics=no
17935 CFLAGS="$AVX_CFLAGS $CFLAGS"
17936
17937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17938 /* end confdefs.h. */
17939
17940 #if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5))
17941 # if !defined(__amd64__) && !defined(__x86_64__)
17942 # error "Need GCC >= 4.5 for AVX intrinsics on x86"
17943 # endif
17944 #endif
17945 #include <immintrin.h>
17946 int main () {
17947 __m256i a = _mm256_set1_epi32 (0), b = _mm256_set1_epi32 (0), c;
17948 c = _mm256_permute2f128_si256 (a, b, 0);
17949 return 0;
17950 }
17951
17952 _ACEOF
17953 if ac_fn_c_try_compile "$LINENO"
17954 then :
17955 have_avx_intrinsics=yes
17956 else case e in #(
17957 e) AVX_CFLAGS="" ;;
17958 esac
17959 fi
17960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17961
17962 if test "$have_avx_intrinsics" = "yes" && test "x$FORCE_AVX" != x ; then
17963 have_avx_intrinsics="force"
17964 avx_result="yes"
17965 fi
17966
17967 if test "$have_avx_intrinsics" = "yes" ; then
17968 if test "$cross_compiling" = yes
17969 then :
17970 avx_result=yes
17971 else case e in #(
17972 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17974
17975 #include <stdlib.h>
17976 #include <stdint.h>
17977 #include <stdio.h>
17978 #define GET_FEATURE_FLAGS 1
17979
17980 int main (void)
17981 {
17982 int32_t ecx, edx;
17983 __asm__("cpuid"
17984 : "=c" (ecx),
17985 "=d" (edx)
17986 : "a" (GET_FEATURE_FLAGS)
17987 );
17988 if ((ecx >> 28) & 1) {
17989 return 0;
17990 } else {
17991 return 1;
17992 }
17993 }
17994
17995 _ACEOF
17996 if ac_fn_c_try_run "$LINENO"
17997 then :
17998 avx_result=yes
17999 else case e in #(
18000 e) avx_result=no ;;
18001 esac
18002 fi
18003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18004 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18005 esac
18006 fi
18007
18008 fi
18009
18010 if test "$avx_result" = "yes" ; then
18011 printf "%s\n" "#define USE_AVX 1" >>confdefs.h
18012
18013 else
18014 AVX_CFLAGS=""
18015 fi
18016 fi
18017 CFLAGS="$save_CFLAGS"
18018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $avx_result" >&5
18019 printf "%s\n" "$avx_result" >&6; }
18020
18021
18022
18023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use OpenMP" >&5
18024 printf %s "checking whether to use OpenMP... " >&6; }
18025 # Check whether --enable-openmp was given.
18026 if test ${enable_openmp+y}
18027 then :
18028 enableval=$enable_openmp; enable_openmp=$enableval
18029
18030 fi
18031
18032 ac_openmp_result=no
18033 OPENMP_CFLAGS=
18034 if test "$enable_openmp" != "no" ; then
18035 if test ${ac_cv_prog_cc_openmp+y}
18036 then :
18037 printf %s "(cached) " >&6
18038 else case e in #(
18039 e)
18040 ac_cv_prog_cc_openmp=unsupported
18041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042 /* end confdefs.h. */
18043
18044 #ifndef _OPENMP
18045 choke me
18046 #endif
18047 #include <omp.h>
18048 int main () { return omp_get_num_threads (); }
18049
18050 _ACEOF
18051 if ac_fn_c_try_link "$LINENO"
18052 then :
18053 ac_cv_prog_cc_openmp="none needed"
18054 fi
18055 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18056 conftest$ac_exeext conftest.$ac_ext
18057 if test "$ac_cv_prog_cc_openmp" = unsupported; then
18058 for brand in apple clang GCC SunPRO Intel SGI/PGI Compaq IBM InteloneAPI; do
18059 case $brand in
18060 apple)
18061 ac_conditional='defined __clang__ && defined __apple_build_version__'
18062 ac_option='-Xclang -fopenmp' ;;
18063 clang)
18064 ac_conditional='defined __clang__ && !(defined __INTEL_LLVM_COMPILER)'
18065 ac_option='-fopenmp=libomp' ;;
18066 GCC)
18067 ac_conditional='defined __GNUC__'
18068 ac_option='-fopenmp' ;;
18069 SunPRO)
18070 ac_conditional='defined __SUNPRO_C || defined __SUNPRO_CC'
18071 ac_option='-xopenmp' ;;
18072 Intel)
18073 ac_conditional='defined __INTEL_COMPILER'
18074 ac_option='-openmp' ;;
18075 SGI/PGI)
18076 ac_conditional='defined __sgi || defined __PGI || defined __PGIC__'
18077 ac_option='-mp' ;;
18078 Compaq)
18079 ac_conditional='defined __DECC || defined __DECCXX'
18080 ac_option='-omp' ;;
18081 IBM)
18082 ac_conditional='defined __xlc__ || defined __xlC__'
18083 ac_option='-qsmp=omp' ;;
18084 InteloneAPI)
18085 ac_conditional='defined __INTEL_LLVM_COMPILER'
18086 ac_option='-qopenmp' ;;
18087 esac
18088 if test $brand = GCC; then
18089 if test $CC = icx || test $CC = icpx; then
18090 ac_openmp_result=no
18091 elif test "$GCC" = yes; then
18092 ac_openmp_result=yes
18093 else
18094 ac_openmp_result=no
18095 fi
18096 else
18097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18098 /* end confdefs.h. */
18099
18100 #if $ac_conditional
18101 Brand
18102 #endif
18103
18104 _ACEOF
18105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18106 $EGREP_TRADITIONAL "Brand" >/dev/null 2>&1
18107 then :
18108 ac_openmp_result=yes
18109 else case e in #(
18110 e) ac_openmp_result=no ;;
18111 esac
18112 fi
18113 rm -rf conftest*
18114
18115 fi
18116 if test $ac_openmp_result = yes; then
18117 ac_save_CFLAGS=$CFLAGS
18118 ac_save_LIBS=$LIBS
18119 CFLAGS="$CFLAGS $ac_option"
18120 LIBS="$LIBS $OMP_LIB"
18121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18122 /* end confdefs.h. */
18123
18124 #ifndef _OPENMP
18125 choke me
18126 #endif
18127 #include <omp.h>
18128 int main () { return omp_get_num_threads (); }
18129
18130 _ACEOF
18131 if ac_fn_c_try_link "$LINENO"
18132 then :
18133 ac_cv_prog_cc_openmp=$ac_option
18134 fi
18135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18136 conftest$ac_exeext conftest.$ac_ext
18137 CFLAGS=$ac_save_CFLAGS
18138 LIBS=$ac_save_LIBS
18139 break
18140 fi
18141 done
18142 fi
18143 ;;
18144 esac
18145 fi
18146
18147 case $ac_cv_prog_cc_openmp in
18148 "none needed")
18149 ac_openmp_result=yes
18150 OPENMP_CFLAGS= ;;
18151 unsupported)
18152 ac_openmp_result=no
18153 OPENMP_CFLAGS= ;;
18154 *)
18155 OPENMP_CFLAGS=$ac_cv_prog_cc_openmp ;;
18156 esac
18157 fi
18158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_openmp_result" >&5
18159 printf "%s\n" "$ac_openmp_result" >&6; }
18160
18161
18162
18163 if test "x$sse2_result" = "xyes" || test "x$avx_result" = "xyes" ; then
18164 ac_fn_c_check_header_compile "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
18165 if test "x$ac_cv_header_immintrin_h" = xyes
18166 then :
18167 printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
18168
18169 fi
18170
18171 fi
18172
18173 if test "$ac_openmp_result" = "yes" ; then
18174 printf "%s\n" "#define OPENMP_BUILD 1" >>confdefs.h
18175
18176 fi
18177
18178 if test "$try_mpi" = "yes" ; then
18179 if test "x${MPICC}" = x ; then
18180
18181
18182 # Extract the first word of "mpicc", so it can be a program name with args.
18183 set dummy mpicc; ac_word=$2
18184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18185 printf %s "checking for $ac_word... " >&6; }
18186 if test ${ac_cv_prog_HAVE_MPICC+y}
18187 then :
18188 printf %s "(cached) " >&6
18189 else case e in #(
18190 e) if test -n "$HAVE_MPICC"; then
18191 ac_cv_prog_HAVE_MPICC="$HAVE_MPICC" # Let the user override the test.
18192 else
18193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18194 for as_dir in $PATH
18195 do
18196 IFS=$as_save_IFS
18197 case $as_dir in #(((
18198 '') as_dir=./ ;;
18199 */) ;;
18200 *) as_dir=$as_dir/ ;;
18201 esac
18202 for ac_exec_ext in '' $ac_executable_extensions; do
18203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18204 ac_cv_prog_HAVE_MPICC="yes"
18205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18206 break 2
18207 fi
18208 done
18209 done
18210 IFS=$as_save_IFS
18211
18212 fi ;;
18213 esac
18214 fi
18215 HAVE_MPICC=$ac_cv_prog_HAVE_MPICC
18216 if test -n "$HAVE_MPICC"; then
18217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_MPICC" >&5
18218 printf "%s\n" "$HAVE_MPICC" >&6; }
18219 else
18220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18221 printf "%s\n" "no" >&6; }
18222 fi
18223
18224
18225 else
18226 HAVE_MPICC="yes"
18227 fi
18228 if test "x${HAVE_MPICC}" = "xyes" ; then
18229 if test $win32_build = "yes" ; then
18230 MPI_LIBS="-lmsmpi"
18231 have_mpi="yes"
18232 printf "%s\n" "#define HAVE_MPI 1" >>confdefs.h
18233
18234 else
18235
18236 # mpi-lib not used, just retained for backward compatibility
18237
18238 # Check whether --with-mpi-lib was given.
18239 if test ${with_mpi_lib+y}
18240 then :
18241 withval=$with_mpi_lib;
18242 fi
18243
18244
18245
18246 # Check whether --with-mpi-include was given.
18247 if test ${with_mpi_include+y}
18248 then :
18249 withval=$with_mpi_include; MPI_inc_check="$with_mpi_include $with_mpi_include/include $with_mpi_include/include/openmpi"
18250 else case e in #(
18251 e) MPI_inc_check="/usr/include /usr/local/include /usr/include/openmpi /opt/openmpi/include /usr/lib/openmpi/include" ;;
18252 esac
18253 fi
18254
18255
18256 # can we find the header just using the default search paths?
18257 ac_fn_c_check_header_compile "$LINENO" "mpi.h" "ac_cv_header_mpi_h" "$ac_includes_default"
18258 if test "x$ac_cv_header_mpi_h" = xyes
18259 then :
18260 have_mpi="yes"
18261 fi
18262
18263
18264 # if not, try our own search
18265 if test $have_mpi = no ; then
18266 ARCH=`uname -m`
18267 ARCHPATHS="/usr/include/openmpi-${ARCH} /usr/lib/${ARCH}-linux-gnu/openmpi/include /usr/local/include/openmpi-${ARCH}"
18268 MPI_incdir=
18269 for m in $MPI_inc_check $ARCHPATHS ; do
18270 if test -d "$m" && test -f "$m/mpi.h" ; then
18271 MPI_incdir=$m
18272 break
18273 fi
18274 done
18275 if test -z "$MPI_incdir" ; then
18276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: couldn't find mpi.h" >&5
18277 printf "%s\n" "couldn't find mpi.h" >&6; }
18278 else
18279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found mpi.h in $MPI_incdir" >&5
18280 printf "%s\n" "found mpi.h in $MPI_incdir" >&6; }
18281 have_mpi=yes
18282 if test "$MPI_incdir" != "/usr/include" ; then
18283 MPI_CFLAGS="-I${MPI_incdir}"
18284 fi
18285 fi
18286 fi
18287
18288 if test $have_mpi = yes ; then
18289 printf "%s\n" "#define HAVE_MPI 1" >>confdefs.h
18290
18291 if test x"${MPICC}" = x ; then
18292 MPICC=mpicc
18293 fi
18294
18295
18296 fi
18297
18298 fi
18299 fi
18300 fi
18301
18302 if test "x$CROSS_READLINE_LIBS" != x ; then
18303 READLINE_LIBS="$CROSS_READLINE_LIBS"
18304 have_readline=yes
18305 printf "%s\n" "#define HAVE_READLINE 1" >>confdefs.h
18306
18307 printf "%s\n" "#define NEW_READLINE 1" >>confdefs.h
18308
18309
18310
18311 elif test "$try_readline" = "yes" ; then
18312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
18313 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
18314 if test ${ac_cv_c_undeclared_builtin_options+y}
18315 then :
18316 printf %s "(cached) " >&6
18317 else case e in #(
18318 e) ac_save_CFLAGS=$CFLAGS
18319 ac_cv_c_undeclared_builtin_options='cannot detect'
18320 for ac_arg in '' -fno-builtin; do
18321 CFLAGS="$ac_save_CFLAGS $ac_arg"
18322 # This test program should *not* compile successfully.
18323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324 /* end confdefs.h. */
18325
18326 int
18327 main (void)
18328 {
18329 (void) strchr;
18330 ;
18331 return 0;
18332 }
18333 _ACEOF
18334 if ac_fn_c_try_compile "$LINENO"
18335 then :
18336
18337 else case e in #(
18338 e) # This test program should compile successfully.
18339 # No library function is consistently available on
18340 # freestanding implementations, so test against a dummy
18341 # declaration. Include always-available headers on the
18342 # off chance that they somehow elicit warnings.
18343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h. */
18345 #include <float.h>
18346 #include <limits.h>
18347 #include <stdarg.h>
18348 #include <stddef.h>
18349 extern void ac_decl (int, char *);
18350
18351 int
18352 main (void)
18353 {
18354 (void) ac_decl (0, (char *) 0);
18355 (void) ac_decl;
18356
18357 ;
18358 return 0;
18359 }
18360 _ACEOF
18361 if ac_fn_c_try_compile "$LINENO"
18362 then :
18363 if test x"$ac_arg" = x
18364 then :
18365 ac_cv_c_undeclared_builtin_options='none needed'
18366 else case e in #(
18367 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
18368 esac
18369 fi
18370 break
18371 fi
18372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18373 esac
18374 fi
18375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18376 done
18377 CFLAGS=$ac_save_CFLAGS
18378 ;;
18379 esac
18380 fi
18381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
18382 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
18383 case $ac_cv_c_undeclared_builtin_options in #(
18384 'cannot detect') :
18385 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18386 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18387 as_fn_error $? "cannot make $CC report undeclared builtins
18388 See 'config.log' for more details" "$LINENO" 5; } ;; #(
18389 'none needed') :
18390 ac_c_undeclared_builtin_options='' ;; #(
18391 *) :
18392 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
18393 esac
18394
18395
18396 # Check whether --with-readline-prefix was given.
18397 if test ${with_readline_prefix+y}
18398 then :
18399 withval=$with_readline_prefix; readline_config_prefix="$withval"
18400 else case e in #(
18401 e) readline_config_prefix="" ;;
18402 esac
18403 fi
18404
18405
18406 READLINE_CFLAGS="-I$readline_config_prefix/include"
18407 READLINE_LIBS="-L$readline_config_prefix/lib -lreadline"
18408
18409 ac_save_CFLAGS="$CFLAGS"
18410 ac_save_LIBS="$LIBS"
18411 CFLAGS="$CFLAGS $READLINE_CFLAGS"
18412 LIBS="$READLINE_LIBS $LIBS"
18413
18414 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
18415 if test "x$ac_cv_header_readline_readline_h" = xyes
18416 then :
18417 have_rl_header="yes"
18418 else case e in #(
18419 e) have_rl_header="no" ;;
18420 esac
18421 fi
18422
18423
18424 if test "$have_rl_header" = "yes" ; then
18425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
18426 printf %s "checking for tgetent in -lncurses... " >&6; }
18427 if test ${ac_cv_lib_ncurses_tgetent+y}
18428 then :
18429 printf %s "(cached) " >&6
18430 else case e in #(
18431 e) ac_check_lib_save_LIBS=$LIBS
18432 LIBS="-lncurses $LIBS"
18433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18434 /* end confdefs.h. */
18435
18436 /* Override any GCC internal prototype to avoid an error.
18437 Use char because int might match the return type of a GCC
18438 builtin and then its argument prototype would still apply.
18439 The 'extern "C"' is for builds by C++ compilers;
18440 although this is not generally supported in C code supporting it here
18441 has little cost and some practical benefit (sr 110532). */
18442 #ifdef __cplusplus
18443 extern "C"
18444 #endif
18445 char tgetent (void);
18446 int
18447 main (void)
18448 {
18449 return tgetent ();
18450 ;
18451 return 0;
18452 }
18453 _ACEOF
18454 if ac_fn_c_try_link "$LINENO"
18455 then :
18456 ac_cv_lib_ncurses_tgetent=yes
18457 else case e in #(
18458 e) ac_cv_lib_ncurses_tgetent=no ;;
18459 esac
18460 fi
18461 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18462 conftest$ac_exeext conftest.$ac_ext
18463 LIBS=$ac_check_lib_save_LIBS ;;
18464 esac
18465 fi
18466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
18467 printf "%s\n" "$ac_cv_lib_ncurses_tgetent" >&6; }
18468 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
18469 then :
18470 termcap_lib=-lncurses
18471 else case e in #(
18472 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
18473 printf %s "checking for tgetent in -ltermcap... " >&6; }
18474 if test ${ac_cv_lib_termcap_tgetent+y}
18475 then :
18476 printf %s "(cached) " >&6
18477 else case e in #(
18478 e) ac_check_lib_save_LIBS=$LIBS
18479 LIBS="-ltermcap $LIBS"
18480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h. */
18482
18483 /* Override any GCC internal prototype to avoid an error.
18484 Use char because int might match the return type of a GCC
18485 builtin and then its argument prototype would still apply.
18486 The 'extern "C"' is for builds by C++ compilers;
18487 although this is not generally supported in C code supporting it here
18488 has little cost and some practical benefit (sr 110532). */
18489 #ifdef __cplusplus
18490 extern "C"
18491 #endif
18492 char tgetent (void);
18493 int
18494 main (void)
18495 {
18496 return tgetent ();
18497 ;
18498 return 0;
18499 }
18500 _ACEOF
18501 if ac_fn_c_try_link "$LINENO"
18502 then :
18503 ac_cv_lib_termcap_tgetent=yes
18504 else case e in #(
18505 e) ac_cv_lib_termcap_tgetent=no ;;
18506 esac
18507 fi
18508 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18509 conftest$ac_exeext conftest.$ac_ext
18510 LIBS=$ac_check_lib_save_LIBS ;;
18511 esac
18512 fi
18513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
18514 printf "%s\n" "$ac_cv_lib_termcap_tgetent" >&6; }
18515 if test "x$ac_cv_lib_termcap_tgetent" = xyes
18516 then :
18517 termcap_lib=-ltermcap
18518 else case e in #(
18519 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
18520 printf %s "checking for tgetent in -lcurses... " >&6; }
18521 if test ${ac_cv_lib_curses_tgetent+y}
18522 then :
18523 printf %s "(cached) " >&6
18524 else case e in #(
18525 e) ac_check_lib_save_LIBS=$LIBS
18526 LIBS="-lcurses $LIBS"
18527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528 /* end confdefs.h. */
18529
18530 /* Override any GCC internal prototype to avoid an error.
18531 Use char because int might match the return type of a GCC
18532 builtin and then its argument prototype would still apply.
18533 The 'extern "C"' is for builds by C++ compilers;
18534 although this is not generally supported in C code supporting it here
18535 has little cost and some practical benefit (sr 110532). */
18536 #ifdef __cplusplus
18537 extern "C"
18538 #endif
18539 char tgetent (void);
18540 int
18541 main (void)
18542 {
18543 return tgetent ();
18544 ;
18545 return 0;
18546 }
18547 _ACEOF
18548 if ac_fn_c_try_link "$LINENO"
18549 then :
18550 ac_cv_lib_curses_tgetent=yes
18551 else case e in #(
18552 e) ac_cv_lib_curses_tgetent=no ;;
18553 esac
18554 fi
18555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18556 conftest$ac_exeext conftest.$ac_ext
18557 LIBS=$ac_check_lib_save_LIBS ;;
18558 esac
18559 fi
18560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
18561 printf "%s\n" "$ac_cv_lib_curses_tgetent" >&6; }
18562 if test "x$ac_cv_lib_curses_tgetent" = xyes
18563 then :
18564 termcap_lib=-lcurses
18565 else case e in #(
18566 e) termcap_lib='' ;;
18567 esac
18568 fi
18569 ;;
18570 esac
18571 fi
18572 ;;
18573 esac
18574 fi
18575
18576
18577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18578 printf %s "checking for readline in -lreadline... " >&6; }
18579 if test ${ac_cv_lib_readline_readline+y}
18580 then :
18581 printf %s "(cached) " >&6
18582 else case e in #(
18583 e) ac_check_lib_save_LIBS=$LIBS
18584 LIBS="-lreadline $termcap_lib $LIBS"
18585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18586 /* end confdefs.h. */
18587
18588 /* Override any GCC internal prototype to avoid an error.
18589 Use char because int might match the return type of a GCC
18590 builtin and then its argument prototype would still apply.
18591 The 'extern "C"' is for builds by C++ compilers;
18592 although this is not generally supported in C code supporting it here
18593 has little cost and some practical benefit (sr 110532). */
18594 #ifdef __cplusplus
18595 extern "C"
18596 #endif
18597 char readline (void);
18598 int
18599 main (void)
18600 {
18601 return readline ();
18602 ;
18603 return 0;
18604 }
18605 _ACEOF
18606 if ac_fn_c_try_link "$LINENO"
18607 then :
18608 ac_cv_lib_readline_readline=yes
18609 else case e in #(
18610 e) ac_cv_lib_readline_readline=no ;;
18611 esac
18612 fi
18613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18614 conftest$ac_exeext conftest.$ac_ext
18615 LIBS=$ac_check_lib_save_LIBS ;;
18616 esac
18617 fi
18618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18619 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
18620 if test "x$ac_cv_lib_readline_readline" = xyes
18621 then :
18622 have_readline="yes" ; \
18623 printf "%s\n" "#define HAVE_READLINE 1" >>confdefs.h
18624
18625 fi
18626
18627
18628
18629 if test "$have_readline" = "yes" ; then
18630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
18631 printf %s "checking for rl_completion_matches in -lreadline... " >&6; }
18632 if test ${ac_cv_lib_readline_rl_completion_matches+y}
18633 then :
18634 printf %s "(cached) " >&6
18635 else case e in #(
18636 e) ac_check_lib_save_LIBS=$LIBS
18637 LIBS="-lreadline $termcap_lib $LIBS"
18638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639 /* end confdefs.h. */
18640
18641 /* Override any GCC internal prototype to avoid an error.
18642 Use char because int might match the return type of a GCC
18643 builtin and then its argument prototype would still apply.
18644 The 'extern "C"' is for builds by C++ compilers;
18645 although this is not generally supported in C code supporting it here
18646 has little cost and some practical benefit (sr 110532). */
18647 #ifdef __cplusplus
18648 extern "C"
18649 #endif
18650 char rl_completion_matches (void);
18651 int
18652 main (void)
18653 {
18654 return rl_completion_matches ();
18655 ;
18656 return 0;
18657 }
18658 _ACEOF
18659 if ac_fn_c_try_link "$LINENO"
18660 then :
18661 ac_cv_lib_readline_rl_completion_matches=yes
18662 else case e in #(
18663 e) ac_cv_lib_readline_rl_completion_matches=no ;;
18664 esac
18665 fi
18666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18667 conftest$ac_exeext conftest.$ac_ext
18668 LIBS=$ac_check_lib_save_LIBS ;;
18669 esac
18670 fi
18671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
18672 printf "%s\n" "$ac_cv_lib_readline_rl_completion_matches" >&6; }
18673 if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes
18674 then :
18675 printf "%s\n" "#define NEW_READLINE 1" >>confdefs.h
18676
18677 fi
18678
18679
18680
18681 ac_fn_check_decl "$LINENO" "rl_done" "ac_cv_have_decl_rl_done" "
18682 #include <stdio.h>
18683 #include <readline/readline.h>
18684
18685 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18686 if test "x$ac_cv_have_decl_rl_done" = xyes
18687 then :
18688 printf "%s\n" "#define HAVE_RL_DONE 1" >>confdefs.h
18689
18690 fi
18691
18692 if test "$READLINE_CFLAGS" = "-I/include" ; then
18693 READLINE_CFLAGS=""
18694 fi
18695 if test "$READLINE_LIBS" = "-L/lib -lreadline" ; then
18696 READLINE_LIBS="-lreadline"
18697 fi
18698
18699 READLINE_LIBS="$READLINE_LIBS $termcap_lib"
18700
18701
18702
18703 fi
18704 fi
18705
18706 CFLAGS="$ac_save_CFLAGS"
18707 LIBS="$ac_save_LIBS"
18708
18709 if test "$have_readline" = "no" ; then
18710 READLINE_LIBS=""
18711 READLINE_CFLAGS=""
18712 fi
18713 fi
18714
18715
18716
18717
18718
18719
18720
18721 ac_ext=cpp
18722 ac_cpp='$CXXCPP $CPPFLAGS'
18723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18726 if test -z "$CXX"; then
18727 if test -n "$CCC"; then
18728 CXX=$CCC
18729 else
18730 if test -n "$ac_tool_prefix"; then
18731 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
18732 do
18733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18736 printf %s "checking for $ac_word... " >&6; }
18737 if test ${ac_cv_prog_CXX+y}
18738 then :
18739 printf %s "(cached) " >&6
18740 else case e in #(
18741 e) if test -n "$CXX"; then
18742 ac_cv_prog_CXX="$CXX" # Let the user override the test.
18743 else
18744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18745 for as_dir in $PATH
18746 do
18747 IFS=$as_save_IFS
18748 case $as_dir in #(((
18749 '') as_dir=./ ;;
18750 */) ;;
18751 *) as_dir=$as_dir/ ;;
18752 esac
18753 for ac_exec_ext in '' $ac_executable_extensions; do
18754 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18755 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18757 break 2
18758 fi
18759 done
18760 done
18761 IFS=$as_save_IFS
18762
18763 fi ;;
18764 esac
18765 fi
18766 CXX=$ac_cv_prog_CXX
18767 if test -n "$CXX"; then
18768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
18769 printf "%s\n" "$CXX" >&6; }
18770 else
18771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18772 printf "%s\n" "no" >&6; }
18773 fi
18774
18775
18776 test -n "$CXX" && break
18777 done
18778 fi
18779 if test -z "$CXX"; then
18780 ac_ct_CXX=$CXX
18781 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
18782 do
18783 # Extract the first word of "$ac_prog", so it can be a program name with args.
18784 set dummy $ac_prog; ac_word=$2
18785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18786 printf %s "checking for $ac_word... " >&6; }
18787 if test ${ac_cv_prog_ac_ct_CXX+y}
18788 then :
18789 printf %s "(cached) " >&6
18790 else case e in #(
18791 e) if test -n "$ac_ct_CXX"; then
18792 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
18793 else
18794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18795 for as_dir in $PATH
18796 do
18797 IFS=$as_save_IFS
18798 case $as_dir in #(((
18799 '') as_dir=./ ;;
18800 */) ;;
18801 *) as_dir=$as_dir/ ;;
18802 esac
18803 for ac_exec_ext in '' $ac_executable_extensions; do
18804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18805 ac_cv_prog_ac_ct_CXX="$ac_prog"
18806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18807 break 2
18808 fi
18809 done
18810 done
18811 IFS=$as_save_IFS
18812
18813 fi ;;
18814 esac
18815 fi
18816 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
18817 if test -n "$ac_ct_CXX"; then
18818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
18819 printf "%s\n" "$ac_ct_CXX" >&6; }
18820 else
18821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18822 printf "%s\n" "no" >&6; }
18823 fi
18824
18825
18826 test -n "$ac_ct_CXX" && break
18827 done
18828
18829 if test "x$ac_ct_CXX" = x; then
18830 CXX="g++"
18831 else
18832 case $cross_compiling:$ac_tool_warned in
18833 yes:)
18834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18835 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18836 ac_tool_warned=yes ;;
18837 esac
18838 CXX=$ac_ct_CXX
18839 fi
18840 fi
18841
18842 fi
18843 fi
18844 # Provide some information about the compiler.
18845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
18846 set X $ac_compile
18847 ac_compiler=$2
18848 for ac_option in --version -v -V -qversion; do
18849 { { ac_try="$ac_compiler $ac_option >&5"
18850 case "(($ac_try" in
18851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852 *) ac_try_echo=$ac_try;;
18853 esac
18854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18855 printf "%s\n" "$ac_try_echo"; } >&5
18856 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18857 ac_status=$?
18858 if test -s conftest.err; then
18859 sed '10a\
18860 ... rest of stderr output deleted ...
18861 10q' conftest.err >conftest.er1
18862 cat conftest.er1 >&5
18863 fi
18864 rm -f conftest.er1 conftest.err
18865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18866 test $ac_status = 0; }
18867 done
18868
18869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
18870 printf %s "checking whether the compiler supports GNU C++... " >&6; }
18871 if test ${ac_cv_cxx_compiler_gnu+y}
18872 then :
18873 printf %s "(cached) " >&6
18874 else case e in #(
18875 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876 /* end confdefs.h. */
18877
18878 int
18879 main (void)
18880 {
18881 #ifndef __GNUC__
18882 choke me
18883 #endif
18884
18885 ;
18886 return 0;
18887 }
18888 _ACEOF
18889 if ac_fn_cxx_try_compile "$LINENO"
18890 then :
18891 ac_compiler_gnu=yes
18892 else case e in #(
18893 e) ac_compiler_gnu=no ;;
18894 esac
18895 fi
18896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18897 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
18898 ;;
18899 esac
18900 fi
18901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
18902 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
18903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18904
18905 if test $ac_compiler_gnu = yes; then
18906 GXX=yes
18907 else
18908 GXX=
18909 fi
18910 ac_test_CXXFLAGS=${CXXFLAGS+y}
18911 ac_save_CXXFLAGS=$CXXFLAGS
18912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
18913 printf %s "checking whether $CXX accepts -g... " >&6; }
18914 if test ${ac_cv_prog_cxx_g+y}
18915 then :
18916 printf %s "(cached) " >&6
18917 else case e in #(
18918 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
18919 ac_cxx_werror_flag=yes
18920 ac_cv_prog_cxx_g=no
18921 CXXFLAGS="-g"
18922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18923 /* end confdefs.h. */
18924
18925 int
18926 main (void)
18927 {
18928
18929 ;
18930 return 0;
18931 }
18932 _ACEOF
18933 if ac_fn_cxx_try_compile "$LINENO"
18934 then :
18935 ac_cv_prog_cxx_g=yes
18936 else case e in #(
18937 e) CXXFLAGS=""
18938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18939 /* end confdefs.h. */
18940
18941 int
18942 main (void)
18943 {
18944
18945 ;
18946 return 0;
18947 }
18948 _ACEOF
18949 if ac_fn_cxx_try_compile "$LINENO"
18950 then :
18951
18952 else case e in #(
18953 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18954 CXXFLAGS="-g"
18955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18956 /* end confdefs.h. */
18957
18958 int
18959 main (void)
18960 {
18961
18962 ;
18963 return 0;
18964 }
18965 _ACEOF
18966 if ac_fn_cxx_try_compile "$LINENO"
18967 then :
18968 ac_cv_prog_cxx_g=yes
18969 fi
18970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18971 esac
18972 fi
18973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18974 esac
18975 fi
18976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18977 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
18978 esac
18979 fi
18980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
18981 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
18982 if test $ac_test_CXXFLAGS; then
18983 CXXFLAGS=$ac_save_CXXFLAGS
18984 elif test $ac_cv_prog_cxx_g = yes; then
18985 if test "$GXX" = yes; then
18986 CXXFLAGS="-g -O2"
18987 else
18988 CXXFLAGS="-g"
18989 fi
18990 else
18991 if test "$GXX" = yes; then
18992 CXXFLAGS="-O2"
18993 else
18994 CXXFLAGS=
18995 fi
18996 fi
18997 ac_prog_cxx_stdcxx=no
18998 if test x$ac_prog_cxx_stdcxx = xno
18999 then :
19000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
19001 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
19002 if test ${ac_cv_prog_cxx_cxx11+y}
19003 then :
19004 printf %s "(cached) " >&6
19005 else case e in #(
19006 e) ac_cv_prog_cxx_cxx11=no
19007 ac_save_CXX=$CXX
19008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19009 /* end confdefs.h. */
19010 $ac_cxx_conftest_cxx11_program
19011 _ACEOF
19012 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
19013 do
19014 CXX="$ac_save_CXX $ac_arg"
19015 if ac_fn_cxx_try_compile "$LINENO"
19016 then :
19017 ac_cv_prog_cxx_cxx11=$ac_arg
19018 fi
19019 rm -f core conftest.err conftest.$ac_objext conftest.beam
19020 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
19021 done
19022 rm -f conftest.$ac_ext
19023 CXX=$ac_save_CXX ;;
19024 esac
19025 fi
19026
19027 if test "x$ac_cv_prog_cxx_cxx11" = xno
19028 then :
19029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19030 printf "%s\n" "unsupported" >&6; }
19031 else case e in #(
19032 e) if test "x$ac_cv_prog_cxx_cxx11" = x
19033 then :
19034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19035 printf "%s\n" "none needed" >&6; }
19036 else case e in #(
19037 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
19038 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
19039 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
19040 esac
19041 fi
19042 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
19043 ac_prog_cxx_stdcxx=cxx11 ;;
19044 esac
19045 fi
19046 fi
19047 if test x$ac_prog_cxx_stdcxx = xno
19048 then :
19049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
19050 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
19051 if test ${ac_cv_prog_cxx_cxx98+y}
19052 then :
19053 printf %s "(cached) " >&6
19054 else case e in #(
19055 e) ac_cv_prog_cxx_cxx98=no
19056 ac_save_CXX=$CXX
19057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19058 /* end confdefs.h. */
19059 $ac_cxx_conftest_cxx98_program
19060 _ACEOF
19061 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
19062 do
19063 CXX="$ac_save_CXX $ac_arg"
19064 if ac_fn_cxx_try_compile "$LINENO"
19065 then :
19066 ac_cv_prog_cxx_cxx98=$ac_arg
19067 fi
19068 rm -f core conftest.err conftest.$ac_objext conftest.beam
19069 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
19070 done
19071 rm -f conftest.$ac_ext
19072 CXX=$ac_save_CXX ;;
19073 esac
19074 fi
19075
19076 if test "x$ac_cv_prog_cxx_cxx98" = xno
19077 then :
19078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19079 printf "%s\n" "unsupported" >&6; }
19080 else case e in #(
19081 e) if test "x$ac_cv_prog_cxx_cxx98" = x
19082 then :
19083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19084 printf "%s\n" "none needed" >&6; }
19085 else case e in #(
19086 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
19087 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
19088 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
19089 esac
19090 fi
19091 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
19092 ac_prog_cxx_stdcxx=cxx98 ;;
19093 esac
19094 fi
19095 fi
19096
19097 ac_ext=c
19098 ac_cpp='$CPP $CPPFLAGS'
19099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19102
19103
19104
19105 func_stripname_cnf ()
19106 {
19107 case $2 in
19108 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
19109 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
19110 esac
19111 } # func_stripname_cnf
19112
19113 if test -n "$CXX" && ( test no != "$CXX" &&
19114 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
19115 (test g++ != "$CXX"))); then
19116 ac_ext=cpp
19117 ac_cpp='$CXXCPP $CPPFLAGS'
19118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19122 printf %s "checking how to run the C++ preprocessor... " >&6; }
19123 if test -z "$CXXCPP"; then
19124 if test ${ac_cv_prog_CXXCPP+y}
19125 then :
19126 printf %s "(cached) " >&6
19127 else case e in #(
19128 e) # Double quotes because $CXX needs to be expanded
19129 for CXXCPP in "$CXX -E" cpp /lib/cpp
19130 do
19131 ac_preproc_ok=false
19132 for ac_cxx_preproc_warn_flag in '' yes
19133 do
19134 # Use a header file that comes with gcc, so configuring glibc
19135 # with a fresh cross-compiler works.
19136 # On the NeXT, cc -E runs the code through the compiler's parser,
19137 # not just through cpp. "Syntax error" is here to catch this case.
19138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19139 /* end confdefs.h. */
19140 #include <limits.h>
19141 Syntax error
19142 _ACEOF
19143 if ac_fn_cxx_try_cpp "$LINENO"
19144 then :
19145
19146 else case e in #(
19147 e) # Broken: fails on valid input.
19148 continue ;;
19149 esac
19150 fi
19151 rm -f conftest.err conftest.i conftest.$ac_ext
19152
19153 # OK, works on sane cases. Now check whether nonexistent headers
19154 # can be detected and how.
19155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19156 /* end confdefs.h. */
19157 #include <ac_nonexistent.h>
19158 _ACEOF
19159 if ac_fn_cxx_try_cpp "$LINENO"
19160 then :
19161 # Broken: success on invalid input.
19162 continue
19163 else case e in #(
19164 e) # Passes both tests.
19165 ac_preproc_ok=:
19166 break ;;
19167 esac
19168 fi
19169 rm -f conftest.err conftest.i conftest.$ac_ext
19170
19171 done
19172 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19173 rm -f conftest.i conftest.err conftest.$ac_ext
19174 if $ac_preproc_ok
19175 then :
19176 break
19177 fi
19178
19179 done
19180 ac_cv_prog_CXXCPP=$CXXCPP
19181 ;;
19182 esac
19183 fi
19184 CXXCPP=$ac_cv_prog_CXXCPP
19185 else
19186 ac_cv_prog_CXXCPP=$CXXCPP
19187 fi
19188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19189 printf "%s\n" "$CXXCPP" >&6; }
19190 ac_preproc_ok=false
19191 for ac_cxx_preproc_warn_flag in '' yes
19192 do
19193 # Use a header file that comes with gcc, so configuring glibc
19194 # with a fresh cross-compiler works.
19195 # On the NeXT, cc -E runs the code through the compiler's parser,
19196 # not just through cpp. "Syntax error" is here to catch this case.
19197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19198 /* end confdefs.h. */
19199 #include <limits.h>
19200 Syntax error
19201 _ACEOF
19202 if ac_fn_cxx_try_cpp "$LINENO"
19203 then :
19204
19205 else case e in #(
19206 e) # Broken: fails on valid input.
19207 continue ;;
19208 esac
19209 fi
19210 rm -f conftest.err conftest.i conftest.$ac_ext
19211
19212 # OK, works on sane cases. Now check whether nonexistent headers
19213 # can be detected and how.
19214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h. */
19216 #include <ac_nonexistent.h>
19217 _ACEOF
19218 if ac_fn_cxx_try_cpp "$LINENO"
19219 then :
19220 # Broken: success on invalid input.
19221 continue
19222 else case e in #(
19223 e) # Passes both tests.
19224 ac_preproc_ok=:
19225 break ;;
19226 esac
19227 fi
19228 rm -f conftest.err conftest.i conftest.$ac_ext
19229
19230 done
19231 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19232 rm -f conftest.i conftest.err conftest.$ac_ext
19233 if $ac_preproc_ok
19234 then :
19235
19236 else case e in #(
19237 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19238 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19239 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19240 See 'config.log' for more details" "$LINENO" 5; } ;;
19241 esac
19242 fi
19243
19244 ac_ext=c
19245 ac_cpp='$CPP $CPPFLAGS'
19246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19249
19250 else
19251 _lt_caught_CXX_error=yes
19252 fi
19253
19254 ac_ext=cpp
19255 ac_cpp='$CXXCPP $CPPFLAGS'
19256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19259
19260 archive_cmds_need_lc_CXX=no
19261 allow_undefined_flag_CXX=
19262 always_export_symbols_CXX=no
19263 archive_expsym_cmds_CXX=
19264 compiler_needs_object_CXX=no
19265 export_dynamic_flag_spec_CXX=
19266 hardcode_direct_CXX=no
19267 hardcode_direct_absolute_CXX=no
19268 hardcode_libdir_flag_spec_CXX=
19269 hardcode_libdir_separator_CXX=
19270 hardcode_minus_L_CXX=no
19271 hardcode_shlibpath_var_CXX=unsupported
19272 hardcode_automatic_CXX=no
19273 inherit_rpath_CXX=no
19274 module_cmds_CXX=
19275 module_expsym_cmds_CXX=
19276 link_all_deplibs_CXX=unknown
19277 old_archive_cmds_CXX=$old_archive_cmds
19278 reload_flag_CXX=$reload_flag
19279 reload_cmds_CXX=$reload_cmds
19280 no_undefined_flag_CXX=
19281 whole_archive_flag_spec_CXX=
19282 enable_shared_with_static_runtimes_CXX=no
19283
19284 # Source file extension for C++ test sources.
19285 ac_ext=cpp
19286
19287 # Object file extension for compiled C++ test sources.
19288 objext=o
19289 objext_CXX=$objext
19290
19291 # No sense in running all these tests if we already determined that
19292 # the CXX compiler isn't working. Some variables (like enable_shared)
19293 # are currently assumed to apply to all compilers on this platform,
19294 # and will be corrupted by setting them based on a non-working compiler.
19295 if test yes != "$_lt_caught_CXX_error"; then
19296 # Code to be used in simple compile tests
19297 lt_simple_compile_test_code="int some_variable = 0;"
19298
19299 # Code to be used in simple link tests
19300 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19301
19302 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19303
19304
19305
19306
19307
19308
19309 # If no C compiler was specified, use CC.
19310 LTCC=${LTCC-"$CC"}
19311
19312 # If no C compiler flags were specified, use CFLAGS.
19313 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19314
19315 # Allow CC to be a program name with arguments.
19316 compiler=$CC
19317
19318
19319 # save warnings/boilerplate of simple test code
19320 ac_outfile=conftest.$ac_objext
19321 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19322 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19323 _lt_compiler_boilerplate=`cat conftest.err`
19324 $RM conftest*
19325
19326 ac_outfile=conftest.$ac_objext
19327 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19328 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19329 _lt_linker_boilerplate=`cat conftest.err`
19330 $RM -r conftest*
19331
19332
19333 # Allow CC to be a program name with arguments.
19334 lt_save_CC=$CC
19335 lt_save_CFLAGS=$CFLAGS
19336 lt_save_LD=$LD
19337 lt_save_GCC=$GCC
19338 GCC=$GXX
19339 lt_save_with_gnu_ld=$with_gnu_ld
19340 lt_save_path_LD=$lt_cv_path_LD
19341 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19342 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19343 else
19344 $as_unset lt_cv_prog_gnu_ld
19345 fi
19346 if test -n "${lt_cv_path_LDCXX+set}"; then
19347 lt_cv_path_LD=$lt_cv_path_LDCXX
19348 else
19349 $as_unset lt_cv_path_LD
19350 fi
19351 test -z "${LDCXX+set}" || LD=$LDCXX
19352 CC=${CXX-"c++"}
19353 CFLAGS=$CXXFLAGS
19354 compiler=$CC
19355 compiler_CXX=$CC
19356 func_cc_basename $compiler
19357 cc_basename=$func_cc_basename_result
19358
19359
19360 if test -n "$compiler"; then
19361 # We don't want -fno-exception when compiling C++ code, so set the
19362 # no_builtin_flag separately
19363 if test yes = "$GXX"; then
19364 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19365 else
19366 lt_prog_compiler_no_builtin_flag_CXX=
19367 fi
19368
19369 if test yes = "$GXX"; then
19370 # Set up default GNU C++ configuration
19371
19372
19373
19374 # Check whether --with-gnu-ld was given.
19375 if test ${with_gnu_ld+y}
19376 then :
19377 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
19378 else case e in #(
19379 e) with_gnu_ld=no ;;
19380 esac
19381 fi
19382
19383 ac_prog=ld
19384 if test yes = "$GCC"; then
19385 # Check if gcc -print-prog-name=ld gives a path.
19386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19387 printf %s "checking for ld used by $CC... " >&6; }
19388 case $host in
19389 *-*-mingw*)
19390 # gcc leaves a trailing carriage return, which upsets mingw
19391 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19392 *)
19393 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19394 esac
19395 case $ac_prog in
19396 # Accept absolute paths.
19397 [\\/]* | ?:[\\/]*)
19398 re_direlt='/[^/][^/]*/\.\./'
19399 # Canonicalize the pathname of ld
19400 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19401 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19402 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19403 done
19404 test -z "$LD" && LD=$ac_prog
19405 ;;
19406 "")
19407 # If it fails, then pretend we aren't using GCC.
19408 ac_prog=ld
19409 ;;
19410 *)
19411 # If it is relative, then search for the first ld in PATH.
19412 with_gnu_ld=unknown
19413 ;;
19414 esac
19415 elif test yes = "$with_gnu_ld"; then
19416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19417 printf %s "checking for GNU ld... " >&6; }
19418 else
19419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19420 printf %s "checking for non-GNU ld... " >&6; }
19421 fi
19422 if test ${lt_cv_path_LD+y}
19423 then :
19424 printf %s "(cached) " >&6
19425 else case e in #(
19426 e) if test -z "$LD"; then
19427 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
19428 for ac_dir in $PATH; do
19429 IFS=$lt_save_ifs
19430 test -z "$ac_dir" && ac_dir=.
19431 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19432 lt_cv_path_LD=$ac_dir/$ac_prog
19433 # Check to see if the program is GNU ld. I'd rather use --version,
19434 # but apparently some variants of GNU ld only accept -v.
19435 # Break only if it was the GNU/non-GNU ld that we prefer.
19436 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19437 *GNU* | *'with BFD'*)
19438 test no != "$with_gnu_ld" && break
19439 ;;
19440 *)
19441 test yes != "$with_gnu_ld" && break
19442 ;;
19443 esac
19444 fi
19445 done
19446 IFS=$lt_save_ifs
19447 else
19448 lt_cv_path_LD=$LD # Let the user override the test with a path.
19449 fi ;;
19450 esac
19451 fi
19452
19453 LD=$lt_cv_path_LD
19454 if test -n "$LD"; then
19455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19456 printf "%s\n" "$LD" >&6; }
19457 else
19458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19459 printf "%s\n" "no" >&6; }
19460 fi
19461 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19463 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
19464 if test ${lt_cv_prog_gnu_ld+y}
19465 then :
19466 printf %s "(cached) " >&6
19467 else case e in #(
19468 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
19469 case `$LD -v 2>&1 </dev/null` in
19470 *GNU* | *'with BFD'*)
19471 lt_cv_prog_gnu_ld=yes
19472 ;;
19473 *)
19474 lt_cv_prog_gnu_ld=no
19475 ;;
19476 esac ;;
19477 esac
19478 fi
19479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19480 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
19481 with_gnu_ld=$lt_cv_prog_gnu_ld
19482
19483
19484
19485
19486
19487
19488
19489 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19490 # archiving commands below assume that GNU ld is being used.
19491 if test yes = "$with_gnu_ld"; then
19492 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19493 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'
19494
19495 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19496 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19497
19498 # If archive_cmds runs LD, not CC, wlarc should be empty
19499 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19500 # investigate it a little bit more. (MM)
19501 wlarc='$wl'
19502
19503 # ancient GNU ld didn't support --whole-archive et. al.
19504 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19505 $GREP 'no-whole-archive' > /dev/null; then
19506 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19507 else
19508 whole_archive_flag_spec_CXX=
19509 fi
19510 else
19511 with_gnu_ld=no
19512 wlarc=
19513
19514 # A generic and very simple default shared library creation
19515 # command for GNU C++ for the case where it uses the native
19516 # linker, instead of GNU ld. If possible, this setting should
19517 # overridden to take advantage of the native linker features on
19518 # the platform it is being used on.
19519 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19520 fi
19521
19522 # Commands to make compiler produce verbose output that lists
19523 # what "hidden" libraries, object files and flags are used when
19524 # linking a shared library.
19525 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19526
19527 else
19528 GXX=no
19529 with_gnu_ld=no
19530 wlarc=
19531 fi
19532
19533 # PORTME: fill in a description of your system's C++ link characteristics
19534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19535 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19536 ld_shlibs_CXX=yes
19537 case $host_os in
19538 aix3*)
19539 # FIXME: insert proper C++ library support
19540 ld_shlibs_CXX=no
19541 ;;
19542 aix[4-9]*)
19543 if test ia64 = "$host_cpu"; then
19544 # On IA64, the linker does run time linking by default, so we don't
19545 # have to do anything special.
19546 aix_use_runtimelinking=no
19547 exp_sym_flag='-Bexport'
19548 no_entry_flag=
19549 else
19550 aix_use_runtimelinking=no
19551
19552 # Test if we are trying to use run time linking or normal
19553 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19554 # have runtime linking enabled, and use it for executables.
19555 # For shared libraries, we enable/disable runtime linking
19556 # depending on the kind of the shared library created -
19557 # when "with_aix_soname,aix_use_runtimelinking" is:
19558 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
19559 # "aix,yes" lib.so shared, rtl:yes, for executables
19560 # lib.a static archive
19561 # "both,no" lib.so.V(shr.o) shared, rtl:yes
19562 # lib.a(lib.so.V) shared, rtl:no, for executables
19563 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
19564 # lib.a(lib.so.V) shared, rtl:no
19565 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
19566 # lib.a static archive
19567 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19568 for ld_flag in $LDFLAGS; do
19569 case $ld_flag in
19570 *-brtl*)
19571 aix_use_runtimelinking=yes
19572 break
19573 ;;
19574 esac
19575 done
19576 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
19577 # With aix-soname=svr4, we create the lib.so.V shared archives only,
19578 # so we don't have lib.a shared libs to link our executables.
19579 # We have to force runtime linking in this case.
19580 aix_use_runtimelinking=yes
19581 LDFLAGS="$LDFLAGS -Wl,-brtl"
19582 fi
19583 ;;
19584 esac
19585
19586 exp_sym_flag='-bexport'
19587 no_entry_flag='-bnoentry'
19588 fi
19589
19590 # When large executables or shared objects are built, AIX ld can
19591 # have problems creating the table of contents. If linking a library
19592 # or program results in "error TOC overflow" add -mminimal-toc to
19593 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19594 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19595
19596 archive_cmds_CXX=''
19597 hardcode_direct_CXX=yes
19598 hardcode_direct_absolute_CXX=yes
19599 hardcode_libdir_separator_CXX=':'
19600 link_all_deplibs_CXX=yes
19601 file_list_spec_CXX='$wl-f,'
19602 case $with_aix_soname,$aix_use_runtimelinking in
19603 aix,*) ;; # no import file
19604 svr4,* | *,yes) # use import file
19605 # The Import File defines what to hardcode.
19606 hardcode_direct_CXX=no
19607 hardcode_direct_absolute_CXX=no
19608 ;;
19609 esac
19610
19611 if test yes = "$GXX"; then
19612 case $host_os in aix4.[012]|aix4.[012].*)
19613 # We only want to do this on AIX 4.2 and lower, the check
19614 # below for broken collect2 doesn't work under 4.3+
19615 collect2name=`$CC -print-prog-name=collect2`
19616 if test -f "$collect2name" &&
19617 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19618 then
19619 # We have reworked collect2
19620 :
19621 else
19622 # We have old collect2
19623 hardcode_direct_CXX=unsupported
19624 # It fails to find uninstalled libraries when the uninstalled
19625 # path is not listed in the libpath. Setting hardcode_minus_L
19626 # to unsupported forces relinking
19627 hardcode_minus_L_CXX=yes
19628 hardcode_libdir_flag_spec_CXX='-L$libdir'
19629 hardcode_libdir_separator_CXX=
19630 fi
19631 esac
19632 shared_flag='-shared'
19633 if test yes = "$aix_use_runtimelinking"; then
19634 shared_flag=$shared_flag' $wl-G'
19635 fi
19636 # Need to ensure runtime linking is disabled for the traditional
19637 # shared library, or the linker may eventually find shared libraries
19638 # /with/ Import File - we do not want to mix them.
19639 shared_flag_aix='-shared'
19640 shared_flag_svr4='-shared $wl-G'
19641 else
19642 # not using gcc
19643 if test ia64 = "$host_cpu"; then
19644 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19645 # chokes on -Wl,-G. The following line is correct:
19646 shared_flag='-G'
19647 else
19648 if test yes = "$aix_use_runtimelinking"; then
19649 shared_flag='$wl-G'
19650 else
19651 shared_flag='$wl-bM:SRE'
19652 fi
19653 shared_flag_aix='$wl-bM:SRE'
19654 shared_flag_svr4='$wl-G'
19655 fi
19656 fi
19657
19658 export_dynamic_flag_spec_CXX='$wl-bexpall'
19659 # It seems that -bexpall does not export symbols beginning with
19660 # underscore (_), so it is better to generate a list of symbols to
19661 # export.
19662 always_export_symbols_CXX=yes
19663 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
19664 # Warning - without using the other runtime loading flags (-brtl),
19665 # -berok will link without error, but may produce a broken library.
19666 # The "-G" linker flag allows undefined symbols.
19667 no_undefined_flag_CXX='-bernotok'
19668 # Determine the default libpath from the value encoded in an empty
19669 # executable.
19670 if test set = "${lt_cv_aix_libpath+set}"; then
19671 aix_libpath=$lt_cv_aix_libpath
19672 else
19673 if test ${lt_cv_aix_libpath__CXX+y}
19674 then :
19675 printf %s "(cached) " >&6
19676 else case e in #(
19677 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19678 /* end confdefs.h. */
19679
19680 int
19681 main (void)
19682 {
19683
19684 ;
19685 return 0;
19686 }
19687 _ACEOF
19688 if ac_fn_cxx_try_link "$LINENO"
19689 then :
19690
19691 lt_aix_libpath_sed='
19692 /Import File Strings/,/^$/ {
19693 /^0/ {
19694 s/^0 *\([^ ]*\) *$/\1/
19695 p
19696 }
19697 }'
19698 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19699 # Check for a 64-bit object if we didn't find anything.
19700 if test -z "$lt_cv_aix_libpath__CXX"; then
19701 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19702 fi
19703 fi
19704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19705 conftest$ac_exeext conftest.$ac_ext
19706 if test -z "$lt_cv_aix_libpath__CXX"; then
19707 lt_cv_aix_libpath__CXX=/usr/lib:/lib
19708 fi
19709 ;;
19710 esac
19711 fi
19712
19713 aix_libpath=$lt_cv_aix_libpath__CXX
19714 fi
19715
19716 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
19717
19718 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
19719 else
19720 if test ia64 = "$host_cpu"; then
19721 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
19722 allow_undefined_flag_CXX="-z nodefs"
19723 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"
19724 else
19725 # Determine the default libpath from the value encoded in an
19726 # empty executable.
19727 if test set = "${lt_cv_aix_libpath+set}"; then
19728 aix_libpath=$lt_cv_aix_libpath
19729 else
19730 if test ${lt_cv_aix_libpath__CXX+y}
19731 then :
19732 printf %s "(cached) " >&6
19733 else case e in #(
19734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19735 /* end confdefs.h. */
19736
19737 int
19738 main (void)
19739 {
19740
19741 ;
19742 return 0;
19743 }
19744 _ACEOF
19745 if ac_fn_cxx_try_link "$LINENO"
19746 then :
19747
19748 lt_aix_libpath_sed='
19749 /Import File Strings/,/^$/ {
19750 /^0/ {
19751 s/^0 *\([^ ]*\) *$/\1/
19752 p
19753 }
19754 }'
19755 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19756 # Check for a 64-bit object if we didn't find anything.
19757 if test -z "$lt_cv_aix_libpath__CXX"; then
19758 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19759 fi
19760 fi
19761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19762 conftest$ac_exeext conftest.$ac_ext
19763 if test -z "$lt_cv_aix_libpath__CXX"; then
19764 lt_cv_aix_libpath__CXX=/usr/lib:/lib
19765 fi
19766 ;;
19767 esac
19768 fi
19769
19770 aix_libpath=$lt_cv_aix_libpath__CXX
19771 fi
19772
19773 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
19774 # Warning - without using the other run time loading flags,
19775 # -berok will link without error, but may produce a broken library.
19776 no_undefined_flag_CXX=' $wl-bernotok'
19777 allow_undefined_flag_CXX=' $wl-berok'
19778 if test yes = "$with_gnu_ld"; then
19779 # We only use this code for GNU lds that support --whole-archive.
19780 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
19781 else
19782 # Exported symbols can be pulled into shared objects from archives
19783 whole_archive_flag_spec_CXX='$convenience'
19784 fi
19785 archive_cmds_need_lc_CXX=yes
19786 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
19787 # -brtl affects multiple linker settings, -berok does not and is overridden later
19788 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
19789 if test svr4 != "$with_aix_soname"; then
19790 # This is similar to how AIX traditionally builds its shared
19791 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
19792 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
19793 fi
19794 if test aix != "$with_aix_soname"; then
19795 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
19796 else
19797 # used by -dlpreopen to get the symbols
19798 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
19799 fi
19800 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
19801 fi
19802 fi
19803 ;;
19804
19805 beos*)
19806 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19807 allow_undefined_flag_CXX=unsupported
19808 # Joseph Beckenbach <[email protected]> says some releases of gcc
19809 # support --undefined. This deserves some investigation. FIXME
19810 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19811 else
19812 ld_shlibs_CXX=no
19813 fi
19814 ;;
19815
19816 chorus*)
19817 case $cc_basename in
19818 *)
19819 # FIXME: insert proper C++ library support
19820 ld_shlibs_CXX=no
19821 ;;
19822 esac
19823 ;;
19824
19825 cygwin* | mingw* | pw32* | cegcc*)
19826 case $GXX,$cc_basename in
19827 ,cl* | no,cl*)
19828 # Native MSVC
19829 # hardcode_libdir_flag_spec is actually meaningless, as there is
19830 # no search path for DLLs.
19831 hardcode_libdir_flag_spec_CXX=' '
19832 allow_undefined_flag_CXX=unsupported
19833 always_export_symbols_CXX=yes
19834 file_list_spec_CXX='@'
19835 # Tell ltmain to make .lib files, not .a files.
19836 libext=lib
19837 # Tell ltmain to make .dll files, not .so files.
19838 shrext_cmds=.dll
19839 # FIXME: Setting linknames here is a bad hack.
19840 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
19841 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19842 cp "$export_symbols" "$output_objdir/$soname.def";
19843 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
19844 else
19845 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
19846 fi~
19847 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19848 linknames='
19849 # The linker will not automatically build a static lib if we build a DLL.
19850 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19851 enable_shared_with_static_runtimes_CXX=yes
19852 # Don't use ranlib
19853 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19854 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19855 lt_tool_outputfile="@TOOL_OUTPUT@"~
19856 case $lt_outputfile in
19857 *.exe|*.EXE) ;;
19858 *)
19859 lt_outputfile=$lt_outputfile.exe
19860 lt_tool_outputfile=$lt_tool_outputfile.exe
19861 ;;
19862 esac~
19863 func_to_tool_file "$lt_outputfile"~
19864 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
19865 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19866 $RM "$lt_outputfile.manifest";
19867 fi'
19868 ;;
19869 *)
19870 # g++
19871 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19872 # as there is no search path for DLLs.
19873 hardcode_libdir_flag_spec_CXX='-L$libdir'
19874 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
19875 allow_undefined_flag_CXX=unsupported
19876 always_export_symbols_CXX=no
19877 enable_shared_with_static_runtimes_CXX=yes
19878
19879 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19880 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'
19881 # If the export-symbols file already is a .def file, use it as
19882 # is; otherwise, prepend EXPORTS...
19883 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19884 cp $export_symbols $output_objdir/$soname.def;
19885 else
19886 echo EXPORTS > $output_objdir/$soname.def;
19887 cat $export_symbols >> $output_objdir/$soname.def;
19888 fi~
19889 $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'
19890 else
19891 ld_shlibs_CXX=no
19892 fi
19893 ;;
19894 esac
19895 ;;
19896 darwin* | rhapsody*)
19897
19898
19899 archive_cmds_need_lc_CXX=no
19900 hardcode_direct_CXX=no
19901 hardcode_automatic_CXX=yes
19902 hardcode_shlibpath_var_CXX=unsupported
19903 if test yes = "$lt_cv_ld_force_load"; then
19904 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\"`'
19905
19906 else
19907 whole_archive_flag_spec_CXX=''
19908 fi
19909 link_all_deplibs_CXX=yes
19910 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
19911 case $cc_basename in
19912 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
19913 *) _lt_dar_can_shared=$GCC ;;
19914 esac
19915 if test yes = "$_lt_dar_can_shared"; then
19916 output_verbose_link_cmd=func_echo_all
19917 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
19918 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
19919 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
19920 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"
19921 if test yes != "$lt_cv_apple_cc_single_mod"; then
19922 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
19923 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"
19924 fi
19925
19926 else
19927 ld_shlibs_CXX=no
19928 fi
19929
19930 ;;
19931
19932 os2*)
19933 hardcode_libdir_flag_spec_CXX='-L$libdir'
19934 hardcode_minus_L_CXX=yes
19935 allow_undefined_flag_CXX=unsupported
19936 shrext_cmds=.dll
19937 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19938 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19939 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19940 $ECHO EXPORTS >> $output_objdir/$libname.def~
19941 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19942 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19943 emximp -o $lib $output_objdir/$libname.def'
19944 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19945 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19946 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19947 $ECHO EXPORTS >> $output_objdir/$libname.def~
19948 prefix_cmds="$SED"~
19949 if test EXPORTS = "`$SED 1q $export_symbols`"; then
19950 prefix_cmds="$prefix_cmds -e 1d";
19951 fi~
19952 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19953 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19954 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19955 emximp -o $lib $output_objdir/$libname.def'
19956 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19957 enable_shared_with_static_runtimes_CXX=yes
19958 ;;
19959
19960 dgux*)
19961 case $cc_basename in
19962 ec++*)
19963 # FIXME: insert proper C++ library support
19964 ld_shlibs_CXX=no
19965 ;;
19966 ghcx*)
19967 # Green Hills C++ Compiler
19968 # FIXME: insert proper C++ library support
19969 ld_shlibs_CXX=no
19970 ;;
19971 *)
19972 # FIXME: insert proper C++ library support
19973 ld_shlibs_CXX=no
19974 ;;
19975 esac
19976 ;;
19977
19978 freebsd2.*)
19979 # C++ shared libraries reported to be fairly broken before
19980 # switch to ELF
19981 ld_shlibs_CXX=no
19982 ;;
19983
19984 freebsd-elf*)
19985 archive_cmds_need_lc_CXX=no
19986 ;;
19987
19988 freebsd* | dragonfly*)
19989 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19990 # conventions
19991 ld_shlibs_CXX=yes
19992 ;;
19993
19994 haiku*)
19995 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19996 link_all_deplibs_CXX=yes
19997 ;;
19998
19999 hpux9*)
20000 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
20001 hardcode_libdir_separator_CXX=:
20002 export_dynamic_flag_spec_CXX='$wl-E'
20003 hardcode_direct_CXX=yes
20004 hardcode_minus_L_CXX=yes # Not in the search PATH,
20005 # but as the default
20006 # location of the library.
20007
20008 case $cc_basename in
20009 CC*)
20010 # FIXME: insert proper C++ library support
20011 ld_shlibs_CXX=no
20012 ;;
20013 aCC*)
20014 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
20015 # Commands to make compiler produce verbose output that lists
20016 # what "hidden" libraries, object files and flags are used when
20017 # linking a shared library.
20018 #
20019 # There doesn't appear to be a way to prevent this compiler from
20020 # explicitly linking system object files so we need to strip them
20021 # from the output so that they don't get included in the library
20022 # dependencies.
20023 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"'
20024 ;;
20025 *)
20026 if test yes = "$GXX"; then
20027 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
20028 else
20029 # FIXME: insert proper C++ library support
20030 ld_shlibs_CXX=no
20031 fi
20032 ;;
20033 esac
20034 ;;
20035
20036 hpux10*|hpux11*)
20037 if test no = "$with_gnu_ld"; then
20038 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
20039 hardcode_libdir_separator_CXX=:
20040
20041 case $host_cpu in
20042 hppa*64*|ia64*)
20043 ;;
20044 *)
20045 export_dynamic_flag_spec_CXX='$wl-E'
20046 ;;
20047 esac
20048 fi
20049 case $host_cpu in
20050 hppa*64*|ia64*)
20051 hardcode_direct_CXX=no
20052 hardcode_shlibpath_var_CXX=no
20053 ;;
20054 *)
20055 hardcode_direct_CXX=yes
20056 hardcode_direct_absolute_CXX=yes
20057 hardcode_minus_L_CXX=yes # Not in the search PATH,
20058 # but as the default
20059 # location of the library.
20060 ;;
20061 esac
20062
20063 case $cc_basename in
20064 CC*)
20065 # FIXME: insert proper C++ library support
20066 ld_shlibs_CXX=no
20067 ;;
20068 aCC*)
20069 case $host_cpu in
20070 hppa*64*)
20071 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20072 ;;
20073 ia64*)
20074 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20075 ;;
20076 *)
20077 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20078 ;;
20079 esac
20080 # Commands to make compiler produce verbose output that lists
20081 # what "hidden" libraries, object files and flags are used when
20082 # linking a shared library.
20083 #
20084 # There doesn't appear to be a way to prevent this compiler from
20085 # explicitly linking system object files so we need to strip them
20086 # from the output so that they don't get included in the library
20087 # dependencies.
20088 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"'
20089 ;;
20090 *)
20091 if test yes = "$GXX"; then
20092 if test no = "$with_gnu_ld"; then
20093 case $host_cpu in
20094 hppa*64*)
20095 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20096 ;;
20097 ia64*)
20098 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20099 ;;
20100 *)
20101 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20102 ;;
20103 esac
20104 fi
20105 else
20106 # FIXME: insert proper C++ library support
20107 ld_shlibs_CXX=no
20108 fi
20109 ;;
20110 esac
20111 ;;
20112
20113 interix[3-9]*)
20114 hardcode_direct_CXX=no
20115 hardcode_shlibpath_var_CXX=no
20116 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20117 export_dynamic_flag_spec_CXX='$wl-E'
20118 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20119 # Instead, shared libraries are loaded at an image base (0x10000000 by
20120 # default) and relocated if they conflict, which is a slow very memory
20121 # consuming and fragmenting process. To avoid this, we pick a random,
20122 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20123 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20124 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'
20125 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'
20126 ;;
20127 irix5* | irix6*)
20128 case $cc_basename in
20129 CC*)
20130 # SGI C++
20131 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'
20132
20133 # Archives containing C++ object files must be created using
20134 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20135 # necessary to make sure instantiated templates are included
20136 # in the archive.
20137 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20138 ;;
20139 *)
20140 if test yes = "$GXX"; then
20141 if test no = "$with_gnu_ld"; then
20142 archive_cmds_CXX='$CC -shared $pic_flag -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'
20143 else
20144 archive_cmds_CXX='$CC -shared $pic_flag -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'
20145 fi
20146 fi
20147 link_all_deplibs_CXX=yes
20148 ;;
20149 esac
20150 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20151 hardcode_libdir_separator_CXX=:
20152 inherit_rpath_CXX=yes
20153 ;;
20154
20155 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20156 case $cc_basename in
20157 KCC*)
20158 # Kuck and Associates, Inc. (KAI) C++ Compiler
20159
20160 # KCC will only create a shared library if the output file
20161 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20162 # to its proper name (with version) after linking.
20163 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'
20164 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'
20165 # Commands to make compiler produce verbose output that lists
20166 # what "hidden" libraries, object files and flags are used when
20167 # linking a shared library.
20168 #
20169 # There doesn't appear to be a way to prevent this compiler from
20170 # explicitly linking system object files so we need to strip them
20171 # from the output so that they don't get included in the library
20172 # dependencies.
20173 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"'
20174
20175 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20176 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20177
20178 # Archives containing C++ object files must be created using
20179 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20180 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20181 ;;
20182 icpc* | ecpc* )
20183 # Intel C++
20184 with_gnu_ld=yes
20185 # version 8.0 and above of icpc choke on multiply defined symbols
20186 # if we add $predep_objects and $postdep_objects, however 7.1 and
20187 # earlier do not add the objects themselves.
20188 case `$CC -V 2>&1` in
20189 *"Version 7."*)
20190 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20191 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'
20192 ;;
20193 *) # Version 8.0 or newer
20194 tmp_idyn=
20195 case $host_cpu in
20196 ia64*) tmp_idyn=' -i_dynamic';;
20197 esac
20198 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20199 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'
20200 ;;
20201 esac
20202 archive_cmds_need_lc_CXX=no
20203 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20204 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20205 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
20206 ;;
20207 pgCC* | pgcpp*)
20208 # Portland Group C++ compiler
20209 case `$CC -V` in
20210 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20211 prelink_cmds_CXX='tpldir=Template.dir~
20212 rm -rf $tpldir~
20213 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20214 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20215 old_archive_cmds_CXX='tpldir=Template.dir~
20216 rm -rf $tpldir~
20217 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20218 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20219 $RANLIB $oldlib'
20220 archive_cmds_CXX='tpldir=Template.dir~
20221 rm -rf $tpldir~
20222 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20223 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20224 archive_expsym_cmds_CXX='tpldir=Template.dir~
20225 rm -rf $tpldir~
20226 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20227 $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'
20228 ;;
20229 *) # Version 6 and above use weak symbols
20230 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20231 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'
20232 ;;
20233 esac
20234
20235 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
20236 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20237 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'
20238 ;;
20239 cxx*)
20240 # Compaq C++
20241 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20242 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'
20243
20244 runpath_var=LD_RUN_PATH
20245 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20246 hardcode_libdir_separator_CXX=:
20247
20248 # Commands to make compiler produce verbose output that lists
20249 # what "hidden" libraries, object files and flags are used when
20250 # linking a shared library.
20251 #
20252 # There doesn't appear to be a way to prevent this compiler from
20253 # explicitly linking system object files so we need to strip them
20254 # from the output so that they don't get included in the library
20255 # dependencies.
20256 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'
20257 ;;
20258 xl* | mpixl* | bgxl*)
20259 # IBM XL 8.0 on PPC, with GNU ld
20260 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20261 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20262 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20263 if test yes = "$supports_anon_versioning"; then
20264 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20265 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20266 echo "local: *; };" >> $output_objdir/$libname.ver~
20267 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
20268 fi
20269 ;;
20270 *)
20271 case `$CC -V 2>&1 | sed 5q` in
20272 *Sun\ C*)
20273 # Sun C++ 5.9
20274 no_undefined_flag_CXX=' -zdefs'
20275 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20276 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'
20277 hardcode_libdir_flag_spec_CXX='-R$libdir'
20278 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'
20279 compiler_needs_object_CXX=yes
20280
20281 # Not sure whether something based on
20282 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20283 # would be better.
20284 output_verbose_link_cmd='func_echo_all'
20285
20286 # Archives containing C++ object files must be created using
20287 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20288 # necessary to make sure instantiated templates are included
20289 # in the archive.
20290 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20291 ;;
20292 esac
20293 ;;
20294 esac
20295 ;;
20296
20297 lynxos*)
20298 # FIXME: insert proper C++ library support
20299 ld_shlibs_CXX=no
20300 ;;
20301
20302 m88k*)
20303 # FIXME: insert proper C++ library support
20304 ld_shlibs_CXX=no
20305 ;;
20306
20307 mvs*)
20308 case $cc_basename in
20309 cxx*)
20310 # FIXME: insert proper C++ library support
20311 ld_shlibs_CXX=no
20312 ;;
20313 *)
20314 # FIXME: insert proper C++ library support
20315 ld_shlibs_CXX=no
20316 ;;
20317 esac
20318 ;;
20319
20320 netbsd*)
20321 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20322 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20323 wlarc=
20324 hardcode_libdir_flag_spec_CXX='-R$libdir'
20325 hardcode_direct_CXX=yes
20326 hardcode_shlibpath_var_CXX=no
20327 fi
20328 # Workaround some broken pre-1.5 toolchains
20329 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20330 ;;
20331
20332 *nto* | *qnx*)
20333 ld_shlibs_CXX=yes
20334 ;;
20335
20336 openbsd* | bitrig*)
20337 if test -f /usr/libexec/ld.so; then
20338 hardcode_direct_CXX=yes
20339 hardcode_shlibpath_var_CXX=no
20340 hardcode_direct_absolute_CXX=yes
20341 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20342 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
20344 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
20345 export_dynamic_flag_spec_CXX='$wl-E'
20346 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
20347 fi
20348 output_verbose_link_cmd=func_echo_all
20349 else
20350 ld_shlibs_CXX=no
20351 fi
20352 ;;
20353
20354 osf3* | osf4* | osf5*)
20355 case $cc_basename in
20356 KCC*)
20357 # Kuck and Associates, Inc. (KAI) C++ Compiler
20358
20359 # KCC will only create a shared library if the output file
20360 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20361 # to its proper name (with version) after linking.
20362 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'
20363
20364 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20365 hardcode_libdir_separator_CXX=:
20366
20367 # Archives containing C++ object files must be created using
20368 # the KAI C++ compiler.
20369 case $host in
20370 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20371 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20372 esac
20373 ;;
20374 RCC*)
20375 # Rational C++ 2.4.1
20376 # FIXME: insert proper C++ library support
20377 ld_shlibs_CXX=no
20378 ;;
20379 cxx*)
20380 case $host in
20381 osf3*)
20382 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
20383 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'
20384 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20385 ;;
20386 *)
20387 allow_undefined_flag_CXX=' -expect_unresolved \*'
20388 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'
20389 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20390 echo "-hidden">> $lib.exp~
20391 $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~
20392 $RM $lib.exp'
20393 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20394 ;;
20395 esac
20396
20397 hardcode_libdir_separator_CXX=:
20398
20399 # Commands to make compiler produce verbose output that lists
20400 # what "hidden" libraries, object files and flags are used when
20401 # linking a shared library.
20402 #
20403 # There doesn't appear to be a way to prevent this compiler from
20404 # explicitly linking system object files so we need to strip them
20405 # from the output so that they don't get included in the library
20406 # dependencies.
20407 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"'
20408 ;;
20409 *)
20410 if test yes,no = "$GXX,$with_gnu_ld"; then
20411 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
20412 case $host in
20413 osf3*)
20414 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'
20415 ;;
20416 *)
20417 archive_cmds_CXX='$CC -shared $pic_flag -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'
20418 ;;
20419 esac
20420
20421 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20422 hardcode_libdir_separator_CXX=:
20423
20424 # Commands to make compiler produce verbose output that lists
20425 # what "hidden" libraries, object files and flags are used when
20426 # linking a shared library.
20427 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20428
20429 else
20430 # FIXME: insert proper C++ library support
20431 ld_shlibs_CXX=no
20432 fi
20433 ;;
20434 esac
20435 ;;
20436
20437 psos*)
20438 # FIXME: insert proper C++ library support
20439 ld_shlibs_CXX=no
20440 ;;
20441
20442 sunos4*)
20443 case $cc_basename in
20444 CC*)
20445 # Sun C++ 4.x
20446 # FIXME: insert proper C++ library support
20447 ld_shlibs_CXX=no
20448 ;;
20449 lcc*)
20450 # Lucid
20451 # FIXME: insert proper C++ library support
20452 ld_shlibs_CXX=no
20453 ;;
20454 *)
20455 # FIXME: insert proper C++ library support
20456 ld_shlibs_CXX=no
20457 ;;
20458 esac
20459 ;;
20460
20461 solaris*)
20462 case $cc_basename in
20463 CC* | sunCC*)
20464 # Sun C++ 4.2, 5.x and Centerline C++
20465 archive_cmds_need_lc_CXX=yes
20466 no_undefined_flag_CXX=' -zdefs'
20467 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20468 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20469 $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'
20470
20471 hardcode_libdir_flag_spec_CXX='-R$libdir'
20472 hardcode_shlibpath_var_CXX=no
20473 case $host_os in
20474 solaris2.[0-5] | solaris2.[0-5].*) ;;
20475 *)
20476 # The compiler driver will combine and reorder linker options,
20477 # but understands '-z linker_flag'.
20478 # Supported since Solaris 2.6 (maybe 2.5.1?)
20479 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20480 ;;
20481 esac
20482 link_all_deplibs_CXX=yes
20483
20484 output_verbose_link_cmd='func_echo_all'
20485
20486 # Archives containing C++ object files must be created using
20487 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20488 # necessary to make sure instantiated templates are included
20489 # in the archive.
20490 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20491 ;;
20492 gcx*)
20493 # Green Hills C++ Compiler
20494 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20495
20496 # The C++ compiler must be used to create the archive.
20497 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20498 ;;
20499 *)
20500 # GNU C++ compiler with Solaris linker
20501 if test yes,no = "$GXX,$with_gnu_ld"; then
20502 no_undefined_flag_CXX=' $wl-z ${wl}defs'
20503 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20504 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20505 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20506 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20507
20508 # Commands to make compiler produce verbose output that lists
20509 # what "hidden" libraries, object files and flags are used when
20510 # linking a shared library.
20511 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20512 else
20513 # g++ 2.7 appears to require '-G' NOT '-shared' on this
20514 # platform.
20515 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20516 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20517 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20518
20519 # Commands to make compiler produce verbose output that lists
20520 # what "hidden" libraries, object files and flags are used when
20521 # linking a shared library.
20522 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20523 fi
20524
20525 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
20526 case $host_os in
20527 solaris2.[0-5] | solaris2.[0-5].*) ;;
20528 *)
20529 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
20530 ;;
20531 esac
20532 fi
20533 ;;
20534 esac
20535 ;;
20536
20537 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20538 no_undefined_flag_CXX='$wl-z,text'
20539 archive_cmds_need_lc_CXX=no
20540 hardcode_shlibpath_var_CXX=no
20541 runpath_var='LD_RUN_PATH'
20542
20543 case $cc_basename in
20544 CC*)
20545 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20546 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20547 ;;
20548 *)
20549 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20550 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20551 ;;
20552 esac
20553 ;;
20554
20555 sysv5* | sco3.2v5* | sco5v6*)
20556 # Note: We CANNOT use -z defs as we might desire, because we do not
20557 # link with -lc, and that would cause any symbols used from libc to
20558 # always be unresolved, which means just about no library would
20559 # ever link correctly. If we're not using GNU ld we use -z text
20560 # though, which does catch some bad symbols but isn't as heavy-handed
20561 # as -z defs.
20562 no_undefined_flag_CXX='$wl-z,text'
20563 allow_undefined_flag_CXX='$wl-z,nodefs'
20564 archive_cmds_need_lc_CXX=no
20565 hardcode_shlibpath_var_CXX=no
20566 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
20567 hardcode_libdir_separator_CXX=':'
20568 link_all_deplibs_CXX=yes
20569 export_dynamic_flag_spec_CXX='$wl-Bexport'
20570 runpath_var='LD_RUN_PATH'
20571
20572 case $cc_basename in
20573 CC*)
20574 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20575 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20576 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20577 '"$old_archive_cmds_CXX"
20578 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20579 '"$reload_cmds_CXX"
20580 ;;
20581 *)
20582 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20583 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20584 ;;
20585 esac
20586 ;;
20587
20588 tandem*)
20589 case $cc_basename in
20590 NCC*)
20591 # NonStop-UX NCC 3.20
20592 # FIXME: insert proper C++ library support
20593 ld_shlibs_CXX=no
20594 ;;
20595 *)
20596 # FIXME: insert proper C++ library support
20597 ld_shlibs_CXX=no
20598 ;;
20599 esac
20600 ;;
20601
20602 vxworks*)
20603 # FIXME: insert proper C++ library support
20604 ld_shlibs_CXX=no
20605 ;;
20606
20607 *)
20608 # FIXME: insert proper C++ library support
20609 ld_shlibs_CXX=no
20610 ;;
20611 esac
20612
20613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20614 printf "%s\n" "$ld_shlibs_CXX" >&6; }
20615 test no = "$ld_shlibs_CXX" && can_build_shared=no
20616
20617 GCC_CXX=$GXX
20618 LD_CXX=$LD
20619
20620 ## CAVEAT EMPTOR:
20621 ## There is no encapsulation within the following macros, do not change
20622 ## the running order or otherwise move them around unless you know exactly
20623 ## what you are doing...
20624 # Dependencies to place before and after the object being linked:
20625 predep_objects_CXX=
20626 postdep_objects_CXX=
20627 predeps_CXX=
20628 postdeps_CXX=
20629 compiler_lib_search_path_CXX=
20630
20631 cat > conftest.$ac_ext <<_LT_EOF
20632 class Foo
20633 {
20634 public:
20635 Foo (void) { a = 0; }
20636 private:
20637 int a;
20638 };
20639 _LT_EOF
20640
20641
20642 _lt_libdeps_save_CFLAGS=$CFLAGS
20643 case "$CC $CFLAGS " in #(
20644 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20645 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
20646 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
20647 esac
20648
20649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20650 (eval $ac_compile) 2>&5
20651 ac_status=$?
20652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20653 test $ac_status = 0; }; then
20654 # Parse the compiler output and extract the necessary
20655 # objects, libraries and library flags.
20656
20657 # Sentinel used to keep track of whether or not we are before
20658 # the conftest object file.
20659 pre_test_object_deps_done=no
20660
20661 for p in `eval "$output_verbose_link_cmd"`; do
20662 case $prev$p in
20663
20664 -L* | -R* | -l*)
20665 # Some compilers place space between "-{L,R}" and the path.
20666 # Remove the space.
20667 if test x-L = "$p" ||
20668 test x-R = "$p"; then
20669 prev=$p
20670 continue
20671 fi
20672
20673 # Expand the sysroot to ease extracting the directories later.
20674 if test -z "$prev"; then
20675 case $p in
20676 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20677 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20678 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20679 esac
20680 fi
20681 case $p in
20682 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20683 esac
20684 if test no = "$pre_test_object_deps_done"; then
20685 case $prev in
20686 -L | -R)
20687 # Internal compiler library paths should come after those
20688 # provided the user. The postdeps already come after the
20689 # user supplied libs so there is no need to process them.
20690 if test -z "$compiler_lib_search_path_CXX"; then
20691 compiler_lib_search_path_CXX=$prev$p
20692 else
20693 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
20694 fi
20695 ;;
20696 # The "-l" case would never come before the object being
20697 # linked, so don't bother handling this case.
20698 esac
20699 else
20700 if test -z "$postdeps_CXX"; then
20701 postdeps_CXX=$prev$p
20702 else
20703 postdeps_CXX="${postdeps_CXX} $prev$p"
20704 fi
20705 fi
20706 prev=
20707 ;;
20708
20709 *.lto.$objext) ;; # Ignore GCC LTO objects
20710 *.$objext)
20711 # This assumes that the test object file only shows up
20712 # once in the compiler output.
20713 if test "$p" = "conftest.$objext"; then
20714 pre_test_object_deps_done=yes
20715 continue
20716 fi
20717
20718 if test no = "$pre_test_object_deps_done"; then
20719 if test -z "$predep_objects_CXX"; then
20720 predep_objects_CXX=$p
20721 else
20722 predep_objects_CXX="$predep_objects_CXX $p"
20723 fi
20724 else
20725 if test -z "$postdep_objects_CXX"; then
20726 postdep_objects_CXX=$p
20727 else
20728 postdep_objects_CXX="$postdep_objects_CXX $p"
20729 fi
20730 fi
20731 ;;
20732
20733 *) ;; # Ignore the rest.
20734
20735 esac
20736 done
20737
20738 # Clean up.
20739 rm -f a.out a.exe
20740 else
20741 echo "libtool.m4: error: problem compiling CXX test program"
20742 fi
20743
20744 $RM -f confest.$objext
20745 CFLAGS=$_lt_libdeps_save_CFLAGS
20746
20747 # PORTME: override above test on systems where it is broken
20748 case $host_os in
20749 interix[3-9]*)
20750 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20751 # hack all around it, let's just trust "g++" to DTRT.
20752 predep_objects_CXX=
20753 postdep_objects_CXX=
20754 postdeps_CXX=
20755 ;;
20756 esac
20757
20758
20759 case " $postdeps_CXX " in
20760 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20761 esac
20762 compiler_lib_search_dirs_CXX=
20763 if test -n "${compiler_lib_search_path_CXX}"; then
20764 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
20765 fi
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797 lt_prog_compiler_wl_CXX=
20798 lt_prog_compiler_pic_CXX=
20799 lt_prog_compiler_static_CXX=
20800
20801
20802 # C++ specific cases for pic, static, wl, etc.
20803 if test yes = "$GXX"; then
20804 lt_prog_compiler_wl_CXX='-Wl,'
20805 lt_prog_compiler_static_CXX='-static'
20806
20807 case $host_os in
20808 aix*)
20809 # All AIX code is PIC.
20810 if test ia64 = "$host_cpu"; then
20811 # AIX 5 now supports IA64 processor
20812 lt_prog_compiler_static_CXX='-Bstatic'
20813 fi
20814 lt_prog_compiler_pic_CXX='-fPIC'
20815 ;;
20816
20817 amigaos*)
20818 case $host_cpu in
20819 powerpc)
20820 # see comment about AmigaOS4 .so support
20821 lt_prog_compiler_pic_CXX='-fPIC'
20822 ;;
20823 m68k)
20824 # FIXME: we need at least 68020 code to build shared libraries, but
20825 # adding the '-m68020' flag to GCC prevents building anything better,
20826 # like '-m68040'.
20827 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20828 ;;
20829 esac
20830 ;;
20831
20832 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20833 # PIC is the default for these OSes.
20834 ;;
20835 mingw* | cygwin* | os2* | pw32* | cegcc*)
20836 # This hack is so that the source file can tell whether it is being
20837 # built for inclusion in a dll (and should export symbols for example).
20838 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20839 # (--disable-auto-import) libraries
20840 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20841 case $host_os in
20842 os2*)
20843 lt_prog_compiler_static_CXX='$wl-static'
20844 ;;
20845 esac
20846 ;;
20847 darwin* | rhapsody*)
20848 # PIC is the default on this platform
20849 # Common symbols not allowed in MH_DYLIB files
20850 lt_prog_compiler_pic_CXX='-fno-common'
20851 ;;
20852 *djgpp*)
20853 # DJGPP does not support shared libraries at all
20854 lt_prog_compiler_pic_CXX=
20855 ;;
20856 haiku*)
20857 # PIC is the default for Haiku.
20858 # The "-static" flag exists, but is broken.
20859 lt_prog_compiler_static_CXX=
20860 ;;
20861 interix[3-9]*)
20862 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20863 # Instead, we relocate shared libraries at runtime.
20864 ;;
20865 sysv4*MP*)
20866 if test -d /usr/nec; then
20867 lt_prog_compiler_pic_CXX=-Kconform_pic
20868 fi
20869 ;;
20870 hpux*)
20871 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20872 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20873 # sets the default TLS model and affects inlining.
20874 case $host_cpu in
20875 hppa*64*)
20876 ;;
20877 *)
20878 lt_prog_compiler_pic_CXX='-fPIC'
20879 ;;
20880 esac
20881 ;;
20882 *qnx* | *nto*)
20883 # QNX uses GNU C++, but need to define -shared option too, otherwise
20884 # it will coredump.
20885 lt_prog_compiler_pic_CXX='-fPIC -shared'
20886 ;;
20887 *)
20888 lt_prog_compiler_pic_CXX='-fPIC'
20889 ;;
20890 esac
20891 else
20892 case $host_os in
20893 aix[4-9]*)
20894 # All AIX code is PIC.
20895 if test ia64 = "$host_cpu"; then
20896 # AIX 5 now supports IA64 processor
20897 lt_prog_compiler_static_CXX='-Bstatic'
20898 else
20899 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20900 fi
20901 ;;
20902 chorus*)
20903 case $cc_basename in
20904 cxch68*)
20905 # Green Hills C++ Compiler
20906 # _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"
20907 ;;
20908 esac
20909 ;;
20910 mingw* | cygwin* | os2* | pw32* | cegcc*)
20911 # This hack is so that the source file can tell whether it is being
20912 # built for inclusion in a dll (and should export symbols for example).
20913 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20914 ;;
20915 dgux*)
20916 case $cc_basename in
20917 ec++*)
20918 lt_prog_compiler_pic_CXX='-KPIC'
20919 ;;
20920 ghcx*)
20921 # Green Hills C++ Compiler
20922 lt_prog_compiler_pic_CXX='-pic'
20923 ;;
20924 *)
20925 ;;
20926 esac
20927 ;;
20928 freebsd* | dragonfly*)
20929 # FreeBSD uses GNU C++
20930 ;;
20931 hpux9* | hpux10* | hpux11*)
20932 case $cc_basename in
20933 CC*)
20934 lt_prog_compiler_wl_CXX='-Wl,'
20935 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20936 if test ia64 != "$host_cpu"; then
20937 lt_prog_compiler_pic_CXX='+Z'
20938 fi
20939 ;;
20940 aCC*)
20941 lt_prog_compiler_wl_CXX='-Wl,'
20942 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20943 case $host_cpu in
20944 hppa*64*|ia64*)
20945 # +Z the default
20946 ;;
20947 *)
20948 lt_prog_compiler_pic_CXX='+Z'
20949 ;;
20950 esac
20951 ;;
20952 *)
20953 ;;
20954 esac
20955 ;;
20956 interix*)
20957 # This is c89, which is MS Visual C++ (no shared libs)
20958 # Anyone wants to do a port?
20959 ;;
20960 irix5* | irix6* | nonstopux*)
20961 case $cc_basename in
20962 CC*)
20963 lt_prog_compiler_wl_CXX='-Wl,'
20964 lt_prog_compiler_static_CXX='-non_shared'
20965 # CC pic flag -KPIC is the default.
20966 ;;
20967 *)
20968 ;;
20969 esac
20970 ;;
20971 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20972 case $cc_basename in
20973 KCC*)
20974 # KAI C++ Compiler
20975 lt_prog_compiler_wl_CXX='--backend -Wl,'
20976 lt_prog_compiler_pic_CXX='-fPIC'
20977 ;;
20978 ecpc* )
20979 # old Intel C++ for x86_64, which still supported -KPIC.
20980 lt_prog_compiler_wl_CXX='-Wl,'
20981 lt_prog_compiler_pic_CXX='-KPIC'
20982 lt_prog_compiler_static_CXX='-static'
20983 ;;
20984 icpc* )
20985 # Intel C++, used to be incompatible with GCC.
20986 # ICC 10 doesn't accept -KPIC any more.
20987 lt_prog_compiler_wl_CXX='-Wl,'
20988 lt_prog_compiler_pic_CXX='-fPIC'
20989 lt_prog_compiler_static_CXX='-static'
20990 ;;
20991 pgCC* | pgcpp*)
20992 # Portland Group C++ compiler
20993 lt_prog_compiler_wl_CXX='-Wl,'
20994 lt_prog_compiler_pic_CXX='-fpic'
20995 lt_prog_compiler_static_CXX='-Bstatic'
20996 ;;
20997 cxx*)
20998 # Compaq C++
20999 # Make sure the PIC flag is empty. It appears that all Alpha
21000 # Linux and Compaq Tru64 Unix objects are PIC.
21001 lt_prog_compiler_pic_CXX=
21002 lt_prog_compiler_static_CXX='-non_shared'
21003 ;;
21004 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21005 # IBM XL 8.0, 9.0 on PPC and BlueGene
21006 lt_prog_compiler_wl_CXX='-Wl,'
21007 lt_prog_compiler_pic_CXX='-qpic'
21008 lt_prog_compiler_static_CXX='-qstaticlink'
21009 ;;
21010 *)
21011 case `$CC -V 2>&1 | sed 5q` in
21012 *Sun\ C*)
21013 # Sun C++ 5.9
21014 lt_prog_compiler_pic_CXX='-KPIC'
21015 lt_prog_compiler_static_CXX='-Bstatic'
21016 lt_prog_compiler_wl_CXX='-Qoption ld '
21017 ;;
21018 esac
21019 ;;
21020 esac
21021 ;;
21022 lynxos*)
21023 ;;
21024 m88k*)
21025 ;;
21026 mvs*)
21027 case $cc_basename in
21028 cxx*)
21029 lt_prog_compiler_pic_CXX='-W c,exportall'
21030 ;;
21031 *)
21032 ;;
21033 esac
21034 ;;
21035 netbsd*)
21036 ;;
21037 *qnx* | *nto*)
21038 # QNX uses GNU C++, but need to define -shared option too, otherwise
21039 # it will coredump.
21040 lt_prog_compiler_pic_CXX='-fPIC -shared'
21041 ;;
21042 osf3* | osf4* | osf5*)
21043 case $cc_basename in
21044 KCC*)
21045 lt_prog_compiler_wl_CXX='--backend -Wl,'
21046 ;;
21047 RCC*)
21048 # Rational C++ 2.4.1
21049 lt_prog_compiler_pic_CXX='-pic'
21050 ;;
21051 cxx*)
21052 # Digital/Compaq C++
21053 lt_prog_compiler_wl_CXX='-Wl,'
21054 # Make sure the PIC flag is empty. It appears that all Alpha
21055 # Linux and Compaq Tru64 Unix objects are PIC.
21056 lt_prog_compiler_pic_CXX=
21057 lt_prog_compiler_static_CXX='-non_shared'
21058 ;;
21059 *)
21060 ;;
21061 esac
21062 ;;
21063 psos*)
21064 ;;
21065 solaris*)
21066 case $cc_basename in
21067 CC* | sunCC*)
21068 # Sun C++ 4.2, 5.x and Centerline C++
21069 lt_prog_compiler_pic_CXX='-KPIC'
21070 lt_prog_compiler_static_CXX='-Bstatic'
21071 lt_prog_compiler_wl_CXX='-Qoption ld '
21072 ;;
21073 gcx*)
21074 # Green Hills C++ Compiler
21075 lt_prog_compiler_pic_CXX='-PIC'
21076 ;;
21077 *)
21078 ;;
21079 esac
21080 ;;
21081 sunos4*)
21082 case $cc_basename in
21083 CC*)
21084 # Sun C++ 4.x
21085 lt_prog_compiler_pic_CXX='-pic'
21086 lt_prog_compiler_static_CXX='-Bstatic'
21087 ;;
21088 lcc*)
21089 # Lucid
21090 lt_prog_compiler_pic_CXX='-pic'
21091 ;;
21092 *)
21093 ;;
21094 esac
21095 ;;
21096 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21097 case $cc_basename in
21098 CC*)
21099 lt_prog_compiler_wl_CXX='-Wl,'
21100 lt_prog_compiler_pic_CXX='-KPIC'
21101 lt_prog_compiler_static_CXX='-Bstatic'
21102 ;;
21103 esac
21104 ;;
21105 tandem*)
21106 case $cc_basename in
21107 NCC*)
21108 # NonStop-UX NCC 3.20
21109 lt_prog_compiler_pic_CXX='-KPIC'
21110 ;;
21111 *)
21112 ;;
21113 esac
21114 ;;
21115 vxworks*)
21116 ;;
21117 *)
21118 lt_prog_compiler_can_build_shared_CXX=no
21119 ;;
21120 esac
21121 fi
21122
21123 case $host_os in
21124 # For platforms that do not support PIC, -DPIC is meaningless:
21125 *djgpp*)
21126 lt_prog_compiler_pic_CXX=
21127 ;;
21128 *)
21129 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21130 ;;
21131 esac
21132
21133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21134 printf %s "checking for $compiler option to produce PIC... " >&6; }
21135 if test ${lt_cv_prog_compiler_pic_CXX+y}
21136 then :
21137 printf %s "(cached) " >&6
21138 else case e in #(
21139 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
21140 esac
21141 fi
21142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
21143 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
21144 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
21145
21146 #
21147 # Check to make sure the PIC flag actually works.
21148 #
21149 if test -n "$lt_prog_compiler_pic_CXX"; then
21150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21151 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21152 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
21153 then :
21154 printf %s "(cached) " >&6
21155 else case e in #(
21156 e) lt_cv_prog_compiler_pic_works_CXX=no
21157 ac_outfile=conftest.$ac_objext
21158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21159 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
21160 # Insert the option either (1) after the last *FLAGS variable, or
21161 # (2) before a word containing "conftest.", or (3) at the end.
21162 # Note that $ac_compile itself does not contain backslashes and begins
21163 # with a dollar sign (not a hyphen), so the echo should work correctly.
21164 # The option is referenced via a variable to avoid confusing sed.
21165 lt_compile=`echo "$ac_compile" | $SED \
21166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21168 -e 's:$: $lt_compiler_flag:'`
21169 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21170 (eval "$lt_compile" 2>conftest.err)
21171 ac_status=$?
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 if (exit $ac_status) && test -s "$ac_outfile"; then
21175 # The compiler can only warn and ignore the option if not recognized
21176 # So say no if there are warnings other than the usual output.
21177 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21179 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21180 lt_cv_prog_compiler_pic_works_CXX=yes
21181 fi
21182 fi
21183 $RM conftest*
21184 ;;
21185 esac
21186 fi
21187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21188 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21189
21190 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
21191 case $lt_prog_compiler_pic_CXX in
21192 "" | " "*) ;;
21193 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21194 esac
21195 else
21196 lt_prog_compiler_pic_CXX=
21197 lt_prog_compiler_can_build_shared_CXX=no
21198 fi
21199
21200 fi
21201
21202
21203
21204
21205
21206 #
21207 # Check to make sure the static flag actually works.
21208 #
21209 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21211 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21212 if test ${lt_cv_prog_compiler_static_works_CXX+y}
21213 then :
21214 printf %s "(cached) " >&6
21215 else case e in #(
21216 e) lt_cv_prog_compiler_static_works_CXX=no
21217 save_LDFLAGS=$LDFLAGS
21218 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21219 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21220 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21221 # The linker can only warn and ignore the option if not recognized
21222 # So say no if there are warnings
21223 if test -s conftest.err; then
21224 # Append any errors to the config.log.
21225 cat conftest.err 1>&5
21226 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21228 if diff conftest.exp conftest.er2 >/dev/null; then
21229 lt_cv_prog_compiler_static_works_CXX=yes
21230 fi
21231 else
21232 lt_cv_prog_compiler_static_works_CXX=yes
21233 fi
21234 fi
21235 $RM -r conftest*
21236 LDFLAGS=$save_LDFLAGS
21237 ;;
21238 esac
21239 fi
21240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21241 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21242
21243 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
21244 :
21245 else
21246 lt_prog_compiler_static_CXX=
21247 fi
21248
21249
21250
21251
21252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21253 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21254 if test ${lt_cv_prog_compiler_c_o_CXX+y}
21255 then :
21256 printf %s "(cached) " >&6
21257 else case e in #(
21258 e) lt_cv_prog_compiler_c_o_CXX=no
21259 $RM -r conftest 2>/dev/null
21260 mkdir conftest
21261 cd conftest
21262 mkdir out
21263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21264
21265 lt_compiler_flag="-o out/conftest2.$ac_objext"
21266 # Insert the option either (1) after the last *FLAGS variable, or
21267 # (2) before a word containing "conftest.", or (3) at the end.
21268 # Note that $ac_compile itself does not contain backslashes and begins
21269 # with a dollar sign (not a hyphen), so the echo should work correctly.
21270 lt_compile=`echo "$ac_compile" | $SED \
21271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21273 -e 's:$: $lt_compiler_flag:'`
21274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21275 (eval "$lt_compile" 2>out/conftest.err)
21276 ac_status=$?
21277 cat out/conftest.err >&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21280 then
21281 # The compiler can only warn and ignore the option if not recognized
21282 # So say no if there are warnings
21283 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21286 lt_cv_prog_compiler_c_o_CXX=yes
21287 fi
21288 fi
21289 chmod u+w . 2>&5
21290 $RM conftest*
21291 # SGI C++ compiler will create directory out/ii_files/ for
21292 # template instantiation
21293 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21294 $RM out/* && rmdir out
21295 cd ..
21296 $RM -r conftest
21297 $RM conftest*
21298 ;;
21299 esac
21300 fi
21301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21302 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21303
21304
21305
21306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21307 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21308 if test ${lt_cv_prog_compiler_c_o_CXX+y}
21309 then :
21310 printf %s "(cached) " >&6
21311 else case e in #(
21312 e) lt_cv_prog_compiler_c_o_CXX=no
21313 $RM -r conftest 2>/dev/null
21314 mkdir conftest
21315 cd conftest
21316 mkdir out
21317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21318
21319 lt_compiler_flag="-o out/conftest2.$ac_objext"
21320 # Insert the option either (1) after the last *FLAGS variable, or
21321 # (2) before a word containing "conftest.", or (3) at the end.
21322 # Note that $ac_compile itself does not contain backslashes and begins
21323 # with a dollar sign (not a hyphen), so the echo should work correctly.
21324 lt_compile=`echo "$ac_compile" | $SED \
21325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21327 -e 's:$: $lt_compiler_flag:'`
21328 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21329 (eval "$lt_compile" 2>out/conftest.err)
21330 ac_status=$?
21331 cat out/conftest.err >&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21334 then
21335 # The compiler can only warn and ignore the option if not recognized
21336 # So say no if there are warnings
21337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21338 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21339 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21340 lt_cv_prog_compiler_c_o_CXX=yes
21341 fi
21342 fi
21343 chmod u+w . 2>&5
21344 $RM conftest*
21345 # SGI C++ compiler will create directory out/ii_files/ for
21346 # template instantiation
21347 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21348 $RM out/* && rmdir out
21349 cd ..
21350 $RM -r conftest
21351 $RM conftest*
21352 ;;
21353 esac
21354 fi
21355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21356 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21357
21358
21359
21360
21361 hard_links=nottested
21362 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
21363 # do not overwrite the value of need_locks provided by the user
21364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21365 printf %s "checking if we can lock with hard links... " >&6; }
21366 hard_links=yes
21367 $RM conftest*
21368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21369 touch conftest.a
21370 ln conftest.a conftest.b 2>&5 || hard_links=no
21371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21373 printf "%s\n" "$hard_links" >&6; }
21374 if test no = "$hard_links"; then
21375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
21376 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
21377 need_locks=warn
21378 fi
21379 else
21380 need_locks=no
21381 fi
21382
21383
21384
21385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21386 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21387
21388 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21389 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21390 case $host_os in
21391 aix[4-9]*)
21392 # If we're using GNU nm, then we don't want the "-C" option.
21393 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
21394 # Without the "-l" option, or with the "-B" option, AIX nm treats
21395 # weak defined symbols like other global defined symbols, whereas
21396 # GNU nm marks them as "W".
21397 # While the 'weak' keyword is ignored in the Export File, we need
21398 # it in the Import File for the 'aix-soname' feature, so we have
21399 # to replace the "-B" option with "-P" for AIX nm.
21400 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21401 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
21402 else
21403 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
21404 fi
21405 ;;
21406 pw32*)
21407 export_symbols_cmds_CXX=$ltdll_cmds
21408 ;;
21409 cygwin* | mingw* | cegcc*)
21410 case $cc_basename in
21411 cl*)
21412 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21413 ;;
21414 *)
21415 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
21416 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
21417 ;;
21418 esac
21419 ;;
21420 *)
21421 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21422 ;;
21423 esac
21424
21425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21426 printf "%s\n" "$ld_shlibs_CXX" >&6; }
21427 test no = "$ld_shlibs_CXX" && can_build_shared=no
21428
21429 with_gnu_ld_CXX=$with_gnu_ld
21430
21431
21432
21433
21434
21435
21436 #
21437 # Do we need to explicitly link libc?
21438 #
21439 case "x$archive_cmds_need_lc_CXX" in
21440 x|xyes)
21441 # Assume -lc should be added
21442 archive_cmds_need_lc_CXX=yes
21443
21444 if test yes,yes = "$GCC,$enable_shared"; then
21445 case $archive_cmds_CXX in
21446 *'~'*)
21447 # FIXME: we may have to deal with multi-command sequences.
21448 ;;
21449 '$CC '*)
21450 # Test whether the compiler implicitly links with -lc since on some
21451 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21452 # to ld, don't add -lc before -lgcc.
21453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21454 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
21455 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
21456 then :
21457 printf %s "(cached) " >&6
21458 else case e in #(
21459 e) $RM conftest*
21460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21461
21462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21463 (eval $ac_compile) 2>&5
21464 ac_status=$?
21465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21466 test $ac_status = 0; } 2>conftest.err; then
21467 soname=conftest
21468 lib=conftest
21469 libobjs=conftest.$ac_objext
21470 deplibs=
21471 wl=$lt_prog_compiler_wl_CXX
21472 pic_flag=$lt_prog_compiler_pic_CXX
21473 compiler_flags=-v
21474 linker_flags=-v
21475 verstring=
21476 output_objdir=.
21477 libname=conftest
21478 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21479 allow_undefined_flag_CXX=
21480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21481 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21482 ac_status=$?
21483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21484 test $ac_status = 0; }
21485 then
21486 lt_cv_archive_cmds_need_lc_CXX=no
21487 else
21488 lt_cv_archive_cmds_need_lc_CXX=yes
21489 fi
21490 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21491 else
21492 cat conftest.err 1>&5
21493 fi
21494 $RM conftest*
21495 ;;
21496 esac
21497 fi
21498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21499 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21500 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21501 ;;
21502 esac
21503 fi
21504 ;;
21505 esac
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21569 printf %s "checking dynamic linker characteristics... " >&6; }
21570
21571 library_names_spec=
21572 libname_spec='lib$name'
21573 soname_spec=
21574 shrext_cmds=.so
21575 postinstall_cmds=
21576 postuninstall_cmds=
21577 finish_cmds=
21578 finish_eval=
21579 shlibpath_var=
21580 shlibpath_overrides_runpath=unknown
21581 version_type=none
21582 dynamic_linker="$host_os ld.so"
21583 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21584 need_lib_prefix=unknown
21585 hardcode_into_libs=no
21586
21587 # when you set need_version to no, make sure it does not cause -set_version
21588 # flags to be left without arguments
21589 need_version=unknown
21590
21591
21592
21593 case $host_os in
21594 aix3*)
21595 version_type=linux # correct to gnu/linux during the next big refactor
21596 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
21597 shlibpath_var=LIBPATH
21598
21599 # AIX 3 has no versioning support, so we append a major version to the name.
21600 soname_spec='$libname$release$shared_ext$major'
21601 ;;
21602
21603 aix[4-9]*)
21604 version_type=linux # correct to gnu/linux during the next big refactor
21605 need_lib_prefix=no
21606 need_version=no
21607 hardcode_into_libs=yes
21608 if test ia64 = "$host_cpu"; then
21609 # AIX 5 supports IA64
21610 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
21611 shlibpath_var=LD_LIBRARY_PATH
21612 else
21613 # With GCC up to 2.95.x, collect2 would create an import file
21614 # for dependence libraries. The import file would start with
21615 # the line '#! .'. This would cause the generated library to
21616 # depend on '.', always an invalid library. This was fixed in
21617 # development snapshots of GCC prior to 3.0.
21618 case $host_os in
21619 aix4 | aix4.[01] | aix4.[01].*)
21620 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21621 echo ' yes '
21622 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
21623 :
21624 else
21625 can_build_shared=no
21626 fi
21627 ;;
21628 esac
21629 # Using Import Files as archive members, it is possible to support
21630 # filename-based versioning of shared library archives on AIX. While
21631 # this would work for both with and without runtime linking, it will
21632 # prevent static linking of such archives. So we do filename-based
21633 # shared library versioning with .so extension only, which is used
21634 # when both runtime linking and shared linking is enabled.
21635 # Unfortunately, runtime linking may impact performance, so we do
21636 # not want this to be the default eventually. Also, we use the
21637 # versioned .so libs for executables only if there is the -brtl
21638 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
21639 # To allow for filename-based versioning support, we need to create
21640 # libNAME.so.V as an archive file, containing:
21641 # *) an Import File, referring to the versioned filename of the
21642 # archive as well as the shared archive member, telling the
21643 # bitwidth (32 or 64) of that shared object, and providing the
21644 # list of exported symbols of that shared object, eventually
21645 # decorated with the 'weak' keyword
21646 # *) the shared object with the F_LOADONLY flag set, to really avoid
21647 # it being seen by the linker.
21648 # At run time we better use the real file rather than another symlink,
21649 # but for link time we create the symlink libNAME.so -> libNAME.so.V
21650
21651 case $with_aix_soname,$aix_use_runtimelinking in
21652 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
21653 # soname into executable. Probably we can add versioning support to
21654 # collect2, so additional links can be useful in future.
21655 aix,yes) # traditional libtool
21656 dynamic_linker='AIX unversionable lib.so'
21657 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21658 # instead of lib<name>.a to let people know that these are not
21659 # typical AIX shared libraries.
21660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21661 ;;
21662 aix,no) # traditional AIX only
21663 dynamic_linker='AIX lib.a(lib.so.V)'
21664 # We preserve .a as extension for shared libraries through AIX4.2
21665 # and later when we are not doing run time linking.
21666 library_names_spec='$libname$release.a $libname.a'
21667 soname_spec='$libname$release$shared_ext$major'
21668 ;;
21669 svr4,*) # full svr4 only
21670 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
21671 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21672 # We do not specify a path in Import Files, so LIBPATH fires.
21673 shlibpath_overrides_runpath=yes
21674 ;;
21675 *,yes) # both, prefer svr4
21676 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
21677 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21678 # unpreferred sharedlib libNAME.a needs extra handling
21679 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
21680 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
21681 # We do not specify a path in Import Files, so LIBPATH fires.
21682 shlibpath_overrides_runpath=yes
21683 ;;
21684 *,no) # both, prefer aix
21685 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
21686 library_names_spec='$libname$release.a $libname.a'
21687 soname_spec='$libname$release$shared_ext$major'
21688 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
21689 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
21690 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
21691 ;;
21692 esac
21693 shlibpath_var=LIBPATH
21694 fi
21695 ;;
21696
21697 amigaos*)
21698 case $host_cpu in
21699 powerpc)
21700 # Since July 2007 AmigaOS4 officially supports .so libraries.
21701 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21703 ;;
21704 m68k)
21705 library_names_spec='$libname.ixlibrary $libname.a'
21706 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21707 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
21708 ;;
21709 esac
21710 ;;
21711
21712 beos*)
21713 library_names_spec='$libname$shared_ext'
21714 dynamic_linker="$host_os ld.so"
21715 shlibpath_var=LIBRARY_PATH
21716 ;;
21717
21718 bsdi[45]*)
21719 version_type=linux # correct to gnu/linux during the next big refactor
21720 need_version=no
21721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21722 soname_spec='$libname$release$shared_ext$major'
21723 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21724 shlibpath_var=LD_LIBRARY_PATH
21725 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21726 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21727 # the default ld.so.conf also contains /usr/contrib/lib and
21728 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21729 # libtool to hard-code these into programs
21730 ;;
21731
21732 cygwin* | mingw* | pw32* | cegcc*)
21733 version_type=windows
21734 shrext_cmds=.dll
21735 need_version=no
21736 need_lib_prefix=no
21737
21738 case $GCC,$cc_basename in
21739 yes,*)
21740 # gcc
21741 library_names_spec='$libname.dll.a'
21742 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21743 postinstall_cmds='base_file=`basename \$file`~
21744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21745 dldir=$destdir/`dirname \$dlpath`~
21746 test -d \$dldir || mkdir -p \$dldir~
21747 $install_prog $dir/$dlname \$dldir/$dlname~
21748 chmod a+x \$dldir/$dlname~
21749 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21750 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21751 fi'
21752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21753 dlpath=$dir/\$dldll~
21754 $RM \$dlpath'
21755 shlibpath_overrides_runpath=yes
21756
21757 case $host_os in
21758 cygwin*)
21759 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21760 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21761
21762 ;;
21763 mingw* | cegcc*)
21764 # MinGW DLLs use traditional 'lib' prefix
21765 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21766 ;;
21767 pw32*)
21768 # pw32 DLLs use 'pw' prefix rather than 'lib'
21769 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21770 ;;
21771 esac
21772 dynamic_linker='Win32 ld.exe'
21773 ;;
21774
21775 *,cl*)
21776 # Native MSVC
21777 libname_spec='$name'
21778 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21779 library_names_spec='$libname.dll.lib'
21780
21781 case $build_os in
21782 mingw*)
21783 sys_lib_search_path_spec=
21784 lt_save_ifs=$IFS
21785 IFS=';'
21786 for lt_path in $LIB
21787 do
21788 IFS=$lt_save_ifs
21789 # Let DOS variable expansion print the short 8.3 style file name.
21790 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21791 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21792 done
21793 IFS=$lt_save_ifs
21794 # Convert to MSYS style.
21795 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21796 ;;
21797 cygwin*)
21798 # Convert to unix form, then to dos form, then back to unix form
21799 # but this time dos style (no spaces!) so that the unix form looks
21800 # like /cygdrive/c/PROGRA~1:/cygdr...
21801 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21802 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21803 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21804 ;;
21805 *)
21806 sys_lib_search_path_spec=$LIB
21807 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21808 # It is most probably a Windows format PATH.
21809 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21810 else
21811 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21812 fi
21813 # FIXME: find the short name or the path components, as spaces are
21814 # common. (e.g. "Program Files" -> "PROGRA~1")
21815 ;;
21816 esac
21817
21818 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21819 postinstall_cmds='base_file=`basename \$file`~
21820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21821 dldir=$destdir/`dirname \$dlpath`~
21822 test -d \$dldir || mkdir -p \$dldir~
21823 $install_prog $dir/$dlname \$dldir/$dlname'
21824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21825 dlpath=$dir/\$dldll~
21826 $RM \$dlpath'
21827 shlibpath_overrides_runpath=yes
21828 dynamic_linker='Win32 link.exe'
21829 ;;
21830
21831 *)
21832 # Assume MSVC wrapper
21833 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
21834 dynamic_linker='Win32 ld.exe'
21835 ;;
21836 esac
21837 # FIXME: first we should search . and the directory the executable is in
21838 shlibpath_var=PATH
21839 ;;
21840
21841 darwin* | rhapsody*)
21842 dynamic_linker="$host_os dyld"
21843 version_type=darwin
21844 need_lib_prefix=no
21845 need_version=no
21846 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
21847 soname_spec='$libname$release$major$shared_ext'
21848 shlibpath_overrides_runpath=yes
21849 shlibpath_var=DYLD_LIBRARY_PATH
21850 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21851
21852 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21853 ;;
21854
21855 dgux*)
21856 version_type=linux # correct to gnu/linux during the next big refactor
21857 need_lib_prefix=no
21858 need_version=no
21859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21860 soname_spec='$libname$release$shared_ext$major'
21861 shlibpath_var=LD_LIBRARY_PATH
21862 ;;
21863
21864 freebsd* | dragonfly*)
21865 # DragonFly does not have aout. When/if they implement a new
21866 # versioning mechanism, adjust this.
21867 if test -x /usr/bin/objformat; then
21868 objformat=`/usr/bin/objformat`
21869 else
21870 case $host_os in
21871 freebsd[23].*) objformat=aout ;;
21872 *) objformat=elf ;;
21873 esac
21874 fi
21875 version_type=freebsd-$objformat
21876 case $version_type in
21877 freebsd-elf*)
21878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21879 soname_spec='$libname$release$shared_ext$major'
21880 need_version=no
21881 need_lib_prefix=no
21882 ;;
21883 freebsd-*)
21884 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21885 need_version=yes
21886 ;;
21887 esac
21888 shlibpath_var=LD_LIBRARY_PATH
21889 case $host_os in
21890 freebsd2.*)
21891 shlibpath_overrides_runpath=yes
21892 ;;
21893 freebsd3.[01]* | freebsdelf3.[01]*)
21894 shlibpath_overrides_runpath=yes
21895 hardcode_into_libs=yes
21896 ;;
21897 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21898 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21899 shlibpath_overrides_runpath=no
21900 hardcode_into_libs=yes
21901 ;;
21902 *) # from 4.6 on, and DragonFly
21903 shlibpath_overrides_runpath=yes
21904 hardcode_into_libs=yes
21905 ;;
21906 esac
21907 ;;
21908
21909 haiku*)
21910 version_type=linux # correct to gnu/linux during the next big refactor
21911 need_lib_prefix=no
21912 need_version=no
21913 dynamic_linker="$host_os runtime_loader"
21914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21915 soname_spec='$libname$release$shared_ext$major'
21916 shlibpath_var=LIBRARY_PATH
21917 shlibpath_overrides_runpath=no
21918 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21919 hardcode_into_libs=yes
21920 ;;
21921
21922 hpux9* | hpux10* | hpux11*)
21923 # Give a soname corresponding to the major version so that dld.sl refuses to
21924 # link against other versions.
21925 version_type=sunos
21926 need_lib_prefix=no
21927 need_version=no
21928 case $host_cpu in
21929 ia64*)
21930 shrext_cmds='.so'
21931 hardcode_into_libs=yes
21932 dynamic_linker="$host_os dld.so"
21933 shlibpath_var=LD_LIBRARY_PATH
21934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21936 soname_spec='$libname$release$shared_ext$major'
21937 if test 32 = "$HPUX_IA64_MODE"; then
21938 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21939 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
21940 else
21941 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21942 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
21943 fi
21944 ;;
21945 hppa*64*)
21946 shrext_cmds='.sl'
21947 hardcode_into_libs=yes
21948 dynamic_linker="$host_os dld.sl"
21949 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21952 soname_spec='$libname$release$shared_ext$major'
21953 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21955 ;;
21956 *)
21957 shrext_cmds='.sl'
21958 dynamic_linker="$host_os dld.sl"
21959 shlibpath_var=SHLIB_PATH
21960 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21962 soname_spec='$libname$release$shared_ext$major'
21963 ;;
21964 esac
21965 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21966 postinstall_cmds='chmod 555 $lib'
21967 # or fails outright, so override atomically:
21968 install_override_mode=555
21969 ;;
21970
21971 interix[3-9]*)
21972 version_type=linux # correct to gnu/linux during the next big refactor
21973 need_lib_prefix=no
21974 need_version=no
21975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21976 soname_spec='$libname$release$shared_ext$major'
21977 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21978 shlibpath_var=LD_LIBRARY_PATH
21979 shlibpath_overrides_runpath=no
21980 hardcode_into_libs=yes
21981 ;;
21982
21983 irix5* | irix6* | nonstopux*)
21984 case $host_os in
21985 nonstopux*) version_type=nonstopux ;;
21986 *)
21987 if test yes = "$lt_cv_prog_gnu_ld"; then
21988 version_type=linux # correct to gnu/linux during the next big refactor
21989 else
21990 version_type=irix
21991 fi ;;
21992 esac
21993 need_lib_prefix=no
21994 need_version=no
21995 soname_spec='$libname$release$shared_ext$major'
21996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
21997 case $host_os in
21998 irix5* | nonstopux*)
21999 libsuff= shlibsuff=
22000 ;;
22001 *)
22002 case $LD in # libtool.m4 will add one of these switches to LD
22003 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22004 libsuff= shlibsuff= libmagic=32-bit;;
22005 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22006 libsuff=32 shlibsuff=N32 libmagic=N32;;
22007 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22008 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22009 *) libsuff= shlibsuff= libmagic=never-match;;
22010 esac
22011 ;;
22012 esac
22013 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22014 shlibpath_overrides_runpath=no
22015 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
22016 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
22017 hardcode_into_libs=yes
22018 ;;
22019
22020 # No shared lib support for Linux oldld, aout, or coff.
22021 linux*oldld* | linux*aout* | linux*coff*)
22022 dynamic_linker=no
22023 ;;
22024
22025 linux*android*)
22026 version_type=none # Android doesn't support versioned libraries.
22027 need_lib_prefix=no
22028 need_version=no
22029 library_names_spec='$libname$release$shared_ext'
22030 soname_spec='$libname$release$shared_ext'
22031 finish_cmds=
22032 shlibpath_var=LD_LIBRARY_PATH
22033 shlibpath_overrides_runpath=yes
22034
22035 # This implies no fast_install, which is unacceptable.
22036 # Some rework will be needed to allow for fast_install
22037 # before this can be enabled.
22038 hardcode_into_libs=yes
22039
22040 dynamic_linker='Android linker'
22041 # Don't embed -rpath directories since the linker doesn't support them.
22042 hardcode_libdir_flag_spec_CXX='-L$libdir'
22043 ;;
22044
22045 # This must be glibc/ELF.
22046 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
22047 version_type=linux # correct to gnu/linux during the next big refactor
22048 need_lib_prefix=no
22049 need_version=no
22050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22051 soname_spec='$libname$release$shared_ext$major'
22052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22053 shlibpath_var=LD_LIBRARY_PATH
22054 shlibpath_overrides_runpath=no
22055
22056 # Some binutils ld are patched to set DT_RUNPATH
22057 if test ${lt_cv_shlibpath_overrides_runpath+y}
22058 then :
22059 printf %s "(cached) " >&6
22060 else case e in #(
22061 e) lt_cv_shlibpath_overrides_runpath=no
22062 save_LDFLAGS=$LDFLAGS
22063 save_libdir=$libdir
22064 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22065 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22067 /* end confdefs.h. */
22068
22069 int
22070 main (void)
22071 {
22072
22073 ;
22074 return 0;
22075 }
22076 _ACEOF
22077 if ac_fn_cxx_try_link "$LINENO"
22078 then :
22079 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
22080 then :
22081 lt_cv_shlibpath_overrides_runpath=yes
22082 fi
22083 fi
22084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22085 conftest$ac_exeext conftest.$ac_ext
22086 LDFLAGS=$save_LDFLAGS
22087 libdir=$save_libdir
22088 ;;
22089 esac
22090 fi
22091
22092 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22093
22094 # This implies no fast_install, which is unacceptable.
22095 # Some rework will be needed to allow for fast_install
22096 # before this can be enabled.
22097 hardcode_into_libs=yes
22098
22099 # Ideally, we could use ldconfig to report *all* directores which are
22100 # searched for libraries, however this is still not possible. Aside from not
22101 # being certain /sbin/ldconfig is available, command
22102 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
22103 # even though it is searched at run-time. Try to do the best guess by
22104 # appending ld.so.conf contents (and includes) to the search path.
22105 if test -f /etc/ld.so.conf; then
22106 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' ' '`
22107 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22108 fi
22109
22110 # We used to test for /lib/ld.so.1 and disable shared libraries on
22111 # powerpc, because MkLinux only supported shared libraries with the
22112 # GNU dynamic linker. Since this was broken with cross compilers,
22113 # most powerpc-linux boxes support dynamic linking these days and
22114 # people can always --disable-shared, the test was removed, and we
22115 # assume the GNU/Linux dynamic linker is in use.
22116 dynamic_linker='GNU/Linux ld.so'
22117 ;;
22118
22119 netbsd*)
22120 version_type=sunos
22121 need_lib_prefix=no
22122 need_version=no
22123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22124 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22126 dynamic_linker='NetBSD (a.out) ld.so'
22127 else
22128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22129 soname_spec='$libname$release$shared_ext$major'
22130 dynamic_linker='NetBSD ld.elf_so'
22131 fi
22132 shlibpath_var=LD_LIBRARY_PATH
22133 shlibpath_overrides_runpath=yes
22134 hardcode_into_libs=yes
22135 ;;
22136
22137 newsos6)
22138 version_type=linux # correct to gnu/linux during the next big refactor
22139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22140 shlibpath_var=LD_LIBRARY_PATH
22141 shlibpath_overrides_runpath=yes
22142 ;;
22143
22144 *nto* | *qnx*)
22145 version_type=qnx
22146 need_lib_prefix=no
22147 need_version=no
22148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22149 soname_spec='$libname$release$shared_ext$major'
22150 shlibpath_var=LD_LIBRARY_PATH
22151 shlibpath_overrides_runpath=no
22152 hardcode_into_libs=yes
22153 dynamic_linker='ldqnx.so'
22154 ;;
22155
22156 openbsd* | bitrig*)
22157 version_type=sunos
22158 sys_lib_dlsearch_path_spec=/usr/lib
22159 need_lib_prefix=no
22160 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
22161 need_version=no
22162 else
22163 need_version=yes
22164 fi
22165 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22167 shlibpath_var=LD_LIBRARY_PATH
22168 shlibpath_overrides_runpath=yes
22169 ;;
22170
22171 os2*)
22172 libname_spec='$name'
22173 version_type=windows
22174 shrext_cmds=.dll
22175 need_version=no
22176 need_lib_prefix=no
22177 # OS/2 can only load a DLL with a base name of 8 characters or less.
22178 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
22179 v=$($ECHO $release$versuffix | tr -d .-);
22180 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
22181 $ECHO $n$v`$shared_ext'
22182 library_names_spec='${libname}_dll.$libext'
22183 dynamic_linker='OS/2 ld.exe'
22184 shlibpath_var=BEGINLIBPATH
22185 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22187 postinstall_cmds='base_file=`basename \$file`~
22188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
22189 dldir=$destdir/`dirname \$dlpath`~
22190 test -d \$dldir || mkdir -p \$dldir~
22191 $install_prog $dir/$dlname \$dldir/$dlname~
22192 chmod a+x \$dldir/$dlname~
22193 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22194 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22195 fi'
22196 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
22197 dlpath=$dir/\$dldll~
22198 $RM \$dlpath'
22199 ;;
22200
22201 osf3* | osf4* | osf5*)
22202 version_type=osf
22203 need_lib_prefix=no
22204 need_version=no
22205 soname_spec='$libname$release$shared_ext$major'
22206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22207 shlibpath_var=LD_LIBRARY_PATH
22208 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22210 ;;
22211
22212 rdos*)
22213 dynamic_linker=no
22214 ;;
22215
22216 solaris*)
22217 version_type=linux # correct to gnu/linux during the next big refactor
22218 need_lib_prefix=no
22219 need_version=no
22220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22221 soname_spec='$libname$release$shared_ext$major'
22222 shlibpath_var=LD_LIBRARY_PATH
22223 shlibpath_overrides_runpath=yes
22224 hardcode_into_libs=yes
22225 # ldd complains unless libraries are executable
22226 postinstall_cmds='chmod +x $lib'
22227 ;;
22228
22229 sunos4*)
22230 version_type=sunos
22231 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22232 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22233 shlibpath_var=LD_LIBRARY_PATH
22234 shlibpath_overrides_runpath=yes
22235 if test yes = "$with_gnu_ld"; then
22236 need_lib_prefix=no
22237 fi
22238 need_version=yes
22239 ;;
22240
22241 sysv4 | sysv4.3*)
22242 version_type=linux # correct to gnu/linux during the next big refactor
22243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22244 soname_spec='$libname$release$shared_ext$major'
22245 shlibpath_var=LD_LIBRARY_PATH
22246 case $host_vendor in
22247 sni)
22248 shlibpath_overrides_runpath=no
22249 need_lib_prefix=no
22250 runpath_var=LD_RUN_PATH
22251 ;;
22252 siemens)
22253 need_lib_prefix=no
22254 ;;
22255 motorola)
22256 need_lib_prefix=no
22257 need_version=no
22258 shlibpath_overrides_runpath=no
22259 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22260 ;;
22261 esac
22262 ;;
22263
22264 sysv4*MP*)
22265 if test -d /usr/nec; then
22266 version_type=linux # correct to gnu/linux during the next big refactor
22267 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
22268 soname_spec='$libname$shared_ext.$major'
22269 shlibpath_var=LD_LIBRARY_PATH
22270 fi
22271 ;;
22272
22273 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22274 version_type=sco
22275 need_lib_prefix=no
22276 need_version=no
22277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
22278 soname_spec='$libname$release$shared_ext$major'
22279 shlibpath_var=LD_LIBRARY_PATH
22280 shlibpath_overrides_runpath=yes
22281 hardcode_into_libs=yes
22282 if test yes = "$with_gnu_ld"; then
22283 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22284 else
22285 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22286 case $host_os in
22287 sco3.2v5*)
22288 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22289 ;;
22290 esac
22291 fi
22292 sys_lib_dlsearch_path_spec='/usr/lib'
22293 ;;
22294
22295 tpf*)
22296 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22297 version_type=linux # correct to gnu/linux during the next big refactor
22298 need_lib_prefix=no
22299 need_version=no
22300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22301 shlibpath_var=LD_LIBRARY_PATH
22302 shlibpath_overrides_runpath=no
22303 hardcode_into_libs=yes
22304 ;;
22305
22306 uts4*)
22307 version_type=linux # correct to gnu/linux during the next big refactor
22308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22309 soname_spec='$libname$release$shared_ext$major'
22310 shlibpath_var=LD_LIBRARY_PATH
22311 ;;
22312
22313 *)
22314 dynamic_linker=no
22315 ;;
22316 esac
22317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22318 printf "%s\n" "$dynamic_linker" >&6; }
22319 test no = "$dynamic_linker" && can_build_shared=no
22320
22321 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22322 if test yes = "$GCC"; then
22323 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22324 fi
22325
22326 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22327 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
22328 fi
22329
22330 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22331 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
22332 fi
22333
22334 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22335 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22336
22337 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22338 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22339
22340 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22341 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22383 printf %s "checking how to hardcode library paths into programs... " >&6; }
22384 hardcode_action_CXX=
22385 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22386 test -n "$runpath_var_CXX" ||
22387 test yes = "$hardcode_automatic_CXX"; then
22388
22389 # We can hardcode non-existent directories.
22390 if test no != "$hardcode_direct_CXX" &&
22391 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22392 # have to relink, otherwise we might link with an installed library
22393 # when we should be linking with a yet-to-be-installed one
22394 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
22395 test no != "$hardcode_minus_L_CXX"; then
22396 # Linking always hardcodes the temporary library directory.
22397 hardcode_action_CXX=relink
22398 else
22399 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22400 hardcode_action_CXX=immediate
22401 fi
22402 else
22403 # We cannot hardcode anything, or else we can only hardcode existing
22404 # directories.
22405 hardcode_action_CXX=unsupported
22406 fi
22407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22408 printf "%s\n" "$hardcode_action_CXX" >&6; }
22409
22410 if test relink = "$hardcode_action_CXX" ||
22411 test yes = "$inherit_rpath_CXX"; then
22412 # Fast installation is not supported
22413 enable_fast_install=no
22414 elif test yes = "$shlibpath_overrides_runpath" ||
22415 test no = "$enable_shared"; then
22416 # Fast installation is not necessary
22417 enable_fast_install=needless
22418 fi
22419
22420
22421
22422
22423
22424
22425
22426 fi # test -n "$compiler"
22427
22428 CC=$lt_save_CC
22429 CFLAGS=$lt_save_CFLAGS
22430 LDCXX=$LD
22431 LD=$lt_save_LD
22432 GCC=$lt_save_GCC
22433 with_gnu_ld=$lt_save_with_gnu_ld
22434 lt_cv_path_LDCXX=$lt_cv_path_LD
22435 lt_cv_path_LD=$lt_save_path_LD
22436 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22437 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22438 fi # test yes != "$_lt_caught_CXX_error"
22439
22440 ac_ext=c
22441 ac_cpp='$CPP $CPPFLAGS'
22442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22445
22446
22447
22448 if test "$try_xdg_utils" = "yes" ; then
22449
22450
22451 # Extract the first word of "xdg-mime", so it can be a program name with args.
22452 set dummy xdg-mime; ac_word=$2
22453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22454 printf %s "checking for $ac_word... " >&6; }
22455 if test ${ac_cv_prog_XDG_MIME+y}
22456 then :
22457 printf %s "(cached) " >&6
22458 else case e in #(
22459 e) if test -n "$XDG_MIME"; then
22460 ac_cv_prog_XDG_MIME="$XDG_MIME" # Let the user override the test.
22461 else
22462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22463 for as_dir in $PATH
22464 do
22465 IFS=$as_save_IFS
22466 case $as_dir in #(((
22467 '') as_dir=./ ;;
22468 */) ;;
22469 *) as_dir=$as_dir/ ;;
22470 esac
22471 for ac_exec_ext in '' $ac_executable_extensions; do
22472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22473 ac_cv_prog_XDG_MIME="yes"
22474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22475 break 2
22476 fi
22477 done
22478 done
22479 IFS=$as_save_IFS
22480
22481 fi ;;
22482 esac
22483 fi
22484 XDG_MIME=$ac_cv_prog_XDG_MIME
22485 if test -n "$XDG_MIME"; then
22486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XDG_MIME" >&5
22487 printf "%s\n" "$XDG_MIME" >&6; }
22488 else
22489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22490 printf "%s\n" "no" >&6; }
22491 fi
22492
22493
22494 if test x"${XDG_MIME}" = xyes ; then
22495 use_xdg_utils=yes
22496 fi
22497 fi
22498
22499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
22500 printf %s "checking for gzopen in -lz... " >&6; }
22501 if test ${ac_cv_lib_z_gzopen+y}
22502 then :
22503 printf %s "(cached) " >&6
22504 else case e in #(
22505 e) ac_check_lib_save_LIBS=$LIBS
22506 LIBS="-lz $LIBS"
22507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22508 /* end confdefs.h. */
22509
22510 /* Override any GCC internal prototype to avoid an error.
22511 Use char because int might match the return type of a GCC
22512 builtin and then its argument prototype would still apply.
22513 The 'extern "C"' is for builds by C++ compilers;
22514 although this is not generally supported in C code supporting it here
22515 has little cost and some practical benefit (sr 110532). */
22516 #ifdef __cplusplus
22517 extern "C"
22518 #endif
22519 char gzopen (void);
22520 int
22521 main (void)
22522 {
22523 return gzopen ();
22524 ;
22525 return 0;
22526 }
22527 _ACEOF
22528 if ac_fn_c_try_link "$LINENO"
22529 then :
22530 ac_cv_lib_z_gzopen=yes
22531 else case e in #(
22532 e) ac_cv_lib_z_gzopen=no ;;
22533 esac
22534 fi
22535 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22536 conftest$ac_exeext conftest.$ac_ext
22537 LIBS=$ac_check_lib_save_LIBS ;;
22538 esac
22539 fi
22540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
22541 printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; }
22542 if test "x$ac_cv_lib_z_gzopen" = xyes
22543 then :
22544 have_zlib="yes" ; \
22545 ZLIB="-lz" ; printf "%s\n" "#define HAVE_ZLIB 1" >>confdefs.h
22546
22547 fi
22548
22549
22550
22551 if test "$try_gmp" = "yes" ; then
22552
22553 # Check whether --with-gmp-prefix was given.
22554 if test ${with_gmp_prefix+y}
22555 then :
22556 withval=$with_gmp_prefix; gmp_config_prefix="$withval"
22557 else case e in #(
22558 e) gmp_config_prefix="" ;;
22559 esac
22560 fi
22561
22562
22563 if test x$gmp_config_prefix != x ; then
22564 gmp_config_args="$gmp_config_args --prefix=$gmp_config_prefix"
22565 fi
22566
22567 min_gmp_version=4.0.1
22568
22569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GMP - version >= $min_gmp_version" >&5
22570 printf %s "checking for GMP - version >= $min_gmp_version... " >&6; }
22571
22572 GMP_CFLAGS="-I$gmp_config_prefix/include"
22573 GMP_LIBS="-L$gmp_config_prefix/lib -lgmp"
22574
22575 ac_save_CFLAGS="$CFLAGS"
22576 ac_save_LIBS="$LIBS"
22577 CFLAGS="$CFLAGS $GMP_CFLAGS"
22578 LIBS="$GMP_LIBS $LIBS"
22579
22580 rm -f conf.gmptest
22581 if test "$cross_compiling" = yes
22582 then :
22583 echo $ac_n "cross compiling; assumed OK... $ac_c"
22584 else case e in #(
22585 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22586 /* end confdefs.h. */
22587
22588 #include <gmp.h>
22589 #include <stdio.h>
22590 #include <stdlib.h>
22591 #include <string.h>
22592
22593 int
22594 main ()
22595 {
22596 int gmp_major_version = 0, gmp_minor_version = 0, gmp_micro_version = 0;
22597 int major, minor, micro;
22598 char *tmp_version;
22599 mpz_t a, b, c;
22600
22601 mpz_init(a);
22602 mpz_init(b);
22603 mpz_init(c);
22604 mpz_mul(c, a, b);
22605
22606 system("touch conf.gmptest");
22607
22608 #ifdef __GNU_MP_VERSION
22609 gmp_major_version = __GNU_MP_VERSION;
22610 #endif
22611
22612 #ifdef __GNU_MP_VERSION_MINOR
22613 gmp_minor_version = __GNU_MP_VERSION_MINOR;
22614 #endif
22615
22616 #ifdef __GNU_MP_VERSION_PATCHLEVEL
22617 gmp_micro_version = __GNU_MP_VERSION_PATCHLEVEL;
22618 #endif
22619
22620 /* HP/UX 9 (%@#!) writes to sscanf strings */
22621 tmp_version = strdup("$min_gmp_version");
22622 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22623 printf("%s, bad version string\n", "$min_gmp_version");
22624 exit(1);
22625 }
22626
22627 if ((gmp_major_version > major) ||
22628 ((gmp_major_version == major) && (gmp_minor_version > minor)) ||
22629 ((gmp_major_version == major) && (gmp_minor_version == minor) && (gmp_micro_version >= micro))) {
22630 return 0;
22631 } else {
22632 printf("\n*** An old version of GNU MP (%d.%d.%d) was found.\n",
22633 gmp_major_version, gmp_minor_version, gmp_micro_version);
22634 printf("*** You need a version of GNU MP newer than %d.%d.%d. The latest version of\n",
22635 major, minor, micro);
22636
22637 printf("*** GNU MP is always available from ftp://ftp.gnu.org.\n");
22638 printf("***\n");
22639 }
22640
22641 return 1;
22642 }
22643
22644 _ACEOF
22645 if ac_fn_c_try_run "$LINENO"
22646 then :
22647
22648 else case e in #(
22649 e) no_gmp=yes ;;
22650 esac
22651 fi
22652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22653 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
22654 esac
22655 fi
22656
22657 CFLAGS="$ac_save_CFLAGS"
22658 LIBS="$ac_save_LIBS"
22659
22660 if test "x$no_gmp" = x ; then
22661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22662 printf "%s\n" "yes" >&6; }
22663 have_gmp="yes"
22664 else
22665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22666 printf "%s\n" "no" >&6; }
22667 if test -f conf.gmptest ; then
22668 :
22669 else
22670 echo "*** Could not run GNU MP test program, checking why..."
22671 CFLAGS="$CFLAGS $GMP_CFLAGS"
22672 LIBS="$LIBS $GMP_LIBS"
22673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22674 /* end confdefs.h. */
22675
22676 #include <gmp.h>
22677 #include <stdio.h>
22678
22679 int
22680 main (void)
22681 {
22682 return (1);
22683 ;
22684 return 0;
22685 }
22686 _ACEOF
22687 if ac_fn_c_try_link "$LINENO"
22688 then :
22689 echo "*** The test program compiled, but did not run. This usually means"
22690 echo "*** that the run-time linker is not finding GNU MP or finding the wrong"
22691 echo "*** version of GNU MP. If it is not finding GNU MP, you'll need to set your"
22692 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22693 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22694 echo "*** is required on your system"
22695 echo "***"
22696 echo "*** If you have an old version installed, it is best to remove it, although"
22697 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22698 echo "***"
22699 else case e in #(
22700 e) echo "*** The test program failed to compile or link. See the file config.log for the"
22701 echo "*** exact error that occured. This usually means GNU MP was incorrectly installed"
22702 echo "*** or that you have moved GNU MP since it was installed." ;;
22703 esac
22704 fi
22705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22706 conftest$ac_exeext conftest.$ac_ext
22707 CFLAGS="$ac_save_CFLAGS"
22708 LIBS="$ac_save_LIBS"
22709 fi
22710 GMP_CFLAGS=""
22711 GMP_LIBS=""
22712 gmp_fail="yes"
22713 fi
22714 if test "$GMP_CFLAGS" = "-I/include" ; then
22715 GMP_CFLAGS=""
22716 fi
22717 if test "$GMP_LIBS" = "-L/lib -lgmp" ; then
22718 GMP_LIBS="-lgmp"
22719 fi
22720
22721
22722 rm -f conf.gmptest
22723
22724
22725 # Check whether --with-mpfr-prefix was given.
22726 if test ${with_mpfr_prefix+y}
22727 then :
22728 withval=$with_mpfr_prefix; mpfr_config_prefix="$withval"
22729 else case e in #(
22730 e) mpfr_config_prefix="" ;;
22731 esac
22732 fi
22733
22734
22735 if test x$mpfr_config_prefix != x ; then
22736 mpfr_config_args="$mpfr_config_args --prefix=$mpfr_config_prefix"
22737 fi
22738
22739 min_mpfr_version=2.2.0
22740
22741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPFR - version >= $min_mpfr_version" >&5
22742 printf %s "checking for MPFR - version >= $min_mpfr_version... " >&6; }
22743
22744 MPFR_CFLAGS="-I$mpfr_config_prefix/include"
22745 MPFR_LIBS="-L$mpfr_config_prefix/lib -lmpfr -lgmp"
22746
22747 ac_save_CFLAGS="$CFLAGS"
22748 ac_save_LIBS="$LIBS"
22749 CFLAGS="$CFLAGS $MPFR_CFLAGS"
22750 LIBS="$MPFR_LIBS $LIBS"
22751
22752 rm -f conf.mpfrtest
22753 if test "$cross_compiling" = yes
22754 then :
22755 echo $ac_n "cross compiling; assumed OK... $ac_c"
22756 else case e in #(
22757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22758 /* end confdefs.h. */
22759
22760 #include <mpfr.h>
22761 #include <stdio.h>
22762 #include <stdlib.h>
22763 #include <string.h>
22764
22765 int
22766 main ()
22767 {
22768 int mpfr_major_version = 0, mpfr_minor_version = 0, mpfr_micro_version = 0;
22769 int major, minor, micro;
22770 char *tmp_version;
22771 mpfr_t a, b, c;
22772
22773 mpfr_init (a);
22774 mpfr_init (b);
22775 mpfr_init (c);
22776 mpfr_mul (c, a, b, GMP_RNDN);
22777
22778 system ("touch conf.mpfrtest");
22779
22780 #ifdef MPFR_VERSION_MAJOR
22781 mpfr_major_version = MPFR_VERSION_MAJOR;
22782 #endif
22783
22784 #ifdef MPFR_VERSION_MINOR
22785 mpfr_minor_version = MPFR_VERSION_MINOR;
22786 #endif
22787
22788 #ifdef MPFR_VERSION_PATCHLEVEL
22789 mpfr_micro_version = MPFR_VERSION_PATCHLEVEL;
22790 #endif
22791
22792 /* HP/UX 9 (%@#!) writes to sscanf strings */
22793 tmp_version = strdup("$min_mpfr_version");
22794 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22795 printf("%s, bad version string\n", "$min_mpfr_version");
22796 exit(1);
22797 }
22798
22799 if ((mpfr_major_version > major) ||
22800 ((mpfr_major_version == major) && (mpfr_minor_version > minor)) ||
22801 ((mpfr_major_version == major) && (mpfr_minor_version == minor) && (mpfr_micro_version >= micro)))
22802 {
22803 return 0;
22804 }
22805 else
22806 {
22807 printf("\n*** An old version of MPFR (%d.%d.%d) was found.\n",
22808 mpfr_major_version, mpfr_minor_version, mpfr_micro_version);
22809 printf("*** You need a version of MPFR newer than %d.%d.%d. The latest version of\n",
22810 major, minor, micro);
22811
22812 printf("*** MPFR is available from http://www.mpfr.org/.\n");
22813 printf("***\n");
22814 }
22815
22816 return 1;
22817 }
22818
22819 _ACEOF
22820 if ac_fn_c_try_run "$LINENO"
22821 then :
22822
22823 else case e in #(
22824 e) no_mpfr=yes ;;
22825 esac
22826 fi
22827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22828 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
22829 esac
22830 fi
22831
22832 CFLAGS="$ac_save_CFLAGS"
22833 LIBS="$ac_save_LIBS"
22834
22835 if test "x$no_mpfr" = x ; then
22836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22837 printf "%s\n" "yes" >&6; }
22838 have_mpfr="yes"
22839 else
22840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22841 printf "%s\n" "no" >&6; }
22842 if test -f conf.mpfrtest ; then
22843 :
22844 else
22845 echo "*** Could not run MPFR test program, checking why..."
22846 CFLAGS="$CFLAGS $MPFR_CFLAGS"
22847 LIBS="$LIBS $MPFR_LIBS"
22848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22849 /* end confdefs.h. */
22850
22851 #include <mpfr.h>
22852 #include <stdio.h>
22853
22854 int
22855 main (void)
22856 {
22857 return (1);
22858 ;
22859 return 0;
22860 }
22861 _ACEOF
22862 if ac_fn_c_try_link "$LINENO"
22863 then :
22864 echo "*** The test program compiled, but did not run. This usually means"
22865 echo "*** that the run-time linker is not finding MPFR or finding the wrong"
22866 echo "*** version of MPFR. If it is not finding MPFR, you'll need to set your"
22867 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22868 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22869 echo "*** is required on your system"
22870 echo "***"
22871 echo "*** If you have an old version installed, it is best to remove it, although"
22872 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22873 echo "***"
22874 else case e in #(
22875 e) echo "*** The test program failed to compile or link. See the file config.log for the"
22876 echo "*** exact error that occured. This usually means MPFR was incorrectly installed"
22877 echo "*** or that you have moved MPFR since it was installed." ;;
22878 esac
22879 fi
22880 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22881 conftest$ac_exeext conftest.$ac_ext
22882 CFLAGS="$ac_save_CFLAGS"
22883 LIBS="$ac_save_LIBS"
22884 fi
22885 MPFR_CFLAGS=""
22886 MPFR_LIBS=""
22887 mpfr_fail="yes"
22888 fi
22889 if test "$MPFR_CFLAGS" = "-I/include" ; then
22890 MPFR_CFLAGS=""
22891 fi
22892 if test "$MPFR_LIBS" = "-L/lib -lmpfr" ; then
22893 MPFR_LIBS="-lmpfr"
22894 fi
22895
22896
22897 rm -f conf.mpfrtest
22898
22899 if test "$have_gmp" = "yes" -a "$have_mpfr" = "yes" ; then
22900 printf "%s\n" "#define HAVE_GMP 1" >>confdefs.h
22901
22902 fi
22903 fi
22904
22905 case $host_os in
22906 *arwin*)
22907 if test "x$LAPACK_LIBS" = "x" ; then
22908 LAPACK_LIBS="-Wl,-framework -Wl,Accelerate"
22909 fi
22910 have_lapack="yes"
22911 darwin_build="yes"
22912 if test $pkg_build = yes ; then
22913 macpkg="yes"
22914 fi
22915 ;;
22916 *mingw*)
22917 have_lapack="yes"
22918 ;;
22919 *cygwin*)
22920
22921
22922 if test x"${LAPACK_LIBS}" = x ; then
22923 # check for OpenMP openblas using OpenBLAS naming
22924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ddot_ in -lopenblas_omp" >&5
22925 printf %s "checking for ddot_ in -lopenblas_omp... " >&6; }
22926 if test ${ac_cv_lib_openblas_omp_ddot_+y}
22927 then :
22928 printf %s "(cached) " >&6
22929 else case e in #(
22930 e) ac_check_lib_save_LIBS=$LIBS
22931 LIBS="-lopenblas_omp $LIBS"
22932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22933 /* end confdefs.h. */
22934
22935 /* Override any GCC internal prototype to avoid an error.
22936 Use char because int might match the return type of a GCC
22937 builtin and then its argument prototype would still apply.
22938 The 'extern "C"' is for builds by C++ compilers;
22939 although this is not generally supported in C code supporting it here
22940 has little cost and some practical benefit (sr 110532). */
22941 #ifdef __cplusplus
22942 extern "C"
22943 #endif
22944 char ddot_ (void);
22945 int
22946 main (void)
22947 {
22948 return ddot_ ();
22949 ;
22950 return 0;
22951 }
22952 _ACEOF
22953 if ac_fn_c_try_link "$LINENO"
22954 then :
22955 ac_cv_lib_openblas_omp_ddot_=yes
22956 else case e in #(
22957 e) ac_cv_lib_openblas_omp_ddot_=no ;;
22958 esac
22959 fi
22960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22961 conftest$ac_exeext conftest.$ac_ext
22962 LIBS=$ac_check_lib_save_LIBS ;;
22963 esac
22964 fi
22965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openblas_omp_ddot_" >&5
22966 printf "%s\n" "$ac_cv_lib_openblas_omp_ddot_" >&6; }
22967 if test "x$ac_cv_lib_openblas_omp_ddot_" = xyes
22968 then :
22969 LAPACK_LIBS="-lopenblas_omp"
22970 else case e in #(
22971 e) LAPACK_LIBS="none" ;;
22972 esac
22973 fi
22974
22975 if test $LAPACK_LIBS = "none" ; then
22976 # OpenMP OpenBLAS, Fedora naming
22977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ddot_ in -lopenblaso" >&5
22978 printf %s "checking for ddot_ in -lopenblaso... " >&6; }
22979 if test ${ac_cv_lib_openblaso_ddot_+y}
22980 then :
22981 printf %s "(cached) " >&6
22982 else case e in #(
22983 e) ac_check_lib_save_LIBS=$LIBS
22984 LIBS="-lopenblaso $LIBS"
22985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22986 /* end confdefs.h. */
22987
22988 /* Override any GCC internal prototype to avoid an error.
22989 Use char because int might match the return type of a GCC
22990 builtin and then its argument prototype would still apply.
22991 The 'extern "C"' is for builds by C++ compilers;
22992 although this is not generally supported in C code supporting it here
22993 has little cost and some practical benefit (sr 110532). */
22994 #ifdef __cplusplus
22995 extern "C"
22996 #endif
22997 char ddot_ (void);
22998 int
22999 main (void)
23000 {
23001 return ddot_ ();
23002 ;
23003 return 0;
23004 }
23005 _ACEOF
23006 if ac_fn_c_try_link "$LINENO"
23007 then :
23008 ac_cv_lib_openblaso_ddot_=yes
23009 else case e in #(
23010 e) ac_cv_lib_openblaso_ddot_=no ;;
23011 esac
23012 fi
23013 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23014 conftest$ac_exeext conftest.$ac_ext
23015 LIBS=$ac_check_lib_save_LIBS ;;
23016 esac
23017 fi
23018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openblaso_ddot_" >&5
23019 printf "%s\n" "$ac_cv_lib_openblaso_ddot_" >&6; }
23020 if test "x$ac_cv_lib_openblaso_ddot_" = xyes
23021 then :
23022 LAPACK_LIBS="-lopenblaso"
23023 else case e in #(
23024 e) LAPACK_LIBS="none" ;;
23025 esac
23026 fi
23027
23028 fi
23029 if test $LAPACK_LIBS = "none" ; then
23030 # OpenBLAS at all?
23031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ddot_ in -lopenblas" >&5
23032 printf %s "checking for ddot_ in -lopenblas... " >&6; }
23033 if test ${ac_cv_lib_openblas_ddot_+y}
23034 then :
23035 printf %s "(cached) " >&6
23036 else case e in #(
23037 e) ac_check_lib_save_LIBS=$LIBS
23038 LIBS="-lopenblas $LIBS"
23039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23040 /* end confdefs.h. */
23041
23042 /* Override any GCC internal prototype to avoid an error.
23043 Use char because int might match the return type of a GCC
23044 builtin and then its argument prototype would still apply.
23045 The 'extern "C"' is for builds by C++ compilers;
23046 although this is not generally supported in C code supporting it here
23047 has little cost and some practical benefit (sr 110532). */
23048 #ifdef __cplusplus
23049 extern "C"
23050 #endif
23051 char ddot_ (void);
23052 int
23053 main (void)
23054 {
23055 return ddot_ ();
23056 ;
23057 return 0;
23058 }
23059 _ACEOF
23060 if ac_fn_c_try_link "$LINENO"
23061 then :
23062 ac_cv_lib_openblas_ddot_=yes
23063 else case e in #(
23064 e) ac_cv_lib_openblas_ddot_=no ;;
23065 esac
23066 fi
23067 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23068 conftest$ac_exeext conftest.$ac_ext
23069 LIBS=$ac_check_lib_save_LIBS ;;
23070 esac
23071 fi
23072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openblas_ddot_" >&5
23073 printf "%s\n" "$ac_cv_lib_openblas_ddot_" >&6; }
23074 if test "x$ac_cv_lib_openblas_ddot_" = xyes
23075 then :
23076 LAPACK_LIBS="-lopenblas"
23077 else case e in #(
23078 e) LAPACK_LIBS="none" ;;
23079 esac
23080 fi
23081
23082 fi
23083 if test $LAPACK_LIBS = "none" ; then
23084 # fall back to liblapack plus libblas
23085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ddot_ in -lblas" >&5
23086 printf %s "checking for ddot_ in -lblas... " >&6; }
23087 if test ${ac_cv_lib_blas_ddot_+y}
23088 then :
23089 printf %s "(cached) " >&6
23090 else case e in #(
23091 e) ac_check_lib_save_LIBS=$LIBS
23092 LIBS="-lblas $LIBS"
23093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23094 /* end confdefs.h. */
23095
23096 /* Override any GCC internal prototype to avoid an error.
23097 Use char because int might match the return type of a GCC
23098 builtin and then its argument prototype would still apply.
23099 The 'extern "C"' is for builds by C++ compilers;
23100 although this is not generally supported in C code supporting it here
23101 has little cost and some practical benefit (sr 110532). */
23102 #ifdef __cplusplus
23103 extern "C"
23104 #endif
23105 char ddot_ (void);
23106 int
23107 main (void)
23108 {
23109 return ddot_ ();
23110 ;
23111 return 0;
23112 }
23113 _ACEOF
23114 if ac_fn_c_try_link "$LINENO"
23115 then :
23116 ac_cv_lib_blas_ddot_=yes
23117 else case e in #(
23118 e) ac_cv_lib_blas_ddot_=no ;;
23119 esac
23120 fi
23121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23122 conftest$ac_exeext conftest.$ac_ext
23123 LIBS=$ac_check_lib_save_LIBS ;;
23124 esac
23125 fi
23126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_ddot_" >&5
23127 printf "%s\n" "$ac_cv_lib_blas_ddot_" >&6; }
23128 if test "x$ac_cv_lib_blas_ddot_" = xyes
23129 then :
23130 LAPACK_LIBS="-llapack -lblas"
23131 else case e in #(
23132 e) LAPACK_LIBS="none" ;;
23133 esac
23134 fi
23135
23136 fi
23137 if test $LAPACK_LIBS = "none" ; then
23138 echo "*** Couldn't find libopenblas or libblas"
23139 LAPACK_LIBS=""
23140 fi
23141 else
23142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lapack" >&5
23143 printf %s "checking for lapack... " >&6; }
23144 fi
23145
23146 ac_save_LIBS="$LIBS"
23147 LIBS="$LAPACK_LIBS $LIBS"
23148
23149 rm -f conf.lapacktest
23150 if test "$cross_compiling" = yes
23151 then :
23152 echo $ac_n "cross compiling; assumed OK... $ac_c"
23153 else case e in #(
23154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23155 /* end confdefs.h. */
23156
23157 #include <stdlib.h>
23158 int dpotrf_(char *, int *, double *, int *, int *);
23159 int main (void) {
23160 char uplo = 'L';
23161 int one = 1;
23162 int info = 0;
23163 double x = 1;
23164 dpotrf_(&uplo, &one, &x, &one, &info);
23165 system("touch conf.lapacktest");
23166 return 0;
23167 }
23168
23169 _ACEOF
23170 if ac_fn_c_try_run "$LINENO"
23171 then :
23172
23173 else case e in #(
23174 e) no_lapack=yes ;;
23175 esac
23176 fi
23177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23178 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23179 esac
23180 fi
23181
23182
23183 if test "x$no_lapack" = x ; then
23184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23185 printf "%s\n" "yes" >&6; }
23186 have_lapack="yes"
23187 else
23188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23189 printf "%s\n" "no" >&6; }
23190 if test -f conf.lapacktest ; then
23191 :
23192 else
23193 echo "*** Could not run LAPACK test program, checking why..."
23194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23195 /* end confdefs.h. */
23196
23197 #include <stdio.h>
23198
23199 int
23200 main (void)
23201 {
23202 return (1);
23203 ;
23204 return 0;
23205 }
23206 _ACEOF
23207 if ac_fn_c_try_link "$LINENO"
23208 then :
23209 echo "*** The test program compiled, but did not run. This usually means"
23210 echo "*** that the run-time linker is not finding LAPACK. If it is not"
23211 echo "*** finding LAPACK, you'll need to set your LD_LIBRARY_PATH "
23212 echo "*** environment variable, or edit /etc/ld.so.conf to point"
23213 echo "*** to the installed location. Also, make sure you have run"
23214 echo "*** ldconfig if that is required on your system."
23215 echo "***"
23216 else case e in #(
23217 e) echo "*** The test program failed to compile or link. See config.log for the"
23218 echo "*** exact error that occured. This may mean LAPACK was incorrectly installed"
23219 echo "*** or that you have moved LAPACK since it was installed." ;;
23220 esac
23221 fi
23222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23223 conftest$ac_exeext conftest.$ac_ext
23224 LIBS="$ac_save_LIBS"
23225 fi
23226 LAPACK_LIBS=""
23227 :
23228 fi
23229 LIBS="$ac_save_LIBS"
23230
23231 rm -f conf.lapacktest
23232
23233 if test "$have_lapack" = "yes" ; then
23234 LAPACK_LIBS="${LAPACK_LIBS} -XCClinker,-lgfortran"
23235 fi
23236 ;;
23237 *)
23238
23239
23240 if test x"${LAPACK_LIBS}" = x ; then
23241 # check for OpenMP openblas using OpenBLAS naming
23242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ddot_ in -lopenblas_omp" >&5
23243 printf %s "checking for ddot_ in -lopenblas_omp... " >&6; }
23244 if test ${ac_cv_lib_openblas_omp_ddot_+y}
23245 then :
23246 printf %s "(cached) " >&6
23247 else case e in #(
23248 e) ac_check_lib_save_LIBS=$LIBS
23249 LIBS="-lopenblas_omp $LIBS"
23250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23251 /* end confdefs.h. */
23252
23253 /* Override any GCC internal prototype to avoid an error.
23254 Use char because int might match the return type of a GCC
23255 builtin and then its argument prototype would still apply.
23256 The 'extern "C"' is for builds by C++ compilers;
23257 although this is not generally supported in C code supporting it here
23258 has little cost and some practical benefit (sr 110532). */
23259 #ifdef __cplusplus
23260 extern "C"
23261 #endif
23262 char ddot_ (void);
23263 int
23264 main (void)
23265 {
23266 return ddot_ ();
23267 ;
23268 return 0;
23269 }
23270 _ACEOF
23271 if ac_fn_c_try_link "$LINENO"
23272 then :
23273 ac_cv_lib_openblas_omp_ddot_=yes
23274 else case e in #(
23275 e) ac_cv_lib_openblas_omp_ddot_=no ;;
23276 esac
23277 fi
23278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23279 conftest$ac_exeext conftest.$ac_ext
23280 LIBS=$ac_check_lib_save_LIBS ;;
23281 esac
23282 fi
23283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openblas_omp_ddot_" >&5
23284 printf "%s\n" "$ac_cv_lib_openblas_omp_ddot_" >&6; }
23285 if test "x$ac_cv_lib_openblas_omp_ddot_" = xyes
23286 then :
23287 LAPACK_LIBS="-lopenblas_omp"
23288 else case e in #(
23289 e) LAPACK_LIBS="none" ;;
23290 esac
23291 fi
23292
23293 if test $LAPACK_LIBS = "none" ; then
23294 # OpenMP OpenBLAS, Fedora naming
23295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ddot_ in -lopenblaso" >&5
23296 printf %s "checking for ddot_ in -lopenblaso... " >&6; }
23297 if test ${ac_cv_lib_openblaso_ddot_+y}
23298 then :
23299 printf %s "(cached) " >&6
23300 else case e in #(
23301 e) ac_check_lib_save_LIBS=$LIBS
23302 LIBS="-lopenblaso $LIBS"
23303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23304 /* end confdefs.h. */
23305
23306 /* Override any GCC internal prototype to avoid an error.
23307 Use char because int might match the return type of a GCC
23308 builtin and then its argument prototype would still apply.
23309 The 'extern "C"' is for builds by C++ compilers;
23310 although this is not generally supported in C code supporting it here
23311 has little cost and some practical benefit (sr 110532). */
23312 #ifdef __cplusplus
23313 extern "C"
23314 #endif
23315 char ddot_ (void);
23316 int
23317 main (void)
23318 {
23319 return ddot_ ();
23320 ;
23321 return 0;
23322 }
23323 _ACEOF
23324 if ac_fn_c_try_link "$LINENO"
23325 then :
23326 ac_cv_lib_openblaso_ddot_=yes
23327 else case e in #(
23328 e) ac_cv_lib_openblaso_ddot_=no ;;
23329 esac
23330 fi
23331 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23332 conftest$ac_exeext conftest.$ac_ext
23333 LIBS=$ac_check_lib_save_LIBS ;;
23334 esac
23335 fi
23336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openblaso_ddot_" >&5
23337 printf "%s\n" "$ac_cv_lib_openblaso_ddot_" >&6; }
23338 if test "x$ac_cv_lib_openblaso_ddot_" = xyes
23339 then :
23340 LAPACK_LIBS="-lopenblaso"
23341 else case e in #(
23342 e) LAPACK_LIBS="none" ;;
23343 esac
23344 fi
23345
23346 fi
23347 if test $LAPACK_LIBS = "none" ; then
23348 # OpenBLAS at all?
23349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ddot_ in -lopenblas" >&5
23350 printf %s "checking for ddot_ in -lopenblas... " >&6; }
23351 if test ${ac_cv_lib_openblas_ddot_+y}
23352 then :
23353 printf %s "(cached) " >&6
23354 else case e in #(
23355 e) ac_check_lib_save_LIBS=$LIBS
23356 LIBS="-lopenblas $LIBS"
23357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23358 /* end confdefs.h. */
23359
23360 /* Override any GCC internal prototype to avoid an error.
23361 Use char because int might match the return type of a GCC
23362 builtin and then its argument prototype would still apply.
23363 The 'extern "C"' is for builds by C++ compilers;
23364 although this is not generally supported in C code supporting it here
23365 has little cost and some practical benefit (sr 110532). */
23366 #ifdef __cplusplus
23367 extern "C"
23368 #endif
23369 char ddot_ (void);
23370 int
23371 main (void)
23372 {
23373 return ddot_ ();
23374 ;
23375 return 0;
23376 }
23377 _ACEOF
23378 if ac_fn_c_try_link "$LINENO"
23379 then :
23380 ac_cv_lib_openblas_ddot_=yes
23381 else case e in #(
23382 e) ac_cv_lib_openblas_ddot_=no ;;
23383 esac
23384 fi
23385 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23386 conftest$ac_exeext conftest.$ac_ext
23387 LIBS=$ac_check_lib_save_LIBS ;;
23388 esac
23389 fi
23390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openblas_ddot_" >&5
23391 printf "%s\n" "$ac_cv_lib_openblas_ddot_" >&6; }
23392 if test "x$ac_cv_lib_openblas_ddot_" = xyes
23393 then :
23394 LAPACK_LIBS="-lopenblas"
23395 else case e in #(
23396 e) LAPACK_LIBS="none" ;;
23397 esac
23398 fi
23399
23400 fi
23401 if test $LAPACK_LIBS = "none" ; then
23402 # fall back to liblapack plus libblas
23403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ddot_ in -lblas" >&5
23404 printf %s "checking for ddot_ in -lblas... " >&6; }
23405 if test ${ac_cv_lib_blas_ddot_+y}
23406 then :
23407 printf %s "(cached) " >&6
23408 else case e in #(
23409 e) ac_check_lib_save_LIBS=$LIBS
23410 LIBS="-lblas $LIBS"
23411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23412 /* end confdefs.h. */
23413
23414 /* Override any GCC internal prototype to avoid an error.
23415 Use char because int might match the return type of a GCC
23416 builtin and then its argument prototype would still apply.
23417 The 'extern "C"' is for builds by C++ compilers;
23418 although this is not generally supported in C code supporting it here
23419 has little cost and some practical benefit (sr 110532). */
23420 #ifdef __cplusplus
23421 extern "C"
23422 #endif
23423 char ddot_ (void);
23424 int
23425 main (void)
23426 {
23427 return ddot_ ();
23428 ;
23429 return 0;
23430 }
23431 _ACEOF
23432 if ac_fn_c_try_link "$LINENO"
23433 then :
23434 ac_cv_lib_blas_ddot_=yes
23435 else case e in #(
23436 e) ac_cv_lib_blas_ddot_=no ;;
23437 esac
23438 fi
23439 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23440 conftest$ac_exeext conftest.$ac_ext
23441 LIBS=$ac_check_lib_save_LIBS ;;
23442 esac
23443 fi
23444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_ddot_" >&5
23445 printf "%s\n" "$ac_cv_lib_blas_ddot_" >&6; }
23446 if test "x$ac_cv_lib_blas_ddot_" = xyes
23447 then :
23448 LAPACK_LIBS="-llapack -lblas"
23449 else case e in #(
23450 e) LAPACK_LIBS="none" ;;
23451 esac
23452 fi
23453
23454 fi
23455 if test $LAPACK_LIBS = "none" ; then
23456 echo "*** Couldn't find libopenblas or libblas"
23457 LAPACK_LIBS=""
23458 fi
23459 else
23460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lapack" >&5
23461 printf %s "checking for lapack... " >&6; }
23462 fi
23463
23464 ac_save_LIBS="$LIBS"
23465 LIBS="$LAPACK_LIBS $LIBS"
23466
23467 rm -f conf.lapacktest
23468 if test "$cross_compiling" = yes
23469 then :
23470 echo $ac_n "cross compiling; assumed OK... $ac_c"
23471 else case e in #(
23472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23473 /* end confdefs.h. */
23474
23475 #include <stdlib.h>
23476 int dpotrf_(char *, int *, double *, int *, int *);
23477 int main (void) {
23478 char uplo = 'L';
23479 int one = 1;
23480 int info = 0;
23481 double x = 1;
23482 dpotrf_(&uplo, &one, &x, &one, &info);
23483 system("touch conf.lapacktest");
23484 return 0;
23485 }
23486
23487 _ACEOF
23488 if ac_fn_c_try_run "$LINENO"
23489 then :
23490
23491 else case e in #(
23492 e) no_lapack=yes ;;
23493 esac
23494 fi
23495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23496 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23497 esac
23498 fi
23499
23500
23501 if test "x$no_lapack" = x ; then
23502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23503 printf "%s\n" "yes" >&6; }
23504 have_lapack="yes"
23505 else
23506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23507 printf "%s\n" "no" >&6; }
23508 if test -f conf.lapacktest ; then
23509 :
23510 else
23511 echo "*** Could not run LAPACK test program, checking why..."
23512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23513 /* end confdefs.h. */
23514
23515 #include <stdio.h>
23516
23517 int
23518 main (void)
23519 {
23520 return (1);
23521 ;
23522 return 0;
23523 }
23524 _ACEOF
23525 if ac_fn_c_try_link "$LINENO"
23526 then :
23527 echo "*** The test program compiled, but did not run. This usually means"
23528 echo "*** that the run-time linker is not finding LAPACK. If it is not"
23529 echo "*** finding LAPACK, you'll need to set your LD_LIBRARY_PATH "
23530 echo "*** environment variable, or edit /etc/ld.so.conf to point"
23531 echo "*** to the installed location. Also, make sure you have run"
23532 echo "*** ldconfig if that is required on your system."
23533 echo "***"
23534 else case e in #(
23535 e) echo "*** The test program failed to compile or link. See config.log for the"
23536 echo "*** exact error that occured. This may mean LAPACK was incorrectly installed"
23537 echo "*** or that you have moved LAPACK since it was installed." ;;
23538 esac
23539 fi
23540 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23541 conftest$ac_exeext conftest.$ac_ext
23542 LIBS="$ac_save_LIBS"
23543 fi
23544 LAPACK_LIBS=""
23545 :
23546 fi
23547 LIBS="$ac_save_LIBS"
23548
23549 rm -f conf.lapacktest
23550
23551 ;;
23552 esac
23553
23554 if test "$darwin_build" = "yes" ; then
23555 echo "darwin host_os: $host_os"
23556 case $host_os in
23557 *darwin19* | *darwin2*)
23558 MACLIB="-Wl,-framework -Wl,CoreServices"
23559
23560 printf "%s\n" "#define USE_SSE2 1" >>confdefs.h
23561
23562 sse2_result="yes"
23563 echo "macOS: using CoreServices, not Carbon"
23564 ;;
23565 *)
23566 MACLIB="-Wl,-framework -Wl,Carbon"
23567
23568 printf "%s\n" "#define USE_CARBON 1" >>confdefs.h
23569
23570 echo "macOS: using Carbon"
23571 ;;
23572 esac
23573 if test "$pkg_build" = "yes" ; then
23574 DARWIN_RPATH="/Applications/Gretl.app/Contents/Resources/lib"
23575
23576 fi
23577 fi
23578
23579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5
23580 printf %s "checking for mmap... " >&6; }
23581 if test ${ac_cv_func_mmap_ok+y}
23582 then :
23583 printf %s "(cached) " >&6
23584 else case e in #(
23585 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23586 /* end confdefs.h. */
23587
23588 #include <unistd.h>
23589 #include <sys/mman.h>
23590 #include <sys/stat.h>
23591 #include <fcntl.h>
23592
23593 int
23594 main (void)
23595 {
23596 mmap((void *)0, 0, PROT_READ, 0, 0, 0);
23597 ;
23598 return 0;
23599 }
23600 _ACEOF
23601 if ac_fn_c_try_link "$LINENO"
23602 then :
23603 ac_cv_func_mmap_ok=yes
23604 else case e in #(
23605 e) ac_cv_func_mmap_ok=no ;;
23606 esac
23607 fi
23608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23609 conftest$ac_exeext conftest.$ac_ext ;;
23610 esac
23611 fi
23612
23613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_ok" >&5
23614 printf "%s\n" "$ac_cv_func_mmap_ok" >&6; }
23615 if test $ac_cv_func_mmap_ok = yes
23616 then
23617 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
23618
23619 if test $darwin_build = no ; then
23620 RT_LIB="-lrt"
23621 fi
23622 fi
23623
23624 if test "$try_odbc" = "yes" ; then
23625 case $host_os in
23626 *arwin*)
23627 ODBC_LIBS="-liodbc"
23628 have_odbc="yes"
23629 ;;
23630 mingw*)
23631 ODBC_LIBS="-lodbc32"
23632 have_odbc="yes"
23633 ;;
23634 *)
23635
23636 # Check whether --with-ODBC-prefix was given.
23637 if test ${with_ODBC_prefix+y}
23638 then :
23639 withval=$with_ODBC_prefix; ODBC_config_prefix="$withval"
23640 else case e in #(
23641 e) ODBC_config_prefix="" ;;
23642 esac
23643 fi
23644
23645
23646 if test x$ODBC_config_prefix != x ; then
23647 ODBC_config_args="$ODBC_config_args --prefix=$ODBC_config_prefix"
23648 fi
23649
23650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ODBC" >&5
23651 printf %s "checking for ODBC... " >&6; }
23652 if test x"${ODBC_LIBS}" = x ; then
23653 ODBC_CFLAGS="-I$ODBC_config_prefix/include"
23654 ODBC_LIBS="-L$ODBC_config_prefix/lib -lodbc"
23655 fi
23656
23657 ac_save_CFLAGS="$CFLAGS"
23658 ac_save_LIBS="$LIBS"
23659 CFLAGS="$ODBC_CFLAGS $CFLAGS"
23660 LIBS="$ODBC_LIBS $LIBS"
23661
23662 rm -f conf.ODBCtest
23663 if test "$cross_compiling" = yes
23664 then :
23665 echo $ac_n "cross compiling; assumed OK... $ac_c"
23666 else case e in #(
23667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23668 /* end confdefs.h. */
23669
23670 #include <stdlib.h>
23671 #include <sql.h>
23672 #include <sqlext.h>
23673 #include <sqltypes.h>
23674 int main (void)
23675 {
23676 SQLFreeConnect(NULL);
23677 system ("touch conf.ODBCtest");
23678 return 0;
23679 }
23680
23681 _ACEOF
23682 if ac_fn_c_try_run "$LINENO"
23683 then :
23684
23685 else case e in #(
23686 e) no_ODBC=yes ;;
23687 esac
23688 fi
23689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23690 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23691 esac
23692 fi
23693
23694 CFLAGS="$ac_save_CFLAGS"
23695 LIBS="$ac_save_LIBS"
23696
23697 if test "x$no_ODBC" = x ; then
23698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23699 printf "%s\n" "yes" >&6; }
23700 have_odbc="yes"
23701 else
23702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23703 printf "%s\n" "no" >&6; }
23704 if test -f conf.ODBCtest ; then
23705 :
23706 else
23707 echo "*** Could not run ODBC test program, checking why..."
23708 CFLAGS="$ODBC_CFLAGS $CFLAGS"
23709 LIBS="$LIBS $ODBC_LIBS"
23710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23711 /* end confdefs.h. */
23712
23713 #include <stdlib.h>
23714 #include <sql.h>
23715 #include <sqlext.h>
23716 #include <sqltypes.h>
23717
23718 int
23719 main (void)
23720 {
23721 return (1);
23722 ;
23723 return 0;
23724 }
23725 _ACEOF
23726 if ac_fn_c_try_link "$LINENO"
23727 then :
23728 echo "*** The test program compiled, but did not run. This usually means"
23729 echo "*** that the run-time linker is not finding ODBC. If it is not"
23730 echo "*** finding ODBC, you'll need to set your LD_LIBRARY_PATH "
23731 echo "*** environment variable, or edit /etc/ld.so.conf to point"
23732 echo "*** to the installed location. Also, make sure you have run"
23733 echo "*** ldconfig if that is required on your system."
23734 echo "***"
23735 else case e in #(
23736 e) echo "*** The test program failed to compile or link. See config.log for the"
23737 echo "*** exact error that occured. This may mean ODBC was incorrectly installed"
23738 echo "*** or that you have moved ODBC since it was installed." ;;
23739 esac
23740 fi
23741 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23742 conftest$ac_exeext conftest.$ac_ext
23743 CFLAGS="$ac_save_CFLAGS"
23744 LIBS="$ac_save_LIBS"
23745 fi
23746 ODBC_CFLAGS=""
23747 ODBC_LIBS=""
23748 have_odbc="no"
23749
23750 fi
23751
23752
23753 rm -f conf.ODBCtest
23754
23755 ;;
23756 esac
23757 fi
23758
23759 if test "$check_gnuplot" = "no" ; then
23760 have_gnuplot=yes
23761 else
23762
23763
23764 # Extract the first word of "gnuplot", so it can be a program name with args.
23765 set dummy gnuplot; ac_word=$2
23766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23767 printf %s "checking for $ac_word... " >&6; }
23768 if test ${ac_cv_prog_GNUPLOT+y}
23769 then :
23770 printf %s "(cached) " >&6
23771 else case e in #(
23772 e) if test -n "$GNUPLOT"; then
23773 ac_cv_prog_GNUPLOT="$GNUPLOT" # Let the user override the test.
23774 else
23775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23776 for as_dir in $PATH
23777 do
23778 IFS=$as_save_IFS
23779 case $as_dir in #(((
23780 '') as_dir=./ ;;
23781 */) ;;
23782 *) as_dir=$as_dir/ ;;
23783 esac
23784 for ac_exec_ext in '' $ac_executable_extensions; do
23785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23786 ac_cv_prog_GNUPLOT="yes"
23787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23788 break 2
23789 fi
23790 done
23791 done
23792 IFS=$as_save_IFS
23793
23794 fi ;;
23795 esac
23796 fi
23797 GNUPLOT=$ac_cv_prog_GNUPLOT
23798 if test -n "$GNUPLOT"; then
23799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT" >&5
23800 printf "%s\n" "$GNUPLOT" >&6; }
23801 else
23802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23803 printf "%s\n" "no" >&6; }
23804 fi
23805
23806
23807 if test x"${GNUPLOT}" = xyes ; then
23808 have_gnuplot=yes
23809 fi
23810
23811 if test "$build_gui" = "yes" ; then
23812 have_gnuplot=no
23813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnuplot >= 5.2 with cairo support" >&5
23814 printf %s "checking for gnuplot >= 5.2 with cairo support... " >&6; }
23815 echo "set term pngcairo" | GNUTERM=dumb gnuplot 2>/dev/null && have_gnuplot=yes
23816 if test "$have_gnuplot" = yes ; then
23817 GPVERSION=`gnuplot --version | awk '{print $2}'`
23818 if test "x$GPVERSION" = x ; then
23819 have_gnuplot=no
23820 else
23821 GPMAJOR=`echo $GPVERSION | cut -c1 2>/dev/null`
23822 GPMINOR=`echo $GPVERSION | cut -c3 2>/dev/null`
23823 if test $GPMAJOR -eq 5 && test $GPMINOR -ge 2; then
23824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23825 printf "%s\n" "yes" >&6; }
23826 elif test $GPMAJOR -gt 5; then
23827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23828 printf "%s\n" "yes" >&6; }
23829 else
23830 have_gnuplot=no
23831 fi
23832 fi
23833 fi
23834 if test "$have_gnuplot" = no ; then
23835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23836 printf "%s\n" "no" >&6; }
23837 echo
23838 echo "* gretl needs gnuplot >= 5.2, with cairo support."
23839 echo "* The current version of gnuplot is available from www.gnuplot.info"
23840 exit 1
23841 fi
23842 fi
23843 fi
23844
23845
23846
23847 # Extract the first word of "pdflatex", so it can be a program name with args.
23848 set dummy pdflatex; ac_word=$2
23849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23850 printf %s "checking for $ac_word... " >&6; }
23851 if test ${ac_cv_prog_PDFLATEX+y}
23852 then :
23853 printf %s "(cached) " >&6
23854 else case e in #(
23855 e) if test -n "$PDFLATEX"; then
23856 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
23857 else
23858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23859 for as_dir in $PATH
23860 do
23861 IFS=$as_save_IFS
23862 case $as_dir in #(((
23863 '') as_dir=./ ;;
23864 */) ;;
23865 *) as_dir=$as_dir/ ;;
23866 esac
23867 for ac_exec_ext in '' $ac_executable_extensions; do
23868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23869 ac_cv_prog_PDFLATEX="yes"
23870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23871 break 2
23872 fi
23873 done
23874 done
23875 IFS=$as_save_IFS
23876
23877 fi ;;
23878 esac
23879 fi
23880 PDFLATEX=$ac_cv_prog_PDFLATEX
23881 if test -n "$PDFLATEX"; then
23882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
23883 printf "%s\n" "$PDFLATEX" >&6; }
23884 else
23885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23886 printf "%s\n" "no" >&6; }
23887 fi
23888
23889
23890 test x"${PDFLATEX}" = xyes && printf "%s\n" "#define HAVE_PDFLATEX 1" >>confdefs.h
23891
23892 if test x"${PDFLATEX}" = xyes ; then
23893 have_pdflatex="yes"
23894 else
23895 have_pdflatex="no"
23896 fi
23897
23898 if test -z "$PKG_CONFIG"; then
23899
23900
23901
23902
23903
23904
23905
23906 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23907 if test -n "$ac_tool_prefix"; then
23908 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23909 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23911 printf %s "checking for $ac_word... " >&6; }
23912 if test ${ac_cv_path_PKG_CONFIG+y}
23913 then :
23914 printf %s "(cached) " >&6
23915 else case e in #(
23916 e) case $PKG_CONFIG in
23917 [\\/]* | ?:[\\/]*)
23918 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23919 ;;
23920 *)
23921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23922 for as_dir in $PATH
23923 do
23924 IFS=$as_save_IFS
23925 case $as_dir in #(((
23926 '') as_dir=./ ;;
23927 */) ;;
23928 *) as_dir=$as_dir/ ;;
23929 esac
23930 for ac_exec_ext in '' $ac_executable_extensions; do
23931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23932 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
23933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23934 break 2
23935 fi
23936 done
23937 done
23938 IFS=$as_save_IFS
23939
23940 ;;
23941 esac ;;
23942 esac
23943 fi
23944 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23945 if test -n "$PKG_CONFIG"; then
23946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23947 printf "%s\n" "$PKG_CONFIG" >&6; }
23948 else
23949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23950 printf "%s\n" "no" >&6; }
23951 fi
23952
23953
23954 fi
23955 if test -z "$ac_cv_path_PKG_CONFIG"; then
23956 ac_pt_PKG_CONFIG=$PKG_CONFIG
23957 # Extract the first word of "pkg-config", so it can be a program name with args.
23958 set dummy pkg-config; ac_word=$2
23959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23960 printf %s "checking for $ac_word... " >&6; }
23961 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
23962 then :
23963 printf %s "(cached) " >&6
23964 else case e in #(
23965 e) case $ac_pt_PKG_CONFIG in
23966 [\\/]* | ?:[\\/]*)
23967 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23968 ;;
23969 *)
23970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23971 for as_dir in $PATH
23972 do
23973 IFS=$as_save_IFS
23974 case $as_dir in #(((
23975 '') as_dir=./ ;;
23976 */) ;;
23977 *) as_dir=$as_dir/ ;;
23978 esac
23979 for ac_exec_ext in '' $ac_executable_extensions; do
23980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23981 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
23982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23983 break 2
23984 fi
23985 done
23986 done
23987 IFS=$as_save_IFS
23988
23989 ;;
23990 esac ;;
23991 esac
23992 fi
23993 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23994 if test -n "$ac_pt_PKG_CONFIG"; then
23995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23996 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
23997 else
23998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23999 printf "%s\n" "no" >&6; }
24000 fi
24001
24002 if test "x$ac_pt_PKG_CONFIG" = x; then
24003 PKG_CONFIG=""
24004 else
24005 case $cross_compiling:$ac_tool_warned in
24006 yes:)
24007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24008 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24009 ac_tool_warned=yes ;;
24010 esac
24011 PKG_CONFIG=$ac_pt_PKG_CONFIG
24012 fi
24013 else
24014 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24015 fi
24016
24017 fi
24018 if test -n "$PKG_CONFIG"; then
24019 _pkg_min_version=0.9.0
24020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24021 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24022 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24024 printf "%s\n" "yes" >&6; }
24025 else
24026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24027 printf "%s\n" "no" >&6; }
24028 PKG_CONFIG=""
24029 fi
24030 fi
24031 fi
24032 if test "$PKG_CONFIG" = "no" ; then
24033 echo "
24034 Please install pkg-config and then reconfigure gretl.
24035 pkg-config is available from http://www.freedesktop.org/
24036 "
24037 exit 1
24038 fi
24039
24040 orig_CFLAGS=$CFLAGS
24041
24042
24043 pkg_failed=no
24044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
24045 printf %s "checking for FFTW... " >&6; }
24046
24047 if test -n "$FFTW_CFLAGS"; then
24048 pkg_cv_FFTW_CFLAGS="$FFTW_CFLAGS"
24049 elif test -n "$PKG_CONFIG"; then
24050 if test -n "$PKG_CONFIG" && \
24051 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3\""; } >&5
24052 ($PKG_CONFIG --exists --print-errors "fftw3") 2>&5
24053 ac_status=$?
24054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24055 test $ac_status = 0; }; then
24056 pkg_cv_FFTW_CFLAGS=`$PKG_CONFIG --cflags "fftw3" 2>/dev/null`
24057 test "x$?" != "x0" && pkg_failed=yes
24058 else
24059 pkg_failed=yes
24060 fi
24061 else
24062 pkg_failed=untried
24063 fi
24064 if test -n "$FFTW_LIBS"; then
24065 pkg_cv_FFTW_LIBS="$FFTW_LIBS"
24066 elif test -n "$PKG_CONFIG"; then
24067 if test -n "$PKG_CONFIG" && \
24068 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3\""; } >&5
24069 ($PKG_CONFIG --exists --print-errors "fftw3") 2>&5
24070 ac_status=$?
24071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24072 test $ac_status = 0; }; then
24073 pkg_cv_FFTW_LIBS=`$PKG_CONFIG --libs "fftw3" 2>/dev/null`
24074 test "x$?" != "x0" && pkg_failed=yes
24075 else
24076 pkg_failed=yes
24077 fi
24078 else
24079 pkg_failed=untried
24080 fi
24081
24082
24083
24084 if test $pkg_failed = yes; then
24085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24086 printf "%s\n" "no" >&6; }
24087
24088 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24089 _pkg_short_errors_supported=yes
24090 else
24091 _pkg_short_errors_supported=no
24092 fi
24093 if test $_pkg_short_errors_supported = yes; then
24094 FFTW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3" 2>&1`
24095 else
24096 FFTW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3" 2>&1`
24097 fi
24098 # Put the nasty error message in config.log where it belongs
24099 echo "$FFTW_PKG_ERRORS" >&5
24100
24101 have_fftw3="no"
24102 elif test $pkg_failed = untried; then
24103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24104 printf "%s\n" "no" >&6; }
24105 have_fftw3="no"
24106 else
24107 FFTW_CFLAGS=$pkg_cv_FFTW_CFLAGS
24108 FFTW_LIBS=$pkg_cv_FFTW_LIBS
24109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24110 printf "%s\n" "yes" >&6; }
24111 have_fftw3="yes"
24112 fi
24113
24114 if test "$use_curl" = "yes" ; then
24115 if test "x$CURL_CFLAGS" != "x" || test "x$CURL_LIBS" != "x" ; then
24116 have_curl="yes"
24117 else
24118
24119 pkg_failed=no
24120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
24121 printf %s "checking for CURL... " >&6; }
24122
24123 if test -n "$CURL_CFLAGS"; then
24124 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
24125 elif test -n "$PKG_CONFIG"; then
24126 if test -n "$PKG_CONFIG" && \
24127 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.13.0\""; } >&5
24128 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.13.0") 2>&5
24129 ac_status=$?
24130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24131 test $ac_status = 0; }; then
24132 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.13.0" 2>/dev/null`
24133 test "x$?" != "x0" && pkg_failed=yes
24134 else
24135 pkg_failed=yes
24136 fi
24137 else
24138 pkg_failed=untried
24139 fi
24140 if test -n "$CURL_LIBS"; then
24141 pkg_cv_CURL_LIBS="$CURL_LIBS"
24142 elif test -n "$PKG_CONFIG"; then
24143 if test -n "$PKG_CONFIG" && \
24144 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.13.0\""; } >&5
24145 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.13.0") 2>&5
24146 ac_status=$?
24147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24148 test $ac_status = 0; }; then
24149 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.13.0" 2>/dev/null`
24150 test "x$?" != "x0" && pkg_failed=yes
24151 else
24152 pkg_failed=yes
24153 fi
24154 else
24155 pkg_failed=untried
24156 fi
24157
24158
24159
24160 if test $pkg_failed = yes; then
24161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24162 printf "%s\n" "no" >&6; }
24163
24164 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24165 _pkg_short_errors_supported=yes
24166 else
24167 _pkg_short_errors_supported=no
24168 fi
24169 if test $_pkg_short_errors_supported = yes; then
24170 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.13.0" 2>&1`
24171 else
24172 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.13.0" 2>&1`
24173 fi
24174 # Put the nasty error message in config.log where it belongs
24175 echo "$CURL_PKG_ERRORS" >&5
24176
24177 have_curl="no"
24178 elif test $pkg_failed = untried; then
24179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24180 printf "%s\n" "no" >&6; }
24181 have_curl="no"
24182 else
24183 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
24184 CURL_LIBS=$pkg_cv_CURL_LIBS
24185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24186 printf "%s\n" "yes" >&6; }
24187 have_curl="yes"
24188 fi
24189 fi
24190 if test "$have_curl" = "yes" ; then
24191 printf "%s\n" "#define USE_CURL 1" >>confdefs.h
24192
24193 fi
24194 fi
24195
24196
24197 pkg_failed=no
24198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
24199 printf %s "checking for GLIB... " >&6; }
24200
24201 if test -n "$GLIB_CFLAGS"; then
24202 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
24203 elif test -n "$PKG_CONFIG"; then
24204 if test -n "$PKG_CONFIG" && \
24205 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.46.0\""; } >&5
24206 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.46.0") 2>&5
24207 ac_status=$?
24208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24209 test $ac_status = 0; }; then
24210 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.46.0" 2>/dev/null`
24211 test "x$?" != "x0" && pkg_failed=yes
24212 else
24213 pkg_failed=yes
24214 fi
24215 else
24216 pkg_failed=untried
24217 fi
24218 if test -n "$GLIB_LIBS"; then
24219 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
24220 elif test -n "$PKG_CONFIG"; then
24221 if test -n "$PKG_CONFIG" && \
24222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.46.0\""; } >&5
24223 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.46.0") 2>&5
24224 ac_status=$?
24225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24226 test $ac_status = 0; }; then
24227 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.46.0" 2>/dev/null`
24228 test "x$?" != "x0" && pkg_failed=yes
24229 else
24230 pkg_failed=yes
24231 fi
24232 else
24233 pkg_failed=untried
24234 fi
24235
24236
24237
24238 if test $pkg_failed = yes; then
24239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24240 printf "%s\n" "no" >&6; }
24241
24242 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24243 _pkg_short_errors_supported=yes
24244 else
24245 _pkg_short_errors_supported=no
24246 fi
24247 if test $_pkg_short_errors_supported = yes; then
24248 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.46.0" 2>&1`
24249 else
24250 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.46.0" 2>&1`
24251 fi
24252 # Put the nasty error message in config.log where it belongs
24253 echo "$GLIB_PKG_ERRORS" >&5
24254
24255 have_glib2="no"
24256 elif test $pkg_failed = untried; then
24257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24258 printf "%s\n" "no" >&6; }
24259 have_glib2="no"
24260 else
24261 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
24262 GLIB_LIBS=$pkg_cv_GLIB_LIBS
24263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24264 printf "%s\n" "yes" >&6; }
24265 have_glib2="yes"
24266 fi
24267 if test "${have_glib2}" = "no" ; then
24268 echo "
24269 Please install glib-2.0 >= 2.46.0 and then reconfigure gretl.
24270 glib-2.0 is available from http://www.gtk.org/
24271 "
24272 exit 1
24273 fi
24274
24275 if test "$try_json_glib" = "yes" ; then
24276
24277 pkg_failed=no
24278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JSON_GLIB" >&5
24279 printf %s "checking for JSON_GLIB... " >&6; }
24280
24281 if test -n "$JSON_GLIB_CFLAGS"; then
24282 pkg_cv_JSON_GLIB_CFLAGS="$JSON_GLIB_CFLAGS"
24283 elif test -n "$PKG_CONFIG"; then
24284 if test -n "$PKG_CONFIG" && \
24285 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-glib-1.0 >= 1.4\""; } >&5
24286 ($PKG_CONFIG --exists --print-errors "json-glib-1.0 >= 1.4") 2>&5
24287 ac_status=$?
24288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24289 test $ac_status = 0; }; then
24290 pkg_cv_JSON_GLIB_CFLAGS=`$PKG_CONFIG --cflags "json-glib-1.0 >= 1.4" 2>/dev/null`
24291 test "x$?" != "x0" && pkg_failed=yes
24292 else
24293 pkg_failed=yes
24294 fi
24295 else
24296 pkg_failed=untried
24297 fi
24298 if test -n "$JSON_GLIB_LIBS"; then
24299 pkg_cv_JSON_GLIB_LIBS="$JSON_GLIB_LIBS"
24300 elif test -n "$PKG_CONFIG"; then
24301 if test -n "$PKG_CONFIG" && \
24302 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-glib-1.0 >= 1.4\""; } >&5
24303 ($PKG_CONFIG --exists --print-errors "json-glib-1.0 >= 1.4") 2>&5
24304 ac_status=$?
24305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24306 test $ac_status = 0; }; then
24307 pkg_cv_JSON_GLIB_LIBS=`$PKG_CONFIG --libs "json-glib-1.0 >= 1.4" 2>/dev/null`
24308 test "x$?" != "x0" && pkg_failed=yes
24309 else
24310 pkg_failed=yes
24311 fi
24312 else
24313 pkg_failed=untried
24314 fi
24315
24316
24317
24318 if test $pkg_failed = yes; then
24319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24320 printf "%s\n" "no" >&6; }
24321
24322 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24323 _pkg_short_errors_supported=yes
24324 else
24325 _pkg_short_errors_supported=no
24326 fi
24327 if test $_pkg_short_errors_supported = yes; then
24328 JSON_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-glib-1.0 >= 1.4" 2>&1`
24329 else
24330 JSON_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-glib-1.0 >= 1.4" 2>&1`
24331 fi
24332 # Put the nasty error message in config.log where it belongs
24333 echo "$JSON_GLIB_PKG_ERRORS" >&5
24334
24335 have_json_glib="no"
24336 elif test $pkg_failed = untried; then
24337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24338 printf "%s\n" "no" >&6; }
24339 have_json_glib="no"
24340 else
24341 JSON_GLIB_CFLAGS=$pkg_cv_JSON_GLIB_CFLAGS
24342 JSON_GLIB_LIBS=$pkg_cv_JSON_GLIB_LIBS
24343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24344 printf "%s\n" "yes" >&6; }
24345 have_json_glib="yes"
24346 fi
24347 if test $have_json_glib = "no" ; then
24348 echo "
24349 The json-glib-1.0 library was not found, or the version found
24350 was not new enough. While we recommend including JSON support
24351 you can disable this by using the option --disable-json when
24352 running configure.
24353 "
24354 exit 1
24355 fi
24356 fi
24357
24358 if test "$prefer_gtk2" = "yes" ; then
24359
24360 pkg_failed=no
24361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
24362 printf %s "checking for GTK2... " >&6; }
24363
24364 if test -n "$GTK2_CFLAGS"; then
24365 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
24366 elif test -n "$PKG_CONFIG"; then
24367 if test -n "$PKG_CONFIG" && \
24368 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.20.0\""; } >&5
24369 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.20.0") 2>&5
24370 ac_status=$?
24371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24372 test $ac_status = 0; }; then
24373 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.20.0" 2>/dev/null`
24374 test "x$?" != "x0" && pkg_failed=yes
24375 else
24376 pkg_failed=yes
24377 fi
24378 else
24379 pkg_failed=untried
24380 fi
24381 if test -n "$GTK2_LIBS"; then
24382 pkg_cv_GTK2_LIBS="$GTK2_LIBS"
24383 elif test -n "$PKG_CONFIG"; then
24384 if test -n "$PKG_CONFIG" && \
24385 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.20.0\""; } >&5
24386 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.20.0") 2>&5
24387 ac_status=$?
24388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24389 test $ac_status = 0; }; then
24390 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.20.0" 2>/dev/null`
24391 test "x$?" != "x0" && pkg_failed=yes
24392 else
24393 pkg_failed=yes
24394 fi
24395 else
24396 pkg_failed=untried
24397 fi
24398
24399
24400
24401 if test $pkg_failed = yes; then
24402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24403 printf "%s\n" "no" >&6; }
24404
24405 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24406 _pkg_short_errors_supported=yes
24407 else
24408 _pkg_short_errors_supported=no
24409 fi
24410 if test $_pkg_short_errors_supported = yes; then
24411 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.20.0" 2>&1`
24412 else
24413 GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.20.0" 2>&1`
24414 fi
24415 # Put the nasty error message in config.log where it belongs
24416 echo "$GTK2_PKG_ERRORS" >&5
24417
24418 echo "GTK 2 >= 2.20.0 not found"
24419
24420 elif test $pkg_failed = untried; then
24421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24422 printf "%s\n" "no" >&6; }
24423 echo "GTK 2 >= 2.20.0 not found"
24424
24425 else
24426 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
24427 GTK2_LIBS=$pkg_cv_GTK2_LIBS
24428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24429 printf "%s\n" "yes" >&6; }
24430 GTK_CFLAGS=$GTK2_CFLAGS
24431 GTK_LIBS=$GTK2_LIBS
24432 CFLAGS="$CFLAGS $GTK_CFLAGS"
24433 LIBS="$LIBS $GTK_LIBS"
24434 gtk_version="2.0"
24435 fi
24436 elif test "$build_gui" = "yes" ; then
24437
24438 pkg_failed=no
24439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK3" >&5
24440 printf %s "checking for GTK3... " >&6; }
24441
24442 if test -n "$GTK3_CFLAGS"; then
24443 pkg_cv_GTK3_CFLAGS="$GTK3_CFLAGS"
24444 elif test -n "$PKG_CONFIG"; then
24445 if test -n "$PKG_CONFIG" && \
24446 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.20.0\""; } >&5
24447 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.20.0") 2>&5
24448 ac_status=$?
24449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24450 test $ac_status = 0; }; then
24451 pkg_cv_GTK3_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.20.0" 2>/dev/null`
24452 test "x$?" != "x0" && pkg_failed=yes
24453 else
24454 pkg_failed=yes
24455 fi
24456 else
24457 pkg_failed=untried
24458 fi
24459 if test -n "$GTK3_LIBS"; then
24460 pkg_cv_GTK3_LIBS="$GTK3_LIBS"
24461 elif test -n "$PKG_CONFIG"; then
24462 if test -n "$PKG_CONFIG" && \
24463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.20.0\""; } >&5
24464 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.20.0") 2>&5
24465 ac_status=$?
24466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24467 test $ac_status = 0; }; then
24468 pkg_cv_GTK3_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.20.0" 2>/dev/null`
24469 test "x$?" != "x0" && pkg_failed=yes
24470 else
24471 pkg_failed=yes
24472 fi
24473 else
24474 pkg_failed=untried
24475 fi
24476
24477
24478
24479 if test $pkg_failed = yes; then
24480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24481 printf "%s\n" "no" >&6; }
24482
24483 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24484 _pkg_short_errors_supported=yes
24485 else
24486 _pkg_short_errors_supported=no
24487 fi
24488 if test $_pkg_short_errors_supported = yes; then
24489 GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.20.0" 2>&1`
24490 else
24491 GTK3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.20.0" 2>&1`
24492 fi
24493 # Put the nasty error message in config.log where it belongs
24494 echo "$GTK3_PKG_ERRORS" >&5
24495
24496 echo "GTK 3 >= 3.20.0 not found"
24497
24498 elif test $pkg_failed = untried; then
24499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24500 printf "%s\n" "no" >&6; }
24501 echo "GTK 3 >= 3.20.0 not found"
24502
24503 else
24504 GTK3_CFLAGS=$pkg_cv_GTK3_CFLAGS
24505 GTK3_LIBS=$pkg_cv_GTK3_LIBS
24506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24507 printf "%s\n" "yes" >&6; }
24508 GTK_CFLAGS=$GTK3_CFLAGS
24509 GTK_LIBS=$GTK3_LIBS
24510 CFLAGS="$CFLAGS $GTK_CFLAGS"
24511 LIBS="$LIBS $GTK_LIBS"
24512 printf "%s\n" "#define USE_GTK3 1" >>confdefs.h
24513
24514 gtk_version="3.0"
24515 fi
24516 fi
24517
24518 if test "$prefer_gtk2" = "no" && test "$gtk_version" = "none" ; then
24519 if test "$build_gui" = "yes" ; then
24520
24521 pkg_failed=no
24522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
24523 printf %s "checking for GTK2... " >&6; }
24524
24525 if test -n "$GTK2_CFLAGS"; then
24526 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
24527 elif test -n "$PKG_CONFIG"; then
24528 if test -n "$PKG_CONFIG" && \
24529 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.20.0\""; } >&5
24530 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.20.0") 2>&5
24531 ac_status=$?
24532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24533 test $ac_status = 0; }; then
24534 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.20.0" 2>/dev/null`
24535 test "x$?" != "x0" && pkg_failed=yes
24536 else
24537 pkg_failed=yes
24538 fi
24539 else
24540 pkg_failed=untried
24541 fi
24542 if test -n "$GTK2_LIBS"; then
24543 pkg_cv_GTK2_LIBS="$GTK2_LIBS"
24544 elif test -n "$PKG_CONFIG"; then
24545 if test -n "$PKG_CONFIG" && \
24546 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.20.0\""; } >&5
24547 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.20.0") 2>&5
24548 ac_status=$?
24549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24550 test $ac_status = 0; }; then
24551 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.20.0" 2>/dev/null`
24552 test "x$?" != "x0" && pkg_failed=yes
24553 else
24554 pkg_failed=yes
24555 fi
24556 else
24557 pkg_failed=untried
24558 fi
24559
24560
24561
24562 if test $pkg_failed = yes; then
24563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24564 printf "%s\n" "no" >&6; }
24565
24566 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24567 _pkg_short_errors_supported=yes
24568 else
24569 _pkg_short_errors_supported=no
24570 fi
24571 if test $_pkg_short_errors_supported = yes; then
24572 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.20.0" 2>&1`
24573 else
24574 GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.20.0" 2>&1`
24575 fi
24576 # Put the nasty error message in config.log where it belongs
24577 echo "$GTK2_PKG_ERRORS" >&5
24578
24579 build_gui="no"
24580 echo "GTK 2 >= 2.20.0 not found"
24581
24582 elif test $pkg_failed = untried; then
24583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24584 printf "%s\n" "no" >&6; }
24585 build_gui="no"
24586 echo "GTK 2 >= 2.20.0 not found"
24587
24588 else
24589 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
24590 GTK2_LIBS=$pkg_cv_GTK2_LIBS
24591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24592 printf "%s\n" "yes" >&6; }
24593 GTK_CFLAGS=$GTK2_CFLAGS
24594 GTK_LIBS=$GTK2_LIBS
24595 CFLAGS="$CFLAGS $GTK_CFLAGS"
24596 LIBS="$LIBS $GTK_LIBS"
24597 gtk_version="2.0"
24598 fi
24599 fi
24600 fi
24601
24602 if test "$darwin_build" = "yes" ; then
24603 if test "$gtk_version" = "3.0" ; then
24604 if test -n "$PKG_CONFIG" && \
24605 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-quartz-3.0\""; } >&5
24606 ($PKG_CONFIG --exists --print-errors "gtk+-quartz-3.0") 2>&5
24607 ac_status=$?
24608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24609 test $ac_status = 0; }; then
24610 echo "Found quartz-based GTK3"
24611 printf "%s\n" "#define MAC_NATIVE 1" >>confdefs.h
24612
24613 printf "%s\n" "#define HAVE_MAC_THEMES 1" >>confdefs.h
24614
24615 mac_native="yes"
24616 else
24617 mac_native="no"
24618 fi
24619 elif test "$gtk_version" = "2.0" ; then
24620 if test -n "$PKG_CONFIG" && \
24621 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-quartz-2.0\""; } >&5
24622 ($PKG_CONFIG --exists --print-errors "gtk+-quartz-2.0") 2>&5
24623 ac_status=$?
24624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24625 test $ac_status = 0; }; then
24626 echo "Found quartz-based GTK2"
24627 printf "%s\n" "#define MAC_NATIVE 1" >>confdefs.h
24628
24629 mac_native="yes"
24630 else
24631 mac_native="no"
24632 fi
24633 if test -n "$PKG_CONFIG" && \
24634 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gretl-mac-themes\""; } >&5
24635 ($PKG_CONFIG --exists --print-errors "gretl-mac-themes") 2>&5
24636 ac_status=$?
24637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24638 test $ac_status = 0; }; then
24639 printf "%s\n" "#define HAVE_MAC_THEMES 1" >>confdefs.h
24640
24641 fi
24642 fi
24643 fi
24644
24645 if test "$gtk_version" = "2.0" ; then
24646 GTK_PREFIX=`$PKG_CONFIG --variable=prefix gtk+-2.0`
24647 else
24648 GTK_PREFIX=`$PKG_CONFIG --variable=prefix gtk+-3.0`
24649 fi
24650
24651 if test "$mac_native" = "yes" ; then
24652 if test "$gtk_version" = "2.0" ; then
24653
24654 pkg_failed=no
24655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTKMAC" >&5
24656 printf %s "checking for GTKMAC... " >&6; }
24657
24658 if test -n "$GTKMAC_CFLAGS"; then
24659 pkg_cv_GTKMAC_CFLAGS="$GTKMAC_CFLAGS"
24660 elif test -n "$PKG_CONFIG"; then
24661 if test -n "$PKG_CONFIG" && \
24662 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration-gtk2 >= 2.0.5\""; } >&5
24663 ($PKG_CONFIG --exists --print-errors "gtk-mac-integration-gtk2 >= 2.0.5") 2>&5
24664 ac_status=$?
24665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666 test $ac_status = 0; }; then
24667 pkg_cv_GTKMAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration-gtk2 >= 2.0.5" 2>/dev/null`
24668 test "x$?" != "x0" && pkg_failed=yes
24669 else
24670 pkg_failed=yes
24671 fi
24672 else
24673 pkg_failed=untried
24674 fi
24675 if test -n "$GTKMAC_LIBS"; then
24676 pkg_cv_GTKMAC_LIBS="$GTKMAC_LIBS"
24677 elif test -n "$PKG_CONFIG"; then
24678 if test -n "$PKG_CONFIG" && \
24679 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration-gtk2 >= 2.0.5\""; } >&5
24680 ($PKG_CONFIG --exists --print-errors "gtk-mac-integration-gtk2 >= 2.0.5") 2>&5
24681 ac_status=$?
24682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24683 test $ac_status = 0; }; then
24684 pkg_cv_GTKMAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration-gtk2 >= 2.0.5" 2>/dev/null`
24685 test "x$?" != "x0" && pkg_failed=yes
24686 else
24687 pkg_failed=yes
24688 fi
24689 else
24690 pkg_failed=untried
24691 fi
24692
24693
24694
24695 if test $pkg_failed = yes; then
24696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24697 printf "%s\n" "no" >&6; }
24698
24699 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24700 _pkg_short_errors_supported=yes
24701 else
24702 _pkg_short_errors_supported=no
24703 fi
24704 if test $_pkg_short_errors_supported = yes; then
24705 GTKMAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk-mac-integration-gtk2 >= 2.0.5" 2>&1`
24706 else
24707 GTKMAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk-mac-integration-gtk2 >= 2.0.5" 2>&1`
24708 fi
24709 # Put the nasty error message in config.log where it belongs
24710 echo "$GTKMAC_PKG_ERRORS" >&5
24711
24712 mac_integration="no"
24713 elif test $pkg_failed = untried; then
24714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24715 printf "%s\n" "no" >&6; }
24716 mac_integration="no"
24717 else
24718 GTKMAC_CFLAGS=$pkg_cv_GTKMAC_CFLAGS
24719 GTKMAC_LIBS=$pkg_cv_GTKMAC_LIBS
24720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24721 printf "%s\n" "yes" >&6; }
24722 mac_integration="yes"
24723 fi
24724 else
24725
24726 pkg_failed=no
24727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTKMAC" >&5
24728 printf %s "checking for GTKMAC... " >&6; }
24729
24730 if test -n "$GTKMAC_CFLAGS"; then
24731 pkg_cv_GTKMAC_CFLAGS="$GTKMAC_CFLAGS"
24732 elif test -n "$PKG_CONFIG"; then
24733 if test -n "$PKG_CONFIG" && \
24734 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration-gtk3 >= 3.0.1\""; } >&5
24735 ($PKG_CONFIG --exists --print-errors "gtk-mac-integration-gtk3 >= 3.0.1") 2>&5
24736 ac_status=$?
24737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24738 test $ac_status = 0; }; then
24739 pkg_cv_GTKMAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration-gtk3 >= 3.0.1" 2>/dev/null`
24740 test "x$?" != "x0" && pkg_failed=yes
24741 else
24742 pkg_failed=yes
24743 fi
24744 else
24745 pkg_failed=untried
24746 fi
24747 if test -n "$GTKMAC_LIBS"; then
24748 pkg_cv_GTKMAC_LIBS="$GTKMAC_LIBS"
24749 elif test -n "$PKG_CONFIG"; then
24750 if test -n "$PKG_CONFIG" && \
24751 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration-gtk3 >= 3.0.1\""; } >&5
24752 ($PKG_CONFIG --exists --print-errors "gtk-mac-integration-gtk3 >= 3.0.1") 2>&5
24753 ac_status=$?
24754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24755 test $ac_status = 0; }; then
24756 pkg_cv_GTKMAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration-gtk3 >= 3.0.1" 2>/dev/null`
24757 test "x$?" != "x0" && pkg_failed=yes
24758 else
24759 pkg_failed=yes
24760 fi
24761 else
24762 pkg_failed=untried
24763 fi
24764
24765
24766
24767 if test $pkg_failed = yes; then
24768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24769 printf "%s\n" "no" >&6; }
24770
24771 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24772 _pkg_short_errors_supported=yes
24773 else
24774 _pkg_short_errors_supported=no
24775 fi
24776 if test $_pkg_short_errors_supported = yes; then
24777 GTKMAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk-mac-integration-gtk3 >= 3.0.1" 2>&1`
24778 else
24779 GTKMAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk-mac-integration-gtk3 >= 3.0.1" 2>&1`
24780 fi
24781 # Put the nasty error message in config.log where it belongs
24782 echo "$GTKMAC_PKG_ERRORS" >&5
24783
24784 mac_integration="no"
24785 elif test $pkg_failed = untried; then
24786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24787 printf "%s\n" "no" >&6; }
24788 mac_integration="no"
24789 else
24790 GTKMAC_CFLAGS=$pkg_cv_GTKMAC_CFLAGS
24791 GTKMAC_LIBS=$pkg_cv_GTKMAC_LIBS
24792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24793 printf "%s\n" "yes" >&6; }
24794 mac_integration="yes"
24795 fi
24796 fi
24797 fi
24798
24799 if test "$gtk_version" = "2.0" ; then
24800
24801 pkg_failed=no
24802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTKSOURCEVIEW" >&5
24803 printf %s "checking for GTKSOURCEVIEW... " >&6; }
24804
24805 if test -n "$GTKSOURCEVIEW_CFLAGS"; then
24806 pkg_cv_GTKSOURCEVIEW_CFLAGS="$GTKSOURCEVIEW_CFLAGS"
24807 elif test -n "$PKG_CONFIG"; then
24808 if test -n "$PKG_CONFIG" && \
24809 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtksourceview-2.0 >= 2.10.5\""; } >&5
24810 ($PKG_CONFIG --exists --print-errors "gtksourceview-2.0 >= 2.10.5") 2>&5
24811 ac_status=$?
24812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24813 test $ac_status = 0; }; then
24814 pkg_cv_GTKSOURCEVIEW_CFLAGS=`$PKG_CONFIG --cflags "gtksourceview-2.0 >= 2.10.5" 2>/dev/null`
24815 test "x$?" != "x0" && pkg_failed=yes
24816 else
24817 pkg_failed=yes
24818 fi
24819 else
24820 pkg_failed=untried
24821 fi
24822 if test -n "$GTKSOURCEVIEW_LIBS"; then
24823 pkg_cv_GTKSOURCEVIEW_LIBS="$GTKSOURCEVIEW_LIBS"
24824 elif test -n "$PKG_CONFIG"; then
24825 if test -n "$PKG_CONFIG" && \
24826 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtksourceview-2.0 >= 2.10.5\""; } >&5
24827 ($PKG_CONFIG --exists --print-errors "gtksourceview-2.0 >= 2.10.5") 2>&5
24828 ac_status=$?
24829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24830 test $ac_status = 0; }; then
24831 pkg_cv_GTKSOURCEVIEW_LIBS=`$PKG_CONFIG --libs "gtksourceview-2.0 >= 2.10.5" 2>/dev/null`
24832 test "x$?" != "x0" && pkg_failed=yes
24833 else
24834 pkg_failed=yes
24835 fi
24836 else
24837 pkg_failed=untried
24838 fi
24839
24840
24841
24842 if test $pkg_failed = yes; then
24843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24844 printf "%s\n" "no" >&6; }
24845
24846 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24847 _pkg_short_errors_supported=yes
24848 else
24849 _pkg_short_errors_supported=no
24850 fi
24851 if test $_pkg_short_errors_supported = yes; then
24852 GTKSOURCEVIEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtksourceview-2.0 >= 2.10.5" 2>&1`
24853 else
24854 GTKSOURCEVIEW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtksourceview-2.0 >= 2.10.5" 2>&1`
24855 fi
24856 # Put the nasty error message in config.log where it belongs
24857 echo "$GTKSOURCEVIEW_PKG_ERRORS" >&5
24858
24859 echo "version 2.0 >= 2.10.5 not found"
24860
24861 elif test $pkg_failed = untried; then
24862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24863 printf "%s\n" "no" >&6; }
24864 echo "version 2.0 >= 2.10.5 not found"
24865
24866 else
24867 GTKSOURCEVIEW_CFLAGS=$pkg_cv_GTKSOURCEVIEW_CFLAGS
24868 GTKSOURCEVIEW_LIBS=$pkg_cv_GTKSOURCEVIEW_LIBS
24869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24870 printf "%s\n" "yes" >&6; }
24871 GTKSOURCEVIEW_PREFIX=`$PKG_CONFIG --variable=prefix gtksourceview-2.0`
24872 have_sourceview="2.0"
24873 fi
24874 fi
24875
24876 if test "$gtk_version" = "3.0" ; then
24877
24878 pkg_failed=no
24879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTKSOURCEVIEW" >&5
24880 printf %s "checking for GTKSOURCEVIEW... " >&6; }
24881
24882 if test -n "$GTKSOURCEVIEW_CFLAGS"; then
24883 pkg_cv_GTKSOURCEVIEW_CFLAGS="$GTKSOURCEVIEW_CFLAGS"
24884 elif test -n "$PKG_CONFIG"; then
24885 if test -n "$PKG_CONFIG" && \
24886 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtksourceview-4\""; } >&5
24887 ($PKG_CONFIG --exists --print-errors "gtksourceview-4") 2>&5
24888 ac_status=$?
24889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24890 test $ac_status = 0; }; then
24891 pkg_cv_GTKSOURCEVIEW_CFLAGS=`$PKG_CONFIG --cflags "gtksourceview-4" 2>/dev/null`
24892 test "x$?" != "x0" && pkg_failed=yes
24893 else
24894 pkg_failed=yes
24895 fi
24896 else
24897 pkg_failed=untried
24898 fi
24899 if test -n "$GTKSOURCEVIEW_LIBS"; then
24900 pkg_cv_GTKSOURCEVIEW_LIBS="$GTKSOURCEVIEW_LIBS"
24901 elif test -n "$PKG_CONFIG"; then
24902 if test -n "$PKG_CONFIG" && \
24903 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtksourceview-4\""; } >&5
24904 ($PKG_CONFIG --exists --print-errors "gtksourceview-4") 2>&5
24905 ac_status=$?
24906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24907 test $ac_status = 0; }; then
24908 pkg_cv_GTKSOURCEVIEW_LIBS=`$PKG_CONFIG --libs "gtksourceview-4" 2>/dev/null`
24909 test "x$?" != "x0" && pkg_failed=yes
24910 else
24911 pkg_failed=yes
24912 fi
24913 else
24914 pkg_failed=untried
24915 fi
24916
24917
24918
24919 if test $pkg_failed = yes; then
24920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24921 printf "%s\n" "no" >&6; }
24922
24923 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24924 _pkg_short_errors_supported=yes
24925 else
24926 _pkg_short_errors_supported=no
24927 fi
24928 if test $_pkg_short_errors_supported = yes; then
24929 GTKSOURCEVIEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtksourceview-4" 2>&1`
24930 else
24931 GTKSOURCEVIEW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtksourceview-4" 2>&1`
24932 fi
24933 # Put the nasty error message in config.log where it belongs
24934 echo "$GTKSOURCEVIEW_PKG_ERRORS" >&5
24935
24936
24937 pkg_failed=no
24938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTKSOURCEVIEW" >&5
24939 printf %s "checking for GTKSOURCEVIEW... " >&6; }
24940
24941 if test -n "$GTKSOURCEVIEW_CFLAGS"; then
24942 pkg_cv_GTKSOURCEVIEW_CFLAGS="$GTKSOURCEVIEW_CFLAGS"
24943 elif test -n "$PKG_CONFIG"; then
24944 if test -n "$PKG_CONFIG" && \
24945 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtksourceview-3.0 >= 3.20.0\""; } >&5
24946 ($PKG_CONFIG --exists --print-errors "gtksourceview-3.0 >= 3.20.0") 2>&5
24947 ac_status=$?
24948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24949 test $ac_status = 0; }; then
24950 pkg_cv_GTKSOURCEVIEW_CFLAGS=`$PKG_CONFIG --cflags "gtksourceview-3.0 >= 3.20.0" 2>/dev/null`
24951 test "x$?" != "x0" && pkg_failed=yes
24952 else
24953 pkg_failed=yes
24954 fi
24955 else
24956 pkg_failed=untried
24957 fi
24958 if test -n "$GTKSOURCEVIEW_LIBS"; then
24959 pkg_cv_GTKSOURCEVIEW_LIBS="$GTKSOURCEVIEW_LIBS"
24960 elif test -n "$PKG_CONFIG"; then
24961 if test -n "$PKG_CONFIG" && \
24962 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtksourceview-3.0 >= 3.20.0\""; } >&5
24963 ($PKG_CONFIG --exists --print-errors "gtksourceview-3.0 >= 3.20.0") 2>&5
24964 ac_status=$?
24965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24966 test $ac_status = 0; }; then
24967 pkg_cv_GTKSOURCEVIEW_LIBS=`$PKG_CONFIG --libs "gtksourceview-3.0 >= 3.20.0" 2>/dev/null`
24968 test "x$?" != "x0" && pkg_failed=yes
24969 else
24970 pkg_failed=yes
24971 fi
24972 else
24973 pkg_failed=untried
24974 fi
24975
24976
24977
24978 if test $pkg_failed = yes; then
24979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24980 printf "%s\n" "no" >&6; }
24981
24982 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24983 _pkg_short_errors_supported=yes
24984 else
24985 _pkg_short_errors_supported=no
24986 fi
24987 if test $_pkg_short_errors_supported = yes; then
24988 GTKSOURCEVIEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtksourceview-3.0 >= 3.20.0" 2>&1`
24989 else
24990 GTKSOURCEVIEW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtksourceview-3.0 >= 3.20.0" 2>&1`
24991 fi
24992 # Put the nasty error message in config.log where it belongs
24993 echo "$GTKSOURCEVIEW_PKG_ERRORS" >&5
24994
24995 echo "version 3.0 >= 3.20.0 not found"
24996
24997 elif test $pkg_failed = untried; then
24998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24999 printf "%s\n" "no" >&6; }
25000 echo "version 3.0 >= 3.20.0 not found"
25001
25002 else
25003 GTKSOURCEVIEW_CFLAGS=$pkg_cv_GTKSOURCEVIEW_CFLAGS
25004 GTKSOURCEVIEW_LIBS=$pkg_cv_GTKSOURCEVIEW_LIBS
25005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25006 printf "%s\n" "yes" >&6; }
25007 GTKSOURCEVIEW_PREFIX=`$PKG_CONFIG --variable=prefix gtksourceview-3.0`
25008 have_sourceview="3.0"
25009 fi
25010
25011 elif test $pkg_failed = untried; then
25012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25013 printf "%s\n" "no" >&6; }
25014
25015 pkg_failed=no
25016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTKSOURCEVIEW" >&5
25017 printf %s "checking for GTKSOURCEVIEW... " >&6; }
25018
25019 if test -n "$GTKSOURCEVIEW_CFLAGS"; then
25020 pkg_cv_GTKSOURCEVIEW_CFLAGS="$GTKSOURCEVIEW_CFLAGS"
25021 elif test -n "$PKG_CONFIG"; then
25022 if test -n "$PKG_CONFIG" && \
25023 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtksourceview-3.0 >= 3.20.0\""; } >&5
25024 ($PKG_CONFIG --exists --print-errors "gtksourceview-3.0 >= 3.20.0") 2>&5
25025 ac_status=$?
25026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25027 test $ac_status = 0; }; then
25028 pkg_cv_GTKSOURCEVIEW_CFLAGS=`$PKG_CONFIG --cflags "gtksourceview-3.0 >= 3.20.0" 2>/dev/null`
25029 test "x$?" != "x0" && pkg_failed=yes
25030 else
25031 pkg_failed=yes
25032 fi
25033 else
25034 pkg_failed=untried
25035 fi
25036 if test -n "$GTKSOURCEVIEW_LIBS"; then
25037 pkg_cv_GTKSOURCEVIEW_LIBS="$GTKSOURCEVIEW_LIBS"
25038 elif test -n "$PKG_CONFIG"; then
25039 if test -n "$PKG_CONFIG" && \
25040 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtksourceview-3.0 >= 3.20.0\""; } >&5
25041 ($PKG_CONFIG --exists --print-errors "gtksourceview-3.0 >= 3.20.0") 2>&5
25042 ac_status=$?
25043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25044 test $ac_status = 0; }; then
25045 pkg_cv_GTKSOURCEVIEW_LIBS=`$PKG_CONFIG --libs "gtksourceview-3.0 >= 3.20.0" 2>/dev/null`
25046 test "x$?" != "x0" && pkg_failed=yes
25047 else
25048 pkg_failed=yes
25049 fi
25050 else
25051 pkg_failed=untried
25052 fi
25053
25054
25055
25056 if test $pkg_failed = yes; then
25057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25058 printf "%s\n" "no" >&6; }
25059
25060 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25061 _pkg_short_errors_supported=yes
25062 else
25063 _pkg_short_errors_supported=no
25064 fi
25065 if test $_pkg_short_errors_supported = yes; then
25066 GTKSOURCEVIEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtksourceview-3.0 >= 3.20.0" 2>&1`
25067 else
25068 GTKSOURCEVIEW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtksourceview-3.0 >= 3.20.0" 2>&1`
25069 fi
25070 # Put the nasty error message in config.log where it belongs
25071 echo "$GTKSOURCEVIEW_PKG_ERRORS" >&5
25072
25073 echo "version 3.0 >= 3.20.0 not found"
25074
25075 elif test $pkg_failed = untried; then
25076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25077 printf "%s\n" "no" >&6; }
25078 echo "version 3.0 >= 3.20.0 not found"
25079
25080 else
25081 GTKSOURCEVIEW_CFLAGS=$pkg_cv_GTKSOURCEVIEW_CFLAGS
25082 GTKSOURCEVIEW_LIBS=$pkg_cv_GTKSOURCEVIEW_LIBS
25083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25084 printf "%s\n" "yes" >&6; }
25085 GTKSOURCEVIEW_PREFIX=`$PKG_CONFIG --variable=prefix gtksourceview-3.0`
25086 have_sourceview="3.0"
25087 fi
25088
25089 else
25090 GTKSOURCEVIEW_CFLAGS=$pkg_cv_GTKSOURCEVIEW_CFLAGS
25091 GTKSOURCEVIEW_LIBS=$pkg_cv_GTKSOURCEVIEW_LIBS
25092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25093 printf "%s\n" "yes" >&6; }
25094 GTKSOURCEVIEW_PREFIX=`$PKG_CONFIG --variable=prefix gtksourceview-4`
25095 have_sourceview="4"
25096 fi
25097 fi
25098
25099 if test $have_sourceview = "3.0" || test $have_sourceview = "4" || test $pkg_build = "yes" ; then
25100 printf "%s\n" "#define HAVE_GTKSV_COMPLETION 1" >>confdefs.h
25101
25102 gtksv_completion="yes"
25103 fi
25104
25105 if test x"${MSGFMT}" != x ; then
25106 build_po="yes"
25107 else
25108 echo "*** msgfmt not found, can't build message catalogs"
25109 fi
25110
25111 if test "$gui_disabled" = "yes" ; then
25112 use_xdg=no
25113 use_xdg_utils=no
25114 fi
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129
25130
25131
25132
25133
25134
25135
25136
25137
25138
25139
25140
25141
25142 if test ${build_gui} = "yes" ; then
25143
25144 pkg_failed=no
25145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GDK_PIXBUF" >&5
25146 printf %s "checking for GDK_PIXBUF... " >&6; }
25147
25148 if test -n "$GDK_PIXBUF_CFLAGS"; then
25149 pkg_cv_GDK_PIXBUF_CFLAGS="$GDK_PIXBUF_CFLAGS"
25150 elif test -n "$PKG_CONFIG"; then
25151 if test -n "$PKG_CONFIG" && \
25152 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0 >= 0.7.0\""; } >&5
25153 ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0 >= 0.7.0") 2>&5
25154 ac_status=$?
25155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25156 test $ac_status = 0; }; then
25157 pkg_cv_GDK_PIXBUF_CFLAGS=`$PKG_CONFIG --cflags "gdk-pixbuf-2.0 >= 0.7.0" 2>/dev/null`
25158 test "x$?" != "x0" && pkg_failed=yes
25159 else
25160 pkg_failed=yes
25161 fi
25162 else
25163 pkg_failed=untried
25164 fi
25165 if test -n "$GDK_PIXBUF_LIBS"; then
25166 pkg_cv_GDK_PIXBUF_LIBS="$GDK_PIXBUF_LIBS"
25167 elif test -n "$PKG_CONFIG"; then
25168 if test -n "$PKG_CONFIG" && \
25169 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0 >= 0.7.0\""; } >&5
25170 ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0 >= 0.7.0") 2>&5
25171 ac_status=$?
25172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25173 test $ac_status = 0; }; then
25174 pkg_cv_GDK_PIXBUF_LIBS=`$PKG_CONFIG --libs "gdk-pixbuf-2.0 >= 0.7.0" 2>/dev/null`
25175 test "x$?" != "x0" && pkg_failed=yes
25176 else
25177 pkg_failed=yes
25178 fi
25179 else
25180 pkg_failed=untried
25181 fi
25182
25183
25184
25185 if test $pkg_failed = yes; then
25186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25187 printf "%s\n" "no" >&6; }
25188
25189 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25190 _pkg_short_errors_supported=yes
25191 else
25192 _pkg_short_errors_supported=no
25193 fi
25194 if test $_pkg_short_errors_supported = yes; then
25195 GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gdk-pixbuf-2.0 >= 0.7.0" 2>&1`
25196 else
25197 GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gdk-pixbuf-2.0 >= 0.7.0" 2>&1`
25198 fi
25199 # Put the nasty error message in config.log where it belongs
25200 echo "$GDK_PIXBUF_PKG_ERRORS" >&5
25201
25202 pixbuf_failed="yes"
25203
25204 elif test $pkg_failed = untried; then
25205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25206 printf "%s\n" "no" >&6; }
25207 pixbuf_failed="yes"
25208
25209 else
25210 GDK_PIXBUF_CFLAGS=$pkg_cv_GDK_PIXBUF_CFLAGS
25211 GDK_PIXBUF_LIBS=$pkg_cv_GDK_PIXBUF_LIBS
25212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25213 printf "%s\n" "yes" >&6; }
25214 pixbuf_failed="no"
25215 fi
25216 fi
25217 if test "${pixbuf_failed}" = "yes" ; then
25218 echo "* gretl needs but did not find the gdk-pixbuf library."
25219 exit 1
25220 fi
25221
25222
25223 pkg_failed=no
25224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
25225 printf %s "checking for XML... " >&6; }
25226
25227 if test -n "$XML_CFLAGS"; then
25228 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
25229 elif test -n "$PKG_CONFIG"; then
25230 if test -n "$PKG_CONFIG" && \
25231 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.5.0\""; } >&5
25232 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5.0") 2>&5
25233 ac_status=$?
25234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25235 test $ac_status = 0; }; then
25236 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.5.0" 2>/dev/null`
25237 test "x$?" != "x0" && pkg_failed=yes
25238 else
25239 pkg_failed=yes
25240 fi
25241 else
25242 pkg_failed=untried
25243 fi
25244 if test -n "$XML_LIBS"; then
25245 pkg_cv_XML_LIBS="$XML_LIBS"
25246 elif test -n "$PKG_CONFIG"; then
25247 if test -n "$PKG_CONFIG" && \
25248 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.5.0\""; } >&5
25249 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5.0") 2>&5
25250 ac_status=$?
25251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25252 test $ac_status = 0; }; then
25253 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.5.0" 2>/dev/null`
25254 test "x$?" != "x0" && pkg_failed=yes
25255 else
25256 pkg_failed=yes
25257 fi
25258 else
25259 pkg_failed=untried
25260 fi
25261
25262
25263
25264 if test $pkg_failed = yes; then
25265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25266 printf "%s\n" "no" >&6; }
25267
25268 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25269 _pkg_short_errors_supported=yes
25270 else
25271 _pkg_short_errors_supported=no
25272 fi
25273 if test $_pkg_short_errors_supported = yes; then
25274 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.5.0" 2>&1`
25275 else
25276 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.5.0" 2>&1`
25277 fi
25278 # Put the nasty error message in config.log where it belongs
25279 echo "$XML_PKG_ERRORS" >&5
25280
25281 as_fn_error $? "Package requirements (libxml-2.0 >= 2.5.0) were not met:
25282
25283 $XML_PKG_ERRORS
25284
25285 Consider adjusting the PKG_CONFIG_PATH environment variable if you
25286 installed software in a non-standard prefix.
25287
25288 Alternatively, you may set the environment variables XML_CFLAGS
25289 and XML_LIBS to avoid the need to call pkg-config.
25290 See the pkg-config man page for more details." "$LINENO" 5
25291 elif test $pkg_failed = untried; then
25292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25293 printf "%s\n" "no" >&6; }
25294 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25295 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25296 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
25297 is in your PATH or set the PKG_CONFIG environment variable to the full
25298 path to pkg-config.
25299
25300 Alternatively, you may set the environment variables XML_CFLAGS
25301 and XML_LIBS to avoid the need to call pkg-config.
25302 See the pkg-config man page for more details.
25303
25304 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
25305 See 'config.log' for more details" "$LINENO" 5; }
25306 else
25307 XML_CFLAGS=$pkg_cv_XML_CFLAGS
25308 XML_LIBS=$pkg_cv_XML_LIBS
25309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25310 printf "%s\n" "yes" >&6; }
25311
25312 fi
25313
25314 if test "${build_docs}" = "yes" ; then
25315
25316 pkg_failed=no
25317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSLT" >&5
25318 printf %s "checking for XSLT... " >&6; }
25319
25320 if test -n "$XSLT_CFLAGS"; then
25321 pkg_cv_XSLT_CFLAGS="$XSLT_CFLAGS"
25322 elif test -n "$PKG_CONFIG"; then
25323 if test -n "$PKG_CONFIG" && \
25324 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= 1.0.15\""; } >&5
25325 ($PKG_CONFIG --exists --print-errors "libxslt >= 1.0.15") 2>&5
25326 ac_status=$?
25327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25328 test $ac_status = 0; }; then
25329 pkg_cv_XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.0.15" 2>/dev/null`
25330 test "x$?" != "x0" && pkg_failed=yes
25331 else
25332 pkg_failed=yes
25333 fi
25334 else
25335 pkg_failed=untried
25336 fi
25337 if test -n "$XSLT_LIBS"; then
25338 pkg_cv_XSLT_LIBS="$XSLT_LIBS"
25339 elif test -n "$PKG_CONFIG"; then
25340 if test -n "$PKG_CONFIG" && \
25341 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= 1.0.15\""; } >&5
25342 ($PKG_CONFIG --exists --print-errors "libxslt >= 1.0.15") 2>&5
25343 ac_status=$?
25344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25345 test $ac_status = 0; }; then
25346 pkg_cv_XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.0.15" 2>/dev/null`
25347 test "x$?" != "x0" && pkg_failed=yes
25348 else
25349 pkg_failed=yes
25350 fi
25351 else
25352 pkg_failed=untried
25353 fi
25354
25355
25356
25357 if test $pkg_failed = yes; then
25358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25359 printf "%s\n" "no" >&6; }
25360
25361 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25362 _pkg_short_errors_supported=yes
25363 else
25364 _pkg_short_errors_supported=no
25365 fi
25366 if test $_pkg_short_errors_supported = yes; then
25367 XSLT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxslt >= 1.0.15" 2>&1`
25368 else
25369 XSLT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxslt >= 1.0.15" 2>&1`
25370 fi
25371 # Put the nasty error message in config.log where it belongs
25372 echo "$XSLT_PKG_ERRORS" >&5
25373
25374 have_xslt="no"
25375
25376 elif test $pkg_failed = untried; then
25377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25378 printf "%s\n" "no" >&6; }
25379 have_xslt="no"
25380
25381 else
25382 XSLT_CFLAGS=$pkg_cv_XSLT_CFLAGS
25383 XSLT_LIBS=$pkg_cv_XSLT_LIBS
25384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25385 printf "%s\n" "yes" >&6; }
25386 have_xslt="yes"
25387 fi
25388 fi
25389
25390 if test "$try_libR" = "yes" ; then
25391 if test $win32_build = "yes" ; then
25392 have_libR="yes"
25393 printf "%s\n" "#define USE_RLIB 1" >>confdefs.h
25394
25395 else
25396
25397 pkg_failed=no
25398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RLIB" >&5
25399 printf %s "checking for RLIB... " >&6; }
25400
25401 if test -n "$RLIB_CFLAGS"; then
25402 pkg_cv_RLIB_CFLAGS="$RLIB_CFLAGS"
25403 elif test -n "$PKG_CONFIG"; then
25404 if test -n "$PKG_CONFIG" && \
25405 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libR\""; } >&5
25406 ($PKG_CONFIG --exists --print-errors "libR") 2>&5
25407 ac_status=$?
25408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25409 test $ac_status = 0; }; then
25410 pkg_cv_RLIB_CFLAGS=`$PKG_CONFIG --cflags "libR" 2>/dev/null`
25411 test "x$?" != "x0" && pkg_failed=yes
25412 else
25413 pkg_failed=yes
25414 fi
25415 else
25416 pkg_failed=untried
25417 fi
25418 if test -n "$RLIB_LIBS"; then
25419 pkg_cv_RLIB_LIBS="$RLIB_LIBS"
25420 elif test -n "$PKG_CONFIG"; then
25421 if test -n "$PKG_CONFIG" && \
25422 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libR\""; } >&5
25423 ($PKG_CONFIG --exists --print-errors "libR") 2>&5
25424 ac_status=$?
25425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25426 test $ac_status = 0; }; then
25427 pkg_cv_RLIB_LIBS=`$PKG_CONFIG --libs "libR" 2>/dev/null`
25428 test "x$?" != "x0" && pkg_failed=yes
25429 else
25430 pkg_failed=yes
25431 fi
25432 else
25433 pkg_failed=untried
25434 fi
25435
25436
25437
25438 if test $pkg_failed = yes; then
25439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25440 printf "%s\n" "no" >&6; }
25441
25442 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25443 _pkg_short_errors_supported=yes
25444 else
25445 _pkg_short_errors_supported=no
25446 fi
25447 if test $_pkg_short_errors_supported = yes; then
25448 RLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libR" 2>&1`
25449 else
25450 RLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libR" 2>&1`
25451 fi
25452 # Put the nasty error message in config.log where it belongs
25453 echo "$RLIB_PKG_ERRORS" >&5
25454
25455 have_libR="no"
25456
25457 elif test $pkg_failed = untried; then
25458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25459 printf "%s\n" "no" >&6; }
25460 have_libR="no"
25461
25462 else
25463 RLIB_CFLAGS=$pkg_cv_RLIB_CFLAGS
25464 RLIB_LIBS=$pkg_cv_RLIB_LIBS
25465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25466 printf "%s\n" "yes" >&6; }
25467 printf "%s\n" "#define USE_RLIB 1" >>confdefs.h
25468
25469 if test "$darwin_build" = "yes" ; then
25470 RLIBDIR="/Library/Frameworks/R.framework/Resources/lib"
25471 elif echo "$RLIB_LIBS" | grep ^-L > /dev/null ; then
25472 RLIBDIR=`echo $RLIB_LIBS | cut -b 3- | awk '{ print $1 }'`
25473 else
25474 RLIBDIR="/usr/lib"
25475 fi
25476 if test "$darwin_build" = "yes" ; then
25477 RLIBNAME="libR.dylib"
25478 else
25479 RLIBNAME="libR.so"
25480 fi
25481 RLIB="${RLIBDIR}/${RLIBNAME}"
25482 printf "%s\n" "#define RLIBPATH \"$RLIB\"" >>confdefs.h
25483
25484 have_libR="yes"
25485 fi
25486 fi
25487 fi
25488
25489 if test "$try_gsf" = "yes" ; then
25490
25491 pkg_failed=no
25492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GSF" >&5
25493 printf %s "checking for GSF... " >&6; }
25494
25495 if test -n "$GSF_CFLAGS"; then
25496 pkg_cv_GSF_CFLAGS="$GSF_CFLAGS"
25497 elif test -n "$PKG_CONFIG"; then
25498 if test -n "$PKG_CONFIG" && \
25499 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgsf-1 >= 1.14.31\""; } >&5
25500 ($PKG_CONFIG --exists --print-errors "libgsf-1 >= 1.14.31") 2>&5
25501 ac_status=$?
25502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25503 test $ac_status = 0; }; then
25504 pkg_cv_GSF_CFLAGS=`$PKG_CONFIG --cflags "libgsf-1 >= 1.14.31" 2>/dev/null`
25505 test "x$?" != "x0" && pkg_failed=yes
25506 else
25507 pkg_failed=yes
25508 fi
25509 else
25510 pkg_failed=untried
25511 fi
25512 if test -n "$GSF_LIBS"; then
25513 pkg_cv_GSF_LIBS="$GSF_LIBS"
25514 elif test -n "$PKG_CONFIG"; then
25515 if test -n "$PKG_CONFIG" && \
25516 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgsf-1 >= 1.14.31\""; } >&5
25517 ($PKG_CONFIG --exists --print-errors "libgsf-1 >= 1.14.31") 2>&5
25518 ac_status=$?
25519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25520 test $ac_status = 0; }; then
25521 pkg_cv_GSF_LIBS=`$PKG_CONFIG --libs "libgsf-1 >= 1.14.31" 2>/dev/null`
25522 test "x$?" != "x0" && pkg_failed=yes
25523 else
25524 pkg_failed=yes
25525 fi
25526 else
25527 pkg_failed=untried
25528 fi
25529
25530
25531
25532 if test $pkg_failed = yes; then
25533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25534 printf "%s\n" "no" >&6; }
25535
25536 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25537 _pkg_short_errors_supported=yes
25538 else
25539 _pkg_short_errors_supported=no
25540 fi
25541 if test $_pkg_short_errors_supported = yes; then
25542 GSF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgsf-1 >= 1.14.31" 2>&1`
25543 else
25544 GSF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgsf-1 >= 1.14.31" 2>&1`
25545 fi
25546 # Put the nasty error message in config.log where it belongs
25547 echo "$GSF_PKG_ERRORS" >&5
25548
25549 echo "libgsf >= 1.14.31 not found"
25550
25551 elif test $pkg_failed = untried; then
25552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25553 printf "%s\n" "no" >&6; }
25554 echo "libgsf >= 1.14.31 not found"
25555
25556 else
25557 GSF_CFLAGS=$pkg_cv_GSF_CFLAGS
25558 GSF_LIBS=$pkg_cv_GSF_LIBS
25559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25560 printf "%s\n" "yes" >&6; }
25561 CFLAGS="$CFLAGS $GSF_CFLAGS"
25562 LIBS="$LIBS $GSF_LIBS"
25563 printf "%s\n" "#define USE_GSF 1" >>confdefs.h
25564
25565 use_gsf="yes"
25566 fi
25567 fi
25568
25569 if test "${build_docs}" = "yes" ; then
25570 if test "$have_xslt" = "no" || test "$have_pdflatex" = "no" ; then
25571 build_docs="no"
25572 echo "*** Can't build gretl docs: XSLT and/or pdflatex not found"
25573 fi
25574 fi
25575
25576 if test "${build_addons}" = "yes" ; then
25577 if test "$have_pdflatex" = "no" ; then
25578 echo "*** Can't build documentation for addons: pdflatex not found."
25579 build_addons="no"
25580 fi
25581 fi
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591 GTK_HUSH=""
25592 CFLAGS=-Wno-deprecated-declarations
25593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CC supports -Wno-deprecated-declarations" >&5
25594 printf %s "checking whether CC supports -Wno-deprecated-declarations... " >&6; }
25595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25596 /* end confdefs.h. */
25597
25598 int
25599 main (void)
25600 {
25601
25602 ;
25603 return 0;
25604 }
25605 _ACEOF
25606 if ac_fn_c_try_compile "$LINENO"
25607 then :
25608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25609 printf "%s\n" "yes" >&6; }
25610 GTK_HUSH=-Wno-deprecated-declarations
25611 else case e in #(
25612 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25613 printf "%s\n" "no" >&6; }
25614 ;;
25615 esac
25616 fi
25617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25618
25619
25620 if test "$gtk_version" = "3.0" ; then
25621 plugsub="gretl-gtk3"
25622 else
25623 plugsub="gretl-gtk2"
25624 fi
25625
25626
25627
25628
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639 if test "${prefix}" = "NONE" ; then
25640 prefix="/usr/local"
25641 fi
25642 printf "%s\n" "#define GRETL_PREFIX \"${prefix}\"" >>confdefs.h
25643
25644
25645 if test "${gp_3d}" = "yes" ; then
25646 printf "%s\n" "#define GNUPLOT3D 1" >>confdefs.h
25647
25648 fi
25649
25650 CFLAGS="$orig_CFLAGS"
25651
25652 ac_config_files="$ac_config_files Makefile gretl_sh gretl.pc gui/Makefile gui/debug xdg/gretl.desktop xdg/gretl_edit.desktop xdg/Makefile cli/Makefile cli/debug lib/Makefile plugin/Makefile po/Makefile.in share/Makefile share/bcih/Makefile tests/Makefile unittests/Makefile apidemo/Makefile redhat/gretl.spec utils/emacs/Makefile utils/dbzip/Makefile doc/gretl.sty doc/gretl-lite.sty"
25653
25654
25655 if test "${darwin_build}" = "yes" ; then
25656 ac_config_files="$ac_config_files osx/Info.plist"
25657
25658 fi
25659
25660 if test "${win32_build}" = "yes" ; then
25661 if test "${pkg_build}" = "yes" ; then
25662 mingw_prefix="$MINGW_PREFIX"
25663
25664
25665 ac_config_files="$ac_config_files win32/windist/mkiss.sh win32/windist/post-install.sh win32/windist/install-runtime.sh win32/windist/install-runtime-gtk3.sh"
25666
25667 else
25668 GHOME="${prefix}/share/gretl"
25669 GEXEPATH="${prefix}/bin"
25670 GEXE="${prefix}/bin/gretl.exe"
25671 MINGWBIN="$MINGW_PREFIX/bin"
25672 MSYSBIN="/bin"
25673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
25674 printf %s "checking for a sed that does not truncate output... " >&6; }
25675 if test ${ac_cv_path_SED+y}
25676 then :
25677 printf %s "(cached) " >&6
25678 else case e in #(
25679 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
25680 for ac_i in 1 2 3 4 5 6 7; do
25681 ac_script="$ac_script$as_nl$ac_script"
25682 done
25683 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
25684 { ac_script=; unset ac_script;}
25685 if test -z "$SED"; then
25686 ac_path_SED_found=false
25687 # Loop through the user's path and test for each of PROGNAME-LIST
25688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25689 for as_dir in $PATH
25690 do
25691 IFS=$as_save_IFS
25692 case $as_dir in #(((
25693 '') as_dir=./ ;;
25694 */) ;;
25695 *) as_dir=$as_dir/ ;;
25696 esac
25697 for ac_prog in sed gsed
25698 do
25699 for ac_exec_ext in '' $ac_executable_extensions; do
25700 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
25701 as_fn_executable_p "$ac_path_SED" || continue
25702 # Check for GNU ac_path_SED and select it if it is found.
25703 # Check for GNU $ac_path_SED
25704 case `"$ac_path_SED" --version 2>&1` in #(
25705 *GNU*)
25706 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
25707 #(
25708 *)
25709 ac_count=0
25710 printf %s 0123456789 >"conftest.in"
25711 while :
25712 do
25713 cat "conftest.in" "conftest.in" >"conftest.tmp"
25714 mv "conftest.tmp" "conftest.in"
25715 cp "conftest.in" "conftest.nl"
25716 printf "%s\n" '' >> "conftest.nl"
25717 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
25718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
25719 as_fn_arith $ac_count + 1 && ac_count=$as_val
25720 if test $ac_count -gt ${ac_path_SED_max-0}; then
25721 # Best one so far, save it but keep looking for a better one
25722 ac_cv_path_SED="$ac_path_SED"
25723 ac_path_SED_max=$ac_count
25724 fi
25725 # 10*(2^10) chars as input seems more than enough
25726 test $ac_count -gt 10 && break
25727 done
25728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
25729 esac
25730
25731 $ac_path_SED_found && break 3
25732 done
25733 done
25734 done
25735 IFS=$as_save_IFS
25736 if test -z "$ac_cv_path_SED"; then
25737 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
25738 fi
25739 else
25740 ac_cv_path_SED=$SED
25741 fi
25742 ;;
25743 esac
25744 fi
25745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
25746 printf "%s\n" "$ac_cv_path_SED" >&6; }
25747 SED="$ac_cv_path_SED"
25748 rm -f conftest.sed
25749
25750 # Extract the first word of "cygpath", so it can be a program name with args.
25751 set dummy cygpath; ac_word=$2
25752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25753 printf %s "checking for $ac_word... " >&6; }
25754 if test ${ac_cv_prog_CYGPATH_CHECK+y}
25755 then :
25756 printf %s "(cached) " >&6
25757 else case e in #(
25758 e) if test -n "$CYGPATH_CHECK"; then
25759 ac_cv_prog_CYGPATH_CHECK="$CYGPATH_CHECK" # Let the user override the test.
25760 else
25761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25762 for as_dir in $PATH
25763 do
25764 IFS=$as_save_IFS
25765 case $as_dir in #(((
25766 '') as_dir=./ ;;
25767 */) ;;
25768 *) as_dir=$as_dir/ ;;
25769 esac
25770 for ac_exec_ext in '' $ac_executable_extensions; do
25771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25772 ac_cv_prog_CYGPATH_CHECK="yes"
25773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25774 break 2
25775 fi
25776 done
25777 done
25778 IFS=$as_save_IFS
25779
25780 fi ;;
25781 esac
25782 fi
25783 CYGPATH_CHECK=$ac_cv_prog_CYGPATH_CHECK
25784 if test -n "$CYGPATH_CHECK"; then
25785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH_CHECK" >&5
25786 printf "%s\n" "$CYGPATH_CHECK" >&6; }
25787 else
25788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25789 printf "%s\n" "no" >&6; }
25790 fi
25791
25792
25793 if test x"$CYGPATH_CHECK" = x"yes" ; then
25794 GHOME=`cygpath -w $GHOME | $SED 's+\\\\+\\\\\\\\+g'`
25795 GEXEPATH=`cygpath -w $GEXEPATH | $SED 's+\\\\+\\\\\\\\+g'`
25796 GEXE=`cygpath -m $GEXE`
25797 MINGWBIN=`cygpath -m $MINGWBIN`
25798 MSYSBIN=`cygpath -m $MSYSBIN`
25799 MINGWPRE=`cygpath -m $MINGW_PREFIX`
25800 fi
25801
25802
25803
25804
25805
25806
25807 ac_config_files="$ac_config_files win32/gretlrun.cmd win32/gretlmime.reg win32/mkshortcut.sh"
25808
25809 fi
25810 fi
25811
25812 if test "${build_docs}" = "yes" ; then
25813 ac_config_files="$ac_config_files doc/Makefile doc/commands/Makefile doc/tex/Makefile doc/tex_it/Makefile doc/tex_es/Makefile doc/tex_pt/Makefile doc/tex_gl/Makefile doc/tex_ru/Makefile doc/tex/extract.mk doc/reference/Makefile"
25814
25815 fi
25816
25817 if test "${build_addons}" = "yes" ; then
25818 ac_config_files="$ac_config_files addons/Makefile addons/gig/Makefile addons/gig/pkg.inp addons/gig/doc/Makefile addons/HIP/Makefile addons/HIP/pkg.inp addons/HIP/doc/Makefile addons/ivpanel/Makefile addons/ivpanel/pkg.inp addons/ivpanel/doc/Makefile addons/SVAR/Makefile addons/SVAR/pkg.inp addons/SVAR/doc/Makefile addons/dbnomics/Makefile addons/dbnomics/pkg.inp addons/dbnomics/doc/Makefile addons/extra/pkg.inp addons/extra/Makefile addons/extra/doc/Makefile addons/geoplot/Makefile addons/geoplot/pkg.inp addons/geoplot/doc/Makefile addons/geoplot/examples/Makefile addons/regls/Makefile addons/regls/pkg.inp addons/regls/doc/Makefile addons/logging/Makefile addons/logging/pkg.inp addons/logging/doc/Makefile addons/KFgui/Makefile addons/KFgui/pkg.inp"
25819
25820 fi
25821
25822 if test "${build_editor}" = "yes" ; then
25823 ac_config_files="$ac_config_files editor/Makefile"
25824
25825 fi
25826
25827 cat >confcache <<\_ACEOF
25828 # This file is a shell script that caches the results of configure
25829 # tests run on this system so they can be shared between configure
25830 # scripts and configure runs, see configure's option --config-cache.
25831 # It is not useful on other systems. If it contains results you don't
25832 # want to keep, you may remove or edit it.
25833 #
25834 # config.status only pays attention to the cache file if you give it
25835 # the --recheck option to rerun configure.
25836 #
25837 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
25838 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
25839 # following values.
25840
25841 _ACEOF
25842
25843 # The following way of writing the cache mishandles newlines in values,
25844 # but we know of no workaround that is simple, portable, and efficient.
25845 # So, we kill variables containing newlines.
25846 # Ultrix sh set writes to stderr and can't be redirected directly,
25847 # and sets the high bit in the cache file unless we assign to the vars.
25848 (
25849 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25850 eval ac_val=\$$ac_var
25851 case $ac_val in #(
25852 *${as_nl}*)
25853 case $ac_var in #(
25854 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25855 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25856 esac
25857 case $ac_var in #(
25858 _ | IFS | as_nl) ;; #(
25859 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25860 *) { eval $ac_var=; unset $ac_var;} ;;
25861 esac ;;
25862 esac
25863 done
25864
25865 (set) 2>&1 |
25866 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25867 *${as_nl}ac_space=\ *)
25868 # 'set' does not quote correctly, so add quotes: double-quote
25869 # substitution turns \\\\ into \\, and sed turns \\ into \.
25870 sed -n \
25871 "s/'/'\\\\''/g;
25872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25873 ;; #(
25874 *)
25875 # 'set' quotes correctly as required by POSIX, so do not add quotes.
25876 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25877 ;;
25878 esac |
25879 sort
25880 ) |
25881 sed '
25882 /^ac_cv_env_/b end
25883 t clear
25884 :clear
25885 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
25886 t end
25887 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25888 :end' >>confcache
25889 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25890 if test -w "$cache_file"; then
25891 if test "x$cache_file" != "x/dev/null"; then
25892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25893 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
25894 if test ! -f "$cache_file" || test -h "$cache_file"; then
25895 cat confcache >"$cache_file"
25896 else
25897 case $cache_file in #(
25898 */* | ?:*)
25899 mv -f confcache "$cache_file"$$ &&
25900 mv -f "$cache_file"$$ "$cache_file" ;; #(
25901 *)
25902 mv -f confcache "$cache_file" ;;
25903 esac
25904 fi
25905 fi
25906 else
25907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25908 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
25909 fi
25910 fi
25911 rm -f confcache
25912
25913 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25914 # Let make expand exec_prefix.
25915 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25916
25917 DEFS=-DHAVE_CONFIG_H
25918
25919 ac_libobjs=
25920 ac_ltlibobjs=
25921 U=
25922 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25923 # 1. Remove the extension, and $U if already installed.
25924 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25925 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
25926 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25927 # will be set to the directory where LIBOBJS objects are built.
25928 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25929 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25930 done
25931 LIBOBJS=$ac_libobjs
25932
25933 LTLIBOBJS=$ac_ltlibobjs
25934
25935
25936
25937
25938 : "${CONFIG_STATUS=./config.status}"
25939 ac_write_fail=0
25940 ac_clean_files_save=$ac_clean_files
25941 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25943 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
25944 as_write_fail=0
25945 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25946 #! $SHELL
25947 # Generated by $as_me.
25948 # Run this file to recreate the current configuration.
25949 # Compiler output produced by configure, useful for debugging
25950 # configure, is in config.log if it exists.
25951
25952 debug=false
25953 ac_cs_recheck=false
25954 ac_cs_silent=false
25955
25956 SHELL=\${CONFIG_SHELL-$SHELL}
25957 export SHELL
25958 _ASEOF
25959 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25960 ## -------------------- ##
25961 ## M4sh Initialization. ##
25962 ## -------------------- ##
25963
25964 # Be more Bourne compatible
25965 DUALCASE=1; export DUALCASE # for MKS sh
25966 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25967 then :
25968 emulate sh
25969 NULLCMD=:
25970 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25971 # is contrary to our usage. Disable this feature.
25972 alias -g '${1+"$@"}'='"$@"'
25973 setopt NO_GLOB_SUBST
25974 else case e in #(
25975 e) case `(set -o) 2>/dev/null` in #(
25976 *posix*) :
25977 set -o posix ;; #(
25978 *) :
25979 ;;
25980 esac ;;
25981 esac
25982 fi
25983
25984
25985
25986 # Reset variables that may have inherited troublesome values from
25987 # the environment.
25988
25989 # IFS needs to be set, to space, tab, and newline, in precisely that order.
25990 # (If _AS_PATH_WALK were called with IFS unset, it would have the
25991 # side effect of setting IFS to empty, thus disabling word splitting.)
25992 # Quoting is to prevent editors from complaining about space-tab.
25993 as_nl='
25994 '
25995 export as_nl
25996 IFS=" "" $as_nl"
25997
25998 PS1='$ '
25999 PS2='> '
26000 PS4='+ '
26001
26002 # Ensure predictable behavior from utilities with locale-dependent output.
26003 LC_ALL=C
26004 export LC_ALL
26005 LANGUAGE=C
26006 export LANGUAGE
26007
26008 # We cannot yet rely on "unset" to work, but we need these variables
26009 # to be unset--not just set to an empty or harmless value--now, to
26010 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
26011 # also avoids known problems related to "unset" and subshell syntax
26012 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
26013 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
26014 do eval test \${$as_var+y} \
26015 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26016 done
26017
26018 # Ensure that fds 0, 1, and 2 are open.
26019 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
26020 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
26021 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
26022
26023 # The user is always right.
26024 if ${PATH_SEPARATOR+false} :; then
26025 PATH_SEPARATOR=:
26026 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26027 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26028 PATH_SEPARATOR=';'
26029 }
26030 fi
26031
26032
26033 # Find who we are. Look in the path if we contain no directory separator.
26034 as_myself=
26035 case $0 in #((
26036 *[\\/]* ) as_myself=$0 ;;
26037 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26038 for as_dir in $PATH
26039 do
26040 IFS=$as_save_IFS
26041 case $as_dir in #(((
26042 '') as_dir=./ ;;
26043 */) ;;
26044 *) as_dir=$as_dir/ ;;
26045 esac
26046 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
26047 done
26048 IFS=$as_save_IFS
26049
26050 ;;
26051 esac
26052 # We did not find ourselves, most probably we were run as 'sh COMMAND'
26053 # in which case we are not to be found in the path.
26054 if test "x$as_myself" = x; then
26055 as_myself=$0
26056 fi
26057 if test ! -f "$as_myself"; then
26058 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26059 exit 1
26060 fi
26061
26062
26063
26064 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26065 # ----------------------------------------
26066 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26067 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26068 # script with STATUS, using 1 if that was 0.
26069 as_fn_error ()
26070 {
26071 as_status=$1; test $as_status -eq 0 && as_status=1
26072 if test "$4"; then
26073 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26075 fi
26076 printf "%s\n" "$as_me: error: $2" >&2
26077 as_fn_exit $as_status
26078 } # as_fn_error
26079
26080
26081 # as_fn_set_status STATUS
26082 # -----------------------
26083 # Set $? to STATUS, without forking.
26084 as_fn_set_status ()
26085 {
26086 return $1
26087 } # as_fn_set_status
26088
26089 # as_fn_exit STATUS
26090 # -----------------
26091 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26092 as_fn_exit ()
26093 {
26094 set +e
26095 as_fn_set_status $1
26096 exit $1
26097 } # as_fn_exit
26098
26099 # as_fn_unset VAR
26100 # ---------------
26101 # Portably unset VAR.
26102 as_fn_unset ()
26103 {
26104 { eval $1=; unset $1;}
26105 }
26106 as_unset=as_fn_unset
26107
26108 # as_fn_append VAR VALUE
26109 # ----------------------
26110 # Append the text in VALUE to the end of the definition contained in VAR. Take
26111 # advantage of any shell optimizations that allow amortized linear growth over
26112 # repeated appends, instead of the typical quadratic growth present in naive
26113 # implementations.
26114 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
26115 then :
26116 eval 'as_fn_append ()
26117 {
26118 eval $1+=\$2
26119 }'
26120 else case e in #(
26121 e) as_fn_append ()
26122 {
26123 eval $1=\$$1\$2
26124 } ;;
26125 esac
26126 fi # as_fn_append
26127
26128 # as_fn_arith ARG...
26129 # ------------------
26130 # Perform arithmetic evaluation on the ARGs, and store the result in the
26131 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26132 # must be portable across $(()) and expr.
26133 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
26134 then :
26135 eval 'as_fn_arith ()
26136 {
26137 as_val=$(( $* ))
26138 }'
26139 else case e in #(
26140 e) as_fn_arith ()
26141 {
26142 as_val=`expr "$@" || test $? -eq 1`
26143 } ;;
26144 esac
26145 fi # as_fn_arith
26146
26147
26148 if expr a : '\(a\)' >/dev/null 2>&1 &&
26149 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26150 as_expr=expr
26151 else
26152 as_expr=false
26153 fi
26154
26155 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26156 as_basename=basename
26157 else
26158 as_basename=false
26159 fi
26160
26161 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26162 as_dirname=dirname
26163 else
26164 as_dirname=false
26165 fi
26166
26167 as_me=`$as_basename -- "$0" ||
26168 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26169 X"$0" : 'X\(//\)$' \| \
26170 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26171 printf "%s\n" X/"$0" |
26172 sed '/^.*\/\([^/][^/]*\)\/*$/{
26173 s//\1/
26174 q
26175 }
26176 /^X\/\(\/\/\)$/{
26177 s//\1/
26178 q
26179 }
26180 /^X\/\(\/\).*/{
26181 s//\1/
26182 q
26183 }
26184 s/.*/./; q'`
26185
26186 # Avoid depending upon Character Ranges.
26187 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26188 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26189 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26190 as_cr_digits='0123456789'
26191 as_cr_alnum=$as_cr_Letters$as_cr_digits
26192
26193
26194 # Determine whether it's possible to make 'echo' print without a newline.
26195 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
26196 # for compatibility with existing Makefiles.
26197 ECHO_C= ECHO_N= ECHO_T=
26198 case `echo -n x` in #(((((
26199 -n*)
26200 case `echo 'xy\c'` in
26201 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26202 xy) ECHO_C='\c';;
26203 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26204 ECHO_T=' ';;
26205 esac;;
26206 *)
26207 ECHO_N='-n';;
26208 esac
26209
26210 # For backward compatibility with old third-party macros, we provide
26211 # the shell variables $as_echo and $as_echo_n. New code should use
26212 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
26213 as_echo='printf %s\n'
26214 as_echo_n='printf %s'
26215
26216 rm -f conf$$ conf$$.exe conf$$.file
26217 if test -d conf$$.dir; then
26218 rm -f conf$$.dir/conf$$.file
26219 else
26220 rm -f conf$$.dir
26221 mkdir conf$$.dir 2>/dev/null
26222 fi
26223 if (echo >conf$$.file) 2>/dev/null; then
26224 if ln -s conf$$.file conf$$ 2>/dev/null; then
26225 as_ln_s='ln -s'
26226 # ... but there are two gotchas:
26227 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
26228 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
26229 # In both cases, we have to default to 'cp -pR'.
26230 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26231 as_ln_s='cp -pR'
26232 elif ln conf$$.file conf$$ 2>/dev/null; then
26233 as_ln_s=ln
26234 else
26235 as_ln_s='cp -pR'
26236 fi
26237 else
26238 as_ln_s='cp -pR'
26239 fi
26240 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26241 rmdir conf$$.dir 2>/dev/null
26242
26243
26244 # as_fn_mkdir_p
26245 # -------------
26246 # Create "$as_dir" as a directory, including parents if necessary.
26247 as_fn_mkdir_p ()
26248 {
26249
26250 case $as_dir in #(
26251 -*) as_dir=./$as_dir;;
26252 esac
26253 test -d "$as_dir" || eval $as_mkdir_p || {
26254 as_dirs=
26255 while :; do
26256 case $as_dir in #(
26257 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26258 *) as_qdir=$as_dir;;
26259 esac
26260 as_dirs="'$as_qdir' $as_dirs"
26261 as_dir=`$as_dirname -- "$as_dir" ||
26262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26263 X"$as_dir" : 'X\(//\)[^/]' \| \
26264 X"$as_dir" : 'X\(//\)$' \| \
26265 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26266 printf "%s\n" X"$as_dir" |
26267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26268 s//\1/
26269 q
26270 }
26271 /^X\(\/\/\)[^/].*/{
26272 s//\1/
26273 q
26274 }
26275 /^X\(\/\/\)$/{
26276 s//\1/
26277 q
26278 }
26279 /^X\(\/\).*/{
26280 s//\1/
26281 q
26282 }
26283 s/.*/./; q'`
26284 test -d "$as_dir" && break
26285 done
26286 test -z "$as_dirs" || eval "mkdir $as_dirs"
26287 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26288
26289
26290 } # as_fn_mkdir_p
26291 if mkdir -p . 2>/dev/null; then
26292 as_mkdir_p='mkdir -p "$as_dir"'
26293 else
26294 test -d ./-p && rmdir ./-p
26295 as_mkdir_p=false
26296 fi
26297
26298
26299 # as_fn_executable_p FILE
26300 # -----------------------
26301 # Test if FILE is an executable regular file.
26302 as_fn_executable_p ()
26303 {
26304 test -f "$1" && test -x "$1"
26305 } # as_fn_executable_p
26306 as_test_x='test -x'
26307 as_executable_p=as_fn_executable_p
26308
26309 # Sed expression to map a string onto a valid CPP name.
26310 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
26311 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
26312
26313 # Sed expression to map a string onto a valid variable name.
26314 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
26315 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
26316
26317
26318 exec 6>&1
26319 ## ----------------------------------- ##
26320 ## Main body of $CONFIG_STATUS script. ##
26321 ## ----------------------------------- ##
26322 _ASEOF
26323 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26324
26325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26326 # Save the log message, to keep $0 and so on meaningful, and to
26327 # report actual input values of CONFIG_FILES etc. instead of their
26328 # values after options handling.
26329 ac_log="
26330 This file was extended by $as_me, which was
26331 generated by GNU Autoconf 2.72. Invocation command line was
26332
26333 CONFIG_FILES = $CONFIG_FILES
26334 CONFIG_HEADERS = $CONFIG_HEADERS
26335 CONFIG_LINKS = $CONFIG_LINKS
26336 CONFIG_COMMANDS = $CONFIG_COMMANDS
26337 $ $0 $@
26338
26339 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26340 "
26341
26342 _ACEOF
26343
26344 case $ac_config_files in *"
26345 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26346 esac
26347
26348 case $ac_config_headers in *"
26349 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26350 esac
26351
26352
26353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26354 # Files that config.status was made for.
26355 config_files="$ac_config_files"
26356 config_headers="$ac_config_headers"
26357 config_commands="$ac_config_commands"
26358
26359 _ACEOF
26360
26361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26362 ac_cs_usage="\
26363 '$as_me' instantiates files and other configuration actions
26364 from templates according to the current configuration. Unless the files
26365 and actions are specified as TAGs, all are instantiated by default.
26366
26367 Usage: $0 [OPTION]... [TAG]...
26368
26369 -h, --help print this help, then exit
26370 -V, --version print version number and configuration settings, then exit
26371 --config print configuration, then exit
26372 -q, --quiet, --silent
26373 do not print progress messages
26374 -d, --debug don't remove temporary files
26375 --recheck update $as_me by reconfiguring in the same conditions
26376 --file=FILE[:TEMPLATE]
26377 instantiate the configuration file FILE
26378 --header=FILE[:TEMPLATE]
26379 instantiate the configuration header FILE
26380
26381 Configuration files:
26382 $config_files
26383
26384 Configuration headers:
26385 $config_headers
26386
26387 Configuration commands:
26388 $config_commands
26389
26390 Report bugs to the package provider."
26391
26392 _ACEOF
26393 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
26394 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
26395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26396 ac_cs_config='$ac_cs_config_escaped'
26397 ac_cs_version="\\
26398 config.status
26399 configured by $0, generated by GNU Autoconf 2.72,
26400 with options \\"\$ac_cs_config\\"
26401
26402 Copyright (C) 2023 Free Software Foundation, Inc.
26403 This config.status script is free software; the Free Software Foundation
26404 gives unlimited permission to copy, distribute and modify it."
26405
26406 ac_pwd='$ac_pwd'
26407 srcdir='$srcdir'
26408 INSTALL='$INSTALL'
26409 MKDIR_P='$MKDIR_P'
26410 AWK='$AWK'
26411 test -n "\$AWK" || AWK=awk
26412 _ACEOF
26413
26414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26415 # The default lists apply if the user does not specify any file.
26416 ac_need_defaults=:
26417 while test $# != 0
26418 do
26419 case $1 in
26420 --*=?*)
26421 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26422 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26423 ac_shift=:
26424 ;;
26425 --*=)
26426 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26427 ac_optarg=
26428 ac_shift=:
26429 ;;
26430 *)
26431 ac_option=$1
26432 ac_optarg=$2
26433 ac_shift=shift
26434 ;;
26435 esac
26436
26437 case $ac_option in
26438 # Handling of the options.
26439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26440 ac_cs_recheck=: ;;
26441 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26442 printf "%s\n" "$ac_cs_version"; exit ;;
26443 --config | --confi | --conf | --con | --co | --c )
26444 printf "%s\n" "$ac_cs_config"; exit ;;
26445 --debug | --debu | --deb | --de | --d | -d )
26446 debug=: ;;
26447 --file | --fil | --fi | --f )
26448 $ac_shift
26449 case $ac_optarg in
26450 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26451 '') as_fn_error $? "missing file argument" ;;
26452 esac
26453 as_fn_append CONFIG_FILES " '$ac_optarg'"
26454 ac_need_defaults=false;;
26455 --header | --heade | --head | --hea )
26456 $ac_shift
26457 case $ac_optarg in
26458 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26459 esac
26460 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26461 ac_need_defaults=false;;
26462 --he | --h)
26463 # Conflict between --help and --header
26464 as_fn_error $? "ambiguous option: '$1'
26465 Try '$0 --help' for more information.";;
26466 --help | --hel | -h )
26467 printf "%s\n" "$ac_cs_usage"; exit ;;
26468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26469 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26470 ac_cs_silent=: ;;
26471
26472 # This is an error.
26473 -*) as_fn_error $? "unrecognized option: '$1'
26474 Try '$0 --help' for more information." ;;
26475
26476 *) as_fn_append ac_config_targets " $1"
26477 ac_need_defaults=false ;;
26478
26479 esac
26480 shift
26481 done
26482
26483 ac_configure_extra_args=
26484
26485 if $ac_cs_silent; then
26486 exec 6>/dev/null
26487 ac_configure_extra_args="$ac_configure_extra_args --silent"
26488 fi
26489
26490 _ACEOF
26491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26492 if \$ac_cs_recheck; then
26493 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26494 shift
26495 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
26496 CONFIG_SHELL='$SHELL'
26497 export CONFIG_SHELL
26498 exec "\$@"
26499 fi
26500
26501 _ACEOF
26502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26503 exec 5>>config.log
26504 {
26505 echo
26506 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26507 ## Running $as_me. ##
26508 _ASBOX
26509 printf "%s\n" "$ac_log"
26510 } >&5
26511
26512 _ACEOF
26513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26514 #
26515 # INIT-COMMANDS
26516 #
26517 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
26518 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
26519 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
26520 # Capture the value of LINGUAS because we need it to compute CATALOGS.
26521 LINGUAS="${LINGUAS-%UNSET%}"
26522
26523
26524
26525 # The HP-UX ksh and POSIX shell print the target directory to stdout
26526 # if CDPATH is set.
26527 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26528
26529 sed_quote_subst='$sed_quote_subst'
26530 double_quote_subst='$double_quote_subst'
26531 delay_variable_subst='$delay_variable_subst'
26532 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26533 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26534 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26535 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26536 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26537 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26538 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
26539 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26540 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26541 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26542 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26543 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26544 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26545 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26546 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26547 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26548 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26549 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26550 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26551 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26552 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26553 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26554 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26555 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26556 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26557 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26558 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26559 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26560 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26561 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26562 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26563 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26564 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26565 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26566 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26567 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26568 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26569 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26570 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26571 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26572 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26573 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26574 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26575 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26576 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26577 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26578 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26579 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26580 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26581 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26582 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26583 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26584 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26585 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26586 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26587 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26588 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
26589 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26590 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"`'
26591 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
26592 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26593 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26594 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
26595 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26596 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26597 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26598 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26599 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26600 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26601 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26602 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26603 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26604 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26605 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26606 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26607 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26608 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26609 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26610 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26611 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26612 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26613 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26614 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26615 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26616 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26617 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26618 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26619 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26620 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26621 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26622 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26623 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26624 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26625 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26626 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26627 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26628 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26629 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26630 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26631 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26632 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26633 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26634 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26635 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26636 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26637 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26638 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26639 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26640 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26641 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26642 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26643 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26644 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26645 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26646 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26647 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26648 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26649 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26650 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26651 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26652 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26653 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26654 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26655 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26656 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26657 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26658 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26659 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
26660 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
26661 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26662 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26663 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26664 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26665 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26666 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26667 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26668 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26669 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26670 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26671 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26672 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26673 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26674 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26675 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26676 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26677 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26678 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26679 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26680 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26681 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26682 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26683 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26684 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26685 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26686 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26687 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26688 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26689 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26690 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26691 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26692 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26693 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26694 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26695 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26696 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26697 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26698 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26699 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26700 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26701 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26702 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26703 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26704 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26705 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26706 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26707 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26708 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26709 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26710 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26711 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26712 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26713 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26714 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26715 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26716 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26717 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26718 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26719 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26720 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26721
26722 LTCC='$LTCC'
26723 LTCFLAGS='$LTCFLAGS'
26724 compiler='$compiler_DEFAULT'
26725
26726 # A function that is used when there is no print builtin or printf.
26727 func_fallback_echo ()
26728 {
26729 eval 'cat <<_LTECHO_EOF
26730 \$1
26731 _LTECHO_EOF'
26732 }
26733
26734 # Quote evaled strings.
26735 for var in SHELL \
26736 ECHO \
26737 PATH_SEPARATOR \
26738 SED \
26739 GREP \
26740 EGREP \
26741 FGREP \
26742 LD \
26743 NM \
26744 LN_S \
26745 lt_SP2NL \
26746 lt_NL2SP \
26747 reload_flag \
26748 OBJDUMP \
26749 deplibs_check_method \
26750 file_magic_cmd \
26751 file_magic_glob \
26752 want_nocaseglob \
26753 DLLTOOL \
26754 sharedlib_from_linklib_cmd \
26755 AR \
26756 AR_FLAGS \
26757 archiver_list_spec \
26758 STRIP \
26759 RANLIB \
26760 CC \
26761 CFLAGS \
26762 compiler \
26763 lt_cv_sys_global_symbol_pipe \
26764 lt_cv_sys_global_symbol_to_cdecl \
26765 lt_cv_sys_global_symbol_to_import \
26766 lt_cv_sys_global_symbol_to_c_name_address \
26767 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26768 lt_cv_nm_interface \
26769 nm_file_list_spec \
26770 lt_cv_truncate_bin \
26771 lt_prog_compiler_no_builtin_flag \
26772 lt_prog_compiler_pic \
26773 lt_prog_compiler_wl \
26774 lt_prog_compiler_static \
26775 lt_cv_prog_compiler_c_o \
26776 need_locks \
26777 MANIFEST_TOOL \
26778 DSYMUTIL \
26779 NMEDIT \
26780 LIPO \
26781 OTOOL \
26782 OTOOL64 \
26783 shrext_cmds \
26784 export_dynamic_flag_spec \
26785 whole_archive_flag_spec \
26786 compiler_needs_object \
26787 with_gnu_ld \
26788 allow_undefined_flag \
26789 no_undefined_flag \
26790 hardcode_libdir_flag_spec \
26791 hardcode_libdir_separator \
26792 exclude_expsyms \
26793 include_expsyms \
26794 file_list_spec \
26795 variables_saved_for_relink \
26796 libname_spec \
26797 library_names_spec \
26798 soname_spec \
26799 install_override_mode \
26800 finish_eval \
26801 old_striplib \
26802 striplib \
26803 compiler_lib_search_dirs \
26804 predep_objects \
26805 postdep_objects \
26806 predeps \
26807 postdeps \
26808 compiler_lib_search_path \
26809 LD_CXX \
26810 reload_flag_CXX \
26811 compiler_CXX \
26812 lt_prog_compiler_no_builtin_flag_CXX \
26813 lt_prog_compiler_pic_CXX \
26814 lt_prog_compiler_wl_CXX \
26815 lt_prog_compiler_static_CXX \
26816 lt_cv_prog_compiler_c_o_CXX \
26817 export_dynamic_flag_spec_CXX \
26818 whole_archive_flag_spec_CXX \
26819 compiler_needs_object_CXX \
26820 with_gnu_ld_CXX \
26821 allow_undefined_flag_CXX \
26822 no_undefined_flag_CXX \
26823 hardcode_libdir_flag_spec_CXX \
26824 hardcode_libdir_separator_CXX \
26825 exclude_expsyms_CXX \
26826 include_expsyms_CXX \
26827 file_list_spec_CXX \
26828 compiler_lib_search_dirs_CXX \
26829 predep_objects_CXX \
26830 postdep_objects_CXX \
26831 predeps_CXX \
26832 postdeps_CXX \
26833 compiler_lib_search_path_CXX; do
26834 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26835 *[\\\\\\\`\\"\\\$]*)
26836 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26837 ;;
26838 *)
26839 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26840 ;;
26841 esac
26842 done
26843
26844 # Double-quote double-evaled strings.
26845 for var in reload_cmds \
26846 old_postinstall_cmds \
26847 old_postuninstall_cmds \
26848 old_archive_cmds \
26849 extract_expsyms_cmds \
26850 old_archive_from_new_cmds \
26851 old_archive_from_expsyms_cmds \
26852 archive_cmds \
26853 archive_expsym_cmds \
26854 module_cmds \
26855 module_expsym_cmds \
26856 export_symbols_cmds \
26857 prelink_cmds \
26858 postlink_cmds \
26859 postinstall_cmds \
26860 postuninstall_cmds \
26861 finish_cmds \
26862 sys_lib_search_path_spec \
26863 configure_time_dlsearch_path \
26864 configure_time_lt_sys_library_path \
26865 reload_cmds_CXX \
26866 old_archive_cmds_CXX \
26867 old_archive_from_new_cmds_CXX \
26868 old_archive_from_expsyms_cmds_CXX \
26869 archive_cmds_CXX \
26870 archive_expsym_cmds_CXX \
26871 module_cmds_CXX \
26872 module_expsym_cmds_CXX \
26873 export_symbols_cmds_CXX \
26874 prelink_cmds_CXX \
26875 postlink_cmds_CXX; do
26876 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26877 *[\\\\\\\`\\"\\\$]*)
26878 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26879 ;;
26880 *)
26881 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26882 ;;
26883 esac
26884 done
26885
26886 ac_aux_dir='$ac_aux_dir'
26887
26888 # See if we are running on zsh, and set the options that allow our
26889 # commands through without removal of \ escapes INIT.
26890 if test -n "\${ZSH_VERSION+set}"; then
26891 setopt NO_GLOB_SUBST
26892 fi
26893
26894
26895 PACKAGE='$PACKAGE'
26896 VERSION='$VERSION'
26897 RM='$RM'
26898 ofile='$ofile'
26899
26900
26901
26902
26903
26904
26905 _ACEOF
26906
26907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26908
26909 # Handling of arguments.
26910 for ac_config_target in $ac_config_targets
26911 do
26912 case $ac_config_target in
26913 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26914 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
26915 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26916 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26917 "gretl_sh") CONFIG_FILES="$CONFIG_FILES gretl_sh" ;;
26918 "gretl.pc") CONFIG_FILES="$CONFIG_FILES gretl.pc" ;;
26919 "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
26920 "gui/debug") CONFIG_FILES="$CONFIG_FILES gui/debug" ;;
26921 "xdg/gretl.desktop") CONFIG_FILES="$CONFIG_FILES xdg/gretl.desktop" ;;
26922 "xdg/gretl_edit.desktop") CONFIG_FILES="$CONFIG_FILES xdg/gretl_edit.desktop" ;;
26923 "xdg/Makefile") CONFIG_FILES="$CONFIG_FILES xdg/Makefile" ;;
26924 "cli/Makefile") CONFIG_FILES="$CONFIG_FILES cli/Makefile" ;;
26925 "cli/debug") CONFIG_FILES="$CONFIG_FILES cli/debug" ;;
26926 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26927 "plugin/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/Makefile" ;;
26928 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
26929 "share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
26930 "share/bcih/Makefile") CONFIG_FILES="$CONFIG_FILES share/bcih/Makefile" ;;
26931 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
26932 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
26933 "apidemo/Makefile") CONFIG_FILES="$CONFIG_FILES apidemo/Makefile" ;;
26934 "redhat/gretl.spec") CONFIG_FILES="$CONFIG_FILES redhat/gretl.spec" ;;
26935 "utils/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/emacs/Makefile" ;;
26936 "utils/dbzip/Makefile") CONFIG_FILES="$CONFIG_FILES utils/dbzip/Makefile" ;;
26937 "doc/gretl.sty") CONFIG_FILES="$CONFIG_FILES doc/gretl.sty" ;;
26938 "doc/gretl-lite.sty") CONFIG_FILES="$CONFIG_FILES doc/gretl-lite.sty" ;;
26939 "osx/Info.plist") CONFIG_FILES="$CONFIG_FILES osx/Info.plist" ;;
26940 "win32/windist/mkiss.sh") CONFIG_FILES="$CONFIG_FILES win32/windist/mkiss.sh" ;;
26941 "win32/windist/post-install.sh") CONFIG_FILES="$CONFIG_FILES win32/windist/post-install.sh" ;;
26942 "win32/windist/install-runtime.sh") CONFIG_FILES="$CONFIG_FILES win32/windist/install-runtime.sh" ;;
26943 "win32/windist/install-runtime-gtk3.sh") CONFIG_FILES="$CONFIG_FILES win32/windist/install-runtime-gtk3.sh" ;;
26944 "win32/gretlrun.cmd") CONFIG_FILES="$CONFIG_FILES win32/gretlrun.cmd" ;;
26945 "win32/gretlmime.reg") CONFIG_FILES="$CONFIG_FILES win32/gretlmime.reg" ;;
26946 "win32/mkshortcut.sh") CONFIG_FILES="$CONFIG_FILES win32/mkshortcut.sh" ;;
26947 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26948 "doc/commands/Makefile") CONFIG_FILES="$CONFIG_FILES doc/commands/Makefile" ;;
26949 "doc/tex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex/Makefile" ;;
26950 "doc/tex_it/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex_it/Makefile" ;;
26951 "doc/tex_es/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex_es/Makefile" ;;
26952 "doc/tex_pt/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex_pt/Makefile" ;;
26953 "doc/tex_gl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex_gl/Makefile" ;;
26954 "doc/tex_ru/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex_ru/Makefile" ;;
26955 "doc/tex/extract.mk") CONFIG_FILES="$CONFIG_FILES doc/tex/extract.mk" ;;
26956 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
26957 "addons/Makefile") CONFIG_FILES="$CONFIG_FILES addons/Makefile" ;;
26958 "addons/gig/Makefile") CONFIG_FILES="$CONFIG_FILES addons/gig/Makefile" ;;
26959 "addons/gig/pkg.inp") CONFIG_FILES="$CONFIG_FILES addons/gig/pkg.inp" ;;
26960 "addons/gig/doc/Makefile") CONFIG_FILES="$CONFIG_FILES addons/gig/doc/Makefile" ;;
26961 "addons/HIP/Makefile") CONFIG_FILES="$CONFIG_FILES addons/HIP/Makefile" ;;
26962 "addons/HIP/pkg.inp") CONFIG_FILES="$CONFIG_FILES addons/HIP/pkg.inp" ;;
26963 "addons/HIP/doc/Makefile") CONFIG_FILES="$CONFIG_FILES addons/HIP/doc/Makefile" ;;
26964 "addons/ivpanel/Makefile") CONFIG_FILES="$CONFIG_FILES addons/ivpanel/Makefile" ;;
26965 "addons/ivpanel/pkg.inp") CONFIG_FILES="$CONFIG_FILES addons/ivpanel/pkg.inp" ;;
26966 "addons/ivpanel/doc/Makefile") CONFIG_FILES="$CONFIG_FILES addons/ivpanel/doc/Makefile" ;;
26967 "addons/SVAR/Makefile") CONFIG_FILES="$CONFIG_FILES addons/SVAR/Makefile" ;;
26968 "addons/SVAR/pkg.inp") CONFIG_FILES="$CONFIG_FILES addons/SVAR/pkg.inp" ;;
26969 "addons/SVAR/doc/Makefile") CONFIG_FILES="$CONFIG_FILES addons/SVAR/doc/Makefile" ;;
26970 "addons/dbnomics/Makefile") CONFIG_FILES="$CONFIG_FILES addons/dbnomics/Makefile" ;;
26971 "addons/dbnomics/pkg.inp") CONFIG_FILES="$CONFIG_FILES addons/dbnomics/pkg.inp" ;;
26972 "addons/dbnomics/doc/Makefile") CONFIG_FILES="$CONFIG_FILES addons/dbnomics/doc/Makefile" ;;
26973 "addons/extra/pkg.inp") CONFIG_FILES="$CONFIG_FILES addons/extra/pkg.inp" ;;
26974 "addons/extra/Makefile") CONFIG_FILES="$CONFIG_FILES addons/extra/Makefile" ;;
26975 "addons/extra/doc/Makefile") CONFIG_FILES="$CONFIG_FILES addons/extra/doc/Makefile" ;;
26976 "addons/geoplot/Makefile") CONFIG_FILES="$CONFIG_FILES addons/geoplot/Makefile" ;;
26977 "addons/geoplot/pkg.inp") CONFIG_FILES="$CONFIG_FILES addons/geoplot/pkg.inp" ;;
26978 "addons/geoplot/doc/Makefile") CONFIG_FILES="$CONFIG_FILES addons/geoplot/doc/Makefile" ;;
26979 "addons/geoplot/examples/Makefile") CONFIG_FILES="$CONFIG_FILES addons/geoplot/examples/Makefile" ;;
26980 "addons/regls/Makefile") CONFIG_FILES="$CONFIG_FILES addons/regls/Makefile" ;;
26981 "addons/regls/pkg.inp") CONFIG_FILES="$CONFIG_FILES addons/regls/pkg.inp" ;;
26982 "addons/regls/doc/Makefile") CONFIG_FILES="$CONFIG_FILES addons/regls/doc/Makefile" ;;
26983 "addons/logging/Makefile") CONFIG_FILES="$CONFIG_FILES addons/logging/Makefile" ;;
26984 "addons/logging/pkg.inp") CONFIG_FILES="$CONFIG_FILES addons/logging/pkg.inp" ;;
26985 "addons/logging/doc/Makefile") CONFIG_FILES="$CONFIG_FILES addons/logging/doc/Makefile" ;;
26986 "addons/KFgui/Makefile") CONFIG_FILES="$CONFIG_FILES addons/KFgui/Makefile" ;;
26987 "addons/KFgui/pkg.inp") CONFIG_FILES="$CONFIG_FILES addons/KFgui/pkg.inp" ;;
26988 "editor/Makefile") CONFIG_FILES="$CONFIG_FILES editor/Makefile" ;;
26989
26990 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
26991 esac
26992 done
26993
26994
26995 # If the user did not use the arguments to specify the items to instantiate,
26996 # then the envvar interface is used. Set only those that are not.
26997 # We use the long form for the default assignment because of an extremely
26998 # bizarre bug on SunOS 4.1.3.
26999 if $ac_need_defaults; then
27000 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
27001 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
27002 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
27003 fi
27004
27005 # Have a temporary directory for convenience. Make it in the build tree
27006 # simply because there is no reason against having it here, and in addition,
27007 # creating and moving files from /tmp can sometimes cause problems.
27008 # Hook for its removal unless debugging.
27009 # Note that there is a small window in which the directory will not be cleaned:
27010 # after its creation but before its name has been assigned to '$tmp'.
27011 $debug ||
27012 {
27013 tmp= ac_tmp=
27014 trap 'exit_status=$?
27015 : "${ac_tmp:=$tmp}"
27016 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27017 ' 0
27018 trap 'as_fn_exit 1' 1 2 13 15
27019 }
27020 # Create a (secure) tmp directory for tmp files.
27021
27022 {
27023 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27024 test -d "$tmp"
27025 } ||
27026 {
27027 tmp=./conf$$-$RANDOM
27028 (umask 077 && mkdir "$tmp")
27029 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27030 ac_tmp=$tmp
27031
27032 # Set up the scripts for CONFIG_FILES section.
27033 # No need to generate them if there are no CONFIG_FILES.
27034 # This happens for instance with './config.status config.h'.
27035 if test -n "$CONFIG_FILES"; then
27036
27037
27038 ac_cr=`echo X | tr X '\015'`
27039 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27040 # But we know of no other shell where ac_cr would be empty at this
27041 # point, so we can use a bashism as a fallback.
27042 if test "x$ac_cr" = x; then
27043 eval ac_cr=\$\'\\r\'
27044 fi
27045 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27046 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27047 ac_cs_awk_cr='\\r'
27048 else
27049 ac_cs_awk_cr=$ac_cr
27050 fi
27051
27052 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27053 _ACEOF
27054
27055
27056 {
27057 echo "cat >conf$$subs.awk <<_ACEOF" &&
27058 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27059 echo "_ACEOF"
27060 } >conf$$subs.sh ||
27061 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27062 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27063 ac_delim='%!_!# '
27064 for ac_last_try in false false false false false :; do
27065 . ./conf$$subs.sh ||
27066 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27067
27068 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27069 if test $ac_delim_n = $ac_delim_num; then
27070 break
27071 elif $ac_last_try; then
27072 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27073 else
27074 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27075 fi
27076 done
27077 rm -f conf$$subs.sh
27078
27079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27080 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27081 _ACEOF
27082 sed -n '
27083 h
27084 s/^/S["/; s/!.*/"]=/
27085 p
27086 g
27087 s/^[^!]*!//
27088 :repl
27089 t repl
27090 s/'"$ac_delim"'$//
27091 t delim
27092 :nl
27093 h
27094 s/\(.\{148\}\)..*/\1/
27095 t more1
27096 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27097 p
27098 n
27099 b repl
27100 :more1
27101 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27102 p
27103 g
27104 s/.\{148\}//
27105 t nl
27106 :delim
27107 h
27108 s/\(.\{148\}\)..*/\1/
27109 t more2
27110 s/["\\]/\\&/g; s/^/"/; s/$/"/
27111 p
27112 b
27113 :more2
27114 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27115 p
27116 g
27117 s/.\{148\}//
27118 t delim
27119 ' <conf$$subs.awk | sed '
27120 /^[^""]/{
27121 N
27122 s/\n//
27123 }
27124 ' >>$CONFIG_STATUS || ac_write_fail=1
27125 rm -f conf$$subs.awk
27126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27127 _ACAWK
27128 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27129 for (key in S) S_is_set[key] = 1
27130 FS = ""
27131
27132 }
27133 {
27134 line = $ 0
27135 nfields = split(line, field, "@")
27136 substed = 0
27137 len = length(field[1])
27138 for (i = 2; i < nfields; i++) {
27139 key = field[i]
27140 keylen = length(key)
27141 if (S_is_set[key]) {
27142 value = S[key]
27143 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27144 len += length(value) + length(field[++i])
27145 substed = 1
27146 } else
27147 len += 1 + keylen
27148 }
27149
27150 print line
27151 }
27152
27153 _ACAWK
27154 _ACEOF
27155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27156 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27157 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27158 else
27159 cat
27160 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27161 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27162 _ACEOF
27163
27164 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27165 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27166 # trailing colons and then remove the whole line if VPATH becomes empty
27167 # (actually we leave an empty line to preserve line numbers).
27168 if test "x$srcdir" = x.; then
27169 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27170 h
27171 s///
27172 s/^/:/
27173 s/[ ]*$/:/
27174 s/:\$(srcdir):/:/g
27175 s/:\${srcdir}:/:/g
27176 s/:@srcdir@:/:/g
27177 s/^:*//
27178 s/:*$//
27179 x
27180 s/\(=[ ]*\).*/\1/
27181 G
27182 s/\n//
27183 s/^[^=]*=[ ]*$//
27184 }'
27185 fi
27186
27187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27188 fi # test -n "$CONFIG_FILES"
27189
27190 # Set up the scripts for CONFIG_HEADERS section.
27191 # No need to generate them if there are no CONFIG_HEADERS.
27192 # This happens for instance with './config.status Makefile'.
27193 if test -n "$CONFIG_HEADERS"; then
27194 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27195 BEGIN {
27196 _ACEOF
27197
27198 # Transform confdefs.h into an awk script 'defines.awk', embedded as
27199 # here-document in config.status, that substitutes the proper values into
27200 # config.h.in to produce config.h.
27201
27202 # Create a delimiter string that does not exist in confdefs.h, to ease
27203 # handling of long lines.
27204 ac_delim='%!_!# '
27205 for ac_last_try in false false :; do
27206 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27207 if test -z "$ac_tt"; then
27208 break
27209 elif $ac_last_try; then
27210 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27211 else
27212 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27213 fi
27214 done
27215
27216 # For the awk script, D is an array of macro values keyed by name,
27217 # likewise P contains macro parameters if any. Preserve backslash
27218 # newline sequences.
27219
27220 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27221 sed -n '
27222 s/.\{148\}/&'"$ac_delim"'/g
27223 t rset
27224 :rset
27225 s/^[ ]*#[ ]*define[ ][ ]*/ /
27226 t def
27227 d
27228 :def
27229 s/\\$//
27230 t bsnl
27231 s/["\\]/\\&/g
27232 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27233 D["\1"]=" \3"/p
27234 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27235 d
27236 :bsnl
27237 s/["\\]/\\&/g
27238 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27239 D["\1"]=" \3\\\\\\n"\\/p
27240 t cont
27241 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27242 t cont
27243 d
27244 :cont
27245 n
27246 s/.\{148\}/&'"$ac_delim"'/g
27247 t clear
27248 :clear
27249 s/\\$//
27250 t bsnlc
27251 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27252 d
27253 :bsnlc
27254 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27255 b cont
27256 ' <confdefs.h | sed '
27257 s/'"$ac_delim"'/"\\\
27258 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27259
27260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27261 for (key in D) D_is_set[key] = 1
27262 FS = ""
27263 }
27264 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27265 line = \$ 0
27266 split(line, arg, " ")
27267 if (arg[1] == "#") {
27268 defundef = arg[2]
27269 mac1 = arg[3]
27270 } else {
27271 defundef = substr(arg[1], 2)
27272 mac1 = arg[2]
27273 }
27274 split(mac1, mac2, "(") #)
27275 macro = mac2[1]
27276 prefix = substr(line, 1, index(line, defundef) - 1)
27277 if (D_is_set[macro]) {
27278 # Preserve the white space surrounding the "#".
27279 print prefix "define", macro P[macro] D[macro]
27280 next
27281 } else {
27282 # Replace #undef with comments. This is necessary, for example,
27283 # in the case of _POSIX_SOURCE, which is predefined and required
27284 # on some systems where configure will not decide to define it.
27285 if (defundef == "undef") {
27286 print "/*", prefix defundef, macro, "*/"
27287 next
27288 }
27289 }
27290 }
27291 { print }
27292 _ACAWK
27293 _ACEOF
27294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27295 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27296 fi # test -n "$CONFIG_HEADERS"
27297
27298
27299 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27300 shift
27301 for ac_tag
27302 do
27303 case $ac_tag in
27304 :[FHLC]) ac_mode=$ac_tag; continue;;
27305 esac
27306 case $ac_mode$ac_tag in
27307 :[FHL]*:*);;
27308 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
27309 :[FH]-) ac_tag=-:-;;
27310 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27311 esac
27312 ac_save_IFS=$IFS
27313 IFS=:
27314 set x $ac_tag
27315 IFS=$ac_save_IFS
27316 shift
27317 ac_file=$1
27318 shift
27319
27320 case $ac_mode in
27321 :L) ac_source=$1;;
27322 :[FH])
27323 ac_file_inputs=
27324 for ac_f
27325 do
27326 case $ac_f in
27327 -) ac_f="$ac_tmp/stdin";;
27328 *) # Look for the file first in the build tree, then in the source tree
27329 # (if the path is not absolute). The absolute path cannot be DOS-style,
27330 # because $ac_f cannot contain ':'.
27331 test -f "$ac_f" ||
27332 case $ac_f in
27333 [\\/$]*) false;;
27334 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27335 esac ||
27336 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
27337 esac
27338 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27339 as_fn_append ac_file_inputs " '$ac_f'"
27340 done
27341
27342 # Let's still pretend it is 'configure' which instantiates (i.e., don't
27343 # use $as_me), people would be surprised to read:
27344 # /* config.h. Generated by config.status. */
27345 configure_input='Generated from '`
27346 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27347 `' by configure.'
27348 if test x"$ac_file" != x-; then
27349 configure_input="$ac_file. $configure_input"
27350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27351 printf "%s\n" "$as_me: creating $ac_file" >&6;}
27352 fi
27353 # Neutralize special characters interpreted by sed in replacement strings.
27354 case $configure_input in #(
27355 *\&* | *\|* | *\\* )
27356 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
27357 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27358 *) ac_sed_conf_input=$configure_input;;
27359 esac
27360
27361 case $ac_tag in
27362 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27364 esac
27365 ;;
27366 esac
27367
27368 ac_dir=`$as_dirname -- "$ac_file" ||
27369 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27370 X"$ac_file" : 'X\(//\)[^/]' \| \
27371 X"$ac_file" : 'X\(//\)$' \| \
27372 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27373 printf "%s\n" X"$ac_file" |
27374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27375 s//\1/
27376 q
27377 }
27378 /^X\(\/\/\)[^/].*/{
27379 s//\1/
27380 q
27381 }
27382 /^X\(\/\/\)$/{
27383 s//\1/
27384 q
27385 }
27386 /^X\(\/\).*/{
27387 s//\1/
27388 q
27389 }
27390 s/.*/./; q'`
27391 as_dir="$ac_dir"; as_fn_mkdir_p
27392 ac_builddir=.
27393
27394 case "$ac_dir" in
27395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27396 *)
27397 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
27398 # A ".." for each directory in $ac_dir_suffix.
27399 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27400 case $ac_top_builddir_sub in
27401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27403 esac ;;
27404 esac
27405 ac_abs_top_builddir=$ac_pwd
27406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27407 # for backward compatibility:
27408 ac_top_builddir=$ac_top_build_prefix
27409
27410 case $srcdir in
27411 .) # We are building in place.
27412 ac_srcdir=.
27413 ac_top_srcdir=$ac_top_builddir_sub
27414 ac_abs_top_srcdir=$ac_pwd ;;
27415 [\\/]* | ?:[\\/]* ) # Absolute name.
27416 ac_srcdir=$srcdir$ac_dir_suffix;
27417 ac_top_srcdir=$srcdir
27418 ac_abs_top_srcdir=$srcdir ;;
27419 *) # Relative name.
27420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27421 ac_top_srcdir=$ac_top_build_prefix$srcdir
27422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27423 esac
27424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27425
27426
27427 case $ac_mode in
27428 :F)
27429 #
27430 # CONFIG_FILE
27431 #
27432
27433 case $INSTALL in
27434 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27435 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27436 esac
27437 ac_MKDIR_P=$MKDIR_P
27438 case $MKDIR_P in
27439 [\\/$]* | ?:[\\/]* ) ;;
27440 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27441 esac
27442 _ACEOF
27443
27444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27445 # If the template does not know about datarootdir, expand it.
27446 # FIXME: This hack should be removed a few years after 2.60.
27447 ac_datarootdir_hack=; ac_datarootdir_seen=
27448 ac_sed_dataroot='
27449 /datarootdir/ {
27450 p
27451 q
27452 }
27453 /@datadir@/p
27454 /@docdir@/p
27455 /@infodir@/p
27456 /@localedir@/p
27457 /@mandir@/p'
27458 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27459 *datarootdir*) ac_datarootdir_seen=yes;;
27460 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27462 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27463 _ACEOF
27464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27465 ac_datarootdir_hack='
27466 s&@datadir@&$datadir&g
27467 s&@docdir@&$docdir&g
27468 s&@infodir@&$infodir&g
27469 s&@localedir@&$localedir&g
27470 s&@mandir@&$mandir&g
27471 s&\\\${datarootdir}&$datarootdir&g' ;;
27472 esac
27473 _ACEOF
27474
27475 # Neutralize VPATH when '$srcdir' = '.'.
27476 # Shell code in configure.ac might set extrasub.
27477 # FIXME: do we really want to maintain this feature?
27478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27479 ac_sed_extra="$ac_vpsub
27480 $extrasub
27481 _ACEOF
27482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27483 :t
27484 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27485 s|@configure_input@|$ac_sed_conf_input|;t t
27486 s&@top_builddir@&$ac_top_builddir_sub&;t t
27487 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27488 s&@srcdir@&$ac_srcdir&;t t
27489 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27490 s&@top_srcdir@&$ac_top_srcdir&;t t
27491 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27492 s&@builddir@&$ac_builddir&;t t
27493 s&@abs_builddir@&$ac_abs_builddir&;t t
27494 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27495 s&@INSTALL@&$ac_INSTALL&;t t
27496 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27497 $ac_datarootdir_hack
27498 "
27499 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27500 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27501
27502 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27503 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27504 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
27505 "$ac_tmp/out"`; test -z "$ac_out"; } &&
27506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
27507 which seems to be undefined. Please make sure it is defined" >&5
27508 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
27509 which seems to be undefined. Please make sure it is defined" >&2;}
27510
27511 rm -f "$ac_tmp/stdin"
27512 case $ac_file in
27513 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27514 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27515 esac \
27516 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27517 ;;
27518 :H)
27519 #
27520 # CONFIG_HEADER
27521 #
27522 if test x"$ac_file" != x-; then
27523 {
27524 printf "%s\n" "/* $configure_input */" >&1 \
27525 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27526 } >"$ac_tmp/config.h" \
27527 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27528 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27530 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
27531 else
27532 rm -f "$ac_file"
27533 mv "$ac_tmp/config.h" "$ac_file" \
27534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27535 fi
27536 else
27537 printf "%s\n" "/* $configure_input */" >&1 \
27538 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27539 || as_fn_error $? "could not create -" "$LINENO" 5
27540 fi
27541 ;;
27542
27543 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27544 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
27545 ;;
27546 esac
27547
27548
27549 case $ac_file$ac_mode in
27550 "po-directories":C)
27551 for ac_file in $CONFIG_FILES; do
27552 # Support "outfile[:infile[:infile...]]"
27553 case "$ac_file" in
27554 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
27555 esac
27556 # PO directories have a Makefile.in generated from Makefile.in.in.
27557 case "$ac_file" in */Makefile.in)
27558 # Adjust a relative srcdir.
27559 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
27560 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
27561 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
27562 # In autoconf-2.13 it is called $ac_given_srcdir.
27563 # In autoconf-2.50 it is called $srcdir.
27564 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
27565 case "$ac_given_srcdir" in
27566 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
27567 /*) top_srcdir="$ac_given_srcdir" ;;
27568 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
27569 esac
27570 # Treat a directory as a PO directory if and only if it has a
27571 # POTFILES.in file. This allows packages to have multiple PO
27572 # directories under different names or in different locations.
27573 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
27574 rm -f "$ac_dir/POTFILES"
27575 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
27576 gt_tab=`printf '\t'`
27577 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
27578 POMAKEFILEDEPS="POTFILES.in"
27579 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
27580 # on $ac_dir but don't depend on user-specified configuration
27581 # parameters.
27582 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
27583 # The LINGUAS file contains the set of available languages.
27584 if test -n "$OBSOLETE_ALL_LINGUAS"; then
27585 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
27586 fi
27587 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
27588 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
27589 else
27590 # The set of available languages was given in configure.in.
27591 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
27592 fi
27593 # Compute POFILES
27594 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
27595 # Compute UPDATEPOFILES
27596 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
27597 # Compute DUMMYPOFILES
27598 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
27599 # Compute GMOFILES
27600 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
27601 case "$ac_given_srcdir" in
27602 .) srcdirpre= ;;
27603 *) srcdirpre='$(srcdir)/' ;;
27604 esac
27605 POFILES=
27606 UPDATEPOFILES=
27607 DUMMYPOFILES=
27608 GMOFILES=
27609 for lang in $ALL_LINGUAS; do
27610 POFILES="$POFILES $srcdirpre$lang.po"
27611 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
27612 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
27613 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
27614 done
27615 # CATALOGS depends on both $ac_dir and the user's LINGUAS
27616 # environment variable.
27617 INST_LINGUAS=
27618 if test -n "$ALL_LINGUAS"; then
27619 for presentlang in $ALL_LINGUAS; do
27620 useit=no
27621 if test "%UNSET%" != "$LINGUAS"; then
27622 desiredlanguages="$LINGUAS"
27623 else
27624 desiredlanguages="$ALL_LINGUAS"
27625 fi
27626 for desiredlang in $desiredlanguages; do
27627 # Use the presentlang catalog if desiredlang is
27628 # a. equal to presentlang, or
27629 # b. a variant of presentlang (because in this case,
27630 # presentlang can be used as a fallback for messages
27631 # which are not translated in the desiredlang catalog).
27632 case "$desiredlang" in
27633 "$presentlang" | "$presentlang"_* | "$presentlang".* | "$presentlang"@*)
27634 useit=yes
27635 ;;
27636 esac
27637 done
27638 if test $useit = yes; then
27639 INST_LINGUAS="$INST_LINGUAS $presentlang"
27640 fi
27641 done
27642 fi
27643 CATALOGS=
27644 if test -n "$INST_LINGUAS"; then
27645 for lang in $INST_LINGUAS; do
27646 CATALOGS="$CATALOGS $lang.gmo"
27647 done
27648 fi
27649 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
27650 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
27651 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
27652 if test -f "$f"; then
27653 case "$f" in
27654 *.orig | *.bak | *~) ;;
27655 *) cat "$f" >> "$ac_dir/Makefile" ;;
27656 esac
27657 fi
27658 done
27659 fi
27660 ;;
27661 esac
27662 done ;;
27663 "libtool":C)
27664
27665 # See if we are running on zsh, and set the options that allow our
27666 # commands through without removal of \ escapes.
27667 if test -n "${ZSH_VERSION+set}"; then
27668 setopt NO_GLOB_SUBST
27669 fi
27670
27671 cfgfile=${ofile}T
27672 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27673 $RM "$cfgfile"
27674
27675 cat <<_LT_EOF >> "$cfgfile"
27676 #! $SHELL
27677 # Generated automatically by $as_me ($PACKAGE) $VERSION
27678 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27679 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27680
27681 # Provide generalized library-building support services.
27682 # Written by Gordon Matzigkeit, 1996
27683
27684 # Copyright (C) 2014 Free Software Foundation, Inc.
27685 # This is free software; see the source for copying conditions. There is NO
27686 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27687
27688 # GNU Libtool is free software; you can redistribute it and/or modify
27689 # it under the terms of the GNU General Public License as published by
27690 # the Free Software Foundation; either version 2 of of the License, or
27691 # (at your option) any later version.
27692 #
27693 # As a special exception to the GNU General Public License, if you
27694 # distribute this file as part of a program or library that is built
27695 # using GNU Libtool, you may include this file under the same
27696 # distribution terms that you use for the rest of that program.
27697 #
27698 # GNU Libtool is distributed in the hope that it will be useful, but
27699 # WITHOUT ANY WARRANTY; without even the implied warranty of
27700 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27701 # GNU General Public License for more details.
27702 #
27703 # You should have received a copy of the GNU General Public License
27704 # along with this program. If not, see <http://www.gnu.org/licenses/>.
27705
27706
27707 # The names of the tagged configurations supported by this script.
27708 available_tags='CXX '
27709
27710 # Configured defaults for sys_lib_dlsearch_path munging.
27711 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
27712
27713 # ### BEGIN LIBTOOL CONFIG
27714
27715 # Whether or not to build static libraries.
27716 build_old_libs=$enable_static
27717
27718 # Which release of libtool.m4 was used?
27719 macro_version=$macro_version
27720 macro_revision=$macro_revision
27721
27722 # Whether or not to build shared libraries.
27723 build_libtool_libs=$enable_shared
27724
27725 # What type of objects to build.
27726 pic_mode=$pic_mode
27727
27728 # Whether or not to optimize for fast installation.
27729 fast_install=$enable_fast_install
27730
27731 # Shared archive member basename,for filename based shared library versioning on AIX.
27732 shared_archive_member_spec=$shared_archive_member_spec
27733
27734 # Shell to use when invoking shell scripts.
27735 SHELL=$lt_SHELL
27736
27737 # An echo program that protects backslashes.
27738 ECHO=$lt_ECHO
27739
27740 # The PATH separator for the build system.
27741 PATH_SEPARATOR=$lt_PATH_SEPARATOR
27742
27743 # The host system.
27744 host_alias=$host_alias
27745 host=$host
27746 host_os=$host_os
27747
27748 # The build system.
27749 build_alias=$build_alias
27750 build=$build
27751 build_os=$build_os
27752
27753 # A sed program that does not truncate output.
27754 SED=$lt_SED
27755
27756 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27757 Xsed="\$SED -e 1s/^X//"
27758
27759 # A grep program that handles long lines.
27760 GREP=$lt_GREP
27761
27762 # An ERE matcher.
27763 EGREP=$lt_EGREP
27764
27765 # A literal string matcher.
27766 FGREP=$lt_FGREP
27767
27768 # A BSD- or MS-compatible name lister.
27769 NM=$lt_NM
27770
27771 # Whether we need soft or hard links.
27772 LN_S=$lt_LN_S
27773
27774 # What is the maximum length of a command?
27775 max_cmd_len=$max_cmd_len
27776
27777 # Object file suffix (normally "o").
27778 objext=$ac_objext
27779
27780 # Executable file suffix (normally "").
27781 exeext=$exeext
27782
27783 # whether the shell understands "unset".
27784 lt_unset=$lt_unset
27785
27786 # turn spaces into newlines.
27787 SP2NL=$lt_lt_SP2NL
27788
27789 # turn newlines into spaces.
27790 NL2SP=$lt_lt_NL2SP
27791
27792 # convert \$build file names to \$host format.
27793 to_host_file_cmd=$lt_cv_to_host_file_cmd
27794
27795 # convert \$build files to toolchain format.
27796 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27797
27798 # An object symbol dumper.
27799 OBJDUMP=$lt_OBJDUMP
27800
27801 # Method to check whether dependent libraries are shared objects.
27802 deplibs_check_method=$lt_deplibs_check_method
27803
27804 # Command to use when deplibs_check_method = "file_magic".
27805 file_magic_cmd=$lt_file_magic_cmd
27806
27807 # How to find potential files when deplibs_check_method = "file_magic".
27808 file_magic_glob=$lt_file_magic_glob
27809
27810 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27811 want_nocaseglob=$lt_want_nocaseglob
27812
27813 # DLL creation program.
27814 DLLTOOL=$lt_DLLTOOL
27815
27816 # Command to associate shared and link libraries.
27817 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27818
27819 # The archiver.
27820 AR=$lt_AR
27821
27822 # Flags to create an archive.
27823 AR_FLAGS=$lt_AR_FLAGS
27824
27825 # How to feed a file listing to the archiver.
27826 archiver_list_spec=$lt_archiver_list_spec
27827
27828 # A symbol stripping program.
27829 STRIP=$lt_STRIP
27830
27831 # Commands used to install an old-style archive.
27832 RANLIB=$lt_RANLIB
27833 old_postinstall_cmds=$lt_old_postinstall_cmds
27834 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27835
27836 # Whether to use a lock for old archive extraction.
27837 lock_old_archive_extraction=$lock_old_archive_extraction
27838
27839 # A C compiler.
27840 LTCC=$lt_CC
27841
27842 # LTCC compiler flags.
27843 LTCFLAGS=$lt_CFLAGS
27844
27845 # Take the output of nm and produce a listing of raw symbols and C names.
27846 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27847
27848 # Transform the output of nm in a proper C declaration.
27849 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27850
27851 # Transform the output of nm into a list of symbols to manually relocate.
27852 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
27853
27854 # Transform the output of nm in a C name address pair.
27855 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27856
27857 # Transform the output of nm in a C name address pair when lib prefix is needed.
27858 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27859
27860 # The name lister interface.
27861 nm_interface=$lt_lt_cv_nm_interface
27862
27863 # Specify filename containing input files for \$NM.
27864 nm_file_list_spec=$lt_nm_file_list_spec
27865
27866 # The root where to search for dependent libraries,and where our libraries should be installed.
27867 lt_sysroot=$lt_sysroot
27868
27869 # Command to truncate a binary pipe.
27870 lt_truncate_bin=$lt_lt_cv_truncate_bin
27871
27872 # The name of the directory that contains temporary libtool files.
27873 objdir=$objdir
27874
27875 # Used to examine libraries when file_magic_cmd begins with "file".
27876 MAGIC_CMD=$MAGIC_CMD
27877
27878 # Must we lock files when doing compilation?
27879 need_locks=$lt_need_locks
27880
27881 # Manifest tool.
27882 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27883
27884 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27885 DSYMUTIL=$lt_DSYMUTIL
27886
27887 # Tool to change global to local symbols on Mac OS X.
27888 NMEDIT=$lt_NMEDIT
27889
27890 # Tool to manipulate fat objects and archives on Mac OS X.
27891 LIPO=$lt_LIPO
27892
27893 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27894 OTOOL=$lt_OTOOL
27895
27896 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27897 OTOOL64=$lt_OTOOL64
27898
27899 # Old archive suffix (normally "a").
27900 libext=$libext
27901
27902 # Shared library suffix (normally ".so").
27903 shrext_cmds=$lt_shrext_cmds
27904
27905 # The commands to extract the exported symbol list from a shared archive.
27906 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27907
27908 # Variables whose values should be saved in libtool wrapper scripts and
27909 # restored at link time.
27910 variables_saved_for_relink=$lt_variables_saved_for_relink
27911
27912 # Do we need the "lib" prefix for modules?
27913 need_lib_prefix=$need_lib_prefix
27914
27915 # Do we need a version for libraries?
27916 need_version=$need_version
27917
27918 # Library versioning type.
27919 version_type=$version_type
27920
27921 # Shared library runtime path variable.
27922 runpath_var=$runpath_var
27923
27924 # Shared library path variable.
27925 shlibpath_var=$shlibpath_var
27926
27927 # Is shlibpath searched before the hard-coded library search path?
27928 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27929
27930 # Format of library name prefix.
27931 libname_spec=$lt_libname_spec
27932
27933 # List of archive names. First name is the real one, the rest are links.
27934 # The last name is the one that the linker finds with -lNAME
27935 library_names_spec=$lt_library_names_spec
27936
27937 # The coded name of the library, if different from the real name.
27938 soname_spec=$lt_soname_spec
27939
27940 # Permission mode override for installation of shared libraries.
27941 install_override_mode=$lt_install_override_mode
27942
27943 # Command to use after installation of a shared archive.
27944 postinstall_cmds=$lt_postinstall_cmds
27945
27946 # Command to use after uninstallation of a shared archive.
27947 postuninstall_cmds=$lt_postuninstall_cmds
27948
27949 # Commands used to finish a libtool library installation in a directory.
27950 finish_cmds=$lt_finish_cmds
27951
27952 # As "finish_cmds", except a single script fragment to be evaled but
27953 # not shown.
27954 finish_eval=$lt_finish_eval
27955
27956 # Whether we should hardcode library paths into libraries.
27957 hardcode_into_libs=$hardcode_into_libs
27958
27959 # Compile-time system search path for libraries.
27960 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27961
27962 # Detected run-time system search path for libraries.
27963 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
27964
27965 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
27966 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
27967
27968 # Whether dlopen is supported.
27969 dlopen_support=$enable_dlopen
27970
27971 # Whether dlopen of programs is supported.
27972 dlopen_self=$enable_dlopen_self
27973
27974 # Whether dlopen of statically linked programs is supported.
27975 dlopen_self_static=$enable_dlopen_self_static
27976
27977 # Commands to strip libraries.
27978 old_striplib=$lt_old_striplib
27979 striplib=$lt_striplib
27980
27981
27982 # The linker used to build libraries.
27983 LD=$lt_LD
27984
27985 # How to create reloadable object files.
27986 reload_flag=$lt_reload_flag
27987 reload_cmds=$lt_reload_cmds
27988
27989 # Commands used to build an old-style archive.
27990 old_archive_cmds=$lt_old_archive_cmds
27991
27992 # A language specific compiler.
27993 CC=$lt_compiler
27994
27995 # Is the compiler the GNU compiler?
27996 with_gcc=$GCC
27997
27998 # Compiler flag to turn off builtin functions.
27999 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28000
28001 # Additional compiler flags for building library objects.
28002 pic_flag=$lt_lt_prog_compiler_pic
28003
28004 # How to pass a linker flag through the compiler.
28005 wl=$lt_lt_prog_compiler_wl
28006
28007 # Compiler flag to prevent dynamic linking.
28008 link_static_flag=$lt_lt_prog_compiler_static
28009
28010 # Does compiler simultaneously support -c and -o options?
28011 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28012
28013 # Whether or not to add -lc for building shared libraries.
28014 build_libtool_need_lc=$archive_cmds_need_lc
28015
28016 # Whether or not to disallow shared libs when runtime libs are static.
28017 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28018
28019 # Compiler flag to allow reflexive dlopens.
28020 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28021
28022 # Compiler flag to generate shared objects directly from archives.
28023 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28024
28025 # Whether the compiler copes with passing no objects directly.
28026 compiler_needs_object=$lt_compiler_needs_object
28027
28028 # Create an old-style archive from a shared archive.
28029 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28030
28031 # Create a temporary old-style archive to link instead of a shared archive.
28032 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28033
28034 # Commands used to build a shared archive.
28035 archive_cmds=$lt_archive_cmds
28036 archive_expsym_cmds=$lt_archive_expsym_cmds
28037
28038 # Commands used to build a loadable module if different from building
28039 # a shared archive.
28040 module_cmds=$lt_module_cmds
28041 module_expsym_cmds=$lt_module_expsym_cmds
28042
28043 # Whether we are building with GNU ld or not.
28044 with_gnu_ld=$lt_with_gnu_ld
28045
28046 # Flag that allows shared libraries with undefined symbols to be built.
28047 allow_undefined_flag=$lt_allow_undefined_flag
28048
28049 # Flag that enforces no undefined symbols.
28050 no_undefined_flag=$lt_no_undefined_flag
28051
28052 # Flag to hardcode \$libdir into a binary during linking.
28053 # This must work even if \$libdir does not exist
28054 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28055
28056 # Whether we need a single "-rpath" flag with a separated argument.
28057 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28058
28059 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28060 # DIR into the resulting binary.
28061 hardcode_direct=$hardcode_direct
28062
28063 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28064 # DIR into the resulting binary and the resulting library dependency is
28065 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28066 # library is relocated.
28067 hardcode_direct_absolute=$hardcode_direct_absolute
28068
28069 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28070 # into the resulting binary.
28071 hardcode_minus_L=$hardcode_minus_L
28072
28073 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28074 # into the resulting binary.
28075 hardcode_shlibpath_var=$hardcode_shlibpath_var
28076
28077 # Set to "yes" if building a shared library automatically hardcodes DIR
28078 # into the library and all subsequent libraries and executables linked
28079 # against it.
28080 hardcode_automatic=$hardcode_automatic
28081
28082 # Set to yes if linker adds runtime paths of dependent libraries
28083 # to runtime path list.
28084 inherit_rpath=$inherit_rpath
28085
28086 # Whether libtool must link a program against all its dependency libraries.
28087 link_all_deplibs=$link_all_deplibs
28088
28089 # Set to "yes" if exported symbols are required.
28090 always_export_symbols=$always_export_symbols
28091
28092 # The commands to list exported symbols.
28093 export_symbols_cmds=$lt_export_symbols_cmds
28094
28095 # Symbols that should not be listed in the preloaded symbols.
28096 exclude_expsyms=$lt_exclude_expsyms
28097
28098 # Symbols that must always be exported.
28099 include_expsyms=$lt_include_expsyms
28100
28101 # Commands necessary for linking programs (against libraries) with templates.
28102 prelink_cmds=$lt_prelink_cmds
28103
28104 # Commands necessary for finishing linking programs.
28105 postlink_cmds=$lt_postlink_cmds
28106
28107 # Specify filename containing input files.
28108 file_list_spec=$lt_file_list_spec
28109
28110 # How to hardcode a shared library path into an executable.
28111 hardcode_action=$hardcode_action
28112
28113 # The directories searched by this compiler when creating a shared library.
28114 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28115
28116 # Dependencies to place before and after the objects being linked to
28117 # create a shared library.
28118 predep_objects=$lt_predep_objects
28119 postdep_objects=$lt_postdep_objects
28120 predeps=$lt_predeps
28121 postdeps=$lt_postdeps
28122
28123 # The library search path used internally by the compiler when linking
28124 # a shared library.
28125 compiler_lib_search_path=$lt_compiler_lib_search_path
28126
28127 # ### END LIBTOOL CONFIG
28128
28129 _LT_EOF
28130
28131 cat <<'_LT_EOF' >> "$cfgfile"
28132
28133 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28134
28135 # func_munge_path_list VARIABLE PATH
28136 # -----------------------------------
28137 # VARIABLE is name of variable containing _space_ separated list of
28138 # directories to be munged by the contents of PATH, which is string
28139 # having a format:
28140 # "DIR[:DIR]:"
28141 # string "DIR[ DIR]" will be prepended to VARIABLE
28142 # ":DIR[:DIR]"
28143 # string "DIR[ DIR]" will be appended to VARIABLE
28144 # "DIRP[:DIRP]::[DIRA:]DIRA"
28145 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28146 # "DIRA[ DIRA]" will be appended to VARIABLE
28147 # "DIR[:DIR]"
28148 # VARIABLE will be replaced by "DIR[ DIR]"
28149 func_munge_path_list ()
28150 {
28151 case x$2 in
28152 x)
28153 ;;
28154 *:)
28155 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28156 ;;
28157 x:*)
28158 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28159 ;;
28160 *::*)
28161 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28162 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28163 ;;
28164 *)
28165 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28166 ;;
28167 esac
28168 }
28169
28170
28171 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
28172 func_cc_basename ()
28173 {
28174 for cc_temp in $*""; do
28175 case $cc_temp in
28176 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28177 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28178 \-*) ;;
28179 *) break;;
28180 esac
28181 done
28182 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28183 }
28184
28185
28186 # ### END FUNCTIONS SHARED WITH CONFIGURE
28187
28188 _LT_EOF
28189
28190 case $host_os in
28191 aix3*)
28192 cat <<\_LT_EOF >> "$cfgfile"
28193 # AIX sometimes has problems with the GCC collect2 program. For some
28194 # reason, if we set the COLLECT_NAMES environment variable, the problems
28195 # vanish in a puff of smoke.
28196 if test set != "${COLLECT_NAMES+set}"; then
28197 COLLECT_NAMES=
28198 export COLLECT_NAMES
28199 fi
28200 _LT_EOF
28201 ;;
28202 esac
28203
28204
28205
28206 ltmain=$ac_aux_dir/ltmain.sh
28207
28208
28209 # We use sed instead of cat because bash on DJGPP gets confused if
28210 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28211 # text mode, it properly converts lines to CR/LF. This bash problem
28212 # is reportedly fixed, but why not run on old versions too?
28213 sed '$q' "$ltmain" >> "$cfgfile" \
28214 || (rm -f "$cfgfile"; exit 1)
28215
28216 mv -f "$cfgfile" "$ofile" ||
28217 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28218 chmod +x "$ofile"
28219
28220
28221 cat <<_LT_EOF >> "$ofile"
28222
28223 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28224
28225 # The linker used to build libraries.
28226 LD=$lt_LD_CXX
28227
28228 # How to create reloadable object files.
28229 reload_flag=$lt_reload_flag_CXX
28230 reload_cmds=$lt_reload_cmds_CXX
28231
28232 # Commands used to build an old-style archive.
28233 old_archive_cmds=$lt_old_archive_cmds_CXX
28234
28235 # A language specific compiler.
28236 CC=$lt_compiler_CXX
28237
28238 # Is the compiler the GNU compiler?
28239 with_gcc=$GCC_CXX
28240
28241 # Compiler flag to turn off builtin functions.
28242 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28243
28244 # Additional compiler flags for building library objects.
28245 pic_flag=$lt_lt_prog_compiler_pic_CXX
28246
28247 # How to pass a linker flag through the compiler.
28248 wl=$lt_lt_prog_compiler_wl_CXX
28249
28250 # Compiler flag to prevent dynamic linking.
28251 link_static_flag=$lt_lt_prog_compiler_static_CXX
28252
28253 # Does compiler simultaneously support -c and -o options?
28254 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28255
28256 # Whether or not to add -lc for building shared libraries.
28257 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28258
28259 # Whether or not to disallow shared libs when runtime libs are static.
28260 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28261
28262 # Compiler flag to allow reflexive dlopens.
28263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28264
28265 # Compiler flag to generate shared objects directly from archives.
28266 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28267
28268 # Whether the compiler copes with passing no objects directly.
28269 compiler_needs_object=$lt_compiler_needs_object_CXX
28270
28271 # Create an old-style archive from a shared archive.
28272 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28273
28274 # Create a temporary old-style archive to link instead of a shared archive.
28275 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28276
28277 # Commands used to build a shared archive.
28278 archive_cmds=$lt_archive_cmds_CXX
28279 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28280
28281 # Commands used to build a loadable module if different from building
28282 # a shared archive.
28283 module_cmds=$lt_module_cmds_CXX
28284 module_expsym_cmds=$lt_module_expsym_cmds_CXX
28285
28286 # Whether we are building with GNU ld or not.
28287 with_gnu_ld=$lt_with_gnu_ld_CXX
28288
28289 # Flag that allows shared libraries with undefined symbols to be built.
28290 allow_undefined_flag=$lt_allow_undefined_flag_CXX
28291
28292 # Flag that enforces no undefined symbols.
28293 no_undefined_flag=$lt_no_undefined_flag_CXX
28294
28295 # Flag to hardcode \$libdir into a binary during linking.
28296 # This must work even if \$libdir does not exist
28297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28298
28299 # Whether we need a single "-rpath" flag with a separated argument.
28300 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28301
28302 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28303 # DIR into the resulting binary.
28304 hardcode_direct=$hardcode_direct_CXX
28305
28306 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28307 # DIR into the resulting binary and the resulting library dependency is
28308 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28309 # library is relocated.
28310 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28311
28312 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28313 # into the resulting binary.
28314 hardcode_minus_L=$hardcode_minus_L_CXX
28315
28316 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28317 # into the resulting binary.
28318 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28319
28320 # Set to "yes" if building a shared library automatically hardcodes DIR
28321 # into the library and all subsequent libraries and executables linked
28322 # against it.
28323 hardcode_automatic=$hardcode_automatic_CXX
28324
28325 # Set to yes if linker adds runtime paths of dependent libraries
28326 # to runtime path list.
28327 inherit_rpath=$inherit_rpath_CXX
28328
28329 # Whether libtool must link a program against all its dependency libraries.
28330 link_all_deplibs=$link_all_deplibs_CXX
28331
28332 # Set to "yes" if exported symbols are required.
28333 always_export_symbols=$always_export_symbols_CXX
28334
28335 # The commands to list exported symbols.
28336 export_symbols_cmds=$lt_export_symbols_cmds_CXX
28337
28338 # Symbols that should not be listed in the preloaded symbols.
28339 exclude_expsyms=$lt_exclude_expsyms_CXX
28340
28341 # Symbols that must always be exported.
28342 include_expsyms=$lt_include_expsyms_CXX
28343
28344 # Commands necessary for linking programs (against libraries) with templates.
28345 prelink_cmds=$lt_prelink_cmds_CXX
28346
28347 # Commands necessary for finishing linking programs.
28348 postlink_cmds=$lt_postlink_cmds_CXX
28349
28350 # Specify filename containing input files.
28351 file_list_spec=$lt_file_list_spec_CXX
28352
28353 # How to hardcode a shared library path into an executable.
28354 hardcode_action=$hardcode_action_CXX
28355
28356 # The directories searched by this compiler when creating a shared library.
28357 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28358
28359 # Dependencies to place before and after the objects being linked to
28360 # create a shared library.
28361 predep_objects=$lt_predep_objects_CXX
28362 postdep_objects=$lt_postdep_objects_CXX
28363 predeps=$lt_predeps_CXX
28364 postdeps=$lt_postdeps_CXX
28365
28366 # The library search path used internally by the compiler when linking
28367 # a shared library.
28368 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28369
28370 # ### END LIBTOOL TAG CONFIG: CXX
28371 _LT_EOF
28372
28373 ;;
28374
28375 esac
28376 done # for ac_tag
28377
28378
28379 as_fn_exit 0
28380 _ACEOF
28381 ac_clean_files=$ac_clean_files_save
28382
28383 test $ac_write_fail = 0 ||
28384 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28385
28386
28387 # configure is writing to config.log, and then calls config.status.
28388 # config.status does its own redirection, appending to config.log.
28389 # Unfortunately, on DOS this fails, as config.log is still kept open
28390 # by configure, so config.status won't be able to write to it; its
28391 # output is simply discarded. So we exec the FD to /dev/null,
28392 # effectively closing config.log, so it can be properly (re)opened and
28393 # appended to by config.status. When coming back to configure, we
28394 # need to make the FD available again.
28395 if test "$no_create" != yes; then
28396 ac_cs_success=:
28397 ac_config_status_args=
28398 test "$silent" = yes &&
28399 ac_config_status_args="$ac_config_status_args --quiet"
28400 exec 5>/dev/null
28401 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28402 exec 5>>config.log
28403 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28404 # would make configure fail if this is the last instruction.
28405 $ac_cs_success || as_fn_exit 1
28406 fi
28407 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28409 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28410 fi
28411
28412
28413 if test "${have_zlib}" = "no" ; then
28414 echo "
28415 Please install zlib (compression library) and then reconfigure gretl.
28416 zlib is available via http://www.info-zip.org/pub/infozip/zlib/
28417 "
28418
28419 elif test x"${XML_LIBS}" = x ; then
28420 echo "
28421 Please install libxml2 and then reconfigure gretl.
28422 libxml2 is available from http://xmlsoft.org/
28423 "
28424
28425 elif test "${have_lapack}" = "no" ; then
28426 echo "
28427 Please install lapack and then reconfigure gretl.
28428 Lapack is available from http://www.netlib.org/lapack/
28429 "
28430
28431 elif test "${have_fftw3}" = "no" ; then
28432 echo "
28433 Please install fftw3 and then reconfigure gretl.
28434 fftw3 is available from http://www.fftw.org/
28435 "
28436
28437 elif test "${gmp_fail}" = "yes" ; then
28438 echo "
28439 Please install GMP and then reconfigure gretl.
28440 GMP is available from http://gmplib.org/
28441 "
28442
28443 elif test "${mpfr_fail}" = "yes" ; then
28444 echo "
28445 Please install MPFR and then reconfigure gretl.
28446 MPFR is available from http://www.mpfr.org/
28447 "
28448
28449 elif test "${have_curl}" = "no" ; then
28450 echo "
28451 Please install libcurl and then reconfigure gretl.
28452 libcurl is available from http://curl.haxx.se/libcurl/
28453 "
28454
28455 elif test "${have_glib2}" = "no" ; then
28456 echo "
28457 Please install glib-2.0 >= 2.28.0 and then reconfigure gretl.
28458 glib-2.0 is available from http://www.gtk.org/
28459 "
28460
28461 elif test "${gtk_version}" = "2.0" && test "${have_sourceview}" = "no" ; then
28462 echo "
28463 Please install gtksourceview-2.0 and then reconfigure gretl.
28464 gtksourceview-2.0 is available from http://www.gnome.org/
28465 "
28466
28467 elif test "${gtk_version}" = "3.0" && test "${have_sourceview}" = "no" ; then
28468 echo "
28469 Please install gtksourceview 3.0 or 4 and then reconfigure gretl.
28470 gtksourceview is available from http://www.gnome.org/
28471 "
28472
28473 elif test "${darwin_build}" = "yes" && test "${mac_native}" = "no" ; then
28474 echo "
28475 Building for macOS requires gtk+-quartz-2.0 or gtk+-quartz-3.0
28476 "
28477
28478 elif test "${darwin_build}" = "yes" && test "${mac_integration}" = "no" ; then
28479 echo "
28480 Building for macOS requires gtk-mac-integration version 2.0.5 or higher
28481 "
28482
28483 else
28484 if test "${use_xdg_utils}" = "yes" ; then
28485 xdg_utils_msg="if DESTDIR not set"
28486 else
28487 xdg_utils_msg="no"
28488 fi
28489 echo "
28490 Configuration:
28491
28492 Installation path: ${prefix}
28493 Use readline library: ${have_readline}
28494 Use gnuplot for graphs: ${have_gnuplot}
28495 Use pdflatex for typesetting: ${have_pdflatex}
28496 Use libgsf for zip/unzip: ${use_gsf}
28497 SIMD support for RNG: ${sse2_result}
28498 OpenMP support: ${ac_openmp_result}
28499 MPI support: ${have_mpi}
28500 AVX support for arithmetic: ${avx_result}
28501 Build with GTK version: ${gtk_version}
28502 Use gtksourceview version: ${have_sourceview}
28503 Build gretl documentation: ${build_docs}
28504 Use Lucida fonts: ${use_lucida}
28505 Build message catalogs: ${build_po}
28506 Build gretl addons: ${build_addons}
28507 Build gretl_edit: ${build_editor}
28508 X-12-ARIMA support: ${have_x12a}
28509 TRAMO/SEATS support: ${have_tramo}
28510 libR support: ${have_libR}
28511 ODBC support: ${have_odbc}
28512 GMP support: ${have_gmp}
28513 JSON parsing support: ${have_json_glib}
28514 Use xdg-utils in installation: ${xdg_utils_msg}
28515
28516 LAPACK libraries:
28517 ${LAPACK_LIBS}
28518
28519 Now type '$MAKE' to build gretl."
28520
28521 if test "${build_docs}" = "yes" ; then
28522 echo "You can also do 'make pdfdocs' to build the PDF documentation."
28523 fi
28524 echo
28525
28526 if test "${gui_disabled}" = "no" && test "${gtk_version}" = "none" ; then
28527 echo "*** Warning: since GTK is not available the gretl GUI will"
28528 echo "*** not be built, only the library and command-line program."
28529 echo
28530 fi
28531
28532 if test "$ac_openmp_result" = "yes" && test "x${blas_pthreads}" != "x"; then
28533 echo "*** Warning: you are building gretl with OpenMP, but linking"
28534 echo "*** against an OpenBLAS library that uses pthreads. This mixture"
28535 echo "*** is not recommended. Ideally, OpenBLAS should use OpenMP."
28536 echo
28537 fi
28538 fi
28539